@tmagic/table 1.5.4 → 1.5.6

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.
@@ -1,8 +1,2262 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('lodash-es'), require('@tmagic/design'), require('@tmagic/form')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'vue', 'lodash-es', '@tmagic/design', '@tmagic/form'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TMagicTable = {}, global.Vue, global.lodashEs, global.design, global.form));
5
- })(this, (function (exports, vue, lodashEs, design, form) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('@tmagic/design'), require('@tmagic/form')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'vue', '@tmagic/design', '@tmagic/form'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TMagicTable = {}, global.Vue, global.design, global.form));
5
+ })(this, (function (exports, vue, design, form) { 'use strict';
6
+
7
+ /** Detect free variable `global` from Node.js. */
8
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
9
+
10
+ /** Detect free variable `self`. */
11
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
12
+
13
+ /** Used as a reference to the global object. */
14
+ var root = freeGlobal || freeSelf || Function('return this')();
15
+
16
+ /** Built-in value references. */
17
+ var Symbol$1 = root.Symbol;
18
+
19
+ /** Used for built-in method references. */
20
+ var objectProto$c = Object.prototype;
21
+
22
+ /** Used to check objects for own properties. */
23
+ var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
24
+
25
+ /**
26
+ * Used to resolve the
27
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
28
+ * of values.
29
+ */
30
+ var nativeObjectToString$1 = objectProto$c.toString;
31
+
32
+ /** Built-in value references. */
33
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
34
+
35
+ /**
36
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
37
+ *
38
+ * @private
39
+ * @param {*} value The value to query.
40
+ * @returns {string} Returns the raw `toStringTag`.
41
+ */
42
+ function getRawTag(value) {
43
+ var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
44
+ tag = value[symToStringTag$1];
45
+
46
+ try {
47
+ value[symToStringTag$1] = undefined;
48
+ var unmasked = true;
49
+ } catch (e) {}
50
+
51
+ var result = nativeObjectToString$1.call(value);
52
+ if (unmasked) {
53
+ if (isOwn) {
54
+ value[symToStringTag$1] = tag;
55
+ } else {
56
+ delete value[symToStringTag$1];
57
+ }
58
+ }
59
+ return result;
60
+ }
61
+
62
+ /** Used for built-in method references. */
63
+ var objectProto$b = Object.prototype;
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 = objectProto$b.toString;
71
+
72
+ /**
73
+ * Converts `value` to a string using `Object.prototype.toString`.
74
+ *
75
+ * @private
76
+ * @param {*} value The value to convert.
77
+ * @returns {string} Returns the converted string.
78
+ */
79
+ function objectToString(value) {
80
+ return nativeObjectToString.call(value);
81
+ }
82
+
83
+ /** `Object#toString` result references. */
84
+ var nullTag = '[object Null]',
85
+ undefinedTag = '[object Undefined]';
86
+
87
+ /** Built-in value references. */
88
+ var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
89
+
90
+ /**
91
+ * The base implementation of `getTag` without fallbacks for buggy environments.
92
+ *
93
+ * @private
94
+ * @param {*} value The value to query.
95
+ * @returns {string} Returns the `toStringTag`.
96
+ */
97
+ function baseGetTag(value) {
98
+ if (value == null) {
99
+ return value === undefined ? undefinedTag : nullTag;
100
+ }
101
+ return (symToStringTag && symToStringTag in Object(value))
102
+ ? getRawTag(value)
103
+ : objectToString(value);
104
+ }
105
+
106
+ /**
107
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
108
+ * and has a `typeof` result of "object".
109
+ *
110
+ * @static
111
+ * @memberOf _
112
+ * @since 4.0.0
113
+ * @category Lang
114
+ * @param {*} value The value to check.
115
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
116
+ * @example
117
+ *
118
+ * _.isObjectLike({});
119
+ * // => true
120
+ *
121
+ * _.isObjectLike([1, 2, 3]);
122
+ * // => true
123
+ *
124
+ * _.isObjectLike(_.noop);
125
+ * // => false
126
+ *
127
+ * _.isObjectLike(null);
128
+ * // => false
129
+ */
130
+ function isObjectLike(value) {
131
+ return value != null && typeof value == 'object';
132
+ }
133
+
134
+ /**
135
+ * Checks if `value` is classified as an `Array` object.
136
+ *
137
+ * @static
138
+ * @memberOf _
139
+ * @since 0.1.0
140
+ * @category Lang
141
+ * @param {*} value The value to check.
142
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
143
+ * @example
144
+ *
145
+ * _.isArray([1, 2, 3]);
146
+ * // => true
147
+ *
148
+ * _.isArray(document.body.children);
149
+ * // => false
150
+ *
151
+ * _.isArray('abc');
152
+ * // => false
153
+ *
154
+ * _.isArray(_.noop);
155
+ * // => false
156
+ */
157
+ var isArray = Array.isArray;
158
+
159
+ /**
160
+ * Checks if `value` is the
161
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
162
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
163
+ *
164
+ * @static
165
+ * @memberOf _
166
+ * @since 0.1.0
167
+ * @category Lang
168
+ * @param {*} value The value to check.
169
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
170
+ * @example
171
+ *
172
+ * _.isObject({});
173
+ * // => true
174
+ *
175
+ * _.isObject([1, 2, 3]);
176
+ * // => true
177
+ *
178
+ * _.isObject(_.noop);
179
+ * // => true
180
+ *
181
+ * _.isObject(null);
182
+ * // => false
183
+ */
184
+ function isObject(value) {
185
+ var type = typeof value;
186
+ return value != null && (type == 'object' || type == 'function');
187
+ }
188
+
189
+ /** `Object#toString` result references. */
190
+ var asyncTag = '[object AsyncFunction]',
191
+ funcTag$2 = '[object Function]',
192
+ genTag$1 = '[object GeneratorFunction]',
193
+ proxyTag = '[object Proxy]';
194
+
195
+ /**
196
+ * Checks if `value` is classified as a `Function` object.
197
+ *
198
+ * @static
199
+ * @memberOf _
200
+ * @since 0.1.0
201
+ * @category Lang
202
+ * @param {*} value The value to check.
203
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
204
+ * @example
205
+ *
206
+ * _.isFunction(_);
207
+ * // => true
208
+ *
209
+ * _.isFunction(/abc/);
210
+ * // => false
211
+ */
212
+ function isFunction(value) {
213
+ if (!isObject(value)) {
214
+ return false;
215
+ }
216
+ // The use of `Object#toString` avoids issues with the `typeof` operator
217
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
218
+ var tag = baseGetTag(value);
219
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
220
+ }
221
+
222
+ /** Used to detect overreaching core-js shims. */
223
+ var coreJsData = root['__core-js_shared__'];
224
+
225
+ /** Used to detect methods masquerading as native. */
226
+ var maskSrcKey = (function() {
227
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
228
+ return uid ? ('Symbol(src)_1.' + uid) : '';
229
+ }());
230
+
231
+ /**
232
+ * Checks if `func` has its source masked.
233
+ *
234
+ * @private
235
+ * @param {Function} func The function to check.
236
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
237
+ */
238
+ function isMasked(func) {
239
+ return !!maskSrcKey && (maskSrcKey in func);
240
+ }
241
+
242
+ /** Used for built-in method references. */
243
+ var funcProto$1 = Function.prototype;
244
+
245
+ /** Used to resolve the decompiled source of functions. */
246
+ var funcToString$1 = funcProto$1.toString;
247
+
248
+ /**
249
+ * Converts `func` to its source code.
250
+ *
251
+ * @private
252
+ * @param {Function} func The function to convert.
253
+ * @returns {string} Returns the source code.
254
+ */
255
+ function toSource(func) {
256
+ if (func != null) {
257
+ try {
258
+ return funcToString$1.call(func);
259
+ } catch (e) {}
260
+ try {
261
+ return (func + '');
262
+ } catch (e) {}
263
+ }
264
+ return '';
265
+ }
266
+
267
+ /**
268
+ * Used to match `RegExp`
269
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
270
+ */
271
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
272
+
273
+ /** Used to detect host constructors (Safari). */
274
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
275
+
276
+ /** Used for built-in method references. */
277
+ var funcProto = Function.prototype,
278
+ objectProto$a = Object.prototype;
279
+
280
+ /** Used to resolve the decompiled source of functions. */
281
+ var funcToString = funcProto.toString;
282
+
283
+ /** Used to check objects for own properties. */
284
+ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
285
+
286
+ /** Used to detect if a method is native. */
287
+ var reIsNative = RegExp('^' +
288
+ funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
289
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
290
+ );
291
+
292
+ /**
293
+ * The base implementation of `_.isNative` without bad shim checks.
294
+ *
295
+ * @private
296
+ * @param {*} value The value to check.
297
+ * @returns {boolean} Returns `true` if `value` is a native function,
298
+ * else `false`.
299
+ */
300
+ function baseIsNative(value) {
301
+ if (!isObject(value) || isMasked(value)) {
302
+ return false;
303
+ }
304
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
305
+ return pattern.test(toSource(value));
306
+ }
307
+
308
+ /**
309
+ * Gets the value at `key` of `object`.
310
+ *
311
+ * @private
312
+ * @param {Object} [object] The object to query.
313
+ * @param {string} key The key of the property to get.
314
+ * @returns {*} Returns the property value.
315
+ */
316
+ function getValue(object, key) {
317
+ return object == null ? undefined : object[key];
318
+ }
319
+
320
+ /**
321
+ * Gets the native function at `key` of `object`.
322
+ *
323
+ * @private
324
+ * @param {Object} object The object to query.
325
+ * @param {string} key The key of the method to get.
326
+ * @returns {*} Returns the function if it's native, else `undefined`.
327
+ */
328
+ function getNative(object, key) {
329
+ var value = getValue(object, key);
330
+ return baseIsNative(value) ? value : undefined;
331
+ }
332
+
333
+ /* Built-in method references that are verified to be native. */
334
+ var WeakMap = getNative(root, 'WeakMap');
335
+
336
+ /** Built-in value references. */
337
+ var objectCreate = Object.create;
338
+
339
+ /**
340
+ * The base implementation of `_.create` without support for assigning
341
+ * properties to the created object.
342
+ *
343
+ * @private
344
+ * @param {Object} proto The object to inherit from.
345
+ * @returns {Object} Returns the new object.
346
+ */
347
+ var baseCreate = (function() {
348
+ function object() {}
349
+ return function(proto) {
350
+ if (!isObject(proto)) {
351
+ return {};
352
+ }
353
+ if (objectCreate) {
354
+ return objectCreate(proto);
355
+ }
356
+ object.prototype = proto;
357
+ var result = new object;
358
+ object.prototype = undefined;
359
+ return result;
360
+ };
361
+ }());
362
+
363
+ /**
364
+ * Copies the values of `source` to `array`.
365
+ *
366
+ * @private
367
+ * @param {Array} source The array to copy values from.
368
+ * @param {Array} [array=[]] The array to copy values to.
369
+ * @returns {Array} Returns `array`.
370
+ */
371
+ function copyArray(source, array) {
372
+ var index = -1,
373
+ length = source.length;
374
+
375
+ array || (array = Array(length));
376
+ while (++index < length) {
377
+ array[index] = source[index];
378
+ }
379
+ return array;
380
+ }
381
+
382
+ var defineProperty = (function() {
383
+ try {
384
+ var func = getNative(Object, 'defineProperty');
385
+ func({}, '', {});
386
+ return func;
387
+ } catch (e) {}
388
+ }());
389
+
390
+ /**
391
+ * A specialized version of `_.forEach` for arrays without support for
392
+ * iteratee shorthands.
393
+ *
394
+ * @private
395
+ * @param {Array} [array] The array to iterate over.
396
+ * @param {Function} iteratee The function invoked per iteration.
397
+ * @returns {Array} Returns `array`.
398
+ */
399
+ function arrayEach(array, iteratee) {
400
+ var index = -1,
401
+ length = array == null ? 0 : array.length;
402
+
403
+ while (++index < length) {
404
+ if (iteratee(array[index], index, array) === false) {
405
+ break;
406
+ }
407
+ }
408
+ return array;
409
+ }
410
+
411
+ /** Used as references for various `Number` constants. */
412
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
413
+
414
+ /** Used to detect unsigned integer values. */
415
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
416
+
417
+ /**
418
+ * Checks if `value` is a valid array-like index.
419
+ *
420
+ * @private
421
+ * @param {*} value The value to check.
422
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
423
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
424
+ */
425
+ function isIndex(value, length) {
426
+ var type = typeof value;
427
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
428
+
429
+ return !!length &&
430
+ (type == 'number' ||
431
+ (type != 'symbol' && reIsUint.test(value))) &&
432
+ (value > -1 && value % 1 == 0 && value < length);
433
+ }
434
+
435
+ /**
436
+ * The base implementation of `assignValue` and `assignMergeValue` without
437
+ * value checks.
438
+ *
439
+ * @private
440
+ * @param {Object} object The object to modify.
441
+ * @param {string} key The key of the property to assign.
442
+ * @param {*} value The value to assign.
443
+ */
444
+ function baseAssignValue(object, key, value) {
445
+ if (key == '__proto__' && defineProperty) {
446
+ defineProperty(object, key, {
447
+ 'configurable': true,
448
+ 'enumerable': true,
449
+ 'value': value,
450
+ 'writable': true
451
+ });
452
+ } else {
453
+ object[key] = value;
454
+ }
455
+ }
456
+
457
+ /**
458
+ * Performs a
459
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
460
+ * comparison between two values to determine if they are equivalent.
461
+ *
462
+ * @static
463
+ * @memberOf _
464
+ * @since 4.0.0
465
+ * @category Lang
466
+ * @param {*} value The value to compare.
467
+ * @param {*} other The other value to compare.
468
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
469
+ * @example
470
+ *
471
+ * var object = { 'a': 1 };
472
+ * var other = { 'a': 1 };
473
+ *
474
+ * _.eq(object, object);
475
+ * // => true
476
+ *
477
+ * _.eq(object, other);
478
+ * // => false
479
+ *
480
+ * _.eq('a', 'a');
481
+ * // => true
482
+ *
483
+ * _.eq('a', Object('a'));
484
+ * // => false
485
+ *
486
+ * _.eq(NaN, NaN);
487
+ * // => true
488
+ */
489
+ function eq(value, other) {
490
+ return value === other || (value !== value && other !== other);
491
+ }
492
+
493
+ /** Used for built-in method references. */
494
+ var objectProto$9 = Object.prototype;
495
+
496
+ /** Used to check objects for own properties. */
497
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
498
+
499
+ /**
500
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
501
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
502
+ * for equality comparisons.
503
+ *
504
+ * @private
505
+ * @param {Object} object The object to modify.
506
+ * @param {string} key The key of the property to assign.
507
+ * @param {*} value The value to assign.
508
+ */
509
+ function assignValue(object, key, value) {
510
+ var objValue = object[key];
511
+ if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) ||
512
+ (value === undefined && !(key in object))) {
513
+ baseAssignValue(object, key, value);
514
+ }
515
+ }
516
+
517
+ /**
518
+ * Copies properties of `source` to `object`.
519
+ *
520
+ * @private
521
+ * @param {Object} source The object to copy properties from.
522
+ * @param {Array} props The property identifiers to copy.
523
+ * @param {Object} [object={}] The object to copy properties to.
524
+ * @param {Function} [customizer] The function to customize copied values.
525
+ * @returns {Object} Returns `object`.
526
+ */
527
+ function copyObject(source, props, object, customizer) {
528
+ var isNew = !object;
529
+ object || (object = {});
530
+
531
+ var index = -1,
532
+ length = props.length;
533
+
534
+ while (++index < length) {
535
+ var key = props[index];
536
+
537
+ var newValue = undefined;
538
+
539
+ if (newValue === undefined) {
540
+ newValue = source[key];
541
+ }
542
+ if (isNew) {
543
+ baseAssignValue(object, key, newValue);
544
+ } else {
545
+ assignValue(object, key, newValue);
546
+ }
547
+ }
548
+ return object;
549
+ }
550
+
551
+ /** Used as references for various `Number` constants. */
552
+ var MAX_SAFE_INTEGER = 9007199254740991;
553
+
554
+ /**
555
+ * Checks if `value` is a valid array-like length.
556
+ *
557
+ * **Note:** This method is loosely based on
558
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
559
+ *
560
+ * @static
561
+ * @memberOf _
562
+ * @since 4.0.0
563
+ * @category Lang
564
+ * @param {*} value The value to check.
565
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
566
+ * @example
567
+ *
568
+ * _.isLength(3);
569
+ * // => true
570
+ *
571
+ * _.isLength(Number.MIN_VALUE);
572
+ * // => false
573
+ *
574
+ * _.isLength(Infinity);
575
+ * // => false
576
+ *
577
+ * _.isLength('3');
578
+ * // => false
579
+ */
580
+ function isLength(value) {
581
+ return typeof value == 'number' &&
582
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
583
+ }
584
+
585
+ /**
586
+ * Checks if `value` is array-like. A value is considered array-like if it's
587
+ * not a function and has a `value.length` that's an integer greater than or
588
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
589
+ *
590
+ * @static
591
+ * @memberOf _
592
+ * @since 4.0.0
593
+ * @category Lang
594
+ * @param {*} value The value to check.
595
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
596
+ * @example
597
+ *
598
+ * _.isArrayLike([1, 2, 3]);
599
+ * // => true
600
+ *
601
+ * _.isArrayLike(document.body.children);
602
+ * // => true
603
+ *
604
+ * _.isArrayLike('abc');
605
+ * // => true
606
+ *
607
+ * _.isArrayLike(_.noop);
608
+ * // => false
609
+ */
610
+ function isArrayLike(value) {
611
+ return value != null && isLength(value.length) && !isFunction(value);
612
+ }
613
+
614
+ /** Used for built-in method references. */
615
+ var objectProto$8 = Object.prototype;
616
+
617
+ /**
618
+ * Checks if `value` is likely a prototype object.
619
+ *
620
+ * @private
621
+ * @param {*} value The value to check.
622
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
623
+ */
624
+ function isPrototype(value) {
625
+ var Ctor = value && value.constructor,
626
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
627
+
628
+ return value === proto;
629
+ }
630
+
631
+ /**
632
+ * The base implementation of `_.times` without support for iteratee shorthands
633
+ * or max array length checks.
634
+ *
635
+ * @private
636
+ * @param {number} n The number of times to invoke `iteratee`.
637
+ * @param {Function} iteratee The function invoked per iteration.
638
+ * @returns {Array} Returns the array of results.
639
+ */
640
+ function baseTimes(n, iteratee) {
641
+ var index = -1,
642
+ result = Array(n);
643
+
644
+ while (++index < n) {
645
+ result[index] = iteratee(index);
646
+ }
647
+ return result;
648
+ }
649
+
650
+ /** `Object#toString` result references. */
651
+ var argsTag$2 = '[object Arguments]';
652
+
653
+ /**
654
+ * The base implementation of `_.isArguments`.
655
+ *
656
+ * @private
657
+ * @param {*} value The value to check.
658
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
659
+ */
660
+ function baseIsArguments(value) {
661
+ return isObjectLike(value) && baseGetTag(value) == argsTag$2;
662
+ }
663
+
664
+ /** Used for built-in method references. */
665
+ var objectProto$7 = Object.prototype;
666
+
667
+ /** Used to check objects for own properties. */
668
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
669
+
670
+ /** Built-in value references. */
671
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
672
+
673
+ /**
674
+ * Checks if `value` is likely an `arguments` object.
675
+ *
676
+ * @static
677
+ * @memberOf _
678
+ * @since 0.1.0
679
+ * @category Lang
680
+ * @param {*} value The value to check.
681
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
682
+ * else `false`.
683
+ * @example
684
+ *
685
+ * _.isArguments(function() { return arguments; }());
686
+ * // => true
687
+ *
688
+ * _.isArguments([1, 2, 3]);
689
+ * // => false
690
+ */
691
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
692
+ return isObjectLike(value) && hasOwnProperty$6.call(value, 'callee') &&
693
+ !propertyIsEnumerable$1.call(value, 'callee');
694
+ };
695
+
696
+ /**
697
+ * This method returns `false`.
698
+ *
699
+ * @static
700
+ * @memberOf _
701
+ * @since 4.13.0
702
+ * @category Util
703
+ * @returns {boolean} Returns `false`.
704
+ * @example
705
+ *
706
+ * _.times(2, _.stubFalse);
707
+ * // => [false, false]
708
+ */
709
+ function stubFalse() {
710
+ return false;
711
+ }
712
+
713
+ /** Detect free variable `exports`. */
714
+ var freeExports$2 = typeof exports == 'object' && exports && !exports.nodeType && exports;
715
+
716
+ /** Detect free variable `module`. */
717
+ var freeModule$2 = freeExports$2 && typeof module == 'object' && module && !module.nodeType && module;
718
+
719
+ /** Detect the popular CommonJS extension `module.exports`. */
720
+ var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
721
+
722
+ /** Built-in value references. */
723
+ var Buffer$1 = moduleExports$2 ? root.Buffer : undefined;
724
+
725
+ /* Built-in method references for those with the same name as other `lodash` methods. */
726
+ var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : undefined;
727
+
728
+ /**
729
+ * Checks if `value` is a buffer.
730
+ *
731
+ * @static
732
+ * @memberOf _
733
+ * @since 4.3.0
734
+ * @category Lang
735
+ * @param {*} value The value to check.
736
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
737
+ * @example
738
+ *
739
+ * _.isBuffer(new Buffer(2));
740
+ * // => true
741
+ *
742
+ * _.isBuffer(new Uint8Array(2));
743
+ * // => false
744
+ */
745
+ var isBuffer = nativeIsBuffer || stubFalse;
746
+
747
+ /** `Object#toString` result references. */
748
+ var argsTag$1 = '[object Arguments]',
749
+ arrayTag$1 = '[object Array]',
750
+ boolTag$2 = '[object Boolean]',
751
+ dateTag$2 = '[object Date]',
752
+ errorTag$1 = '[object Error]',
753
+ funcTag$1 = '[object Function]',
754
+ mapTag$4 = '[object Map]',
755
+ numberTag$2 = '[object Number]',
756
+ objectTag$2 = '[object Object]',
757
+ regexpTag$2 = '[object RegExp]',
758
+ setTag$4 = '[object Set]',
759
+ stringTag$2 = '[object String]',
760
+ weakMapTag$2 = '[object WeakMap]';
761
+
762
+ var arrayBufferTag$2 = '[object ArrayBuffer]',
763
+ dataViewTag$3 = '[object DataView]',
764
+ float32Tag$2 = '[object Float32Array]',
765
+ float64Tag$2 = '[object Float64Array]',
766
+ int8Tag$2 = '[object Int8Array]',
767
+ int16Tag$2 = '[object Int16Array]',
768
+ int32Tag$2 = '[object Int32Array]',
769
+ uint8Tag$2 = '[object Uint8Array]',
770
+ uint8ClampedTag$2 = '[object Uint8ClampedArray]',
771
+ uint16Tag$2 = '[object Uint16Array]',
772
+ uint32Tag$2 = '[object Uint32Array]';
773
+
774
+ /** Used to identify `toStringTag` values of typed arrays. */
775
+ var typedArrayTags = {};
776
+ typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
777
+ typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
778
+ typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
779
+ typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
780
+ typedArrayTags[uint32Tag$2] = true;
781
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
782
+ typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] =
783
+ typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] =
784
+ typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
785
+ typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] =
786
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] =
787
+ typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] =
788
+ typedArrayTags[weakMapTag$2] = false;
789
+
790
+ /**
791
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
792
+ *
793
+ * @private
794
+ * @param {*} value The value to check.
795
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
796
+ */
797
+ function baseIsTypedArray(value) {
798
+ return isObjectLike(value) &&
799
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
800
+ }
801
+
802
+ /**
803
+ * The base implementation of `_.unary` without support for storing metadata.
804
+ *
805
+ * @private
806
+ * @param {Function} func The function to cap arguments for.
807
+ * @returns {Function} Returns the new capped function.
808
+ */
809
+ function baseUnary(func) {
810
+ return function(value) {
811
+ return func(value);
812
+ };
813
+ }
814
+
815
+ /** Detect free variable `exports`. */
816
+ var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
817
+
818
+ /** Detect free variable `module`. */
819
+ var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
820
+
821
+ /** Detect the popular CommonJS extension `module.exports`. */
822
+ var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
823
+
824
+ /** Detect free variable `process` from Node.js. */
825
+ var freeProcess = moduleExports$1 && freeGlobal.process;
826
+
827
+ /** Used to access faster Node.js helpers. */
828
+ var nodeUtil = (function() {
829
+ try {
830
+ // Use `util.types` for Node.js 10+.
831
+ var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;
832
+
833
+ if (types) {
834
+ return types;
835
+ }
836
+
837
+ // Legacy `process.binding('util')` for Node.js < 10.
838
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
839
+ } catch (e) {}
840
+ }());
841
+
842
+ /* Node.js helper references. */
843
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
844
+
845
+ /**
846
+ * Checks if `value` is classified as a typed array.
847
+ *
848
+ * @static
849
+ * @memberOf _
850
+ * @since 3.0.0
851
+ * @category Lang
852
+ * @param {*} value The value to check.
853
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
854
+ * @example
855
+ *
856
+ * _.isTypedArray(new Uint8Array);
857
+ * // => true
858
+ *
859
+ * _.isTypedArray([]);
860
+ * // => false
861
+ */
862
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
863
+
864
+ /** Used for built-in method references. */
865
+ var objectProto$6 = Object.prototype;
866
+
867
+ /** Used to check objects for own properties. */
868
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
869
+
870
+ /**
871
+ * Creates an array of the enumerable property names of the array-like `value`.
872
+ *
873
+ * @private
874
+ * @param {*} value The value to query.
875
+ * @param {boolean} inherited Specify returning inherited property names.
876
+ * @returns {Array} Returns the array of property names.
877
+ */
878
+ function arrayLikeKeys(value, inherited) {
879
+ var isArr = isArray(value),
880
+ isArg = !isArr && isArguments(value),
881
+ isBuff = !isArr && !isArg && isBuffer(value),
882
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
883
+ skipIndexes = isArr || isArg || isBuff || isType,
884
+ result = skipIndexes ? baseTimes(value.length, String) : [],
885
+ length = result.length;
886
+
887
+ for (var key in value) {
888
+ if ((inherited || hasOwnProperty$5.call(value, key)) &&
889
+ !(skipIndexes && (
890
+ // Safari 9 has enumerable `arguments.length` in strict mode.
891
+ key == 'length' ||
892
+ // Node.js 0.10 has enumerable non-index properties on buffers.
893
+ (isBuff && (key == 'offset' || key == 'parent')) ||
894
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
895
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
896
+ // Skip index properties.
897
+ isIndex(key, length)
898
+ ))) {
899
+ result.push(key);
900
+ }
901
+ }
902
+ return result;
903
+ }
904
+
905
+ /**
906
+ * Creates a unary function that invokes `func` with its argument transformed.
907
+ *
908
+ * @private
909
+ * @param {Function} func The function to wrap.
910
+ * @param {Function} transform The argument transform.
911
+ * @returns {Function} Returns the new function.
912
+ */
913
+ function overArg(func, transform) {
914
+ return function(arg) {
915
+ return func(transform(arg));
916
+ };
917
+ }
918
+
919
+ /* Built-in method references for those with the same name as other `lodash` methods. */
920
+ var nativeKeys = overArg(Object.keys, Object);
921
+
922
+ /** Used for built-in method references. */
923
+ var objectProto$5 = Object.prototype;
924
+
925
+ /** Used to check objects for own properties. */
926
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
927
+
928
+ /**
929
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
930
+ *
931
+ * @private
932
+ * @param {Object} object The object to query.
933
+ * @returns {Array} Returns the array of property names.
934
+ */
935
+ function baseKeys(object) {
936
+ if (!isPrototype(object)) {
937
+ return nativeKeys(object);
938
+ }
939
+ var result = [];
940
+ for (var key in Object(object)) {
941
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
942
+ result.push(key);
943
+ }
944
+ }
945
+ return result;
946
+ }
947
+
948
+ /**
949
+ * Creates an array of the own enumerable property names of `object`.
950
+ *
951
+ * **Note:** Non-object values are coerced to objects. See the
952
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
953
+ * for more details.
954
+ *
955
+ * @static
956
+ * @since 0.1.0
957
+ * @memberOf _
958
+ * @category Object
959
+ * @param {Object} object The object to query.
960
+ * @returns {Array} Returns the array of property names.
961
+ * @example
962
+ *
963
+ * function Foo() {
964
+ * this.a = 1;
965
+ * this.b = 2;
966
+ * }
967
+ *
968
+ * Foo.prototype.c = 3;
969
+ *
970
+ * _.keys(new Foo);
971
+ * // => ['a', 'b'] (iteration order is not guaranteed)
972
+ *
973
+ * _.keys('hi');
974
+ * // => ['0', '1']
975
+ */
976
+ function keys(object) {
977
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
978
+ }
979
+
980
+ /**
981
+ * This function is like
982
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
983
+ * except that it includes inherited enumerable properties.
984
+ *
985
+ * @private
986
+ * @param {Object} object The object to query.
987
+ * @returns {Array} Returns the array of property names.
988
+ */
989
+ function nativeKeysIn(object) {
990
+ var result = [];
991
+ if (object != null) {
992
+ for (var key in Object(object)) {
993
+ result.push(key);
994
+ }
995
+ }
996
+ return result;
997
+ }
998
+
999
+ /** Used for built-in method references. */
1000
+ var objectProto$4 = Object.prototype;
1001
+
1002
+ /** Used to check objects for own properties. */
1003
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1004
+
1005
+ /**
1006
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
1007
+ *
1008
+ * @private
1009
+ * @param {Object} object The object to query.
1010
+ * @returns {Array} Returns the array of property names.
1011
+ */
1012
+ function baseKeysIn(object) {
1013
+ if (!isObject(object)) {
1014
+ return nativeKeysIn(object);
1015
+ }
1016
+ var isProto = isPrototype(object),
1017
+ result = [];
1018
+
1019
+ for (var key in object) {
1020
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty$3.call(object, key)))) {
1021
+ result.push(key);
1022
+ }
1023
+ }
1024
+ return result;
1025
+ }
1026
+
1027
+ /**
1028
+ * Creates an array of the own and inherited enumerable property names of `object`.
1029
+ *
1030
+ * **Note:** Non-object values are coerced to objects.
1031
+ *
1032
+ * @static
1033
+ * @memberOf _
1034
+ * @since 3.0.0
1035
+ * @category Object
1036
+ * @param {Object} object The object to query.
1037
+ * @returns {Array} Returns the array of property names.
1038
+ * @example
1039
+ *
1040
+ * function Foo() {
1041
+ * this.a = 1;
1042
+ * this.b = 2;
1043
+ * }
1044
+ *
1045
+ * Foo.prototype.c = 3;
1046
+ *
1047
+ * _.keysIn(new Foo);
1048
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
1049
+ */
1050
+ function keysIn(object) {
1051
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
1052
+ }
1053
+
1054
+ /* Built-in method references that are verified to be native. */
1055
+ var nativeCreate = getNative(Object, 'create');
1056
+
1057
+ /**
1058
+ * Removes all key-value entries from the hash.
1059
+ *
1060
+ * @private
1061
+ * @name clear
1062
+ * @memberOf Hash
1063
+ */
1064
+ function hashClear() {
1065
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
1066
+ this.size = 0;
1067
+ }
1068
+
1069
+ /**
1070
+ * Removes `key` and its value from the hash.
1071
+ *
1072
+ * @private
1073
+ * @name delete
1074
+ * @memberOf Hash
1075
+ * @param {Object} hash The hash to modify.
1076
+ * @param {string} key The key of the value to remove.
1077
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1078
+ */
1079
+ function hashDelete(key) {
1080
+ var result = this.has(key) && delete this.__data__[key];
1081
+ this.size -= result ? 1 : 0;
1082
+ return result;
1083
+ }
1084
+
1085
+ /** Used to stand-in for `undefined` hash values. */
1086
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1087
+
1088
+ /** Used for built-in method references. */
1089
+ var objectProto$3 = Object.prototype;
1090
+
1091
+ /** Used to check objects for own properties. */
1092
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
1093
+
1094
+ /**
1095
+ * Gets the hash value for `key`.
1096
+ *
1097
+ * @private
1098
+ * @name get
1099
+ * @memberOf Hash
1100
+ * @param {string} key The key of the value to get.
1101
+ * @returns {*} Returns the entry value.
1102
+ */
1103
+ function hashGet(key) {
1104
+ var data = this.__data__;
1105
+ if (nativeCreate) {
1106
+ var result = data[key];
1107
+ return result === HASH_UNDEFINED$1 ? undefined : result;
1108
+ }
1109
+ return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
1110
+ }
1111
+
1112
+ /** Used for built-in method references. */
1113
+ var objectProto$2 = Object.prototype;
1114
+
1115
+ /** Used to check objects for own properties. */
1116
+ var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
1117
+
1118
+ /**
1119
+ * Checks if a hash value for `key` exists.
1120
+ *
1121
+ * @private
1122
+ * @name has
1123
+ * @memberOf Hash
1124
+ * @param {string} key The key of the entry to check.
1125
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1126
+ */
1127
+ function hashHas(key) {
1128
+ var data = this.__data__;
1129
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
1130
+ }
1131
+
1132
+ /** Used to stand-in for `undefined` hash values. */
1133
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1134
+
1135
+ /**
1136
+ * Sets the hash `key` to `value`.
1137
+ *
1138
+ * @private
1139
+ * @name set
1140
+ * @memberOf Hash
1141
+ * @param {string} key The key of the value to set.
1142
+ * @param {*} value The value to set.
1143
+ * @returns {Object} Returns the hash instance.
1144
+ */
1145
+ function hashSet(key, value) {
1146
+ var data = this.__data__;
1147
+ this.size += this.has(key) ? 0 : 1;
1148
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1149
+ return this;
1150
+ }
1151
+
1152
+ /**
1153
+ * Creates a hash object.
1154
+ *
1155
+ * @private
1156
+ * @constructor
1157
+ * @param {Array} [entries] The key-value pairs to cache.
1158
+ */
1159
+ function Hash(entries) {
1160
+ var index = -1,
1161
+ length = entries == null ? 0 : entries.length;
1162
+
1163
+ this.clear();
1164
+ while (++index < length) {
1165
+ var entry = entries[index];
1166
+ this.set(entry[0], entry[1]);
1167
+ }
1168
+ }
1169
+
1170
+ // Add methods to `Hash`.
1171
+ Hash.prototype.clear = hashClear;
1172
+ Hash.prototype['delete'] = hashDelete;
1173
+ Hash.prototype.get = hashGet;
1174
+ Hash.prototype.has = hashHas;
1175
+ Hash.prototype.set = hashSet;
1176
+
1177
+ /**
1178
+ * Removes all key-value entries from the list cache.
1179
+ *
1180
+ * @private
1181
+ * @name clear
1182
+ * @memberOf ListCache
1183
+ */
1184
+ function listCacheClear() {
1185
+ this.__data__ = [];
1186
+ this.size = 0;
1187
+ }
1188
+
1189
+ /**
1190
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1191
+ *
1192
+ * @private
1193
+ * @param {Array} array The array to inspect.
1194
+ * @param {*} key The key to search for.
1195
+ * @returns {number} Returns the index of the matched value, else `-1`.
1196
+ */
1197
+ function assocIndexOf(array, key) {
1198
+ var length = array.length;
1199
+ while (length--) {
1200
+ if (eq(array[length][0], key)) {
1201
+ return length;
1202
+ }
1203
+ }
1204
+ return -1;
1205
+ }
1206
+
1207
+ /** Used for built-in method references. */
1208
+ var arrayProto = Array.prototype;
1209
+
1210
+ /** Built-in value references. */
1211
+ var splice = arrayProto.splice;
1212
+
1213
+ /**
1214
+ * Removes `key` and its value from the list cache.
1215
+ *
1216
+ * @private
1217
+ * @name delete
1218
+ * @memberOf ListCache
1219
+ * @param {string} key The key of the value to remove.
1220
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1221
+ */
1222
+ function listCacheDelete(key) {
1223
+ var data = this.__data__,
1224
+ index = assocIndexOf(data, key);
1225
+
1226
+ if (index < 0) {
1227
+ return false;
1228
+ }
1229
+ var lastIndex = data.length - 1;
1230
+ if (index == lastIndex) {
1231
+ data.pop();
1232
+ } else {
1233
+ splice.call(data, index, 1);
1234
+ }
1235
+ --this.size;
1236
+ return true;
1237
+ }
1238
+
1239
+ /**
1240
+ * Gets the list cache value for `key`.
1241
+ *
1242
+ * @private
1243
+ * @name get
1244
+ * @memberOf ListCache
1245
+ * @param {string} key The key of the value to get.
1246
+ * @returns {*} Returns the entry value.
1247
+ */
1248
+ function listCacheGet(key) {
1249
+ var data = this.__data__,
1250
+ index = assocIndexOf(data, key);
1251
+
1252
+ return index < 0 ? undefined : data[index][1];
1253
+ }
1254
+
1255
+ /**
1256
+ * Checks if a list cache value for `key` exists.
1257
+ *
1258
+ * @private
1259
+ * @name has
1260
+ * @memberOf ListCache
1261
+ * @param {string} key The key of the entry to check.
1262
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1263
+ */
1264
+ function listCacheHas(key) {
1265
+ return assocIndexOf(this.__data__, key) > -1;
1266
+ }
1267
+
1268
+ /**
1269
+ * Sets the list cache `key` to `value`.
1270
+ *
1271
+ * @private
1272
+ * @name set
1273
+ * @memberOf ListCache
1274
+ * @param {string} key The key of the value to set.
1275
+ * @param {*} value The value to set.
1276
+ * @returns {Object} Returns the list cache instance.
1277
+ */
1278
+ function listCacheSet(key, value) {
1279
+ var data = this.__data__,
1280
+ index = assocIndexOf(data, key);
1281
+
1282
+ if (index < 0) {
1283
+ ++this.size;
1284
+ data.push([key, value]);
1285
+ } else {
1286
+ data[index][1] = value;
1287
+ }
1288
+ return this;
1289
+ }
1290
+
1291
+ /**
1292
+ * Creates an list cache object.
1293
+ *
1294
+ * @private
1295
+ * @constructor
1296
+ * @param {Array} [entries] The key-value pairs to cache.
1297
+ */
1298
+ function ListCache(entries) {
1299
+ var index = -1,
1300
+ length = entries == null ? 0 : entries.length;
1301
+
1302
+ this.clear();
1303
+ while (++index < length) {
1304
+ var entry = entries[index];
1305
+ this.set(entry[0], entry[1]);
1306
+ }
1307
+ }
1308
+
1309
+ // Add methods to `ListCache`.
1310
+ ListCache.prototype.clear = listCacheClear;
1311
+ ListCache.prototype['delete'] = listCacheDelete;
1312
+ ListCache.prototype.get = listCacheGet;
1313
+ ListCache.prototype.has = listCacheHas;
1314
+ ListCache.prototype.set = listCacheSet;
1315
+
1316
+ /* Built-in method references that are verified to be native. */
1317
+ var Map = getNative(root, 'Map');
1318
+
1319
+ /**
1320
+ * Removes all key-value entries from the map.
1321
+ *
1322
+ * @private
1323
+ * @name clear
1324
+ * @memberOf MapCache
1325
+ */
1326
+ function mapCacheClear() {
1327
+ this.size = 0;
1328
+ this.__data__ = {
1329
+ 'hash': new Hash,
1330
+ 'map': new (Map || ListCache),
1331
+ 'string': new Hash
1332
+ };
1333
+ }
1334
+
1335
+ /**
1336
+ * Checks if `value` is suitable for use as unique object key.
1337
+ *
1338
+ * @private
1339
+ * @param {*} value The value to check.
1340
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1341
+ */
1342
+ function isKeyable(value) {
1343
+ var type = typeof value;
1344
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1345
+ ? (value !== '__proto__')
1346
+ : (value === null);
1347
+ }
1348
+
1349
+ /**
1350
+ * Gets the data for `map`.
1351
+ *
1352
+ * @private
1353
+ * @param {Object} map The map to query.
1354
+ * @param {string} key The reference key.
1355
+ * @returns {*} Returns the map data.
1356
+ */
1357
+ function getMapData(map, key) {
1358
+ var data = map.__data__;
1359
+ return isKeyable(key)
1360
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1361
+ : data.map;
1362
+ }
1363
+
1364
+ /**
1365
+ * Removes `key` and its value from the map.
1366
+ *
1367
+ * @private
1368
+ * @name delete
1369
+ * @memberOf MapCache
1370
+ * @param {string} key The key of the value to remove.
1371
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1372
+ */
1373
+ function mapCacheDelete(key) {
1374
+ var result = getMapData(this, key)['delete'](key);
1375
+ this.size -= result ? 1 : 0;
1376
+ return result;
1377
+ }
1378
+
1379
+ /**
1380
+ * Gets the map value for `key`.
1381
+ *
1382
+ * @private
1383
+ * @name get
1384
+ * @memberOf MapCache
1385
+ * @param {string} key The key of the value to get.
1386
+ * @returns {*} Returns the entry value.
1387
+ */
1388
+ function mapCacheGet(key) {
1389
+ return getMapData(this, key).get(key);
1390
+ }
1391
+
1392
+ /**
1393
+ * Checks if a map value for `key` exists.
1394
+ *
1395
+ * @private
1396
+ * @name has
1397
+ * @memberOf MapCache
1398
+ * @param {string} key The key of the entry to check.
1399
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1400
+ */
1401
+ function mapCacheHas(key) {
1402
+ return getMapData(this, key).has(key);
1403
+ }
1404
+
1405
+ /**
1406
+ * Sets the map `key` to `value`.
1407
+ *
1408
+ * @private
1409
+ * @name set
1410
+ * @memberOf MapCache
1411
+ * @param {string} key The key of the value to set.
1412
+ * @param {*} value The value to set.
1413
+ * @returns {Object} Returns the map cache instance.
1414
+ */
1415
+ function mapCacheSet(key, value) {
1416
+ var data = getMapData(this, key),
1417
+ size = data.size;
1418
+
1419
+ data.set(key, value);
1420
+ this.size += data.size == size ? 0 : 1;
1421
+ return this;
1422
+ }
1423
+
1424
+ /**
1425
+ * Creates a map cache object to store key-value pairs.
1426
+ *
1427
+ * @private
1428
+ * @constructor
1429
+ * @param {Array} [entries] The key-value pairs to cache.
1430
+ */
1431
+ function MapCache(entries) {
1432
+ var index = -1,
1433
+ length = entries == null ? 0 : entries.length;
1434
+
1435
+ this.clear();
1436
+ while (++index < length) {
1437
+ var entry = entries[index];
1438
+ this.set(entry[0], entry[1]);
1439
+ }
1440
+ }
1441
+
1442
+ // Add methods to `MapCache`.
1443
+ MapCache.prototype.clear = mapCacheClear;
1444
+ MapCache.prototype['delete'] = mapCacheDelete;
1445
+ MapCache.prototype.get = mapCacheGet;
1446
+ MapCache.prototype.has = mapCacheHas;
1447
+ MapCache.prototype.set = mapCacheSet;
1448
+
1449
+ /**
1450
+ * Appends the elements of `values` to `array`.
1451
+ *
1452
+ * @private
1453
+ * @param {Array} array The array to modify.
1454
+ * @param {Array} values The values to append.
1455
+ * @returns {Array} Returns `array`.
1456
+ */
1457
+ function arrayPush(array, values) {
1458
+ var index = -1,
1459
+ length = values.length,
1460
+ offset = array.length;
1461
+
1462
+ while (++index < length) {
1463
+ array[offset + index] = values[index];
1464
+ }
1465
+ return array;
1466
+ }
1467
+
1468
+ /** Built-in value references. */
1469
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
1470
+
1471
+ /**
1472
+ * Removes all key-value entries from the stack.
1473
+ *
1474
+ * @private
1475
+ * @name clear
1476
+ * @memberOf Stack
1477
+ */
1478
+ function stackClear() {
1479
+ this.__data__ = new ListCache;
1480
+ this.size = 0;
1481
+ }
1482
+
1483
+ /**
1484
+ * Removes `key` and its value from the stack.
1485
+ *
1486
+ * @private
1487
+ * @name delete
1488
+ * @memberOf Stack
1489
+ * @param {string} key The key of the value to remove.
1490
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1491
+ */
1492
+ function stackDelete(key) {
1493
+ var data = this.__data__,
1494
+ result = data['delete'](key);
1495
+
1496
+ this.size = data.size;
1497
+ return result;
1498
+ }
1499
+
1500
+ /**
1501
+ * Gets the stack value for `key`.
1502
+ *
1503
+ * @private
1504
+ * @name get
1505
+ * @memberOf Stack
1506
+ * @param {string} key The key of the value to get.
1507
+ * @returns {*} Returns the entry value.
1508
+ */
1509
+ function stackGet(key) {
1510
+ return this.__data__.get(key);
1511
+ }
1512
+
1513
+ /**
1514
+ * Checks if a stack value for `key` exists.
1515
+ *
1516
+ * @private
1517
+ * @name has
1518
+ * @memberOf Stack
1519
+ * @param {string} key The key of the entry to check.
1520
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1521
+ */
1522
+ function stackHas(key) {
1523
+ return this.__data__.has(key);
1524
+ }
1525
+
1526
+ /** Used as the size to enable large array optimizations. */
1527
+ var LARGE_ARRAY_SIZE = 200;
1528
+
1529
+ /**
1530
+ * Sets the stack `key` to `value`.
1531
+ *
1532
+ * @private
1533
+ * @name set
1534
+ * @memberOf Stack
1535
+ * @param {string} key The key of the value to set.
1536
+ * @param {*} value The value to set.
1537
+ * @returns {Object} Returns the stack cache instance.
1538
+ */
1539
+ function stackSet(key, value) {
1540
+ var data = this.__data__;
1541
+ if (data instanceof ListCache) {
1542
+ var pairs = data.__data__;
1543
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1544
+ pairs.push([key, value]);
1545
+ this.size = ++data.size;
1546
+ return this;
1547
+ }
1548
+ data = this.__data__ = new MapCache(pairs);
1549
+ }
1550
+ data.set(key, value);
1551
+ this.size = data.size;
1552
+ return this;
1553
+ }
1554
+
1555
+ /**
1556
+ * Creates a stack cache object to store key-value pairs.
1557
+ *
1558
+ * @private
1559
+ * @constructor
1560
+ * @param {Array} [entries] The key-value pairs to cache.
1561
+ */
1562
+ function Stack(entries) {
1563
+ var data = this.__data__ = new ListCache(entries);
1564
+ this.size = data.size;
1565
+ }
1566
+
1567
+ // Add methods to `Stack`.
1568
+ Stack.prototype.clear = stackClear;
1569
+ Stack.prototype['delete'] = stackDelete;
1570
+ Stack.prototype.get = stackGet;
1571
+ Stack.prototype.has = stackHas;
1572
+ Stack.prototype.set = stackSet;
1573
+
1574
+ /**
1575
+ * The base implementation of `_.assign` without support for multiple sources
1576
+ * or `customizer` functions.
1577
+ *
1578
+ * @private
1579
+ * @param {Object} object The destination object.
1580
+ * @param {Object} source The source object.
1581
+ * @returns {Object} Returns `object`.
1582
+ */
1583
+ function baseAssign(object, source) {
1584
+ return object && copyObject(source, keys(source), object);
1585
+ }
1586
+
1587
+ /**
1588
+ * The base implementation of `_.assignIn` without support for multiple sources
1589
+ * or `customizer` functions.
1590
+ *
1591
+ * @private
1592
+ * @param {Object} object The destination object.
1593
+ * @param {Object} source The source object.
1594
+ * @returns {Object} Returns `object`.
1595
+ */
1596
+ function baseAssignIn(object, source) {
1597
+ return object && copyObject(source, keysIn(source), object);
1598
+ }
1599
+
1600
+ /** Detect free variable `exports`. */
1601
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
1602
+
1603
+ /** Detect free variable `module`. */
1604
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
1605
+
1606
+ /** Detect the popular CommonJS extension `module.exports`. */
1607
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1608
+
1609
+ /** Built-in value references. */
1610
+ var Buffer = moduleExports ? root.Buffer : undefined,
1611
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
1612
+
1613
+ /**
1614
+ * Creates a clone of `buffer`.
1615
+ *
1616
+ * @private
1617
+ * @param {Buffer} buffer The buffer to clone.
1618
+ * @param {boolean} [isDeep] Specify a deep clone.
1619
+ * @returns {Buffer} Returns the cloned buffer.
1620
+ */
1621
+ function cloneBuffer(buffer, isDeep) {
1622
+ if (isDeep) {
1623
+ return buffer.slice();
1624
+ }
1625
+ var length = buffer.length,
1626
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1627
+
1628
+ buffer.copy(result);
1629
+ return result;
1630
+ }
1631
+
1632
+ /**
1633
+ * A specialized version of `_.filter` for arrays without support for
1634
+ * iteratee shorthands.
1635
+ *
1636
+ * @private
1637
+ * @param {Array} [array] The array to iterate over.
1638
+ * @param {Function} predicate The function invoked per iteration.
1639
+ * @returns {Array} Returns the new filtered array.
1640
+ */
1641
+ function arrayFilter(array, predicate) {
1642
+ var index = -1,
1643
+ length = array == null ? 0 : array.length,
1644
+ resIndex = 0,
1645
+ result = [];
1646
+
1647
+ while (++index < length) {
1648
+ var value = array[index];
1649
+ if (predicate(value, index, array)) {
1650
+ result[resIndex++] = value;
1651
+ }
1652
+ }
1653
+ return result;
1654
+ }
1655
+
1656
+ /**
1657
+ * This method returns a new empty array.
1658
+ *
1659
+ * @static
1660
+ * @memberOf _
1661
+ * @since 4.13.0
1662
+ * @category Util
1663
+ * @returns {Array} Returns the new empty array.
1664
+ * @example
1665
+ *
1666
+ * var arrays = _.times(2, _.stubArray);
1667
+ *
1668
+ * console.log(arrays);
1669
+ * // => [[], []]
1670
+ *
1671
+ * console.log(arrays[0] === arrays[1]);
1672
+ * // => false
1673
+ */
1674
+ function stubArray() {
1675
+ return [];
1676
+ }
1677
+
1678
+ /** Used for built-in method references. */
1679
+ var objectProto$1 = Object.prototype;
1680
+
1681
+ /** Built-in value references. */
1682
+ var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
1683
+
1684
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1685
+ var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
1686
+
1687
+ /**
1688
+ * Creates an array of the own enumerable symbols of `object`.
1689
+ *
1690
+ * @private
1691
+ * @param {Object} object The object to query.
1692
+ * @returns {Array} Returns the array of symbols.
1693
+ */
1694
+ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
1695
+ if (object == null) {
1696
+ return [];
1697
+ }
1698
+ object = Object(object);
1699
+ return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
1700
+ return propertyIsEnumerable.call(object, symbol);
1701
+ });
1702
+ };
1703
+
1704
+ /**
1705
+ * Copies own symbols of `source` to `object`.
1706
+ *
1707
+ * @private
1708
+ * @param {Object} source The object to copy symbols from.
1709
+ * @param {Object} [object={}] The object to copy symbols to.
1710
+ * @returns {Object} Returns `object`.
1711
+ */
1712
+ function copySymbols(source, object) {
1713
+ return copyObject(source, getSymbols(source), object);
1714
+ }
1715
+
1716
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1717
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1718
+
1719
+ /**
1720
+ * Creates an array of the own and inherited enumerable symbols of `object`.
1721
+ *
1722
+ * @private
1723
+ * @param {Object} object The object to query.
1724
+ * @returns {Array} Returns the array of symbols.
1725
+ */
1726
+ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
1727
+ var result = [];
1728
+ while (object) {
1729
+ arrayPush(result, getSymbols(object));
1730
+ object = getPrototype(object);
1731
+ }
1732
+ return result;
1733
+ };
1734
+
1735
+ /**
1736
+ * Copies own and inherited symbols of `source` to `object`.
1737
+ *
1738
+ * @private
1739
+ * @param {Object} source The object to copy symbols from.
1740
+ * @param {Object} [object={}] The object to copy symbols to.
1741
+ * @returns {Object} Returns `object`.
1742
+ */
1743
+ function copySymbolsIn(source, object) {
1744
+ return copyObject(source, getSymbolsIn(source), object);
1745
+ }
1746
+
1747
+ /**
1748
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1749
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1750
+ * symbols of `object`.
1751
+ *
1752
+ * @private
1753
+ * @param {Object} object The object to query.
1754
+ * @param {Function} keysFunc The function to get the keys of `object`.
1755
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1756
+ * @returns {Array} Returns the array of property names and symbols.
1757
+ */
1758
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1759
+ var result = keysFunc(object);
1760
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
1761
+ }
1762
+
1763
+ /**
1764
+ * Creates an array of own enumerable property names and symbols of `object`.
1765
+ *
1766
+ * @private
1767
+ * @param {Object} object The object to query.
1768
+ * @returns {Array} Returns the array of property names and symbols.
1769
+ */
1770
+ function getAllKeys(object) {
1771
+ return baseGetAllKeys(object, keys, getSymbols);
1772
+ }
1773
+
1774
+ /**
1775
+ * Creates an array of own and inherited enumerable property names and
1776
+ * symbols of `object`.
1777
+ *
1778
+ * @private
1779
+ * @param {Object} object The object to query.
1780
+ * @returns {Array} Returns the array of property names and symbols.
1781
+ */
1782
+ function getAllKeysIn(object) {
1783
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
1784
+ }
1785
+
1786
+ /* Built-in method references that are verified to be native. */
1787
+ var DataView = getNative(root, 'DataView');
1788
+
1789
+ /* Built-in method references that are verified to be native. */
1790
+ var Promise$1 = getNative(root, 'Promise');
1791
+
1792
+ /* Built-in method references that are verified to be native. */
1793
+ var Set = getNative(root, 'Set');
1794
+
1795
+ /** `Object#toString` result references. */
1796
+ var mapTag$3 = '[object Map]',
1797
+ objectTag$1 = '[object Object]',
1798
+ promiseTag = '[object Promise]',
1799
+ setTag$3 = '[object Set]',
1800
+ weakMapTag$1 = '[object WeakMap]';
1801
+
1802
+ var dataViewTag$2 = '[object DataView]';
1803
+
1804
+ /** Used to detect maps, sets, and weakmaps. */
1805
+ var dataViewCtorString = toSource(DataView),
1806
+ mapCtorString = toSource(Map),
1807
+ promiseCtorString = toSource(Promise$1),
1808
+ setCtorString = toSource(Set),
1809
+ weakMapCtorString = toSource(WeakMap);
1810
+
1811
+ /**
1812
+ * Gets the `toStringTag` of `value`.
1813
+ *
1814
+ * @private
1815
+ * @param {*} value The value to query.
1816
+ * @returns {string} Returns the `toStringTag`.
1817
+ */
1818
+ var getTag = baseGetTag;
1819
+
1820
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1821
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
1822
+ (Map && getTag(new Map) != mapTag$3) ||
1823
+ (Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||
1824
+ (Set && getTag(new Set) != setTag$3) ||
1825
+ (WeakMap && getTag(new WeakMap) != weakMapTag$1)) {
1826
+ getTag = function(value) {
1827
+ var result = baseGetTag(value),
1828
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
1829
+ ctorString = Ctor ? toSource(Ctor) : '';
1830
+
1831
+ if (ctorString) {
1832
+ switch (ctorString) {
1833
+ case dataViewCtorString: return dataViewTag$2;
1834
+ case mapCtorString: return mapTag$3;
1835
+ case promiseCtorString: return promiseTag;
1836
+ case setCtorString: return setTag$3;
1837
+ case weakMapCtorString: return weakMapTag$1;
1838
+ }
1839
+ }
1840
+ return result;
1841
+ };
1842
+ }
1843
+
1844
+ /** Used for built-in method references. */
1845
+ var objectProto = Object.prototype;
1846
+
1847
+ /** Used to check objects for own properties. */
1848
+ var hasOwnProperty = objectProto.hasOwnProperty;
1849
+
1850
+ /**
1851
+ * Initializes an array clone.
1852
+ *
1853
+ * @private
1854
+ * @param {Array} array The array to clone.
1855
+ * @returns {Array} Returns the initialized clone.
1856
+ */
1857
+ function initCloneArray(array) {
1858
+ var length = array.length,
1859
+ result = new array.constructor(length);
1860
+
1861
+ // Add properties assigned by `RegExp#exec`.
1862
+ if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
1863
+ result.index = array.index;
1864
+ result.input = array.input;
1865
+ }
1866
+ return result;
1867
+ }
1868
+
1869
+ /** Built-in value references. */
1870
+ var Uint8Array = root.Uint8Array;
1871
+
1872
+ /**
1873
+ * Creates a clone of `arrayBuffer`.
1874
+ *
1875
+ * @private
1876
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1877
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
1878
+ */
1879
+ function cloneArrayBuffer(arrayBuffer) {
1880
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1881
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1882
+ return result;
1883
+ }
1884
+
1885
+ /**
1886
+ * Creates a clone of `dataView`.
1887
+ *
1888
+ * @private
1889
+ * @param {Object} dataView The data view to clone.
1890
+ * @param {boolean} [isDeep] Specify a deep clone.
1891
+ * @returns {Object} Returns the cloned data view.
1892
+ */
1893
+ function cloneDataView(dataView, isDeep) {
1894
+ var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
1895
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1896
+ }
1897
+
1898
+ /** Used to match `RegExp` flags from their coerced string values. */
1899
+ var reFlags = /\w*$/;
1900
+
1901
+ /**
1902
+ * Creates a clone of `regexp`.
1903
+ *
1904
+ * @private
1905
+ * @param {Object} regexp The regexp to clone.
1906
+ * @returns {Object} Returns the cloned regexp.
1907
+ */
1908
+ function cloneRegExp(regexp) {
1909
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
1910
+ result.lastIndex = regexp.lastIndex;
1911
+ return result;
1912
+ }
1913
+
1914
+ /** Used to convert symbols to primitives and strings. */
1915
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
1916
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
1917
+
1918
+ /**
1919
+ * Creates a clone of the `symbol` object.
1920
+ *
1921
+ * @private
1922
+ * @param {Object} symbol The symbol object to clone.
1923
+ * @returns {Object} Returns the cloned symbol object.
1924
+ */
1925
+ function cloneSymbol(symbol) {
1926
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1927
+ }
1928
+
1929
+ /**
1930
+ * Creates a clone of `typedArray`.
1931
+ *
1932
+ * @private
1933
+ * @param {Object} typedArray The typed array to clone.
1934
+ * @param {boolean} [isDeep] Specify a deep clone.
1935
+ * @returns {Object} Returns the cloned typed array.
1936
+ */
1937
+ function cloneTypedArray(typedArray, isDeep) {
1938
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1939
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1940
+ }
1941
+
1942
+ /** `Object#toString` result references. */
1943
+ var boolTag$1 = '[object Boolean]',
1944
+ dateTag$1 = '[object Date]',
1945
+ mapTag$2 = '[object Map]',
1946
+ numberTag$1 = '[object Number]',
1947
+ regexpTag$1 = '[object RegExp]',
1948
+ setTag$2 = '[object Set]',
1949
+ stringTag$1 = '[object String]',
1950
+ symbolTag$1 = '[object Symbol]';
1951
+
1952
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
1953
+ dataViewTag$1 = '[object DataView]',
1954
+ float32Tag$1 = '[object Float32Array]',
1955
+ float64Tag$1 = '[object Float64Array]',
1956
+ int8Tag$1 = '[object Int8Array]',
1957
+ int16Tag$1 = '[object Int16Array]',
1958
+ int32Tag$1 = '[object Int32Array]',
1959
+ uint8Tag$1 = '[object Uint8Array]',
1960
+ uint8ClampedTag$1 = '[object Uint8ClampedArray]',
1961
+ uint16Tag$1 = '[object Uint16Array]',
1962
+ uint32Tag$1 = '[object Uint32Array]';
1963
+
1964
+ /**
1965
+ * Initializes an object clone based on its `toStringTag`.
1966
+ *
1967
+ * **Note:** This function only supports cloning values with tags of
1968
+ * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
1969
+ *
1970
+ * @private
1971
+ * @param {Object} object The object to clone.
1972
+ * @param {string} tag The `toStringTag` of the object to clone.
1973
+ * @param {boolean} [isDeep] Specify a deep clone.
1974
+ * @returns {Object} Returns the initialized clone.
1975
+ */
1976
+ function initCloneByTag(object, tag, isDeep) {
1977
+ var Ctor = object.constructor;
1978
+ switch (tag) {
1979
+ case arrayBufferTag$1:
1980
+ return cloneArrayBuffer(object);
1981
+
1982
+ case boolTag$1:
1983
+ case dateTag$1:
1984
+ return new Ctor(+object);
1985
+
1986
+ case dataViewTag$1:
1987
+ return cloneDataView(object, isDeep);
1988
+
1989
+ case float32Tag$1: case float64Tag$1:
1990
+ case int8Tag$1: case int16Tag$1: case int32Tag$1:
1991
+ case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
1992
+ return cloneTypedArray(object, isDeep);
1993
+
1994
+ case mapTag$2:
1995
+ return new Ctor;
1996
+
1997
+ case numberTag$1:
1998
+ case stringTag$1:
1999
+ return new Ctor(object);
2000
+
2001
+ case regexpTag$1:
2002
+ return cloneRegExp(object);
2003
+
2004
+ case setTag$2:
2005
+ return new Ctor;
2006
+
2007
+ case symbolTag$1:
2008
+ return cloneSymbol(object);
2009
+ }
2010
+ }
2011
+
2012
+ /**
2013
+ * Initializes an object clone.
2014
+ *
2015
+ * @private
2016
+ * @param {Object} object The object to clone.
2017
+ * @returns {Object} Returns the initialized clone.
2018
+ */
2019
+ function initCloneObject(object) {
2020
+ return (typeof object.constructor == 'function' && !isPrototype(object))
2021
+ ? baseCreate(getPrototype(object))
2022
+ : {};
2023
+ }
2024
+
2025
+ /** `Object#toString` result references. */
2026
+ var mapTag$1 = '[object Map]';
2027
+
2028
+ /**
2029
+ * The base implementation of `_.isMap` without Node.js optimizations.
2030
+ *
2031
+ * @private
2032
+ * @param {*} value The value to check.
2033
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
2034
+ */
2035
+ function baseIsMap(value) {
2036
+ return isObjectLike(value) && getTag(value) == mapTag$1;
2037
+ }
2038
+
2039
+ /* Node.js helper references. */
2040
+ var nodeIsMap = nodeUtil && nodeUtil.isMap;
2041
+
2042
+ /**
2043
+ * Checks if `value` is classified as a `Map` object.
2044
+ *
2045
+ * @static
2046
+ * @memberOf _
2047
+ * @since 4.3.0
2048
+ * @category Lang
2049
+ * @param {*} value The value to check.
2050
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
2051
+ * @example
2052
+ *
2053
+ * _.isMap(new Map);
2054
+ * // => true
2055
+ *
2056
+ * _.isMap(new WeakMap);
2057
+ * // => false
2058
+ */
2059
+ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
2060
+
2061
+ /** `Object#toString` result references. */
2062
+ var setTag$1 = '[object Set]';
2063
+
2064
+ /**
2065
+ * The base implementation of `_.isSet` without Node.js optimizations.
2066
+ *
2067
+ * @private
2068
+ * @param {*} value The value to check.
2069
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
2070
+ */
2071
+ function baseIsSet(value) {
2072
+ return isObjectLike(value) && getTag(value) == setTag$1;
2073
+ }
2074
+
2075
+ /* Node.js helper references. */
2076
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
2077
+
2078
+ /**
2079
+ * Checks if `value` is classified as a `Set` object.
2080
+ *
2081
+ * @static
2082
+ * @memberOf _
2083
+ * @since 4.3.0
2084
+ * @category Lang
2085
+ * @param {*} value The value to check.
2086
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
2087
+ * @example
2088
+ *
2089
+ * _.isSet(new Set);
2090
+ * // => true
2091
+ *
2092
+ * _.isSet(new WeakSet);
2093
+ * // => false
2094
+ */
2095
+ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
2096
+
2097
+ /** Used to compose bitmasks for cloning. */
2098
+ var CLONE_DEEP_FLAG$1 = 1,
2099
+ CLONE_FLAT_FLAG = 2,
2100
+ CLONE_SYMBOLS_FLAG$1 = 4;
2101
+
2102
+ /** `Object#toString` result references. */
2103
+ var argsTag = '[object Arguments]',
2104
+ arrayTag = '[object Array]',
2105
+ boolTag = '[object Boolean]',
2106
+ dateTag = '[object Date]',
2107
+ errorTag = '[object Error]',
2108
+ funcTag = '[object Function]',
2109
+ genTag = '[object GeneratorFunction]',
2110
+ mapTag = '[object Map]',
2111
+ numberTag = '[object Number]',
2112
+ objectTag = '[object Object]',
2113
+ regexpTag = '[object RegExp]',
2114
+ setTag = '[object Set]',
2115
+ stringTag = '[object String]',
2116
+ symbolTag = '[object Symbol]',
2117
+ weakMapTag = '[object WeakMap]';
2118
+
2119
+ var arrayBufferTag = '[object ArrayBuffer]',
2120
+ dataViewTag = '[object DataView]',
2121
+ float32Tag = '[object Float32Array]',
2122
+ float64Tag = '[object Float64Array]',
2123
+ int8Tag = '[object Int8Array]',
2124
+ int16Tag = '[object Int16Array]',
2125
+ int32Tag = '[object Int32Array]',
2126
+ uint8Tag = '[object Uint8Array]',
2127
+ uint8ClampedTag = '[object Uint8ClampedArray]',
2128
+ uint16Tag = '[object Uint16Array]',
2129
+ uint32Tag = '[object Uint32Array]';
2130
+
2131
+ /** Used to identify `toStringTag` values supported by `_.clone`. */
2132
+ var cloneableTags = {};
2133
+ cloneableTags[argsTag] = cloneableTags[arrayTag] =
2134
+ cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
2135
+ cloneableTags[boolTag] = cloneableTags[dateTag] =
2136
+ cloneableTags[float32Tag] = cloneableTags[float64Tag] =
2137
+ cloneableTags[int8Tag] = cloneableTags[int16Tag] =
2138
+ cloneableTags[int32Tag] = cloneableTags[mapTag] =
2139
+ cloneableTags[numberTag] = cloneableTags[objectTag] =
2140
+ cloneableTags[regexpTag] = cloneableTags[setTag] =
2141
+ cloneableTags[stringTag] = cloneableTags[symbolTag] =
2142
+ cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
2143
+ cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
2144
+ cloneableTags[errorTag] = cloneableTags[funcTag] =
2145
+ cloneableTags[weakMapTag] = false;
2146
+
2147
+ /**
2148
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
2149
+ * traversed objects.
2150
+ *
2151
+ * @private
2152
+ * @param {*} value The value to clone.
2153
+ * @param {boolean} bitmask The bitmask flags.
2154
+ * 1 - Deep clone
2155
+ * 2 - Flatten inherited properties
2156
+ * 4 - Clone symbols
2157
+ * @param {Function} [customizer] The function to customize cloning.
2158
+ * @param {string} [key] The key of `value`.
2159
+ * @param {Object} [object] The parent object of `value`.
2160
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
2161
+ * @returns {*} Returns the cloned value.
2162
+ */
2163
+ function baseClone(value, bitmask, customizer, key, object, stack) {
2164
+ var result,
2165
+ isDeep = bitmask & CLONE_DEEP_FLAG$1,
2166
+ isFlat = bitmask & CLONE_FLAT_FLAG,
2167
+ isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
2168
+ if (result !== undefined) {
2169
+ return result;
2170
+ }
2171
+ if (!isObject(value)) {
2172
+ return value;
2173
+ }
2174
+ var isArr = isArray(value);
2175
+ if (isArr) {
2176
+ result = initCloneArray(value);
2177
+ if (!isDeep) {
2178
+ return copyArray(value, result);
2179
+ }
2180
+ } else {
2181
+ var tag = getTag(value),
2182
+ isFunc = tag == funcTag || tag == genTag;
2183
+
2184
+ if (isBuffer(value)) {
2185
+ return cloneBuffer(value, isDeep);
2186
+ }
2187
+ if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
2188
+ result = (isFlat || isFunc) ? {} : initCloneObject(value);
2189
+ if (!isDeep) {
2190
+ return isFlat
2191
+ ? copySymbolsIn(value, baseAssignIn(result, value))
2192
+ : copySymbols(value, baseAssign(result, value));
2193
+ }
2194
+ } else {
2195
+ if (!cloneableTags[tag]) {
2196
+ return object ? value : {};
2197
+ }
2198
+ result = initCloneByTag(value, tag, isDeep);
2199
+ }
2200
+ }
2201
+ // Check for circular references and return its corresponding clone.
2202
+ stack || (stack = new Stack);
2203
+ var stacked = stack.get(value);
2204
+ if (stacked) {
2205
+ return stacked;
2206
+ }
2207
+ stack.set(value, result);
2208
+
2209
+ if (isSet(value)) {
2210
+ value.forEach(function(subValue) {
2211
+ result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
2212
+ });
2213
+ } else if (isMap(value)) {
2214
+ value.forEach(function(subValue, key) {
2215
+ result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
2216
+ });
2217
+ }
2218
+
2219
+ var keysFunc = isFull
2220
+ ? (isFlat ? getAllKeysIn : getAllKeys)
2221
+ : (isFlat ? keysIn : keys);
2222
+
2223
+ var props = isArr ? undefined : keysFunc(value);
2224
+ arrayEach(props || value, function(subValue, key) {
2225
+ if (props) {
2226
+ key = subValue;
2227
+ subValue = value[key];
2228
+ }
2229
+ // Recursively populate clone (susceptible to call stack limits).
2230
+ assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
2231
+ });
2232
+ return result;
2233
+ }
2234
+
2235
+ /** Used to compose bitmasks for cloning. */
2236
+ var CLONE_DEEP_FLAG = 1,
2237
+ CLONE_SYMBOLS_FLAG = 4;
2238
+
2239
+ /**
2240
+ * This method is like `_.clone` except that it recursively clones `value`.
2241
+ *
2242
+ * @static
2243
+ * @memberOf _
2244
+ * @since 1.0.0
2245
+ * @category Lang
2246
+ * @param {*} value The value to recursively clone.
2247
+ * @returns {*} Returns the deep cloned value.
2248
+ * @see _.clone
2249
+ * @example
2250
+ *
2251
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
2252
+ *
2253
+ * var deep = _.cloneDeep(objects);
2254
+ * console.log(deep[0] === objects[0]);
2255
+ * // => false
2256
+ */
2257
+ function cloneDeep(value) {
2258
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
2259
+ }
6
2260
 
7
2261
  const _hoisted_1$2 = ["innerHTML"];
8
2262
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
@@ -55,13 +2309,13 @@
55
2309
  if (res) {
56
2310
  if (res.ret === 0) {
57
2311
  design.tMagicMessage.success("保存成功");
58
- props.editState[index] = void 0;
2312
+ props.editState[index] = undefined;
59
2313
  emit("after-action");
60
2314
  } else {
61
2315
  design.tMagicMessage.error(res.msg || "保存失败");
62
2316
  }
63
2317
  } else {
64
- props.editState[index] = void 0;
2318
+ props.editState[index] = undefined;
65
2319
  emit("after-action");
66
2320
  }
67
2321
  };
@@ -72,35 +2326,43 @@
72
2326
  fixed: _ctx.config.fixed
73
2327
  }, {
74
2328
  default: vue.withCtx((scope) => [
75
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.actions, (action, actionIndex) => {
76
- return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
77
- placement: action.tooltipPlacement || "top",
78
- key: actionIndex,
79
- disabled: !Boolean(action.tooltip),
80
- content: action.tooltip
81
- }, {
82
- default: vue.withCtx(() => [
83
- vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
84
- class: "action-btn",
85
- link: "",
86
- size: "small",
87
- type: action.buttonType || "primary",
88
- icon: action.icon,
89
- onClick: ($event) => actionHandler(action, scope.row, scope.$index)
90
- }, {
91
- default: vue.withCtx(() => [
92
- vue.createElementVNode("span", {
93
- innerHTML: formatter(action.text, scope.row)
94
- }, null, 8, _hoisted_1$2)
95
- ]),
96
- _: 2
97
- }, 1032, ["type", "icon", "onClick"]), [
98
- [vue.vShow, display(action.display, scope.row) && !_ctx.editState[scope.$index]]
99
- ])
100
- ]),
101
- _: 2
102
- }, 1032, ["placement", "disabled", "content"]);
103
- }), 128)),
2329
+ (vue.openBlock(true), vue.createElementBlock(
2330
+ vue.Fragment,
2331
+ null,
2332
+ vue.renderList(_ctx.config.actions, (action, actionIndex) => {
2333
+ return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
2334
+ placement: action.tooltipPlacement || "top",
2335
+ key: actionIndex,
2336
+ disabled: !Boolean(action.tooltip),
2337
+ content: action.tooltip
2338
+ }, {
2339
+ default: vue.withCtx(() => [
2340
+ vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
2341
+ class: "action-btn",
2342
+ link: "",
2343
+ size: "small",
2344
+ type: action.buttonType || "primary",
2345
+ icon: action.icon,
2346
+ onClick: ($event) => actionHandler(action, scope.row, scope.$index)
2347
+ }, {
2348
+ default: vue.withCtx(() => [
2349
+ vue.createElementVNode("span", {
2350
+ innerHTML: formatter(action.text, scope.row)
2351
+ }, null, 8, _hoisted_1$2)
2352
+ ]),
2353
+ _: 2
2354
+ /* DYNAMIC */
2355
+ }, 1032, ["type", "icon", "onClick"]), [
2356
+ [vue.vShow, display(action.display, scope.row) && !_ctx.editState[scope.$index]]
2357
+ ])
2358
+ ]),
2359
+ _: 2
2360
+ /* DYNAMIC */
2361
+ }, 1032, ["placement", "disabled", "content"]);
2362
+ }),
2363
+ 128
2364
+ /* KEYED_FRAGMENT */
2365
+ )),
104
2366
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
105
2367
  class: "action-btn",
106
2368
  link: "",
@@ -112,6 +2374,7 @@
112
2374
  vue.createTextVNode("保存")
113
2375
  ])),
114
2376
  _: 2
2377
+ /* DYNAMIC */
115
2378
  }, 1032, ["onClick"]), [
116
2379
  [vue.vShow, _ctx.editState[scope.$index]]
117
2380
  ]),
@@ -120,17 +2383,19 @@
120
2383
  link: "",
121
2384
  type: "primary",
122
2385
  size: "small",
123
- onClick: ($event) => _ctx.editState[scope.$index] = void 0
2386
+ onClick: ($event) => _ctx.editState[scope.$index] = undefined
124
2387
  }, {
125
2388
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
126
2389
  vue.createTextVNode("取消")
127
2390
  ])),
128
2391
  _: 2
2392
+ /* DYNAMIC */
129
2393
  }, 1032, ["onClick"]), [
130
2394
  [vue.vShow, _ctx.editState[scope.$index]]
131
2395
  ])
132
2396
  ]),
133
2397
  _: 1
2398
+ /* STABLE */
134
2399
  }, 8, ["label", "width", "fixed"]);
135
2400
  };
136
2401
  }
@@ -168,9 +2433,16 @@
168
2433
  prop: _ctx.config.prop
169
2434
  }, {
170
2435
  default: vue.withCtx((scope) => [
171
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.config.component), vue.mergeProps(componentProps(scope.row, scope.$index), vue.toHandlers(componentListeners(scope.row, scope.$index))), null, 16))
2436
+ (vue.openBlock(), vue.createBlock(
2437
+ vue.resolveDynamicComponent(_ctx.config.component),
2438
+ vue.mergeProps(componentProps(scope.row, scope.$index), vue.toHandlers(componentListeners(scope.row, scope.$index))),
2439
+ null,
2440
+ 16
2441
+ /* FULL_PROPS */
2442
+ ))
172
2443
  ]),
173
2444
  _: 1
2445
+ /* STABLE */
174
2446
  }, 8, ["label", "width", "fixed", "sortable", "prop"]);
175
2447
  };
176
2448
  }
@@ -194,31 +2466,47 @@
194
2466
  return props.config.props || {};
195
2467
  };
196
2468
  return (_ctx, _cache) => {
197
- return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
198
- type: "expand",
199
- width: _ctx.config.width,
200
- fixed: _ctx.config.fixed
201
- }, {
202
- default: vue.withCtx((scope) => [
203
- _ctx.config.table ? (vue.openBlock(), vue.createBlock(_sfc_main, {
204
- key: 0,
205
- "show-header": false,
206
- columns: _ctx.config.table,
207
- data: _ctx.config.prop && scope.row[_ctx.config.prop] || []
208
- }, null, 8, ["columns", "data"])) : vue.createCommentVNode("", true),
209
- _ctx.config.form ? (vue.openBlock(), vue.createBlock(vue.unref(form.MForm), {
210
- key: 1,
211
- config: _ctx.config.form,
212
- "init-values": _ctx.config.values || _ctx.config.prop && scope.row[_ctx.config.prop] || {}
213
- }, null, 8, ["config", "init-values"])) : vue.createCommentVNode("", true),
214
- _ctx.config.expandContent ? (vue.openBlock(), vue.createElementBlock("div", {
215
- key: 2,
216
- innerHTML: _ctx.config.expandContent(scope.row, _ctx.config.prop)
217
- }, null, 8, _hoisted_1$1)) : vue.createCommentVNode("", true),
218
- _ctx.config.component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.config.component), vue.normalizeProps(vue.mergeProps({ key: 3 }, componentProps(scope.row))), null, 16)) : vue.createCommentVNode("", true)
219
- ]),
220
- _: 1
221
- }, 8, ["width", "fixed"]);
2469
+ return vue.openBlock(), vue.createElementBlock(
2470
+ vue.Fragment,
2471
+ null,
2472
+ [
2473
+ vue.createCommentVNode(" @ts-nocheck "),
2474
+ vue.createVNode(vue.unref(design.TMagicTableColumn), {
2475
+ type: "expand",
2476
+ width: _ctx.config.width,
2477
+ fixed: _ctx.config.fixed
2478
+ }, {
2479
+ default: vue.withCtx((scope) => [
2480
+ _ctx.config.table ? (vue.openBlock(), vue.createBlock(_sfc_main, {
2481
+ key: 0,
2482
+ "show-header": false,
2483
+ columns: _ctx.config.table,
2484
+ data: _ctx.config.prop && scope.row[_ctx.config.prop] || []
2485
+ }, null, 8, ["columns", "data"])) : vue.createCommentVNode("v-if", true),
2486
+ _ctx.config.form ? (vue.openBlock(), vue.createBlock(vue.unref(form.MForm), {
2487
+ key: 1,
2488
+ config: _ctx.config.form,
2489
+ "init-values": _ctx.config.values || _ctx.config.prop && scope.row[_ctx.config.prop] || {}
2490
+ }, null, 8, ["config", "init-values"])) : vue.createCommentVNode("v-if", true),
2491
+ _ctx.config.expandContent ? (vue.openBlock(), vue.createElementBlock("div", {
2492
+ key: 2,
2493
+ innerHTML: _ctx.config.expandContent(scope.row, _ctx.config.prop)
2494
+ }, null, 8, _hoisted_1$1)) : vue.createCommentVNode("v-if", true),
2495
+ _ctx.config.component ? (vue.openBlock(), vue.createBlock(
2496
+ vue.resolveDynamicComponent(_ctx.config.component),
2497
+ vue.normalizeProps(vue.mergeProps({ key: 3 }, componentProps(scope.row))),
2498
+ null,
2499
+ 16
2500
+ /* FULL_PROPS */
2501
+ )) : vue.createCommentVNode("v-if", true)
2502
+ ]),
2503
+ _: 1
2504
+ /* STABLE */
2505
+ }, 8, ["width", "fixed"])
2506
+ ],
2507
+ 2112
2508
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2509
+ );
222
2510
  };
223
2511
  }
224
2512
  });
@@ -250,43 +2538,65 @@
250
2538
  },
251
2539
  setup(__props) {
252
2540
  return (_ctx, _cache) => {
253
- return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
254
- label: _ctx.config.label,
255
- width: _ctx.config.width,
256
- fixed: _ctx.config.fixed
257
- }, {
258
- default: vue.withCtx((scope) => [
259
- _ctx.config.popover ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
260
- key: 0,
261
- placement: _ctx.config.popover.placement,
262
- width: _ctx.config.popover.width,
263
- trigger: _ctx.config.popover.trigger,
264
- "destroy-on-close": _ctx.config.popover.destroyOnClose ?? true
2541
+ return vue.openBlock(), vue.createElementBlock(
2542
+ vue.Fragment,
2543
+ null,
2544
+ [
2545
+ vue.createCommentVNode(" @ts-nocheck "),
2546
+ vue.createVNode(vue.unref(design.TMagicTableColumn), {
2547
+ label: _ctx.config.label,
2548
+ width: _ctx.config.width,
2549
+ fixed: _ctx.config.fixed
265
2550
  }, {
266
- reference: vue.withCtx(() => [
267
- vue.createVNode(vue.unref(design.TMagicButton), {
268
- link: "",
269
- type: "primary"
2551
+ default: vue.withCtx((scope) => [
2552
+ _ctx.config.popover ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
2553
+ key: 0,
2554
+ placement: _ctx.config.popover.placement,
2555
+ width: _ctx.config.popover.width,
2556
+ trigger: _ctx.config.popover.trigger,
2557
+ "destroy-on-close": _ctx.config.popover.destroyOnClose ?? true
270
2558
  }, {
2559
+ reference: vue.withCtx(() => [
2560
+ vue.createVNode(
2561
+ vue.unref(design.TMagicButton),
2562
+ {
2563
+ link: "",
2564
+ type: "primary"
2565
+ },
2566
+ {
2567
+ default: vue.withCtx(() => [
2568
+ vue.createTextVNode(
2569
+ vue.toDisplayString(_ctx.config.text || vue.unref(formatter)(_ctx.config, scope.row)),
2570
+ 1
2571
+ /* TEXT */
2572
+ )
2573
+ ]),
2574
+ _: 2
2575
+ /* DYNAMIC */
2576
+ },
2577
+ 1024
2578
+ /* DYNAMIC_SLOTS */
2579
+ )
2580
+ ]),
271
2581
  default: vue.withCtx(() => [
272
- vue.createTextVNode(vue.toDisplayString(_ctx.config.text || vue.unref(formatter)(_ctx.config, scope.row)), 1)
2582
+ _ctx.config.popover.tableEmbed ? (vue.openBlock(), vue.createBlock(_sfc_main, {
2583
+ key: 0,
2584
+ "show-header": _ctx.config.showHeader,
2585
+ columns: _ctx.config.table,
2586
+ data: _ctx.config.prop && scope.row[_ctx.config.prop] || []
2587
+ }, null, 8, ["show-header", "columns", "data"])) : vue.createCommentVNode("v-if", true)
273
2588
  ]),
274
2589
  _: 2
275
- }, 1024)
276
- ]),
277
- default: vue.withCtx(() => [
278
- _ctx.config.popover.tableEmbed ? (vue.openBlock(), vue.createBlock(_sfc_main, {
279
- key: 0,
280
- "show-header": _ctx.config.showHeader,
281
- columns: _ctx.config.table,
282
- data: _ctx.config.prop && scope.row[_ctx.config.prop] || []
283
- }, null, 8, ["show-header", "columns", "data"])) : vue.createCommentVNode("", true)
2590
+ /* DYNAMIC */
2591
+ }, 1032, ["placement", "width", "trigger", "destroy-on-close"])) : vue.createCommentVNode("v-if", true)
284
2592
  ]),
285
- _: 2
286
- }, 1032, ["placement", "width", "trigger", "destroy-on-close"])) : vue.createCommentVNode("", true)
287
- ]),
288
- _: 1
289
- }, 8, ["label", "width", "fixed"]);
2593
+ _: 1
2594
+ /* STABLE */
2595
+ }, 8, ["label", "width", "fixed"])
2596
+ ],
2597
+ 2112
2598
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2599
+ );
290
2600
  };
291
2601
  }
292
2602
  });
@@ -333,6 +2643,7 @@
333
2643
  }, null, 8, ["prop", "rules", "config", "name", "model"])
334
2644
  ]),
335
2645
  _: 2
2646
+ /* DYNAMIC */
336
2647
  }, 1032, ["model"])) : _ctx.config.action === "actionLink" && _ctx.config.prop ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
337
2648
  key: 1,
338
2649
  link: "",
@@ -345,6 +2656,7 @@
345
2656
  }, null, 8, _hoisted_1)
346
2657
  ]),
347
2658
  _: 2
2659
+ /* DYNAMIC */
348
2660
  }, 1032, ["onClick"])) : _ctx.config.action === "img" && _ctx.config.prop ? (vue.openBlock(), vue.createElementBlock("a", {
349
2661
  key: 2,
350
2662
  target: "_blank",
@@ -359,40 +2671,64 @@
359
2671
  target: "_blank",
360
2672
  href: scope.row[_ctx.config.prop],
361
2673
  class: "keep-all"
362
- }, vue.toDisplayString(scope.row[_ctx.config.prop]), 9, _hoisted_4)) : _ctx.config.action === "tip" ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
363
- key: 4,
364
- placement: "left"
365
- }, {
366
- content: vue.withCtx(() => [
367
- vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(formatter)(_ctx.config, scope.row)), 1)
368
- ]),
369
- default: vue.withCtx(() => [
370
- vue.createVNode(vue.unref(design.TMagicButton), {
371
- link: "",
372
- type: "primary"
373
- }, {
374
- default: vue.withCtx(() => [
375
- vue.createTextVNode(vue.toDisplayString(_ctx.config.buttonText || "扩展配置"), 1)
376
- ]),
377
- _: 1
378
- })
379
- ]),
380
- _: 2
381
- }, 1024)) : _ctx.config.action === "tag" && _ctx.config.prop ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTag), {
2674
+ }, vue.toDisplayString(scope.row[_ctx.config.prop]), 9, _hoisted_4)) : _ctx.config.action === "tip" ? (vue.openBlock(), vue.createBlock(
2675
+ _component_el_tooltip,
2676
+ {
2677
+ key: 4,
2678
+ placement: "left"
2679
+ },
2680
+ {
2681
+ content: vue.withCtx(() => [
2682
+ vue.createElementVNode(
2683
+ "div",
2684
+ null,
2685
+ vue.toDisplayString(vue.unref(formatter)(_ctx.config, scope.row)),
2686
+ 1
2687
+ /* TEXT */
2688
+ )
2689
+ ]),
2690
+ default: vue.withCtx(() => [
2691
+ vue.createVNode(vue.unref(design.TMagicButton), {
2692
+ link: "",
2693
+ type: "primary"
2694
+ }, {
2695
+ default: vue.withCtx(() => [
2696
+ vue.createTextVNode(
2697
+ vue.toDisplayString(_ctx.config.buttonText || "扩展配置"),
2698
+ 1
2699
+ /* TEXT */
2700
+ )
2701
+ ]),
2702
+ _: 1
2703
+ /* STABLE */
2704
+ })
2705
+ ]),
2706
+ _: 2
2707
+ /* DYNAMIC */
2708
+ },
2709
+ 1024
2710
+ /* DYNAMIC_SLOTS */
2711
+ )) : _ctx.config.action === "tag" && _ctx.config.prop ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTag), {
382
2712
  key: 5,
383
2713
  type: typeof _ctx.config.type === "function" ? _ctx.config.type(scope.row[_ctx.config.prop], scope.row) : _ctx.config.type,
384
2714
  "close-transition": ""
385
2715
  }, {
386
2716
  default: vue.withCtx(() => [
387
- vue.createTextVNode(vue.toDisplayString(vue.unref(formatter)(_ctx.config, scope.row)), 1)
2717
+ vue.createTextVNode(
2718
+ vue.toDisplayString(vue.unref(formatter)(_ctx.config, scope.row)),
2719
+ 1
2720
+ /* TEXT */
2721
+ )
388
2722
  ]),
389
2723
  _: 2
2724
+ /* DYNAMIC */
390
2725
  }, 1032, ["type"])) : (vue.openBlock(), vue.createElementBlock("div", {
391
2726
  key: 6,
392
2727
  innerHTML: vue.unref(formatter)(_ctx.config, scope.row)
393
2728
  }, null, 8, _hoisted_5))
394
2729
  ]),
395
2730
  _: 1
2731
+ /* STABLE */
396
2732
  }, 8, ["label", "width", "fixed", "sortable", "prop"]);
397
2733
  };
398
2734
  }
@@ -438,7 +2774,7 @@
438
2774
  if (selectionColumn.value) {
439
2775
  return props.data || [];
440
2776
  }
441
- return lodashEs.cloneDeep(props.data) || [];
2777
+ return cloneDeep(props.data) || [];
442
2778
  });
443
2779
  const hasBorder = vue.computed(() => typeof props.border !== "undefined" ? props.border : true);
444
2780
  const sortChange = (data) => {
@@ -512,38 +2848,51 @@
512
2848
  onExpandChange: expandChange
513
2849
  }, {
514
2850
  default: vue.withCtx(() => [
515
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, (item, columnIndex) => {
516
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
517
- item.type === "expand" ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
518
- config: item,
519
- key: columnIndex
520
- }, null, 8, ["config"])) : item.type === "component" ? (vue.openBlock(), vue.createBlock(_sfc_main$4, {
521
- config: item,
522
- key: columnIndex
523
- }, null, 8, ["config"])) : item.selection ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tableColumnComponent)?.component || "el-table-column"), {
524
- width: "40",
525
- type: "selection",
526
- key: columnIndex,
527
- selectable: item.selectable
528
- }, null, 8, ["selectable"])) : item.actions ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
529
- columns: _ctx.columns,
530
- config: item,
531
- "rowkey-name": _ctx.rowkeyName,
532
- "edit-state": editState.value,
533
- key: columnIndex,
534
- onAfterAction: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("after-action"))
535
- }, null, 8, ["columns", "config", "rowkey-name", "edit-state"])) : item.type === "popover" ? (vue.openBlock(), vue.createBlock(_sfc_main$2, {
536
- key: columnIndex,
537
- config: item
538
- }, null, 8, ["config"])) : (vue.openBlock(), vue.createBlock(_sfc_main$1, {
539
- key: columnIndex,
540
- config: item,
541
- "edit-state": editState.value
542
- }, null, 8, ["config", "edit-state"]))
543
- ], 64);
544
- }), 256))
2851
+ (vue.openBlock(true), vue.createElementBlock(
2852
+ vue.Fragment,
2853
+ null,
2854
+ vue.renderList(_ctx.columns, (item, columnIndex) => {
2855
+ return vue.openBlock(), vue.createElementBlock(
2856
+ vue.Fragment,
2857
+ null,
2858
+ [
2859
+ item.type === "expand" ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
2860
+ config: item,
2861
+ key: columnIndex
2862
+ }, null, 8, ["config"])) : item.type === "component" ? (vue.openBlock(), vue.createBlock(_sfc_main$4, {
2863
+ config: item,
2864
+ key: columnIndex
2865
+ }, null, 8, ["config"])) : item.selection ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tableColumnComponent)?.component || "el-table-column"), {
2866
+ width: "40",
2867
+ type: "selection",
2868
+ key: columnIndex,
2869
+ selectable: item.selectable
2870
+ }, null, 8, ["selectable"])) : item.actions ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
2871
+ columns: _ctx.columns,
2872
+ config: item,
2873
+ "rowkey-name": _ctx.rowkeyName,
2874
+ "edit-state": editState.value,
2875
+ key: columnIndex,
2876
+ onAfterAction: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("after-action"))
2877
+ }, null, 8, ["columns", "config", "rowkey-name", "edit-state"])) : item.type === "popover" ? (vue.openBlock(), vue.createBlock(_sfc_main$2, {
2878
+ key: columnIndex,
2879
+ config: item
2880
+ }, null, 8, ["config"])) : (vue.openBlock(), vue.createBlock(_sfc_main$1, {
2881
+ key: columnIndex,
2882
+ config: item,
2883
+ "edit-state": editState.value
2884
+ }, null, 8, ["config", "edit-state"]))
2885
+ ],
2886
+ 64
2887
+ /* STABLE_FRAGMENT */
2888
+ );
2889
+ }),
2890
+ 256
2891
+ /* UNKEYED_FRAGMENT */
2892
+ ))
545
2893
  ]),
546
2894
  _: 1
2895
+ /* STABLE */
547
2896
  }, 8, ["data", "show-header", "max-height", "default-expand-all", "border", "row-key", "empty-text"])), [
548
2897
  [_directive_loading, _ctx.loading]
549
2898
  ]);