wcs-core 4.0.2 → 4.1.0

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