@vunk/form 2.0.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/components/card-input-collection/index.cjs +256 -0
  2. package/components/card-input-collection/index.css +21 -0
  3. package/components/card-input-collection/index.d.ts +4 -0
  4. package/components/card-input-collection/index.mjs +250 -0
  5. package/components/card-input-collection/src/ctx.d.ts +82 -0
  6. package/components/card-input-collection/src/index.vue.d.ts +542 -0
  7. package/components/card-input-collection/src/types.d.ts +1 -0
  8. package/components/cascader/src/ctx.d.ts +1 -1
  9. package/components/cascader/src/index.vue.d.ts +1 -1
  10. package/components/checkbox/src/ctx.d.ts +1 -1
  11. package/components/checkbox/src/index.vue.d.ts +2 -2
  12. package/components/cloneDeep.cjs +2029 -0
  13. package/components/cloneDeep.mjs +2027 -0
  14. package/components/date-picker/src/ctx.d.ts +1 -1
  15. package/components/date-picker/src/index.vue.d.ts +2 -2
  16. package/components/esri-input-geojson/index.cjs +484 -2
  17. package/components/esri-input-geojson/index.mjs +483 -1
  18. package/components/esri-input-geojson/src/ctx.d.ts +1 -1
  19. package/components/esri-input-geojson/src/index.vue.d.ts +2 -2
  20. package/components/form/src/ctx.d.ts +1 -1
  21. package/components/form/src/index.vue.d.ts +1 -1
  22. package/components/index2.cjs +0 -19
  23. package/components/index2.mjs +1 -19
  24. package/components/input/src/ctx.d.ts +1 -1
  25. package/components/input/src/index.vue.d.ts +2 -2
  26. package/components/input-collection/index.cjs +4 -2029
  27. package/components/input-collection/index.mjs +4 -2029
  28. package/components/input-collection/src/index.vue.d.ts +1 -1
  29. package/components/input-link/src/index.vue.d.ts +1 -1
  30. package/components/input-number/src/ctx.d.ts +1 -1
  31. package/components/input-number/src/index.vue.d.ts +3 -3
  32. package/components/radio/src/index.vue.d.ts +1 -1
  33. package/components/select/index.cjs +12 -0
  34. package/components/select/index.d.ts +1 -0
  35. package/components/select/index.mjs +12 -1
  36. package/components/select/src/ctx.d.ts +2 -0
  37. package/components/select/src/index.vue.d.ts +2 -2
  38. package/components/slider/src/index.vue.d.ts +1 -1
  39. package/components/switch/src/index.vue.d.ts +1 -1
  40. package/components/tables-select/index.cjs +225 -0
  41. package/components/tables-select/index.css +3 -0
  42. package/components/tables-select/index.d.ts +4 -0
  43. package/components/tables-select/index.mjs +219 -0
  44. package/components/tables-select/src/ctx.d.ts +338 -0
  45. package/components/tables-select/src/index.vue.d.ts +4953 -0
  46. package/components/tables-select/src/types.d.ts +1 -0
  47. package/components/upload/index.mjs +1 -1
  48. package/components/upload-plus/index.mjs +1 -1
  49. package/components/vditor/src/index.vue.d.ts +1 -1
  50. package/index.css +26 -41
  51. package/package.json +17 -9
  52. package/shared/element-plus/ctx.d.ts +1 -1
  53. package/components/geoinput-update/index.cjs +0 -406
  54. package/components/geoinput-update/index.css +0 -40
  55. package/components/geoinput-update/index.d.ts +0 -5
  56. package/components/geoinput-update/index.mjs +0 -399
  57. package/components/geoinput-update/src/append.vue.d.ts +0 -815
  58. package/components/geoinput-update/src/ctx.d.ts +0 -219
  59. package/components/geoinput-update/src/index.vue.d.ts +0 -1143
  60. package/components/geoinput-update/src/types.d.ts +0 -6
  61. package/components/index3.cjs +0 -486
  62. package/components/index3.mjs +0 -484
@@ -6,9 +6,10 @@ import { useComputedReadonly } from '@vunk/form/composables';
6
6
  import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
7
7
  import { VkfTemplateInstancesProvider } from '@vunk/form/components/template-instances-provider';
8
8
  import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
9
- import { ensetData, getValue as getValue$1 } from '@vunk/core';
10
- import { p as plus_default, f as minus_default } from '../index2.mjs';
9
+ import { ensetData, getValue } from '@vunk/core';
10
+ import { p as plus_default, b as minus_default } from '../index2.mjs';
11
11
  import { VkfRendererData } from '@vunk/form/components/renderer-data';
12
+ import { c as cloneDeep } from '../cloneDeep.mjs';
12
13
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
13
14
 
14
15
  const props = {
@@ -44,2032 +45,6 @@ const emits = {
44
45
  "update:modelValue": null
45
46
  };
46
47
 
47
- /** Detect free variable `global` from Node.js. */
48
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
49
-
50
- /** Detect free variable `self`. */
51
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
52
-
53
- /** Used as a reference to the global object. */
54
- var root = freeGlobal || freeSelf || Function('return this')();
55
-
56
- /** Built-in value references. */
57
- var Symbol = root.Symbol;
58
-
59
- /** Used for built-in method references. */
60
- var objectProto$b = Object.prototype;
61
-
62
- /** Used to check objects for own properties. */
63
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
64
-
65
- /**
66
- * Used to resolve the
67
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
68
- * of values.
69
- */
70
- var nativeObjectToString$1 = objectProto$b.toString;
71
-
72
- /** Built-in value references. */
73
- var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
74
-
75
- /**
76
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
77
- *
78
- * @private
79
- * @param {*} value The value to query.
80
- * @returns {string} Returns the raw `toStringTag`.
81
- */
82
- function getRawTag(value) {
83
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
84
- tag = value[symToStringTag$1];
85
-
86
- try {
87
- value[symToStringTag$1] = undefined;
88
- var unmasked = true;
89
- } catch (e) {}
90
-
91
- var result = nativeObjectToString$1.call(value);
92
- if (unmasked) {
93
- if (isOwn) {
94
- value[symToStringTag$1] = tag;
95
- } else {
96
- delete value[symToStringTag$1];
97
- }
98
- }
99
- return result;
100
- }
101
-
102
- /** Used for built-in method references. */
103
- var objectProto$a = Object.prototype;
104
-
105
- /**
106
- * Used to resolve the
107
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
108
- * of values.
109
- */
110
- var nativeObjectToString = objectProto$a.toString;
111
-
112
- /**
113
- * Converts `value` to a string using `Object.prototype.toString`.
114
- *
115
- * @private
116
- * @param {*} value The value to convert.
117
- * @returns {string} Returns the converted string.
118
- */
119
- function objectToString(value) {
120
- return nativeObjectToString.call(value);
121
- }
122
-
123
- /** `Object#toString` result references. */
124
- var nullTag = '[object Null]',
125
- undefinedTag = '[object Undefined]';
126
-
127
- /** Built-in value references. */
128
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
129
-
130
- /**
131
- * The base implementation of `getTag` without fallbacks for buggy environments.
132
- *
133
- * @private
134
- * @param {*} value The value to query.
135
- * @returns {string} Returns the `toStringTag`.
136
- */
137
- function baseGetTag(value) {
138
- if (value == null) {
139
- return value === undefined ? undefinedTag : nullTag;
140
- }
141
- return (symToStringTag && symToStringTag in Object(value))
142
- ? getRawTag(value)
143
- : objectToString(value);
144
- }
145
-
146
- /**
147
- * Checks if `value` is object-like. A value is object-like if it's not `null`
148
- * and has a `typeof` result of "object".
149
- *
150
- * @static
151
- * @memberOf _
152
- * @since 4.0.0
153
- * @category Lang
154
- * @param {*} value The value to check.
155
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
156
- * @example
157
- *
158
- * _.isObjectLike({});
159
- * // => true
160
- *
161
- * _.isObjectLike([1, 2, 3]);
162
- * // => true
163
- *
164
- * _.isObjectLike(_.noop);
165
- * // => false
166
- *
167
- * _.isObjectLike(null);
168
- * // => false
169
- */
170
- function isObjectLike(value) {
171
- return value != null && typeof value == 'object';
172
- }
173
-
174
- /**
175
- * Checks if `value` is classified as an `Array` object.
176
- *
177
- * @static
178
- * @memberOf _
179
- * @since 0.1.0
180
- * @category Lang
181
- * @param {*} value The value to check.
182
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
183
- * @example
184
- *
185
- * _.isArray([1, 2, 3]);
186
- * // => true
187
- *
188
- * _.isArray(document.body.children);
189
- * // => false
190
- *
191
- * _.isArray('abc');
192
- * // => false
193
- *
194
- * _.isArray(_.noop);
195
- * // => false
196
- */
197
- var isArray = Array.isArray;
198
-
199
- /**
200
- * Checks if `value` is the
201
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
202
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
203
- *
204
- * @static
205
- * @memberOf _
206
- * @since 0.1.0
207
- * @category Lang
208
- * @param {*} value The value to check.
209
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
210
- * @example
211
- *
212
- * _.isObject({});
213
- * // => true
214
- *
215
- * _.isObject([1, 2, 3]);
216
- * // => true
217
- *
218
- * _.isObject(_.noop);
219
- * // => true
220
- *
221
- * _.isObject(null);
222
- * // => false
223
- */
224
- function isObject(value) {
225
- var type = typeof value;
226
- return value != null && (type == 'object' || type == 'function');
227
- }
228
-
229
- /** `Object#toString` result references. */
230
- var asyncTag = '[object AsyncFunction]',
231
- funcTag$2 = '[object Function]',
232
- genTag$1 = '[object GeneratorFunction]',
233
- proxyTag = '[object Proxy]';
234
-
235
- /**
236
- * Checks if `value` is classified as a `Function` object.
237
- *
238
- * @static
239
- * @memberOf _
240
- * @since 0.1.0
241
- * @category Lang
242
- * @param {*} value The value to check.
243
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
244
- * @example
245
- *
246
- * _.isFunction(_);
247
- * // => true
248
- *
249
- * _.isFunction(/abc/);
250
- * // => false
251
- */
252
- function isFunction(value) {
253
- if (!isObject(value)) {
254
- return false;
255
- }
256
- // The use of `Object#toString` avoids issues with the `typeof` operator
257
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
258
- var tag = baseGetTag(value);
259
- return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
260
- }
261
-
262
- /** Used to detect overreaching core-js shims. */
263
- var coreJsData = root['__core-js_shared__'];
264
-
265
- /** Used to detect methods masquerading as native. */
266
- var maskSrcKey = (function() {
267
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
268
- return uid ? ('Symbol(src)_1.' + uid) : '';
269
- }());
270
-
271
- /**
272
- * Checks if `func` has its source masked.
273
- *
274
- * @private
275
- * @param {Function} func The function to check.
276
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
277
- */
278
- function isMasked(func) {
279
- return !!maskSrcKey && (maskSrcKey in func);
280
- }
281
-
282
- /** Used for built-in method references. */
283
- var funcProto$1 = Function.prototype;
284
-
285
- /** Used to resolve the decompiled source of functions. */
286
- var funcToString$1 = funcProto$1.toString;
287
-
288
- /**
289
- * Converts `func` to its source code.
290
- *
291
- * @private
292
- * @param {Function} func The function to convert.
293
- * @returns {string} Returns the source code.
294
- */
295
- function toSource(func) {
296
- if (func != null) {
297
- try {
298
- return funcToString$1.call(func);
299
- } catch (e) {}
300
- try {
301
- return (func + '');
302
- } catch (e) {}
303
- }
304
- return '';
305
- }
306
-
307
- /**
308
- * Used to match `RegExp`
309
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
310
- */
311
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
312
-
313
- /** Used to detect host constructors (Safari). */
314
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
315
-
316
- /** Used for built-in method references. */
317
- var funcProto = Function.prototype,
318
- objectProto$9 = Object.prototype;
319
-
320
- /** Used to resolve the decompiled source of functions. */
321
- var funcToString = funcProto.toString;
322
-
323
- /** Used to check objects for own properties. */
324
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
325
-
326
- /** Used to detect if a method is native. */
327
- var reIsNative = RegExp('^' +
328
- funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
329
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
330
- );
331
-
332
- /**
333
- * The base implementation of `_.isNative` without bad shim checks.
334
- *
335
- * @private
336
- * @param {*} value The value to check.
337
- * @returns {boolean} Returns `true` if `value` is a native function,
338
- * else `false`.
339
- */
340
- function baseIsNative(value) {
341
- if (!isObject(value) || isMasked(value)) {
342
- return false;
343
- }
344
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
345
- return pattern.test(toSource(value));
346
- }
347
-
348
- /**
349
- * Gets the value at `key` of `object`.
350
- *
351
- * @private
352
- * @param {Object} [object] The object to query.
353
- * @param {string} key The key of the property to get.
354
- * @returns {*} Returns the property value.
355
- */
356
- function getValue(object, key) {
357
- return object == null ? undefined : object[key];
358
- }
359
-
360
- /**
361
- * Gets the native function at `key` of `object`.
362
- *
363
- * @private
364
- * @param {Object} object The object to query.
365
- * @param {string} key The key of the method to get.
366
- * @returns {*} Returns the function if it's native, else `undefined`.
367
- */
368
- function getNative(object, key) {
369
- var value = getValue(object, key);
370
- return baseIsNative(value) ? value : undefined;
371
- }
372
-
373
- /* Built-in method references that are verified to be native. */
374
- var WeakMap = getNative(root, 'WeakMap');
375
-
376
- /** Built-in value references. */
377
- var objectCreate = Object.create;
378
-
379
- /**
380
- * The base implementation of `_.create` without support for assigning
381
- * properties to the created object.
382
- *
383
- * @private
384
- * @param {Object} proto The object to inherit from.
385
- * @returns {Object} Returns the new object.
386
- */
387
- var baseCreate = (function() {
388
- function object() {}
389
- return function(proto) {
390
- if (!isObject(proto)) {
391
- return {};
392
- }
393
- if (objectCreate) {
394
- return objectCreate(proto);
395
- }
396
- object.prototype = proto;
397
- var result = new object;
398
- object.prototype = undefined;
399
- return result;
400
- };
401
- }());
402
-
403
- var defineProperty = (function() {
404
- try {
405
- var func = getNative(Object, 'defineProperty');
406
- func({}, '', {});
407
- return func;
408
- } catch (e) {}
409
- }());
410
-
411
- /**
412
- * A specialized version of `_.forEach` for arrays without support for
413
- * iteratee shorthands.
414
- *
415
- * @private
416
- * @param {Array} [array] The array to iterate over.
417
- * @param {Function} iteratee The function invoked per iteration.
418
- * @returns {Array} Returns `array`.
419
- */
420
- function arrayEach(array, iteratee) {
421
- var index = -1,
422
- length = array == null ? 0 : array.length;
423
-
424
- while (++index < length) {
425
- if (iteratee(array[index], index, array) === false) {
426
- break;
427
- }
428
- }
429
- return array;
430
- }
431
-
432
- /** Used as references for various `Number` constants. */
433
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
434
-
435
- /** Used to detect unsigned integer values. */
436
- var reIsUint = /^(?:0|[1-9]\d*)$/;
437
-
438
- /**
439
- * Checks if `value` is a valid array-like index.
440
- *
441
- * @private
442
- * @param {*} value The value to check.
443
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
444
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
445
- */
446
- function isIndex(value, length) {
447
- var type = typeof value;
448
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
449
-
450
- return !!length &&
451
- (type == 'number' ||
452
- (type != 'symbol' && reIsUint.test(value))) &&
453
- (value > -1 && value % 1 == 0 && value < length);
454
- }
455
-
456
- /**
457
- * The base implementation of `assignValue` and `assignMergeValue` without
458
- * value checks.
459
- *
460
- * @private
461
- * @param {Object} object The object to modify.
462
- * @param {string} key The key of the property to assign.
463
- * @param {*} value The value to assign.
464
- */
465
- function baseAssignValue(object, key, value) {
466
- if (key == '__proto__' && defineProperty) {
467
- defineProperty(object, key, {
468
- 'configurable': true,
469
- 'enumerable': true,
470
- 'value': value,
471
- 'writable': true
472
- });
473
- } else {
474
- object[key] = value;
475
- }
476
- }
477
-
478
- /**
479
- * Performs a
480
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
481
- * comparison between two values to determine if they are equivalent.
482
- *
483
- * @static
484
- * @memberOf _
485
- * @since 4.0.0
486
- * @category Lang
487
- * @param {*} value The value to compare.
488
- * @param {*} other The other value to compare.
489
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
490
- * @example
491
- *
492
- * var object = { 'a': 1 };
493
- * var other = { 'a': 1 };
494
- *
495
- * _.eq(object, object);
496
- * // => true
497
- *
498
- * _.eq(object, other);
499
- * // => false
500
- *
501
- * _.eq('a', 'a');
502
- * // => true
503
- *
504
- * _.eq('a', Object('a'));
505
- * // => false
506
- *
507
- * _.eq(NaN, NaN);
508
- * // => true
509
- */
510
- function eq(value, other) {
511
- return value === other || (value !== value && other !== other);
512
- }
513
-
514
- /** Used for built-in method references. */
515
- var objectProto$8 = Object.prototype;
516
-
517
- /** Used to check objects for own properties. */
518
- var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
519
-
520
- /**
521
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
522
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
523
- * for equality comparisons.
524
- *
525
- * @private
526
- * @param {Object} object The object to modify.
527
- * @param {string} key The key of the property to assign.
528
- * @param {*} value The value to assign.
529
- */
530
- function assignValue(object, key, value) {
531
- var objValue = object[key];
532
- if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) ||
533
- (value === undefined && !(key in object))) {
534
- baseAssignValue(object, key, value);
535
- }
536
- }
537
-
538
- /** Used as references for various `Number` constants. */
539
- var MAX_SAFE_INTEGER = 9007199254740991;
540
-
541
- /**
542
- * Checks if `value` is a valid array-like length.
543
- *
544
- * **Note:** This method is loosely based on
545
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
546
- *
547
- * @static
548
- * @memberOf _
549
- * @since 4.0.0
550
- * @category Lang
551
- * @param {*} value The value to check.
552
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
553
- * @example
554
- *
555
- * _.isLength(3);
556
- * // => true
557
- *
558
- * _.isLength(Number.MIN_VALUE);
559
- * // => false
560
- *
561
- * _.isLength(Infinity);
562
- * // => false
563
- *
564
- * _.isLength('3');
565
- * // => false
566
- */
567
- function isLength(value) {
568
- return typeof value == 'number' &&
569
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
570
- }
571
-
572
- /**
573
- * Checks if `value` is array-like. A value is considered array-like if it's
574
- * not a function and has a `value.length` that's an integer greater than or
575
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
576
- *
577
- * @static
578
- * @memberOf _
579
- * @since 4.0.0
580
- * @category Lang
581
- * @param {*} value The value to check.
582
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
583
- * @example
584
- *
585
- * _.isArrayLike([1, 2, 3]);
586
- * // => true
587
- *
588
- * _.isArrayLike(document.body.children);
589
- * // => true
590
- *
591
- * _.isArrayLike('abc');
592
- * // => true
593
- *
594
- * _.isArrayLike(_.noop);
595
- * // => false
596
- */
597
- function isArrayLike(value) {
598
- return value != null && isLength(value.length) && !isFunction(value);
599
- }
600
-
601
- /** Used for built-in method references. */
602
- var objectProto$7 = Object.prototype;
603
-
604
- /**
605
- * Checks if `value` is likely a prototype object.
606
- *
607
- * @private
608
- * @param {*} value The value to check.
609
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
610
- */
611
- function isPrototype(value) {
612
- var Ctor = value && value.constructor,
613
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$7;
614
-
615
- return value === proto;
616
- }
617
-
618
- /**
619
- * The base implementation of `_.times` without support for iteratee shorthands
620
- * or max array length checks.
621
- *
622
- * @private
623
- * @param {number} n The number of times to invoke `iteratee`.
624
- * @param {Function} iteratee The function invoked per iteration.
625
- * @returns {Array} Returns the array of results.
626
- */
627
- function baseTimes(n, iteratee) {
628
- var index = -1,
629
- result = Array(n);
630
-
631
- while (++index < n) {
632
- result[index] = iteratee(index);
633
- }
634
- return result;
635
- }
636
-
637
- /** `Object#toString` result references. */
638
- var argsTag$2 = '[object Arguments]';
639
-
640
- /**
641
- * The base implementation of `_.isArguments`.
642
- *
643
- * @private
644
- * @param {*} value The value to check.
645
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
646
- */
647
- function baseIsArguments(value) {
648
- return isObjectLike(value) && baseGetTag(value) == argsTag$2;
649
- }
650
-
651
- /** Used for built-in method references. */
652
- var objectProto$6 = Object.prototype;
653
-
654
- /** Used to check objects for own properties. */
655
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
656
-
657
- /** Built-in value references. */
658
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
659
-
660
- /**
661
- * Checks if `value` is likely an `arguments` object.
662
- *
663
- * @static
664
- * @memberOf _
665
- * @since 0.1.0
666
- * @category Lang
667
- * @param {*} value The value to check.
668
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
669
- * else `false`.
670
- * @example
671
- *
672
- * _.isArguments(function() { return arguments; }());
673
- * // => true
674
- *
675
- * _.isArguments([1, 2, 3]);
676
- * // => false
677
- */
678
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
679
- return isObjectLike(value) && hasOwnProperty$5.call(value, 'callee') &&
680
- !propertyIsEnumerable$1.call(value, 'callee');
681
- };
682
-
683
- /**
684
- * This method returns `false`.
685
- *
686
- * @static
687
- * @memberOf _
688
- * @since 4.13.0
689
- * @category Util
690
- * @returns {boolean} Returns `false`.
691
- * @example
692
- *
693
- * _.times(2, _.stubFalse);
694
- * // => [false, false]
695
- */
696
- function stubFalse() {
697
- return false;
698
- }
699
-
700
- /** Detect free variable `exports`. */
701
- var freeExports$2 = typeof exports == 'object' && exports && !exports.nodeType && exports;
702
-
703
- /** Detect free variable `module`. */
704
- var freeModule$2 = freeExports$2 && typeof module == 'object' && module && !module.nodeType && module;
705
-
706
- /** Detect the popular CommonJS extension `module.exports`. */
707
- var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
708
-
709
- /** Built-in value references. */
710
- var Buffer$1 = moduleExports$2 ? root.Buffer : undefined;
711
-
712
- /* Built-in method references for those with the same name as other `lodash` methods. */
713
- var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : undefined;
714
-
715
- /**
716
- * Checks if `value` is a buffer.
717
- *
718
- * @static
719
- * @memberOf _
720
- * @since 4.3.0
721
- * @category Lang
722
- * @param {*} value The value to check.
723
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
724
- * @example
725
- *
726
- * _.isBuffer(new Buffer(2));
727
- * // => true
728
- *
729
- * _.isBuffer(new Uint8Array(2));
730
- * // => false
731
- */
732
- var isBuffer = nativeIsBuffer || stubFalse;
733
-
734
- /** `Object#toString` result references. */
735
- var argsTag$1 = '[object Arguments]',
736
- arrayTag$1 = '[object Array]',
737
- boolTag$2 = '[object Boolean]',
738
- dateTag$2 = '[object Date]',
739
- errorTag$1 = '[object Error]',
740
- funcTag$1 = '[object Function]',
741
- mapTag$4 = '[object Map]',
742
- numberTag$2 = '[object Number]',
743
- objectTag$2 = '[object Object]',
744
- regexpTag$2 = '[object RegExp]',
745
- setTag$4 = '[object Set]',
746
- stringTag$2 = '[object String]',
747
- weakMapTag$2 = '[object WeakMap]';
748
-
749
- var arrayBufferTag$2 = '[object ArrayBuffer]',
750
- dataViewTag$3 = '[object DataView]',
751
- float32Tag$2 = '[object Float32Array]',
752
- float64Tag$2 = '[object Float64Array]',
753
- int8Tag$2 = '[object Int8Array]',
754
- int16Tag$2 = '[object Int16Array]',
755
- int32Tag$2 = '[object Int32Array]',
756
- uint8Tag$2 = '[object Uint8Array]',
757
- uint8ClampedTag$2 = '[object Uint8ClampedArray]',
758
- uint16Tag$2 = '[object Uint16Array]',
759
- uint32Tag$2 = '[object Uint32Array]';
760
-
761
- /** Used to identify `toStringTag` values of typed arrays. */
762
- var typedArrayTags = {};
763
- typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
764
- typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
765
- typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
766
- typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
767
- typedArrayTags[uint32Tag$2] = true;
768
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
769
- typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] =
770
- typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] =
771
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
772
- typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] =
773
- typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] =
774
- typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] =
775
- typedArrayTags[weakMapTag$2] = false;
776
-
777
- /**
778
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
779
- *
780
- * @private
781
- * @param {*} value The value to check.
782
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
783
- */
784
- function baseIsTypedArray(value) {
785
- return isObjectLike(value) &&
786
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
787
- }
788
-
789
- /**
790
- * The base implementation of `_.unary` without support for storing metadata.
791
- *
792
- * @private
793
- * @param {Function} func The function to cap arguments for.
794
- * @returns {Function} Returns the new capped function.
795
- */
796
- function baseUnary(func) {
797
- return function(value) {
798
- return func(value);
799
- };
800
- }
801
-
802
- /** Detect free variable `exports`. */
803
- var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
804
-
805
- /** Detect free variable `module`. */
806
- var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
807
-
808
- /** Detect the popular CommonJS extension `module.exports`. */
809
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
810
-
811
- /** Detect free variable `process` from Node.js. */
812
- var freeProcess = moduleExports$1 && freeGlobal.process;
813
-
814
- /** Used to access faster Node.js helpers. */
815
- var nodeUtil = (function() {
816
- try {
817
- // Use `util.types` for Node.js 10+.
818
- var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;
819
-
820
- if (types) {
821
- return types;
822
- }
823
-
824
- // Legacy `process.binding('util')` for Node.js < 10.
825
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
826
- } catch (e) {}
827
- }());
828
-
829
- /* Node.js helper references. */
830
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
831
-
832
- /**
833
- * Checks if `value` is classified as a typed array.
834
- *
835
- * @static
836
- * @memberOf _
837
- * @since 3.0.0
838
- * @category Lang
839
- * @param {*} value The value to check.
840
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
841
- * @example
842
- *
843
- * _.isTypedArray(new Uint8Array);
844
- * // => true
845
- *
846
- * _.isTypedArray([]);
847
- * // => false
848
- */
849
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
850
-
851
- /** Used for built-in method references. */
852
- var objectProto$5 = Object.prototype;
853
-
854
- /** Used to check objects for own properties. */
855
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
856
-
857
- /**
858
- * Creates an array of the enumerable property names of the array-like `value`.
859
- *
860
- * @private
861
- * @param {*} value The value to query.
862
- * @param {boolean} inherited Specify returning inherited property names.
863
- * @returns {Array} Returns the array of property names.
864
- */
865
- function arrayLikeKeys(value, inherited) {
866
- var isArr = isArray(value),
867
- isArg = !isArr && isArguments(value),
868
- isBuff = !isArr && !isArg && isBuffer(value),
869
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
870
- skipIndexes = isArr || isArg || isBuff || isType,
871
- result = skipIndexes ? baseTimes(value.length, String) : [],
872
- length = result.length;
873
-
874
- for (var key in value) {
875
- if ((hasOwnProperty$4.call(value, key)) &&
876
- !(skipIndexes && (
877
- // Safari 9 has enumerable `arguments.length` in strict mode.
878
- key == 'length' ||
879
- // Node.js 0.10 has enumerable non-index properties on buffers.
880
- (isBuff && (key == 'offset' || key == 'parent')) ||
881
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
882
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
883
- // Skip index properties.
884
- isIndex(key, length)
885
- ))) {
886
- result.push(key);
887
- }
888
- }
889
- return result;
890
- }
891
-
892
- /**
893
- * Creates a unary function that invokes `func` with its argument transformed.
894
- *
895
- * @private
896
- * @param {Function} func The function to wrap.
897
- * @param {Function} transform The argument transform.
898
- * @returns {Function} Returns the new function.
899
- */
900
- function overArg(func, transform) {
901
- return function(arg) {
902
- return func(transform(arg));
903
- };
904
- }
905
-
906
- /* Built-in method references for those with the same name as other `lodash` methods. */
907
- var nativeKeys = overArg(Object.keys, Object);
908
-
909
- /** Used for built-in method references. */
910
- var objectProto$4 = Object.prototype;
911
-
912
- /** Used to check objects for own properties. */
913
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
914
-
915
- /**
916
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
917
- *
918
- * @private
919
- * @param {Object} object The object to query.
920
- * @returns {Array} Returns the array of property names.
921
- */
922
- function baseKeys(object) {
923
- if (!isPrototype(object)) {
924
- return nativeKeys(object);
925
- }
926
- var result = [];
927
- for (var key in Object(object)) {
928
- if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
929
- result.push(key);
930
- }
931
- }
932
- return result;
933
- }
934
-
935
- /**
936
- * Creates an array of the own enumerable property names of `object`.
937
- *
938
- * **Note:** Non-object values are coerced to objects. See the
939
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
940
- * for more details.
941
- *
942
- * @static
943
- * @since 0.1.0
944
- * @memberOf _
945
- * @category Object
946
- * @param {Object} object The object to query.
947
- * @returns {Array} Returns the array of property names.
948
- * @example
949
- *
950
- * function Foo() {
951
- * this.a = 1;
952
- * this.b = 2;
953
- * }
954
- *
955
- * Foo.prototype.c = 3;
956
- *
957
- * _.keys(new Foo);
958
- * // => ['a', 'b'] (iteration order is not guaranteed)
959
- *
960
- * _.keys('hi');
961
- * // => ['0', '1']
962
- */
963
- function keys(object) {
964
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
965
- }
966
-
967
- /* Built-in method references that are verified to be native. */
968
- var nativeCreate = getNative(Object, 'create');
969
-
970
- /**
971
- * Removes all key-value entries from the hash.
972
- *
973
- * @private
974
- * @name clear
975
- * @memberOf Hash
976
- */
977
- function hashClear() {
978
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
979
- this.size = 0;
980
- }
981
-
982
- /**
983
- * Removes `key` and its value from the hash.
984
- *
985
- * @private
986
- * @name delete
987
- * @memberOf Hash
988
- * @param {Object} hash The hash to modify.
989
- * @param {string} key The key of the value to remove.
990
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
991
- */
992
- function hashDelete(key) {
993
- var result = this.has(key) && delete this.__data__[key];
994
- this.size -= result ? 1 : 0;
995
- return result;
996
- }
997
-
998
- /** Used to stand-in for `undefined` hash values. */
999
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1000
-
1001
- /** Used for built-in method references. */
1002
- var objectProto$3 = Object.prototype;
1003
-
1004
- /** Used to check objects for own properties. */
1005
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
1006
-
1007
- /**
1008
- * Gets the hash value for `key`.
1009
- *
1010
- * @private
1011
- * @name get
1012
- * @memberOf Hash
1013
- * @param {string} key The key of the value to get.
1014
- * @returns {*} Returns the entry value.
1015
- */
1016
- function hashGet(key) {
1017
- var data = this.__data__;
1018
- if (nativeCreate) {
1019
- var result = data[key];
1020
- return result === HASH_UNDEFINED$1 ? undefined : result;
1021
- }
1022
- return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
1023
- }
1024
-
1025
- /** Used for built-in method references. */
1026
- var objectProto$2 = Object.prototype;
1027
-
1028
- /** Used to check objects for own properties. */
1029
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
1030
-
1031
- /**
1032
- * Checks if a hash value for `key` exists.
1033
- *
1034
- * @private
1035
- * @name has
1036
- * @memberOf Hash
1037
- * @param {string} key The key of the entry to check.
1038
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1039
- */
1040
- function hashHas(key) {
1041
- var data = this.__data__;
1042
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
1043
- }
1044
-
1045
- /** Used to stand-in for `undefined` hash values. */
1046
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1047
-
1048
- /**
1049
- * Sets the hash `key` to `value`.
1050
- *
1051
- * @private
1052
- * @name set
1053
- * @memberOf Hash
1054
- * @param {string} key The key of the value to set.
1055
- * @param {*} value The value to set.
1056
- * @returns {Object} Returns the hash instance.
1057
- */
1058
- function hashSet(key, value) {
1059
- var data = this.__data__;
1060
- this.size += this.has(key) ? 0 : 1;
1061
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1062
- return this;
1063
- }
1064
-
1065
- /**
1066
- * Creates a hash object.
1067
- *
1068
- * @private
1069
- * @constructor
1070
- * @param {Array} [entries] The key-value pairs to cache.
1071
- */
1072
- function Hash(entries) {
1073
- var index = -1,
1074
- length = entries == null ? 0 : entries.length;
1075
-
1076
- this.clear();
1077
- while (++index < length) {
1078
- var entry = entries[index];
1079
- this.set(entry[0], entry[1]);
1080
- }
1081
- }
1082
-
1083
- // Add methods to `Hash`.
1084
- Hash.prototype.clear = hashClear;
1085
- Hash.prototype['delete'] = hashDelete;
1086
- Hash.prototype.get = hashGet;
1087
- Hash.prototype.has = hashHas;
1088
- Hash.prototype.set = hashSet;
1089
-
1090
- /**
1091
- * Removes all key-value entries from the list cache.
1092
- *
1093
- * @private
1094
- * @name clear
1095
- * @memberOf ListCache
1096
- */
1097
- function listCacheClear() {
1098
- this.__data__ = [];
1099
- this.size = 0;
1100
- }
1101
-
1102
- /**
1103
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1104
- *
1105
- * @private
1106
- * @param {Array} array The array to inspect.
1107
- * @param {*} key The key to search for.
1108
- * @returns {number} Returns the index of the matched value, else `-1`.
1109
- */
1110
- function assocIndexOf(array, key) {
1111
- var length = array.length;
1112
- while (length--) {
1113
- if (eq(array[length][0], key)) {
1114
- return length;
1115
- }
1116
- }
1117
- return -1;
1118
- }
1119
-
1120
- /** Used for built-in method references. */
1121
- var arrayProto = Array.prototype;
1122
-
1123
- /** Built-in value references. */
1124
- var splice = arrayProto.splice;
1125
-
1126
- /**
1127
- * Removes `key` and its value from the list cache.
1128
- *
1129
- * @private
1130
- * @name delete
1131
- * @memberOf ListCache
1132
- * @param {string} key The key of the value to remove.
1133
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1134
- */
1135
- function listCacheDelete(key) {
1136
- var data = this.__data__,
1137
- index = assocIndexOf(data, key);
1138
-
1139
- if (index < 0) {
1140
- return false;
1141
- }
1142
- var lastIndex = data.length - 1;
1143
- if (index == lastIndex) {
1144
- data.pop();
1145
- } else {
1146
- splice.call(data, index, 1);
1147
- }
1148
- --this.size;
1149
- return true;
1150
- }
1151
-
1152
- /**
1153
- * Gets the list cache value for `key`.
1154
- *
1155
- * @private
1156
- * @name get
1157
- * @memberOf ListCache
1158
- * @param {string} key The key of the value to get.
1159
- * @returns {*} Returns the entry value.
1160
- */
1161
- function listCacheGet(key) {
1162
- var data = this.__data__,
1163
- index = assocIndexOf(data, key);
1164
-
1165
- return index < 0 ? undefined : data[index][1];
1166
- }
1167
-
1168
- /**
1169
- * Checks if a list cache value for `key` exists.
1170
- *
1171
- * @private
1172
- * @name has
1173
- * @memberOf ListCache
1174
- * @param {string} key The key of the entry to check.
1175
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1176
- */
1177
- function listCacheHas(key) {
1178
- return assocIndexOf(this.__data__, key) > -1;
1179
- }
1180
-
1181
- /**
1182
- * Sets the list cache `key` to `value`.
1183
- *
1184
- * @private
1185
- * @name set
1186
- * @memberOf ListCache
1187
- * @param {string} key The key of the value to set.
1188
- * @param {*} value The value to set.
1189
- * @returns {Object} Returns the list cache instance.
1190
- */
1191
- function listCacheSet(key, value) {
1192
- var data = this.__data__,
1193
- index = assocIndexOf(data, key);
1194
-
1195
- if (index < 0) {
1196
- ++this.size;
1197
- data.push([key, value]);
1198
- } else {
1199
- data[index][1] = value;
1200
- }
1201
- return this;
1202
- }
1203
-
1204
- /**
1205
- * Creates an list cache object.
1206
- *
1207
- * @private
1208
- * @constructor
1209
- * @param {Array} [entries] The key-value pairs to cache.
1210
- */
1211
- function ListCache(entries) {
1212
- var index = -1,
1213
- length = entries == null ? 0 : entries.length;
1214
-
1215
- this.clear();
1216
- while (++index < length) {
1217
- var entry = entries[index];
1218
- this.set(entry[0], entry[1]);
1219
- }
1220
- }
1221
-
1222
- // Add methods to `ListCache`.
1223
- ListCache.prototype.clear = listCacheClear;
1224
- ListCache.prototype['delete'] = listCacheDelete;
1225
- ListCache.prototype.get = listCacheGet;
1226
- ListCache.prototype.has = listCacheHas;
1227
- ListCache.prototype.set = listCacheSet;
1228
-
1229
- /* Built-in method references that are verified to be native. */
1230
- var Map = getNative(root, 'Map');
1231
-
1232
- /**
1233
- * Removes all key-value entries from the map.
1234
- *
1235
- * @private
1236
- * @name clear
1237
- * @memberOf MapCache
1238
- */
1239
- function mapCacheClear() {
1240
- this.size = 0;
1241
- this.__data__ = {
1242
- 'hash': new Hash,
1243
- 'map': new (Map || ListCache),
1244
- 'string': new Hash
1245
- };
1246
- }
1247
-
1248
- /**
1249
- * Checks if `value` is suitable for use as unique object key.
1250
- *
1251
- * @private
1252
- * @param {*} value The value to check.
1253
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1254
- */
1255
- function isKeyable(value) {
1256
- var type = typeof value;
1257
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1258
- ? (value !== '__proto__')
1259
- : (value === null);
1260
- }
1261
-
1262
- /**
1263
- * Gets the data for `map`.
1264
- *
1265
- * @private
1266
- * @param {Object} map The map to query.
1267
- * @param {string} key The reference key.
1268
- * @returns {*} Returns the map data.
1269
- */
1270
- function getMapData(map, key) {
1271
- var data = map.__data__;
1272
- return isKeyable(key)
1273
- ? data[typeof key == 'string' ? 'string' : 'hash']
1274
- : data.map;
1275
- }
1276
-
1277
- /**
1278
- * Removes `key` and its value from the map.
1279
- *
1280
- * @private
1281
- * @name delete
1282
- * @memberOf MapCache
1283
- * @param {string} key The key of the value to remove.
1284
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1285
- */
1286
- function mapCacheDelete(key) {
1287
- var result = getMapData(this, key)['delete'](key);
1288
- this.size -= result ? 1 : 0;
1289
- return result;
1290
- }
1291
-
1292
- /**
1293
- * Gets the map value for `key`.
1294
- *
1295
- * @private
1296
- * @name get
1297
- * @memberOf MapCache
1298
- * @param {string} key The key of the value to get.
1299
- * @returns {*} Returns the entry value.
1300
- */
1301
- function mapCacheGet(key) {
1302
- return getMapData(this, key).get(key);
1303
- }
1304
-
1305
- /**
1306
- * Checks if a map value for `key` exists.
1307
- *
1308
- * @private
1309
- * @name has
1310
- * @memberOf MapCache
1311
- * @param {string} key The key of the entry to check.
1312
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1313
- */
1314
- function mapCacheHas(key) {
1315
- return getMapData(this, key).has(key);
1316
- }
1317
-
1318
- /**
1319
- * Sets the map `key` to `value`.
1320
- *
1321
- * @private
1322
- * @name set
1323
- * @memberOf MapCache
1324
- * @param {string} key The key of the value to set.
1325
- * @param {*} value The value to set.
1326
- * @returns {Object} Returns the map cache instance.
1327
- */
1328
- function mapCacheSet(key, value) {
1329
- var data = getMapData(this, key),
1330
- size = data.size;
1331
-
1332
- data.set(key, value);
1333
- this.size += data.size == size ? 0 : 1;
1334
- return this;
1335
- }
1336
-
1337
- /**
1338
- * Creates a map cache object to store key-value pairs.
1339
- *
1340
- * @private
1341
- * @constructor
1342
- * @param {Array} [entries] The key-value pairs to cache.
1343
- */
1344
- function MapCache(entries) {
1345
- var index = -1,
1346
- length = entries == null ? 0 : entries.length;
1347
-
1348
- this.clear();
1349
- while (++index < length) {
1350
- var entry = entries[index];
1351
- this.set(entry[0], entry[1]);
1352
- }
1353
- }
1354
-
1355
- // Add methods to `MapCache`.
1356
- MapCache.prototype.clear = mapCacheClear;
1357
- MapCache.prototype['delete'] = mapCacheDelete;
1358
- MapCache.prototype.get = mapCacheGet;
1359
- MapCache.prototype.has = mapCacheHas;
1360
- MapCache.prototype.set = mapCacheSet;
1361
-
1362
- /**
1363
- * Appends the elements of `values` to `array`.
1364
- *
1365
- * @private
1366
- * @param {Array} array The array to modify.
1367
- * @param {Array} values The values to append.
1368
- * @returns {Array} Returns `array`.
1369
- */
1370
- function arrayPush(array, values) {
1371
- var index = -1,
1372
- length = values.length,
1373
- offset = array.length;
1374
-
1375
- while (++index < length) {
1376
- array[offset + index] = values[index];
1377
- }
1378
- return array;
1379
- }
1380
-
1381
- /** Built-in value references. */
1382
- var getPrototype = overArg(Object.getPrototypeOf, Object);
1383
-
1384
- /**
1385
- * Removes all key-value entries from the stack.
1386
- *
1387
- * @private
1388
- * @name clear
1389
- * @memberOf Stack
1390
- */
1391
- function stackClear() {
1392
- this.__data__ = new ListCache;
1393
- this.size = 0;
1394
- }
1395
-
1396
- /**
1397
- * Removes `key` and its value from the stack.
1398
- *
1399
- * @private
1400
- * @name delete
1401
- * @memberOf Stack
1402
- * @param {string} key The key of the value to remove.
1403
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1404
- */
1405
- function stackDelete(key) {
1406
- var data = this.__data__,
1407
- result = data['delete'](key);
1408
-
1409
- this.size = data.size;
1410
- return result;
1411
- }
1412
-
1413
- /**
1414
- * Gets the stack value for `key`.
1415
- *
1416
- * @private
1417
- * @name get
1418
- * @memberOf Stack
1419
- * @param {string} key The key of the value to get.
1420
- * @returns {*} Returns the entry value.
1421
- */
1422
- function stackGet(key) {
1423
- return this.__data__.get(key);
1424
- }
1425
-
1426
- /**
1427
- * Checks if a stack value for `key` exists.
1428
- *
1429
- * @private
1430
- * @name has
1431
- * @memberOf Stack
1432
- * @param {string} key The key of the entry to check.
1433
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1434
- */
1435
- function stackHas(key) {
1436
- return this.__data__.has(key);
1437
- }
1438
-
1439
- /** Used as the size to enable large array optimizations. */
1440
- var LARGE_ARRAY_SIZE = 200;
1441
-
1442
- /**
1443
- * Sets the stack `key` to `value`.
1444
- *
1445
- * @private
1446
- * @name set
1447
- * @memberOf Stack
1448
- * @param {string} key The key of the value to set.
1449
- * @param {*} value The value to set.
1450
- * @returns {Object} Returns the stack cache instance.
1451
- */
1452
- function stackSet(key, value) {
1453
- var data = this.__data__;
1454
- if (data instanceof ListCache) {
1455
- var pairs = data.__data__;
1456
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1457
- pairs.push([key, value]);
1458
- this.size = ++data.size;
1459
- return this;
1460
- }
1461
- data = this.__data__ = new MapCache(pairs);
1462
- }
1463
- data.set(key, value);
1464
- this.size = data.size;
1465
- return this;
1466
- }
1467
-
1468
- /**
1469
- * Creates a stack cache object to store key-value pairs.
1470
- *
1471
- * @private
1472
- * @constructor
1473
- * @param {Array} [entries] The key-value pairs to cache.
1474
- */
1475
- function Stack(entries) {
1476
- var data = this.__data__ = new ListCache(entries);
1477
- this.size = data.size;
1478
- }
1479
-
1480
- // Add methods to `Stack`.
1481
- Stack.prototype.clear = stackClear;
1482
- Stack.prototype['delete'] = stackDelete;
1483
- Stack.prototype.get = stackGet;
1484
- Stack.prototype.has = stackHas;
1485
- Stack.prototype.set = stackSet;
1486
-
1487
- /** Detect free variable `exports`. */
1488
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
1489
-
1490
- /** Detect free variable `module`. */
1491
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
1492
-
1493
- /** Detect the popular CommonJS extension `module.exports`. */
1494
- var moduleExports = freeModule && freeModule.exports === freeExports;
1495
-
1496
- /** Built-in value references. */
1497
- var Buffer = moduleExports ? root.Buffer : undefined;
1498
- Buffer ? Buffer.allocUnsafe : undefined;
1499
-
1500
- /**
1501
- * Creates a clone of `buffer`.
1502
- *
1503
- * @private
1504
- * @param {Buffer} buffer The buffer to clone.
1505
- * @param {boolean} [isDeep] Specify a deep clone.
1506
- * @returns {Buffer} Returns the cloned buffer.
1507
- */
1508
- function cloneBuffer(buffer, isDeep) {
1509
- {
1510
- return buffer.slice();
1511
- }
1512
- }
1513
-
1514
- /**
1515
- * A specialized version of `_.filter` for arrays without support for
1516
- * iteratee shorthands.
1517
- *
1518
- * @private
1519
- * @param {Array} [array] The array to iterate over.
1520
- * @param {Function} predicate The function invoked per iteration.
1521
- * @returns {Array} Returns the new filtered array.
1522
- */
1523
- function arrayFilter(array, predicate) {
1524
- var index = -1,
1525
- length = array == null ? 0 : array.length,
1526
- resIndex = 0,
1527
- result = [];
1528
-
1529
- while (++index < length) {
1530
- var value = array[index];
1531
- if (predicate(value, index, array)) {
1532
- result[resIndex++] = value;
1533
- }
1534
- }
1535
- return result;
1536
- }
1537
-
1538
- /**
1539
- * This method returns a new empty array.
1540
- *
1541
- * @static
1542
- * @memberOf _
1543
- * @since 4.13.0
1544
- * @category Util
1545
- * @returns {Array} Returns the new empty array.
1546
- * @example
1547
- *
1548
- * var arrays = _.times(2, _.stubArray);
1549
- *
1550
- * console.log(arrays);
1551
- * // => [[], []]
1552
- *
1553
- * console.log(arrays[0] === arrays[1]);
1554
- * // => false
1555
- */
1556
- function stubArray() {
1557
- return [];
1558
- }
1559
-
1560
- /** Used for built-in method references. */
1561
- var objectProto$1 = Object.prototype;
1562
-
1563
- /** Built-in value references. */
1564
- var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
1565
-
1566
- /* Built-in method references for those with the same name as other `lodash` methods. */
1567
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1568
-
1569
- /**
1570
- * Creates an array of the own enumerable symbols of `object`.
1571
- *
1572
- * @private
1573
- * @param {Object} object The object to query.
1574
- * @returns {Array} Returns the array of symbols.
1575
- */
1576
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1577
- if (object == null) {
1578
- return [];
1579
- }
1580
- object = Object(object);
1581
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
1582
- return propertyIsEnumerable.call(object, symbol);
1583
- });
1584
- };
1585
-
1586
- /**
1587
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1588
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1589
- * symbols of `object`.
1590
- *
1591
- * @private
1592
- * @param {Object} object The object to query.
1593
- * @param {Function} keysFunc The function to get the keys of `object`.
1594
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
1595
- * @returns {Array} Returns the array of property names and symbols.
1596
- */
1597
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1598
- var result = keysFunc(object);
1599
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
1600
- }
1601
-
1602
- /**
1603
- * Creates an array of own enumerable property names and symbols of `object`.
1604
- *
1605
- * @private
1606
- * @param {Object} object The object to query.
1607
- * @returns {Array} Returns the array of property names and symbols.
1608
- */
1609
- function getAllKeys(object) {
1610
- return baseGetAllKeys(object, keys, getSymbols);
1611
- }
1612
-
1613
- /* Built-in method references that are verified to be native. */
1614
- var DataView = getNative(root, 'DataView');
1615
-
1616
- /* Built-in method references that are verified to be native. */
1617
- var Promise$1 = getNative(root, 'Promise');
1618
-
1619
- /* Built-in method references that are verified to be native. */
1620
- var Set = getNative(root, 'Set');
1621
-
1622
- /** `Object#toString` result references. */
1623
- var mapTag$3 = '[object Map]',
1624
- objectTag$1 = '[object Object]',
1625
- promiseTag = '[object Promise]',
1626
- setTag$3 = '[object Set]',
1627
- weakMapTag$1 = '[object WeakMap]';
1628
-
1629
- var dataViewTag$2 = '[object DataView]';
1630
-
1631
- /** Used to detect maps, sets, and weakmaps. */
1632
- var dataViewCtorString = toSource(DataView),
1633
- mapCtorString = toSource(Map),
1634
- promiseCtorString = toSource(Promise$1),
1635
- setCtorString = toSource(Set),
1636
- weakMapCtorString = toSource(WeakMap);
1637
-
1638
- /**
1639
- * Gets the `toStringTag` of `value`.
1640
- *
1641
- * @private
1642
- * @param {*} value The value to query.
1643
- * @returns {string} Returns the `toStringTag`.
1644
- */
1645
- var getTag = baseGetTag;
1646
-
1647
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1648
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
1649
- (Map && getTag(new Map) != mapTag$3) ||
1650
- (Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||
1651
- (Set && getTag(new Set) != setTag$3) ||
1652
- (WeakMap && getTag(new WeakMap) != weakMapTag$1)) {
1653
- getTag = function(value) {
1654
- var result = baseGetTag(value),
1655
- Ctor = result == objectTag$1 ? value.constructor : undefined,
1656
- ctorString = Ctor ? toSource(Ctor) : '';
1657
-
1658
- if (ctorString) {
1659
- switch (ctorString) {
1660
- case dataViewCtorString: return dataViewTag$2;
1661
- case mapCtorString: return mapTag$3;
1662
- case promiseCtorString: return promiseTag;
1663
- case setCtorString: return setTag$3;
1664
- case weakMapCtorString: return weakMapTag$1;
1665
- }
1666
- }
1667
- return result;
1668
- };
1669
- }
1670
-
1671
- var getTag$1 = getTag;
1672
-
1673
- /** Used for built-in method references. */
1674
- var objectProto = Object.prototype;
1675
-
1676
- /** Used to check objects for own properties. */
1677
- var hasOwnProperty = objectProto.hasOwnProperty;
1678
-
1679
- /**
1680
- * Initializes an array clone.
1681
- *
1682
- * @private
1683
- * @param {Array} array The array to clone.
1684
- * @returns {Array} Returns the initialized clone.
1685
- */
1686
- function initCloneArray(array) {
1687
- var length = array.length,
1688
- result = new array.constructor(length);
1689
-
1690
- // Add properties assigned by `RegExp#exec`.
1691
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
1692
- result.index = array.index;
1693
- result.input = array.input;
1694
- }
1695
- return result;
1696
- }
1697
-
1698
- /** Built-in value references. */
1699
- var Uint8Array = root.Uint8Array;
1700
-
1701
- /**
1702
- * Creates a clone of `arrayBuffer`.
1703
- *
1704
- * @private
1705
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1706
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1707
- */
1708
- function cloneArrayBuffer(arrayBuffer) {
1709
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1710
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1711
- return result;
1712
- }
1713
-
1714
- /**
1715
- * Creates a clone of `dataView`.
1716
- *
1717
- * @private
1718
- * @param {Object} dataView The data view to clone.
1719
- * @param {boolean} [isDeep] Specify a deep clone.
1720
- * @returns {Object} Returns the cloned data view.
1721
- */
1722
- function cloneDataView(dataView, isDeep) {
1723
- var buffer = cloneArrayBuffer(dataView.buffer) ;
1724
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1725
- }
1726
-
1727
- /** Used to match `RegExp` flags from their coerced string values. */
1728
- var reFlags = /\w*$/;
1729
-
1730
- /**
1731
- * Creates a clone of `regexp`.
1732
- *
1733
- * @private
1734
- * @param {Object} regexp The regexp to clone.
1735
- * @returns {Object} Returns the cloned regexp.
1736
- */
1737
- function cloneRegExp(regexp) {
1738
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
1739
- result.lastIndex = regexp.lastIndex;
1740
- return result;
1741
- }
1742
-
1743
- /** Used to convert symbols to primitives and strings. */
1744
- var symbolProto = Symbol ? Symbol.prototype : undefined,
1745
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
1746
-
1747
- /**
1748
- * Creates a clone of the `symbol` object.
1749
- *
1750
- * @private
1751
- * @param {Object} symbol The symbol object to clone.
1752
- * @returns {Object} Returns the cloned symbol object.
1753
- */
1754
- function cloneSymbol(symbol) {
1755
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1756
- }
1757
-
1758
- /**
1759
- * Creates a clone of `typedArray`.
1760
- *
1761
- * @private
1762
- * @param {Object} typedArray The typed array to clone.
1763
- * @param {boolean} [isDeep] Specify a deep clone.
1764
- * @returns {Object} Returns the cloned typed array.
1765
- */
1766
- function cloneTypedArray(typedArray, isDeep) {
1767
- var buffer = cloneArrayBuffer(typedArray.buffer) ;
1768
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1769
- }
1770
-
1771
- /** `Object#toString` result references. */
1772
- var boolTag$1 = '[object Boolean]',
1773
- dateTag$1 = '[object Date]',
1774
- mapTag$2 = '[object Map]',
1775
- numberTag$1 = '[object Number]',
1776
- regexpTag$1 = '[object RegExp]',
1777
- setTag$2 = '[object Set]',
1778
- stringTag$1 = '[object String]',
1779
- symbolTag$1 = '[object Symbol]';
1780
-
1781
- var arrayBufferTag$1 = '[object ArrayBuffer]',
1782
- dataViewTag$1 = '[object DataView]',
1783
- float32Tag$1 = '[object Float32Array]',
1784
- float64Tag$1 = '[object Float64Array]',
1785
- int8Tag$1 = '[object Int8Array]',
1786
- int16Tag$1 = '[object Int16Array]',
1787
- int32Tag$1 = '[object Int32Array]',
1788
- uint8Tag$1 = '[object Uint8Array]',
1789
- uint8ClampedTag$1 = '[object Uint8ClampedArray]',
1790
- uint16Tag$1 = '[object Uint16Array]',
1791
- uint32Tag$1 = '[object Uint32Array]';
1792
-
1793
- /**
1794
- * Initializes an object clone based on its `toStringTag`.
1795
- *
1796
- * **Note:** This function only supports cloning values with tags of
1797
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
1798
- *
1799
- * @private
1800
- * @param {Object} object The object to clone.
1801
- * @param {string} tag The `toStringTag` of the object to clone.
1802
- * @param {boolean} [isDeep] Specify a deep clone.
1803
- * @returns {Object} Returns the initialized clone.
1804
- */
1805
- function initCloneByTag(object, tag, isDeep) {
1806
- var Ctor = object.constructor;
1807
- switch (tag) {
1808
- case arrayBufferTag$1:
1809
- return cloneArrayBuffer(object);
1810
-
1811
- case boolTag$1:
1812
- case dateTag$1:
1813
- return new Ctor(+object);
1814
-
1815
- case dataViewTag$1:
1816
- return cloneDataView(object);
1817
-
1818
- case float32Tag$1: case float64Tag$1:
1819
- case int8Tag$1: case int16Tag$1: case int32Tag$1:
1820
- case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
1821
- return cloneTypedArray(object);
1822
-
1823
- case mapTag$2:
1824
- return new Ctor;
1825
-
1826
- case numberTag$1:
1827
- case stringTag$1:
1828
- return new Ctor(object);
1829
-
1830
- case regexpTag$1:
1831
- return cloneRegExp(object);
1832
-
1833
- case setTag$2:
1834
- return new Ctor;
1835
-
1836
- case symbolTag$1:
1837
- return cloneSymbol(object);
1838
- }
1839
- }
1840
-
1841
- /**
1842
- * Initializes an object clone.
1843
- *
1844
- * @private
1845
- * @param {Object} object The object to clone.
1846
- * @returns {Object} Returns the initialized clone.
1847
- */
1848
- function initCloneObject(object) {
1849
- return (typeof object.constructor == 'function' && !isPrototype(object))
1850
- ? baseCreate(getPrototype(object))
1851
- : {};
1852
- }
1853
-
1854
- /** `Object#toString` result references. */
1855
- var mapTag$1 = '[object Map]';
1856
-
1857
- /**
1858
- * The base implementation of `_.isMap` without Node.js optimizations.
1859
- *
1860
- * @private
1861
- * @param {*} value The value to check.
1862
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
1863
- */
1864
- function baseIsMap(value) {
1865
- return isObjectLike(value) && getTag$1(value) == mapTag$1;
1866
- }
1867
-
1868
- /* Node.js helper references. */
1869
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
1870
-
1871
- /**
1872
- * Checks if `value` is classified as a `Map` object.
1873
- *
1874
- * @static
1875
- * @memberOf _
1876
- * @since 4.3.0
1877
- * @category Lang
1878
- * @param {*} value The value to check.
1879
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
1880
- * @example
1881
- *
1882
- * _.isMap(new Map);
1883
- * // => true
1884
- *
1885
- * _.isMap(new WeakMap);
1886
- * // => false
1887
- */
1888
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
1889
-
1890
- /** `Object#toString` result references. */
1891
- var setTag$1 = '[object Set]';
1892
-
1893
- /**
1894
- * The base implementation of `_.isSet` without Node.js optimizations.
1895
- *
1896
- * @private
1897
- * @param {*} value The value to check.
1898
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
1899
- */
1900
- function baseIsSet(value) {
1901
- return isObjectLike(value) && getTag$1(value) == setTag$1;
1902
- }
1903
-
1904
- /* Node.js helper references. */
1905
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
1906
-
1907
- /**
1908
- * Checks if `value` is classified as a `Set` object.
1909
- *
1910
- * @static
1911
- * @memberOf _
1912
- * @since 4.3.0
1913
- * @category Lang
1914
- * @param {*} value The value to check.
1915
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
1916
- * @example
1917
- *
1918
- * _.isSet(new Set);
1919
- * // => true
1920
- *
1921
- * _.isSet(new WeakSet);
1922
- * // => false
1923
- */
1924
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
1925
-
1926
- /** `Object#toString` result references. */
1927
- var argsTag = '[object Arguments]',
1928
- arrayTag = '[object Array]',
1929
- boolTag = '[object Boolean]',
1930
- dateTag = '[object Date]',
1931
- errorTag = '[object Error]',
1932
- funcTag = '[object Function]',
1933
- genTag = '[object GeneratorFunction]',
1934
- mapTag = '[object Map]',
1935
- numberTag = '[object Number]',
1936
- objectTag = '[object Object]',
1937
- regexpTag = '[object RegExp]',
1938
- setTag = '[object Set]',
1939
- stringTag = '[object String]',
1940
- symbolTag = '[object Symbol]',
1941
- weakMapTag = '[object WeakMap]';
1942
-
1943
- var arrayBufferTag = '[object ArrayBuffer]',
1944
- dataViewTag = '[object DataView]',
1945
- float32Tag = '[object Float32Array]',
1946
- float64Tag = '[object Float64Array]',
1947
- int8Tag = '[object Int8Array]',
1948
- int16Tag = '[object Int16Array]',
1949
- int32Tag = '[object Int32Array]',
1950
- uint8Tag = '[object Uint8Array]',
1951
- uint8ClampedTag = '[object Uint8ClampedArray]',
1952
- uint16Tag = '[object Uint16Array]',
1953
- uint32Tag = '[object Uint32Array]';
1954
-
1955
- /** Used to identify `toStringTag` values supported by `_.clone`. */
1956
- var cloneableTags = {};
1957
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
1958
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
1959
- cloneableTags[boolTag] = cloneableTags[dateTag] =
1960
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
1961
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
1962
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
1963
- cloneableTags[numberTag] = cloneableTags[objectTag] =
1964
- cloneableTags[regexpTag] = cloneableTags[setTag] =
1965
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
1966
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
1967
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
1968
- cloneableTags[errorTag] = cloneableTags[funcTag] =
1969
- cloneableTags[weakMapTag] = false;
1970
-
1971
- /**
1972
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
1973
- * traversed objects.
1974
- *
1975
- * @private
1976
- * @param {*} value The value to clone.
1977
- * @param {boolean} bitmask The bitmask flags.
1978
- * 1 - Deep clone
1979
- * 2 - Flatten inherited properties
1980
- * 4 - Clone symbols
1981
- * @param {Function} [customizer] The function to customize cloning.
1982
- * @param {string} [key] The key of `value`.
1983
- * @param {Object} [object] The parent object of `value`.
1984
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
1985
- * @returns {*} Returns the cloned value.
1986
- */
1987
- function baseClone(value, bitmask, customizer, key, object, stack) {
1988
- var result;
1989
- if (result !== undefined) {
1990
- return result;
1991
- }
1992
- if (!isObject(value)) {
1993
- return value;
1994
- }
1995
- var isArr = isArray(value);
1996
- if (isArr) {
1997
- result = initCloneArray(value);
1998
- } else {
1999
- var tag = getTag$1(value),
2000
- isFunc = tag == funcTag || tag == genTag;
2001
-
2002
- if (isBuffer(value)) {
2003
- return cloneBuffer(value);
2004
- }
2005
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
2006
- result = (isFunc) ? {} : initCloneObject(value);
2007
- } else {
2008
- if (!cloneableTags[tag]) {
2009
- return object ? value : {};
2010
- }
2011
- result = initCloneByTag(value, tag);
2012
- }
2013
- }
2014
- // Check for circular references and return its corresponding clone.
2015
- stack || (stack = new Stack);
2016
- var stacked = stack.get(value);
2017
- if (stacked) {
2018
- return stacked;
2019
- }
2020
- stack.set(value, result);
2021
-
2022
- if (isSet(value)) {
2023
- value.forEach(function(subValue) {
2024
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
2025
- });
2026
- } else if (isMap(value)) {
2027
- value.forEach(function(subValue, key) {
2028
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
2029
- });
2030
- }
2031
-
2032
- var keysFunc = (getAllKeys)
2033
- ;
2034
-
2035
- var props = isArr ? undefined : keysFunc(value);
2036
- arrayEach(props || value, function(subValue, key) {
2037
- if (props) {
2038
- key = subValue;
2039
- subValue = value[key];
2040
- }
2041
- // Recursively populate clone (susceptible to call stack limits).
2042
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
2043
- });
2044
- return result;
2045
- }
2046
-
2047
- /** Used to compose bitmasks for cloning. */
2048
- var CLONE_DEEP_FLAG = 1,
2049
- CLONE_SYMBOLS_FLAG = 4;
2050
-
2051
- /**
2052
- * This method is like `_.clone` except that it recursively clones `value`.
2053
- *
2054
- * @static
2055
- * @memberOf _
2056
- * @since 1.0.0
2057
- * @category Lang
2058
- * @param {*} value The value to recursively clone.
2059
- * @returns {*} Returns the deep cloned value.
2060
- * @see _.clone
2061
- * @example
2062
- *
2063
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
2064
- *
2065
- * var deep = _.cloneDeep(objects);
2066
- * console.log(deep[0] === objects[0]);
2067
- * // => false
2068
- */
2069
- function cloneDeep(value) {
2070
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
2071
- }
2072
-
2073
48
  var _sfc_main = /* @__PURE__ */ defineComponent({
2074
49
  name: "VkfInputCollection",
2075
50
  components: {
@@ -2148,7 +123,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2148
123
  const handleFormSetData = e => {
2149
124
  const data = cloneDeep(formData.value);
2150
125
  ensetData(data, e);
2151
- emit("update:modelValue", getValue$1(data, props2.prop));
126
+ emit("update:modelValue", getValue(data, props2.prop));
2152
127
  };
2153
128
  return {
2154
129
  addToFirst,