@fmdevui/fm-dev 1.0.7 → 1.0.8
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/es/core/index.d.ts +0 -1
- package/es/index.mjs +0 -1
- package/es/packages/core/index.mjs +0 -1
- package/index.js +182 -2345
- package/index.min.js +23 -23
- package/index.min.mjs +23 -23
- package/index.mjs +184 -2346
- package/lib/core/index.d.ts +0 -1
- package/lib/index.js +0 -2
- package/lib/packages/core/index.js +0 -2
- package/package.json +1 -1
- package/es/core/hook/useVxeTableOptionsHook.d.ts +0 -3362
- package/es/packages/core/hook/useVxeTableOptionsHook.mjs +0 -82
- package/lib/core/hook/useVxeTableOptionsHook.d.ts +0 -3362
- package/lib/packages/core/hook/useVxeTableOptionsHook.js +0 -84
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.8 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
*
|
|
78
78
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
79
79
|
*/
|
|
80
|
-
const {isArray: isArray$
|
|
80
|
+
const {isArray: isArray$2} = Array;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Determine if a value is undefined
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
*
|
|
96
96
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
97
97
|
*/
|
|
98
|
-
function isBuffer
|
|
98
|
+
function isBuffer(val) {
|
|
99
99
|
return val !== null && !isUndefined$1(val) && val.constructor !== null && !isUndefined$1(val.constructor)
|
|
100
|
-
&& isFunction$
|
|
100
|
+
&& isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
* @param {*} val The value to test
|
|
143
143
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
144
144
|
*/
|
|
145
|
-
const isFunction$
|
|
145
|
+
const isFunction$1 = typeOfTest('function');
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* Determine if a value is a Number
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
*
|
|
161
161
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
162
162
|
*/
|
|
163
|
-
const isObject$
|
|
163
|
+
const isObject$1 = (thing) => thing !== null && typeof thing === 'object';
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Determine if a value is a Boolean
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
*
|
|
178
178
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
179
179
|
*/
|
|
180
|
-
const isPlainObject$
|
|
180
|
+
const isPlainObject$2 = (val) => {
|
|
181
181
|
if (kindOf(val) !== 'object') {
|
|
182
182
|
return false;
|
|
183
183
|
}
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
*
|
|
230
230
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
231
231
|
*/
|
|
232
|
-
const isStream = (val) => isObject$
|
|
232
|
+
const isStream = (val) => isObject$1(val) && isFunction$1(val.pipe);
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* Determine if a value is a FormData
|
|
@@ -242,10 +242,10 @@
|
|
|
242
242
|
let kind;
|
|
243
243
|
return thing && (
|
|
244
244
|
(typeof FormData === 'function' && thing instanceof FormData) || (
|
|
245
|
-
isFunction$
|
|
245
|
+
isFunction$1(thing.append) && (
|
|
246
246
|
(kind = kindOf(thing)) === 'formdata' ||
|
|
247
247
|
// detect form-data instance
|
|
248
|
-
(kind === 'object' && isFunction$
|
|
248
|
+
(kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
|
|
249
249
|
)
|
|
250
250
|
)
|
|
251
251
|
)
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
obj = [obj];
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
if (isArray$
|
|
305
|
+
if (isArray$2(obj)) {
|
|
306
306
|
// Iterate over array values
|
|
307
307
|
for (i = 0, l = obj.length; i < l; i++) {
|
|
308
308
|
fn.call(null, obj[i], i, obj);
|
|
@@ -360,16 +360,16 @@
|
|
|
360
360
|
*
|
|
361
361
|
* @returns {Object} Result of all merge properties
|
|
362
362
|
*/
|
|
363
|
-
function merge
|
|
363
|
+
function merge(/* obj1, obj2, obj3, ... */) {
|
|
364
364
|
const {caseless} = isContextDefined(this) && this || {};
|
|
365
365
|
const result = {};
|
|
366
366
|
const assignValue = (val, key) => {
|
|
367
367
|
const targetKey = caseless && findKey(result, key) || key;
|
|
368
|
-
if (isPlainObject$
|
|
369
|
-
result[targetKey] = merge
|
|
370
|
-
} else if (isPlainObject$
|
|
371
|
-
result[targetKey] = merge
|
|
372
|
-
} else if (isArray$
|
|
368
|
+
if (isPlainObject$2(result[targetKey]) && isPlainObject$2(val)) {
|
|
369
|
+
result[targetKey] = merge(result[targetKey], val);
|
|
370
|
+
} else if (isPlainObject$2(val)) {
|
|
371
|
+
result[targetKey] = merge({}, val);
|
|
372
|
+
} else if (isArray$2(val)) {
|
|
373
373
|
result[targetKey] = val.slice();
|
|
374
374
|
} else {
|
|
375
375
|
result[targetKey] = val;
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
*/
|
|
395
395
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
396
396
|
forEach$1(b, (val, key) => {
|
|
397
|
-
if (thisArg && isFunction$
|
|
397
|
+
if (thisArg && isFunction$1(val)) {
|
|
398
398
|
a[key] = bind(val, thisArg);
|
|
399
399
|
} else {
|
|
400
400
|
a[key] = val;
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
*/
|
|
500
500
|
const toArray = (thing) => {
|
|
501
501
|
if (!thing) return null;
|
|
502
|
-
if (isArray$
|
|
502
|
+
if (isArray$2(thing)) return thing;
|
|
503
503
|
let i = thing.length;
|
|
504
504
|
if (!isNumber$2(i)) return null;
|
|
505
505
|
const arr = new Array(i);
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
* @returns {Array}
|
|
519
519
|
*/
|
|
520
520
|
// eslint-disable-next-line func-names
|
|
521
|
-
const isTypedArray$
|
|
521
|
+
const isTypedArray$1 = (TypedArray => {
|
|
522
522
|
// eslint-disable-next-line func-names
|
|
523
523
|
return thing => {
|
|
524
524
|
return TypedArray && thing instanceof TypedArray;
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
};
|
|
578
578
|
|
|
579
579
|
/* Creating a function that will check if an object has a property. */
|
|
580
|
-
const hasOwnProperty$
|
|
580
|
+
const hasOwnProperty$1 = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
583
|
* Determine if a value is a RegExp object
|
|
@@ -610,13 +610,13 @@
|
|
|
610
610
|
const freezeMethods = (obj) => {
|
|
611
611
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
612
612
|
// skip restricted props in strict mode
|
|
613
|
-
if (isFunction$
|
|
613
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
614
614
|
return false;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
const value = obj[name];
|
|
618
618
|
|
|
619
|
-
if (!isFunction$
|
|
619
|
+
if (!isFunction$1(value)) return;
|
|
620
620
|
|
|
621
621
|
descriptor.enumerable = false;
|
|
622
622
|
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
});
|
|
643
643
|
};
|
|
644
644
|
|
|
645
|
-
isArray$
|
|
645
|
+
isArray$2(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
646
646
|
|
|
647
647
|
return obj;
|
|
648
648
|
};
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
* @returns {boolean}
|
|
662
662
|
*/
|
|
663
663
|
function isSpecCompliantForm(thing) {
|
|
664
|
-
return !!(thing && isFunction$
|
|
664
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
const toJSONObject = (obj) => {
|
|
@@ -669,14 +669,14 @@
|
|
|
669
669
|
|
|
670
670
|
const visit = (source, i) => {
|
|
671
671
|
|
|
672
|
-
if (isObject$
|
|
672
|
+
if (isObject$1(source)) {
|
|
673
673
|
if (stack.indexOf(source) >= 0) {
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
677
|
if(!('toJSON' in source)) {
|
|
678
678
|
stack[i] = source;
|
|
679
|
-
const target = isArray$
|
|
679
|
+
const target = isArray$2(source) ? [] : {};
|
|
680
680
|
|
|
681
681
|
forEach$1(source, (value, key) => {
|
|
682
682
|
const reducedValue = visit(value, i + 1);
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
699
699
|
|
|
700
700
|
const isThenable = (thing) =>
|
|
701
|
-
thing && (isObject$
|
|
701
|
+
thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
702
702
|
|
|
703
703
|
// original code
|
|
704
704
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
723
723
|
})(
|
|
724
724
|
typeof setImmediate === 'function',
|
|
725
|
-
isFunction$
|
|
725
|
+
isFunction$1(_global$1.postMessage)
|
|
726
726
|
);
|
|
727
727
|
|
|
728
728
|
const asap = typeof queueMicrotask !== 'undefined' ?
|
|
@@ -731,20 +731,20 @@
|
|
|
731
731
|
// *********************
|
|
732
732
|
|
|
733
733
|
|
|
734
|
-
const isIterable = (thing) => thing != null && isFunction$
|
|
734
|
+
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
735
735
|
|
|
736
736
|
|
|
737
737
|
var utils$1 = {
|
|
738
|
-
isArray: isArray$
|
|
738
|
+
isArray: isArray$2,
|
|
739
739
|
isArrayBuffer,
|
|
740
|
-
isBuffer
|
|
740
|
+
isBuffer,
|
|
741
741
|
isFormData,
|
|
742
742
|
isArrayBufferView,
|
|
743
743
|
isString: isString$2,
|
|
744
744
|
isNumber: isNumber$2,
|
|
745
745
|
isBoolean: isBoolean$2,
|
|
746
|
-
isObject: isObject$
|
|
747
|
-
isPlainObject: isPlainObject$
|
|
746
|
+
isObject: isObject$1,
|
|
747
|
+
isPlainObject: isPlainObject$2,
|
|
748
748
|
isReadableStream,
|
|
749
749
|
isRequest,
|
|
750
750
|
isResponse,
|
|
@@ -754,13 +754,13 @@
|
|
|
754
754
|
isFile,
|
|
755
755
|
isBlob,
|
|
756
756
|
isRegExp: isRegExp$2,
|
|
757
|
-
isFunction: isFunction$
|
|
757
|
+
isFunction: isFunction$1,
|
|
758
758
|
isStream,
|
|
759
759
|
isURLSearchParams,
|
|
760
|
-
isTypedArray: isTypedArray$
|
|
760
|
+
isTypedArray: isTypedArray$1,
|
|
761
761
|
isFileList,
|
|
762
762
|
forEach: forEach$1,
|
|
763
|
-
merge
|
|
763
|
+
merge,
|
|
764
764
|
extend,
|
|
765
765
|
trim,
|
|
766
766
|
stripBOM,
|
|
@@ -773,8 +773,8 @@
|
|
|
773
773
|
forEachEntry,
|
|
774
774
|
matchAll,
|
|
775
775
|
isHTMLForm,
|
|
776
|
-
hasOwnProperty: hasOwnProperty$
|
|
777
|
-
hasOwnProp: hasOwnProperty$
|
|
776
|
+
hasOwnProperty: hasOwnProperty$1,
|
|
777
|
+
hasOwnProp: hasOwnProperty$1, // an alias to avoid ESLint no-prototype-builtins detection
|
|
778
778
|
reduceDescriptors,
|
|
779
779
|
freezeMethods,
|
|
780
780
|
toObjectSet,
|
|
@@ -16092,7 +16092,7 @@
|
|
|
16092
16092
|
const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
|
|
16093
16093
|
/* eslint-disable */
|
|
16094
16094
|
function format$1(message, ...args) {
|
|
16095
|
-
if (args.length === 1 && isObject
|
|
16095
|
+
if (args.length === 1 && isObject(args[0])) {
|
|
16096
16096
|
args = args[0];
|
|
16097
16097
|
}
|
|
16098
16098
|
if (!args || !args.hasOwnProperty) {
|
|
@@ -16111,7 +16111,7 @@
|
|
|
16111
16111
|
const isNumber$1 = (val) => typeof val === 'number' && isFinite(val);
|
|
16112
16112
|
const isDate$1 = (val) => toTypeString(val) === '[object Date]';
|
|
16113
16113
|
const isRegExp$1 = (val) => toTypeString(val) === '[object RegExp]';
|
|
16114
|
-
const isEmptyObject$1 = (val) => isPlainObject$
|
|
16114
|
+
const isEmptyObject$1 = (val) => isPlainObject$1(val) && Object.keys(val).length === 0;
|
|
16115
16115
|
const assign$2 = Object.assign;
|
|
16116
16116
|
const _create = Object.create;
|
|
16117
16117
|
const create$1 = (obj = null) => _create(obj);
|
|
@@ -16137,9 +16137,9 @@
|
|
|
16137
16137
|
.replace(/"/g, '"')
|
|
16138
16138
|
.replace(/'/g, ''');
|
|
16139
16139
|
}
|
|
16140
|
-
const hasOwnProperty
|
|
16140
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
16141
16141
|
function hasOwn(obj, key) {
|
|
16142
|
-
return hasOwnProperty
|
|
16142
|
+
return hasOwnProperty.call(obj, key);
|
|
16143
16143
|
}
|
|
16144
16144
|
/* eslint-enable */
|
|
16145
16145
|
/**
|
|
@@ -16149,24 +16149,24 @@
|
|
|
16149
16149
|
* https://github.com/vuejs/vue-next/blob/master/packages/shared/src/index.ts
|
|
16150
16150
|
* https://github.com/vuejs/vue-next/blob/master/packages/shared/src/codeframe.ts
|
|
16151
16151
|
*/
|
|
16152
|
-
const isArray$
|
|
16153
|
-
const isFunction
|
|
16152
|
+
const isArray$1 = Array.isArray;
|
|
16153
|
+
const isFunction = (val) => typeof val === 'function';
|
|
16154
16154
|
const isString$1 = (val) => typeof val === 'string';
|
|
16155
16155
|
const isBoolean$1 = (val) => typeof val === 'boolean';
|
|
16156
16156
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16157
|
-
const isObject
|
|
16157
|
+
const isObject = (val) => val !== null && typeof val === 'object';
|
|
16158
16158
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16159
16159
|
const isPromise = (val) => {
|
|
16160
|
-
return isObject
|
|
16160
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
16161
16161
|
};
|
|
16162
|
-
const objectToString
|
|
16163
|
-
const toTypeString = (value) => objectToString
|
|
16164
|
-
const isPlainObject$
|
|
16162
|
+
const objectToString = Object.prototype.toString;
|
|
16163
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
16164
|
+
const isPlainObject$1 = (val) => toTypeString(val) === '[object Object]';
|
|
16165
16165
|
// for converting list and named values to displayed strings.
|
|
16166
16166
|
const toDisplayString = (val) => {
|
|
16167
16167
|
return val == null
|
|
16168
16168
|
? ''
|
|
16169
|
-
: isArray$
|
|
16169
|
+
: isArray$1(val) || (isPlainObject$1(val) && val.toString === objectToString)
|
|
16170
16170
|
? JSON.stringify(val, null, 2)
|
|
16171
16171
|
: String(val);
|
|
16172
16172
|
};
|
|
@@ -16265,7 +16265,7 @@
|
|
|
16265
16265
|
return emitter;
|
|
16266
16266
|
}
|
|
16267
16267
|
|
|
16268
|
-
const isNotObjectOrIsArray = (val) => !isObject
|
|
16268
|
+
const isNotObjectOrIsArray = (val) => !isObject(val) || isArray$1(val);
|
|
16269
16269
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16270
16270
|
function deepCopy(src, des) {
|
|
16271
16271
|
// src and des should both be objects, and none of them can be a array
|
|
@@ -16282,7 +16282,7 @@
|
|
|
16282
16282
|
}
|
|
16283
16283
|
// if src[key] is an object/array, set des[key]
|
|
16284
16284
|
// to empty object/array to prevent setting by reference
|
|
16285
|
-
if (isObject
|
|
16285
|
+
if (isObject(src[key]) && !isObject(des[key])) {
|
|
16286
16286
|
des[key] = Array.isArray(src[key]) ? [] : create$1();
|
|
16287
16287
|
}
|
|
16288
16288
|
if (isNotObjectOrIsArray(des[key]) || isNotObjectOrIsArray(src[key])) {
|
|
@@ -17825,7 +17825,7 @@
|
|
|
17825
17825
|
}
|
|
17826
17826
|
|
|
17827
17827
|
function isMessageAST(val) {
|
|
17828
|
-
return (isObject
|
|
17828
|
+
return (isObject(val) &&
|
|
17829
17829
|
resolveType(val) === 0 &&
|
|
17830
17830
|
(hasOwn(val, 'b') || hasOwn(val, 'body')));
|
|
17831
17831
|
}
|
|
@@ -18106,7 +18106,7 @@
|
|
|
18106
18106
|
return locale;
|
|
18107
18107
|
}
|
|
18108
18108
|
else {
|
|
18109
|
-
if (isFunction
|
|
18109
|
+
if (isFunction(locale)) {
|
|
18110
18110
|
if (locale.resolvedOnce && _resolveLocale != null) {
|
|
18111
18111
|
return _resolveLocale;
|
|
18112
18112
|
}
|
|
@@ -18146,9 +18146,9 @@
|
|
|
18146
18146
|
// prettier-ignore
|
|
18147
18147
|
return [...new Set([
|
|
18148
18148
|
start,
|
|
18149
|
-
...(isArray$
|
|
18149
|
+
...(isArray$1(fallback)
|
|
18150
18150
|
? fallback
|
|
18151
|
-
: isObject
|
|
18151
|
+
: isObject(fallback)
|
|
18152
18152
|
? Object.keys(fallback)
|
|
18153
18153
|
: isString$1(fallback)
|
|
18154
18154
|
? [fallback]
|
|
@@ -18183,19 +18183,19 @@
|
|
|
18183
18183
|
// first block defined by start
|
|
18184
18184
|
let block = [start];
|
|
18185
18185
|
// while any intervening block found
|
|
18186
|
-
while (isArray$
|
|
18186
|
+
while (isArray$1(block)) {
|
|
18187
18187
|
block = appendBlockToChain(chain, block, fallback);
|
|
18188
18188
|
}
|
|
18189
18189
|
// prettier-ignore
|
|
18190
18190
|
// last block defined by default
|
|
18191
|
-
const defaults = isArray$
|
|
18191
|
+
const defaults = isArray$1(fallback) || !isPlainObject$1(fallback)
|
|
18192
18192
|
? fallback
|
|
18193
18193
|
: fallback['default']
|
|
18194
18194
|
? fallback['default']
|
|
18195
18195
|
: null;
|
|
18196
18196
|
// convert defaults to array
|
|
18197
18197
|
block = isString$1(defaults) ? [defaults] : defaults;
|
|
18198
|
-
if (isArray$
|
|
18198
|
+
if (isArray$1(block)) {
|
|
18199
18199
|
appendBlockToChain(chain, block, false);
|
|
18200
18200
|
}
|
|
18201
18201
|
context.__localeChainCache.set(startLocale, chain);
|
|
@@ -18230,7 +18230,7 @@
|
|
|
18230
18230
|
follow = target[target.length - 1] !== '!';
|
|
18231
18231
|
const locale = target.replace(/!/g, '');
|
|
18232
18232
|
chain.push(locale);
|
|
18233
|
-
if ((isArray$
|
|
18233
|
+
if ((isArray$1(blocks) || isPlainObject$1(blocks)) &&
|
|
18234
18234
|
blocks[locale] // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
18235
18235
|
) {
|
|
18236
18236
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -18459,7 +18459,7 @@
|
|
|
18459
18459
|
* @VueI18nGeneral
|
|
18460
18460
|
*/
|
|
18461
18461
|
function resolveWithKeyValue(obj, path) {
|
|
18462
|
-
return isObject
|
|
18462
|
+
return isObject(obj) ? obj[path] : null;
|
|
18463
18463
|
}
|
|
18464
18464
|
/**
|
|
18465
18465
|
* message resolver
|
|
@@ -18476,7 +18476,7 @@
|
|
|
18476
18476
|
*/
|
|
18477
18477
|
function resolveValue(obj, path) {
|
|
18478
18478
|
// check object
|
|
18479
|
-
if (!isObject
|
|
18479
|
+
if (!isObject(obj)) {
|
|
18480
18480
|
return null;
|
|
18481
18481
|
}
|
|
18482
18482
|
// parse path
|
|
@@ -18509,7 +18509,7 @@
|
|
|
18509
18509
|
if (val === undefined) {
|
|
18510
18510
|
return null;
|
|
18511
18511
|
}
|
|
18512
|
-
if (isFunction
|
|
18512
|
+
if (isFunction(last)) {
|
|
18513
18513
|
return null;
|
|
18514
18514
|
}
|
|
18515
18515
|
last = val;
|
|
@@ -18558,7 +18558,7 @@
|
|
|
18558
18558
|
// prettier-ignore
|
|
18559
18559
|
return type === 'text' && isString$1(val)
|
|
18560
18560
|
? val.toUpperCase()
|
|
18561
|
-
: type === 'vnode' && isObject
|
|
18561
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
18562
18562
|
? val.children.toUpperCase()
|
|
18563
18563
|
: val;
|
|
18564
18564
|
},
|
|
@@ -18566,7 +18566,7 @@
|
|
|
18566
18566
|
// prettier-ignore
|
|
18567
18567
|
return type === 'text' && isString$1(val)
|
|
18568
18568
|
? val.toLowerCase()
|
|
18569
|
-
: type === 'vnode' && isObject
|
|
18569
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
18570
18570
|
? val.children.toLowerCase()
|
|
18571
18571
|
: val;
|
|
18572
18572
|
},
|
|
@@ -18574,7 +18574,7 @@
|
|
|
18574
18574
|
// prettier-ignore
|
|
18575
18575
|
return (type === 'text' && isString$1(val)
|
|
18576
18576
|
? capitalize(val)
|
|
18577
|
-
: type === 'vnode' && isObject
|
|
18577
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
18578
18578
|
? capitalize(val.children)
|
|
18579
18579
|
: val);
|
|
18580
18580
|
}
|
|
@@ -18623,32 +18623,32 @@
|
|
|
18623
18623
|
let _cid = 0;
|
|
18624
18624
|
function createCoreContext(options = {}) {
|
|
18625
18625
|
// setup options
|
|
18626
|
-
const onWarn = isFunction
|
|
18626
|
+
const onWarn = isFunction(options.onWarn) ? options.onWarn : warn;
|
|
18627
18627
|
const version = isString$1(options.version) ? options.version : VERSION$1;
|
|
18628
|
-
const locale = isString$1(options.locale) || isFunction
|
|
18628
|
+
const locale = isString$1(options.locale) || isFunction(options.locale)
|
|
18629
18629
|
? options.locale
|
|
18630
18630
|
: DEFAULT_LOCALE;
|
|
18631
|
-
const _locale = isFunction
|
|
18632
|
-
const fallbackLocale = isArray$
|
|
18633
|
-
isPlainObject$
|
|
18631
|
+
const _locale = isFunction(locale) ? DEFAULT_LOCALE : locale;
|
|
18632
|
+
const fallbackLocale = isArray$1(options.fallbackLocale) ||
|
|
18633
|
+
isPlainObject$1(options.fallbackLocale) ||
|
|
18634
18634
|
isString$1(options.fallbackLocale) ||
|
|
18635
18635
|
options.fallbackLocale === false
|
|
18636
18636
|
? options.fallbackLocale
|
|
18637
18637
|
: _locale;
|
|
18638
|
-
const messages = isPlainObject$
|
|
18638
|
+
const messages = isPlainObject$1(options.messages)
|
|
18639
18639
|
? options.messages
|
|
18640
18640
|
: createResources(_locale);
|
|
18641
|
-
const datetimeFormats = isPlainObject$
|
|
18641
|
+
const datetimeFormats = isPlainObject$1(options.datetimeFormats)
|
|
18642
18642
|
? options.datetimeFormats
|
|
18643
18643
|
: createResources(_locale)
|
|
18644
18644
|
;
|
|
18645
|
-
const numberFormats = isPlainObject$
|
|
18645
|
+
const numberFormats = isPlainObject$1(options.numberFormats)
|
|
18646
18646
|
? options.numberFormats
|
|
18647
18647
|
: createResources(_locale)
|
|
18648
18648
|
;
|
|
18649
18649
|
const modifiers = assign$2(create$1(), options.modifiers, getDefaultLinkedModifiers());
|
|
18650
18650
|
const pluralRules = options.pluralRules || create$1();
|
|
18651
|
-
const missing = isFunction
|
|
18651
|
+
const missing = isFunction(options.missing) ? options.missing : null;
|
|
18652
18652
|
const missingWarn = isBoolean$1(options.missingWarn) || isRegExp$1(options.missingWarn)
|
|
18653
18653
|
? options.missingWarn
|
|
18654
18654
|
: true;
|
|
@@ -18657,43 +18657,43 @@
|
|
|
18657
18657
|
: true;
|
|
18658
18658
|
const fallbackFormat = !!options.fallbackFormat;
|
|
18659
18659
|
const unresolving = !!options.unresolving;
|
|
18660
|
-
const postTranslation = isFunction
|
|
18660
|
+
const postTranslation = isFunction(options.postTranslation)
|
|
18661
18661
|
? options.postTranslation
|
|
18662
18662
|
: null;
|
|
18663
|
-
const processor = isPlainObject$
|
|
18663
|
+
const processor = isPlainObject$1(options.processor) ? options.processor : null;
|
|
18664
18664
|
const warnHtmlMessage = isBoolean$1(options.warnHtmlMessage)
|
|
18665
18665
|
? options.warnHtmlMessage
|
|
18666
18666
|
: true;
|
|
18667
18667
|
const escapeParameter = !!options.escapeParameter;
|
|
18668
|
-
const messageCompiler = isFunction
|
|
18668
|
+
const messageCompiler = isFunction(options.messageCompiler)
|
|
18669
18669
|
? options.messageCompiler
|
|
18670
18670
|
: _compiler;
|
|
18671
18671
|
if ((process.env.NODE_ENV !== 'production') &&
|
|
18672
18672
|
true &&
|
|
18673
18673
|
true &&
|
|
18674
|
-
isFunction
|
|
18674
|
+
isFunction(options.messageCompiler)) {
|
|
18675
18675
|
warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
18676
18676
|
}
|
|
18677
|
-
const messageResolver = isFunction
|
|
18677
|
+
const messageResolver = isFunction(options.messageResolver)
|
|
18678
18678
|
? options.messageResolver
|
|
18679
18679
|
: _resolver || resolveWithKeyValue;
|
|
18680
|
-
const localeFallbacker = isFunction
|
|
18680
|
+
const localeFallbacker = isFunction(options.localeFallbacker)
|
|
18681
18681
|
? options.localeFallbacker
|
|
18682
18682
|
: _fallbacker || fallbackWithSimple;
|
|
18683
|
-
const fallbackContext = isObject
|
|
18683
|
+
const fallbackContext = isObject(options.fallbackContext)
|
|
18684
18684
|
? options.fallbackContext
|
|
18685
18685
|
: undefined;
|
|
18686
18686
|
// setup internal options
|
|
18687
18687
|
const internalOptions = options;
|
|
18688
|
-
const __datetimeFormatters = isObject
|
|
18688
|
+
const __datetimeFormatters = isObject(internalOptions.__datetimeFormatters)
|
|
18689
18689
|
? internalOptions.__datetimeFormatters
|
|
18690
18690
|
: new Map()
|
|
18691
18691
|
;
|
|
18692
|
-
const __numberFormatters = isObject
|
|
18692
|
+
const __numberFormatters = isObject(internalOptions.__numberFormatters)
|
|
18693
18693
|
? internalOptions.__numberFormatters
|
|
18694
18694
|
: new Map()
|
|
18695
18695
|
;
|
|
18696
|
-
const __meta = isObject
|
|
18696
|
+
const __meta = isObject(internalOptions.__meta) ? internalOptions.__meta : {};
|
|
18697
18697
|
_cid++;
|
|
18698
18698
|
const context = {
|
|
18699
18699
|
version,
|
|
@@ -18861,13 +18861,13 @@
|
|
|
18861
18861
|
datetimeFormat =
|
|
18862
18862
|
datetimeFormats[targetLocale] || {};
|
|
18863
18863
|
format = datetimeFormat[key];
|
|
18864
|
-
if (isPlainObject$
|
|
18864
|
+
if (isPlainObject$1(format))
|
|
18865
18865
|
break;
|
|
18866
18866
|
handleMissing(context, key, targetLocale, missingWarn, type); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
18867
18867
|
from = to;
|
|
18868
18868
|
}
|
|
18869
18869
|
// checking format and target locale
|
|
18870
|
-
if (!isPlainObject$
|
|
18870
|
+
if (!isPlainObject$1(format) || !isString$1(targetLocale)) {
|
|
18871
18871
|
return unresolving ? NOT_REOSLVED : key;
|
|
18872
18872
|
}
|
|
18873
18873
|
let id = `${targetLocale}__${key}`;
|
|
@@ -18948,7 +18948,7 @@
|
|
|
18948
18948
|
if (isString$1(arg2)) {
|
|
18949
18949
|
options.key = arg2;
|
|
18950
18950
|
}
|
|
18951
|
-
else if (isPlainObject$
|
|
18951
|
+
else if (isPlainObject$1(arg2)) {
|
|
18952
18952
|
Object.keys(arg2).forEach(key => {
|
|
18953
18953
|
if (DATETIME_FORMAT_OPTIONS_KEYS.includes(key)) {
|
|
18954
18954
|
overrides[key] = arg2[key];
|
|
@@ -18961,10 +18961,10 @@
|
|
|
18961
18961
|
if (isString$1(arg3)) {
|
|
18962
18962
|
options.locale = arg3;
|
|
18963
18963
|
}
|
|
18964
|
-
else if (isPlainObject$
|
|
18964
|
+
else if (isPlainObject$1(arg3)) {
|
|
18965
18965
|
overrides = arg3;
|
|
18966
18966
|
}
|
|
18967
|
-
if (isPlainObject$
|
|
18967
|
+
if (isPlainObject$1(arg4)) {
|
|
18968
18968
|
overrides = arg4;
|
|
18969
18969
|
}
|
|
18970
18970
|
return [options.key || '', value, options, overrides];
|
|
@@ -19036,13 +19036,13 @@
|
|
|
19036
19036
|
numberFormat =
|
|
19037
19037
|
numberFormats[targetLocale] || {};
|
|
19038
19038
|
format = numberFormat[key];
|
|
19039
|
-
if (isPlainObject$
|
|
19039
|
+
if (isPlainObject$1(format))
|
|
19040
19040
|
break;
|
|
19041
19041
|
handleMissing(context, key, targetLocale, missingWarn, type); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
19042
19042
|
from = to;
|
|
19043
19043
|
}
|
|
19044
19044
|
// checking format and target locale
|
|
19045
|
-
if (!isPlainObject$
|
|
19045
|
+
if (!isPlainObject$1(format) || !isString$1(targetLocale)) {
|
|
19046
19046
|
return unresolving ? NOT_REOSLVED : key;
|
|
19047
19047
|
}
|
|
19048
19048
|
let id = `${targetLocale}__${key}`;
|
|
@@ -19091,7 +19091,7 @@
|
|
|
19091
19091
|
if (isString$1(arg2)) {
|
|
19092
19092
|
options.key = arg2;
|
|
19093
19093
|
}
|
|
19094
|
-
else if (isPlainObject$
|
|
19094
|
+
else if (isPlainObject$1(arg2)) {
|
|
19095
19095
|
Object.keys(arg2).forEach(key => {
|
|
19096
19096
|
if (NUMBER_FORMAT_OPTIONS_KEYS.includes(key)) {
|
|
19097
19097
|
overrides[key] = arg2[key];
|
|
@@ -19104,10 +19104,10 @@
|
|
|
19104
19104
|
if (isString$1(arg3)) {
|
|
19105
19105
|
options.locale = arg3;
|
|
19106
19106
|
}
|
|
19107
|
-
else if (isPlainObject$
|
|
19107
|
+
else if (isPlainObject$1(arg3)) {
|
|
19108
19108
|
overrides = arg3;
|
|
19109
19109
|
}
|
|
19110
|
-
if (isPlainObject$
|
|
19110
|
+
if (isPlainObject$1(arg4)) {
|
|
19111
19111
|
overrides = arg4;
|
|
19112
19112
|
}
|
|
19113
19113
|
return [options.key || '', value, options, overrides];
|
|
@@ -19166,14 +19166,14 @@
|
|
|
19166
19166
|
function createMessageContext(options = {}) {
|
|
19167
19167
|
const locale = options.locale;
|
|
19168
19168
|
const pluralIndex = getPluralIndex(options);
|
|
19169
|
-
const pluralRule = isObject
|
|
19169
|
+
const pluralRule = isObject(options.pluralRules) &&
|
|
19170
19170
|
isString$1(locale) &&
|
|
19171
|
-
isFunction
|
|
19171
|
+
isFunction(options.pluralRules[locale])
|
|
19172
19172
|
? options.pluralRules[locale]
|
|
19173
19173
|
: pluralDefault;
|
|
19174
|
-
const orgPluralRule = isObject
|
|
19174
|
+
const orgPluralRule = isObject(options.pluralRules) &&
|
|
19175
19175
|
isString$1(locale) &&
|
|
19176
|
-
isFunction
|
|
19176
|
+
isFunction(options.pluralRules[locale])
|
|
19177
19177
|
? pluralDefault
|
|
19178
19178
|
: undefined;
|
|
19179
19179
|
const plural = (messages) => {
|
|
@@ -19187,9 +19187,9 @@
|
|
|
19187
19187
|
const named = (key) => _named[key];
|
|
19188
19188
|
function message(key, useLinked) {
|
|
19189
19189
|
// prettier-ignore
|
|
19190
|
-
const msg = isFunction
|
|
19190
|
+
const msg = isFunction(options.messages)
|
|
19191
19191
|
? options.messages(key, !!useLinked)
|
|
19192
|
-
: isObject
|
|
19192
|
+
: isObject(options.messages)
|
|
19193
19193
|
? options.messages[key]
|
|
19194
19194
|
: false;
|
|
19195
19195
|
return !msg
|
|
@@ -19201,14 +19201,14 @@
|
|
|
19201
19201
|
const _modifier = (name) => options.modifiers
|
|
19202
19202
|
? options.modifiers[name]
|
|
19203
19203
|
: DEFAULT_MODIFIER;
|
|
19204
|
-
const normalize = isPlainObject$
|
|
19204
|
+
const normalize = isPlainObject$1(options.processor) && isFunction(options.processor.normalize)
|
|
19205
19205
|
? options.processor.normalize
|
|
19206
19206
|
: DEFAULT_NORMALIZE;
|
|
19207
|
-
const interpolate = isPlainObject$
|
|
19208
|
-
isFunction
|
|
19207
|
+
const interpolate = isPlainObject$1(options.processor) &&
|
|
19208
|
+
isFunction(options.processor.interpolate)
|
|
19209
19209
|
? options.processor.interpolate
|
|
19210
19210
|
: DEFAULT_INTERPOLATE;
|
|
19211
|
-
const type = isPlainObject$
|
|
19211
|
+
const type = isPlainObject$1(options.processor) && isString$1(options.processor.type)
|
|
19212
19212
|
? options.processor.type
|
|
19213
19213
|
: DEFAULT_MESSAGE_DATA_TYPE;
|
|
19214
19214
|
const linked = (key, ...args) => {
|
|
@@ -19216,7 +19216,7 @@
|
|
|
19216
19216
|
let type = 'text';
|
|
19217
19217
|
let modifier = '';
|
|
19218
19218
|
if (args.length === 1) {
|
|
19219
|
-
if (isObject
|
|
19219
|
+
if (isObject(arg1)) {
|
|
19220
19220
|
modifier = arg1.modifier || modifier;
|
|
19221
19221
|
type = arg1.type || type;
|
|
19222
19222
|
}
|
|
@@ -19235,7 +19235,7 @@
|
|
|
19235
19235
|
const ret = message(key, true)(ctx);
|
|
19236
19236
|
const msg =
|
|
19237
19237
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
19238
|
-
type === 'vnode' && isArray$
|
|
19238
|
+
type === 'vnode' && isArray$1(ret) && modifier
|
|
19239
19239
|
? ret[0]
|
|
19240
19240
|
: ret;
|
|
19241
19241
|
return modifier ? _modifier(modifier)(msg, type) : msg;
|
|
@@ -19255,7 +19255,7 @@
|
|
|
19255
19255
|
}
|
|
19256
19256
|
|
|
19257
19257
|
const NOOP_MESSAGE_FUNCTION = () => '';
|
|
19258
|
-
const isMessageFunction = (val) => isFunction
|
|
19258
|
+
const isMessageFunction = (val) => isFunction(val);
|
|
19259
19259
|
// implementation of `translate` function
|
|
19260
19260
|
function translate(context, ...args) {
|
|
19261
19261
|
const { fallbackFormat, postTranslation, unresolving, messageCompiler, fallbackLocale, messages } = context;
|
|
@@ -19280,7 +19280,7 @@
|
|
|
19280
19280
|
: null;
|
|
19281
19281
|
const enableDefaultMsg = fallbackFormat ||
|
|
19282
19282
|
(defaultMsgOrKey != null &&
|
|
19283
|
-
(isString$1(defaultMsgOrKey) || isFunction
|
|
19283
|
+
(isString$1(defaultMsgOrKey) || isFunction(defaultMsgOrKey)));
|
|
19284
19284
|
const locale = getLocale(context, options);
|
|
19285
19285
|
// escape params
|
|
19286
19286
|
escapeParameter && escapeParams(options);
|
|
@@ -19373,10 +19373,10 @@
|
|
|
19373
19373
|
return ret;
|
|
19374
19374
|
}
|
|
19375
19375
|
function escapeParams(options) {
|
|
19376
|
-
if (isArray$
|
|
19376
|
+
if (isArray$1(options.list)) {
|
|
19377
19377
|
options.list = options.list.map(item => isString$1(item) ? escapeHtml(item) : item);
|
|
19378
19378
|
}
|
|
19379
|
-
else if (isObject
|
|
19379
|
+
else if (isObject(options.named)) {
|
|
19380
19380
|
Object.keys(options.named).forEach(key => {
|
|
19381
19381
|
if (isString$1(options.named[key])) {
|
|
19382
19382
|
options.named[key] = escapeHtml(options.named[key]);
|
|
@@ -19565,10 +19565,10 @@
|
|
|
19565
19565
|
else if (isString$1(arg2)) {
|
|
19566
19566
|
options.default = arg2;
|
|
19567
19567
|
}
|
|
19568
|
-
else if (isPlainObject$
|
|
19568
|
+
else if (isPlainObject$1(arg2) && !isEmptyObject$1(arg2)) {
|
|
19569
19569
|
options.named = arg2;
|
|
19570
19570
|
}
|
|
19571
|
-
else if (isArray$
|
|
19571
|
+
else if (isArray$1(arg2)) {
|
|
19572
19572
|
options.list = arg2;
|
|
19573
19573
|
}
|
|
19574
19574
|
if (isNumber$1(arg3)) {
|
|
@@ -19577,7 +19577,7 @@
|
|
|
19577
19577
|
else if (isString$1(arg3)) {
|
|
19578
19578
|
options.default = arg3;
|
|
19579
19579
|
}
|
|
19580
|
-
else if (isPlainObject$
|
|
19580
|
+
else if (isPlainObject$1(arg3)) {
|
|
19581
19581
|
assign$2(options, arg3);
|
|
19582
19582
|
}
|
|
19583
19583
|
return [key, options];
|
|
@@ -19964,7 +19964,7 @@
|
|
|
19964
19964
|
*/
|
|
19965
19965
|
function handleFlatJson(obj) {
|
|
19966
19966
|
// check obj
|
|
19967
|
-
if (!isObject
|
|
19967
|
+
if (!isObject(obj)) {
|
|
19968
19968
|
return obj;
|
|
19969
19969
|
}
|
|
19970
19970
|
if (isMessageAST(obj)) {
|
|
@@ -19978,7 +19978,7 @@
|
|
|
19978
19978
|
// handle for normal json
|
|
19979
19979
|
if (!key.includes('.')) {
|
|
19980
19980
|
// recursive process value if value is also a object
|
|
19981
|
-
if (isObject
|
|
19981
|
+
if (isObject(obj[key])) {
|
|
19982
19982
|
handleFlatJson(obj[key]);
|
|
19983
19983
|
}
|
|
19984
19984
|
}
|
|
@@ -19996,7 +19996,7 @@
|
|
|
19996
19996
|
if (!(subKeys[i] in currentObj)) {
|
|
19997
19997
|
currentObj[subKeys[i]] = create$1();
|
|
19998
19998
|
}
|
|
19999
|
-
if (!isObject
|
|
19999
|
+
if (!isObject(currentObj[subKeys[i]])) {
|
|
20000
20000
|
(process.env.NODE_ENV !== 'production') &&
|
|
20001
20001
|
warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN, {
|
|
20002
20002
|
key: subKeys[i]
|
|
@@ -20025,7 +20025,7 @@
|
|
|
20025
20025
|
// recursive process value if value is also a object
|
|
20026
20026
|
if (!isMessageAST(currentObj)) {
|
|
20027
20027
|
const target = currentObj[subKeys[lastIndex]];
|
|
20028
|
-
if (isObject
|
|
20028
|
+
if (isObject(target)) {
|
|
20029
20029
|
handleFlatJson(target);
|
|
20030
20030
|
}
|
|
20031
20031
|
}
|
|
@@ -20036,13 +20036,13 @@
|
|
|
20036
20036
|
function getLocaleMessages(locale, options) {
|
|
20037
20037
|
const { messages, __i18n, messageResolver, flatJson } = options;
|
|
20038
20038
|
// prettier-ignore
|
|
20039
|
-
const ret = (isPlainObject$
|
|
20039
|
+
const ret = (isPlainObject$1(messages)
|
|
20040
20040
|
? messages
|
|
20041
|
-
: isArray$
|
|
20041
|
+
: isArray$1(__i18n)
|
|
20042
20042
|
? create$1()
|
|
20043
20043
|
: { [locale]: create$1() });
|
|
20044
20044
|
// merge locale messages of i18n custom block
|
|
20045
|
-
if (isArray$
|
|
20045
|
+
if (isArray$1(__i18n)) {
|
|
20046
20046
|
__i18n.forEach(custom => {
|
|
20047
20047
|
if ('locale' in custom && 'resource' in custom) {
|
|
20048
20048
|
const { locale, resource } = custom;
|
|
@@ -20074,7 +20074,7 @@
|
|
|
20074
20074
|
}
|
|
20075
20075
|
function adjustI18nResources(gl, options, componentOptions) {
|
|
20076
20076
|
// prettier-ignore
|
|
20077
|
-
let messages = isObject
|
|
20077
|
+
let messages = isObject(options.messages)
|
|
20078
20078
|
? options.messages
|
|
20079
20079
|
: create$1();
|
|
20080
20080
|
if ('__i18nGlobal' in componentOptions) {
|
|
@@ -20092,7 +20092,7 @@
|
|
|
20092
20092
|
}
|
|
20093
20093
|
{
|
|
20094
20094
|
// merge datetime formats
|
|
20095
|
-
if (isObject
|
|
20095
|
+
if (isObject(options.datetimeFormats)) {
|
|
20096
20096
|
const locales = Object.keys(options.datetimeFormats);
|
|
20097
20097
|
if (locales.length) {
|
|
20098
20098
|
locales.forEach(locale => {
|
|
@@ -20101,7 +20101,7 @@
|
|
|
20101
20101
|
}
|
|
20102
20102
|
}
|
|
20103
20103
|
// merge number formats
|
|
20104
|
-
if (isObject
|
|
20104
|
+
if (isObject(options.numberFormats)) {
|
|
20105
20105
|
const locales = Object.keys(options.numberFormats);
|
|
20106
20106
|
if (locales.length) {
|
|
20107
20107
|
locales.forEach(locale => {
|
|
@@ -20160,19 +20160,19 @@
|
|
|
20160
20160
|
__root && _inheritLocale
|
|
20161
20161
|
? __root.fallbackLocale.value
|
|
20162
20162
|
: isString$1(options.fallbackLocale) ||
|
|
20163
|
-
isArray$
|
|
20164
|
-
isPlainObject$
|
|
20163
|
+
isArray$1(options.fallbackLocale) ||
|
|
20164
|
+
isPlainObject$1(options.fallbackLocale) ||
|
|
20165
20165
|
options.fallbackLocale === false
|
|
20166
20166
|
? options.fallbackLocale
|
|
20167
20167
|
: _locale.value);
|
|
20168
20168
|
const _messages = _ref(getLocaleMessages(_locale.value, options));
|
|
20169
20169
|
// prettier-ignore
|
|
20170
|
-
const _datetimeFormats = _ref(isPlainObject$
|
|
20170
|
+
const _datetimeFormats = _ref(isPlainObject$1(options.datetimeFormats)
|
|
20171
20171
|
? options.datetimeFormats
|
|
20172
20172
|
: { [_locale.value]: {} })
|
|
20173
20173
|
;
|
|
20174
20174
|
// prettier-ignore
|
|
20175
|
-
const _numberFormats = _ref(isPlainObject$
|
|
20175
|
+
const _numberFormats = _ref(isPlainObject$1(options.numberFormats)
|
|
20176
20176
|
? options.numberFormats
|
|
20177
20177
|
: { [_locale.value]: {} })
|
|
20178
20178
|
;
|
|
@@ -20198,12 +20198,12 @@
|
|
|
20198
20198
|
// configure fall back to root
|
|
20199
20199
|
let _fallbackFormat = !!options.fallbackFormat;
|
|
20200
20200
|
// runtime missing
|
|
20201
|
-
let _missing = isFunction
|
|
20202
|
-
let _runtimeMissing = isFunction
|
|
20201
|
+
let _missing = isFunction(options.missing) ? options.missing : null;
|
|
20202
|
+
let _runtimeMissing = isFunction(options.missing)
|
|
20203
20203
|
? defineCoreMissingHandler(options.missing)
|
|
20204
20204
|
: null;
|
|
20205
20205
|
// postTranslation handler
|
|
20206
|
-
let _postTranslation = isFunction
|
|
20206
|
+
let _postTranslation = isFunction(options.postTranslation)
|
|
20207
20207
|
? options.postTranslation
|
|
20208
20208
|
: null;
|
|
20209
20209
|
// prettier-ignore
|
|
@@ -20217,7 +20217,7 @@
|
|
|
20217
20217
|
// prettier-ignore
|
|
20218
20218
|
const _modifiers = __root
|
|
20219
20219
|
? __root.modifiers
|
|
20220
|
-
: isPlainObject$
|
|
20220
|
+
: isPlainObject$1(options.modifiers)
|
|
20221
20221
|
? options.modifiers
|
|
20222
20222
|
: {};
|
|
20223
20223
|
// pluralRules
|
|
@@ -20249,15 +20249,15 @@
|
|
|
20249
20249
|
{
|
|
20250
20250
|
ctxOptions.datetimeFormats = _datetimeFormats.value;
|
|
20251
20251
|
ctxOptions.numberFormats = _numberFormats.value;
|
|
20252
|
-
ctxOptions.__datetimeFormatters = isPlainObject$
|
|
20252
|
+
ctxOptions.__datetimeFormatters = isPlainObject$1(_context)
|
|
20253
20253
|
? _context.__datetimeFormatters
|
|
20254
20254
|
: undefined;
|
|
20255
|
-
ctxOptions.__numberFormatters = isPlainObject$
|
|
20255
|
+
ctxOptions.__numberFormatters = isPlainObject$1(_context)
|
|
20256
20256
|
? _context.__numberFormatters
|
|
20257
20257
|
: undefined;
|
|
20258
20258
|
}
|
|
20259
20259
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
20260
|
-
ctxOptions.__v_emitter = isPlainObject$
|
|
20260
|
+
ctxOptions.__v_emitter = isPlainObject$1(_context)
|
|
20261
20261
|
? _context.__v_emitter
|
|
20262
20262
|
: undefined;
|
|
20263
20263
|
}
|
|
@@ -20303,7 +20303,7 @@
|
|
|
20303
20303
|
const numberFormats = /* #__PURE__*/ vue.computed(() => _numberFormats.value);
|
|
20304
20304
|
// getPostTranslationHandler
|
|
20305
20305
|
function getPostTranslationHandler() {
|
|
20306
|
-
return isFunction
|
|
20306
|
+
return isFunction(_postTranslation) ? _postTranslation : null;
|
|
20307
20307
|
}
|
|
20308
20308
|
// setPostTranslationHandler
|
|
20309
20309
|
function setPostTranslationHandler(handler) {
|
|
@@ -20396,18 +20396,18 @@
|
|
|
20396
20396
|
// rt
|
|
20397
20397
|
function rt(...args) {
|
|
20398
20398
|
const [arg1, arg2, arg3] = args;
|
|
20399
|
-
if (arg3 && !isObject
|
|
20399
|
+
if (arg3 && !isObject(arg3)) {
|
|
20400
20400
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
20401
20401
|
}
|
|
20402
20402
|
return t(...[arg1, arg2, assign$2({ resolvedMessage: true }, arg3 || {})]);
|
|
20403
20403
|
}
|
|
20404
20404
|
// d
|
|
20405
20405
|
function d(...args) {
|
|
20406
|
-
return wrapWithDeps(context => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), 'datetime format', root => Reflect.apply(root.d, root, [...args]), () => MISSING_RESOLVE_VALUE, val => isString$1(val) || isArray$
|
|
20406
|
+
return wrapWithDeps(context => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), 'datetime format', root => Reflect.apply(root.d, root, [...args]), () => MISSING_RESOLVE_VALUE, val => isString$1(val) || isArray$1(val));
|
|
20407
20407
|
}
|
|
20408
20408
|
// n
|
|
20409
20409
|
function n(...args) {
|
|
20410
|
-
return wrapWithDeps(context => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), 'number format', root => Reflect.apply(root.n, root, [...args]), () => MISSING_RESOLVE_VALUE, val => isString$1(val) || isArray$
|
|
20410
|
+
return wrapWithDeps(context => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), 'number format', root => Reflect.apply(root.n, root, [...args]), () => MISSING_RESOLVE_VALUE, val => isString$1(val) || isArray$1(val));
|
|
20411
20411
|
}
|
|
20412
20412
|
// for custom processor
|
|
20413
20413
|
function normalize(values) {
|
|
@@ -20434,15 +20434,15 @@
|
|
|
20434
20434
|
_context.processor = null;
|
|
20435
20435
|
}
|
|
20436
20436
|
return ret;
|
|
20437
|
-
}, () => parseTranslateArgs(...args), 'translate', root => root[TranslateVNodeSymbol](...args), key => [createTextNode(key)], val => isArray$
|
|
20437
|
+
}, () => parseTranslateArgs(...args), 'translate', root => root[TranslateVNodeSymbol](...args), key => [createTextNode(key)], val => isArray$1(val));
|
|
20438
20438
|
}
|
|
20439
20439
|
// numberParts, using for `i18n-n` component
|
|
20440
20440
|
function numberParts(...args) {
|
|
20441
|
-
return wrapWithDeps(context => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), 'number format', root => root[NumberPartsSymbol](...args), NOOP_RETURN_ARRAY, val => isString$1(val) || isArray$
|
|
20441
|
+
return wrapWithDeps(context => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), 'number format', root => root[NumberPartsSymbol](...args), NOOP_RETURN_ARRAY, val => isString$1(val) || isArray$1(val));
|
|
20442
20442
|
}
|
|
20443
20443
|
// datetimeParts, using for `i18n-d` component
|
|
20444
20444
|
function datetimeParts(...args) {
|
|
20445
|
-
return wrapWithDeps(context => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), 'datetime format', root => root[DatetimePartsSymbol](...args), NOOP_RETURN_ARRAY, val => isString$1(val) || isArray$
|
|
20445
|
+
return wrapWithDeps(context => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), 'datetime format', root => root[DatetimePartsSymbol](...args), NOOP_RETURN_ARRAY, val => isString$1(val) || isArray$1(val));
|
|
20446
20446
|
}
|
|
20447
20447
|
function setPluralRules(rules) {
|
|
20448
20448
|
_pluralRules = rules;
|
|
@@ -20857,13 +20857,13 @@
|
|
|
20857
20857
|
const value = {};
|
|
20858
20858
|
Object.keys(messages).forEach((key) => {
|
|
20859
20859
|
const v = messages[key];
|
|
20860
|
-
if (isFunction
|
|
20860
|
+
if (isFunction(v) && 'source' in v) {
|
|
20861
20861
|
value[key] = getMessageFunctionDetails(v);
|
|
20862
20862
|
}
|
|
20863
20863
|
else if (isMessageAST(v) && v.loc && v.loc.source) {
|
|
20864
20864
|
value[key] = v.loc.source;
|
|
20865
20865
|
}
|
|
20866
|
-
else if (isObject
|
|
20866
|
+
else if (isObject(v)) {
|
|
20867
20867
|
value[key] = getLocaleMessageValue(v);
|
|
20868
20868
|
}
|
|
20869
20869
|
else {
|
|
@@ -21055,8 +21055,8 @@
|
|
|
21055
21055
|
}
|
|
21056
21056
|
else if (field === 'fallbackLocale' &&
|
|
21057
21057
|
(isString$1(payload.state.value) ||
|
|
21058
|
-
isArray$
|
|
21059
|
-
isObject
|
|
21058
|
+
isArray$1(payload.state.value) ||
|
|
21059
|
+
isObject(payload.state.value))) {
|
|
21060
21060
|
composer.fallbackLocale.value = payload.state.value;
|
|
21061
21061
|
}
|
|
21062
21062
|
else if (field === 'inheritLocale' && isBoolean$1(payload.state.value)) {
|
|
@@ -21074,12 +21074,12 @@
|
|
|
21074
21074
|
function convertComposerOptions(options) {
|
|
21075
21075
|
const locale = isString$1(options.locale) ? options.locale : DEFAULT_LOCALE;
|
|
21076
21076
|
const fallbackLocale = isString$1(options.fallbackLocale) ||
|
|
21077
|
-
isArray$
|
|
21078
|
-
isPlainObject$
|
|
21077
|
+
isArray$1(options.fallbackLocale) ||
|
|
21078
|
+
isPlainObject$1(options.fallbackLocale) ||
|
|
21079
21079
|
options.fallbackLocale === false
|
|
21080
21080
|
? options.fallbackLocale
|
|
21081
21081
|
: locale;
|
|
21082
|
-
const missing = isFunction
|
|
21082
|
+
const missing = isFunction(options.missing) ? options.missing : undefined;
|
|
21083
21083
|
const missingWarn = isBoolean$1(options.silentTranslationWarn) ||
|
|
21084
21084
|
isRegExp$1(options.silentTranslationWarn)
|
|
21085
21085
|
? !options.silentTranslationWarn
|
|
@@ -21092,9 +21092,9 @@
|
|
|
21092
21092
|
? options.fallbackRoot
|
|
21093
21093
|
: true;
|
|
21094
21094
|
const fallbackFormat = !!options.formatFallbackMessages;
|
|
21095
|
-
const modifiers = isPlainObject$
|
|
21095
|
+
const modifiers = isPlainObject$1(options.modifiers) ? options.modifiers : {};
|
|
21096
21096
|
const pluralizationRules = options.pluralizationRules;
|
|
21097
|
-
const postTranslation = isFunction
|
|
21097
|
+
const postTranslation = isFunction(options.postTranslation)
|
|
21098
21098
|
? options.postTranslation
|
|
21099
21099
|
: undefined;
|
|
21100
21100
|
const warnHtmlMessage = isString$1(options.warnHtmlInMessage)
|
|
@@ -21103,7 +21103,7 @@
|
|
|
21103
21103
|
const escapeParameter = !!options.escapeParameterHtml;
|
|
21104
21104
|
const inheritLocale = isBoolean$1(options.sync) ? options.sync : true;
|
|
21105
21105
|
let messages = options.messages;
|
|
21106
|
-
if (isPlainObject$
|
|
21106
|
+
if (isPlainObject$1(options.sharedMessages)) {
|
|
21107
21107
|
const sharedMessages = options.sharedMessages;
|
|
21108
21108
|
const locales = Object.keys(sharedMessages);
|
|
21109
21109
|
messages = locales.reduce((messages, locale) => {
|
|
@@ -21567,7 +21567,7 @@
|
|
|
21567
21567
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21568
21568
|
const children = i18n[TranslateVNodeSymbol](props.keypath, arg, options);
|
|
21569
21569
|
const assignedAttrs = assign$2(create$1(), attrs);
|
|
21570
|
-
const tag = isString$1(props.tag) || isObject
|
|
21570
|
+
const tag = isString$1(props.tag) || isObject(props.tag)
|
|
21571
21571
|
? props.tag
|
|
21572
21572
|
: getFragmentableTag();
|
|
21573
21573
|
return vue.h(tag, assignedAttrs, children);
|
|
@@ -21630,7 +21630,7 @@
|
|
|
21630
21630
|
const Translation = TranslationImpl;
|
|
21631
21631
|
|
|
21632
21632
|
function isVNode(target) {
|
|
21633
|
-
return isArray$
|
|
21633
|
+
return isArray$1(target) && !isString$1(target[0]);
|
|
21634
21634
|
}
|
|
21635
21635
|
function renderFormatter(props, context, slotKeys, partFormatter) {
|
|
21636
21636
|
const { slots, attrs } = context;
|
|
@@ -21643,7 +21643,7 @@
|
|
|
21643
21643
|
if (isString$1(props.format)) {
|
|
21644
21644
|
options.key = props.format;
|
|
21645
21645
|
}
|
|
21646
|
-
else if (isObject
|
|
21646
|
+
else if (isObject(props.format)) {
|
|
21647
21647
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21648
21648
|
if (isString$1(props.format.key)) {
|
|
21649
21649
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -21658,7 +21658,7 @@
|
|
|
21658
21658
|
}
|
|
21659
21659
|
const parts = partFormatter(...[props.value, options, overrides]);
|
|
21660
21660
|
let children = [options.key];
|
|
21661
|
-
if (isArray$
|
|
21661
|
+
if (isArray$1(parts)) {
|
|
21662
21662
|
children = parts.map((part, index) => {
|
|
21663
21663
|
const slot = slots[part.type];
|
|
21664
21664
|
const node = slot
|
|
@@ -21674,7 +21674,7 @@
|
|
|
21674
21674
|
children = [parts];
|
|
21675
21675
|
}
|
|
21676
21676
|
const assignedAttrs = assign$2(create$1(), attrs);
|
|
21677
|
-
const tag = isString$1(props.tag) || isObject
|
|
21677
|
+
const tag = isString$1(props.tag) || isObject(props.tag)
|
|
21678
21678
|
? props.tag
|
|
21679
21679
|
: getFragmentableTag();
|
|
21680
21680
|
return vue.h(tag, assignedAttrs, children);
|
|
@@ -21807,7 +21807,7 @@
|
|
|
21807
21807
|
if (isString$1(value)) {
|
|
21808
21808
|
return { path: value };
|
|
21809
21809
|
}
|
|
21810
|
-
else if (isPlainObject$
|
|
21810
|
+
else if (isPlainObject$1(value)) {
|
|
21811
21811
|
if (!('path' in value)) {
|
|
21812
21812
|
throw createI18nError(I18nErrorCodes.REQUIRED_VALUE, 'path');
|
|
21813
21813
|
}
|
|
@@ -21833,8 +21833,8 @@
|
|
|
21833
21833
|
return [path, named, options];
|
|
21834
21834
|
}
|
|
21835
21835
|
|
|
21836
|
-
function apply
|
|
21837
|
-
const pluginOptions = isPlainObject$
|
|
21836
|
+
function apply(app, i18n, ...options) {
|
|
21837
|
+
const pluginOptions = isPlainObject$1(options[0])
|
|
21838
21838
|
? options[0]
|
|
21839
21839
|
: {};
|
|
21840
21840
|
const globalInstall = isBoolean$1(pluginOptions.globalInstall)
|
|
@@ -21903,7 +21903,7 @@
|
|
|
21903
21903
|
app.__VUE_I18N_SYMBOL__ = symbol;
|
|
21904
21904
|
app.provide(app.__VUE_I18N_SYMBOL__, i18n);
|
|
21905
21905
|
// set composer & vuei18n extend hook options from plugin options
|
|
21906
|
-
if (isPlainObject$
|
|
21906
|
+
if (isPlainObject$1(options[0])) {
|
|
21907
21907
|
const opts = options[0];
|
|
21908
21908
|
i18n.__composerExtend =
|
|
21909
21909
|
opts.__composerExtend;
|
|
@@ -21917,7 +21917,7 @@
|
|
|
21917
21917
|
}
|
|
21918
21918
|
// install built-in components and directive
|
|
21919
21919
|
if (__VUE_I18N_FULL_INSTALL__) {
|
|
21920
|
-
apply
|
|
21920
|
+
apply(app, i18n, ...options);
|
|
21921
21921
|
}
|
|
21922
21922
|
// setup mixin for Legacy API
|
|
21923
21923
|
if (__VUE_I18N_LEGACY_API__ && __legacyMode) {
|
|
@@ -26615,7 +26615,7 @@
|
|
|
26615
26615
|
return Object.getPrototypeOf(payload) === Object.prototype;
|
|
26616
26616
|
};
|
|
26617
26617
|
var isEmptyObject = (payload) => isPlainObject2(payload) && Object.keys(payload).length === 0;
|
|
26618
|
-
var isArray
|
|
26618
|
+
var isArray = (payload) => Array.isArray(payload);
|
|
26619
26619
|
var isString = (payload) => typeof payload === "string";
|
|
26620
26620
|
var isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
|
|
26621
26621
|
var isBoolean = (payload) => typeof payload === "boolean";
|
|
@@ -26629,7 +26629,7 @@
|
|
|
26629
26629
|
var isPrimitive2 = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
|
|
26630
26630
|
var isBigint = (payload) => typeof payload === "bigint";
|
|
26631
26631
|
var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
26632
|
-
var isTypedArray
|
|
26632
|
+
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
26633
26633
|
var isURL = (payload) => payload instanceof URL;
|
|
26634
26634
|
|
|
26635
26635
|
// ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.js
|
|
@@ -26765,7 +26765,7 @@
|
|
|
26765
26765
|
obj[ctor.name] = ctor;
|
|
26766
26766
|
return obj;
|
|
26767
26767
|
}, {});
|
|
26768
|
-
var typedArrayRule = compositeTransformation(isTypedArray
|
|
26768
|
+
var typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
|
|
26769
26769
|
const ctor = constructorToName[a[1]];
|
|
26770
26770
|
if (!ctor) {
|
|
26771
26771
|
throw new Error("Trying to deserialize unknown typed array");
|
|
@@ -26837,7 +26837,7 @@
|
|
|
26837
26837
|
simpleRulesByAnnotation[rule.annotation] = rule;
|
|
26838
26838
|
});
|
|
26839
26839
|
var untransformValue = (json, type, superJson) => {
|
|
26840
|
-
if (isArray
|
|
26840
|
+
if (isArray(type)) {
|
|
26841
26841
|
switch (type[0]) {
|
|
26842
26842
|
case "symbol":
|
|
26843
26843
|
return symbolRule.untransform(json, type, superJson);
|
|
@@ -26914,7 +26914,7 @@
|
|
|
26914
26914
|
let parent = object;
|
|
26915
26915
|
for (let i = 0; i < path.length - 1; i++) {
|
|
26916
26916
|
const key = path[i];
|
|
26917
|
-
if (isArray
|
|
26917
|
+
if (isArray(parent)) {
|
|
26918
26918
|
const index = +key;
|
|
26919
26919
|
parent = parent[index];
|
|
26920
26920
|
} else if (isPlainObject2(parent)) {
|
|
@@ -26941,7 +26941,7 @@
|
|
|
26941
26941
|
}
|
|
26942
26942
|
}
|
|
26943
26943
|
const lastKey = path[path.length - 1];
|
|
26944
|
-
if (isArray
|
|
26944
|
+
if (isArray(parent)) {
|
|
26945
26945
|
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
26946
26946
|
} else if (isPlainObject2(parent)) {
|
|
26947
26947
|
parent[lastKey] = mapper(parent[lastKey]);
|
|
@@ -26981,7 +26981,7 @@
|
|
|
26981
26981
|
if (!tree) {
|
|
26982
26982
|
return;
|
|
26983
26983
|
}
|
|
26984
|
-
if (!isArray
|
|
26984
|
+
if (!isArray(tree)) {
|
|
26985
26985
|
forEach(tree, (subtree, key) => traverse(subtree, walker2, [...origin, ...parsePath(key)]));
|
|
26986
26986
|
return;
|
|
26987
26987
|
}
|
|
@@ -27006,7 +27006,7 @@
|
|
|
27006
27006
|
plain = setDeep(plain, identicalObjectPath, () => object);
|
|
27007
27007
|
});
|
|
27008
27008
|
}
|
|
27009
|
-
if (isArray
|
|
27009
|
+
if (isArray(annotations)) {
|
|
27010
27010
|
const [root, other] = annotations;
|
|
27011
27011
|
root.forEach((identicalPath) => {
|
|
27012
27012
|
plain = setDeep(plain, parsePath(identicalPath), () => plain);
|
|
@@ -27019,7 +27019,7 @@
|
|
|
27019
27019
|
}
|
|
27020
27020
|
return plain;
|
|
27021
27021
|
}
|
|
27022
|
-
var isDeep = (object, superJson) => isPlainObject2(object) || isArray
|
|
27022
|
+
var isDeep = (object, superJson) => isPlainObject2(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
27023
27023
|
function addIdentity(object, path, identities) {
|
|
27024
27024
|
const existingSet = identities.get(object);
|
|
27025
27025
|
if (existingSet) {
|
|
@@ -27087,7 +27087,7 @@
|
|
|
27087
27087
|
}
|
|
27088
27088
|
const transformationResult = transformValue(object, superJson);
|
|
27089
27089
|
const transformed = (_a25 = transformationResult == null ? void 0 : transformationResult.value) != null ? _a25 : object;
|
|
27090
|
-
const transformedValue = isArray
|
|
27090
|
+
const transformedValue = isArray(transformed) ? [] : {};
|
|
27091
27091
|
const innerAnnotations = {};
|
|
27092
27092
|
forEach(transformed, (value, index) => {
|
|
27093
27093
|
if (index === "__proto__" || index === "constructor" || index === "prototype") {
|
|
@@ -27095,7 +27095,7 @@
|
|
|
27095
27095
|
}
|
|
27096
27096
|
const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
|
|
27097
27097
|
transformedValue[index] = recursiveResult.transformedValue;
|
|
27098
|
-
if (isArray
|
|
27098
|
+
if (isArray(recursiveResult.annotations)) {
|
|
27099
27099
|
innerAnnotations[index] = recursiveResult.annotations;
|
|
27100
27100
|
} else if (isPlainObject2(recursiveResult.annotations)) {
|
|
27101
27101
|
forEach(recursiveResult.annotations, (tree, key) => {
|
|
@@ -27372,7 +27372,7 @@
|
|
|
27372
27372
|
const setActivePinia = (pinia) => (activePinia = pinia);
|
|
27373
27373
|
const piniaSymbol = ((process.env.NODE_ENV !== 'production') ? Symbol('pinia') : /* istanbul ignore next */ Symbol());
|
|
27374
27374
|
|
|
27375
|
-
function isPlainObject
|
|
27375
|
+
function isPlainObject(
|
|
27376
27376
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27377
27377
|
o) {
|
|
27378
27378
|
return (o &&
|
|
@@ -28388,8 +28388,8 @@
|
|
|
28388
28388
|
continue;
|
|
28389
28389
|
}
|
|
28390
28390
|
const targetValue = newState[key];
|
|
28391
|
-
if (isPlainObject
|
|
28392
|
-
isPlainObject
|
|
28391
|
+
if (isPlainObject(targetValue) &&
|
|
28392
|
+
isPlainObject(subPatch) &&
|
|
28393
28393
|
!vue.isRef(subPatch) &&
|
|
28394
28394
|
!vue.isReactive(subPatch)) {
|
|
28395
28395
|
newState[key] = patchObject(targetValue, subPatch);
|
|
@@ -28450,8 +28450,8 @@
|
|
|
28450
28450
|
continue;
|
|
28451
28451
|
const subPatch = patchToApply[key];
|
|
28452
28452
|
const targetValue = target[key];
|
|
28453
|
-
if (isPlainObject
|
|
28454
|
-
isPlainObject
|
|
28453
|
+
if (isPlainObject(targetValue) &&
|
|
28454
|
+
isPlainObject(subPatch) &&
|
|
28455
28455
|
target.hasOwnProperty(key) &&
|
|
28456
28456
|
!vue.isRef(subPatch) &&
|
|
28457
28457
|
!vue.isReactive(subPatch)) {
|
|
@@ -28477,7 +28477,7 @@
|
|
|
28477
28477
|
* @returns true if `obj` should be hydrated
|
|
28478
28478
|
*/
|
|
28479
28479
|
function shouldHydrate(obj) {
|
|
28480
|
-
return (!isPlainObject
|
|
28480
|
+
return (!isPlainObject(obj) ||
|
|
28481
28481
|
!Object.prototype.hasOwnProperty.call(obj, skipHydrateSymbol));
|
|
28482
28482
|
}
|
|
28483
28483
|
const { assign } = Object;
|
|
@@ -28816,8 +28816,8 @@
|
|
|
28816
28816
|
const newStateTarget = newStore.$state[stateKey];
|
|
28817
28817
|
const oldStateSource = store.$state[stateKey];
|
|
28818
28818
|
if (typeof newStateTarget === 'object' &&
|
|
28819
|
-
isPlainObject
|
|
28820
|
-
isPlainObject
|
|
28819
|
+
isPlainObject(newStateTarget) &&
|
|
28820
|
+
isPlainObject(oldStateSource)) {
|
|
28821
28821
|
patchObject(newStateTarget, oldStateSource);
|
|
28822
28822
|
}
|
|
28823
28823
|
else {
|
|
@@ -42821,2168 +42821,6 @@
|
|
|
42821
42821
|
];
|
|
42822
42822
|
};
|
|
42823
42823
|
|
|
42824
|
-
/** Detect free variable `global` from Node.js. */
|
|
42825
|
-
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
42826
|
-
|
|
42827
|
-
/** Detect free variable `self`. */
|
|
42828
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
42829
|
-
|
|
42830
|
-
/** Used as a reference to the global object. */
|
|
42831
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
42832
|
-
|
|
42833
|
-
/** Built-in value references. */
|
|
42834
|
-
var Symbol$1 = root.Symbol;
|
|
42835
|
-
|
|
42836
|
-
/** Used for built-in method references. */
|
|
42837
|
-
var objectProto$9 = Object.prototype;
|
|
42838
|
-
|
|
42839
|
-
/** Used to check objects for own properties. */
|
|
42840
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
42841
|
-
|
|
42842
|
-
/**
|
|
42843
|
-
* Used to resolve the
|
|
42844
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
42845
|
-
* of values.
|
|
42846
|
-
*/
|
|
42847
|
-
var nativeObjectToString$1 = objectProto$9.toString;
|
|
42848
|
-
|
|
42849
|
-
/** Built-in value references. */
|
|
42850
|
-
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
42851
|
-
|
|
42852
|
-
/**
|
|
42853
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
42854
|
-
*
|
|
42855
|
-
* @private
|
|
42856
|
-
* @param {*} value The value to query.
|
|
42857
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
42858
|
-
*/
|
|
42859
|
-
function getRawTag(value) {
|
|
42860
|
-
var isOwn = hasOwnProperty$7.call(value, symToStringTag$1),
|
|
42861
|
-
tag = value[symToStringTag$1];
|
|
42862
|
-
|
|
42863
|
-
try {
|
|
42864
|
-
value[symToStringTag$1] = undefined;
|
|
42865
|
-
var unmasked = true;
|
|
42866
|
-
} catch (e) {}
|
|
42867
|
-
|
|
42868
|
-
var result = nativeObjectToString$1.call(value);
|
|
42869
|
-
if (unmasked) {
|
|
42870
|
-
if (isOwn) {
|
|
42871
|
-
value[symToStringTag$1] = tag;
|
|
42872
|
-
} else {
|
|
42873
|
-
delete value[symToStringTag$1];
|
|
42874
|
-
}
|
|
42875
|
-
}
|
|
42876
|
-
return result;
|
|
42877
|
-
}
|
|
42878
|
-
|
|
42879
|
-
/** Used for built-in method references. */
|
|
42880
|
-
var objectProto$8 = Object.prototype;
|
|
42881
|
-
|
|
42882
|
-
/**
|
|
42883
|
-
* Used to resolve the
|
|
42884
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
42885
|
-
* of values.
|
|
42886
|
-
*/
|
|
42887
|
-
var nativeObjectToString = objectProto$8.toString;
|
|
42888
|
-
|
|
42889
|
-
/**
|
|
42890
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
42891
|
-
*
|
|
42892
|
-
* @private
|
|
42893
|
-
* @param {*} value The value to convert.
|
|
42894
|
-
* @returns {string} Returns the converted string.
|
|
42895
|
-
*/
|
|
42896
|
-
function objectToString(value) {
|
|
42897
|
-
return nativeObjectToString.call(value);
|
|
42898
|
-
}
|
|
42899
|
-
|
|
42900
|
-
/** `Object#toString` result references. */
|
|
42901
|
-
var nullTag = '[object Null]',
|
|
42902
|
-
undefinedTag = '[object Undefined]';
|
|
42903
|
-
|
|
42904
|
-
/** Built-in value references. */
|
|
42905
|
-
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
42906
|
-
|
|
42907
|
-
/**
|
|
42908
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
42909
|
-
*
|
|
42910
|
-
* @private
|
|
42911
|
-
* @param {*} value The value to query.
|
|
42912
|
-
* @returns {string} Returns the `toStringTag`.
|
|
42913
|
-
*/
|
|
42914
|
-
function baseGetTag(value) {
|
|
42915
|
-
if (value == null) {
|
|
42916
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
42917
|
-
}
|
|
42918
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
42919
|
-
? getRawTag(value)
|
|
42920
|
-
: objectToString(value);
|
|
42921
|
-
}
|
|
42922
|
-
|
|
42923
|
-
/**
|
|
42924
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
42925
|
-
* and has a `typeof` result of "object".
|
|
42926
|
-
*
|
|
42927
|
-
* @static
|
|
42928
|
-
* @memberOf _
|
|
42929
|
-
* @since 4.0.0
|
|
42930
|
-
* @category Lang
|
|
42931
|
-
* @param {*} value The value to check.
|
|
42932
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
42933
|
-
* @example
|
|
42934
|
-
*
|
|
42935
|
-
* _.isObjectLike({});
|
|
42936
|
-
* // => true
|
|
42937
|
-
*
|
|
42938
|
-
* _.isObjectLike([1, 2, 3]);
|
|
42939
|
-
* // => true
|
|
42940
|
-
*
|
|
42941
|
-
* _.isObjectLike(_.noop);
|
|
42942
|
-
* // => false
|
|
42943
|
-
*
|
|
42944
|
-
* _.isObjectLike(null);
|
|
42945
|
-
* // => false
|
|
42946
|
-
*/
|
|
42947
|
-
function isObjectLike(value) {
|
|
42948
|
-
return value != null && typeof value == 'object';
|
|
42949
|
-
}
|
|
42950
|
-
|
|
42951
|
-
/**
|
|
42952
|
-
* Checks if `value` is classified as an `Array` object.
|
|
42953
|
-
*
|
|
42954
|
-
* @static
|
|
42955
|
-
* @memberOf _
|
|
42956
|
-
* @since 0.1.0
|
|
42957
|
-
* @category Lang
|
|
42958
|
-
* @param {*} value The value to check.
|
|
42959
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
42960
|
-
* @example
|
|
42961
|
-
*
|
|
42962
|
-
* _.isArray([1, 2, 3]);
|
|
42963
|
-
* // => true
|
|
42964
|
-
*
|
|
42965
|
-
* _.isArray(document.body.children);
|
|
42966
|
-
* // => false
|
|
42967
|
-
*
|
|
42968
|
-
* _.isArray('abc');
|
|
42969
|
-
* // => false
|
|
42970
|
-
*
|
|
42971
|
-
* _.isArray(_.noop);
|
|
42972
|
-
* // => false
|
|
42973
|
-
*/
|
|
42974
|
-
var isArray = Array.isArray;
|
|
42975
|
-
|
|
42976
|
-
/**
|
|
42977
|
-
* Checks if `value` is the
|
|
42978
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
42979
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
42980
|
-
*
|
|
42981
|
-
* @static
|
|
42982
|
-
* @memberOf _
|
|
42983
|
-
* @since 0.1.0
|
|
42984
|
-
* @category Lang
|
|
42985
|
-
* @param {*} value The value to check.
|
|
42986
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
42987
|
-
* @example
|
|
42988
|
-
*
|
|
42989
|
-
* _.isObject({});
|
|
42990
|
-
* // => true
|
|
42991
|
-
*
|
|
42992
|
-
* _.isObject([1, 2, 3]);
|
|
42993
|
-
* // => true
|
|
42994
|
-
*
|
|
42995
|
-
* _.isObject(_.noop);
|
|
42996
|
-
* // => true
|
|
42997
|
-
*
|
|
42998
|
-
* _.isObject(null);
|
|
42999
|
-
* // => false
|
|
43000
|
-
*/
|
|
43001
|
-
function isObject(value) {
|
|
43002
|
-
var type = typeof value;
|
|
43003
|
-
return value != null && (type == 'object' || type == 'function');
|
|
43004
|
-
}
|
|
43005
|
-
|
|
43006
|
-
/**
|
|
43007
|
-
* This method returns the first argument it receives.
|
|
43008
|
-
*
|
|
43009
|
-
* @static
|
|
43010
|
-
* @since 0.1.0
|
|
43011
|
-
* @memberOf _
|
|
43012
|
-
* @category Util
|
|
43013
|
-
* @param {*} value Any value.
|
|
43014
|
-
* @returns {*} Returns `value`.
|
|
43015
|
-
* @example
|
|
43016
|
-
*
|
|
43017
|
-
* var object = { 'a': 1 };
|
|
43018
|
-
*
|
|
43019
|
-
*
|
|
43020
|
-
* // => true
|
|
43021
|
-
*/
|
|
43022
|
-
function identity(value) {
|
|
43023
|
-
return value;
|
|
43024
|
-
}
|
|
43025
|
-
|
|
43026
|
-
/** `Object#toString` result references. */
|
|
43027
|
-
var asyncTag = '[object AsyncFunction]',
|
|
43028
|
-
funcTag$1 = '[object Function]',
|
|
43029
|
-
genTag = '[object GeneratorFunction]',
|
|
43030
|
-
proxyTag = '[object Proxy]';
|
|
43031
|
-
|
|
43032
|
-
/**
|
|
43033
|
-
* Checks if `value` is classified as a `Function` object.
|
|
43034
|
-
*
|
|
43035
|
-
* @static
|
|
43036
|
-
* @memberOf _
|
|
43037
|
-
* @since 0.1.0
|
|
43038
|
-
* @category Lang
|
|
43039
|
-
* @param {*} value The value to check.
|
|
43040
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
43041
|
-
* @example
|
|
43042
|
-
*
|
|
43043
|
-
* _.isFunction(_);
|
|
43044
|
-
* // => true
|
|
43045
|
-
*
|
|
43046
|
-
* _.isFunction(/abc/);
|
|
43047
|
-
* // => false
|
|
43048
|
-
*/
|
|
43049
|
-
function isFunction(value) {
|
|
43050
|
-
if (!isObject(value)) {
|
|
43051
|
-
return false;
|
|
43052
|
-
}
|
|
43053
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
43054
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
43055
|
-
var tag = baseGetTag(value);
|
|
43056
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
43057
|
-
}
|
|
43058
|
-
|
|
43059
|
-
/** Used to detect overreaching core-js shims. */
|
|
43060
|
-
var coreJsData = root['__core-js_shared__'];
|
|
43061
|
-
|
|
43062
|
-
/** Used to detect methods masquerading as native. */
|
|
43063
|
-
var maskSrcKey = (function() {
|
|
43064
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
43065
|
-
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
43066
|
-
}());
|
|
43067
|
-
|
|
43068
|
-
/**
|
|
43069
|
-
* Checks if `func` has its source masked.
|
|
43070
|
-
*
|
|
43071
|
-
* @private
|
|
43072
|
-
* @param {Function} func The function to check.
|
|
43073
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
43074
|
-
*/
|
|
43075
|
-
function isMasked(func) {
|
|
43076
|
-
return !!maskSrcKey && (maskSrcKey in func);
|
|
43077
|
-
}
|
|
43078
|
-
|
|
43079
|
-
/** Used for built-in method references. */
|
|
43080
|
-
var funcProto$2 = Function.prototype;
|
|
43081
|
-
|
|
43082
|
-
/** Used to resolve the decompiled source of functions. */
|
|
43083
|
-
var funcToString$2 = funcProto$2.toString;
|
|
43084
|
-
|
|
43085
|
-
/**
|
|
43086
|
-
* Converts `func` to its source code.
|
|
43087
|
-
*
|
|
43088
|
-
* @private
|
|
43089
|
-
* @param {Function} func The function to convert.
|
|
43090
|
-
* @returns {string} Returns the source code.
|
|
43091
|
-
*/
|
|
43092
|
-
function toSource(func) {
|
|
43093
|
-
if (func != null) {
|
|
43094
|
-
try {
|
|
43095
|
-
return funcToString$2.call(func);
|
|
43096
|
-
} catch (e) {}
|
|
43097
|
-
try {
|
|
43098
|
-
return (func + '');
|
|
43099
|
-
} catch (e) {}
|
|
43100
|
-
}
|
|
43101
|
-
return '';
|
|
43102
|
-
}
|
|
43103
|
-
|
|
43104
|
-
/**
|
|
43105
|
-
* Used to match `RegExp`
|
|
43106
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
43107
|
-
*/
|
|
43108
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
43109
|
-
|
|
43110
|
-
/** Used to detect host constructors (Safari). */
|
|
43111
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
43112
|
-
|
|
43113
|
-
/** Used for built-in method references. */
|
|
43114
|
-
var funcProto$1 = Function.prototype,
|
|
43115
|
-
objectProto$7 = Object.prototype;
|
|
43116
|
-
|
|
43117
|
-
/** Used to resolve the decompiled source of functions. */
|
|
43118
|
-
var funcToString$1 = funcProto$1.toString;
|
|
43119
|
-
|
|
43120
|
-
/** Used to check objects for own properties. */
|
|
43121
|
-
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
43122
|
-
|
|
43123
|
-
/** Used to detect if a method is native. */
|
|
43124
|
-
var reIsNative = RegExp('^' +
|
|
43125
|
-
funcToString$1.call(hasOwnProperty$6).replace(reRegExpChar, '\\$&')
|
|
43126
|
-
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
43127
|
-
);
|
|
43128
|
-
|
|
43129
|
-
/**
|
|
43130
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
43131
|
-
*
|
|
43132
|
-
* @private
|
|
43133
|
-
* @param {*} value The value to check.
|
|
43134
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
43135
|
-
* else `false`.
|
|
43136
|
-
*/
|
|
43137
|
-
function baseIsNative(value) {
|
|
43138
|
-
if (!isObject(value) || isMasked(value)) {
|
|
43139
|
-
return false;
|
|
43140
|
-
}
|
|
43141
|
-
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
43142
|
-
return pattern.test(toSource(value));
|
|
43143
|
-
}
|
|
43144
|
-
|
|
43145
|
-
/**
|
|
43146
|
-
* Gets the value at `key` of `object`.
|
|
43147
|
-
*
|
|
43148
|
-
* @private
|
|
43149
|
-
* @param {Object} [object] The object to query.
|
|
43150
|
-
* @param {string} key The key of the property to get.
|
|
43151
|
-
* @returns {*} Returns the property value.
|
|
43152
|
-
*/
|
|
43153
|
-
function getValue(object, key) {
|
|
43154
|
-
return object == null ? undefined : object[key];
|
|
43155
|
-
}
|
|
43156
|
-
|
|
43157
|
-
/**
|
|
43158
|
-
* Gets the native function at `key` of `object`.
|
|
43159
|
-
*
|
|
43160
|
-
* @private
|
|
43161
|
-
* @param {Object} object The object to query.
|
|
43162
|
-
* @param {string} key The key of the method to get.
|
|
43163
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
43164
|
-
*/
|
|
43165
|
-
function getNative(object, key) {
|
|
43166
|
-
var value = getValue(object, key);
|
|
43167
|
-
return baseIsNative(value) ? value : undefined;
|
|
43168
|
-
}
|
|
43169
|
-
|
|
43170
|
-
/** Built-in value references. */
|
|
43171
|
-
var objectCreate = Object.create;
|
|
43172
|
-
|
|
43173
|
-
/**
|
|
43174
|
-
* The base implementation of `_.create` without support for assigning
|
|
43175
|
-
* properties to the created object.
|
|
43176
|
-
*
|
|
43177
|
-
* @private
|
|
43178
|
-
* @param {Object} proto The object to inherit from.
|
|
43179
|
-
* @returns {Object} Returns the new object.
|
|
43180
|
-
*/
|
|
43181
|
-
var baseCreate = (function() {
|
|
43182
|
-
function object() {}
|
|
43183
|
-
return function(proto) {
|
|
43184
|
-
if (!isObject(proto)) {
|
|
43185
|
-
return {};
|
|
43186
|
-
}
|
|
43187
|
-
if (objectCreate) {
|
|
43188
|
-
return objectCreate(proto);
|
|
43189
|
-
}
|
|
43190
|
-
object.prototype = proto;
|
|
43191
|
-
var result = new object;
|
|
43192
|
-
object.prototype = undefined;
|
|
43193
|
-
return result;
|
|
43194
|
-
};
|
|
43195
|
-
}());
|
|
43196
|
-
|
|
43197
|
-
/**
|
|
43198
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
43199
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
43200
|
-
*
|
|
43201
|
-
* @private
|
|
43202
|
-
* @param {Function} func The function to invoke.
|
|
43203
|
-
* @param {*} thisArg The `this` binding of `func`.
|
|
43204
|
-
* @param {Array} args The arguments to invoke `func` with.
|
|
43205
|
-
* @returns {*} Returns the result of `func`.
|
|
43206
|
-
*/
|
|
43207
|
-
function apply(func, thisArg, args) {
|
|
43208
|
-
switch (args.length) {
|
|
43209
|
-
case 0: return func.call(thisArg);
|
|
43210
|
-
case 1: return func.call(thisArg, args[0]);
|
|
43211
|
-
case 2: return func.call(thisArg, args[0], args[1]);
|
|
43212
|
-
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
43213
|
-
}
|
|
43214
|
-
return func.apply(thisArg, args);
|
|
43215
|
-
}
|
|
43216
|
-
|
|
43217
|
-
/**
|
|
43218
|
-
* Copies the values of `source` to `array`.
|
|
43219
|
-
*
|
|
43220
|
-
* @private
|
|
43221
|
-
* @param {Array} source The array to copy values from.
|
|
43222
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
43223
|
-
* @returns {Array} Returns `array`.
|
|
43224
|
-
*/
|
|
43225
|
-
function copyArray(source, array) {
|
|
43226
|
-
var index = -1,
|
|
43227
|
-
length = source.length;
|
|
43228
|
-
|
|
43229
|
-
array || (array = Array(length));
|
|
43230
|
-
while (++index < length) {
|
|
43231
|
-
array[index] = source[index];
|
|
43232
|
-
}
|
|
43233
|
-
return array;
|
|
43234
|
-
}
|
|
43235
|
-
|
|
43236
|
-
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
43237
|
-
var HOT_COUNT = 800,
|
|
43238
|
-
HOT_SPAN = 16;
|
|
43239
|
-
|
|
43240
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
43241
|
-
var nativeNow = Date.now;
|
|
43242
|
-
|
|
43243
|
-
/**
|
|
43244
|
-
* Creates a function that'll short out and invoke `identity` instead
|
|
43245
|
-
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
43246
|
-
* milliseconds.
|
|
43247
|
-
*
|
|
43248
|
-
* @private
|
|
43249
|
-
* @param {Function} func The function to restrict.
|
|
43250
|
-
* @returns {Function} Returns the new shortable function.
|
|
43251
|
-
*/
|
|
43252
|
-
function shortOut(func) {
|
|
43253
|
-
var count = 0,
|
|
43254
|
-
lastCalled = 0;
|
|
43255
|
-
|
|
43256
|
-
return function() {
|
|
43257
|
-
var stamp = nativeNow(),
|
|
43258
|
-
remaining = HOT_SPAN - (stamp - lastCalled);
|
|
43259
|
-
|
|
43260
|
-
lastCalled = stamp;
|
|
43261
|
-
if (remaining > 0) {
|
|
43262
|
-
if (++count >= HOT_COUNT) {
|
|
43263
|
-
return arguments[0];
|
|
43264
|
-
}
|
|
43265
|
-
} else {
|
|
43266
|
-
count = 0;
|
|
43267
|
-
}
|
|
43268
|
-
return func.apply(undefined, arguments);
|
|
43269
|
-
};
|
|
43270
|
-
}
|
|
43271
|
-
|
|
43272
|
-
/**
|
|
43273
|
-
* Creates a function that returns `value`.
|
|
43274
|
-
*
|
|
43275
|
-
* @static
|
|
43276
|
-
* @memberOf _
|
|
43277
|
-
* @since 2.4.0
|
|
43278
|
-
* @category Util
|
|
43279
|
-
* @param {*} value The value to return from the new function.
|
|
43280
|
-
* @returns {Function} Returns the new constant function.
|
|
43281
|
-
* @example
|
|
43282
|
-
*
|
|
43283
|
-
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
43284
|
-
*
|
|
43285
|
-
*
|
|
43286
|
-
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
43287
|
-
*
|
|
43288
|
-
*
|
|
43289
|
-
* // => true
|
|
43290
|
-
*/
|
|
43291
|
-
function constant(value) {
|
|
43292
|
-
return function() {
|
|
43293
|
-
return value;
|
|
43294
|
-
};
|
|
43295
|
-
}
|
|
43296
|
-
|
|
43297
|
-
var defineProperty = (function() {
|
|
43298
|
-
try {
|
|
43299
|
-
var func = getNative(Object, 'defineProperty');
|
|
43300
|
-
func({}, '', {});
|
|
43301
|
-
return func;
|
|
43302
|
-
} catch (e) {}
|
|
43303
|
-
}());
|
|
43304
|
-
|
|
43305
|
-
/**
|
|
43306
|
-
* The base implementation of `setToString` without support for hot loop shorting.
|
|
43307
|
-
*
|
|
43308
|
-
* @private
|
|
43309
|
-
* @param {Function} func The function to modify.
|
|
43310
|
-
* @param {Function} string The `toString` result.
|
|
43311
|
-
* @returns {Function} Returns `func`.
|
|
43312
|
-
*/
|
|
43313
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
43314
|
-
return defineProperty(func, 'toString', {
|
|
43315
|
-
'configurable': true,
|
|
43316
|
-
'enumerable': false,
|
|
43317
|
-
'value': constant(string),
|
|
43318
|
-
'writable': true
|
|
43319
|
-
});
|
|
43320
|
-
};
|
|
43321
|
-
|
|
43322
|
-
/**
|
|
43323
|
-
* Sets the `toString` method of `func` to return `string`.
|
|
43324
|
-
*
|
|
43325
|
-
* @private
|
|
43326
|
-
* @param {Function} func The function to modify.
|
|
43327
|
-
* @param {Function} string The `toString` result.
|
|
43328
|
-
* @returns {Function} Returns `func`.
|
|
43329
|
-
*/
|
|
43330
|
-
var setToString = shortOut(baseSetToString);
|
|
43331
|
-
|
|
43332
|
-
/** Used as references for various `Number` constants. */
|
|
43333
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
43334
|
-
|
|
43335
|
-
/** Used to detect unsigned integer values. */
|
|
43336
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
43337
|
-
|
|
43338
|
-
/**
|
|
43339
|
-
* Checks if `value` is a valid array-like index.
|
|
43340
|
-
*
|
|
43341
|
-
* @private
|
|
43342
|
-
* @param {*} value The value to check.
|
|
43343
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
43344
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
43345
|
-
*/
|
|
43346
|
-
function isIndex(value, length) {
|
|
43347
|
-
var type = typeof value;
|
|
43348
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
43349
|
-
|
|
43350
|
-
return !!length &&
|
|
43351
|
-
(type == 'number' ||
|
|
43352
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
43353
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
43354
|
-
}
|
|
43355
|
-
|
|
43356
|
-
/**
|
|
43357
|
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
43358
|
-
* value checks.
|
|
43359
|
-
*
|
|
43360
|
-
* @private
|
|
43361
|
-
* @param {Object} object The object to modify.
|
|
43362
|
-
* @param {string} key The key of the property to assign.
|
|
43363
|
-
* @param {*} value The value to assign.
|
|
43364
|
-
*/
|
|
43365
|
-
function baseAssignValue(object, key, value) {
|
|
43366
|
-
if (key == '__proto__' && defineProperty) {
|
|
43367
|
-
defineProperty(object, key, {
|
|
43368
|
-
'configurable': true,
|
|
43369
|
-
'enumerable': true,
|
|
43370
|
-
'value': value,
|
|
43371
|
-
'writable': true
|
|
43372
|
-
});
|
|
43373
|
-
} else {
|
|
43374
|
-
object[key] = value;
|
|
43375
|
-
}
|
|
43376
|
-
}
|
|
43377
|
-
|
|
43378
|
-
/**
|
|
43379
|
-
* Performs a
|
|
43380
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
43381
|
-
* comparison between two values to determine if they are equivalent.
|
|
43382
|
-
*
|
|
43383
|
-
* @static
|
|
43384
|
-
* @memberOf _
|
|
43385
|
-
* @since 4.0.0
|
|
43386
|
-
* @category Lang
|
|
43387
|
-
* @param {*} value The value to compare.
|
|
43388
|
-
* @param {*} other The other value to compare.
|
|
43389
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
43390
|
-
* @example
|
|
43391
|
-
*
|
|
43392
|
-
* var object = { 'a': 1 };
|
|
43393
|
-
* var other = { 'a': 1 };
|
|
43394
|
-
*
|
|
43395
|
-
* _.eq(object, object);
|
|
43396
|
-
* // => true
|
|
43397
|
-
*
|
|
43398
|
-
* _.eq(object, other);
|
|
43399
|
-
* // => false
|
|
43400
|
-
*
|
|
43401
|
-
* _.eq('a', 'a');
|
|
43402
|
-
* // => true
|
|
43403
|
-
*
|
|
43404
|
-
* _.eq('a', Object('a'));
|
|
43405
|
-
* // => false
|
|
43406
|
-
*
|
|
43407
|
-
* _.eq(NaN, NaN);
|
|
43408
|
-
* // => true
|
|
43409
|
-
*/
|
|
43410
|
-
function eq(value, other) {
|
|
43411
|
-
return value === other || (value !== value && other !== other);
|
|
43412
|
-
}
|
|
43413
|
-
|
|
43414
|
-
/** Used for built-in method references. */
|
|
43415
|
-
var objectProto$6 = Object.prototype;
|
|
43416
|
-
|
|
43417
|
-
/** Used to check objects for own properties. */
|
|
43418
|
-
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
43419
|
-
|
|
43420
|
-
/**
|
|
43421
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
43422
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
43423
|
-
* for equality comparisons.
|
|
43424
|
-
*
|
|
43425
|
-
* @private
|
|
43426
|
-
* @param {Object} object The object to modify.
|
|
43427
|
-
* @param {string} key The key of the property to assign.
|
|
43428
|
-
* @param {*} value The value to assign.
|
|
43429
|
-
*/
|
|
43430
|
-
function assignValue(object, key, value) {
|
|
43431
|
-
var objValue = object[key];
|
|
43432
|
-
if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) ||
|
|
43433
|
-
(value === undefined && !(key in object))) {
|
|
43434
|
-
baseAssignValue(object, key, value);
|
|
43435
|
-
}
|
|
43436
|
-
}
|
|
43437
|
-
|
|
43438
|
-
/**
|
|
43439
|
-
* Copies properties of `source` to `object`.
|
|
43440
|
-
*
|
|
43441
|
-
* @private
|
|
43442
|
-
* @param {Object} source The object to copy properties from.
|
|
43443
|
-
* @param {Array} props The property identifiers to copy.
|
|
43444
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
43445
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
43446
|
-
* @returns {Object} Returns `object`.
|
|
43447
|
-
*/
|
|
43448
|
-
function copyObject(source, props, object, customizer) {
|
|
43449
|
-
var isNew = !object;
|
|
43450
|
-
object || (object = {});
|
|
43451
|
-
|
|
43452
|
-
var index = -1,
|
|
43453
|
-
length = props.length;
|
|
43454
|
-
|
|
43455
|
-
while (++index < length) {
|
|
43456
|
-
var key = props[index];
|
|
43457
|
-
|
|
43458
|
-
var newValue = undefined;
|
|
43459
|
-
|
|
43460
|
-
if (newValue === undefined) {
|
|
43461
|
-
newValue = source[key];
|
|
43462
|
-
}
|
|
43463
|
-
if (isNew) {
|
|
43464
|
-
baseAssignValue(object, key, newValue);
|
|
43465
|
-
} else {
|
|
43466
|
-
assignValue(object, key, newValue);
|
|
43467
|
-
}
|
|
43468
|
-
}
|
|
43469
|
-
return object;
|
|
43470
|
-
}
|
|
43471
|
-
|
|
43472
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
43473
|
-
var nativeMax = Math.max;
|
|
43474
|
-
|
|
43475
|
-
/**
|
|
43476
|
-
* A specialized version of `baseRest` which transforms the rest array.
|
|
43477
|
-
*
|
|
43478
|
-
* @private
|
|
43479
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
43480
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
43481
|
-
* @param {Function} transform The rest array transform.
|
|
43482
|
-
* @returns {Function} Returns the new function.
|
|
43483
|
-
*/
|
|
43484
|
-
function overRest(func, start, transform) {
|
|
43485
|
-
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
43486
|
-
return function() {
|
|
43487
|
-
var args = arguments,
|
|
43488
|
-
index = -1,
|
|
43489
|
-
length = nativeMax(args.length - start, 0),
|
|
43490
|
-
array = Array(length);
|
|
43491
|
-
|
|
43492
|
-
while (++index < length) {
|
|
43493
|
-
array[index] = args[start + index];
|
|
43494
|
-
}
|
|
43495
|
-
index = -1;
|
|
43496
|
-
var otherArgs = Array(start + 1);
|
|
43497
|
-
while (++index < start) {
|
|
43498
|
-
otherArgs[index] = args[index];
|
|
43499
|
-
}
|
|
43500
|
-
otherArgs[start] = transform(array);
|
|
43501
|
-
return apply(func, this, otherArgs);
|
|
43502
|
-
};
|
|
43503
|
-
}
|
|
43504
|
-
|
|
43505
|
-
/**
|
|
43506
|
-
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
43507
|
-
*
|
|
43508
|
-
* @private
|
|
43509
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
43510
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
43511
|
-
* @returns {Function} Returns the new function.
|
|
43512
|
-
*/
|
|
43513
|
-
function baseRest(func, start) {
|
|
43514
|
-
return setToString(overRest(func, start, identity), func + '');
|
|
43515
|
-
}
|
|
43516
|
-
|
|
43517
|
-
/** Used as references for various `Number` constants. */
|
|
43518
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
43519
|
-
|
|
43520
|
-
/**
|
|
43521
|
-
* Checks if `value` is a valid array-like length.
|
|
43522
|
-
*
|
|
43523
|
-
* **Note:** This method is loosely based on
|
|
43524
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
43525
|
-
*
|
|
43526
|
-
* @static
|
|
43527
|
-
* @memberOf _
|
|
43528
|
-
* @since 4.0.0
|
|
43529
|
-
* @category Lang
|
|
43530
|
-
* @param {*} value The value to check.
|
|
43531
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
43532
|
-
* @example
|
|
43533
|
-
*
|
|
43534
|
-
* _.isLength(3);
|
|
43535
|
-
* // => true
|
|
43536
|
-
*
|
|
43537
|
-
* _.isLength(Number.MIN_VALUE);
|
|
43538
|
-
* // => false
|
|
43539
|
-
*
|
|
43540
|
-
* _.isLength(Infinity);
|
|
43541
|
-
* // => false
|
|
43542
|
-
*
|
|
43543
|
-
* _.isLength('3');
|
|
43544
|
-
* // => false
|
|
43545
|
-
*/
|
|
43546
|
-
function isLength(value) {
|
|
43547
|
-
return typeof value == 'number' &&
|
|
43548
|
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
43549
|
-
}
|
|
43550
|
-
|
|
43551
|
-
/**
|
|
43552
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
43553
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
43554
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
43555
|
-
*
|
|
43556
|
-
* @static
|
|
43557
|
-
* @memberOf _
|
|
43558
|
-
* @since 4.0.0
|
|
43559
|
-
* @category Lang
|
|
43560
|
-
* @param {*} value The value to check.
|
|
43561
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
43562
|
-
* @example
|
|
43563
|
-
*
|
|
43564
|
-
* _.isArrayLike([1, 2, 3]);
|
|
43565
|
-
* // => true
|
|
43566
|
-
*
|
|
43567
|
-
* _.isArrayLike(document.body.children);
|
|
43568
|
-
* // => true
|
|
43569
|
-
*
|
|
43570
|
-
* _.isArrayLike('abc');
|
|
43571
|
-
* // => true
|
|
43572
|
-
*
|
|
43573
|
-
* _.isArrayLike(_.noop);
|
|
43574
|
-
* // => false
|
|
43575
|
-
*/
|
|
43576
|
-
function isArrayLike(value) {
|
|
43577
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
43578
|
-
}
|
|
43579
|
-
|
|
43580
|
-
/**
|
|
43581
|
-
* Checks if the given arguments are from an iteratee call.
|
|
43582
|
-
*
|
|
43583
|
-
* @private
|
|
43584
|
-
* @param {*} value The potential iteratee value argument.
|
|
43585
|
-
* @param {*} index The potential iteratee index or key argument.
|
|
43586
|
-
* @param {*} object The potential iteratee object argument.
|
|
43587
|
-
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
43588
|
-
* else `false`.
|
|
43589
|
-
*/
|
|
43590
|
-
function isIterateeCall(value, index, object) {
|
|
43591
|
-
if (!isObject(object)) {
|
|
43592
|
-
return false;
|
|
43593
|
-
}
|
|
43594
|
-
var type = typeof index;
|
|
43595
|
-
if (type == 'number'
|
|
43596
|
-
? (isArrayLike(object) && isIndex(index, object.length))
|
|
43597
|
-
: (type == 'string' && index in object)
|
|
43598
|
-
) {
|
|
43599
|
-
return eq(object[index], value);
|
|
43600
|
-
}
|
|
43601
|
-
return false;
|
|
43602
|
-
}
|
|
43603
|
-
|
|
43604
|
-
/**
|
|
43605
|
-
* Creates a function like `_.assign`.
|
|
43606
|
-
*
|
|
43607
|
-
* @private
|
|
43608
|
-
* @param {Function} assigner The function to assign values.
|
|
43609
|
-
* @returns {Function} Returns the new assigner function.
|
|
43610
|
-
*/
|
|
43611
|
-
function createAssigner(assigner) {
|
|
43612
|
-
return baseRest(function(object, sources) {
|
|
43613
|
-
var index = -1,
|
|
43614
|
-
length = sources.length,
|
|
43615
|
-
customizer = length > 1 ? sources[length - 1] : undefined,
|
|
43616
|
-
guard = length > 2 ? sources[2] : undefined;
|
|
43617
|
-
|
|
43618
|
-
customizer = (assigner.length > 3 && typeof customizer == 'function')
|
|
43619
|
-
? (length--, customizer)
|
|
43620
|
-
: undefined;
|
|
43621
|
-
|
|
43622
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
43623
|
-
customizer = length < 3 ? undefined : customizer;
|
|
43624
|
-
length = 1;
|
|
43625
|
-
}
|
|
43626
|
-
object = Object(object);
|
|
43627
|
-
while (++index < length) {
|
|
43628
|
-
var source = sources[index];
|
|
43629
|
-
if (source) {
|
|
43630
|
-
assigner(object, source, index, customizer);
|
|
43631
|
-
}
|
|
43632
|
-
}
|
|
43633
|
-
return object;
|
|
43634
|
-
});
|
|
43635
|
-
}
|
|
43636
|
-
|
|
43637
|
-
/** Used for built-in method references. */
|
|
43638
|
-
var objectProto$5 = Object.prototype;
|
|
43639
|
-
|
|
43640
|
-
/**
|
|
43641
|
-
* Checks if `value` is likely a prototype object.
|
|
43642
|
-
*
|
|
43643
|
-
* @private
|
|
43644
|
-
* @param {*} value The value to check.
|
|
43645
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
43646
|
-
*/
|
|
43647
|
-
function isPrototype(value) {
|
|
43648
|
-
var Ctor = value && value.constructor,
|
|
43649
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
|
|
43650
|
-
|
|
43651
|
-
return value === proto;
|
|
43652
|
-
}
|
|
43653
|
-
|
|
43654
|
-
/**
|
|
43655
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
43656
|
-
* or max array length checks.
|
|
43657
|
-
*
|
|
43658
|
-
* @private
|
|
43659
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
43660
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
43661
|
-
* @returns {Array} Returns the array of results.
|
|
43662
|
-
*/
|
|
43663
|
-
function baseTimes(n, iteratee) {
|
|
43664
|
-
var index = -1,
|
|
43665
|
-
result = Array(n);
|
|
43666
|
-
|
|
43667
|
-
while (++index < n) {
|
|
43668
|
-
result[index] = iteratee(index);
|
|
43669
|
-
}
|
|
43670
|
-
return result;
|
|
43671
|
-
}
|
|
43672
|
-
|
|
43673
|
-
/** `Object#toString` result references. */
|
|
43674
|
-
var argsTag$1 = '[object Arguments]';
|
|
43675
|
-
|
|
43676
|
-
/**
|
|
43677
|
-
* The base implementation of `_.isArguments`.
|
|
43678
|
-
*
|
|
43679
|
-
* @private
|
|
43680
|
-
* @param {*} value The value to check.
|
|
43681
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
43682
|
-
*/
|
|
43683
|
-
function baseIsArguments(value) {
|
|
43684
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$1;
|
|
43685
|
-
}
|
|
43686
|
-
|
|
43687
|
-
/** Used for built-in method references. */
|
|
43688
|
-
var objectProto$4 = Object.prototype;
|
|
43689
|
-
|
|
43690
|
-
/** Used to check objects for own properties. */
|
|
43691
|
-
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
43692
|
-
|
|
43693
|
-
/** Built-in value references. */
|
|
43694
|
-
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
43695
|
-
|
|
43696
|
-
/**
|
|
43697
|
-
* Checks if `value` is likely an `arguments` object.
|
|
43698
|
-
*
|
|
43699
|
-
* @static
|
|
43700
|
-
* @memberOf _
|
|
43701
|
-
* @since 0.1.0
|
|
43702
|
-
* @category Lang
|
|
43703
|
-
* @param {*} value The value to check.
|
|
43704
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
43705
|
-
* else `false`.
|
|
43706
|
-
* @example
|
|
43707
|
-
*
|
|
43708
|
-
* _.isArguments(function() { return arguments; }());
|
|
43709
|
-
* // => true
|
|
43710
|
-
*
|
|
43711
|
-
* _.isArguments([1, 2, 3]);
|
|
43712
|
-
* // => false
|
|
43713
|
-
*/
|
|
43714
|
-
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
43715
|
-
return isObjectLike(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
43716
|
-
!propertyIsEnumerable.call(value, 'callee');
|
|
43717
|
-
};
|
|
43718
|
-
|
|
43719
|
-
/**
|
|
43720
|
-
* This method returns `false`.
|
|
43721
|
-
*
|
|
43722
|
-
* @static
|
|
43723
|
-
* @memberOf _
|
|
43724
|
-
* @since 4.13.0
|
|
43725
|
-
* @category Util
|
|
43726
|
-
* @returns {boolean} Returns `false`.
|
|
43727
|
-
* @example
|
|
43728
|
-
*
|
|
43729
|
-
* _.times(2, _.stubFalse);
|
|
43730
|
-
* // => [false, false]
|
|
43731
|
-
*/
|
|
43732
|
-
function stubFalse() {
|
|
43733
|
-
return false;
|
|
43734
|
-
}
|
|
43735
|
-
|
|
43736
|
-
/** Detect free variable `exports`. */
|
|
43737
|
-
var freeExports$2 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
43738
|
-
|
|
43739
|
-
/** Detect free variable `module`. */
|
|
43740
|
-
var freeModule$2 = freeExports$2 && typeof module == 'object' && module && !module.nodeType && module;
|
|
43741
|
-
|
|
43742
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
43743
|
-
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
43744
|
-
|
|
43745
|
-
/** Built-in value references. */
|
|
43746
|
-
var Buffer$2 = moduleExports$2 ? root.Buffer : undefined;
|
|
43747
|
-
|
|
43748
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
43749
|
-
var nativeIsBuffer = Buffer$2 ? Buffer$2.isBuffer : undefined;
|
|
43750
|
-
|
|
43751
|
-
/**
|
|
43752
|
-
* Checks if `value` is a buffer.
|
|
43753
|
-
*
|
|
43754
|
-
* @static
|
|
43755
|
-
* @memberOf _
|
|
43756
|
-
* @since 4.3.0
|
|
43757
|
-
* @category Lang
|
|
43758
|
-
* @param {*} value The value to check.
|
|
43759
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
43760
|
-
* @example
|
|
43761
|
-
*
|
|
43762
|
-
* _.isBuffer(new Buffer(2));
|
|
43763
|
-
* // => true
|
|
43764
|
-
*
|
|
43765
|
-
* _.isBuffer(new Uint8Array(2));
|
|
43766
|
-
* // => false
|
|
43767
|
-
*/
|
|
43768
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
43769
|
-
|
|
43770
|
-
/** `Object#toString` result references. */
|
|
43771
|
-
var argsTag = '[object Arguments]',
|
|
43772
|
-
arrayTag = '[object Array]',
|
|
43773
|
-
boolTag = '[object Boolean]',
|
|
43774
|
-
dateTag = '[object Date]',
|
|
43775
|
-
errorTag = '[object Error]',
|
|
43776
|
-
funcTag = '[object Function]',
|
|
43777
|
-
mapTag = '[object Map]',
|
|
43778
|
-
numberTag = '[object Number]',
|
|
43779
|
-
objectTag$1 = '[object Object]',
|
|
43780
|
-
regexpTag = '[object RegExp]',
|
|
43781
|
-
setTag = '[object Set]',
|
|
43782
|
-
stringTag = '[object String]',
|
|
43783
|
-
weakMapTag = '[object WeakMap]';
|
|
43784
|
-
|
|
43785
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
43786
|
-
dataViewTag = '[object DataView]',
|
|
43787
|
-
float32Tag = '[object Float32Array]',
|
|
43788
|
-
float64Tag = '[object Float64Array]',
|
|
43789
|
-
int8Tag = '[object Int8Array]',
|
|
43790
|
-
int16Tag = '[object Int16Array]',
|
|
43791
|
-
int32Tag = '[object Int32Array]',
|
|
43792
|
-
uint8Tag = '[object Uint8Array]',
|
|
43793
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
43794
|
-
uint16Tag = '[object Uint16Array]',
|
|
43795
|
-
uint32Tag = '[object Uint32Array]';
|
|
43796
|
-
|
|
43797
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
43798
|
-
var typedArrayTags = {};
|
|
43799
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
43800
|
-
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
43801
|
-
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
43802
|
-
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
43803
|
-
typedArrayTags[uint32Tag] = true;
|
|
43804
|
-
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
|
43805
|
-
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
43806
|
-
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
|
43807
|
-
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
43808
|
-
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
|
43809
|
-
typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] =
|
|
43810
|
-
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
|
43811
|
-
typedArrayTags[weakMapTag] = false;
|
|
43812
|
-
|
|
43813
|
-
/**
|
|
43814
|
-
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
43815
|
-
*
|
|
43816
|
-
* @private
|
|
43817
|
-
* @param {*} value The value to check.
|
|
43818
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
43819
|
-
*/
|
|
43820
|
-
function baseIsTypedArray(value) {
|
|
43821
|
-
return isObjectLike(value) &&
|
|
43822
|
-
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
43823
|
-
}
|
|
43824
|
-
|
|
43825
|
-
/**
|
|
43826
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
43827
|
-
*
|
|
43828
|
-
* @private
|
|
43829
|
-
* @param {Function} func The function to cap arguments for.
|
|
43830
|
-
* @returns {Function} Returns the new capped function.
|
|
43831
|
-
*/
|
|
43832
|
-
function baseUnary(func) {
|
|
43833
|
-
return function(value) {
|
|
43834
|
-
return func(value);
|
|
43835
|
-
};
|
|
43836
|
-
}
|
|
43837
|
-
|
|
43838
|
-
/** Detect free variable `exports`. */
|
|
43839
|
-
var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
43840
|
-
|
|
43841
|
-
/** Detect free variable `module`. */
|
|
43842
|
-
var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
|
|
43843
|
-
|
|
43844
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
43845
|
-
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
43846
|
-
|
|
43847
|
-
/** Detect free variable `process` from Node.js. */
|
|
43848
|
-
var freeProcess = moduleExports$1 && freeGlobal.process;
|
|
43849
|
-
|
|
43850
|
-
/** Used to access faster Node.js helpers. */
|
|
43851
|
-
var nodeUtil = (function() {
|
|
43852
|
-
try {
|
|
43853
|
-
// Use `util.types` for Node.js 10+.
|
|
43854
|
-
var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;
|
|
43855
|
-
|
|
43856
|
-
if (types) {
|
|
43857
|
-
return types;
|
|
43858
|
-
}
|
|
43859
|
-
|
|
43860
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
43861
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
43862
|
-
} catch (e) {}
|
|
43863
|
-
}());
|
|
43864
|
-
|
|
43865
|
-
/* Node.js helper references. */
|
|
43866
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
43867
|
-
|
|
43868
|
-
/**
|
|
43869
|
-
* Checks if `value` is classified as a typed array.
|
|
43870
|
-
*
|
|
43871
|
-
* @static
|
|
43872
|
-
* @memberOf _
|
|
43873
|
-
* @since 3.0.0
|
|
43874
|
-
* @category Lang
|
|
43875
|
-
* @param {*} value The value to check.
|
|
43876
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
43877
|
-
* @example
|
|
43878
|
-
*
|
|
43879
|
-
* _.isTypedArray(new Uint8Array);
|
|
43880
|
-
* // => true
|
|
43881
|
-
*
|
|
43882
|
-
* _.isTypedArray([]);
|
|
43883
|
-
* // => false
|
|
43884
|
-
*/
|
|
43885
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
43886
|
-
|
|
43887
|
-
/**
|
|
43888
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
43889
|
-
*
|
|
43890
|
-
* @private
|
|
43891
|
-
* @param {*} value The value to query.
|
|
43892
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
43893
|
-
* @returns {Array} Returns the array of property names.
|
|
43894
|
-
*/
|
|
43895
|
-
function arrayLikeKeys(value, inherited) {
|
|
43896
|
-
var isArr = isArray(value),
|
|
43897
|
-
isArg = !isArr && isArguments(value),
|
|
43898
|
-
isBuff = !isArr && !isArg && isBuffer(value),
|
|
43899
|
-
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
43900
|
-
skipIndexes = isArr || isArg || isBuff || isType,
|
|
43901
|
-
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
43902
|
-
length = result.length;
|
|
43903
|
-
|
|
43904
|
-
for (var key in value) {
|
|
43905
|
-
if (!(skipIndexes && (
|
|
43906
|
-
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
43907
|
-
key == 'length' ||
|
|
43908
|
-
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
43909
|
-
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
43910
|
-
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
43911
|
-
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
43912
|
-
// Skip index properties.
|
|
43913
|
-
isIndex(key, length)
|
|
43914
|
-
))) {
|
|
43915
|
-
result.push(key);
|
|
43916
|
-
}
|
|
43917
|
-
}
|
|
43918
|
-
return result;
|
|
43919
|
-
}
|
|
43920
|
-
|
|
43921
|
-
/**
|
|
43922
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
43923
|
-
*
|
|
43924
|
-
* @private
|
|
43925
|
-
* @param {Function} func The function to wrap.
|
|
43926
|
-
* @param {Function} transform The argument transform.
|
|
43927
|
-
* @returns {Function} Returns the new function.
|
|
43928
|
-
*/
|
|
43929
|
-
function overArg(func, transform) {
|
|
43930
|
-
return function(arg) {
|
|
43931
|
-
return func(transform(arg));
|
|
43932
|
-
};
|
|
43933
|
-
}
|
|
43934
|
-
|
|
43935
|
-
/**
|
|
43936
|
-
* This function is like
|
|
43937
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
43938
|
-
* except that it includes inherited enumerable properties.
|
|
43939
|
-
*
|
|
43940
|
-
* @private
|
|
43941
|
-
* @param {Object} object The object to query.
|
|
43942
|
-
* @returns {Array} Returns the array of property names.
|
|
43943
|
-
*/
|
|
43944
|
-
function nativeKeysIn(object) {
|
|
43945
|
-
var result = [];
|
|
43946
|
-
if (object != null) {
|
|
43947
|
-
for (var key in Object(object)) {
|
|
43948
|
-
result.push(key);
|
|
43949
|
-
}
|
|
43950
|
-
}
|
|
43951
|
-
return result;
|
|
43952
|
-
}
|
|
43953
|
-
|
|
43954
|
-
/** Used for built-in method references. */
|
|
43955
|
-
var objectProto$3 = Object.prototype;
|
|
43956
|
-
|
|
43957
|
-
/** Used to check objects for own properties. */
|
|
43958
|
-
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
43959
|
-
|
|
43960
|
-
/**
|
|
43961
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
43962
|
-
*
|
|
43963
|
-
* @private
|
|
43964
|
-
* @param {Object} object The object to query.
|
|
43965
|
-
* @returns {Array} Returns the array of property names.
|
|
43966
|
-
*/
|
|
43967
|
-
function baseKeysIn(object) {
|
|
43968
|
-
if (!isObject(object)) {
|
|
43969
|
-
return nativeKeysIn(object);
|
|
43970
|
-
}
|
|
43971
|
-
var isProto = isPrototype(object),
|
|
43972
|
-
result = [];
|
|
43973
|
-
|
|
43974
|
-
for (var key in object) {
|
|
43975
|
-
if (!(key == 'constructor' && (isProto || !hasOwnProperty$3.call(object, key)))) {
|
|
43976
|
-
result.push(key);
|
|
43977
|
-
}
|
|
43978
|
-
}
|
|
43979
|
-
return result;
|
|
43980
|
-
}
|
|
43981
|
-
|
|
43982
|
-
/**
|
|
43983
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
43984
|
-
*
|
|
43985
|
-
* **Note:** Non-object values are coerced to objects.
|
|
43986
|
-
*
|
|
43987
|
-
* @static
|
|
43988
|
-
* @memberOf _
|
|
43989
|
-
* @since 3.0.0
|
|
43990
|
-
* @category Object
|
|
43991
|
-
* @param {Object} object The object to query.
|
|
43992
|
-
* @returns {Array} Returns the array of property names.
|
|
43993
|
-
* @example
|
|
43994
|
-
*
|
|
43995
|
-
* function Foo() {
|
|
43996
|
-
* this.a = 1;
|
|
43997
|
-
* this.b = 2;
|
|
43998
|
-
* }
|
|
43999
|
-
*
|
|
44000
|
-
* Foo.prototype.c = 3;
|
|
44001
|
-
*
|
|
44002
|
-
* _.keysIn(new Foo);
|
|
44003
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
44004
|
-
*/
|
|
44005
|
-
function keysIn(object) {
|
|
44006
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeysIn(object);
|
|
44007
|
-
}
|
|
44008
|
-
|
|
44009
|
-
/* Built-in method references that are verified to be native. */
|
|
44010
|
-
var nativeCreate = getNative(Object, 'create');
|
|
44011
|
-
|
|
44012
|
-
/**
|
|
44013
|
-
* Removes all key-value entries from the hash.
|
|
44014
|
-
*
|
|
44015
|
-
* @private
|
|
44016
|
-
* @name clear
|
|
44017
|
-
* @memberOf Hash
|
|
44018
|
-
*/
|
|
44019
|
-
function hashClear() {
|
|
44020
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
44021
|
-
this.size = 0;
|
|
44022
|
-
}
|
|
44023
|
-
|
|
44024
|
-
/**
|
|
44025
|
-
* Removes `key` and its value from the hash.
|
|
44026
|
-
*
|
|
44027
|
-
* @private
|
|
44028
|
-
* @name delete
|
|
44029
|
-
* @memberOf Hash
|
|
44030
|
-
* @param {Object} hash The hash to modify.
|
|
44031
|
-
* @param {string} key The key of the value to remove.
|
|
44032
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
44033
|
-
*/
|
|
44034
|
-
function hashDelete(key) {
|
|
44035
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
44036
|
-
this.size -= result ? 1 : 0;
|
|
44037
|
-
return result;
|
|
44038
|
-
}
|
|
44039
|
-
|
|
44040
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
44041
|
-
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
44042
|
-
|
|
44043
|
-
/** Used for built-in method references. */
|
|
44044
|
-
var objectProto$2 = Object.prototype;
|
|
44045
|
-
|
|
44046
|
-
/** Used to check objects for own properties. */
|
|
44047
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
44048
|
-
|
|
44049
|
-
/**
|
|
44050
|
-
* Gets the hash value for `key`.
|
|
44051
|
-
*
|
|
44052
|
-
* @private
|
|
44053
|
-
* @name get
|
|
44054
|
-
* @memberOf Hash
|
|
44055
|
-
* @param {string} key The key of the value to get.
|
|
44056
|
-
* @returns {*} Returns the entry value.
|
|
44057
|
-
*/
|
|
44058
|
-
function hashGet(key) {
|
|
44059
|
-
var data = this.__data__;
|
|
44060
|
-
if (nativeCreate) {
|
|
44061
|
-
var result = data[key];
|
|
44062
|
-
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
44063
|
-
}
|
|
44064
|
-
return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
|
|
44065
|
-
}
|
|
44066
|
-
|
|
44067
|
-
/** Used for built-in method references. */
|
|
44068
|
-
var objectProto$1 = Object.prototype;
|
|
44069
|
-
|
|
44070
|
-
/** Used to check objects for own properties. */
|
|
44071
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
44072
|
-
|
|
44073
|
-
/**
|
|
44074
|
-
* Checks if a hash value for `key` exists.
|
|
44075
|
-
*
|
|
44076
|
-
* @private
|
|
44077
|
-
* @name has
|
|
44078
|
-
* @memberOf Hash
|
|
44079
|
-
* @param {string} key The key of the entry to check.
|
|
44080
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
44081
|
-
*/
|
|
44082
|
-
function hashHas(key) {
|
|
44083
|
-
var data = this.__data__;
|
|
44084
|
-
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
|
|
44085
|
-
}
|
|
44086
|
-
|
|
44087
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
44088
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
44089
|
-
|
|
44090
|
-
/**
|
|
44091
|
-
* Sets the hash `key` to `value`.
|
|
44092
|
-
*
|
|
44093
|
-
* @private
|
|
44094
|
-
* @name set
|
|
44095
|
-
* @memberOf Hash
|
|
44096
|
-
* @param {string} key The key of the value to set.
|
|
44097
|
-
* @param {*} value The value to set.
|
|
44098
|
-
* @returns {Object} Returns the hash instance.
|
|
44099
|
-
*/
|
|
44100
|
-
function hashSet(key, value) {
|
|
44101
|
-
var data = this.__data__;
|
|
44102
|
-
this.size += this.has(key) ? 0 : 1;
|
|
44103
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
44104
|
-
return this;
|
|
44105
|
-
}
|
|
44106
|
-
|
|
44107
|
-
/**
|
|
44108
|
-
* Creates a hash object.
|
|
44109
|
-
*
|
|
44110
|
-
* @private
|
|
44111
|
-
* @constructor
|
|
44112
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
44113
|
-
*/
|
|
44114
|
-
function Hash(entries) {
|
|
44115
|
-
var index = -1,
|
|
44116
|
-
length = entries == null ? 0 : entries.length;
|
|
44117
|
-
|
|
44118
|
-
this.clear();
|
|
44119
|
-
while (++index < length) {
|
|
44120
|
-
var entry = entries[index];
|
|
44121
|
-
this.set(entry[0], entry[1]);
|
|
44122
|
-
}
|
|
44123
|
-
}
|
|
44124
|
-
|
|
44125
|
-
// Add methods to `Hash`.
|
|
44126
|
-
Hash.prototype.clear = hashClear;
|
|
44127
|
-
Hash.prototype['delete'] = hashDelete;
|
|
44128
|
-
Hash.prototype.get = hashGet;
|
|
44129
|
-
Hash.prototype.has = hashHas;
|
|
44130
|
-
Hash.prototype.set = hashSet;
|
|
44131
|
-
|
|
44132
|
-
/**
|
|
44133
|
-
* Removes all key-value entries from the list cache.
|
|
44134
|
-
*
|
|
44135
|
-
* @private
|
|
44136
|
-
* @name clear
|
|
44137
|
-
* @memberOf ListCache
|
|
44138
|
-
*/
|
|
44139
|
-
function listCacheClear() {
|
|
44140
|
-
this.__data__ = [];
|
|
44141
|
-
this.size = 0;
|
|
44142
|
-
}
|
|
44143
|
-
|
|
44144
|
-
/**
|
|
44145
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
44146
|
-
*
|
|
44147
|
-
* @private
|
|
44148
|
-
* @param {Array} array The array to inspect.
|
|
44149
|
-
* @param {*} key The key to search for.
|
|
44150
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
44151
|
-
*/
|
|
44152
|
-
function assocIndexOf(array, key) {
|
|
44153
|
-
var length = array.length;
|
|
44154
|
-
while (length--) {
|
|
44155
|
-
if (eq(array[length][0], key)) {
|
|
44156
|
-
return length;
|
|
44157
|
-
}
|
|
44158
|
-
}
|
|
44159
|
-
return -1;
|
|
44160
|
-
}
|
|
44161
|
-
|
|
44162
|
-
/** Used for built-in method references. */
|
|
44163
|
-
var arrayProto = Array.prototype;
|
|
44164
|
-
|
|
44165
|
-
/** Built-in value references. */
|
|
44166
|
-
var splice = arrayProto.splice;
|
|
44167
|
-
|
|
44168
|
-
/**
|
|
44169
|
-
* Removes `key` and its value from the list cache.
|
|
44170
|
-
*
|
|
44171
|
-
* @private
|
|
44172
|
-
* @name delete
|
|
44173
|
-
* @memberOf ListCache
|
|
44174
|
-
* @param {string} key The key of the value to remove.
|
|
44175
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
44176
|
-
*/
|
|
44177
|
-
function listCacheDelete(key) {
|
|
44178
|
-
var data = this.__data__,
|
|
44179
|
-
index = assocIndexOf(data, key);
|
|
44180
|
-
|
|
44181
|
-
if (index < 0) {
|
|
44182
|
-
return false;
|
|
44183
|
-
}
|
|
44184
|
-
var lastIndex = data.length - 1;
|
|
44185
|
-
if (index == lastIndex) {
|
|
44186
|
-
data.pop();
|
|
44187
|
-
} else {
|
|
44188
|
-
splice.call(data, index, 1);
|
|
44189
|
-
}
|
|
44190
|
-
--this.size;
|
|
44191
|
-
return true;
|
|
44192
|
-
}
|
|
44193
|
-
|
|
44194
|
-
/**
|
|
44195
|
-
* Gets the list cache value for `key`.
|
|
44196
|
-
*
|
|
44197
|
-
* @private
|
|
44198
|
-
* @name get
|
|
44199
|
-
* @memberOf ListCache
|
|
44200
|
-
* @param {string} key The key of the value to get.
|
|
44201
|
-
* @returns {*} Returns the entry value.
|
|
44202
|
-
*/
|
|
44203
|
-
function listCacheGet(key) {
|
|
44204
|
-
var data = this.__data__,
|
|
44205
|
-
index = assocIndexOf(data, key);
|
|
44206
|
-
|
|
44207
|
-
return index < 0 ? undefined : data[index][1];
|
|
44208
|
-
}
|
|
44209
|
-
|
|
44210
|
-
/**
|
|
44211
|
-
* Checks if a list cache value for `key` exists.
|
|
44212
|
-
*
|
|
44213
|
-
* @private
|
|
44214
|
-
* @name has
|
|
44215
|
-
* @memberOf ListCache
|
|
44216
|
-
* @param {string} key The key of the entry to check.
|
|
44217
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
44218
|
-
*/
|
|
44219
|
-
function listCacheHas(key) {
|
|
44220
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
44221
|
-
}
|
|
44222
|
-
|
|
44223
|
-
/**
|
|
44224
|
-
* Sets the list cache `key` to `value`.
|
|
44225
|
-
*
|
|
44226
|
-
* @private
|
|
44227
|
-
* @name set
|
|
44228
|
-
* @memberOf ListCache
|
|
44229
|
-
* @param {string} key The key of the value to set.
|
|
44230
|
-
* @param {*} value The value to set.
|
|
44231
|
-
* @returns {Object} Returns the list cache instance.
|
|
44232
|
-
*/
|
|
44233
|
-
function listCacheSet(key, value) {
|
|
44234
|
-
var data = this.__data__,
|
|
44235
|
-
index = assocIndexOf(data, key);
|
|
44236
|
-
|
|
44237
|
-
if (index < 0) {
|
|
44238
|
-
++this.size;
|
|
44239
|
-
data.push([key, value]);
|
|
44240
|
-
} else {
|
|
44241
|
-
data[index][1] = value;
|
|
44242
|
-
}
|
|
44243
|
-
return this;
|
|
44244
|
-
}
|
|
44245
|
-
|
|
44246
|
-
/**
|
|
44247
|
-
* Creates an list cache object.
|
|
44248
|
-
*
|
|
44249
|
-
* @private
|
|
44250
|
-
* @constructor
|
|
44251
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
44252
|
-
*/
|
|
44253
|
-
function ListCache(entries) {
|
|
44254
|
-
var index = -1,
|
|
44255
|
-
length = entries == null ? 0 : entries.length;
|
|
44256
|
-
|
|
44257
|
-
this.clear();
|
|
44258
|
-
while (++index < length) {
|
|
44259
|
-
var entry = entries[index];
|
|
44260
|
-
this.set(entry[0], entry[1]);
|
|
44261
|
-
}
|
|
44262
|
-
}
|
|
44263
|
-
|
|
44264
|
-
// Add methods to `ListCache`.
|
|
44265
|
-
ListCache.prototype.clear = listCacheClear;
|
|
44266
|
-
ListCache.prototype['delete'] = listCacheDelete;
|
|
44267
|
-
ListCache.prototype.get = listCacheGet;
|
|
44268
|
-
ListCache.prototype.has = listCacheHas;
|
|
44269
|
-
ListCache.prototype.set = listCacheSet;
|
|
44270
|
-
|
|
44271
|
-
/* Built-in method references that are verified to be native. */
|
|
44272
|
-
var Map$1 = getNative(root, 'Map');
|
|
44273
|
-
|
|
44274
|
-
/**
|
|
44275
|
-
* Removes all key-value entries from the map.
|
|
44276
|
-
*
|
|
44277
|
-
* @private
|
|
44278
|
-
* @name clear
|
|
44279
|
-
* @memberOf MapCache
|
|
44280
|
-
*/
|
|
44281
|
-
function mapCacheClear() {
|
|
44282
|
-
this.size = 0;
|
|
44283
|
-
this.__data__ = {
|
|
44284
|
-
'hash': new Hash,
|
|
44285
|
-
'map': new (Map$1 || ListCache),
|
|
44286
|
-
'string': new Hash
|
|
44287
|
-
};
|
|
44288
|
-
}
|
|
44289
|
-
|
|
44290
|
-
/**
|
|
44291
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
44292
|
-
*
|
|
44293
|
-
* @private
|
|
44294
|
-
* @param {*} value The value to check.
|
|
44295
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
44296
|
-
*/
|
|
44297
|
-
function isKeyable(value) {
|
|
44298
|
-
var type = typeof value;
|
|
44299
|
-
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
44300
|
-
? (value !== '__proto__')
|
|
44301
|
-
: (value === null);
|
|
44302
|
-
}
|
|
44303
|
-
|
|
44304
|
-
/**
|
|
44305
|
-
* Gets the data for `map`.
|
|
44306
|
-
*
|
|
44307
|
-
* @private
|
|
44308
|
-
* @param {Object} map The map to query.
|
|
44309
|
-
* @param {string} key The reference key.
|
|
44310
|
-
* @returns {*} Returns the map data.
|
|
44311
|
-
*/
|
|
44312
|
-
function getMapData(map, key) {
|
|
44313
|
-
var data = map.__data__;
|
|
44314
|
-
return isKeyable(key)
|
|
44315
|
-
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
44316
|
-
: data.map;
|
|
44317
|
-
}
|
|
44318
|
-
|
|
44319
|
-
/**
|
|
44320
|
-
* Removes `key` and its value from the map.
|
|
44321
|
-
*
|
|
44322
|
-
* @private
|
|
44323
|
-
* @name delete
|
|
44324
|
-
* @memberOf MapCache
|
|
44325
|
-
* @param {string} key The key of the value to remove.
|
|
44326
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
44327
|
-
*/
|
|
44328
|
-
function mapCacheDelete(key) {
|
|
44329
|
-
var result = getMapData(this, key)['delete'](key);
|
|
44330
|
-
this.size -= result ? 1 : 0;
|
|
44331
|
-
return result;
|
|
44332
|
-
}
|
|
44333
|
-
|
|
44334
|
-
/**
|
|
44335
|
-
* Gets the map value for `key`.
|
|
44336
|
-
*
|
|
44337
|
-
* @private
|
|
44338
|
-
* @name get
|
|
44339
|
-
* @memberOf MapCache
|
|
44340
|
-
* @param {string} key The key of the value to get.
|
|
44341
|
-
* @returns {*} Returns the entry value.
|
|
44342
|
-
*/
|
|
44343
|
-
function mapCacheGet(key) {
|
|
44344
|
-
return getMapData(this, key).get(key);
|
|
44345
|
-
}
|
|
44346
|
-
|
|
44347
|
-
/**
|
|
44348
|
-
* Checks if a map value for `key` exists.
|
|
44349
|
-
*
|
|
44350
|
-
* @private
|
|
44351
|
-
* @name has
|
|
44352
|
-
* @memberOf MapCache
|
|
44353
|
-
* @param {string} key The key of the entry to check.
|
|
44354
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
44355
|
-
*/
|
|
44356
|
-
function mapCacheHas(key) {
|
|
44357
|
-
return getMapData(this, key).has(key);
|
|
44358
|
-
}
|
|
44359
|
-
|
|
44360
|
-
/**
|
|
44361
|
-
* Sets the map `key` to `value`.
|
|
44362
|
-
*
|
|
44363
|
-
* @private
|
|
44364
|
-
* @name set
|
|
44365
|
-
* @memberOf MapCache
|
|
44366
|
-
* @param {string} key The key of the value to set.
|
|
44367
|
-
* @param {*} value The value to set.
|
|
44368
|
-
* @returns {Object} Returns the map cache instance.
|
|
44369
|
-
*/
|
|
44370
|
-
function mapCacheSet(key, value) {
|
|
44371
|
-
var data = getMapData(this, key),
|
|
44372
|
-
size = data.size;
|
|
44373
|
-
|
|
44374
|
-
data.set(key, value);
|
|
44375
|
-
this.size += data.size == size ? 0 : 1;
|
|
44376
|
-
return this;
|
|
44377
|
-
}
|
|
44378
|
-
|
|
44379
|
-
/**
|
|
44380
|
-
* Creates a map cache object to store key-value pairs.
|
|
44381
|
-
*
|
|
44382
|
-
* @private
|
|
44383
|
-
* @constructor
|
|
44384
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
44385
|
-
*/
|
|
44386
|
-
function MapCache(entries) {
|
|
44387
|
-
var index = -1,
|
|
44388
|
-
length = entries == null ? 0 : entries.length;
|
|
44389
|
-
|
|
44390
|
-
this.clear();
|
|
44391
|
-
while (++index < length) {
|
|
44392
|
-
var entry = entries[index];
|
|
44393
|
-
this.set(entry[0], entry[1]);
|
|
44394
|
-
}
|
|
44395
|
-
}
|
|
44396
|
-
|
|
44397
|
-
// Add methods to `MapCache`.
|
|
44398
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
44399
|
-
MapCache.prototype['delete'] = mapCacheDelete;
|
|
44400
|
-
MapCache.prototype.get = mapCacheGet;
|
|
44401
|
-
MapCache.prototype.has = mapCacheHas;
|
|
44402
|
-
MapCache.prototype.set = mapCacheSet;
|
|
44403
|
-
|
|
44404
|
-
/** Built-in value references. */
|
|
44405
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
44406
|
-
|
|
44407
|
-
/** `Object#toString` result references. */
|
|
44408
|
-
var objectTag = '[object Object]';
|
|
44409
|
-
|
|
44410
|
-
/** Used for built-in method references. */
|
|
44411
|
-
var funcProto = Function.prototype,
|
|
44412
|
-
objectProto = Object.prototype;
|
|
44413
|
-
|
|
44414
|
-
/** Used to resolve the decompiled source of functions. */
|
|
44415
|
-
var funcToString = funcProto.toString;
|
|
44416
|
-
|
|
44417
|
-
/** Used to check objects for own properties. */
|
|
44418
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
44419
|
-
|
|
44420
|
-
/** Used to infer the `Object` constructor. */
|
|
44421
|
-
var objectCtorString = funcToString.call(Object);
|
|
44422
|
-
|
|
44423
|
-
/**
|
|
44424
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
44425
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
44426
|
-
*
|
|
44427
|
-
* @static
|
|
44428
|
-
* @memberOf _
|
|
44429
|
-
* @since 0.8.0
|
|
44430
|
-
* @category Lang
|
|
44431
|
-
* @param {*} value The value to check.
|
|
44432
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
44433
|
-
* @example
|
|
44434
|
-
*
|
|
44435
|
-
* function Foo() {
|
|
44436
|
-
* this.a = 1;
|
|
44437
|
-
* }
|
|
44438
|
-
*
|
|
44439
|
-
* _.isPlainObject(new Foo);
|
|
44440
|
-
* // => false
|
|
44441
|
-
*
|
|
44442
|
-
* _.isPlainObject([1, 2, 3]);
|
|
44443
|
-
* // => false
|
|
44444
|
-
*
|
|
44445
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
44446
|
-
* // => true
|
|
44447
|
-
*
|
|
44448
|
-
* _.isPlainObject(Object.create(null));
|
|
44449
|
-
* // => true
|
|
44450
|
-
*/
|
|
44451
|
-
function isPlainObject(value) {
|
|
44452
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
44453
|
-
return false;
|
|
44454
|
-
}
|
|
44455
|
-
var proto = getPrototype(value);
|
|
44456
|
-
if (proto === null) {
|
|
44457
|
-
return true;
|
|
44458
|
-
}
|
|
44459
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
44460
|
-
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
44461
|
-
funcToString.call(Ctor) == objectCtorString;
|
|
44462
|
-
}
|
|
44463
|
-
|
|
44464
|
-
/**
|
|
44465
|
-
* Removes all key-value entries from the stack.
|
|
44466
|
-
*
|
|
44467
|
-
* @private
|
|
44468
|
-
* @name clear
|
|
44469
|
-
* @memberOf Stack
|
|
44470
|
-
*/
|
|
44471
|
-
function stackClear() {
|
|
44472
|
-
this.__data__ = new ListCache;
|
|
44473
|
-
this.size = 0;
|
|
44474
|
-
}
|
|
44475
|
-
|
|
44476
|
-
/**
|
|
44477
|
-
* Removes `key` and its value from the stack.
|
|
44478
|
-
*
|
|
44479
|
-
* @private
|
|
44480
|
-
* @name delete
|
|
44481
|
-
* @memberOf Stack
|
|
44482
|
-
* @param {string} key The key of the value to remove.
|
|
44483
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
44484
|
-
*/
|
|
44485
|
-
function stackDelete(key) {
|
|
44486
|
-
var data = this.__data__,
|
|
44487
|
-
result = data['delete'](key);
|
|
44488
|
-
|
|
44489
|
-
this.size = data.size;
|
|
44490
|
-
return result;
|
|
44491
|
-
}
|
|
44492
|
-
|
|
44493
|
-
/**
|
|
44494
|
-
* Gets the stack value for `key`.
|
|
44495
|
-
*
|
|
44496
|
-
* @private
|
|
44497
|
-
* @name get
|
|
44498
|
-
* @memberOf Stack
|
|
44499
|
-
* @param {string} key The key of the value to get.
|
|
44500
|
-
* @returns {*} Returns the entry value.
|
|
44501
|
-
*/
|
|
44502
|
-
function stackGet(key) {
|
|
44503
|
-
return this.__data__.get(key);
|
|
44504
|
-
}
|
|
44505
|
-
|
|
44506
|
-
/**
|
|
44507
|
-
* Checks if a stack value for `key` exists.
|
|
44508
|
-
*
|
|
44509
|
-
* @private
|
|
44510
|
-
* @name has
|
|
44511
|
-
* @memberOf Stack
|
|
44512
|
-
* @param {string} key The key of the entry to check.
|
|
44513
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
44514
|
-
*/
|
|
44515
|
-
function stackHas(key) {
|
|
44516
|
-
return this.__data__.has(key);
|
|
44517
|
-
}
|
|
44518
|
-
|
|
44519
|
-
/** Used as the size to enable large array optimizations. */
|
|
44520
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
44521
|
-
|
|
44522
|
-
/**
|
|
44523
|
-
* Sets the stack `key` to `value`.
|
|
44524
|
-
*
|
|
44525
|
-
* @private
|
|
44526
|
-
* @name set
|
|
44527
|
-
* @memberOf Stack
|
|
44528
|
-
* @param {string} key The key of the value to set.
|
|
44529
|
-
* @param {*} value The value to set.
|
|
44530
|
-
* @returns {Object} Returns the stack cache instance.
|
|
44531
|
-
*/
|
|
44532
|
-
function stackSet(key, value) {
|
|
44533
|
-
var data = this.__data__;
|
|
44534
|
-
if (data instanceof ListCache) {
|
|
44535
|
-
var pairs = data.__data__;
|
|
44536
|
-
if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
44537
|
-
pairs.push([key, value]);
|
|
44538
|
-
this.size = ++data.size;
|
|
44539
|
-
return this;
|
|
44540
|
-
}
|
|
44541
|
-
data = this.__data__ = new MapCache(pairs);
|
|
44542
|
-
}
|
|
44543
|
-
data.set(key, value);
|
|
44544
|
-
this.size = data.size;
|
|
44545
|
-
return this;
|
|
44546
|
-
}
|
|
44547
|
-
|
|
44548
|
-
/**
|
|
44549
|
-
* Creates a stack cache object to store key-value pairs.
|
|
44550
|
-
*
|
|
44551
|
-
* @private
|
|
44552
|
-
* @constructor
|
|
44553
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
44554
|
-
*/
|
|
44555
|
-
function Stack(entries) {
|
|
44556
|
-
var data = this.__data__ = new ListCache(entries);
|
|
44557
|
-
this.size = data.size;
|
|
44558
|
-
}
|
|
44559
|
-
|
|
44560
|
-
// Add methods to `Stack`.
|
|
44561
|
-
Stack.prototype.clear = stackClear;
|
|
44562
|
-
Stack.prototype['delete'] = stackDelete;
|
|
44563
|
-
Stack.prototype.get = stackGet;
|
|
44564
|
-
Stack.prototype.has = stackHas;
|
|
44565
|
-
Stack.prototype.set = stackSet;
|
|
44566
|
-
|
|
44567
|
-
/** Detect free variable `exports`. */
|
|
44568
|
-
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
44569
|
-
|
|
44570
|
-
/** Detect free variable `module`. */
|
|
44571
|
-
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
44572
|
-
|
|
44573
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
44574
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
44575
|
-
|
|
44576
|
-
/** Built-in value references. */
|
|
44577
|
-
var Buffer$1 = moduleExports ? root.Buffer : undefined;
|
|
44578
|
-
Buffer$1 ? Buffer$1.allocUnsafe : undefined;
|
|
44579
|
-
|
|
44580
|
-
/**
|
|
44581
|
-
* Creates a clone of `buffer`.
|
|
44582
|
-
*
|
|
44583
|
-
* @private
|
|
44584
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
44585
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
44586
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
44587
|
-
*/
|
|
44588
|
-
function cloneBuffer(buffer, isDeep) {
|
|
44589
|
-
{
|
|
44590
|
-
return buffer.slice();
|
|
44591
|
-
}
|
|
44592
|
-
}
|
|
44593
|
-
|
|
44594
|
-
/** Built-in value references. */
|
|
44595
|
-
var Uint8Array$1 = root.Uint8Array;
|
|
44596
|
-
|
|
44597
|
-
/**
|
|
44598
|
-
* Creates a clone of `arrayBuffer`.
|
|
44599
|
-
*
|
|
44600
|
-
* @private
|
|
44601
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
44602
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
44603
|
-
*/
|
|
44604
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
44605
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
44606
|
-
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
44607
|
-
return result;
|
|
44608
|
-
}
|
|
44609
|
-
|
|
44610
|
-
/**
|
|
44611
|
-
* Creates a clone of `typedArray`.
|
|
44612
|
-
*
|
|
44613
|
-
* @private
|
|
44614
|
-
* @param {Object} typedArray The typed array to clone.
|
|
44615
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
44616
|
-
* @returns {Object} Returns the cloned typed array.
|
|
44617
|
-
*/
|
|
44618
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
44619
|
-
var buffer = cloneArrayBuffer(typedArray.buffer) ;
|
|
44620
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
44621
|
-
}
|
|
44622
|
-
|
|
44623
|
-
/**
|
|
44624
|
-
* Initializes an object clone.
|
|
44625
|
-
*
|
|
44626
|
-
* @private
|
|
44627
|
-
* @param {Object} object The object to clone.
|
|
44628
|
-
* @returns {Object} Returns the initialized clone.
|
|
44629
|
-
*/
|
|
44630
|
-
function initCloneObject(object) {
|
|
44631
|
-
return (typeof object.constructor == 'function' && !isPrototype(object))
|
|
44632
|
-
? baseCreate(getPrototype(object))
|
|
44633
|
-
: {};
|
|
44634
|
-
}
|
|
44635
|
-
|
|
44636
|
-
/**
|
|
44637
|
-
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
44638
|
-
*
|
|
44639
|
-
* @private
|
|
44640
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
44641
|
-
* @returns {Function} Returns the new base function.
|
|
44642
|
-
*/
|
|
44643
|
-
function createBaseFor(fromRight) {
|
|
44644
|
-
return function(object, iteratee, keysFunc) {
|
|
44645
|
-
var index = -1,
|
|
44646
|
-
iterable = Object(object),
|
|
44647
|
-
props = keysFunc(object),
|
|
44648
|
-
length = props.length;
|
|
44649
|
-
|
|
44650
|
-
while (length--) {
|
|
44651
|
-
var key = props[++index];
|
|
44652
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
44653
|
-
break;
|
|
44654
|
-
}
|
|
44655
|
-
}
|
|
44656
|
-
return object;
|
|
44657
|
-
};
|
|
44658
|
-
}
|
|
44659
|
-
|
|
44660
|
-
/**
|
|
44661
|
-
* The base implementation of `baseForOwn` which iterates over `object`
|
|
44662
|
-
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
44663
|
-
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
44664
|
-
*
|
|
44665
|
-
* @private
|
|
44666
|
-
* @param {Object} object The object to iterate over.
|
|
44667
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
44668
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
44669
|
-
* @returns {Object} Returns `object`.
|
|
44670
|
-
*/
|
|
44671
|
-
var baseFor = createBaseFor();
|
|
44672
|
-
|
|
44673
|
-
/**
|
|
44674
|
-
* This function is like `assignValue` except that it doesn't assign
|
|
44675
|
-
* `undefined` values.
|
|
44676
|
-
*
|
|
44677
|
-
* @private
|
|
44678
|
-
* @param {Object} object The object to modify.
|
|
44679
|
-
* @param {string} key The key of the property to assign.
|
|
44680
|
-
* @param {*} value The value to assign.
|
|
44681
|
-
*/
|
|
44682
|
-
function assignMergeValue(object, key, value) {
|
|
44683
|
-
if ((value !== undefined && !eq(object[key], value)) ||
|
|
44684
|
-
(value === undefined && !(key in object))) {
|
|
44685
|
-
baseAssignValue(object, key, value);
|
|
44686
|
-
}
|
|
44687
|
-
}
|
|
44688
|
-
|
|
44689
|
-
/**
|
|
44690
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
44691
|
-
* is an object.
|
|
44692
|
-
*
|
|
44693
|
-
* @static
|
|
44694
|
-
* @memberOf _
|
|
44695
|
-
* @since 4.0.0
|
|
44696
|
-
* @category Lang
|
|
44697
|
-
* @param {*} value The value to check.
|
|
44698
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
44699
|
-
* else `false`.
|
|
44700
|
-
* @example
|
|
44701
|
-
*
|
|
44702
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
44703
|
-
* // => true
|
|
44704
|
-
*
|
|
44705
|
-
* _.isArrayLikeObject(document.body.children);
|
|
44706
|
-
* // => true
|
|
44707
|
-
*
|
|
44708
|
-
* _.isArrayLikeObject('abc');
|
|
44709
|
-
* // => false
|
|
44710
|
-
*
|
|
44711
|
-
* _.isArrayLikeObject(_.noop);
|
|
44712
|
-
* // => false
|
|
44713
|
-
*/
|
|
44714
|
-
function isArrayLikeObject(value) {
|
|
44715
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
44716
|
-
}
|
|
44717
|
-
|
|
44718
|
-
/**
|
|
44719
|
-
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
44720
|
-
*
|
|
44721
|
-
* @private
|
|
44722
|
-
* @param {Object} object The object to query.
|
|
44723
|
-
* @param {string} key The key of the property to get.
|
|
44724
|
-
* @returns {*} Returns the property value.
|
|
44725
|
-
*/
|
|
44726
|
-
function safeGet(object, key) {
|
|
44727
|
-
if (key === 'constructor' && typeof object[key] === 'function') {
|
|
44728
|
-
return;
|
|
44729
|
-
}
|
|
44730
|
-
|
|
44731
|
-
if (key == '__proto__') {
|
|
44732
|
-
return;
|
|
44733
|
-
}
|
|
44734
|
-
|
|
44735
|
-
return object[key];
|
|
44736
|
-
}
|
|
44737
|
-
|
|
44738
|
-
/**
|
|
44739
|
-
* Converts `value` to a plain object flattening inherited enumerable string
|
|
44740
|
-
* keyed properties of `value` to own properties of the plain object.
|
|
44741
|
-
*
|
|
44742
|
-
* @static
|
|
44743
|
-
* @memberOf _
|
|
44744
|
-
* @since 3.0.0
|
|
44745
|
-
* @category Lang
|
|
44746
|
-
* @param {*} value The value to convert.
|
|
44747
|
-
* @returns {Object} Returns the converted plain object.
|
|
44748
|
-
* @example
|
|
44749
|
-
*
|
|
44750
|
-
* function Foo() {
|
|
44751
|
-
* this.b = 2;
|
|
44752
|
-
* }
|
|
44753
|
-
*
|
|
44754
|
-
* Foo.prototype.c = 3;
|
|
44755
|
-
*
|
|
44756
|
-
* _.assign({ 'a': 1 }, new Foo);
|
|
44757
|
-
* // => { 'a': 1, 'b': 2 }
|
|
44758
|
-
*
|
|
44759
|
-
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
44760
|
-
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
44761
|
-
*/
|
|
44762
|
-
function toPlainObject(value) {
|
|
44763
|
-
return copyObject(value, keysIn(value));
|
|
44764
|
-
}
|
|
44765
|
-
|
|
44766
|
-
/**
|
|
44767
|
-
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
44768
|
-
* deep merges and tracks traversed objects enabling objects with circular
|
|
44769
|
-
* references to be merged.
|
|
44770
|
-
*
|
|
44771
|
-
* @private
|
|
44772
|
-
* @param {Object} object The destination object.
|
|
44773
|
-
* @param {Object} source The source object.
|
|
44774
|
-
* @param {string} key The key of the value to merge.
|
|
44775
|
-
* @param {number} srcIndex The index of `source`.
|
|
44776
|
-
* @param {Function} mergeFunc The function to merge values.
|
|
44777
|
-
* @param {Function} [customizer] The function to customize assigned values.
|
|
44778
|
-
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
44779
|
-
* counterparts.
|
|
44780
|
-
*/
|
|
44781
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
44782
|
-
var objValue = safeGet(object, key),
|
|
44783
|
-
srcValue = safeGet(source, key),
|
|
44784
|
-
stacked = stack.get(srcValue);
|
|
44785
|
-
|
|
44786
|
-
if (stacked) {
|
|
44787
|
-
assignMergeValue(object, key, stacked);
|
|
44788
|
-
return;
|
|
44789
|
-
}
|
|
44790
|
-
var newValue = customizer
|
|
44791
|
-
? customizer(objValue, srcValue, (key + ''), object, source, stack)
|
|
44792
|
-
: undefined;
|
|
44793
|
-
|
|
44794
|
-
var isCommon = newValue === undefined;
|
|
44795
|
-
|
|
44796
|
-
if (isCommon) {
|
|
44797
|
-
var isArr = isArray(srcValue),
|
|
44798
|
-
isBuff = !isArr && isBuffer(srcValue),
|
|
44799
|
-
isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
44800
|
-
|
|
44801
|
-
newValue = srcValue;
|
|
44802
|
-
if (isArr || isBuff || isTyped) {
|
|
44803
|
-
if (isArray(objValue)) {
|
|
44804
|
-
newValue = objValue;
|
|
44805
|
-
}
|
|
44806
|
-
else if (isArrayLikeObject(objValue)) {
|
|
44807
|
-
newValue = copyArray(objValue);
|
|
44808
|
-
}
|
|
44809
|
-
else if (isBuff) {
|
|
44810
|
-
isCommon = false;
|
|
44811
|
-
newValue = cloneBuffer(srcValue);
|
|
44812
|
-
}
|
|
44813
|
-
else if (isTyped) {
|
|
44814
|
-
isCommon = false;
|
|
44815
|
-
newValue = cloneTypedArray(srcValue);
|
|
44816
|
-
}
|
|
44817
|
-
else {
|
|
44818
|
-
newValue = [];
|
|
44819
|
-
}
|
|
44820
|
-
}
|
|
44821
|
-
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
44822
|
-
newValue = objValue;
|
|
44823
|
-
if (isArguments(objValue)) {
|
|
44824
|
-
newValue = toPlainObject(objValue);
|
|
44825
|
-
}
|
|
44826
|
-
else if (!isObject(objValue) || isFunction(objValue)) {
|
|
44827
|
-
newValue = initCloneObject(srcValue);
|
|
44828
|
-
}
|
|
44829
|
-
}
|
|
44830
|
-
else {
|
|
44831
|
-
isCommon = false;
|
|
44832
|
-
}
|
|
44833
|
-
}
|
|
44834
|
-
if (isCommon) {
|
|
44835
|
-
// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
44836
|
-
stack.set(srcValue, newValue);
|
|
44837
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
44838
|
-
stack['delete'](srcValue);
|
|
44839
|
-
}
|
|
44840
|
-
assignMergeValue(object, key, newValue);
|
|
44841
|
-
}
|
|
44842
|
-
|
|
44843
|
-
/**
|
|
44844
|
-
* The base implementation of `_.merge` without support for multiple sources.
|
|
44845
|
-
*
|
|
44846
|
-
* @private
|
|
44847
|
-
* @param {Object} object The destination object.
|
|
44848
|
-
* @param {Object} source The source object.
|
|
44849
|
-
* @param {number} srcIndex The index of `source`.
|
|
44850
|
-
* @param {Function} [customizer] The function to customize merged values.
|
|
44851
|
-
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
44852
|
-
* counterparts.
|
|
44853
|
-
*/
|
|
44854
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
44855
|
-
if (object === source) {
|
|
44856
|
-
return;
|
|
44857
|
-
}
|
|
44858
|
-
baseFor(source, function(srcValue, key) {
|
|
44859
|
-
stack || (stack = new Stack);
|
|
44860
|
-
if (isObject(srcValue)) {
|
|
44861
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
44862
|
-
}
|
|
44863
|
-
else {
|
|
44864
|
-
var newValue = customizer
|
|
44865
|
-
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
|
44866
|
-
: undefined;
|
|
44867
|
-
|
|
44868
|
-
if (newValue === undefined) {
|
|
44869
|
-
newValue = srcValue;
|
|
44870
|
-
}
|
|
44871
|
-
assignMergeValue(object, key, newValue);
|
|
44872
|
-
}
|
|
44873
|
-
}, keysIn);
|
|
44874
|
-
}
|
|
44875
|
-
|
|
44876
|
-
/**
|
|
44877
|
-
* This method is like `_.assign` except that it recursively merges own and
|
|
44878
|
-
* inherited enumerable string keyed properties of source objects into the
|
|
44879
|
-
* destination object. Source properties that resolve to `undefined` are
|
|
44880
|
-
* skipped if a destination value exists. Array and plain object properties
|
|
44881
|
-
* are merged recursively. Other objects and value types are overridden by
|
|
44882
|
-
* assignment. Source objects are applied from left to right. Subsequent
|
|
44883
|
-
* sources overwrite property assignments of previous sources.
|
|
44884
|
-
*
|
|
44885
|
-
* **Note:** This method mutates `object`.
|
|
44886
|
-
*
|
|
44887
|
-
* @static
|
|
44888
|
-
* @memberOf _
|
|
44889
|
-
* @since 0.5.0
|
|
44890
|
-
* @category Object
|
|
44891
|
-
* @param {Object} object The destination object.
|
|
44892
|
-
* @param {...Object} [sources] The source objects.
|
|
44893
|
-
* @returns {Object} Returns `object`.
|
|
44894
|
-
* @example
|
|
44895
|
-
*
|
|
44896
|
-
* var object = {
|
|
44897
|
-
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
|
44898
|
-
* };
|
|
44899
|
-
*
|
|
44900
|
-
* var other = {
|
|
44901
|
-
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
|
44902
|
-
* };
|
|
44903
|
-
*
|
|
44904
|
-
* _.merge(object, other);
|
|
44905
|
-
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
44906
|
-
*/
|
|
44907
|
-
var merge = createAssigner(function(object, source, srcIndex) {
|
|
44908
|
-
baseMerge(object, source, srcIndex);
|
|
44909
|
-
});
|
|
44910
|
-
|
|
44911
|
-
const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
|
|
44912
|
-
const useVxeTable = (opt, extras) => {
|
|
44913
|
-
opt.id = opt.id ? opt.id : String((/* @__PURE__ */ new Date()).getTime());
|
|
44914
|
-
const options = vue.reactive({
|
|
44915
|
-
id: opt.id,
|
|
44916
|
-
height: "auto",
|
|
44917
|
-
autoResize: true,
|
|
44918
|
-
size: vxeSize,
|
|
44919
|
-
loading: false,
|
|
44920
|
-
align: "center",
|
|
44921
|
-
// 自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)
|
|
44922
|
-
// data: [] as Array<T>,
|
|
44923
|
-
columns: opt.columns,
|
|
44924
|
-
showFooter: opt.showFooter,
|
|
44925
|
-
footerData: opt.footerData,
|
|
44926
|
-
footerMethod: opt.footerMethod,
|
|
44927
|
-
toolbarConfig: {
|
|
44928
|
-
size: vxeSize,
|
|
44929
|
-
slots: { buttons: "toolbar_buttons", tools: "toolbar_tools" },
|
|
44930
|
-
refresh: {
|
|
44931
|
-
code: "query"
|
|
44932
|
-
},
|
|
44933
|
-
export: true,
|
|
44934
|
-
print: true,
|
|
44935
|
-
zoom: true,
|
|
44936
|
-
custom: true
|
|
44937
|
-
},
|
|
44938
|
-
checkboxConfig: { range: true },
|
|
44939
|
-
// sortConfig: { trigger: 'cell', remote: true },
|
|
44940
|
-
exportConfig: {
|
|
44941
|
-
remote: false,
|
|
44942
|
-
// 设置使用服务端导出
|
|
44943
|
-
filename: `${opt.name}\u5BFC\u51FA_${elementPlus.dayjs().format("YYMMDDHHmmss")}`
|
|
44944
|
-
},
|
|
44945
|
-
pagerConfig: {
|
|
44946
|
-
enabled: true,
|
|
44947
|
-
size: vxeSize,
|
|
44948
|
-
pageSize: 50
|
|
44949
|
-
},
|
|
44950
|
-
printConfig: { sheetName: "" },
|
|
44951
|
-
customConfig: {
|
|
44952
|
-
storage: {
|
|
44953
|
-
// 是否启用 localStorage 本地保存,会将列操作状态保留在本地(需要有 id)
|
|
44954
|
-
visible: true,
|
|
44955
|
-
// 启用显示/隐藏列状态
|
|
44956
|
-
resizable: true
|
|
44957
|
-
// 启用列宽状态
|
|
44958
|
-
}
|
|
44959
|
-
}
|
|
44960
|
-
});
|
|
44961
|
-
if (opt.data) {
|
|
44962
|
-
options.data = opt.data;
|
|
44963
|
-
} else {
|
|
44964
|
-
options.proxyConfig = {
|
|
44965
|
-
enabled: true,
|
|
44966
|
-
autoLoad: false,
|
|
44967
|
-
sort: true,
|
|
44968
|
-
props: {
|
|
44969
|
-
list: "data.result",
|
|
44970
|
-
// 全量
|
|
44971
|
-
result: "data.result.items",
|
|
44972
|
-
// 分页
|
|
44973
|
-
total: "data.result.total",
|
|
44974
|
-
message: "data.message"
|
|
44975
|
-
}
|
|
44976
|
-
};
|
|
44977
|
-
}
|
|
44978
|
-
if (opt.sortConfig) {
|
|
44979
|
-
options.sortConfig = opt.sortConfig;
|
|
44980
|
-
} else {
|
|
44981
|
-
options.sortConfig = { remote: true };
|
|
44982
|
-
}
|
|
44983
|
-
return extras ? merge(options, extras) : options;
|
|
44984
|
-
};
|
|
44985
|
-
|
|
44986
42824
|
const version = "1.0.0";
|
|
44987
42825
|
|
|
44988
42826
|
const install = installer.install;
|
|
@@ -45056,7 +42894,6 @@
|
|
|
45056
42894
|
exports.useTagsViewRoutes = useTagsViewRoutes;
|
|
45057
42895
|
exports.useThemeConfig = useThemeConfig;
|
|
45058
42896
|
exports.useUserInfo = useUserInfo;
|
|
45059
|
-
exports.useVxeTable = useVxeTable;
|
|
45060
42897
|
exports.verifiyNumberInteger = verifiyNumberInteger;
|
|
45061
42898
|
exports.verifyAccount = verifyAccount;
|
|
45062
42899
|
exports.verifyAndSpace = verifyAndSpace;
|