@ohif/app 3.9.0-beta.40 → 3.9.0-beta.42

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 (23) hide show
  1. package/dist/{944.bundle.a58e0a80876da559f6b9.js → 944.bundle.16aa40172eb400645bc7.js} +4 -2
  2. package/dist/{app.bundle.e10ba453bd29c6aa3df0.js → app.bundle.9347cfa630a7bb3c3501.js} +2090 -84
  3. package/dist/index.html +1 -1
  4. package/dist/sw.js +1 -1
  5. package/package.json +18 -18
  6. /package/dist/{121.bundle.d1d51ac098a41f618eab.js → 121.bundle.e84fd9082e4ff552b4d8.js} +0 -0
  7. /package/dist/{129.bundle.29770734ee3882c107c0.js → 129.bundle.6bfdab098f4ab3844069.js} +0 -0
  8. /package/dist/{14.bundle.90dd112f5bc6f21d6ce1.js → 14.bundle.d536d02ff54422b05069.js} +0 -0
  9. /package/dist/{140.bundle.a58cbadd477749143dea.js → 140.bundle.2f9a001b78d1f01445ec.js} +0 -0
  10. /package/dist/{194.bundle.2dde300e0ed19254b6ba.js → 194.bundle.847c40683b31e1421615.js} +0 -0
  11. /package/dist/{211.bundle.e8eea5d565da00092f57.js → 211.bundle.dc5964c30ef01d34ef69.js} +0 -0
  12. /package/dist/{218.bundle.ec4ecebd17f837a87fff.js → 218.bundle.75b2b5b1af357c6ae97b.js} +0 -0
  13. /package/dist/{363.bundle.34dddd70f4ffd669287e.js → 363.bundle.99f8cdb6a82b63f969be.js} +0 -0
  14. /package/dist/{382.bundle.df3ca2c99f3547b31d5b.js → 382.bundle.98c39334a37d9de18bec.js} +0 -0
  15. /package/dist/{444.bundle.7d0ca442eef652e676fc.js → 444.bundle.519b2e76799d24bb6dec.js} +0 -0
  16. /package/dist/{552.bundle.274e23ec01ab41ad7189.js → 552.bundle.35ae9de06a31efc69f3d.js} +0 -0
  17. /package/dist/{555.bundle.b2a12c8da6bb11dad2b7.js → 555.bundle.d0e8636dc8c9c5820428.js} +0 -0
  18. /package/dist/{717.bundle.ea82dab5ef9f7f640319.js → 717.bundle.41b3a4b2e0d02e2635d6.js} +0 -0
  19. /package/dist/{799.bundle.e744c0af4fdf31b180ac.js → 799.bundle.7e14c4e0d02553ec1b34.js} +0 -0
  20. /package/dist/{806.bundle.1632ea111682147bad5f.js → 806.bundle.d7e98022b0170e228b89.js} +0 -0
  21. /package/dist/{853.bundle.1ccbecc265671c9e009e.js → 853.bundle.aa373fa42b78d5f3d286.js} +0 -0
  22. /package/dist/{920.bundle.0b80f44e0e0df6829650.js → 920.bundle.e6800eda8051988fc576.js} +0 -0
  23. /package/dist/{989.bundle.47ce0ed7ca8119f2a0f9.js → 989.bundle.1cdfc95272e88701bf85.js} +0 -0
@@ -1029,8 +1029,8 @@ function WorkList({
1029
1029
  };
1030
1030
  });
1031
1031
  const hasStudies = numOfStudies > 0;
1032
- const versionNumber = "3.9.0-beta.40";
1033
- const commitHash = "09853abc525e08034a71ac17540a5a7c917845a9";
1032
+ const versionNumber = "3.9.0-beta.42";
1033
+ const commitHash = "4e87317db63e9172af6d3347fc03ceee947e639c";
1034
1034
  const menuOptions = [{
1035
1035
  title: t('Header:About'),
1036
1036
  icon: 'info',
@@ -6587,7 +6587,7 @@ const detectionOptions = {
6587
6587
  }
6588
6588
  });
6589
6589
  ;// CONCATENATED MODULE: ../../i18n/package.json
6590
- const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"3.9.0-beta.39"}');
6590
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"3.9.0-beta.41"}');
6591
6591
  ;// CONCATENATED MODULE: ../../i18n/src/utils.js
6592
6592
  const languagesMap = {
6593
6593
  ar: 'Arabic',
@@ -67856,9 +67856,9 @@ UserAuthenticationService.REGISTRATION = {
67856
67856
  ;// CONCATENATED MODULE: ../../core/src/services/UserAuthenticationService/index.ts
67857
67857
 
67858
67858
  /* harmony default export */ const services_UserAuthenticationService = (UserAuthenticationService_UserAuthenticationService);
67859
- // EXTERNAL MODULE: ../../../node_modules/lodash.merge/index.js
67860
- var lodash_merge = __webpack_require__(40592);
67861
- var lodash_merge_default = /*#__PURE__*/__webpack_require__.n(lodash_merge);
67859
+ // EXTERNAL MODULE: ../../../node_modules/lodash.mergewith/index.js
67860
+ var lodash_mergewith = __webpack_require__(77928);
67861
+ var lodash_mergewith_default = /*#__PURE__*/__webpack_require__.n(lodash_mergewith);
67862
67862
  ;// CONCATENATED MODULE: ../../core/src/services/CustomizationService/CustomizationService.ts
67863
67863
  var _CustomizationService;
67864
67864
 
@@ -67883,6 +67883,12 @@ const flattenNestedStrings = (strs, ret) => {
67883
67883
  }
67884
67884
  return ret;
67885
67885
  };
67886
+ let MergeEnum = /*#__PURE__*/function (MergeEnum) {
67887
+ MergeEnum["Append"] = "Append";
67888
+ MergeEnum["Merge"] = "Merge";
67889
+ MergeEnum["Replace"] = "Replace";
67890
+ return MergeEnum;
67891
+ }({});
67886
67892
 
67887
67893
  /**
67888
67894
  * The CustomizationService allows for retrieving of custom components
@@ -67963,8 +67969,8 @@ class CustomizationService extends pubSubServiceInterface/* PubSubService */.R {
67963
67969
  getModeCustomizations() {
67964
67970
  return this.modeCustomizations;
67965
67971
  }
67966
- setModeCustomization(customizationId, customization) {
67967
- this.modeCustomizations[customizationId] = lodash_merge_default()(this.modeCustomizations[customizationId] || {}, customization);
67972
+ setModeCustomization(customizationId, customization, merge = MergeEnum.Merge) {
67973
+ this.modeCustomizations[customizationId] = this.mergeValue(this.modeCustomizations[customizationId], customization, merge);
67968
67974
  this._broadcastEvent(this.EVENTS.CUSTOMIZATION_MODIFIED, {
67969
67975
  buttons: this.modeCustomizations,
67970
67976
  button: this.modeCustomizations[customizationId]
@@ -68039,8 +68045,14 @@ class CustomizationService extends pubSubServiceInterface/* PubSubService */.R {
68039
68045
  getGlobalCustomization(id, defaultValue) {
68040
68046
  return this.transform(this.globalCustomizations[id] ?? defaultValue);
68041
68047
  }
68042
- setGlobalCustomization(id, value) {
68043
- this.globalCustomizations[id] = value;
68048
+ mergeValue(oldValue, newValue, mergeType = MergeEnum.Replace) {
68049
+ if (mergeType === MergeEnum.Replace) {
68050
+ return newValue;
68051
+ }
68052
+ return lodash_mergewith_default()(oldValue || {}, newValue, mergeCustomizer.bind(null, mergeType));
68053
+ }
68054
+ setGlobalCustomization(id, value, merge = MergeEnum.Replace) {
68055
+ this.globalCustomizations[id] = this.mergeValue(this.globalCustomizations[id], value, merge);
68044
68056
  this._broadcastGlobalCustomizationModified();
68045
68057
  }
68046
68058
  setConfigGlobalCustomization(configuration) {
@@ -68063,7 +68075,7 @@ class CustomizationService extends pubSubServiceInterface/* PubSubService */.R {
68063
68075
  * A single reference is either an string to be loaded from a module,
68064
68076
  * or a customization itself.
68065
68077
  */
68066
- addReference(value, isGlobal = true, id) {
68078
+ addReference(value, isGlobal = true, id, merge) {
68067
68079
  if (!value) {
68068
68080
  return;
68069
68081
  }
@@ -68071,12 +68083,12 @@ class CustomizationService extends pubSubServiceInterface/* PubSubService */.R {
68071
68083
  const extensionValue = this.findExtensionValue(value);
68072
68084
  // The child of a reference is only a set of references when an array,
68073
68085
  // so call the addReference direct. It could be a secondary reference perhaps
68074
- this.addReference(extensionValue.value, isGlobal, extensionValue.name);
68086
+ this.addReference(extensionValue.value, isGlobal, extensionValue.name, extensionValue.merge);
68075
68087
  } else if (Array.isArray(value)) {
68076
68088
  this.addReferences(value, isGlobal);
68077
68089
  } else {
68078
68090
  const useId = value.id || id;
68079
- this[isGlobal ? 'setGlobalCustomization' : 'setModeCustomization'](useId, value);
68091
+ this[isGlobal ? 'setGlobalCustomization' : 'setModeCustomization'](useId, value, merge);
68080
68092
  }
68081
68093
  }
68082
68094
 
@@ -68101,6 +68113,10 @@ class CustomizationService extends pubSubServiceInterface/* PubSubService */.R {
68101
68113
  }
68102
68114
  }
68103
68115
  }
68116
+
68117
+ /**
68118
+ * Custom merging function, to handle merging arrays
68119
+ */
68104
68120
  _CustomizationService = CustomizationService;
68105
68121
  CustomizationService.REGISTRATION = {
68106
68122
  name: 'customizationService',
@@ -68114,6 +68130,11 @@ CustomizationService.REGISTRATION = {
68114
68130
  });
68115
68131
  }
68116
68132
  };
68133
+ function mergeCustomizer(merge, obj, src) {
68134
+ if (merge === MergeEnum.Append && Array.isArray(obj)) {
68135
+ return obj.concat(src);
68136
+ }
68137
+ }
68117
68138
  ;// CONCATENATED MODULE: ../../core/src/services/CustomizationService/index.ts
68118
68139
 
68119
68140
  /* harmony default export */ const services_CustomizationService = (CustomizationService);
@@ -311216,55 +311237,1918 @@ function isArrayLike(value) {
311216
311237
  }
311217
311238
 
311218
311239
  /**
311219
- * Checks if `value` is a buffer.
311240
+ * Checks if `value` is a buffer.
311241
+ *
311242
+ * @static
311243
+ * @memberOf _
311244
+ * @since 4.3.0
311245
+ * @category Lang
311246
+ * @param {*} value The value to check.
311247
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
311248
+ * @example
311249
+ *
311250
+ * _.isBuffer(new Buffer(2));
311251
+ * // => true
311252
+ *
311253
+ * _.isBuffer(new Uint8Array(2));
311254
+ * // => false
311255
+ */
311256
+ var isBuffer = nativeIsBuffer || stubFalse;
311257
+
311258
+ /**
311259
+ * Performs a deep comparison between two values to determine if they are
311260
+ * equivalent.
311261
+ *
311262
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
311263
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
311264
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
311265
+ * by their own, not inherited, enumerable properties. Functions and DOM
311266
+ * nodes are compared by strict equality, i.e. `===`.
311267
+ *
311268
+ * @static
311269
+ * @memberOf _
311270
+ * @since 0.1.0
311271
+ * @category Lang
311272
+ * @param {*} value The value to compare.
311273
+ * @param {*} other The other value to compare.
311274
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
311275
+ * @example
311276
+ *
311277
+ * var object = { 'a': 1 };
311278
+ * var other = { 'a': 1 };
311279
+ *
311280
+ * _.isEqual(object, other);
311281
+ * // => true
311282
+ *
311283
+ * object === other;
311284
+ * // => false
311285
+ */
311286
+ function isEqual(value, other) {
311287
+ return baseIsEqual(value, other);
311288
+ }
311289
+
311290
+ /**
311291
+ * Checks if `value` is classified as a `Function` object.
311292
+ *
311293
+ * @static
311294
+ * @memberOf _
311295
+ * @since 0.1.0
311296
+ * @category Lang
311297
+ * @param {*} value The value to check.
311298
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
311299
+ * @example
311300
+ *
311301
+ * _.isFunction(_);
311302
+ * // => true
311303
+ *
311304
+ * _.isFunction(/abc/);
311305
+ * // => false
311306
+ */
311307
+ function isFunction(value) {
311308
+ if (!isObject(value)) {
311309
+ return false;
311310
+ }
311311
+ // The use of `Object#toString` avoids issues with the `typeof` operator
311312
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
311313
+ var tag = baseGetTag(value);
311314
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
311315
+ }
311316
+
311317
+ /**
311318
+ * Checks if `value` is a valid array-like length.
311319
+ *
311320
+ * **Note:** This method is loosely based on
311321
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
311322
+ *
311323
+ * @static
311324
+ * @memberOf _
311325
+ * @since 4.0.0
311326
+ * @category Lang
311327
+ * @param {*} value The value to check.
311328
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
311329
+ * @example
311330
+ *
311331
+ * _.isLength(3);
311332
+ * // => true
311333
+ *
311334
+ * _.isLength(Number.MIN_VALUE);
311335
+ * // => false
311336
+ *
311337
+ * _.isLength(Infinity);
311338
+ * // => false
311339
+ *
311340
+ * _.isLength('3');
311341
+ * // => false
311342
+ */
311343
+ function isLength(value) {
311344
+ return typeof value == 'number' &&
311345
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
311346
+ }
311347
+
311348
+ /**
311349
+ * Checks if `value` is the
311350
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
311351
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
311352
+ *
311353
+ * @static
311354
+ * @memberOf _
311355
+ * @since 0.1.0
311356
+ * @category Lang
311357
+ * @param {*} value The value to check.
311358
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
311359
+ * @example
311360
+ *
311361
+ * _.isObject({});
311362
+ * // => true
311363
+ *
311364
+ * _.isObject([1, 2, 3]);
311365
+ * // => true
311366
+ *
311367
+ * _.isObject(_.noop);
311368
+ * // => true
311369
+ *
311370
+ * _.isObject(null);
311371
+ * // => false
311372
+ */
311373
+ function isObject(value) {
311374
+ var type = typeof value;
311375
+ return value != null && (type == 'object' || type == 'function');
311376
+ }
311377
+
311378
+ /**
311379
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
311380
+ * and has a `typeof` result of "object".
311381
+ *
311382
+ * @static
311383
+ * @memberOf _
311384
+ * @since 4.0.0
311385
+ * @category Lang
311386
+ * @param {*} value The value to check.
311387
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
311388
+ * @example
311389
+ *
311390
+ * _.isObjectLike({});
311391
+ * // => true
311392
+ *
311393
+ * _.isObjectLike([1, 2, 3]);
311394
+ * // => true
311395
+ *
311396
+ * _.isObjectLike(_.noop);
311397
+ * // => false
311398
+ *
311399
+ * _.isObjectLike(null);
311400
+ * // => false
311401
+ */
311402
+ function isObjectLike(value) {
311403
+ return value != null && typeof value == 'object';
311404
+ }
311405
+
311406
+ /**
311407
+ * Checks if `value` is classified as a typed array.
311408
+ *
311409
+ * @static
311410
+ * @memberOf _
311411
+ * @since 3.0.0
311412
+ * @category Lang
311413
+ * @param {*} value The value to check.
311414
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
311415
+ * @example
311416
+ *
311417
+ * _.isTypedArray(new Uint8Array);
311418
+ * // => true
311419
+ *
311420
+ * _.isTypedArray([]);
311421
+ * // => false
311422
+ */
311423
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
311424
+
311425
+ /**
311426
+ * Creates an array of the own enumerable property names of `object`.
311427
+ *
311428
+ * **Note:** Non-object values are coerced to objects. See the
311429
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
311430
+ * for more details.
311431
+ *
311432
+ * @static
311433
+ * @since 0.1.0
311434
+ * @memberOf _
311435
+ * @category Object
311436
+ * @param {Object} object The object to query.
311437
+ * @returns {Array} Returns the array of property names.
311438
+ * @example
311439
+ *
311440
+ * function Foo() {
311441
+ * this.a = 1;
311442
+ * this.b = 2;
311443
+ * }
311444
+ *
311445
+ * Foo.prototype.c = 3;
311446
+ *
311447
+ * _.keys(new Foo);
311448
+ * // => ['a', 'b'] (iteration order is not guaranteed)
311449
+ *
311450
+ * _.keys('hi');
311451
+ * // => ['0', '1']
311452
+ */
311453
+ function keys(object) {
311454
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
311455
+ }
311456
+
311457
+ /**
311458
+ * This method returns a new empty array.
311459
+ *
311460
+ * @static
311461
+ * @memberOf _
311462
+ * @since 4.13.0
311463
+ * @category Util
311464
+ * @returns {Array} Returns the new empty array.
311465
+ * @example
311466
+ *
311467
+ * var arrays = _.times(2, _.stubArray);
311468
+ *
311469
+ * console.log(arrays);
311470
+ * // => [[], []]
311471
+ *
311472
+ * console.log(arrays[0] === arrays[1]);
311473
+ * // => false
311474
+ */
311475
+ function stubArray() {
311476
+ return [];
311477
+ }
311478
+
311479
+ /**
311480
+ * This method returns `false`.
311481
+ *
311482
+ * @static
311483
+ * @memberOf _
311484
+ * @since 4.13.0
311485
+ * @category Util
311486
+ * @returns {boolean} Returns `false`.
311487
+ * @example
311488
+ *
311489
+ * _.times(2, _.stubFalse);
311490
+ * // => [false, false]
311491
+ */
311492
+ function stubFalse() {
311493
+ return false;
311494
+ }
311495
+
311496
+ module.exports = isEqual;
311497
+
311498
+
311499
+ /***/ }),
311500
+
311501
+ /***/ 40592:
311502
+ /***/ ((module, exports, __webpack_require__) => {
311503
+
311504
+ /* module decorator */ module = __webpack_require__.nmd(module);
311505
+ /**
311506
+ * Lodash (Custom Build) <https://lodash.com/>
311507
+ * Build: `lodash modularize exports="npm" -o ./`
311508
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
311509
+ * Released under MIT license <https://lodash.com/license>
311510
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
311511
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
311512
+ */
311513
+
311514
+ /** Used as the size to enable large array optimizations. */
311515
+ var LARGE_ARRAY_SIZE = 200;
311516
+
311517
+ /** Used to stand-in for `undefined` hash values. */
311518
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
311519
+
311520
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
311521
+ var HOT_COUNT = 800,
311522
+ HOT_SPAN = 16;
311523
+
311524
+ /** Used as references for various `Number` constants. */
311525
+ var MAX_SAFE_INTEGER = 9007199254740991;
311526
+
311527
+ /** `Object#toString` result references. */
311528
+ var argsTag = '[object Arguments]',
311529
+ arrayTag = '[object Array]',
311530
+ asyncTag = '[object AsyncFunction]',
311531
+ boolTag = '[object Boolean]',
311532
+ dateTag = '[object Date]',
311533
+ errorTag = '[object Error]',
311534
+ funcTag = '[object Function]',
311535
+ genTag = '[object GeneratorFunction]',
311536
+ mapTag = '[object Map]',
311537
+ numberTag = '[object Number]',
311538
+ nullTag = '[object Null]',
311539
+ objectTag = '[object Object]',
311540
+ proxyTag = '[object Proxy]',
311541
+ regexpTag = '[object RegExp]',
311542
+ setTag = '[object Set]',
311543
+ stringTag = '[object String]',
311544
+ undefinedTag = '[object Undefined]',
311545
+ weakMapTag = '[object WeakMap]';
311546
+
311547
+ var arrayBufferTag = '[object ArrayBuffer]',
311548
+ dataViewTag = '[object DataView]',
311549
+ float32Tag = '[object Float32Array]',
311550
+ float64Tag = '[object Float64Array]',
311551
+ int8Tag = '[object Int8Array]',
311552
+ int16Tag = '[object Int16Array]',
311553
+ int32Tag = '[object Int32Array]',
311554
+ uint8Tag = '[object Uint8Array]',
311555
+ uint8ClampedTag = '[object Uint8ClampedArray]',
311556
+ uint16Tag = '[object Uint16Array]',
311557
+ uint32Tag = '[object Uint32Array]';
311558
+
311559
+ /**
311560
+ * Used to match `RegExp`
311561
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
311562
+ */
311563
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
311564
+
311565
+ /** Used to detect host constructors (Safari). */
311566
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
311567
+
311568
+ /** Used to detect unsigned integer values. */
311569
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
311570
+
311571
+ /** Used to identify `toStringTag` values of typed arrays. */
311572
+ var typedArrayTags = {};
311573
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
311574
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
311575
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
311576
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
311577
+ typedArrayTags[uint32Tag] = true;
311578
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
311579
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
311580
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
311581
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
311582
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
311583
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
311584
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
311585
+ typedArrayTags[weakMapTag] = false;
311586
+
311587
+ /** Detect free variable `global` from Node.js. */
311588
+ var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
311589
+
311590
+ /** Detect free variable `self`. */
311591
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
311592
+
311593
+ /** Used as a reference to the global object. */
311594
+ var root = freeGlobal || freeSelf || Function('return this')();
311595
+
311596
+ /** Detect free variable `exports`. */
311597
+ var freeExports = true && exports && !exports.nodeType && exports;
311598
+
311599
+ /** Detect free variable `module`. */
311600
+ var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
311601
+
311602
+ /** Detect the popular CommonJS extension `module.exports`. */
311603
+ var moduleExports = freeModule && freeModule.exports === freeExports;
311604
+
311605
+ /** Detect free variable `process` from Node.js. */
311606
+ var freeProcess = moduleExports && freeGlobal.process;
311607
+
311608
+ /** Used to access faster Node.js helpers. */
311609
+ var nodeUtil = (function() {
311610
+ try {
311611
+ // Use `util.types` for Node.js 10+.
311612
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
311613
+
311614
+ if (types) {
311615
+ return types;
311616
+ }
311617
+
311618
+ // Legacy `process.binding('util')` for Node.js < 10.
311619
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
311620
+ } catch (e) {}
311621
+ }());
311622
+
311623
+ /* Node.js helper references. */
311624
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
311625
+
311626
+ /**
311627
+ * A faster alternative to `Function#apply`, this function invokes `func`
311628
+ * with the `this` binding of `thisArg` and the arguments of `args`.
311629
+ *
311630
+ * @private
311631
+ * @param {Function} func The function to invoke.
311632
+ * @param {*} thisArg The `this` binding of `func`.
311633
+ * @param {Array} args The arguments to invoke `func` with.
311634
+ * @returns {*} Returns the result of `func`.
311635
+ */
311636
+ function apply(func, thisArg, args) {
311637
+ switch (args.length) {
311638
+ case 0: return func.call(thisArg);
311639
+ case 1: return func.call(thisArg, args[0]);
311640
+ case 2: return func.call(thisArg, args[0], args[1]);
311641
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
311642
+ }
311643
+ return func.apply(thisArg, args);
311644
+ }
311645
+
311646
+ /**
311647
+ * The base implementation of `_.times` without support for iteratee shorthands
311648
+ * or max array length checks.
311649
+ *
311650
+ * @private
311651
+ * @param {number} n The number of times to invoke `iteratee`.
311652
+ * @param {Function} iteratee The function invoked per iteration.
311653
+ * @returns {Array} Returns the array of results.
311654
+ */
311655
+ function baseTimes(n, iteratee) {
311656
+ var index = -1,
311657
+ result = Array(n);
311658
+
311659
+ while (++index < n) {
311660
+ result[index] = iteratee(index);
311661
+ }
311662
+ return result;
311663
+ }
311664
+
311665
+ /**
311666
+ * The base implementation of `_.unary` without support for storing metadata.
311667
+ *
311668
+ * @private
311669
+ * @param {Function} func The function to cap arguments for.
311670
+ * @returns {Function} Returns the new capped function.
311671
+ */
311672
+ function baseUnary(func) {
311673
+ return function(value) {
311674
+ return func(value);
311675
+ };
311676
+ }
311677
+
311678
+ /**
311679
+ * Gets the value at `key` of `object`.
311680
+ *
311681
+ * @private
311682
+ * @param {Object} [object] The object to query.
311683
+ * @param {string} key The key of the property to get.
311684
+ * @returns {*} Returns the property value.
311685
+ */
311686
+ function getValue(object, key) {
311687
+ return object == null ? undefined : object[key];
311688
+ }
311689
+
311690
+ /**
311691
+ * Creates a unary function that invokes `func` with its argument transformed.
311692
+ *
311693
+ * @private
311694
+ * @param {Function} func The function to wrap.
311695
+ * @param {Function} transform The argument transform.
311696
+ * @returns {Function} Returns the new function.
311697
+ */
311698
+ function overArg(func, transform) {
311699
+ return function(arg) {
311700
+ return func(transform(arg));
311701
+ };
311702
+ }
311703
+
311704
+ /** Used for built-in method references. */
311705
+ var arrayProto = Array.prototype,
311706
+ funcProto = Function.prototype,
311707
+ objectProto = Object.prototype;
311708
+
311709
+ /** Used to detect overreaching core-js shims. */
311710
+ var coreJsData = root['__core-js_shared__'];
311711
+
311712
+ /** Used to resolve the decompiled source of functions. */
311713
+ var funcToString = funcProto.toString;
311714
+
311715
+ /** Used to check objects for own properties. */
311716
+ var hasOwnProperty = objectProto.hasOwnProperty;
311717
+
311718
+ /** Used to detect methods masquerading as native. */
311719
+ var maskSrcKey = (function() {
311720
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
311721
+ return uid ? ('Symbol(src)_1.' + uid) : '';
311722
+ }());
311723
+
311724
+ /**
311725
+ * Used to resolve the
311726
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
311727
+ * of values.
311728
+ */
311729
+ var nativeObjectToString = objectProto.toString;
311730
+
311731
+ /** Used to infer the `Object` constructor. */
311732
+ var objectCtorString = funcToString.call(Object);
311733
+
311734
+ /** Used to detect if a method is native. */
311735
+ var reIsNative = RegExp('^' +
311736
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
311737
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
311738
+ );
311739
+
311740
+ /** Built-in value references. */
311741
+ var Buffer = moduleExports ? root.Buffer : undefined,
311742
+ Symbol = root.Symbol,
311743
+ Uint8Array = root.Uint8Array,
311744
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
311745
+ getPrototype = overArg(Object.getPrototypeOf, Object),
311746
+ objectCreate = Object.create,
311747
+ propertyIsEnumerable = objectProto.propertyIsEnumerable,
311748
+ splice = arrayProto.splice,
311749
+ symToStringTag = Symbol ? Symbol.toStringTag : undefined;
311750
+
311751
+ var defineProperty = (function() {
311752
+ try {
311753
+ var func = getNative(Object, 'defineProperty');
311754
+ func({}, '', {});
311755
+ return func;
311756
+ } catch (e) {}
311757
+ }());
311758
+
311759
+ /* Built-in method references for those with the same name as other `lodash` methods. */
311760
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
311761
+ nativeMax = Math.max,
311762
+ nativeNow = Date.now;
311763
+
311764
+ /* Built-in method references that are verified to be native. */
311765
+ var Map = getNative(root, 'Map'),
311766
+ nativeCreate = getNative(Object, 'create');
311767
+
311768
+ /**
311769
+ * The base implementation of `_.create` without support for assigning
311770
+ * properties to the created object.
311771
+ *
311772
+ * @private
311773
+ * @param {Object} proto The object to inherit from.
311774
+ * @returns {Object} Returns the new object.
311775
+ */
311776
+ var baseCreate = (function() {
311777
+ function object() {}
311778
+ return function(proto) {
311779
+ if (!isObject(proto)) {
311780
+ return {};
311781
+ }
311782
+ if (objectCreate) {
311783
+ return objectCreate(proto);
311784
+ }
311785
+ object.prototype = proto;
311786
+ var result = new object;
311787
+ object.prototype = undefined;
311788
+ return result;
311789
+ };
311790
+ }());
311791
+
311792
+ /**
311793
+ * Creates a hash object.
311794
+ *
311795
+ * @private
311796
+ * @constructor
311797
+ * @param {Array} [entries] The key-value pairs to cache.
311798
+ */
311799
+ function Hash(entries) {
311800
+ var index = -1,
311801
+ length = entries == null ? 0 : entries.length;
311802
+
311803
+ this.clear();
311804
+ while (++index < length) {
311805
+ var entry = entries[index];
311806
+ this.set(entry[0], entry[1]);
311807
+ }
311808
+ }
311809
+
311810
+ /**
311811
+ * Removes all key-value entries from the hash.
311812
+ *
311813
+ * @private
311814
+ * @name clear
311815
+ * @memberOf Hash
311816
+ */
311817
+ function hashClear() {
311818
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
311819
+ this.size = 0;
311820
+ }
311821
+
311822
+ /**
311823
+ * Removes `key` and its value from the hash.
311824
+ *
311825
+ * @private
311826
+ * @name delete
311827
+ * @memberOf Hash
311828
+ * @param {Object} hash The hash to modify.
311829
+ * @param {string} key The key of the value to remove.
311830
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
311831
+ */
311832
+ function hashDelete(key) {
311833
+ var result = this.has(key) && delete this.__data__[key];
311834
+ this.size -= result ? 1 : 0;
311835
+ return result;
311836
+ }
311837
+
311838
+ /**
311839
+ * Gets the hash value for `key`.
311840
+ *
311841
+ * @private
311842
+ * @name get
311843
+ * @memberOf Hash
311844
+ * @param {string} key The key of the value to get.
311845
+ * @returns {*} Returns the entry value.
311846
+ */
311847
+ function hashGet(key) {
311848
+ var data = this.__data__;
311849
+ if (nativeCreate) {
311850
+ var result = data[key];
311851
+ return result === HASH_UNDEFINED ? undefined : result;
311852
+ }
311853
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
311854
+ }
311855
+
311856
+ /**
311857
+ * Checks if a hash value for `key` exists.
311858
+ *
311859
+ * @private
311860
+ * @name has
311861
+ * @memberOf Hash
311862
+ * @param {string} key The key of the entry to check.
311863
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
311864
+ */
311865
+ function hashHas(key) {
311866
+ var data = this.__data__;
311867
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
311868
+ }
311869
+
311870
+ /**
311871
+ * Sets the hash `key` to `value`.
311872
+ *
311873
+ * @private
311874
+ * @name set
311875
+ * @memberOf Hash
311876
+ * @param {string} key The key of the value to set.
311877
+ * @param {*} value The value to set.
311878
+ * @returns {Object} Returns the hash instance.
311879
+ */
311880
+ function hashSet(key, value) {
311881
+ var data = this.__data__;
311882
+ this.size += this.has(key) ? 0 : 1;
311883
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
311884
+ return this;
311885
+ }
311886
+
311887
+ // Add methods to `Hash`.
311888
+ Hash.prototype.clear = hashClear;
311889
+ Hash.prototype['delete'] = hashDelete;
311890
+ Hash.prototype.get = hashGet;
311891
+ Hash.prototype.has = hashHas;
311892
+ Hash.prototype.set = hashSet;
311893
+
311894
+ /**
311895
+ * Creates an list cache object.
311896
+ *
311897
+ * @private
311898
+ * @constructor
311899
+ * @param {Array} [entries] The key-value pairs to cache.
311900
+ */
311901
+ function ListCache(entries) {
311902
+ var index = -1,
311903
+ length = entries == null ? 0 : entries.length;
311904
+
311905
+ this.clear();
311906
+ while (++index < length) {
311907
+ var entry = entries[index];
311908
+ this.set(entry[0], entry[1]);
311909
+ }
311910
+ }
311911
+
311912
+ /**
311913
+ * Removes all key-value entries from the list cache.
311914
+ *
311915
+ * @private
311916
+ * @name clear
311917
+ * @memberOf ListCache
311918
+ */
311919
+ function listCacheClear() {
311920
+ this.__data__ = [];
311921
+ this.size = 0;
311922
+ }
311923
+
311924
+ /**
311925
+ * Removes `key` and its value from the list cache.
311926
+ *
311927
+ * @private
311928
+ * @name delete
311929
+ * @memberOf ListCache
311930
+ * @param {string} key The key of the value to remove.
311931
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
311932
+ */
311933
+ function listCacheDelete(key) {
311934
+ var data = this.__data__,
311935
+ index = assocIndexOf(data, key);
311936
+
311937
+ if (index < 0) {
311938
+ return false;
311939
+ }
311940
+ var lastIndex = data.length - 1;
311941
+ if (index == lastIndex) {
311942
+ data.pop();
311943
+ } else {
311944
+ splice.call(data, index, 1);
311945
+ }
311946
+ --this.size;
311947
+ return true;
311948
+ }
311949
+
311950
+ /**
311951
+ * Gets the list cache value for `key`.
311952
+ *
311953
+ * @private
311954
+ * @name get
311955
+ * @memberOf ListCache
311956
+ * @param {string} key The key of the value to get.
311957
+ * @returns {*} Returns the entry value.
311958
+ */
311959
+ function listCacheGet(key) {
311960
+ var data = this.__data__,
311961
+ index = assocIndexOf(data, key);
311962
+
311963
+ return index < 0 ? undefined : data[index][1];
311964
+ }
311965
+
311966
+ /**
311967
+ * Checks if a list cache value for `key` exists.
311968
+ *
311969
+ * @private
311970
+ * @name has
311971
+ * @memberOf ListCache
311972
+ * @param {string} key The key of the entry to check.
311973
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
311974
+ */
311975
+ function listCacheHas(key) {
311976
+ return assocIndexOf(this.__data__, key) > -1;
311977
+ }
311978
+
311979
+ /**
311980
+ * Sets the list cache `key` to `value`.
311981
+ *
311982
+ * @private
311983
+ * @name set
311984
+ * @memberOf ListCache
311985
+ * @param {string} key The key of the value to set.
311986
+ * @param {*} value The value to set.
311987
+ * @returns {Object} Returns the list cache instance.
311988
+ */
311989
+ function listCacheSet(key, value) {
311990
+ var data = this.__data__,
311991
+ index = assocIndexOf(data, key);
311992
+
311993
+ if (index < 0) {
311994
+ ++this.size;
311995
+ data.push([key, value]);
311996
+ } else {
311997
+ data[index][1] = value;
311998
+ }
311999
+ return this;
312000
+ }
312001
+
312002
+ // Add methods to `ListCache`.
312003
+ ListCache.prototype.clear = listCacheClear;
312004
+ ListCache.prototype['delete'] = listCacheDelete;
312005
+ ListCache.prototype.get = listCacheGet;
312006
+ ListCache.prototype.has = listCacheHas;
312007
+ ListCache.prototype.set = listCacheSet;
312008
+
312009
+ /**
312010
+ * Creates a map cache object to store key-value pairs.
312011
+ *
312012
+ * @private
312013
+ * @constructor
312014
+ * @param {Array} [entries] The key-value pairs to cache.
312015
+ */
312016
+ function MapCache(entries) {
312017
+ var index = -1,
312018
+ length = entries == null ? 0 : entries.length;
312019
+
312020
+ this.clear();
312021
+ while (++index < length) {
312022
+ var entry = entries[index];
312023
+ this.set(entry[0], entry[1]);
312024
+ }
312025
+ }
312026
+
312027
+ /**
312028
+ * Removes all key-value entries from the map.
312029
+ *
312030
+ * @private
312031
+ * @name clear
312032
+ * @memberOf MapCache
312033
+ */
312034
+ function mapCacheClear() {
312035
+ this.size = 0;
312036
+ this.__data__ = {
312037
+ 'hash': new Hash,
312038
+ 'map': new (Map || ListCache),
312039
+ 'string': new Hash
312040
+ };
312041
+ }
312042
+
312043
+ /**
312044
+ * Removes `key` and its value from the map.
312045
+ *
312046
+ * @private
312047
+ * @name delete
312048
+ * @memberOf MapCache
312049
+ * @param {string} key The key of the value to remove.
312050
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
312051
+ */
312052
+ function mapCacheDelete(key) {
312053
+ var result = getMapData(this, key)['delete'](key);
312054
+ this.size -= result ? 1 : 0;
312055
+ return result;
312056
+ }
312057
+
312058
+ /**
312059
+ * Gets the map value for `key`.
312060
+ *
312061
+ * @private
312062
+ * @name get
312063
+ * @memberOf MapCache
312064
+ * @param {string} key The key of the value to get.
312065
+ * @returns {*} Returns the entry value.
312066
+ */
312067
+ function mapCacheGet(key) {
312068
+ return getMapData(this, key).get(key);
312069
+ }
312070
+
312071
+ /**
312072
+ * Checks if a map value for `key` exists.
312073
+ *
312074
+ * @private
312075
+ * @name has
312076
+ * @memberOf MapCache
312077
+ * @param {string} key The key of the entry to check.
312078
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
312079
+ */
312080
+ function mapCacheHas(key) {
312081
+ return getMapData(this, key).has(key);
312082
+ }
312083
+
312084
+ /**
312085
+ * Sets the map `key` to `value`.
312086
+ *
312087
+ * @private
312088
+ * @name set
312089
+ * @memberOf MapCache
312090
+ * @param {string} key The key of the value to set.
312091
+ * @param {*} value The value to set.
312092
+ * @returns {Object} Returns the map cache instance.
312093
+ */
312094
+ function mapCacheSet(key, value) {
312095
+ var data = getMapData(this, key),
312096
+ size = data.size;
312097
+
312098
+ data.set(key, value);
312099
+ this.size += data.size == size ? 0 : 1;
312100
+ return this;
312101
+ }
312102
+
312103
+ // Add methods to `MapCache`.
312104
+ MapCache.prototype.clear = mapCacheClear;
312105
+ MapCache.prototype['delete'] = mapCacheDelete;
312106
+ MapCache.prototype.get = mapCacheGet;
312107
+ MapCache.prototype.has = mapCacheHas;
312108
+ MapCache.prototype.set = mapCacheSet;
312109
+
312110
+ /**
312111
+ * Creates a stack cache object to store key-value pairs.
312112
+ *
312113
+ * @private
312114
+ * @constructor
312115
+ * @param {Array} [entries] The key-value pairs to cache.
312116
+ */
312117
+ function Stack(entries) {
312118
+ var data = this.__data__ = new ListCache(entries);
312119
+ this.size = data.size;
312120
+ }
312121
+
312122
+ /**
312123
+ * Removes all key-value entries from the stack.
312124
+ *
312125
+ * @private
312126
+ * @name clear
312127
+ * @memberOf Stack
312128
+ */
312129
+ function stackClear() {
312130
+ this.__data__ = new ListCache;
312131
+ this.size = 0;
312132
+ }
312133
+
312134
+ /**
312135
+ * Removes `key` and its value from the stack.
312136
+ *
312137
+ * @private
312138
+ * @name delete
312139
+ * @memberOf Stack
312140
+ * @param {string} key The key of the value to remove.
312141
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
312142
+ */
312143
+ function stackDelete(key) {
312144
+ var data = this.__data__,
312145
+ result = data['delete'](key);
312146
+
312147
+ this.size = data.size;
312148
+ return result;
312149
+ }
312150
+
312151
+ /**
312152
+ * Gets the stack value for `key`.
312153
+ *
312154
+ * @private
312155
+ * @name get
312156
+ * @memberOf Stack
312157
+ * @param {string} key The key of the value to get.
312158
+ * @returns {*} Returns the entry value.
312159
+ */
312160
+ function stackGet(key) {
312161
+ return this.__data__.get(key);
312162
+ }
312163
+
312164
+ /**
312165
+ * Checks if a stack value for `key` exists.
312166
+ *
312167
+ * @private
312168
+ * @name has
312169
+ * @memberOf Stack
312170
+ * @param {string} key The key of the entry to check.
312171
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
312172
+ */
312173
+ function stackHas(key) {
312174
+ return this.__data__.has(key);
312175
+ }
312176
+
312177
+ /**
312178
+ * Sets the stack `key` to `value`.
312179
+ *
312180
+ * @private
312181
+ * @name set
312182
+ * @memberOf Stack
312183
+ * @param {string} key The key of the value to set.
312184
+ * @param {*} value The value to set.
312185
+ * @returns {Object} Returns the stack cache instance.
312186
+ */
312187
+ function stackSet(key, value) {
312188
+ var data = this.__data__;
312189
+ if (data instanceof ListCache) {
312190
+ var pairs = data.__data__;
312191
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
312192
+ pairs.push([key, value]);
312193
+ this.size = ++data.size;
312194
+ return this;
312195
+ }
312196
+ data = this.__data__ = new MapCache(pairs);
312197
+ }
312198
+ data.set(key, value);
312199
+ this.size = data.size;
312200
+ return this;
312201
+ }
312202
+
312203
+ // Add methods to `Stack`.
312204
+ Stack.prototype.clear = stackClear;
312205
+ Stack.prototype['delete'] = stackDelete;
312206
+ Stack.prototype.get = stackGet;
312207
+ Stack.prototype.has = stackHas;
312208
+ Stack.prototype.set = stackSet;
312209
+
312210
+ /**
312211
+ * Creates an array of the enumerable property names of the array-like `value`.
312212
+ *
312213
+ * @private
312214
+ * @param {*} value The value to query.
312215
+ * @param {boolean} inherited Specify returning inherited property names.
312216
+ * @returns {Array} Returns the array of property names.
312217
+ */
312218
+ function arrayLikeKeys(value, inherited) {
312219
+ var isArr = isArray(value),
312220
+ isArg = !isArr && isArguments(value),
312221
+ isBuff = !isArr && !isArg && isBuffer(value),
312222
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
312223
+ skipIndexes = isArr || isArg || isBuff || isType,
312224
+ result = skipIndexes ? baseTimes(value.length, String) : [],
312225
+ length = result.length;
312226
+
312227
+ for (var key in value) {
312228
+ if ((inherited || hasOwnProperty.call(value, key)) &&
312229
+ !(skipIndexes && (
312230
+ // Safari 9 has enumerable `arguments.length` in strict mode.
312231
+ key == 'length' ||
312232
+ // Node.js 0.10 has enumerable non-index properties on buffers.
312233
+ (isBuff && (key == 'offset' || key == 'parent')) ||
312234
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
312235
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
312236
+ // Skip index properties.
312237
+ isIndex(key, length)
312238
+ ))) {
312239
+ result.push(key);
312240
+ }
312241
+ }
312242
+ return result;
312243
+ }
312244
+
312245
+ /**
312246
+ * This function is like `assignValue` except that it doesn't assign
312247
+ * `undefined` values.
312248
+ *
312249
+ * @private
312250
+ * @param {Object} object The object to modify.
312251
+ * @param {string} key The key of the property to assign.
312252
+ * @param {*} value The value to assign.
312253
+ */
312254
+ function assignMergeValue(object, key, value) {
312255
+ if ((value !== undefined && !eq(object[key], value)) ||
312256
+ (value === undefined && !(key in object))) {
312257
+ baseAssignValue(object, key, value);
312258
+ }
312259
+ }
312260
+
312261
+ /**
312262
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
312263
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
312264
+ * for equality comparisons.
312265
+ *
312266
+ * @private
312267
+ * @param {Object} object The object to modify.
312268
+ * @param {string} key The key of the property to assign.
312269
+ * @param {*} value The value to assign.
312270
+ */
312271
+ function assignValue(object, key, value) {
312272
+ var objValue = object[key];
312273
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
312274
+ (value === undefined && !(key in object))) {
312275
+ baseAssignValue(object, key, value);
312276
+ }
312277
+ }
312278
+
312279
+ /**
312280
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
312281
+ *
312282
+ * @private
312283
+ * @param {Array} array The array to inspect.
312284
+ * @param {*} key The key to search for.
312285
+ * @returns {number} Returns the index of the matched value, else `-1`.
312286
+ */
312287
+ function assocIndexOf(array, key) {
312288
+ var length = array.length;
312289
+ while (length--) {
312290
+ if (eq(array[length][0], key)) {
312291
+ return length;
312292
+ }
312293
+ }
312294
+ return -1;
312295
+ }
312296
+
312297
+ /**
312298
+ * The base implementation of `assignValue` and `assignMergeValue` without
312299
+ * value checks.
312300
+ *
312301
+ * @private
312302
+ * @param {Object} object The object to modify.
312303
+ * @param {string} key The key of the property to assign.
312304
+ * @param {*} value The value to assign.
312305
+ */
312306
+ function baseAssignValue(object, key, value) {
312307
+ if (key == '__proto__' && defineProperty) {
312308
+ defineProperty(object, key, {
312309
+ 'configurable': true,
312310
+ 'enumerable': true,
312311
+ 'value': value,
312312
+ 'writable': true
312313
+ });
312314
+ } else {
312315
+ object[key] = value;
312316
+ }
312317
+ }
312318
+
312319
+ /**
312320
+ * The base implementation of `baseForOwn` which iterates over `object`
312321
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
312322
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
312323
+ *
312324
+ * @private
312325
+ * @param {Object} object The object to iterate over.
312326
+ * @param {Function} iteratee The function invoked per iteration.
312327
+ * @param {Function} keysFunc The function to get the keys of `object`.
312328
+ * @returns {Object} Returns `object`.
312329
+ */
312330
+ var baseFor = createBaseFor();
312331
+
312332
+ /**
312333
+ * The base implementation of `getTag` without fallbacks for buggy environments.
312334
+ *
312335
+ * @private
312336
+ * @param {*} value The value to query.
312337
+ * @returns {string} Returns the `toStringTag`.
312338
+ */
312339
+ function baseGetTag(value) {
312340
+ if (value == null) {
312341
+ return value === undefined ? undefinedTag : nullTag;
312342
+ }
312343
+ return (symToStringTag && symToStringTag in Object(value))
312344
+ ? getRawTag(value)
312345
+ : objectToString(value);
312346
+ }
312347
+
312348
+ /**
312349
+ * The base implementation of `_.isArguments`.
312350
+ *
312351
+ * @private
312352
+ * @param {*} value The value to check.
312353
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
312354
+ */
312355
+ function baseIsArguments(value) {
312356
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
312357
+ }
312358
+
312359
+ /**
312360
+ * The base implementation of `_.isNative` without bad shim checks.
312361
+ *
312362
+ * @private
312363
+ * @param {*} value The value to check.
312364
+ * @returns {boolean} Returns `true` if `value` is a native function,
312365
+ * else `false`.
312366
+ */
312367
+ function baseIsNative(value) {
312368
+ if (!isObject(value) || isMasked(value)) {
312369
+ return false;
312370
+ }
312371
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
312372
+ return pattern.test(toSource(value));
312373
+ }
312374
+
312375
+ /**
312376
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
312377
+ *
312378
+ * @private
312379
+ * @param {*} value The value to check.
312380
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
312381
+ */
312382
+ function baseIsTypedArray(value) {
312383
+ return isObjectLike(value) &&
312384
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
312385
+ }
312386
+
312387
+ /**
312388
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
312389
+ *
312390
+ * @private
312391
+ * @param {Object} object The object to query.
312392
+ * @returns {Array} Returns the array of property names.
312393
+ */
312394
+ function baseKeysIn(object) {
312395
+ if (!isObject(object)) {
312396
+ return nativeKeysIn(object);
312397
+ }
312398
+ var isProto = isPrototype(object),
312399
+ result = [];
312400
+
312401
+ for (var key in object) {
312402
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
312403
+ result.push(key);
312404
+ }
312405
+ }
312406
+ return result;
312407
+ }
312408
+
312409
+ /**
312410
+ * The base implementation of `_.merge` without support for multiple sources.
312411
+ *
312412
+ * @private
312413
+ * @param {Object} object The destination object.
312414
+ * @param {Object} source The source object.
312415
+ * @param {number} srcIndex The index of `source`.
312416
+ * @param {Function} [customizer] The function to customize merged values.
312417
+ * @param {Object} [stack] Tracks traversed source values and their merged
312418
+ * counterparts.
312419
+ */
312420
+ function baseMerge(object, source, srcIndex, customizer, stack) {
312421
+ if (object === source) {
312422
+ return;
312423
+ }
312424
+ baseFor(source, function(srcValue, key) {
312425
+ stack || (stack = new Stack);
312426
+ if (isObject(srcValue)) {
312427
+ baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
312428
+ }
312429
+ else {
312430
+ var newValue = customizer
312431
+ ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
312432
+ : undefined;
312433
+
312434
+ if (newValue === undefined) {
312435
+ newValue = srcValue;
312436
+ }
312437
+ assignMergeValue(object, key, newValue);
312438
+ }
312439
+ }, keysIn);
312440
+ }
312441
+
312442
+ /**
312443
+ * A specialized version of `baseMerge` for arrays and objects which performs
312444
+ * deep merges and tracks traversed objects enabling objects with circular
312445
+ * references to be merged.
312446
+ *
312447
+ * @private
312448
+ * @param {Object} object The destination object.
312449
+ * @param {Object} source The source object.
312450
+ * @param {string} key The key of the value to merge.
312451
+ * @param {number} srcIndex The index of `source`.
312452
+ * @param {Function} mergeFunc The function to merge values.
312453
+ * @param {Function} [customizer] The function to customize assigned values.
312454
+ * @param {Object} [stack] Tracks traversed source values and their merged
312455
+ * counterparts.
312456
+ */
312457
+ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
312458
+ var objValue = safeGet(object, key),
312459
+ srcValue = safeGet(source, key),
312460
+ stacked = stack.get(srcValue);
312461
+
312462
+ if (stacked) {
312463
+ assignMergeValue(object, key, stacked);
312464
+ return;
312465
+ }
312466
+ var newValue = customizer
312467
+ ? customizer(objValue, srcValue, (key + ''), object, source, stack)
312468
+ : undefined;
312469
+
312470
+ var isCommon = newValue === undefined;
312471
+
312472
+ if (isCommon) {
312473
+ var isArr = isArray(srcValue),
312474
+ isBuff = !isArr && isBuffer(srcValue),
312475
+ isTyped = !isArr && !isBuff && isTypedArray(srcValue);
312476
+
312477
+ newValue = srcValue;
312478
+ if (isArr || isBuff || isTyped) {
312479
+ if (isArray(objValue)) {
312480
+ newValue = objValue;
312481
+ }
312482
+ else if (isArrayLikeObject(objValue)) {
312483
+ newValue = copyArray(objValue);
312484
+ }
312485
+ else if (isBuff) {
312486
+ isCommon = false;
312487
+ newValue = cloneBuffer(srcValue, true);
312488
+ }
312489
+ else if (isTyped) {
312490
+ isCommon = false;
312491
+ newValue = cloneTypedArray(srcValue, true);
312492
+ }
312493
+ else {
312494
+ newValue = [];
312495
+ }
312496
+ }
312497
+ else if (isPlainObject(srcValue) || isArguments(srcValue)) {
312498
+ newValue = objValue;
312499
+ if (isArguments(objValue)) {
312500
+ newValue = toPlainObject(objValue);
312501
+ }
312502
+ else if (!isObject(objValue) || isFunction(objValue)) {
312503
+ newValue = initCloneObject(srcValue);
312504
+ }
312505
+ }
312506
+ else {
312507
+ isCommon = false;
312508
+ }
312509
+ }
312510
+ if (isCommon) {
312511
+ // Recursively merge objects and arrays (susceptible to call stack limits).
312512
+ stack.set(srcValue, newValue);
312513
+ mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
312514
+ stack['delete'](srcValue);
312515
+ }
312516
+ assignMergeValue(object, key, newValue);
312517
+ }
312518
+
312519
+ /**
312520
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
312521
+ *
312522
+ * @private
312523
+ * @param {Function} func The function to apply a rest parameter to.
312524
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
312525
+ * @returns {Function} Returns the new function.
312526
+ */
312527
+ function baseRest(func, start) {
312528
+ return setToString(overRest(func, start, identity), func + '');
312529
+ }
312530
+
312531
+ /**
312532
+ * The base implementation of `setToString` without support for hot loop shorting.
312533
+ *
312534
+ * @private
312535
+ * @param {Function} func The function to modify.
312536
+ * @param {Function} string The `toString` result.
312537
+ * @returns {Function} Returns `func`.
312538
+ */
312539
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
312540
+ return defineProperty(func, 'toString', {
312541
+ 'configurable': true,
312542
+ 'enumerable': false,
312543
+ 'value': constant(string),
312544
+ 'writable': true
312545
+ });
312546
+ };
312547
+
312548
+ /**
312549
+ * Creates a clone of `buffer`.
312550
+ *
312551
+ * @private
312552
+ * @param {Buffer} buffer The buffer to clone.
312553
+ * @param {boolean} [isDeep] Specify a deep clone.
312554
+ * @returns {Buffer} Returns the cloned buffer.
312555
+ */
312556
+ function cloneBuffer(buffer, isDeep) {
312557
+ if (isDeep) {
312558
+ return buffer.slice();
312559
+ }
312560
+ var length = buffer.length,
312561
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
312562
+
312563
+ buffer.copy(result);
312564
+ return result;
312565
+ }
312566
+
312567
+ /**
312568
+ * Creates a clone of `arrayBuffer`.
312569
+ *
312570
+ * @private
312571
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
312572
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
312573
+ */
312574
+ function cloneArrayBuffer(arrayBuffer) {
312575
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
312576
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
312577
+ return result;
312578
+ }
312579
+
312580
+ /**
312581
+ * Creates a clone of `typedArray`.
312582
+ *
312583
+ * @private
312584
+ * @param {Object} typedArray The typed array to clone.
312585
+ * @param {boolean} [isDeep] Specify a deep clone.
312586
+ * @returns {Object} Returns the cloned typed array.
312587
+ */
312588
+ function cloneTypedArray(typedArray, isDeep) {
312589
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
312590
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
312591
+ }
312592
+
312593
+ /**
312594
+ * Copies the values of `source` to `array`.
312595
+ *
312596
+ * @private
312597
+ * @param {Array} source The array to copy values from.
312598
+ * @param {Array} [array=[]] The array to copy values to.
312599
+ * @returns {Array} Returns `array`.
312600
+ */
312601
+ function copyArray(source, array) {
312602
+ var index = -1,
312603
+ length = source.length;
312604
+
312605
+ array || (array = Array(length));
312606
+ while (++index < length) {
312607
+ array[index] = source[index];
312608
+ }
312609
+ return array;
312610
+ }
312611
+
312612
+ /**
312613
+ * Copies properties of `source` to `object`.
312614
+ *
312615
+ * @private
312616
+ * @param {Object} source The object to copy properties from.
312617
+ * @param {Array} props The property identifiers to copy.
312618
+ * @param {Object} [object={}] The object to copy properties to.
312619
+ * @param {Function} [customizer] The function to customize copied values.
312620
+ * @returns {Object} Returns `object`.
312621
+ */
312622
+ function copyObject(source, props, object, customizer) {
312623
+ var isNew = !object;
312624
+ object || (object = {});
312625
+
312626
+ var index = -1,
312627
+ length = props.length;
312628
+
312629
+ while (++index < length) {
312630
+ var key = props[index];
312631
+
312632
+ var newValue = customizer
312633
+ ? customizer(object[key], source[key], key, object, source)
312634
+ : undefined;
312635
+
312636
+ if (newValue === undefined) {
312637
+ newValue = source[key];
312638
+ }
312639
+ if (isNew) {
312640
+ baseAssignValue(object, key, newValue);
312641
+ } else {
312642
+ assignValue(object, key, newValue);
312643
+ }
312644
+ }
312645
+ return object;
312646
+ }
312647
+
312648
+ /**
312649
+ * Creates a function like `_.assign`.
312650
+ *
312651
+ * @private
312652
+ * @param {Function} assigner The function to assign values.
312653
+ * @returns {Function} Returns the new assigner function.
312654
+ */
312655
+ function createAssigner(assigner) {
312656
+ return baseRest(function(object, sources) {
312657
+ var index = -1,
312658
+ length = sources.length,
312659
+ customizer = length > 1 ? sources[length - 1] : undefined,
312660
+ guard = length > 2 ? sources[2] : undefined;
312661
+
312662
+ customizer = (assigner.length > 3 && typeof customizer == 'function')
312663
+ ? (length--, customizer)
312664
+ : undefined;
312665
+
312666
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
312667
+ customizer = length < 3 ? undefined : customizer;
312668
+ length = 1;
312669
+ }
312670
+ object = Object(object);
312671
+ while (++index < length) {
312672
+ var source = sources[index];
312673
+ if (source) {
312674
+ assigner(object, source, index, customizer);
312675
+ }
312676
+ }
312677
+ return object;
312678
+ });
312679
+ }
312680
+
312681
+ /**
312682
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
312683
+ *
312684
+ * @private
312685
+ * @param {boolean} [fromRight] Specify iterating from right to left.
312686
+ * @returns {Function} Returns the new base function.
312687
+ */
312688
+ function createBaseFor(fromRight) {
312689
+ return function(object, iteratee, keysFunc) {
312690
+ var index = -1,
312691
+ iterable = Object(object),
312692
+ props = keysFunc(object),
312693
+ length = props.length;
312694
+
312695
+ while (length--) {
312696
+ var key = props[fromRight ? length : ++index];
312697
+ if (iteratee(iterable[key], key, iterable) === false) {
312698
+ break;
312699
+ }
312700
+ }
312701
+ return object;
312702
+ };
312703
+ }
312704
+
312705
+ /**
312706
+ * Gets the data for `map`.
312707
+ *
312708
+ * @private
312709
+ * @param {Object} map The map to query.
312710
+ * @param {string} key The reference key.
312711
+ * @returns {*} Returns the map data.
312712
+ */
312713
+ function getMapData(map, key) {
312714
+ var data = map.__data__;
312715
+ return isKeyable(key)
312716
+ ? data[typeof key == 'string' ? 'string' : 'hash']
312717
+ : data.map;
312718
+ }
312719
+
312720
+ /**
312721
+ * Gets the native function at `key` of `object`.
312722
+ *
312723
+ * @private
312724
+ * @param {Object} object The object to query.
312725
+ * @param {string} key The key of the method to get.
312726
+ * @returns {*} Returns the function if it's native, else `undefined`.
312727
+ */
312728
+ function getNative(object, key) {
312729
+ var value = getValue(object, key);
312730
+ return baseIsNative(value) ? value : undefined;
312731
+ }
312732
+
312733
+ /**
312734
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
312735
+ *
312736
+ * @private
312737
+ * @param {*} value The value to query.
312738
+ * @returns {string} Returns the raw `toStringTag`.
312739
+ */
312740
+ function getRawTag(value) {
312741
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
312742
+ tag = value[symToStringTag];
312743
+
312744
+ try {
312745
+ value[symToStringTag] = undefined;
312746
+ var unmasked = true;
312747
+ } catch (e) {}
312748
+
312749
+ var result = nativeObjectToString.call(value);
312750
+ if (unmasked) {
312751
+ if (isOwn) {
312752
+ value[symToStringTag] = tag;
312753
+ } else {
312754
+ delete value[symToStringTag];
312755
+ }
312756
+ }
312757
+ return result;
312758
+ }
312759
+
312760
+ /**
312761
+ * Initializes an object clone.
312762
+ *
312763
+ * @private
312764
+ * @param {Object} object The object to clone.
312765
+ * @returns {Object} Returns the initialized clone.
312766
+ */
312767
+ function initCloneObject(object) {
312768
+ return (typeof object.constructor == 'function' && !isPrototype(object))
312769
+ ? baseCreate(getPrototype(object))
312770
+ : {};
312771
+ }
312772
+
312773
+ /**
312774
+ * Checks if `value` is a valid array-like index.
312775
+ *
312776
+ * @private
312777
+ * @param {*} value The value to check.
312778
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
312779
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
312780
+ */
312781
+ function isIndex(value, length) {
312782
+ var type = typeof value;
312783
+ length = length == null ? MAX_SAFE_INTEGER : length;
312784
+
312785
+ return !!length &&
312786
+ (type == 'number' ||
312787
+ (type != 'symbol' && reIsUint.test(value))) &&
312788
+ (value > -1 && value % 1 == 0 && value < length);
312789
+ }
312790
+
312791
+ /**
312792
+ * Checks if the given arguments are from an iteratee call.
312793
+ *
312794
+ * @private
312795
+ * @param {*} value The potential iteratee value argument.
312796
+ * @param {*} index The potential iteratee index or key argument.
312797
+ * @param {*} object The potential iteratee object argument.
312798
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
312799
+ * else `false`.
312800
+ */
312801
+ function isIterateeCall(value, index, object) {
312802
+ if (!isObject(object)) {
312803
+ return false;
312804
+ }
312805
+ var type = typeof index;
312806
+ if (type == 'number'
312807
+ ? (isArrayLike(object) && isIndex(index, object.length))
312808
+ : (type == 'string' && index in object)
312809
+ ) {
312810
+ return eq(object[index], value);
312811
+ }
312812
+ return false;
312813
+ }
312814
+
312815
+ /**
312816
+ * Checks if `value` is suitable for use as unique object key.
312817
+ *
312818
+ * @private
312819
+ * @param {*} value The value to check.
312820
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
312821
+ */
312822
+ function isKeyable(value) {
312823
+ var type = typeof value;
312824
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
312825
+ ? (value !== '__proto__')
312826
+ : (value === null);
312827
+ }
312828
+
312829
+ /**
312830
+ * Checks if `func` has its source masked.
312831
+ *
312832
+ * @private
312833
+ * @param {Function} func The function to check.
312834
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
312835
+ */
312836
+ function isMasked(func) {
312837
+ return !!maskSrcKey && (maskSrcKey in func);
312838
+ }
312839
+
312840
+ /**
312841
+ * Checks if `value` is likely a prototype object.
312842
+ *
312843
+ * @private
312844
+ * @param {*} value The value to check.
312845
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
312846
+ */
312847
+ function isPrototype(value) {
312848
+ var Ctor = value && value.constructor,
312849
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
312850
+
312851
+ return value === proto;
312852
+ }
312853
+
312854
+ /**
312855
+ * This function is like
312856
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
312857
+ * except that it includes inherited enumerable properties.
312858
+ *
312859
+ * @private
312860
+ * @param {Object} object The object to query.
312861
+ * @returns {Array} Returns the array of property names.
312862
+ */
312863
+ function nativeKeysIn(object) {
312864
+ var result = [];
312865
+ if (object != null) {
312866
+ for (var key in Object(object)) {
312867
+ result.push(key);
312868
+ }
312869
+ }
312870
+ return result;
312871
+ }
312872
+
312873
+ /**
312874
+ * Converts `value` to a string using `Object.prototype.toString`.
312875
+ *
312876
+ * @private
312877
+ * @param {*} value The value to convert.
312878
+ * @returns {string} Returns the converted string.
312879
+ */
312880
+ function objectToString(value) {
312881
+ return nativeObjectToString.call(value);
312882
+ }
312883
+
312884
+ /**
312885
+ * A specialized version of `baseRest` which transforms the rest array.
312886
+ *
312887
+ * @private
312888
+ * @param {Function} func The function to apply a rest parameter to.
312889
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
312890
+ * @param {Function} transform The rest array transform.
312891
+ * @returns {Function} Returns the new function.
312892
+ */
312893
+ function overRest(func, start, transform) {
312894
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
312895
+ return function() {
312896
+ var args = arguments,
312897
+ index = -1,
312898
+ length = nativeMax(args.length - start, 0),
312899
+ array = Array(length);
312900
+
312901
+ while (++index < length) {
312902
+ array[index] = args[start + index];
312903
+ }
312904
+ index = -1;
312905
+ var otherArgs = Array(start + 1);
312906
+ while (++index < start) {
312907
+ otherArgs[index] = args[index];
312908
+ }
312909
+ otherArgs[start] = transform(array);
312910
+ return apply(func, this, otherArgs);
312911
+ };
312912
+ }
312913
+
312914
+ /**
312915
+ * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
312916
+ *
312917
+ * @private
312918
+ * @param {Object} object The object to query.
312919
+ * @param {string} key The key of the property to get.
312920
+ * @returns {*} Returns the property value.
312921
+ */
312922
+ function safeGet(object, key) {
312923
+ if (key === 'constructor' && typeof object[key] === 'function') {
312924
+ return;
312925
+ }
312926
+
312927
+ if (key == '__proto__') {
312928
+ return;
312929
+ }
312930
+
312931
+ return object[key];
312932
+ }
312933
+
312934
+ /**
312935
+ * Sets the `toString` method of `func` to return `string`.
312936
+ *
312937
+ * @private
312938
+ * @param {Function} func The function to modify.
312939
+ * @param {Function} string The `toString` result.
312940
+ * @returns {Function} Returns `func`.
312941
+ */
312942
+ var setToString = shortOut(baseSetToString);
312943
+
312944
+ /**
312945
+ * Creates a function that'll short out and invoke `identity` instead
312946
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
312947
+ * milliseconds.
312948
+ *
312949
+ * @private
312950
+ * @param {Function} func The function to restrict.
312951
+ * @returns {Function} Returns the new shortable function.
312952
+ */
312953
+ function shortOut(func) {
312954
+ var count = 0,
312955
+ lastCalled = 0;
312956
+
312957
+ return function() {
312958
+ var stamp = nativeNow(),
312959
+ remaining = HOT_SPAN - (stamp - lastCalled);
312960
+
312961
+ lastCalled = stamp;
312962
+ if (remaining > 0) {
312963
+ if (++count >= HOT_COUNT) {
312964
+ return arguments[0];
312965
+ }
312966
+ } else {
312967
+ count = 0;
312968
+ }
312969
+ return func.apply(undefined, arguments);
312970
+ };
312971
+ }
312972
+
312973
+ /**
312974
+ * Converts `func` to its source code.
312975
+ *
312976
+ * @private
312977
+ * @param {Function} func The function to convert.
312978
+ * @returns {string} Returns the source code.
312979
+ */
312980
+ function toSource(func) {
312981
+ if (func != null) {
312982
+ try {
312983
+ return funcToString.call(func);
312984
+ } catch (e) {}
312985
+ try {
312986
+ return (func + '');
312987
+ } catch (e) {}
312988
+ }
312989
+ return '';
312990
+ }
312991
+
312992
+ /**
312993
+ * Performs a
312994
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
312995
+ * comparison between two values to determine if they are equivalent.
312996
+ *
312997
+ * @static
312998
+ * @memberOf _
312999
+ * @since 4.0.0
313000
+ * @category Lang
313001
+ * @param {*} value The value to compare.
313002
+ * @param {*} other The other value to compare.
313003
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
313004
+ * @example
313005
+ *
313006
+ * var object = { 'a': 1 };
313007
+ * var other = { 'a': 1 };
313008
+ *
313009
+ * _.eq(object, object);
313010
+ * // => true
313011
+ *
313012
+ * _.eq(object, other);
313013
+ * // => false
313014
+ *
313015
+ * _.eq('a', 'a');
313016
+ * // => true
313017
+ *
313018
+ * _.eq('a', Object('a'));
313019
+ * // => false
313020
+ *
313021
+ * _.eq(NaN, NaN);
313022
+ * // => true
313023
+ */
313024
+ function eq(value, other) {
313025
+ return value === other || (value !== value && other !== other);
313026
+ }
313027
+
313028
+ /**
313029
+ * Checks if `value` is likely an `arguments` object.
313030
+ *
313031
+ * @static
313032
+ * @memberOf _
313033
+ * @since 0.1.0
313034
+ * @category Lang
313035
+ * @param {*} value The value to check.
313036
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
313037
+ * else `false`.
313038
+ * @example
313039
+ *
313040
+ * _.isArguments(function() { return arguments; }());
313041
+ * // => true
313042
+ *
313043
+ * _.isArguments([1, 2, 3]);
313044
+ * // => false
313045
+ */
313046
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
313047
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
313048
+ !propertyIsEnumerable.call(value, 'callee');
313049
+ };
313050
+
313051
+ /**
313052
+ * Checks if `value` is classified as an `Array` object.
313053
+ *
313054
+ * @static
313055
+ * @memberOf _
313056
+ * @since 0.1.0
313057
+ * @category Lang
313058
+ * @param {*} value The value to check.
313059
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
313060
+ * @example
313061
+ *
313062
+ * _.isArray([1, 2, 3]);
313063
+ * // => true
313064
+ *
313065
+ * _.isArray(document.body.children);
313066
+ * // => false
313067
+ *
313068
+ * _.isArray('abc');
313069
+ * // => false
313070
+ *
313071
+ * _.isArray(_.noop);
313072
+ * // => false
313073
+ */
313074
+ var isArray = Array.isArray;
313075
+
313076
+ /**
313077
+ * Checks if `value` is array-like. A value is considered array-like if it's
313078
+ * not a function and has a `value.length` that's an integer greater than or
313079
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
313080
+ *
313081
+ * @static
313082
+ * @memberOf _
313083
+ * @since 4.0.0
313084
+ * @category Lang
313085
+ * @param {*} value The value to check.
313086
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
313087
+ * @example
313088
+ *
313089
+ * _.isArrayLike([1, 2, 3]);
313090
+ * // => true
313091
+ *
313092
+ * _.isArrayLike(document.body.children);
313093
+ * // => true
313094
+ *
313095
+ * _.isArrayLike('abc');
313096
+ * // => true
313097
+ *
313098
+ * _.isArrayLike(_.noop);
313099
+ * // => false
313100
+ */
313101
+ function isArrayLike(value) {
313102
+ return value != null && isLength(value.length) && !isFunction(value);
313103
+ }
313104
+
313105
+ /**
313106
+ * This method is like `_.isArrayLike` except that it also checks if `value`
313107
+ * is an object.
311220
313108
  *
311221
313109
  * @static
311222
313110
  * @memberOf _
311223
- * @since 4.3.0
313111
+ * @since 4.0.0
311224
313112
  * @category Lang
311225
313113
  * @param {*} value The value to check.
311226
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
313114
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
313115
+ * else `false`.
311227
313116
  * @example
311228
313117
  *
311229
- * _.isBuffer(new Buffer(2));
313118
+ * _.isArrayLikeObject([1, 2, 3]);
311230
313119
  * // => true
311231
313120
  *
311232
- * _.isBuffer(new Uint8Array(2));
313121
+ * _.isArrayLikeObject(document.body.children);
313122
+ * // => true
313123
+ *
313124
+ * _.isArrayLikeObject('abc');
313125
+ * // => false
313126
+ *
313127
+ * _.isArrayLikeObject(_.noop);
311233
313128
  * // => false
311234
313129
  */
311235
- var isBuffer = nativeIsBuffer || stubFalse;
313130
+ function isArrayLikeObject(value) {
313131
+ return isObjectLike(value) && isArrayLike(value);
313132
+ }
311236
313133
 
311237
313134
  /**
311238
- * Performs a deep comparison between two values to determine if they are
311239
- * equivalent.
311240
- *
311241
- * **Note:** This method supports comparing arrays, array buffers, booleans,
311242
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
311243
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
311244
- * by their own, not inherited, enumerable properties. Functions and DOM
311245
- * nodes are compared by strict equality, i.e. `===`.
313135
+ * Checks if `value` is a buffer.
311246
313136
  *
311247
313137
  * @static
311248
313138
  * @memberOf _
311249
- * @since 0.1.0
313139
+ * @since 4.3.0
311250
313140
  * @category Lang
311251
- * @param {*} value The value to compare.
311252
- * @param {*} other The other value to compare.
311253
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
313141
+ * @param {*} value The value to check.
313142
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
311254
313143
  * @example
311255
313144
  *
311256
- * var object = { 'a': 1 };
311257
- * var other = { 'a': 1 };
311258
- *
311259
- * _.isEqual(object, other);
313145
+ * _.isBuffer(new Buffer(2));
311260
313146
  * // => true
311261
313147
  *
311262
- * object === other;
313148
+ * _.isBuffer(new Uint8Array(2));
311263
313149
  * // => false
311264
313150
  */
311265
- function isEqual(value, other) {
311266
- return baseIsEqual(value, other);
311267
- }
313151
+ var isBuffer = nativeIsBuffer || stubFalse;
311268
313152
 
311269
313153
  /**
311270
313154
  * Checks if `value` is classified as a `Function` object.
@@ -311382,6 +313266,47 @@ function isObjectLike(value) {
311382
313266
  return value != null && typeof value == 'object';
311383
313267
  }
311384
313268
 
313269
+ /**
313270
+ * Checks if `value` is a plain object, that is, an object created by the
313271
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
313272
+ *
313273
+ * @static
313274
+ * @memberOf _
313275
+ * @since 0.8.0
313276
+ * @category Lang
313277
+ * @param {*} value The value to check.
313278
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
313279
+ * @example
313280
+ *
313281
+ * function Foo() {
313282
+ * this.a = 1;
313283
+ * }
313284
+ *
313285
+ * _.isPlainObject(new Foo);
313286
+ * // => false
313287
+ *
313288
+ * _.isPlainObject([1, 2, 3]);
313289
+ * // => false
313290
+ *
313291
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
313292
+ * // => true
313293
+ *
313294
+ * _.isPlainObject(Object.create(null));
313295
+ * // => true
313296
+ */
313297
+ function isPlainObject(value) {
313298
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
313299
+ return false;
313300
+ }
313301
+ var proto = getPrototype(value);
313302
+ if (proto === null) {
313303
+ return true;
313304
+ }
313305
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
313306
+ return typeof Ctor == 'function' && Ctor instanceof Ctor &&
313307
+ funcToString.call(Ctor) == objectCtorString;
313308
+ }
313309
+
311385
313310
  /**
311386
313311
  * Checks if `value` is classified as a typed array.
311387
313312
  *
@@ -311402,15 +313327,41 @@ function isObjectLike(value) {
311402
313327
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
311403
313328
 
311404
313329
  /**
311405
- * Creates an array of the own enumerable property names of `object`.
313330
+ * Converts `value` to a plain object flattening inherited enumerable string
313331
+ * keyed properties of `value` to own properties of the plain object.
311406
313332
  *
311407
- * **Note:** Non-object values are coerced to objects. See the
311408
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
311409
- * for more details.
313333
+ * @static
313334
+ * @memberOf _
313335
+ * @since 3.0.0
313336
+ * @category Lang
313337
+ * @param {*} value The value to convert.
313338
+ * @returns {Object} Returns the converted plain object.
313339
+ * @example
313340
+ *
313341
+ * function Foo() {
313342
+ * this.b = 2;
313343
+ * }
313344
+ *
313345
+ * Foo.prototype.c = 3;
313346
+ *
313347
+ * _.assign({ 'a': 1 }, new Foo);
313348
+ * // => { 'a': 1, 'b': 2 }
313349
+ *
313350
+ * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
313351
+ * // => { 'a': 1, 'b': 2, 'c': 3 }
313352
+ */
313353
+ function toPlainObject(value) {
313354
+ return copyObject(value, keysIn(value));
313355
+ }
313356
+
313357
+ /**
313358
+ * Creates an array of the own and inherited enumerable property names of `object`.
313359
+ *
313360
+ * **Note:** Non-object values are coerced to objects.
311410
313361
  *
311411
313362
  * @static
311412
- * @since 0.1.0
311413
313363
  * @memberOf _
313364
+ * @since 3.0.0
311414
313365
  * @category Object
311415
313366
  * @param {Object} object The object to query.
311416
313367
  * @returns {Array} Returns the array of property names.
@@ -311423,36 +313374,91 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
311423
313374
  *
311424
313375
  * Foo.prototype.c = 3;
311425
313376
  *
311426
- * _.keys(new Foo);
311427
- * // => ['a', 'b'] (iteration order is not guaranteed)
311428
- *
311429
- * _.keys('hi');
311430
- * // => ['0', '1']
313377
+ * _.keysIn(new Foo);
313378
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
311431
313379
  */
311432
- function keys(object) {
311433
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
313380
+ function keysIn(object) {
313381
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
311434
313382
  }
311435
313383
 
311436
313384
  /**
311437
- * This method returns a new empty array.
313385
+ * This method is like `_.assign` except that it recursively merges own and
313386
+ * inherited enumerable string keyed properties of source objects into the
313387
+ * destination object. Source properties that resolve to `undefined` are
313388
+ * skipped if a destination value exists. Array and plain object properties
313389
+ * are merged recursively. Other objects and value types are overridden by
313390
+ * assignment. Source objects are applied from left to right. Subsequent
313391
+ * sources overwrite property assignments of previous sources.
313392
+ *
313393
+ * **Note:** This method mutates `object`.
311438
313394
  *
311439
313395
  * @static
311440
313396
  * @memberOf _
311441
- * @since 4.13.0
313397
+ * @since 0.5.0
313398
+ * @category Object
313399
+ * @param {Object} object The destination object.
313400
+ * @param {...Object} [sources] The source objects.
313401
+ * @returns {Object} Returns `object`.
313402
+ * @example
313403
+ *
313404
+ * var object = {
313405
+ * 'a': [{ 'b': 2 }, { 'd': 4 }]
313406
+ * };
313407
+ *
313408
+ * var other = {
313409
+ * 'a': [{ 'c': 3 }, { 'e': 5 }]
313410
+ * };
313411
+ *
313412
+ * _.merge(object, other);
313413
+ * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
313414
+ */
313415
+ var merge = createAssigner(function(object, source, srcIndex) {
313416
+ baseMerge(object, source, srcIndex);
313417
+ });
313418
+
313419
+ /**
313420
+ * Creates a function that returns `value`.
313421
+ *
313422
+ * @static
313423
+ * @memberOf _
313424
+ * @since 2.4.0
311442
313425
  * @category Util
311443
- * @returns {Array} Returns the new empty array.
313426
+ * @param {*} value The value to return from the new function.
313427
+ * @returns {Function} Returns the new constant function.
311444
313428
  * @example
311445
313429
  *
311446
- * var arrays = _.times(2, _.stubArray);
313430
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
311447
313431
  *
311448
- * console.log(arrays);
311449
- * // => [[], []]
313432
+ * console.log(objects);
313433
+ * // => [{ 'a': 1 }, { 'a': 1 }]
311450
313434
  *
311451
- * console.log(arrays[0] === arrays[1]);
311452
- * // => false
313435
+ * console.log(objects[0] === objects[1]);
313436
+ * // => true
311453
313437
  */
311454
- function stubArray() {
311455
- return [];
313438
+ function constant(value) {
313439
+ return function() {
313440
+ return value;
313441
+ };
313442
+ }
313443
+
313444
+ /**
313445
+ * This method returns the first argument it receives.
313446
+ *
313447
+ * @static
313448
+ * @since 0.1.0
313449
+ * @memberOf _
313450
+ * @category Util
313451
+ * @param {*} value Any value.
313452
+ * @returns {*} Returns `value`.
313453
+ * @example
313454
+ *
313455
+ * var object = { 'a': 1 };
313456
+ *
313457
+ * console.log(_.identity(object) === object);
313458
+ * // => true
313459
+ */
313460
+ function identity(value) {
313461
+ return value;
311456
313462
  }
311457
313463
 
311458
313464
  /**
@@ -311472,12 +313478,12 @@ function stubFalse() {
311472
313478
  return false;
311473
313479
  }
311474
313480
 
311475
- module.exports = isEqual;
313481
+ module.exports = merge;
311476
313482
 
311477
313483
 
311478
313484
  /***/ }),
311479
313485
 
311480
- /***/ 40592:
313486
+ /***/ 77928:
311481
313487
  /***/ ((module, exports, __webpack_require__) => {
311482
313488
 
311483
313489
  /* module decorator */ module = __webpack_require__.nmd(module);
@@ -313361,38 +315367,38 @@ function keysIn(object) {
313361
315367
  }
313362
315368
 
313363
315369
  /**
313364
- * This method is like `_.assign` except that it recursively merges own and
313365
- * inherited enumerable string keyed properties of source objects into the
313366
- * destination object. Source properties that resolve to `undefined` are
313367
- * skipped if a destination value exists. Array and plain object properties
313368
- * are merged recursively. Other objects and value types are overridden by
313369
- * assignment. Source objects are applied from left to right. Subsequent
313370
- * sources overwrite property assignments of previous sources.
315370
+ * This method is like `_.merge` except that it accepts `customizer` which
315371
+ * is invoked to produce the merged values of the destination and source
315372
+ * properties. If `customizer` returns `undefined`, merging is handled by the
315373
+ * method instead. The `customizer` is invoked with six arguments:
315374
+ * (objValue, srcValue, key, object, source, stack).
313371
315375
  *
313372
315376
  * **Note:** This method mutates `object`.
313373
315377
  *
313374
315378
  * @static
313375
315379
  * @memberOf _
313376
- * @since 0.5.0
315380
+ * @since 4.0.0
313377
315381
  * @category Object
313378
315382
  * @param {Object} object The destination object.
313379
- * @param {...Object} [sources] The source objects.
315383
+ * @param {...Object} sources The source objects.
315384
+ * @param {Function} customizer The function to customize assigned values.
313380
315385
  * @returns {Object} Returns `object`.
313381
315386
  * @example
313382
315387
  *
313383
- * var object = {
313384
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
313385
- * };
315388
+ * function customizer(objValue, srcValue) {
315389
+ * if (_.isArray(objValue)) {
315390
+ * return objValue.concat(srcValue);
315391
+ * }
315392
+ * }
313386
315393
  *
313387
- * var other = {
313388
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
313389
- * };
315394
+ * var object = { 'a': [1], 'b': [2] };
315395
+ * var other = { 'a': [3], 'b': [4] };
313390
315396
  *
313391
- * _.merge(object, other);
313392
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
315397
+ * _.mergeWith(object, other, customizer);
315398
+ * // => { 'a': [1, 3], 'b': [2, 4] }
313393
315399
  */
313394
- var merge = createAssigner(function(object, source, srcIndex) {
313395
- baseMerge(object, source, srcIndex);
315400
+ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
315401
+ baseMerge(object, source, srcIndex, customizer);
313396
315402
  });
313397
315403
 
313398
315404
  /**
@@ -313457,7 +315463,7 @@ function stubFalse() {
313457
315463
  return false;
313458
315464
  }
313459
315465
 
313460
- module.exports = merge;
315466
+ module.exports = mergeWith;
313461
315467
 
313462
315468
 
313463
315469
  /***/ }),
@@ -374787,7 +376793,7 @@ function __disposeResources(env) {
374787
376793
  /******/ // This function allow to reference async chunks
374788
376794
  /******/ __webpack_require__.u = (chunkId) => {
374789
376795
  /******/ // return url for filenames based on template
374790
- /******/ return "" + ({"54":"histogram-worker","525":"dicom-microscopy-viewer","572":"polySeg","584":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"14":"90dd112f5bc6f21d6ce1","54":"6b31e5ed4c4a7a6998f2","109":"b4fee2a22b622839baf5","121":"d1d51ac098a41f618eab","129":"29770734ee3882c107c0","139":"09e5af0a9ae8a285af77","140":"a58cbadd477749143dea","172":"e0ee762bee7496d6491e","194":"2dde300e0ed19254b6ba","211":"e8eea5d565da00092f57","218":"ec4ecebd17f837a87fff","236":"34db90a140e37d34fd71","265":"b32a0cc143efa80ee3cc","323":"955cc8f5eb5c01295118","342":"fcb2038060a062129d34","363":"34dddd70f4ffd669287e","370":"bd9884c274c26a54dfae","382":"df3ca2c99f3547b31d5b","404":"5410f69ce69c9857c805","444":"7d0ca442eef652e676fc","445":"38c6d2af64e41cd7c614","483":"0f1848f6a2cf34829fef","525":"d3a56dc9f62df5e11019","552":"274e23ec01ab41ad7189","555":"b2a12c8da6bb11dad2b7","572":"df492df5042827938ba4","584":"8f4b505fad3d371489fe","612":"297a033523539e0b47f9","644":"1e77691d2eeb96a423b0","675":"c9720f40fd7c7e9b7e54","717":"ea82dab5ef9f7f640319","722":"1242e0348afc63ca4f5e","726":"90d63d40a19b058034ee","792":"485ad2f98823a4b3feb1","799":"e744c0af4fdf31b180ac","806":"1632ea111682147bad5f","835":"5d1951da8bbc6afdf3e0","837":"ff9fe44bf863a5bceabc","853":"1ccbecc265671c9e009e","914":"e15be8089bf422ed7b51","920":"0b80f44e0e0df6829650","931":"058f8de4606f27b31f4f","944":"a58e0a80876da559f6b9","989":"47ce0ed7ca8119f2a0f9"}[chunkId] + ".js";
376796
+ /******/ return "" + ({"54":"histogram-worker","525":"dicom-microscopy-viewer","572":"polySeg","584":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"14":"d536d02ff54422b05069","54":"6b31e5ed4c4a7a6998f2","109":"b4fee2a22b622839baf5","121":"e84fd9082e4ff552b4d8","129":"6bfdab098f4ab3844069","139":"09e5af0a9ae8a285af77","140":"2f9a001b78d1f01445ec","172":"e0ee762bee7496d6491e","194":"847c40683b31e1421615","211":"dc5964c30ef01d34ef69","218":"75b2b5b1af357c6ae97b","236":"34db90a140e37d34fd71","265":"b32a0cc143efa80ee3cc","323":"955cc8f5eb5c01295118","342":"fcb2038060a062129d34","363":"99f8cdb6a82b63f969be","370":"bd9884c274c26a54dfae","382":"98c39334a37d9de18bec","404":"5410f69ce69c9857c805","444":"519b2e76799d24bb6dec","445":"38c6d2af64e41cd7c614","483":"0f1848f6a2cf34829fef","525":"d3a56dc9f62df5e11019","552":"35ae9de06a31efc69f3d","555":"d0e8636dc8c9c5820428","572":"df492df5042827938ba4","584":"8f4b505fad3d371489fe","612":"297a033523539e0b47f9","644":"1e77691d2eeb96a423b0","675":"c9720f40fd7c7e9b7e54","717":"41b3a4b2e0d02e2635d6","722":"1242e0348afc63ca4f5e","726":"90d63d40a19b058034ee","792":"485ad2f98823a4b3feb1","799":"7e14c4e0d02553ec1b34","806":"d7e98022b0170e228b89","835":"5d1951da8bbc6afdf3e0","837":"ff9fe44bf863a5bceabc","853":"aa373fa42b78d5f3d286","914":"e15be8089bf422ed7b51","920":"e6800eda8051988fc576","931":"058f8de4606f27b31f4f","944":"16aa40172eb400645bc7","989":"1cdfc95272e88701bf85"}[chunkId] + ".js";
374791
376797
  /******/ };
374792
376798
  /******/ })();
374793
376799
  /******/