@revolist/revogrid 4.9.1 → 4.9.2

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