@zengenti/contensis-react-base 3.0.0-beta.44 → 3.0.0-beta.47

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