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