x-prop-tree 0.8.26 → 0.8.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/i18n-en.iiploulp.js +19 -0
- package/dist/i18n-zhHans.bb5g1fpp.js +19 -0
- package/dist/index.js +3561 -1
- package/dist/rolldown-runtime.c6i0pdwe.js +18 -0
- package/dist/vendor.o2dszt6f.js +3079 -0
- package/package.json +10 -15
- package/dist/i18n-en.bjdqf6it.js +0 -1
- package/dist/i18n-zhHans.erc38kn7.js +0 -1
- package/dist/rolldown-runtime.mam1o4z7.js +0 -1
- package/dist/vendor.e8wfa9wu.js +0 -1
|
@@ -0,0 +1,3079 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
2
|
+
/**
|
|
3
|
+
* Removes all key-value entries from the list cache.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
* @name clear
|
|
7
|
+
* @memberOf ListCache
|
|
8
|
+
*/
|
|
9
|
+
function listCacheClear() {
|
|
10
|
+
this.__data__ = [];
|
|
11
|
+
this.size = 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
16
|
+
/**
|
|
17
|
+
* Performs a
|
|
18
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
19
|
+
* comparison between two values to determine if they are equivalent.
|
|
20
|
+
*
|
|
21
|
+
* @static
|
|
22
|
+
* @memberOf _
|
|
23
|
+
* @since 4.0.0
|
|
24
|
+
* @category Lang
|
|
25
|
+
* @param {*} value The value to compare.
|
|
26
|
+
* @param {*} other The other value to compare.
|
|
27
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* var object = { 'a': 1 };
|
|
31
|
+
* var other = { 'a': 1 };
|
|
32
|
+
*
|
|
33
|
+
* _.eq(object, object);
|
|
34
|
+
* // => true
|
|
35
|
+
*
|
|
36
|
+
* _.eq(object, other);
|
|
37
|
+
* // => false
|
|
38
|
+
*
|
|
39
|
+
* _.eq('a', 'a');
|
|
40
|
+
* // => true
|
|
41
|
+
*
|
|
42
|
+
* _.eq('a', Object('a'));
|
|
43
|
+
* // => false
|
|
44
|
+
*
|
|
45
|
+
* _.eq(NaN, NaN);
|
|
46
|
+
* // => true
|
|
47
|
+
*/
|
|
48
|
+
function eq(value, other) {
|
|
49
|
+
return value === other || value !== value && other !== other;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
54
|
+
/**
|
|
55
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
56
|
+
*
|
|
57
|
+
* @private
|
|
58
|
+
* @param {Array} array The array to inspect.
|
|
59
|
+
* @param {*} key The key to search for.
|
|
60
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
61
|
+
*/
|
|
62
|
+
function assocIndexOf(array, key) {
|
|
63
|
+
var length = array.length;
|
|
64
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
65
|
+
return -1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
70
|
+
/** Built-in value references. */
|
|
71
|
+
var splice = Array.prototype.splice;
|
|
72
|
+
/**
|
|
73
|
+
* Removes `key` and its value from the list cache.
|
|
74
|
+
*
|
|
75
|
+
* @private
|
|
76
|
+
* @name delete
|
|
77
|
+
* @memberOf ListCache
|
|
78
|
+
* @param {string} key The key of the value to remove.
|
|
79
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
80
|
+
*/
|
|
81
|
+
function listCacheDelete(key) {
|
|
82
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
83
|
+
if (index < 0) return false;
|
|
84
|
+
if (index == data.length - 1) data.pop();
|
|
85
|
+
else splice.call(data, index, 1);
|
|
86
|
+
--this.size;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
92
|
+
/**
|
|
93
|
+
* Gets the list cache value for `key`.
|
|
94
|
+
*
|
|
95
|
+
* @private
|
|
96
|
+
* @name get
|
|
97
|
+
* @memberOf ListCache
|
|
98
|
+
* @param {string} key The key of the value to get.
|
|
99
|
+
* @returns {*} Returns the entry value.
|
|
100
|
+
*/
|
|
101
|
+
function listCacheGet(key) {
|
|
102
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
103
|
+
return index < 0 ? void 0 : data[index][1];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
108
|
+
/**
|
|
109
|
+
* Checks if a list cache value for `key` exists.
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
* @name has
|
|
113
|
+
* @memberOf ListCache
|
|
114
|
+
* @param {string} key The key of the entry to check.
|
|
115
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
116
|
+
*/
|
|
117
|
+
function listCacheHas(key) {
|
|
118
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
123
|
+
/**
|
|
124
|
+
* Sets the list cache `key` to `value`.
|
|
125
|
+
*
|
|
126
|
+
* @private
|
|
127
|
+
* @name set
|
|
128
|
+
* @memberOf ListCache
|
|
129
|
+
* @param {string} key The key of the value to set.
|
|
130
|
+
* @param {*} value The value to set.
|
|
131
|
+
* @returns {Object} Returns the list cache instance.
|
|
132
|
+
*/
|
|
133
|
+
function listCacheSet(key, value) {
|
|
134
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
135
|
+
if (index < 0) {
|
|
136
|
+
++this.size;
|
|
137
|
+
data.push([key, value]);
|
|
138
|
+
} else data[index][1] = value;
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
144
|
+
/**
|
|
145
|
+
* Creates an list cache object.
|
|
146
|
+
*
|
|
147
|
+
* @private
|
|
148
|
+
* @constructor
|
|
149
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
150
|
+
*/
|
|
151
|
+
function ListCache(entries) {
|
|
152
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
153
|
+
this.clear();
|
|
154
|
+
while (++index < length) {
|
|
155
|
+
var entry = entries[index];
|
|
156
|
+
this.set(entry[0], entry[1]);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
ListCache.prototype.clear = listCacheClear;
|
|
160
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
161
|
+
ListCache.prototype.get = listCacheGet;
|
|
162
|
+
ListCache.prototype.has = listCacheHas;
|
|
163
|
+
ListCache.prototype.set = listCacheSet;
|
|
164
|
+
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
167
|
+
/**
|
|
168
|
+
* Removes all key-value entries from the stack.
|
|
169
|
+
*
|
|
170
|
+
* @private
|
|
171
|
+
* @name clear
|
|
172
|
+
* @memberOf Stack
|
|
173
|
+
*/
|
|
174
|
+
function stackClear() {
|
|
175
|
+
this.__data__ = new ListCache();
|
|
176
|
+
this.size = 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
181
|
+
/**
|
|
182
|
+
* Removes `key` and its value from the stack.
|
|
183
|
+
*
|
|
184
|
+
* @private
|
|
185
|
+
* @name delete
|
|
186
|
+
* @memberOf Stack
|
|
187
|
+
* @param {string} key The key of the value to remove.
|
|
188
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
189
|
+
*/
|
|
190
|
+
function stackDelete(key) {
|
|
191
|
+
var data = this.__data__, result = data["delete"](key);
|
|
192
|
+
this.size = data.size;
|
|
193
|
+
return result;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
198
|
+
/**
|
|
199
|
+
* Gets the stack value for `key`.
|
|
200
|
+
*
|
|
201
|
+
* @private
|
|
202
|
+
* @name get
|
|
203
|
+
* @memberOf Stack
|
|
204
|
+
* @param {string} key The key of the value to get.
|
|
205
|
+
* @returns {*} Returns the entry value.
|
|
206
|
+
*/
|
|
207
|
+
function stackGet(key) {
|
|
208
|
+
return this.__data__.get(key);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
213
|
+
/**
|
|
214
|
+
* Checks if a stack value for `key` exists.
|
|
215
|
+
*
|
|
216
|
+
* @private
|
|
217
|
+
* @name has
|
|
218
|
+
* @memberOf Stack
|
|
219
|
+
* @param {string} key The key of the entry to check.
|
|
220
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
221
|
+
*/
|
|
222
|
+
function stackHas(key) {
|
|
223
|
+
return this.__data__.has(key);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
228
|
+
/** Detect free variable `global` from Node.js. */
|
|
229
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
230
|
+
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
233
|
+
/** Detect free variable `self`. */
|
|
234
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
235
|
+
/** Used as a reference to the global object. */
|
|
236
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
237
|
+
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
240
|
+
/** Built-in value references. */
|
|
241
|
+
var Symbol = root.Symbol;
|
|
242
|
+
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
245
|
+
/** Used for built-in method references. */
|
|
246
|
+
var objectProto$4 = Object.prototype;
|
|
247
|
+
/** Used to check objects for own properties. */
|
|
248
|
+
var hasOwnProperty$13 = objectProto$4.hasOwnProperty;
|
|
249
|
+
/**
|
|
250
|
+
* Used to resolve the
|
|
251
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
252
|
+
* of values.
|
|
253
|
+
*/
|
|
254
|
+
var nativeObjectToString$1 = objectProto$4.toString;
|
|
255
|
+
/** Built-in value references. */
|
|
256
|
+
var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
|
|
257
|
+
/**
|
|
258
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
259
|
+
*
|
|
260
|
+
* @private
|
|
261
|
+
* @param {*} value The value to query.
|
|
262
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
263
|
+
*/
|
|
264
|
+
function getRawTag(value) {
|
|
265
|
+
var isOwn = hasOwnProperty$13.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
266
|
+
try {
|
|
267
|
+
value[symToStringTag$1] = void 0;
|
|
268
|
+
var unmasked = true;
|
|
269
|
+
} catch (e) {}
|
|
270
|
+
var result = nativeObjectToString$1.call(value);
|
|
271
|
+
if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
|
|
272
|
+
else delete value[symToStringTag$1];
|
|
273
|
+
return result;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
278
|
+
/**
|
|
279
|
+
* Used to resolve the
|
|
280
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
281
|
+
* of values.
|
|
282
|
+
*/
|
|
283
|
+
var nativeObjectToString = Object.prototype.toString;
|
|
284
|
+
/**
|
|
285
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
286
|
+
*
|
|
287
|
+
* @private
|
|
288
|
+
* @param {*} value The value to convert.
|
|
289
|
+
* @returns {string} Returns the converted string.
|
|
290
|
+
*/
|
|
291
|
+
function objectToString(value) {
|
|
292
|
+
return nativeObjectToString.call(value);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
297
|
+
/** `Object#toString` result references. */
|
|
298
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
299
|
+
/** Built-in value references. */
|
|
300
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
301
|
+
/**
|
|
302
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
303
|
+
*
|
|
304
|
+
* @private
|
|
305
|
+
* @param {*} value The value to query.
|
|
306
|
+
* @returns {string} Returns the `toStringTag`.
|
|
307
|
+
*/
|
|
308
|
+
function baseGetTag(value) {
|
|
309
|
+
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
310
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
315
|
+
/**
|
|
316
|
+
* Checks if `value` is the
|
|
317
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
318
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
319
|
+
*
|
|
320
|
+
* @static
|
|
321
|
+
* @memberOf _
|
|
322
|
+
* @since 0.1.0
|
|
323
|
+
* @category Lang
|
|
324
|
+
* @param {*} value The value to check.
|
|
325
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
326
|
+
* @example
|
|
327
|
+
*
|
|
328
|
+
* _.isObject({});
|
|
329
|
+
* // => true
|
|
330
|
+
*
|
|
331
|
+
* _.isObject([1, 2, 3]);
|
|
332
|
+
* // => true
|
|
333
|
+
*
|
|
334
|
+
* _.isObject(_.noop);
|
|
335
|
+
* // => true
|
|
336
|
+
*
|
|
337
|
+
* _.isObject(null);
|
|
338
|
+
* // => false
|
|
339
|
+
*/
|
|
340
|
+
function isObject(value) {
|
|
341
|
+
var type = typeof value;
|
|
342
|
+
return value != null && (type == "object" || type == "function");
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
347
|
+
/** `Object#toString` result references. */
|
|
348
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
349
|
+
/**
|
|
350
|
+
* Checks if `value` is classified as a `Function` object.
|
|
351
|
+
*
|
|
352
|
+
* @static
|
|
353
|
+
* @memberOf _
|
|
354
|
+
* @since 0.1.0
|
|
355
|
+
* @category Lang
|
|
356
|
+
* @param {*} value The value to check.
|
|
357
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
358
|
+
* @example
|
|
359
|
+
*
|
|
360
|
+
* _.isFunction(_);
|
|
361
|
+
* // => true
|
|
362
|
+
*
|
|
363
|
+
* _.isFunction(/abc/);
|
|
364
|
+
* // => false
|
|
365
|
+
*/
|
|
366
|
+
function isFunction(value) {
|
|
367
|
+
if (!isObject(value)) return false;
|
|
368
|
+
var tag = baseGetTag(value);
|
|
369
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
374
|
+
/** Used to detect overreaching core-js shims. */
|
|
375
|
+
var coreJsData = root["__core-js_shared__"];
|
|
376
|
+
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
379
|
+
/** Used to detect methods masquerading as native. */
|
|
380
|
+
var maskSrcKey = function() {
|
|
381
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
382
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
383
|
+
}();
|
|
384
|
+
/**
|
|
385
|
+
* Checks if `func` has its source masked.
|
|
386
|
+
*
|
|
387
|
+
* @private
|
|
388
|
+
* @param {Function} func The function to check.
|
|
389
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
390
|
+
*/
|
|
391
|
+
function isMasked(func) {
|
|
392
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
397
|
+
/** Used to resolve the decompiled source of functions. */
|
|
398
|
+
var funcToString$2 = Function.prototype.toString;
|
|
399
|
+
/**
|
|
400
|
+
* Converts `func` to its source code.
|
|
401
|
+
*
|
|
402
|
+
* @private
|
|
403
|
+
* @param {Function} func The function to convert.
|
|
404
|
+
* @returns {string} Returns the source code.
|
|
405
|
+
*/
|
|
406
|
+
function toSource(func) {
|
|
407
|
+
if (func != null) {
|
|
408
|
+
try {
|
|
409
|
+
return funcToString$2.call(func);
|
|
410
|
+
} catch (e) {}
|
|
411
|
+
try {
|
|
412
|
+
return func + "";
|
|
413
|
+
} catch (e) {}
|
|
414
|
+
}
|
|
415
|
+
return "";
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
420
|
+
/**
|
|
421
|
+
* Used to match `RegExp`
|
|
422
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
423
|
+
*/
|
|
424
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
425
|
+
/** Used to detect host constructors (Safari). */
|
|
426
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
427
|
+
/** Used for built-in method references. */
|
|
428
|
+
var funcProto$1 = Function.prototype, objectProto$3 = Object.prototype;
|
|
429
|
+
/** Used to resolve the decompiled source of functions. */
|
|
430
|
+
var funcToString$1 = funcProto$1.toString;
|
|
431
|
+
/** Used to check objects for own properties. */
|
|
432
|
+
var hasOwnProperty$12 = objectProto$3.hasOwnProperty;
|
|
433
|
+
/** Used to detect if a method is native. */
|
|
434
|
+
var reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$12).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
435
|
+
/**
|
|
436
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
437
|
+
*
|
|
438
|
+
* @private
|
|
439
|
+
* @param {*} value The value to check.
|
|
440
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
441
|
+
* else `false`.
|
|
442
|
+
*/
|
|
443
|
+
function baseIsNative(value) {
|
|
444
|
+
if (!isObject(value) || isMasked(value)) return false;
|
|
445
|
+
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
450
|
+
/**
|
|
451
|
+
* Gets the value at `key` of `object`.
|
|
452
|
+
*
|
|
453
|
+
* @private
|
|
454
|
+
* @param {Object} [object] The object to query.
|
|
455
|
+
* @param {string} key The key of the property to get.
|
|
456
|
+
* @returns {*} Returns the property value.
|
|
457
|
+
*/
|
|
458
|
+
function getValue(object, key) {
|
|
459
|
+
return object == null ? void 0 : object[key];
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
464
|
+
/**
|
|
465
|
+
* Gets the native function at `key` of `object`.
|
|
466
|
+
*
|
|
467
|
+
* @private
|
|
468
|
+
* @param {Object} object The object to query.
|
|
469
|
+
* @param {string} key The key of the method to get.
|
|
470
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
471
|
+
*/
|
|
472
|
+
function getNative(object, key) {
|
|
473
|
+
var value = getValue(object, key);
|
|
474
|
+
return baseIsNative(value) ? value : void 0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
479
|
+
var Map = getNative(root, "Map");
|
|
480
|
+
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
483
|
+
var nativeCreate = getNative(Object, "create");
|
|
484
|
+
|
|
485
|
+
//#endregion
|
|
486
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
487
|
+
/**
|
|
488
|
+
* Removes all key-value entries from the hash.
|
|
489
|
+
*
|
|
490
|
+
* @private
|
|
491
|
+
* @name clear
|
|
492
|
+
* @memberOf Hash
|
|
493
|
+
*/
|
|
494
|
+
function hashClear() {
|
|
495
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
496
|
+
this.size = 0;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
//#endregion
|
|
500
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
501
|
+
/**
|
|
502
|
+
* Removes `key` and its value from the hash.
|
|
503
|
+
*
|
|
504
|
+
* @private
|
|
505
|
+
* @name delete
|
|
506
|
+
* @memberOf Hash
|
|
507
|
+
* @param {Object} hash The hash to modify.
|
|
508
|
+
* @param {string} key The key of the value to remove.
|
|
509
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
510
|
+
*/
|
|
511
|
+
function hashDelete(key) {
|
|
512
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
513
|
+
this.size -= result ? 1 : 0;
|
|
514
|
+
return result;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
//#endregion
|
|
518
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
519
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
520
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
521
|
+
/** Used to check objects for own properties. */
|
|
522
|
+
var hasOwnProperty$11 = Object.prototype.hasOwnProperty;
|
|
523
|
+
/**
|
|
524
|
+
* Gets the hash value for `key`.
|
|
525
|
+
*
|
|
526
|
+
* @private
|
|
527
|
+
* @name get
|
|
528
|
+
* @memberOf Hash
|
|
529
|
+
* @param {string} key The key of the value to get.
|
|
530
|
+
* @returns {*} Returns the entry value.
|
|
531
|
+
*/
|
|
532
|
+
function hashGet(key) {
|
|
533
|
+
var data = this.__data__;
|
|
534
|
+
if (nativeCreate) {
|
|
535
|
+
var result = data[key];
|
|
536
|
+
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
537
|
+
}
|
|
538
|
+
return hasOwnProperty$11.call(data, key) ? data[key] : void 0;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
543
|
+
/** Used to check objects for own properties. */
|
|
544
|
+
var hasOwnProperty$10 = Object.prototype.hasOwnProperty;
|
|
545
|
+
/**
|
|
546
|
+
* Checks if a hash value for `key` exists.
|
|
547
|
+
*
|
|
548
|
+
* @private
|
|
549
|
+
* @name has
|
|
550
|
+
* @memberOf Hash
|
|
551
|
+
* @param {string} key The key of the entry to check.
|
|
552
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
553
|
+
*/
|
|
554
|
+
function hashHas(key) {
|
|
555
|
+
var data = this.__data__;
|
|
556
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$10.call(data, key);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
561
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
562
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
563
|
+
/**
|
|
564
|
+
* Sets the hash `key` to `value`.
|
|
565
|
+
*
|
|
566
|
+
* @private
|
|
567
|
+
* @name set
|
|
568
|
+
* @memberOf Hash
|
|
569
|
+
* @param {string} key The key of the value to set.
|
|
570
|
+
* @param {*} value The value to set.
|
|
571
|
+
* @returns {Object} Returns the hash instance.
|
|
572
|
+
*/
|
|
573
|
+
function hashSet(key, value) {
|
|
574
|
+
var data = this.__data__;
|
|
575
|
+
this.size += this.has(key) ? 0 : 1;
|
|
576
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
577
|
+
return this;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
582
|
+
/**
|
|
583
|
+
* Creates a hash object.
|
|
584
|
+
*
|
|
585
|
+
* @private
|
|
586
|
+
* @constructor
|
|
587
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
588
|
+
*/
|
|
589
|
+
function Hash(entries) {
|
|
590
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
591
|
+
this.clear();
|
|
592
|
+
while (++index < length) {
|
|
593
|
+
var entry = entries[index];
|
|
594
|
+
this.set(entry[0], entry[1]);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
Hash.prototype.clear = hashClear;
|
|
598
|
+
Hash.prototype["delete"] = hashDelete;
|
|
599
|
+
Hash.prototype.get = hashGet;
|
|
600
|
+
Hash.prototype.has = hashHas;
|
|
601
|
+
Hash.prototype.set = hashSet;
|
|
602
|
+
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
605
|
+
/**
|
|
606
|
+
* Removes all key-value entries from the map.
|
|
607
|
+
*
|
|
608
|
+
* @private
|
|
609
|
+
* @name clear
|
|
610
|
+
* @memberOf MapCache
|
|
611
|
+
*/
|
|
612
|
+
function mapCacheClear() {
|
|
613
|
+
this.size = 0;
|
|
614
|
+
this.__data__ = {
|
|
615
|
+
"hash": new Hash(),
|
|
616
|
+
"map": new (Map || ListCache)(),
|
|
617
|
+
"string": new Hash()
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
623
|
+
/**
|
|
624
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
625
|
+
*
|
|
626
|
+
* @private
|
|
627
|
+
* @param {*} value The value to check.
|
|
628
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
629
|
+
*/
|
|
630
|
+
function isKeyable(value) {
|
|
631
|
+
var type = typeof value;
|
|
632
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
637
|
+
/**
|
|
638
|
+
* Gets the data for `map`.
|
|
639
|
+
*
|
|
640
|
+
* @private
|
|
641
|
+
* @param {Object} map The map to query.
|
|
642
|
+
* @param {string} key The reference key.
|
|
643
|
+
* @returns {*} Returns the map data.
|
|
644
|
+
*/
|
|
645
|
+
function getMapData(map, key) {
|
|
646
|
+
var data = map.__data__;
|
|
647
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
//#endregion
|
|
651
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
652
|
+
/**
|
|
653
|
+
* Removes `key` and its value from the map.
|
|
654
|
+
*
|
|
655
|
+
* @private
|
|
656
|
+
* @name delete
|
|
657
|
+
* @memberOf MapCache
|
|
658
|
+
* @param {string} key The key of the value to remove.
|
|
659
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
660
|
+
*/
|
|
661
|
+
function mapCacheDelete(key) {
|
|
662
|
+
var result = getMapData(this, key)["delete"](key);
|
|
663
|
+
this.size -= result ? 1 : 0;
|
|
664
|
+
return result;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
669
|
+
/**
|
|
670
|
+
* Gets the map value for `key`.
|
|
671
|
+
*
|
|
672
|
+
* @private
|
|
673
|
+
* @name get
|
|
674
|
+
* @memberOf MapCache
|
|
675
|
+
* @param {string} key The key of the value to get.
|
|
676
|
+
* @returns {*} Returns the entry value.
|
|
677
|
+
*/
|
|
678
|
+
function mapCacheGet(key) {
|
|
679
|
+
return getMapData(this, key).get(key);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
684
|
+
/**
|
|
685
|
+
* Checks if a map value for `key` exists.
|
|
686
|
+
*
|
|
687
|
+
* @private
|
|
688
|
+
* @name has
|
|
689
|
+
* @memberOf MapCache
|
|
690
|
+
* @param {string} key The key of the entry to check.
|
|
691
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
692
|
+
*/
|
|
693
|
+
function mapCacheHas(key) {
|
|
694
|
+
return getMapData(this, key).has(key);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
699
|
+
/**
|
|
700
|
+
* Sets the map `key` to `value`.
|
|
701
|
+
*
|
|
702
|
+
* @private
|
|
703
|
+
* @name set
|
|
704
|
+
* @memberOf MapCache
|
|
705
|
+
* @param {string} key The key of the value to set.
|
|
706
|
+
* @param {*} value The value to set.
|
|
707
|
+
* @returns {Object} Returns the map cache instance.
|
|
708
|
+
*/
|
|
709
|
+
function mapCacheSet(key, value) {
|
|
710
|
+
var data = getMapData(this, key), size = data.size;
|
|
711
|
+
data.set(key, value);
|
|
712
|
+
this.size += data.size == size ? 0 : 1;
|
|
713
|
+
return this;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
//#endregion
|
|
717
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
718
|
+
/**
|
|
719
|
+
* Creates a map cache object to store key-value pairs.
|
|
720
|
+
*
|
|
721
|
+
* @private
|
|
722
|
+
* @constructor
|
|
723
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
724
|
+
*/
|
|
725
|
+
function MapCache(entries) {
|
|
726
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
727
|
+
this.clear();
|
|
728
|
+
while (++index < length) {
|
|
729
|
+
var entry = entries[index];
|
|
730
|
+
this.set(entry[0], entry[1]);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
734
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
735
|
+
MapCache.prototype.get = mapCacheGet;
|
|
736
|
+
MapCache.prototype.has = mapCacheHas;
|
|
737
|
+
MapCache.prototype.set = mapCacheSet;
|
|
738
|
+
|
|
739
|
+
//#endregion
|
|
740
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
741
|
+
/** Used as the size to enable large array optimizations. */
|
|
742
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
743
|
+
/**
|
|
744
|
+
* Sets the stack `key` to `value`.
|
|
745
|
+
*
|
|
746
|
+
* @private
|
|
747
|
+
* @name set
|
|
748
|
+
* @memberOf Stack
|
|
749
|
+
* @param {string} key The key of the value to set.
|
|
750
|
+
* @param {*} value The value to set.
|
|
751
|
+
* @returns {Object} Returns the stack cache instance.
|
|
752
|
+
*/
|
|
753
|
+
function stackSet(key, value) {
|
|
754
|
+
var data = this.__data__;
|
|
755
|
+
if (data instanceof ListCache) {
|
|
756
|
+
var pairs = data.__data__;
|
|
757
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
758
|
+
pairs.push([key, value]);
|
|
759
|
+
this.size = ++data.size;
|
|
760
|
+
return this;
|
|
761
|
+
}
|
|
762
|
+
data = this.__data__ = new MapCache(pairs);
|
|
763
|
+
}
|
|
764
|
+
data.set(key, value);
|
|
765
|
+
this.size = data.size;
|
|
766
|
+
return this;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
771
|
+
/**
|
|
772
|
+
* Creates a stack cache object to store key-value pairs.
|
|
773
|
+
*
|
|
774
|
+
* @private
|
|
775
|
+
* @constructor
|
|
776
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
777
|
+
*/
|
|
778
|
+
function Stack(entries) {
|
|
779
|
+
var data = this.__data__ = new ListCache(entries);
|
|
780
|
+
this.size = data.size;
|
|
781
|
+
}
|
|
782
|
+
Stack.prototype.clear = stackClear;
|
|
783
|
+
Stack.prototype["delete"] = stackDelete;
|
|
784
|
+
Stack.prototype.get = stackGet;
|
|
785
|
+
Stack.prototype.has = stackHas;
|
|
786
|
+
Stack.prototype.set = stackSet;
|
|
787
|
+
|
|
788
|
+
//#endregion
|
|
789
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
790
|
+
/**
|
|
791
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
792
|
+
* iteratee shorthands.
|
|
793
|
+
*
|
|
794
|
+
* @private
|
|
795
|
+
* @param {Array} [array] The array to iterate over.
|
|
796
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
797
|
+
* @returns {Array} Returns `array`.
|
|
798
|
+
*/
|
|
799
|
+
function arrayEach(array, iteratee) {
|
|
800
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
801
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
802
|
+
return array;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
807
|
+
var defineProperty = function() {
|
|
808
|
+
try {
|
|
809
|
+
var func = getNative(Object, "defineProperty");
|
|
810
|
+
func({}, "", {});
|
|
811
|
+
return func;
|
|
812
|
+
} catch (e) {}
|
|
813
|
+
}();
|
|
814
|
+
|
|
815
|
+
//#endregion
|
|
816
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
817
|
+
/**
|
|
818
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
819
|
+
* value checks.
|
|
820
|
+
*
|
|
821
|
+
* @private
|
|
822
|
+
* @param {Object} object The object to modify.
|
|
823
|
+
* @param {string} key The key of the property to assign.
|
|
824
|
+
* @param {*} value The value to assign.
|
|
825
|
+
*/
|
|
826
|
+
function baseAssignValue(object, key, value) {
|
|
827
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
828
|
+
"configurable": true,
|
|
829
|
+
"enumerable": true,
|
|
830
|
+
"value": value,
|
|
831
|
+
"writable": true
|
|
832
|
+
});
|
|
833
|
+
else object[key] = value;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
838
|
+
/** Used to check objects for own properties. */
|
|
839
|
+
var hasOwnProperty$9 = Object.prototype.hasOwnProperty;
|
|
840
|
+
/**
|
|
841
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
842
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
843
|
+
* for equality comparisons.
|
|
844
|
+
*
|
|
845
|
+
* @private
|
|
846
|
+
* @param {Object} object The object to modify.
|
|
847
|
+
* @param {string} key The key of the property to assign.
|
|
848
|
+
* @param {*} value The value to assign.
|
|
849
|
+
*/
|
|
850
|
+
function assignValue(object, key, value) {
|
|
851
|
+
var objValue = object[key];
|
|
852
|
+
if (!(hasOwnProperty$9.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
857
|
+
/**
|
|
858
|
+
* Copies properties of `source` to `object`.
|
|
859
|
+
*
|
|
860
|
+
* @private
|
|
861
|
+
* @param {Object} source The object to copy properties from.
|
|
862
|
+
* @param {Array} props The property identifiers to copy.
|
|
863
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
864
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
865
|
+
* @returns {Object} Returns `object`.
|
|
866
|
+
*/
|
|
867
|
+
function copyObject(source, props, object, customizer) {
|
|
868
|
+
var isNew = !object;
|
|
869
|
+
object || (object = {});
|
|
870
|
+
var index = -1, length = props.length;
|
|
871
|
+
while (++index < length) {
|
|
872
|
+
var key = props[index];
|
|
873
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
874
|
+
if (newValue === void 0) newValue = source[key];
|
|
875
|
+
if (isNew) baseAssignValue(object, key, newValue);
|
|
876
|
+
else assignValue(object, key, newValue);
|
|
877
|
+
}
|
|
878
|
+
return object;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
883
|
+
/**
|
|
884
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
885
|
+
* or max array length checks.
|
|
886
|
+
*
|
|
887
|
+
* @private
|
|
888
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
889
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
890
|
+
* @returns {Array} Returns the array of results.
|
|
891
|
+
*/
|
|
892
|
+
function baseTimes(n, iteratee) {
|
|
893
|
+
var index = -1, result = Array(n);
|
|
894
|
+
while (++index < n) result[index] = iteratee(index);
|
|
895
|
+
return result;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
900
|
+
/**
|
|
901
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
902
|
+
* and has a `typeof` result of "object".
|
|
903
|
+
*
|
|
904
|
+
* @static
|
|
905
|
+
* @memberOf _
|
|
906
|
+
* @since 4.0.0
|
|
907
|
+
* @category Lang
|
|
908
|
+
* @param {*} value The value to check.
|
|
909
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
910
|
+
* @example
|
|
911
|
+
*
|
|
912
|
+
* _.isObjectLike({});
|
|
913
|
+
* // => true
|
|
914
|
+
*
|
|
915
|
+
* _.isObjectLike([1, 2, 3]);
|
|
916
|
+
* // => true
|
|
917
|
+
*
|
|
918
|
+
* _.isObjectLike(_.noop);
|
|
919
|
+
* // => false
|
|
920
|
+
*
|
|
921
|
+
* _.isObjectLike(null);
|
|
922
|
+
* // => false
|
|
923
|
+
*/
|
|
924
|
+
function isObjectLike(value) {
|
|
925
|
+
return value != null && typeof value == "object";
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
930
|
+
/** `Object#toString` result references. */
|
|
931
|
+
var argsTag$3 = "[object Arguments]";
|
|
932
|
+
/**
|
|
933
|
+
* The base implementation of `_.isArguments`.
|
|
934
|
+
*
|
|
935
|
+
* @private
|
|
936
|
+
* @param {*} value The value to check.
|
|
937
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
938
|
+
*/
|
|
939
|
+
function baseIsArguments(value) {
|
|
940
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
//#endregion
|
|
944
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
945
|
+
/** Used for built-in method references. */
|
|
946
|
+
var objectProto$2 = Object.prototype;
|
|
947
|
+
/** Used to check objects for own properties. */
|
|
948
|
+
var hasOwnProperty$8 = objectProto$2.hasOwnProperty;
|
|
949
|
+
/** Built-in value references. */
|
|
950
|
+
var propertyIsEnumerable$1 = objectProto$2.propertyIsEnumerable;
|
|
951
|
+
/**
|
|
952
|
+
* Checks if `value` is likely an `arguments` object.
|
|
953
|
+
*
|
|
954
|
+
* @static
|
|
955
|
+
* @memberOf _
|
|
956
|
+
* @since 0.1.0
|
|
957
|
+
* @category Lang
|
|
958
|
+
* @param {*} value The value to check.
|
|
959
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
960
|
+
* else `false`.
|
|
961
|
+
* @example
|
|
962
|
+
*
|
|
963
|
+
* _.isArguments(function() { return arguments; }());
|
|
964
|
+
* // => true
|
|
965
|
+
*
|
|
966
|
+
* _.isArguments([1, 2, 3]);
|
|
967
|
+
* // => false
|
|
968
|
+
*/
|
|
969
|
+
var isArguments = baseIsArguments(function() {
|
|
970
|
+
return arguments;
|
|
971
|
+
}()) ? baseIsArguments : function(value) {
|
|
972
|
+
return isObjectLike(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
977
|
+
/**
|
|
978
|
+
* Checks if `value` is classified as an `Array` object.
|
|
979
|
+
*
|
|
980
|
+
* @static
|
|
981
|
+
* @memberOf _
|
|
982
|
+
* @since 0.1.0
|
|
983
|
+
* @category Lang
|
|
984
|
+
* @param {*} value The value to check.
|
|
985
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
986
|
+
* @example
|
|
987
|
+
*
|
|
988
|
+
* _.isArray([1, 2, 3]);
|
|
989
|
+
* // => true
|
|
990
|
+
*
|
|
991
|
+
* _.isArray(document.body.children);
|
|
992
|
+
* // => false
|
|
993
|
+
*
|
|
994
|
+
* _.isArray('abc');
|
|
995
|
+
* // => false
|
|
996
|
+
*
|
|
997
|
+
* _.isArray(_.noop);
|
|
998
|
+
* // => false
|
|
999
|
+
*/
|
|
1000
|
+
var isArray = Array.isArray;
|
|
1001
|
+
|
|
1002
|
+
//#endregion
|
|
1003
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
1004
|
+
/**
|
|
1005
|
+
* This method returns `false`.
|
|
1006
|
+
*
|
|
1007
|
+
* @static
|
|
1008
|
+
* @memberOf _
|
|
1009
|
+
* @since 4.13.0
|
|
1010
|
+
* @category Util
|
|
1011
|
+
* @returns {boolean} Returns `false`.
|
|
1012
|
+
* @example
|
|
1013
|
+
*
|
|
1014
|
+
* _.times(2, _.stubFalse);
|
|
1015
|
+
* // => [false, false]
|
|
1016
|
+
*/
|
|
1017
|
+
function stubFalse() {
|
|
1018
|
+
return false;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
//#endregion
|
|
1022
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
1023
|
+
/** Detect free variable `exports`. */
|
|
1024
|
+
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1025
|
+
/** Detect free variable `module`. */
|
|
1026
|
+
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
1027
|
+
/** Built-in value references. */
|
|
1028
|
+
var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buffer : void 0;
|
|
1029
|
+
/**
|
|
1030
|
+
* Checks if `value` is a buffer.
|
|
1031
|
+
*
|
|
1032
|
+
* @static
|
|
1033
|
+
* @memberOf _
|
|
1034
|
+
* @since 4.3.0
|
|
1035
|
+
* @category Lang
|
|
1036
|
+
* @param {*} value The value to check.
|
|
1037
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1038
|
+
* @example
|
|
1039
|
+
*
|
|
1040
|
+
* _.isBuffer(new Buffer(2));
|
|
1041
|
+
* // => true
|
|
1042
|
+
*
|
|
1043
|
+
* _.isBuffer(new Uint8Array(2));
|
|
1044
|
+
* // => false
|
|
1045
|
+
*/
|
|
1046
|
+
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
1047
|
+
|
|
1048
|
+
//#endregion
|
|
1049
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
1050
|
+
/** Used as references for various `Number` constants. */
|
|
1051
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1052
|
+
/** Used to detect unsigned integer values. */
|
|
1053
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1054
|
+
/**
|
|
1055
|
+
* Checks if `value` is a valid array-like index.
|
|
1056
|
+
*
|
|
1057
|
+
* @private
|
|
1058
|
+
* @param {*} value The value to check.
|
|
1059
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1060
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1061
|
+
*/
|
|
1062
|
+
function isIndex(value, length) {
|
|
1063
|
+
var type = typeof value;
|
|
1064
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
1065
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
1070
|
+
/** Used as references for various `Number` constants. */
|
|
1071
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1072
|
+
/**
|
|
1073
|
+
* Checks if `value` is a valid array-like length.
|
|
1074
|
+
*
|
|
1075
|
+
* **Note:** This method is loosely based on
|
|
1076
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1077
|
+
*
|
|
1078
|
+
* @static
|
|
1079
|
+
* @memberOf _
|
|
1080
|
+
* @since 4.0.0
|
|
1081
|
+
* @category Lang
|
|
1082
|
+
* @param {*} value The value to check.
|
|
1083
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1084
|
+
* @example
|
|
1085
|
+
*
|
|
1086
|
+
* _.isLength(3);
|
|
1087
|
+
* // => true
|
|
1088
|
+
*
|
|
1089
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1090
|
+
* // => false
|
|
1091
|
+
*
|
|
1092
|
+
* _.isLength(Infinity);
|
|
1093
|
+
* // => false
|
|
1094
|
+
*
|
|
1095
|
+
* _.isLength('3');
|
|
1096
|
+
* // => false
|
|
1097
|
+
*/
|
|
1098
|
+
function isLength(value) {
|
|
1099
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
//#endregion
|
|
1103
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
1104
|
+
/** `Object#toString` result references. */
|
|
1105
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
1106
|
+
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
1107
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1108
|
+
var typedArrayTags = {};
|
|
1109
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
1110
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
|
|
1111
|
+
/**
|
|
1112
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1113
|
+
*
|
|
1114
|
+
* @private
|
|
1115
|
+
* @param {*} value The value to check.
|
|
1116
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1117
|
+
*/
|
|
1118
|
+
function baseIsTypedArray(value) {
|
|
1119
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
//#endregion
|
|
1123
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
1124
|
+
/**
|
|
1125
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
1126
|
+
*
|
|
1127
|
+
* @private
|
|
1128
|
+
* @param {Function} func The function to cap arguments for.
|
|
1129
|
+
* @returns {Function} Returns the new capped function.
|
|
1130
|
+
*/
|
|
1131
|
+
function baseUnary(func) {
|
|
1132
|
+
return function(value) {
|
|
1133
|
+
return func(value);
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
//#endregion
|
|
1138
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
1139
|
+
/** Detect free variable `exports`. */
|
|
1140
|
+
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1141
|
+
/** Detect free variable `module`. */
|
|
1142
|
+
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
1143
|
+
/** Detect free variable `process` from Node.js. */
|
|
1144
|
+
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
1145
|
+
/** Used to access faster Node.js helpers. */
|
|
1146
|
+
var nodeUtil = function() {
|
|
1147
|
+
try {
|
|
1148
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
1149
|
+
if (types) return types;
|
|
1150
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1151
|
+
} catch (e) {}
|
|
1152
|
+
}();
|
|
1153
|
+
|
|
1154
|
+
//#endregion
|
|
1155
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
1156
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1157
|
+
/**
|
|
1158
|
+
* Checks if `value` is classified as a typed array.
|
|
1159
|
+
*
|
|
1160
|
+
* @static
|
|
1161
|
+
* @memberOf _
|
|
1162
|
+
* @since 3.0.0
|
|
1163
|
+
* @category Lang
|
|
1164
|
+
* @param {*} value The value to check.
|
|
1165
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1166
|
+
* @example
|
|
1167
|
+
*
|
|
1168
|
+
* _.isTypedArray(new Uint8Array);
|
|
1169
|
+
* // => true
|
|
1170
|
+
*
|
|
1171
|
+
* _.isTypedArray([]);
|
|
1172
|
+
* // => false
|
|
1173
|
+
*/
|
|
1174
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1175
|
+
|
|
1176
|
+
//#endregion
|
|
1177
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
1178
|
+
/** Used to check objects for own properties. */
|
|
1179
|
+
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
1180
|
+
/**
|
|
1181
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1182
|
+
*
|
|
1183
|
+
* @private
|
|
1184
|
+
* @param {*} value The value to query.
|
|
1185
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
1186
|
+
* @returns {Array} Returns the array of property names.
|
|
1187
|
+
*/
|
|
1188
|
+
function arrayLikeKeys(value, inherited) {
|
|
1189
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
1190
|
+
for (var key in value) if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
1191
|
+
return result;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
//#endregion
|
|
1195
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
1196
|
+
/** Used for built-in method references. */
|
|
1197
|
+
var objectProto$1 = Object.prototype;
|
|
1198
|
+
/**
|
|
1199
|
+
* Checks if `value` is likely a prototype object.
|
|
1200
|
+
*
|
|
1201
|
+
* @private
|
|
1202
|
+
* @param {*} value The value to check.
|
|
1203
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1204
|
+
*/
|
|
1205
|
+
function isPrototype(value) {
|
|
1206
|
+
var Ctor = value && value.constructor;
|
|
1207
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
//#endregion
|
|
1211
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
1212
|
+
/**
|
|
1213
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1214
|
+
*
|
|
1215
|
+
* @private
|
|
1216
|
+
* @param {Function} func The function to wrap.
|
|
1217
|
+
* @param {Function} transform The argument transform.
|
|
1218
|
+
* @returns {Function} Returns the new function.
|
|
1219
|
+
*/
|
|
1220
|
+
function overArg(func, transform) {
|
|
1221
|
+
return function(arg) {
|
|
1222
|
+
return func(transform(arg));
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
1228
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
1229
|
+
|
|
1230
|
+
//#endregion
|
|
1231
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
1232
|
+
/** Used to check objects for own properties. */
|
|
1233
|
+
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
1234
|
+
/**
|
|
1235
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
1236
|
+
*
|
|
1237
|
+
* @private
|
|
1238
|
+
* @param {Object} object The object to query.
|
|
1239
|
+
* @returns {Array} Returns the array of property names.
|
|
1240
|
+
*/
|
|
1241
|
+
function baseKeys(object) {
|
|
1242
|
+
if (!isPrototype(object)) return nativeKeys(object);
|
|
1243
|
+
var result = [];
|
|
1244
|
+
for (var key in Object(object)) if (hasOwnProperty$6.call(object, key) && key != "constructor") result.push(key);
|
|
1245
|
+
return result;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
//#endregion
|
|
1249
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
1250
|
+
/**
|
|
1251
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1252
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
1253
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1254
|
+
*
|
|
1255
|
+
* @static
|
|
1256
|
+
* @memberOf _
|
|
1257
|
+
* @since 4.0.0
|
|
1258
|
+
* @category Lang
|
|
1259
|
+
* @param {*} value The value to check.
|
|
1260
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1261
|
+
* @example
|
|
1262
|
+
*
|
|
1263
|
+
* _.isArrayLike([1, 2, 3]);
|
|
1264
|
+
* // => true
|
|
1265
|
+
*
|
|
1266
|
+
* _.isArrayLike(document.body.children);
|
|
1267
|
+
* // => true
|
|
1268
|
+
*
|
|
1269
|
+
* _.isArrayLike('abc');
|
|
1270
|
+
* // => true
|
|
1271
|
+
*
|
|
1272
|
+
* _.isArrayLike(_.noop);
|
|
1273
|
+
* // => false
|
|
1274
|
+
*/
|
|
1275
|
+
function isArrayLike(value) {
|
|
1276
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
//#endregion
|
|
1280
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
1281
|
+
/**
|
|
1282
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
1283
|
+
*
|
|
1284
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
1285
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1286
|
+
* for more details.
|
|
1287
|
+
*
|
|
1288
|
+
* @static
|
|
1289
|
+
* @since 0.1.0
|
|
1290
|
+
* @memberOf _
|
|
1291
|
+
* @category Object
|
|
1292
|
+
* @param {Object} object The object to query.
|
|
1293
|
+
* @returns {Array} Returns the array of property names.
|
|
1294
|
+
* @example
|
|
1295
|
+
*
|
|
1296
|
+
* function Foo() {
|
|
1297
|
+
* this.a = 1;
|
|
1298
|
+
* this.b = 2;
|
|
1299
|
+
* }
|
|
1300
|
+
*
|
|
1301
|
+
* Foo.prototype.c = 3;
|
|
1302
|
+
*
|
|
1303
|
+
* _.keys(new Foo);
|
|
1304
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1305
|
+
*
|
|
1306
|
+
* _.keys('hi');
|
|
1307
|
+
* // => ['0', '1']
|
|
1308
|
+
*/
|
|
1309
|
+
function keys(object) {
|
|
1310
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
//#endregion
|
|
1314
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
1315
|
+
/**
|
|
1316
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
1317
|
+
* or `customizer` functions.
|
|
1318
|
+
*
|
|
1319
|
+
* @private
|
|
1320
|
+
* @param {Object} object The destination object.
|
|
1321
|
+
* @param {Object} source The source object.
|
|
1322
|
+
* @returns {Object} Returns `object`.
|
|
1323
|
+
*/
|
|
1324
|
+
function baseAssign(object, source) {
|
|
1325
|
+
return object && copyObject(source, keys(source), object);
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
//#endregion
|
|
1329
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
1330
|
+
/**
|
|
1331
|
+
* This function is like
|
|
1332
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1333
|
+
* except that it includes inherited enumerable properties.
|
|
1334
|
+
*
|
|
1335
|
+
* @private
|
|
1336
|
+
* @param {Object} object The object to query.
|
|
1337
|
+
* @returns {Array} Returns the array of property names.
|
|
1338
|
+
*/
|
|
1339
|
+
function nativeKeysIn(object) {
|
|
1340
|
+
var result = [];
|
|
1341
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1342
|
+
return result;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
//#endregion
|
|
1346
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
1347
|
+
/** Used to check objects for own properties. */
|
|
1348
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
1349
|
+
/**
|
|
1350
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1351
|
+
*
|
|
1352
|
+
* @private
|
|
1353
|
+
* @param {Object} object The object to query.
|
|
1354
|
+
* @returns {Array} Returns the array of property names.
|
|
1355
|
+
*/
|
|
1356
|
+
function baseKeysIn(object) {
|
|
1357
|
+
if (!isObject(object)) return nativeKeysIn(object);
|
|
1358
|
+
var isProto = isPrototype(object), result = [];
|
|
1359
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$5.call(object, key)))) result.push(key);
|
|
1360
|
+
return result;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
//#endregion
|
|
1364
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
1365
|
+
/**
|
|
1366
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1367
|
+
*
|
|
1368
|
+
* **Note:** Non-object values are coerced to objects.
|
|
1369
|
+
*
|
|
1370
|
+
* @static
|
|
1371
|
+
* @memberOf _
|
|
1372
|
+
* @since 3.0.0
|
|
1373
|
+
* @category Object
|
|
1374
|
+
* @param {Object} object The object to query.
|
|
1375
|
+
* @returns {Array} Returns the array of property names.
|
|
1376
|
+
* @example
|
|
1377
|
+
*
|
|
1378
|
+
* function Foo() {
|
|
1379
|
+
* this.a = 1;
|
|
1380
|
+
* this.b = 2;
|
|
1381
|
+
* }
|
|
1382
|
+
*
|
|
1383
|
+
* Foo.prototype.c = 3;
|
|
1384
|
+
*
|
|
1385
|
+
* _.keysIn(new Foo);
|
|
1386
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
1387
|
+
*/
|
|
1388
|
+
function keysIn(object) {
|
|
1389
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
//#endregion
|
|
1393
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
1394
|
+
/**
|
|
1395
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1396
|
+
* or `customizer` functions.
|
|
1397
|
+
*
|
|
1398
|
+
* @private
|
|
1399
|
+
* @param {Object} object The destination object.
|
|
1400
|
+
* @param {Object} source The source object.
|
|
1401
|
+
* @returns {Object} Returns `object`.
|
|
1402
|
+
*/
|
|
1403
|
+
function baseAssignIn(object, source) {
|
|
1404
|
+
return object && copyObject(source, keysIn(source), object);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
//#endregion
|
|
1408
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
1409
|
+
/** Detect free variable `exports`. */
|
|
1410
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1411
|
+
/** Detect free variable `module`. */
|
|
1412
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1413
|
+
/** Built-in value references. */
|
|
1414
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1415
|
+
/**
|
|
1416
|
+
* Creates a clone of `buffer`.
|
|
1417
|
+
*
|
|
1418
|
+
* @private
|
|
1419
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
1420
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1421
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
1422
|
+
*/
|
|
1423
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1424
|
+
if (isDeep) return buffer.slice();
|
|
1425
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1426
|
+
buffer.copy(result);
|
|
1427
|
+
return result;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
//#endregion
|
|
1431
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
1432
|
+
/**
|
|
1433
|
+
* Copies the values of `source` to `array`.
|
|
1434
|
+
*
|
|
1435
|
+
* @private
|
|
1436
|
+
* @param {Array} source The array to copy values from.
|
|
1437
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
1438
|
+
* @returns {Array} Returns `array`.
|
|
1439
|
+
*/
|
|
1440
|
+
function copyArray(source, array) {
|
|
1441
|
+
var index = -1, length = source.length;
|
|
1442
|
+
array || (array = Array(length));
|
|
1443
|
+
while (++index < length) array[index] = source[index];
|
|
1444
|
+
return array;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
//#endregion
|
|
1448
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
1449
|
+
/**
|
|
1450
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
1451
|
+
* iteratee shorthands.
|
|
1452
|
+
*
|
|
1453
|
+
* @private
|
|
1454
|
+
* @param {Array} [array] The array to iterate over.
|
|
1455
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
1456
|
+
* @returns {Array} Returns the new filtered array.
|
|
1457
|
+
*/
|
|
1458
|
+
function arrayFilter(array, predicate) {
|
|
1459
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1460
|
+
while (++index < length) {
|
|
1461
|
+
var value = array[index];
|
|
1462
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
1463
|
+
}
|
|
1464
|
+
return result;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
//#endregion
|
|
1468
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
1469
|
+
/**
|
|
1470
|
+
* This method returns a new empty array.
|
|
1471
|
+
*
|
|
1472
|
+
* @static
|
|
1473
|
+
* @memberOf _
|
|
1474
|
+
* @since 4.13.0
|
|
1475
|
+
* @category Util
|
|
1476
|
+
* @returns {Array} Returns the new empty array.
|
|
1477
|
+
* @example
|
|
1478
|
+
*
|
|
1479
|
+
* var arrays = _.times(2, _.stubArray);
|
|
1480
|
+
*
|
|
1481
|
+
* console.log(arrays);
|
|
1482
|
+
* // => [[], []]
|
|
1483
|
+
*
|
|
1484
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1485
|
+
* // => false
|
|
1486
|
+
*/
|
|
1487
|
+
function stubArray() {
|
|
1488
|
+
return [];
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
//#endregion
|
|
1492
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
1493
|
+
/** Built-in value references. */
|
|
1494
|
+
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1495
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1496
|
+
/**
|
|
1497
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
1498
|
+
*
|
|
1499
|
+
* @private
|
|
1500
|
+
* @param {Object} object The object to query.
|
|
1501
|
+
* @returns {Array} Returns the array of symbols.
|
|
1502
|
+
*/
|
|
1503
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1504
|
+
if (object == null) return [];
|
|
1505
|
+
object = Object(object);
|
|
1506
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1507
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
1508
|
+
});
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
//#endregion
|
|
1512
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
1513
|
+
/**
|
|
1514
|
+
* Copies own symbols of `source` to `object`.
|
|
1515
|
+
*
|
|
1516
|
+
* @private
|
|
1517
|
+
* @param {Object} source The object to copy symbols from.
|
|
1518
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1519
|
+
* @returns {Object} Returns `object`.
|
|
1520
|
+
*/
|
|
1521
|
+
function copySymbols(source, object) {
|
|
1522
|
+
return copyObject(source, getSymbols(source), object);
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
//#endregion
|
|
1526
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1527
|
+
/**
|
|
1528
|
+
* Appends the elements of `values` to `array`.
|
|
1529
|
+
*
|
|
1530
|
+
* @private
|
|
1531
|
+
* @param {Array} array The array to modify.
|
|
1532
|
+
* @param {Array} values The values to append.
|
|
1533
|
+
* @returns {Array} Returns `array`.
|
|
1534
|
+
*/
|
|
1535
|
+
function arrayPush(array, values) {
|
|
1536
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1537
|
+
while (++index < length) array[offset + index] = values[index];
|
|
1538
|
+
return array;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
//#endregion
|
|
1542
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
1543
|
+
/** Built-in value references. */
|
|
1544
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1545
|
+
|
|
1546
|
+
//#endregion
|
|
1547
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
1548
|
+
/**
|
|
1549
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1550
|
+
*
|
|
1551
|
+
* @private
|
|
1552
|
+
* @param {Object} object The object to query.
|
|
1553
|
+
* @returns {Array} Returns the array of symbols.
|
|
1554
|
+
*/
|
|
1555
|
+
var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
|
|
1556
|
+
var result = [];
|
|
1557
|
+
while (object) {
|
|
1558
|
+
arrayPush(result, getSymbols(object));
|
|
1559
|
+
object = getPrototype(object);
|
|
1560
|
+
}
|
|
1561
|
+
return result;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
1566
|
+
/**
|
|
1567
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
1568
|
+
*
|
|
1569
|
+
* @private
|
|
1570
|
+
* @param {Object} source The object to copy symbols from.
|
|
1571
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1572
|
+
* @returns {Object} Returns `object`.
|
|
1573
|
+
*/
|
|
1574
|
+
function copySymbolsIn(source, object) {
|
|
1575
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
//#endregion
|
|
1579
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1580
|
+
/**
|
|
1581
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1582
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1583
|
+
* symbols of `object`.
|
|
1584
|
+
*
|
|
1585
|
+
* @private
|
|
1586
|
+
* @param {Object} object The object to query.
|
|
1587
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1588
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
1589
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1590
|
+
*/
|
|
1591
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1592
|
+
var result = keysFunc(object);
|
|
1593
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
//#endregion
|
|
1597
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
1598
|
+
/**
|
|
1599
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1600
|
+
*
|
|
1601
|
+
* @private
|
|
1602
|
+
* @param {Object} object The object to query.
|
|
1603
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1604
|
+
*/
|
|
1605
|
+
function getAllKeys(object) {
|
|
1606
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
//#endregion
|
|
1610
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
1611
|
+
/**
|
|
1612
|
+
* Creates an array of own and inherited enumerable property names and
|
|
1613
|
+
* symbols of `object`.
|
|
1614
|
+
*
|
|
1615
|
+
* @private
|
|
1616
|
+
* @param {Object} object The object to query.
|
|
1617
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1618
|
+
*/
|
|
1619
|
+
function getAllKeysIn(object) {
|
|
1620
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
//#endregion
|
|
1624
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
1625
|
+
var DataView = getNative(root, "DataView");
|
|
1626
|
+
|
|
1627
|
+
//#endregion
|
|
1628
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
1629
|
+
var Promise$1 = getNative(root, "Promise");
|
|
1630
|
+
|
|
1631
|
+
//#endregion
|
|
1632
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
1633
|
+
var Set = getNative(root, "Set");
|
|
1634
|
+
|
|
1635
|
+
//#endregion
|
|
1636
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
1637
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
1638
|
+
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
1641
|
+
/** `Object#toString` result references. */
|
|
1642
|
+
var mapTag$4 = "[object Map]", objectTag$3 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
1643
|
+
var dataViewTag$3 = "[object DataView]";
|
|
1644
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
1645
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
1646
|
+
/**
|
|
1647
|
+
* Gets the `toStringTag` of `value`.
|
|
1648
|
+
*
|
|
1649
|
+
* @private
|
|
1650
|
+
* @param {*} value The value to query.
|
|
1651
|
+
* @returns {string} Returns the `toStringTag`.
|
|
1652
|
+
*/
|
|
1653
|
+
var getTag = baseGetTag;
|
|
1654
|
+
if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$3 || Map && getTag(new Map()) != mapTag$4 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$4 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) getTag = function(value) {
|
|
1655
|
+
var result = baseGetTag(value), Ctor = result == objectTag$3 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1656
|
+
if (ctorString) switch (ctorString) {
|
|
1657
|
+
case dataViewCtorString: return dataViewTag$3;
|
|
1658
|
+
case mapCtorString: return mapTag$4;
|
|
1659
|
+
case promiseCtorString: return promiseTag;
|
|
1660
|
+
case setCtorString: return setTag$4;
|
|
1661
|
+
case weakMapCtorString: return weakMapTag$1;
|
|
1662
|
+
}
|
|
1663
|
+
return result;
|
|
1664
|
+
};
|
|
1665
|
+
var _getTag_default = getTag;
|
|
1666
|
+
|
|
1667
|
+
//#endregion
|
|
1668
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
1669
|
+
/** Used to check objects for own properties. */
|
|
1670
|
+
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
1671
|
+
/**
|
|
1672
|
+
* Initializes an array clone.
|
|
1673
|
+
*
|
|
1674
|
+
* @private
|
|
1675
|
+
* @param {Array} array The array to clone.
|
|
1676
|
+
* @returns {Array} Returns the initialized clone.
|
|
1677
|
+
*/
|
|
1678
|
+
function initCloneArray(array) {
|
|
1679
|
+
var length = array.length, result = new array.constructor(length);
|
|
1680
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$4.call(array, "index")) {
|
|
1681
|
+
result.index = array.index;
|
|
1682
|
+
result.input = array.input;
|
|
1683
|
+
}
|
|
1684
|
+
return result;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
1689
|
+
/** Built-in value references. */
|
|
1690
|
+
var Uint8Array = root.Uint8Array;
|
|
1691
|
+
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1694
|
+
/**
|
|
1695
|
+
* Creates a clone of `arrayBuffer`.
|
|
1696
|
+
*
|
|
1697
|
+
* @private
|
|
1698
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1699
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1700
|
+
*/
|
|
1701
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
1702
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1703
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1704
|
+
return result;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
//#endregion
|
|
1708
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
1709
|
+
/**
|
|
1710
|
+
* Creates a clone of `dataView`.
|
|
1711
|
+
*
|
|
1712
|
+
* @private
|
|
1713
|
+
* @param {Object} dataView The data view to clone.
|
|
1714
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1715
|
+
* @returns {Object} Returns the cloned data view.
|
|
1716
|
+
*/
|
|
1717
|
+
function cloneDataView(dataView, isDeep) {
|
|
1718
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1719
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
//#endregion
|
|
1723
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
1724
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
1725
|
+
var reFlags = /\w*$/;
|
|
1726
|
+
/**
|
|
1727
|
+
* Creates a clone of `regexp`.
|
|
1728
|
+
*
|
|
1729
|
+
* @private
|
|
1730
|
+
* @param {Object} regexp The regexp to clone.
|
|
1731
|
+
* @returns {Object} Returns the cloned regexp.
|
|
1732
|
+
*/
|
|
1733
|
+
function cloneRegExp(regexp) {
|
|
1734
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1735
|
+
result.lastIndex = regexp.lastIndex;
|
|
1736
|
+
return result;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
//#endregion
|
|
1740
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
1741
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1742
|
+
var symbolProto$2 = Symbol ? Symbol.prototype : void 0, symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : void 0;
|
|
1743
|
+
/**
|
|
1744
|
+
* Creates a clone of the `symbol` object.
|
|
1745
|
+
*
|
|
1746
|
+
* @private
|
|
1747
|
+
* @param {Object} symbol The symbol object to clone.
|
|
1748
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
1749
|
+
*/
|
|
1750
|
+
function cloneSymbol(symbol) {
|
|
1751
|
+
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
//#endregion
|
|
1755
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
1756
|
+
/**
|
|
1757
|
+
* Creates a clone of `typedArray`.
|
|
1758
|
+
*
|
|
1759
|
+
* @private
|
|
1760
|
+
* @param {Object} typedArray The typed array to clone.
|
|
1761
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1762
|
+
* @returns {Object} Returns the cloned typed array.
|
|
1763
|
+
*/
|
|
1764
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
1765
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1766
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
//#endregion
|
|
1770
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
1771
|
+
/** `Object#toString` result references. */
|
|
1772
|
+
var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$3 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$3 = "[object Symbol]";
|
|
1773
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
1774
|
+
/**
|
|
1775
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
1776
|
+
*
|
|
1777
|
+
* **Note:** This function only supports cloning values with tags of
|
|
1778
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
1779
|
+
*
|
|
1780
|
+
* @private
|
|
1781
|
+
* @param {Object} object The object to clone.
|
|
1782
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
1783
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1784
|
+
* @returns {Object} Returns the initialized clone.
|
|
1785
|
+
*/
|
|
1786
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
1787
|
+
var Ctor = object.constructor;
|
|
1788
|
+
switch (tag) {
|
|
1789
|
+
case arrayBufferTag$2: return cloneArrayBuffer(object);
|
|
1790
|
+
case boolTag$2:
|
|
1791
|
+
case dateTag$2: return new Ctor(+object);
|
|
1792
|
+
case dataViewTag$2: return cloneDataView(object, isDeep);
|
|
1793
|
+
case float32Tag$1:
|
|
1794
|
+
case float64Tag$1:
|
|
1795
|
+
case int8Tag$1:
|
|
1796
|
+
case int16Tag$1:
|
|
1797
|
+
case int32Tag$1:
|
|
1798
|
+
case uint8Tag$1:
|
|
1799
|
+
case uint8ClampedTag$1:
|
|
1800
|
+
case uint16Tag$1:
|
|
1801
|
+
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
1802
|
+
case mapTag$3: return new Ctor();
|
|
1803
|
+
case numberTag$2:
|
|
1804
|
+
case stringTag$2: return new Ctor(object);
|
|
1805
|
+
case regexpTag$2: return cloneRegExp(object);
|
|
1806
|
+
case setTag$3: return new Ctor();
|
|
1807
|
+
case symbolTag$3: return cloneSymbol(object);
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
//#endregion
|
|
1812
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
1813
|
+
/** Built-in value references. */
|
|
1814
|
+
var objectCreate = Object.create;
|
|
1815
|
+
/**
|
|
1816
|
+
* The base implementation of `_.create` without support for assigning
|
|
1817
|
+
* properties to the created object.
|
|
1818
|
+
*
|
|
1819
|
+
* @private
|
|
1820
|
+
* @param {Object} proto The object to inherit from.
|
|
1821
|
+
* @returns {Object} Returns the new object.
|
|
1822
|
+
*/
|
|
1823
|
+
var baseCreate = function() {
|
|
1824
|
+
function object() {}
|
|
1825
|
+
return function(proto) {
|
|
1826
|
+
if (!isObject(proto)) return {};
|
|
1827
|
+
if (objectCreate) return objectCreate(proto);
|
|
1828
|
+
object.prototype = proto;
|
|
1829
|
+
var result = new object();
|
|
1830
|
+
object.prototype = void 0;
|
|
1831
|
+
return result;
|
|
1832
|
+
};
|
|
1833
|
+
}();
|
|
1834
|
+
|
|
1835
|
+
//#endregion
|
|
1836
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
1837
|
+
/**
|
|
1838
|
+
* Initializes an object clone.
|
|
1839
|
+
*
|
|
1840
|
+
* @private
|
|
1841
|
+
* @param {Object} object The object to clone.
|
|
1842
|
+
* @returns {Object} Returns the initialized clone.
|
|
1843
|
+
*/
|
|
1844
|
+
function initCloneObject(object) {
|
|
1845
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
//#endregion
|
|
1849
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
1850
|
+
/** `Object#toString` result references. */
|
|
1851
|
+
var mapTag$2 = "[object Map]";
|
|
1852
|
+
/**
|
|
1853
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
1854
|
+
*
|
|
1855
|
+
* @private
|
|
1856
|
+
* @param {*} value The value to check.
|
|
1857
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1858
|
+
*/
|
|
1859
|
+
function baseIsMap(value) {
|
|
1860
|
+
return isObjectLike(value) && _getTag_default(value) == mapTag$2;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
//#endregion
|
|
1864
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
1865
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
1866
|
+
/**
|
|
1867
|
+
* Checks if `value` is classified as a `Map` object.
|
|
1868
|
+
*
|
|
1869
|
+
* @static
|
|
1870
|
+
* @memberOf _
|
|
1871
|
+
* @since 4.3.0
|
|
1872
|
+
* @category Lang
|
|
1873
|
+
* @param {*} value The value to check.
|
|
1874
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1875
|
+
* @example
|
|
1876
|
+
*
|
|
1877
|
+
* _.isMap(new Map);
|
|
1878
|
+
* // => true
|
|
1879
|
+
*
|
|
1880
|
+
* _.isMap(new WeakMap);
|
|
1881
|
+
* // => false
|
|
1882
|
+
*/
|
|
1883
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1884
|
+
|
|
1885
|
+
//#endregion
|
|
1886
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
1887
|
+
/** `Object#toString` result references. */
|
|
1888
|
+
var setTag$2 = "[object Set]";
|
|
1889
|
+
/**
|
|
1890
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
1891
|
+
*
|
|
1892
|
+
* @private
|
|
1893
|
+
* @param {*} value The value to check.
|
|
1894
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1895
|
+
*/
|
|
1896
|
+
function baseIsSet(value) {
|
|
1897
|
+
return isObjectLike(value) && _getTag_default(value) == setTag$2;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
//#endregion
|
|
1901
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
1902
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1903
|
+
/**
|
|
1904
|
+
* Checks if `value` is classified as a `Set` object.
|
|
1905
|
+
*
|
|
1906
|
+
* @static
|
|
1907
|
+
* @memberOf _
|
|
1908
|
+
* @since 4.3.0
|
|
1909
|
+
* @category Lang
|
|
1910
|
+
* @param {*} value The value to check.
|
|
1911
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1912
|
+
* @example
|
|
1913
|
+
*
|
|
1914
|
+
* _.isSet(new Set);
|
|
1915
|
+
* // => true
|
|
1916
|
+
*
|
|
1917
|
+
* _.isSet(new WeakSet);
|
|
1918
|
+
* // => false
|
|
1919
|
+
*/
|
|
1920
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1921
|
+
|
|
1922
|
+
//#endregion
|
|
1923
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
1924
|
+
/** Used to compose bitmasks for cloning. */
|
|
1925
|
+
var CLONE_DEEP_FLAG$2 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$2 = 4;
|
|
1926
|
+
/** `Object#toString` result references. */
|
|
1927
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$1 = "[object Map]", numberTag$1 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$1 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1928
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
1929
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
1930
|
+
var cloneableTags = {};
|
|
1931
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag$1] = cloneableTags[objectTag$2] = cloneableTags[regexpTag$1] = cloneableTags[setTag$1] = cloneableTags[stringTag$1] = cloneableTags[symbolTag$2] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1932
|
+
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1933
|
+
/**
|
|
1934
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
1935
|
+
* traversed objects.
|
|
1936
|
+
*
|
|
1937
|
+
* @private
|
|
1938
|
+
* @param {*} value The value to clone.
|
|
1939
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
1940
|
+
* 1 - Deep clone
|
|
1941
|
+
* 2 - Flatten inherited properties
|
|
1942
|
+
* 4 - Clone symbols
|
|
1943
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
1944
|
+
* @param {string} [key] The key of `value`.
|
|
1945
|
+
* @param {Object} [object] The parent object of `value`.
|
|
1946
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
1947
|
+
* @returns {*} Returns the cloned value.
|
|
1948
|
+
*/
|
|
1949
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1950
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$2, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
|
|
1951
|
+
if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1952
|
+
if (result !== void 0) return result;
|
|
1953
|
+
if (!isObject(value)) return value;
|
|
1954
|
+
var isArr = isArray(value);
|
|
1955
|
+
if (isArr) {
|
|
1956
|
+
result = initCloneArray(value);
|
|
1957
|
+
if (!isDeep) return copyArray(value, result);
|
|
1958
|
+
} else {
|
|
1959
|
+
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
1960
|
+
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
1961
|
+
if (tag == objectTag$2 || tag == argsTag$1 || isFunc && !object) {
|
|
1962
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
1963
|
+
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
1964
|
+
} else {
|
|
1965
|
+
if (!cloneableTags[tag]) return object ? value : {};
|
|
1966
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
stack || (stack = new Stack());
|
|
1970
|
+
var stacked = stack.get(value);
|
|
1971
|
+
if (stacked) return stacked;
|
|
1972
|
+
stack.set(value, result);
|
|
1973
|
+
if (isSet(value)) value.forEach(function(subValue) {
|
|
1974
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
1975
|
+
});
|
|
1976
|
+
else if (isMap(value)) value.forEach(function(subValue, key) {
|
|
1977
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
1978
|
+
});
|
|
1979
|
+
var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
|
|
1980
|
+
arrayEach(props || value, function(subValue, key) {
|
|
1981
|
+
if (props) {
|
|
1982
|
+
key = subValue;
|
|
1983
|
+
subValue = value[key];
|
|
1984
|
+
}
|
|
1985
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
1986
|
+
});
|
|
1987
|
+
return result;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
//#endregion
|
|
1991
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
1992
|
+
/** Used to compose bitmasks for cloning. */
|
|
1993
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1994
|
+
/**
|
|
1995
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1996
|
+
*
|
|
1997
|
+
* @static
|
|
1998
|
+
* @memberOf _
|
|
1999
|
+
* @since 1.0.0
|
|
2000
|
+
* @category Lang
|
|
2001
|
+
* @param {*} value The value to recursively clone.
|
|
2002
|
+
* @returns {*} Returns the deep cloned value.
|
|
2003
|
+
* @see _.clone
|
|
2004
|
+
* @example
|
|
2005
|
+
*
|
|
2006
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
2007
|
+
*
|
|
2008
|
+
* var deep = _.cloneDeep(objects);
|
|
2009
|
+
* console.log(deep[0] === objects[0]);
|
|
2010
|
+
* // => false
|
|
2011
|
+
*/
|
|
2012
|
+
function cloneDeep(value) {
|
|
2013
|
+
return baseClone(value, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$1);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
//#endregion
|
|
2017
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
|
|
2018
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
2019
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
2020
|
+
/**
|
|
2021
|
+
* Adds `value` to the array cache.
|
|
2022
|
+
*
|
|
2023
|
+
* @private
|
|
2024
|
+
* @name add
|
|
2025
|
+
* @memberOf SetCache
|
|
2026
|
+
* @alias push
|
|
2027
|
+
* @param {*} value The value to cache.
|
|
2028
|
+
* @returns {Object} Returns the cache instance.
|
|
2029
|
+
*/
|
|
2030
|
+
function setCacheAdd(value) {
|
|
2031
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
2032
|
+
return this;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
//#endregion
|
|
2036
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
2037
|
+
/**
|
|
2038
|
+
* Checks if `value` is in the array cache.
|
|
2039
|
+
*
|
|
2040
|
+
* @private
|
|
2041
|
+
* @name has
|
|
2042
|
+
* @memberOf SetCache
|
|
2043
|
+
* @param {*} value The value to search for.
|
|
2044
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
2045
|
+
*/
|
|
2046
|
+
function setCacheHas(value) {
|
|
2047
|
+
return this.__data__.has(value);
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
//#endregion
|
|
2051
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
2052
|
+
/**
|
|
2053
|
+
*
|
|
2054
|
+
* Creates an array cache object to store unique values.
|
|
2055
|
+
*
|
|
2056
|
+
* @private
|
|
2057
|
+
* @constructor
|
|
2058
|
+
* @param {Array} [values] The values to cache.
|
|
2059
|
+
*/
|
|
2060
|
+
function SetCache(values) {
|
|
2061
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
2062
|
+
this.__data__ = new MapCache();
|
|
2063
|
+
while (++index < length) this.add(values[index]);
|
|
2064
|
+
}
|
|
2065
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
2066
|
+
SetCache.prototype.has = setCacheHas;
|
|
2067
|
+
|
|
2068
|
+
//#endregion
|
|
2069
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
|
|
2070
|
+
/**
|
|
2071
|
+
* A specialized version of `_.some` for arrays without support for iteratee
|
|
2072
|
+
* shorthands.
|
|
2073
|
+
*
|
|
2074
|
+
* @private
|
|
2075
|
+
* @param {Array} [array] The array to iterate over.
|
|
2076
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
2077
|
+
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
2078
|
+
* else `false`.
|
|
2079
|
+
*/
|
|
2080
|
+
function arraySome(array, predicate) {
|
|
2081
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
2082
|
+
while (++index < length) if (predicate(array[index], index, array)) return true;
|
|
2083
|
+
return false;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
//#endregion
|
|
2087
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
2088
|
+
/**
|
|
2089
|
+
* Checks if a `cache` value for `key` exists.
|
|
2090
|
+
*
|
|
2091
|
+
* @private
|
|
2092
|
+
* @param {Object} cache The cache to query.
|
|
2093
|
+
* @param {string} key The key of the entry to check.
|
|
2094
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
2095
|
+
*/
|
|
2096
|
+
function cacheHas(cache, key) {
|
|
2097
|
+
return cache.has(key);
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
//#endregion
|
|
2101
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
|
|
2102
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
2103
|
+
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
2104
|
+
/**
|
|
2105
|
+
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
2106
|
+
* partial deep comparisons.
|
|
2107
|
+
*
|
|
2108
|
+
* @private
|
|
2109
|
+
* @param {Array} array The array to compare.
|
|
2110
|
+
* @param {Array} other The other array to compare.
|
|
2111
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2112
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2113
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2114
|
+
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
2115
|
+
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
2116
|
+
*/
|
|
2117
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
2118
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
|
|
2119
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
|
|
2120
|
+
var arrStacked = stack.get(array);
|
|
2121
|
+
var othStacked = stack.get(other);
|
|
2122
|
+
if (arrStacked && othStacked) return arrStacked == other && othStacked == array;
|
|
2123
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
2124
|
+
stack.set(array, other);
|
|
2125
|
+
stack.set(other, array);
|
|
2126
|
+
while (++index < arrLength) {
|
|
2127
|
+
var arrValue = array[index], othValue = other[index];
|
|
2128
|
+
if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
2129
|
+
if (compared !== void 0) {
|
|
2130
|
+
if (compared) continue;
|
|
2131
|
+
result = false;
|
|
2132
|
+
break;
|
|
2133
|
+
}
|
|
2134
|
+
if (seen) {
|
|
2135
|
+
if (!arraySome(other, function(othValue, othIndex) {
|
|
2136
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);
|
|
2137
|
+
})) {
|
|
2138
|
+
result = false;
|
|
2139
|
+
break;
|
|
2140
|
+
}
|
|
2141
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
2142
|
+
result = false;
|
|
2143
|
+
break;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
stack["delete"](array);
|
|
2147
|
+
stack["delete"](other);
|
|
2148
|
+
return result;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
//#endregion
|
|
2152
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
|
|
2153
|
+
/**
|
|
2154
|
+
* Converts `map` to its key-value pairs.
|
|
2155
|
+
*
|
|
2156
|
+
* @private
|
|
2157
|
+
* @param {Object} map The map to convert.
|
|
2158
|
+
* @returns {Array} Returns the key-value pairs.
|
|
2159
|
+
*/
|
|
2160
|
+
function mapToArray(map) {
|
|
2161
|
+
var index = -1, result = Array(map.size);
|
|
2162
|
+
map.forEach(function(value, key) {
|
|
2163
|
+
result[++index] = [key, value];
|
|
2164
|
+
});
|
|
2165
|
+
return result;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
//#endregion
|
|
2169
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
2170
|
+
/**
|
|
2171
|
+
* Converts `set` to an array of its values.
|
|
2172
|
+
*
|
|
2173
|
+
* @private
|
|
2174
|
+
* @param {Object} set The set to convert.
|
|
2175
|
+
* @returns {Array} Returns the values.
|
|
2176
|
+
*/
|
|
2177
|
+
function setToArray(set) {
|
|
2178
|
+
var index = -1, result = Array(set.size);
|
|
2179
|
+
set.forEach(function(value) {
|
|
2180
|
+
result[++index] = value;
|
|
2181
|
+
});
|
|
2182
|
+
return result;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
//#endregion
|
|
2186
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
|
|
2187
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
2188
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
2189
|
+
/** `Object#toString` result references. */
|
|
2190
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
2191
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
2192
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2193
|
+
var symbolProto$1 = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
2194
|
+
/**
|
|
2195
|
+
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
2196
|
+
* the same `toStringTag`.
|
|
2197
|
+
*
|
|
2198
|
+
* **Note:** This function only supports comparing values with tags of
|
|
2199
|
+
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
2200
|
+
*
|
|
2201
|
+
* @private
|
|
2202
|
+
* @param {Object} object The object to compare.
|
|
2203
|
+
* @param {Object} other The other object to compare.
|
|
2204
|
+
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
2205
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2206
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2207
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2208
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
2209
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2210
|
+
*/
|
|
2211
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
2212
|
+
switch (tag) {
|
|
2213
|
+
case dataViewTag:
|
|
2214
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
|
|
2215
|
+
object = object.buffer;
|
|
2216
|
+
other = other.buffer;
|
|
2217
|
+
case arrayBufferTag:
|
|
2218
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) return false;
|
|
2219
|
+
return true;
|
|
2220
|
+
case boolTag:
|
|
2221
|
+
case dateTag:
|
|
2222
|
+
case numberTag: return eq(+object, +other);
|
|
2223
|
+
case errorTag: return object.name == other.name && object.message == other.message;
|
|
2224
|
+
case regexpTag:
|
|
2225
|
+
case stringTag: return object == other + "";
|
|
2226
|
+
case mapTag: var convert = mapToArray;
|
|
2227
|
+
case setTag:
|
|
2228
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
2229
|
+
convert || (convert = setToArray);
|
|
2230
|
+
if (object.size != other.size && !isPartial) return false;
|
|
2231
|
+
var stacked = stack.get(object);
|
|
2232
|
+
if (stacked) return stacked == other;
|
|
2233
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
2234
|
+
stack.set(object, other);
|
|
2235
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
2236
|
+
stack["delete"](object);
|
|
2237
|
+
return result;
|
|
2238
|
+
case symbolTag$1: if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
2239
|
+
}
|
|
2240
|
+
return false;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
//#endregion
|
|
2244
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
|
|
2245
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
2246
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
2247
|
+
/** Used to check objects for own properties. */
|
|
2248
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
2249
|
+
/**
|
|
2250
|
+
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
2251
|
+
* partial deep comparisons.
|
|
2252
|
+
*
|
|
2253
|
+
* @private
|
|
2254
|
+
* @param {Object} object The object to compare.
|
|
2255
|
+
* @param {Object} other The other object to compare.
|
|
2256
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2257
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2258
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2259
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
2260
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2261
|
+
*/
|
|
2262
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2263
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length;
|
|
2264
|
+
if (objLength != getAllKeys(other).length && !isPartial) return false;
|
|
2265
|
+
var index = objLength;
|
|
2266
|
+
while (index--) {
|
|
2267
|
+
var key = objProps[index];
|
|
2268
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) return false;
|
|
2269
|
+
}
|
|
2270
|
+
var objStacked = stack.get(object);
|
|
2271
|
+
var othStacked = stack.get(other);
|
|
2272
|
+
if (objStacked && othStacked) return objStacked == other && othStacked == object;
|
|
2273
|
+
var result = true;
|
|
2274
|
+
stack.set(object, other);
|
|
2275
|
+
stack.set(other, object);
|
|
2276
|
+
var skipCtor = isPartial;
|
|
2277
|
+
while (++index < objLength) {
|
|
2278
|
+
key = objProps[index];
|
|
2279
|
+
var objValue = object[key], othValue = other[key];
|
|
2280
|
+
if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
2281
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2282
|
+
result = false;
|
|
2283
|
+
break;
|
|
2284
|
+
}
|
|
2285
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
2286
|
+
}
|
|
2287
|
+
if (result && !skipCtor) {
|
|
2288
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
2289
|
+
if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
|
|
2290
|
+
}
|
|
2291
|
+
stack["delete"](object);
|
|
2292
|
+
stack["delete"](other);
|
|
2293
|
+
return result;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
//#endregion
|
|
2297
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
2298
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
2299
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
2300
|
+
/** `Object#toString` result references. */
|
|
2301
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag$1 = "[object Object]";
|
|
2302
|
+
/** Used to check objects for own properties. */
|
|
2303
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
2304
|
+
/**
|
|
2305
|
+
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
2306
|
+
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
2307
|
+
* references to be compared.
|
|
2308
|
+
*
|
|
2309
|
+
* @private
|
|
2310
|
+
* @param {Object} object The object to compare.
|
|
2311
|
+
* @param {Object} other The other object to compare.
|
|
2312
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2313
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2314
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2315
|
+
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
2316
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2317
|
+
*/
|
|
2318
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2319
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : _getTag_default(object), othTag = othIsArr ? arrayTag : _getTag_default(other);
|
|
2320
|
+
objTag = objTag == argsTag ? objectTag$1 : objTag;
|
|
2321
|
+
othTag = othTag == argsTag ? objectTag$1 : othTag;
|
|
2322
|
+
var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
|
|
2323
|
+
if (isSameTag && isBuffer(object)) {
|
|
2324
|
+
if (!isBuffer(other)) return false;
|
|
2325
|
+
objIsArr = true;
|
|
2326
|
+
objIsObj = false;
|
|
2327
|
+
}
|
|
2328
|
+
if (isSameTag && !objIsObj) {
|
|
2329
|
+
stack || (stack = new Stack());
|
|
2330
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2331
|
+
}
|
|
2332
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
2333
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$2.call(other, "__wrapped__");
|
|
2334
|
+
if (objIsWrapped || othIsWrapped) {
|
|
2335
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
2336
|
+
stack || (stack = new Stack());
|
|
2337
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
if (!isSameTag) return false;
|
|
2341
|
+
stack || (stack = new Stack());
|
|
2342
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
//#endregion
|
|
2346
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
|
|
2347
|
+
/**
|
|
2348
|
+
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
2349
|
+
* and tracks traversed objects.
|
|
2350
|
+
*
|
|
2351
|
+
* @private
|
|
2352
|
+
* @param {*} value The value to compare.
|
|
2353
|
+
* @param {*} other The other value to compare.
|
|
2354
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
2355
|
+
* 1 - Unordered comparison
|
|
2356
|
+
* 2 - Partial comparison
|
|
2357
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
2358
|
+
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
2359
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
2360
|
+
*/
|
|
2361
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
2362
|
+
if (value === other) return true;
|
|
2363
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;
|
|
2364
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
//#endregion
|
|
2368
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js
|
|
2369
|
+
/**
|
|
2370
|
+
* Performs a deep comparison between two values to determine if they are
|
|
2371
|
+
* equivalent.
|
|
2372
|
+
*
|
|
2373
|
+
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
2374
|
+
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
2375
|
+
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
2376
|
+
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
2377
|
+
* nodes are compared by strict equality, i.e. `===`.
|
|
2378
|
+
*
|
|
2379
|
+
* @static
|
|
2380
|
+
* @memberOf _
|
|
2381
|
+
* @since 0.1.0
|
|
2382
|
+
* @category Lang
|
|
2383
|
+
* @param {*} value The value to compare.
|
|
2384
|
+
* @param {*} other The other value to compare.
|
|
2385
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
2386
|
+
* @example
|
|
2387
|
+
*
|
|
2388
|
+
* var object = { 'a': 1 };
|
|
2389
|
+
* var other = { 'a': 1 };
|
|
2390
|
+
*
|
|
2391
|
+
* _.isEqual(object, other);
|
|
2392
|
+
* // => true
|
|
2393
|
+
*
|
|
2394
|
+
* object === other;
|
|
2395
|
+
* // => false
|
|
2396
|
+
*/
|
|
2397
|
+
function isEqual(value, other) {
|
|
2398
|
+
return baseIsEqual(value, other);
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
//#endregion
|
|
2402
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
2403
|
+
/**
|
|
2404
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2405
|
+
* shorthands.
|
|
2406
|
+
*
|
|
2407
|
+
* @private
|
|
2408
|
+
* @param {Array} [array] The array to iterate over.
|
|
2409
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2410
|
+
* @returns {Array} Returns the new mapped array.
|
|
2411
|
+
*/
|
|
2412
|
+
function arrayMap(array, iteratee) {
|
|
2413
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
2414
|
+
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
2415
|
+
return result;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
//#endregion
|
|
2419
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
2420
|
+
/** `Object#toString` result references. */
|
|
2421
|
+
var symbolTag = "[object Symbol]";
|
|
2422
|
+
/**
|
|
2423
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
2424
|
+
*
|
|
2425
|
+
* @static
|
|
2426
|
+
* @memberOf _
|
|
2427
|
+
* @since 4.0.0
|
|
2428
|
+
* @category Lang
|
|
2429
|
+
* @param {*} value The value to check.
|
|
2430
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2431
|
+
* @example
|
|
2432
|
+
*
|
|
2433
|
+
* _.isSymbol(Symbol.iterator);
|
|
2434
|
+
* // => true
|
|
2435
|
+
*
|
|
2436
|
+
* _.isSymbol('abc');
|
|
2437
|
+
* // => false
|
|
2438
|
+
*/
|
|
2439
|
+
function isSymbol(value) {
|
|
2440
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
//#endregion
|
|
2444
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
2445
|
+
/** Used to match property names within property paths. */
|
|
2446
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
2447
|
+
/**
|
|
2448
|
+
* Checks if `value` is a property name and not a property path.
|
|
2449
|
+
*
|
|
2450
|
+
* @private
|
|
2451
|
+
* @param {*} value The value to check.
|
|
2452
|
+
* @param {Object} [object] The object to query keys on.
|
|
2453
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
2454
|
+
*/
|
|
2455
|
+
function isKey(value, object) {
|
|
2456
|
+
if (isArray(value)) return false;
|
|
2457
|
+
var type = typeof value;
|
|
2458
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
2459
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
//#endregion
|
|
2463
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
2464
|
+
/** Error message constants. */
|
|
2465
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
2466
|
+
/**
|
|
2467
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
2468
|
+
* provided, it determines the cache key for storing the result based on the
|
|
2469
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
2470
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
2471
|
+
* is invoked with the `this` binding of the memoized function.
|
|
2472
|
+
*
|
|
2473
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2474
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2475
|
+
* constructor with one whose instances implement the
|
|
2476
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2477
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2478
|
+
*
|
|
2479
|
+
* @static
|
|
2480
|
+
* @memberOf _
|
|
2481
|
+
* @since 0.1.0
|
|
2482
|
+
* @category Function
|
|
2483
|
+
* @param {Function} func The function to have its output memoized.
|
|
2484
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
2485
|
+
* @returns {Function} Returns the new memoized function.
|
|
2486
|
+
* @example
|
|
2487
|
+
*
|
|
2488
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
2489
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
2490
|
+
*
|
|
2491
|
+
* var values = _.memoize(_.values);
|
|
2492
|
+
* values(object);
|
|
2493
|
+
* // => [1, 2]
|
|
2494
|
+
*
|
|
2495
|
+
* values(other);
|
|
2496
|
+
* // => [3, 4]
|
|
2497
|
+
*
|
|
2498
|
+
* object.a = 2;
|
|
2499
|
+
* values(object);
|
|
2500
|
+
* // => [1, 2]
|
|
2501
|
+
*
|
|
2502
|
+
* // Modify the result cache.
|
|
2503
|
+
* values.cache.set(object, ['a', 'b']);
|
|
2504
|
+
* values(object);
|
|
2505
|
+
* // => ['a', 'b']
|
|
2506
|
+
*
|
|
2507
|
+
* // Replace `_.memoize.Cache`.
|
|
2508
|
+
* _.memoize.Cache = WeakMap;
|
|
2509
|
+
*/
|
|
2510
|
+
function memoize(func, resolver) {
|
|
2511
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
2512
|
+
var memoized = function() {
|
|
2513
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
2514
|
+
if (cache.has(key)) return cache.get(key);
|
|
2515
|
+
var result = func.apply(this, args);
|
|
2516
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
2517
|
+
return result;
|
|
2518
|
+
};
|
|
2519
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
2520
|
+
return memoized;
|
|
2521
|
+
}
|
|
2522
|
+
memoize.Cache = MapCache;
|
|
2523
|
+
|
|
2524
|
+
//#endregion
|
|
2525
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
2526
|
+
/** Used as the maximum memoize cache size. */
|
|
2527
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
2528
|
+
/**
|
|
2529
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2530
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2531
|
+
*
|
|
2532
|
+
* @private
|
|
2533
|
+
* @param {Function} func The function to have its output memoized.
|
|
2534
|
+
* @returns {Function} Returns the new memoized function.
|
|
2535
|
+
*/
|
|
2536
|
+
function memoizeCapped(func) {
|
|
2537
|
+
var result = memoize(func, function(key) {
|
|
2538
|
+
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
2539
|
+
return key;
|
|
2540
|
+
});
|
|
2541
|
+
var cache = result.cache;
|
|
2542
|
+
return result;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
//#endregion
|
|
2546
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
2547
|
+
/** Used to match property names within property paths. */
|
|
2548
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2549
|
+
/** Used to match backslashes in property paths. */
|
|
2550
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
2551
|
+
/**
|
|
2552
|
+
* Converts `string` to a property path array.
|
|
2553
|
+
*
|
|
2554
|
+
* @private
|
|
2555
|
+
* @param {string} string The string to convert.
|
|
2556
|
+
* @returns {Array} Returns the property path array.
|
|
2557
|
+
*/
|
|
2558
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
2559
|
+
var result = [];
|
|
2560
|
+
if (string.charCodeAt(0) === 46) result.push("");
|
|
2561
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2562
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
2563
|
+
});
|
|
2564
|
+
return result;
|
|
2565
|
+
});
|
|
2566
|
+
|
|
2567
|
+
//#endregion
|
|
2568
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
2569
|
+
/** Used as references for various `Number` constants. */
|
|
2570
|
+
var INFINITY$1 = Infinity;
|
|
2571
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2572
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
2573
|
+
/**
|
|
2574
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2575
|
+
* values to empty strings.
|
|
2576
|
+
*
|
|
2577
|
+
* @private
|
|
2578
|
+
* @param {*} value The value to process.
|
|
2579
|
+
* @returns {string} Returns the string.
|
|
2580
|
+
*/
|
|
2581
|
+
function baseToString(value) {
|
|
2582
|
+
if (typeof value == "string") return value;
|
|
2583
|
+
if (isArray(value)) return arrayMap(value, baseToString) + "";
|
|
2584
|
+
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
2585
|
+
var result = value + "";
|
|
2586
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
//#endregion
|
|
2590
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
2591
|
+
/**
|
|
2592
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
2593
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2594
|
+
*
|
|
2595
|
+
* @static
|
|
2596
|
+
* @memberOf _
|
|
2597
|
+
* @since 4.0.0
|
|
2598
|
+
* @category Lang
|
|
2599
|
+
* @param {*} value The value to convert.
|
|
2600
|
+
* @returns {string} Returns the converted string.
|
|
2601
|
+
* @example
|
|
2602
|
+
*
|
|
2603
|
+
* _.toString(null);
|
|
2604
|
+
* // => ''
|
|
2605
|
+
*
|
|
2606
|
+
* _.toString(-0);
|
|
2607
|
+
* // => '-0'
|
|
2608
|
+
*
|
|
2609
|
+
* _.toString([1, 2, 3]);
|
|
2610
|
+
* // => '1,2,3'
|
|
2611
|
+
*/
|
|
2612
|
+
function toString(value) {
|
|
2613
|
+
return value == null ? "" : baseToString(value);
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
//#endregion
|
|
2617
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
2618
|
+
/**
|
|
2619
|
+
* Casts `value` to a path array if it's not one.
|
|
2620
|
+
*
|
|
2621
|
+
* @private
|
|
2622
|
+
* @param {*} value The value to inspect.
|
|
2623
|
+
* @param {Object} [object] The object to query keys on.
|
|
2624
|
+
* @returns {Array} Returns the cast property path array.
|
|
2625
|
+
*/
|
|
2626
|
+
function castPath(value, object) {
|
|
2627
|
+
if (isArray(value)) return value;
|
|
2628
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
//#endregion
|
|
2632
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.js
|
|
2633
|
+
/**
|
|
2634
|
+
* Gets the last element of `array`.
|
|
2635
|
+
*
|
|
2636
|
+
* @static
|
|
2637
|
+
* @memberOf _
|
|
2638
|
+
* @since 0.1.0
|
|
2639
|
+
* @category Array
|
|
2640
|
+
* @param {Array} array The array to query.
|
|
2641
|
+
* @returns {*} Returns the last element of `array`.
|
|
2642
|
+
* @example
|
|
2643
|
+
*
|
|
2644
|
+
* _.last([1, 2, 3]);
|
|
2645
|
+
* // => 3
|
|
2646
|
+
*/
|
|
2647
|
+
function last(array) {
|
|
2648
|
+
var length = array == null ? 0 : array.length;
|
|
2649
|
+
return length ? array[length - 1] : void 0;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
//#endregion
|
|
2653
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
2654
|
+
/** Used as references for various `Number` constants. */
|
|
2655
|
+
var INFINITY = Infinity;
|
|
2656
|
+
/**
|
|
2657
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
2658
|
+
*
|
|
2659
|
+
* @private
|
|
2660
|
+
* @param {*} value The value to inspect.
|
|
2661
|
+
* @returns {string|symbol} Returns the key.
|
|
2662
|
+
*/
|
|
2663
|
+
function toKey(value) {
|
|
2664
|
+
if (typeof value == "string" || isSymbol(value)) return value;
|
|
2665
|
+
var result = value + "";
|
|
2666
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
//#endregion
|
|
2670
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
2671
|
+
/**
|
|
2672
|
+
* The base implementation of `_.get` without support for default values.
|
|
2673
|
+
*
|
|
2674
|
+
* @private
|
|
2675
|
+
* @param {Object} object The object to query.
|
|
2676
|
+
* @param {Array|string} path The path of the property to get.
|
|
2677
|
+
* @returns {*} Returns the resolved value.
|
|
2678
|
+
*/
|
|
2679
|
+
function baseGet(object, path) {
|
|
2680
|
+
path = castPath(path, object);
|
|
2681
|
+
var index = 0, length = path.length;
|
|
2682
|
+
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
2683
|
+
return index && index == length ? object : void 0;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
//#endregion
|
|
2687
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
|
|
2688
|
+
/**
|
|
2689
|
+
* The base implementation of `_.slice` without an iteratee call guard.
|
|
2690
|
+
*
|
|
2691
|
+
* @private
|
|
2692
|
+
* @param {Array} array The array to slice.
|
|
2693
|
+
* @param {number} [start=0] The start position.
|
|
2694
|
+
* @param {number} [end=array.length] The end position.
|
|
2695
|
+
* @returns {Array} Returns the slice of `array`.
|
|
2696
|
+
*/
|
|
2697
|
+
function baseSlice(array, start, end) {
|
|
2698
|
+
var index = -1, length = array.length;
|
|
2699
|
+
if (start < 0) start = -start > length ? 0 : length + start;
|
|
2700
|
+
end = end > length ? length : end;
|
|
2701
|
+
if (end < 0) end += length;
|
|
2702
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
2703
|
+
start >>>= 0;
|
|
2704
|
+
var result = Array(length);
|
|
2705
|
+
while (++index < length) result[index] = array[index + start];
|
|
2706
|
+
return result;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
//#endregion
|
|
2710
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.js
|
|
2711
|
+
/**
|
|
2712
|
+
* Gets the parent value at `path` of `object`.
|
|
2713
|
+
*
|
|
2714
|
+
* @private
|
|
2715
|
+
* @param {Object} object The object to query.
|
|
2716
|
+
* @param {Array} path The path to get the parent value of.
|
|
2717
|
+
* @returns {*} Returns the parent value.
|
|
2718
|
+
*/
|
|
2719
|
+
function parent(object, path) {
|
|
2720
|
+
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
//#endregion
|
|
2724
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.js
|
|
2725
|
+
/** Used to check objects for own properties. */
|
|
2726
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
2727
|
+
/**
|
|
2728
|
+
* The base implementation of `_.unset`.
|
|
2729
|
+
*
|
|
2730
|
+
* @private
|
|
2731
|
+
* @param {Object} object The object to modify.
|
|
2732
|
+
* @param {Array|string} path The property path to unset.
|
|
2733
|
+
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
|
2734
|
+
*/
|
|
2735
|
+
function baseUnset(object, path) {
|
|
2736
|
+
path = castPath(path, object);
|
|
2737
|
+
var index = -1, length = path.length;
|
|
2738
|
+
if (!length) return true;
|
|
2739
|
+
while (++index < length) {
|
|
2740
|
+
var key = toKey(path[index]);
|
|
2741
|
+
if (key === "__proto__" && !hasOwnProperty$1.call(object, "__proto__")) return false;
|
|
2742
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) return false;
|
|
2743
|
+
}
|
|
2744
|
+
var obj = parent(object, path);
|
|
2745
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
//#endregion
|
|
2749
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js
|
|
2750
|
+
/** `Object#toString` result references. */
|
|
2751
|
+
var objectTag = "[object Object]";
|
|
2752
|
+
/** Used for built-in method references. */
|
|
2753
|
+
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
2754
|
+
/** Used to resolve the decompiled source of functions. */
|
|
2755
|
+
var funcToString = funcProto.toString;
|
|
2756
|
+
/** Used to check objects for own properties. */
|
|
2757
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2758
|
+
/** Used to infer the `Object` constructor. */
|
|
2759
|
+
var objectCtorString = funcToString.call(Object);
|
|
2760
|
+
/**
|
|
2761
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
2762
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
2763
|
+
*
|
|
2764
|
+
* @static
|
|
2765
|
+
* @memberOf _
|
|
2766
|
+
* @since 0.8.0
|
|
2767
|
+
* @category Lang
|
|
2768
|
+
* @param {*} value The value to check.
|
|
2769
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
2770
|
+
* @example
|
|
2771
|
+
*
|
|
2772
|
+
* function Foo() {
|
|
2773
|
+
* this.a = 1;
|
|
2774
|
+
* }
|
|
2775
|
+
*
|
|
2776
|
+
* _.isPlainObject(new Foo);
|
|
2777
|
+
* // => false
|
|
2778
|
+
*
|
|
2779
|
+
* _.isPlainObject([1, 2, 3]);
|
|
2780
|
+
* // => false
|
|
2781
|
+
*
|
|
2782
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
2783
|
+
* // => true
|
|
2784
|
+
*
|
|
2785
|
+
* _.isPlainObject(Object.create(null));
|
|
2786
|
+
* // => true
|
|
2787
|
+
*/
|
|
2788
|
+
function isPlainObject(value) {
|
|
2789
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) return false;
|
|
2790
|
+
var proto = getPrototype(value);
|
|
2791
|
+
if (proto === null) return true;
|
|
2792
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
2793
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
//#endregion
|
|
2797
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.js
|
|
2798
|
+
/**
|
|
2799
|
+
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
|
2800
|
+
* objects.
|
|
2801
|
+
*
|
|
2802
|
+
* @private
|
|
2803
|
+
* @param {*} value The value to inspect.
|
|
2804
|
+
* @param {string} key The key of the property to inspect.
|
|
2805
|
+
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
|
2806
|
+
*/
|
|
2807
|
+
function customOmitClone(value) {
|
|
2808
|
+
return isPlainObject(value) ? void 0 : value;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
//#endregion
|
|
2812
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js
|
|
2813
|
+
/** Built-in value references. */
|
|
2814
|
+
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
|
|
2815
|
+
/**
|
|
2816
|
+
* Checks if `value` is a flattenable `arguments` object or array.
|
|
2817
|
+
*
|
|
2818
|
+
* @private
|
|
2819
|
+
* @param {*} value The value to check.
|
|
2820
|
+
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
2821
|
+
*/
|
|
2822
|
+
function isFlattenable(value) {
|
|
2823
|
+
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
//#endregion
|
|
2827
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js
|
|
2828
|
+
/**
|
|
2829
|
+
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
2830
|
+
*
|
|
2831
|
+
* @private
|
|
2832
|
+
* @param {Array} array The array to flatten.
|
|
2833
|
+
* @param {number} depth The maximum recursion depth.
|
|
2834
|
+
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
|
2835
|
+
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
|
2836
|
+
* @param {Array} [result=[]] The initial result value.
|
|
2837
|
+
* @returns {Array} Returns the new flattened array.
|
|
2838
|
+
*/
|
|
2839
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
2840
|
+
var index = -1, length = array.length;
|
|
2841
|
+
predicate || (predicate = isFlattenable);
|
|
2842
|
+
result || (result = []);
|
|
2843
|
+
while (++index < length) {
|
|
2844
|
+
var value = array[index];
|
|
2845
|
+
if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
2846
|
+
else arrayPush(result, value);
|
|
2847
|
+
else if (!isStrict) result[result.length] = value;
|
|
2848
|
+
}
|
|
2849
|
+
return result;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
//#endregion
|
|
2853
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.js
|
|
2854
|
+
/**
|
|
2855
|
+
* Flattens `array` a single level deep.
|
|
2856
|
+
*
|
|
2857
|
+
* @static
|
|
2858
|
+
* @memberOf _
|
|
2859
|
+
* @since 0.1.0
|
|
2860
|
+
* @category Array
|
|
2861
|
+
* @param {Array} array The array to flatten.
|
|
2862
|
+
* @returns {Array} Returns the new flattened array.
|
|
2863
|
+
* @example
|
|
2864
|
+
*
|
|
2865
|
+
* _.flatten([1, [2, [3, [4]], 5]]);
|
|
2866
|
+
* // => [1, 2, [3, [4]], 5]
|
|
2867
|
+
*/
|
|
2868
|
+
function flatten(array) {
|
|
2869
|
+
return (array == null ? 0 : array.length) ? baseFlatten(array, 1) : [];
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
//#endregion
|
|
2873
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
2874
|
+
/**
|
|
2875
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
2876
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
2877
|
+
*
|
|
2878
|
+
* @private
|
|
2879
|
+
* @param {Function} func The function to invoke.
|
|
2880
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
2881
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
2882
|
+
* @returns {*} Returns the result of `func`.
|
|
2883
|
+
*/
|
|
2884
|
+
function apply(func, thisArg, args) {
|
|
2885
|
+
switch (args.length) {
|
|
2886
|
+
case 0: return func.call(thisArg);
|
|
2887
|
+
case 1: return func.call(thisArg, args[0]);
|
|
2888
|
+
case 2: return func.call(thisArg, args[0], args[1]);
|
|
2889
|
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
2890
|
+
}
|
|
2891
|
+
return func.apply(thisArg, args);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
//#endregion
|
|
2895
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
2896
|
+
var nativeMax = Math.max;
|
|
2897
|
+
/**
|
|
2898
|
+
* A specialized version of `baseRest` which transforms the rest array.
|
|
2899
|
+
*
|
|
2900
|
+
* @private
|
|
2901
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
2902
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2903
|
+
* @param {Function} transform The rest array transform.
|
|
2904
|
+
* @returns {Function} Returns the new function.
|
|
2905
|
+
*/
|
|
2906
|
+
function overRest(func, start, transform) {
|
|
2907
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
2908
|
+
return function() {
|
|
2909
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
2910
|
+
while (++index < length) array[index] = args[start + index];
|
|
2911
|
+
index = -1;
|
|
2912
|
+
var otherArgs = Array(start + 1);
|
|
2913
|
+
while (++index < start) otherArgs[index] = args[index];
|
|
2914
|
+
otherArgs[start] = transform(array);
|
|
2915
|
+
return apply(func, this, otherArgs);
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
//#endregion
|
|
2920
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
2921
|
+
/**
|
|
2922
|
+
* Creates a function that returns `value`.
|
|
2923
|
+
*
|
|
2924
|
+
* @static
|
|
2925
|
+
* @memberOf _
|
|
2926
|
+
* @since 2.4.0
|
|
2927
|
+
* @category Util
|
|
2928
|
+
* @param {*} value The value to return from the new function.
|
|
2929
|
+
* @returns {Function} Returns the new constant function.
|
|
2930
|
+
* @example
|
|
2931
|
+
*
|
|
2932
|
+
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
2933
|
+
*
|
|
2934
|
+
* console.log(objects);
|
|
2935
|
+
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
2936
|
+
*
|
|
2937
|
+
* console.log(objects[0] === objects[1]);
|
|
2938
|
+
* // => true
|
|
2939
|
+
*/
|
|
2940
|
+
function constant(value) {
|
|
2941
|
+
return function() {
|
|
2942
|
+
return value;
|
|
2943
|
+
};
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
//#endregion
|
|
2947
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
2948
|
+
/**
|
|
2949
|
+
* This method returns the first argument it receives.
|
|
2950
|
+
*
|
|
2951
|
+
* @static
|
|
2952
|
+
* @since 0.1.0
|
|
2953
|
+
* @memberOf _
|
|
2954
|
+
* @category Util
|
|
2955
|
+
* @param {*} value Any value.
|
|
2956
|
+
* @returns {*} Returns `value`.
|
|
2957
|
+
* @example
|
|
2958
|
+
*
|
|
2959
|
+
* var object = { 'a': 1 };
|
|
2960
|
+
*
|
|
2961
|
+
* console.log(_.identity(object) === object);
|
|
2962
|
+
* // => true
|
|
2963
|
+
*/
|
|
2964
|
+
function identity(value) {
|
|
2965
|
+
return value;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
//#endregion
|
|
2969
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js
|
|
2970
|
+
/**
|
|
2971
|
+
* The base implementation of `setToString` without support for hot loop shorting.
|
|
2972
|
+
*
|
|
2973
|
+
* @private
|
|
2974
|
+
* @param {Function} func The function to modify.
|
|
2975
|
+
* @param {Function} string The `toString` result.
|
|
2976
|
+
* @returns {Function} Returns `func`.
|
|
2977
|
+
*/
|
|
2978
|
+
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
2979
|
+
return defineProperty(func, "toString", {
|
|
2980
|
+
"configurable": true,
|
|
2981
|
+
"enumerable": false,
|
|
2982
|
+
"value": constant(string),
|
|
2983
|
+
"writable": true
|
|
2984
|
+
});
|
|
2985
|
+
};
|
|
2986
|
+
|
|
2987
|
+
//#endregion
|
|
2988
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
2989
|
+
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
2990
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
2991
|
+
var nativeNow = Date.now;
|
|
2992
|
+
/**
|
|
2993
|
+
* Creates a function that'll short out and invoke `identity` instead
|
|
2994
|
+
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
2995
|
+
* milliseconds.
|
|
2996
|
+
*
|
|
2997
|
+
* @private
|
|
2998
|
+
* @param {Function} func The function to restrict.
|
|
2999
|
+
* @returns {Function} Returns the new shortable function.
|
|
3000
|
+
*/
|
|
3001
|
+
function shortOut(func) {
|
|
3002
|
+
var count = 0, lastCalled = 0;
|
|
3003
|
+
return function() {
|
|
3004
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
3005
|
+
lastCalled = stamp;
|
|
3006
|
+
if (remaining > 0) {
|
|
3007
|
+
if (++count >= HOT_COUNT) return arguments[0];
|
|
3008
|
+
} else count = 0;
|
|
3009
|
+
return func.apply(void 0, arguments);
|
|
3010
|
+
};
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
//#endregion
|
|
3014
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
|
|
3015
|
+
/**
|
|
3016
|
+
* Sets the `toString` method of `func` to return `string`.
|
|
3017
|
+
*
|
|
3018
|
+
* @private
|
|
3019
|
+
* @param {Function} func The function to modify.
|
|
3020
|
+
* @param {Function} string The `toString` result.
|
|
3021
|
+
* @returns {Function} Returns `func`.
|
|
3022
|
+
*/
|
|
3023
|
+
var setToString = shortOut(baseSetToString);
|
|
3024
|
+
|
|
3025
|
+
//#endregion
|
|
3026
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js
|
|
3027
|
+
/**
|
|
3028
|
+
* A specialized version of `baseRest` which flattens the rest array.
|
|
3029
|
+
*
|
|
3030
|
+
* @private
|
|
3031
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
3032
|
+
* @returns {Function} Returns the new function.
|
|
3033
|
+
*/
|
|
3034
|
+
function flatRest(func) {
|
|
3035
|
+
return setToString(overRest(func, void 0, flatten), func + "");
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
//#endregion
|
|
3039
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.js
|
|
3040
|
+
/** Used to compose bitmasks for cloning. */
|
|
3041
|
+
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
|
|
3042
|
+
/**
|
|
3043
|
+
* The opposite of `_.pick`; this method creates an object composed of the
|
|
3044
|
+
* own and inherited enumerable property paths of `object` that are not omitted.
|
|
3045
|
+
*
|
|
3046
|
+
* **Note:** This method is considerably slower than `_.pick`.
|
|
3047
|
+
*
|
|
3048
|
+
* @static
|
|
3049
|
+
* @since 0.1.0
|
|
3050
|
+
* @memberOf _
|
|
3051
|
+
* @category Object
|
|
3052
|
+
* @param {Object} object The source object.
|
|
3053
|
+
* @param {...(string|string[])} [paths] The property paths to omit.
|
|
3054
|
+
* @returns {Object} Returns the new object.
|
|
3055
|
+
* @example
|
|
3056
|
+
*
|
|
3057
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
3058
|
+
*
|
|
3059
|
+
* _.omit(object, ['a', 'c']);
|
|
3060
|
+
* // => { 'b': '2' }
|
|
3061
|
+
*/
|
|
3062
|
+
var omit = flatRest(function(object, paths) {
|
|
3063
|
+
var result = {};
|
|
3064
|
+
if (object == null) return result;
|
|
3065
|
+
var isDeep = false;
|
|
3066
|
+
paths = arrayMap(paths, function(path) {
|
|
3067
|
+
path = castPath(path, object);
|
|
3068
|
+
isDeep || (isDeep = path.length > 1);
|
|
3069
|
+
return path;
|
|
3070
|
+
});
|
|
3071
|
+
copyObject(object, getAllKeysIn(object), result);
|
|
3072
|
+
if (isDeep) result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
3073
|
+
var length = paths.length;
|
|
3074
|
+
while (length--) baseUnset(result, paths[length]);
|
|
3075
|
+
return result;
|
|
3076
|
+
});
|
|
3077
|
+
|
|
3078
|
+
//#endregion
|
|
3079
|
+
export { isEqual as n, cloneDeep as r, omit as t };
|