@typeolymp/ui-components 1.19.7 → 1.19.8

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.
package/build/index.js CHANGED
@@ -4520,7 +4520,7 @@ function requiredArgs(required, args) {
4520
4520
  }
4521
4521
  }
4522
4522
 
4523
- function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
4523
+ function _typeof$y(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$y = function _typeof(obj) { return typeof obj; }; } else { _typeof$y = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$y(obj); }
4524
4524
  /**
4525
4525
  * @name toDate
4526
4526
  * @category Common Helpers
@@ -4556,7 +4556,7 @@ function toDate(argument) {
4556
4556
  requiredArgs(1, arguments);
4557
4557
  var argStr = Object.prototype.toString.call(argument); // Clone the date
4558
4558
 
4559
- if (argument instanceof Date || _typeof$u(argument) === 'object' && argStr === '[object Date]') {
4559
+ if (argument instanceof Date || _typeof$y(argument) === 'object' && argStr === '[object Date]') {
4560
4560
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
4561
4561
  return new Date(argument.getTime());
4562
4562
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -4827,7 +4827,7 @@ var millisecondsInMinute = 60000;
4827
4827
 
4828
4828
  var millisecondsInHour = 3600000;
4829
4829
 
4830
- function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
4830
+ function _typeof$x(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$x = function _typeof(obj) { return typeof obj; }; } else { _typeof$x = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$x(obj); }
4831
4831
  /**
4832
4832
  * @name isDate
4833
4833
  * @category Common Helpers
@@ -4863,7 +4863,7 @@ function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
4863
4863
 
4864
4864
  function isDate(value) {
4865
4865
  requiredArgs(1, arguments);
4866
- return value instanceof Date || _typeof$t(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
4866
+ return value instanceof Date || _typeof$x(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
4867
4867
  }
4868
4868
 
4869
4869
  /**
@@ -13567,15 +13567,15 @@ possibleStandardNamesOptimized$1.possibleStandardNames = {
13567
13567
 
13568
13568
  Object.defineProperty(lib$1, '__esModule', { value: true });
13569
13569
 
13570
- function _slicedToArray$d(arr, i) {
13571
- return _arrayWithHoles$e(arr) || _iterableToArrayLimit$d(arr, i) || _unsupportedIterableToArray$l(arr, i) || _nonIterableRest$e();
13570
+ function _slicedToArray$c(arr, i) {
13571
+ return _arrayWithHoles$d(arr) || _iterableToArrayLimit$c(arr, i) || _unsupportedIterableToArray$k(arr, i) || _nonIterableRest$d();
13572
13572
  }
13573
13573
 
13574
- function _arrayWithHoles$e(arr) {
13574
+ function _arrayWithHoles$d(arr) {
13575
13575
  if (Array.isArray(arr)) return arr;
13576
13576
  }
13577
13577
 
13578
- function _iterableToArrayLimit$d(arr, i) {
13578
+ function _iterableToArrayLimit$c(arr, i) {
13579
13579
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
13580
13580
 
13581
13581
  if (_i == null) return;
@@ -13605,16 +13605,16 @@ function _iterableToArrayLimit$d(arr, i) {
13605
13605
  return _arr;
13606
13606
  }
13607
13607
 
13608
- function _unsupportedIterableToArray$l(o, minLen) {
13608
+ function _unsupportedIterableToArray$k(o, minLen) {
13609
13609
  if (!o) return;
13610
- if (typeof o === "string") return _arrayLikeToArray$l(o, minLen);
13610
+ if (typeof o === "string") return _arrayLikeToArray$k(o, minLen);
13611
13611
  var n = Object.prototype.toString.call(o).slice(8, -1);
13612
13612
  if (n === "Object" && o.constructor) n = o.constructor.name;
13613
13613
  if (n === "Map" || n === "Set") return Array.from(o);
13614
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$l(o, minLen);
13614
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$k(o, minLen);
13615
13615
  }
13616
13616
 
13617
- function _arrayLikeToArray$l(arr, len) {
13617
+ function _arrayLikeToArray$k(arr, len) {
13618
13618
  if (len == null || len > arr.length) len = arr.length;
13619
13619
 
13620
13620
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
@@ -13622,7 +13622,7 @@ function _arrayLikeToArray$l(arr, len) {
13622
13622
  return arr2;
13623
13623
  }
13624
13624
 
13625
- function _nonIterableRest$e() {
13625
+ function _nonIterableRest$d() {
13626
13626
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13627
13627
  }
13628
13628
 
@@ -13686,7 +13686,7 @@ reservedProps.forEach(function (name) {
13686
13686
  // This is a mapping from React prop names to the attribute names.
13687
13687
 
13688
13688
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
13689
- var _ref2 = _slicedToArray$d(_ref, 2),
13689
+ var _ref2 = _slicedToArray$c(_ref, 2),
13690
13690
  name = _ref2[0],
13691
13691
  attributeName = _ref2[1];
13692
13692
 
@@ -16086,31 +16086,31 @@ var _default = function (file, acceptedFiles) {
16086
16086
  return true;
16087
16087
  };
16088
16088
 
16089
- function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$k(arr) || _nonIterableSpread$c(); }
16089
+ function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$c(); }
16090
16090
 
16091
16091
  function _nonIterableSpread$c() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16092
16092
 
16093
16093
  function _iterableToArray$d(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16094
16094
 
16095
- function _arrayWithoutHoles$c(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$k(arr); }
16095
+ function _arrayWithoutHoles$c(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$j(arr); }
16096
16096
 
16097
- function ownKeys$q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16097
+ function ownKeys$u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16098
16098
 
16099
- function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) { _defineProperty$s(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16099
+ function _objectSpread$u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) { _defineProperty$w(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16100
16100
 
16101
- function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16101
+ function _defineProperty$w(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16102
16102
 
16103
- function _slicedToArray$c(arr, i) { return _arrayWithHoles$d(arr) || _iterableToArrayLimit$c(arr, i) || _unsupportedIterableToArray$k(arr, i) || _nonIterableRest$d(); }
16103
+ function _slicedToArray$b(arr, i) { return _arrayWithHoles$c(arr) || _iterableToArrayLimit$b(arr, i) || _unsupportedIterableToArray$j(arr, i) || _nonIterableRest$c(); }
16104
16104
 
16105
- function _nonIterableRest$d() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16105
+ function _nonIterableRest$c() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16106
16106
 
16107
- function _unsupportedIterableToArray$k(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$k(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$k(o, minLen); }
16107
+ function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$j(o, minLen); }
16108
16108
 
16109
- function _arrayLikeToArray$k(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16109
+ function _arrayLikeToArray$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16110
16110
 
16111
- function _iterableToArrayLimit$c(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16111
+ function _iterableToArrayLimit$b(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16112
16112
 
16113
- function _arrayWithHoles$d(arr) { if (Array.isArray(arr)) return arr; }
16113
+ function _arrayWithHoles$c(arr) { if (Array.isArray(arr)) return arr; }
16114
16114
 
16115
16115
  var FILE_INVALID_TYPE = "file-invalid-type";
16116
16116
  var FILE_TOO_LARGE = "file-too-large";
@@ -16190,11 +16190,11 @@ function allFilesAccepted(_ref) {
16190
16190
 
16191
16191
  return files.every(function (file) {
16192
16192
  var _fileAccepted = fileAccepted(file, accept),
16193
- _fileAccepted2 = _slicedToArray$c(_fileAccepted, 1),
16193
+ _fileAccepted2 = _slicedToArray$b(_fileAccepted, 1),
16194
16194
  accepted = _fileAccepted2[0];
16195
16195
 
16196
16196
  var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
16197
- _fileMatchSize2 = _slicedToArray$c(_fileMatchSize, 1),
16197
+ _fileMatchSize2 = _slicedToArray$b(_fileMatchSize, 1),
16198
16198
  sizeMatch = _fileMatchSize2[0];
16199
16199
 
16200
16200
  var customErrors = validator ? validator(file) : null;
@@ -16291,7 +16291,7 @@ function canUseFileSystemAccessAPI() {
16291
16291
  function pickerOptionsFromAccept(accept) {
16292
16292
  if (isDefined(accept)) {
16293
16293
  var acceptForPicker = Object.entries(accept).filter(function (_ref2) {
16294
- var _ref3 = _slicedToArray$c(_ref2, 2),
16294
+ var _ref3 = _slicedToArray$b(_ref2, 2),
16295
16295
  mimeType = _ref3[0],
16296
16296
  ext = _ref3[1];
16297
16297
 
@@ -16309,11 +16309,11 @@ function pickerOptionsFromAccept(accept) {
16309
16309
 
16310
16310
  return ok;
16311
16311
  }).reduce(function (agg, _ref4) {
16312
- var _ref5 = _slicedToArray$c(_ref4, 2),
16312
+ var _ref5 = _slicedToArray$b(_ref4, 2),
16313
16313
  mimeType = _ref5[0],
16314
16314
  ext = _ref5[1];
16315
16315
 
16316
- return _objectSpread$q(_objectSpread$q({}, agg), {}, _defineProperty$s({}, mimeType, ext));
16316
+ return _objectSpread$u(_objectSpread$u({}, agg), {}, _defineProperty$w({}, mimeType, ext));
16317
16317
  }, {});
16318
16318
  return [{
16319
16319
  // description is required due to https://crbug.com/1264708
@@ -16333,7 +16333,7 @@ function pickerOptionsFromAccept(accept) {
16333
16333
  function acceptPropAsAcceptAttr(accept) {
16334
16334
  if (isDefined(accept)) {
16335
16335
  return Object.entries(accept).reduce(function (a, _ref6) {
16336
- var _ref7 = _slicedToArray$c(_ref6, 2),
16336
+ var _ref7 = _slicedToArray$b(_ref6, 2),
16337
16337
  mimeType = _ref7[0],
16338
16338
  ext = _ref7[1];
16339
16339
 
@@ -16401,40 +16401,40 @@ function isExt(v) {
16401
16401
  * @typedef {"file-invalid-type"|"file-too-large"|"file-too-small"|"too-many-files"} ErrorCode
16402
16402
  */
16403
16403
 
16404
- var _excluded$d = ["children"],
16405
- _excluded2$3 = ["open"],
16404
+ var _excluded$g = ["children"],
16405
+ _excluded2$5 = ["open"],
16406
16406
  _excluded3$1 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"],
16407
16407
  _excluded4 = ["refKey", "onChange", "onClick"];
16408
16408
 
16409
- function _toConsumableArray$b(arr) { return _arrayWithoutHoles$b(arr) || _iterableToArray$c(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$b(); }
16409
+ function _toConsumableArray$b(arr) { return _arrayWithoutHoles$b(arr) || _iterableToArray$c(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableSpread$b(); }
16410
16410
 
16411
16411
  function _nonIterableSpread$b() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16412
16412
 
16413
16413
  function _iterableToArray$c(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16414
16414
 
16415
- function _arrayWithoutHoles$b(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$j(arr); }
16415
+ function _arrayWithoutHoles$b(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$i(arr); }
16416
16416
 
16417
- function _slicedToArray$b(arr, i) { return _arrayWithHoles$c(arr) || _iterableToArrayLimit$b(arr, i) || _unsupportedIterableToArray$j(arr, i) || _nonIterableRest$c(); }
16417
+ function _slicedToArray$a(arr, i) { return _arrayWithHoles$b(arr) || _iterableToArrayLimit$a(arr, i) || _unsupportedIterableToArray$i(arr, i) || _nonIterableRest$b(); }
16418
16418
 
16419
- function _nonIterableRest$c() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16419
+ function _nonIterableRest$b() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16420
16420
 
16421
- function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$j(o, minLen); }
16421
+ function _unsupportedIterableToArray$i(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen); }
16422
16422
 
16423
- function _arrayLikeToArray$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16423
+ function _arrayLikeToArray$i(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16424
16424
 
16425
- function _iterableToArrayLimit$b(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16425
+ function _iterableToArrayLimit$a(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16426
16426
 
16427
- function _arrayWithHoles$c(arr) { if (Array.isArray(arr)) return arr; }
16427
+ function _arrayWithHoles$b(arr) { if (Array.isArray(arr)) return arr; }
16428
16428
 
16429
- function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16429
+ function ownKeys$t(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16430
16430
 
16431
- function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty$r(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16431
+ function _objectSpread$t(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) { _defineProperty$v(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16432
16432
 
16433
- function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16433
+ function _defineProperty$v(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16434
16434
 
16435
- function _objectWithoutProperties$d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16435
+ function _objectWithoutProperties$g(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16436
16436
 
16437
- function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16437
+ function _objectWithoutPropertiesLoose$g(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16438
16438
  /**
16439
16439
  * Convenience wrapper component for the `useDropzone` hook
16440
16440
  *
@@ -16452,11 +16452,11 @@ function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null)
16452
16452
 
16453
16453
  var Dropzone = /*#__PURE__*/React$3.forwardRef(function (_ref, ref) {
16454
16454
  var children = _ref.children,
16455
- params = _objectWithoutProperties$d(_ref, _excluded$d);
16455
+ params = _objectWithoutProperties$g(_ref, _excluded$g);
16456
16456
 
16457
16457
  var _useDropzone = useDropzone(params),
16458
16458
  open = _useDropzone.open,
16459
- props = _objectWithoutProperties$d(_useDropzone, _excluded2$3);
16459
+ props = _objectWithoutProperties$g(_useDropzone, _excluded2$5);
16460
16460
 
16461
16461
  React$3.useImperativeHandle(ref, function () {
16462
16462
  return {
@@ -16464,13 +16464,13 @@ var Dropzone = /*#__PURE__*/React$3.forwardRef(function (_ref, ref) {
16464
16464
  };
16465
16465
  }, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element
16466
16466
 
16467
- return /*#__PURE__*/React__default["default"].createElement(React$3.Fragment, null, children(_objectSpread$p(_objectSpread$p({}, props), {}, {
16467
+ return /*#__PURE__*/React__default["default"].createElement(React$3.Fragment, null, children(_objectSpread$t(_objectSpread$t({}, props), {}, {
16468
16468
  open: open
16469
16469
  })));
16470
16470
  });
16471
16471
  Dropzone.displayName = "Dropzone"; // Add default props for react-docgen
16472
16472
 
16473
- var defaultProps$1 = {
16473
+ var defaultProps$2 = {
16474
16474
  disabled: false,
16475
16475
  getFilesFromEvent: fromEvent,
16476
16476
  maxSize: Infinity,
@@ -16486,7 +16486,7 @@ var defaultProps$1 = {
16486
16486
  useFsAccessApi: true,
16487
16487
  autoFocus: false
16488
16488
  };
16489
- Dropzone.defaultProps = defaultProps$1;
16489
+ Dropzone.defaultProps = defaultProps$2;
16490
16490
  Dropzone.propTypes = {
16491
16491
  /**
16492
16492
  * Render function that exposes the dropzone state and prop getter fns
@@ -16837,7 +16837,7 @@ var initialState = {
16837
16837
  function useDropzone() {
16838
16838
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16839
16839
 
16840
- var _defaultProps$props = _objectSpread$p(_objectSpread$p({}, defaultProps$1), props),
16840
+ var _defaultProps$props = _objectSpread$t(_objectSpread$t({}, defaultProps$2), props),
16841
16841
  accept = _defaultProps$props.accept,
16842
16842
  disabled = _defaultProps$props.disabled,
16843
16843
  getFilesFromEvent = _defaultProps$props.getFilesFromEvent,
@@ -16884,7 +16884,7 @@ function useDropzone() {
16884
16884
  var inputRef = React$3.useRef(null);
16885
16885
 
16886
16886
  var _useReducer = React$3.useReducer(reducer$1, initialState),
16887
- _useReducer2 = _slicedToArray$b(_useReducer, 2),
16887
+ _useReducer2 = _slicedToArray$a(_useReducer, 2),
16888
16888
  state = _useReducer2[0],
16889
16889
  dispatch = _useReducer2[1];
16890
16890
 
@@ -17054,12 +17054,12 @@ function useDropzone() {
17054
17054
  var fileRejections = [];
17055
17055
  files.forEach(function (file) {
17056
17056
  var _fileAccepted = fileAccepted(file, acceptAttr),
17057
- _fileAccepted2 = _slicedToArray$b(_fileAccepted, 2),
17057
+ _fileAccepted2 = _slicedToArray$a(_fileAccepted, 2),
17058
17058
  accepted = _fileAccepted2[0],
17059
17059
  acceptError = _fileAccepted2[1];
17060
17060
 
17061
17061
  var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
17062
- _fileMatchSize2 = _slicedToArray$b(_fileMatchSize, 2),
17062
+ _fileMatchSize2 = _slicedToArray$a(_fileMatchSize, 2),
17063
17063
  sizeMatch = _fileMatchSize2[0],
17064
17064
  sizeError = _fileMatchSize2[1];
17065
17065
 
@@ -17260,9 +17260,9 @@ function useDropzone() {
17260
17260
  onDragOver = _ref2.onDragOver,
17261
17261
  onDragLeave = _ref2.onDragLeave,
17262
17262
  onDrop = _ref2.onDrop,
17263
- rest = _objectWithoutProperties$d(_ref2, _excluded3$1);
17263
+ rest = _objectWithoutProperties$g(_ref2, _excluded3$1);
17264
17264
 
17265
- return _objectSpread$p(_objectSpread$p(_defineProperty$r({
17265
+ return _objectSpread$t(_objectSpread$t(_defineProperty$v({
17266
17266
  onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
17267
17267
  onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
17268
17268
  onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
@@ -17287,9 +17287,9 @@ function useDropzone() {
17287
17287
  refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey,
17288
17288
  onChange = _ref3.onChange,
17289
17289
  onClick = _ref3.onClick,
17290
- rest = _objectWithoutProperties$d(_ref3, _excluded4);
17290
+ rest = _objectWithoutProperties$g(_ref3, _excluded4);
17291
17291
 
17292
- var inputProps = _defineProperty$r({
17292
+ var inputProps = _defineProperty$v({
17293
17293
  accept: acceptAttr,
17294
17294
  multiple: multiple,
17295
17295
  type: "file",
@@ -17301,10 +17301,10 @@ function useDropzone() {
17301
17301
  tabIndex: -1
17302
17302
  }, refKey, inputRef);
17303
17303
 
17304
- return _objectSpread$p(_objectSpread$p({}, inputProps), rest);
17304
+ return _objectSpread$t(_objectSpread$t({}, inputProps), rest);
17305
17305
  };
17306
17306
  }, [inputRef, accept, multiple, onDropCb, disabled]);
17307
- return _objectSpread$p(_objectSpread$p({}, state), {}, {
17307
+ return _objectSpread$t(_objectSpread$t({}, state), {}, {
17308
17308
  isFocused: isFocused && !disabled,
17309
17309
  getRootProps: getRootProps,
17310
17310
  getInputProps: getInputProps,
@@ -17323,40 +17323,40 @@ function reducer$1(state, action) {
17323
17323
  /* istanbul ignore next */
17324
17324
  switch (action.type) {
17325
17325
  case "focus":
17326
- return _objectSpread$p(_objectSpread$p({}, state), {}, {
17326
+ return _objectSpread$t(_objectSpread$t({}, state), {}, {
17327
17327
  isFocused: true
17328
17328
  });
17329
17329
 
17330
17330
  case "blur":
17331
- return _objectSpread$p(_objectSpread$p({}, state), {}, {
17331
+ return _objectSpread$t(_objectSpread$t({}, state), {}, {
17332
17332
  isFocused: false
17333
17333
  });
17334
17334
 
17335
17335
  case "openDialog":
17336
- return _objectSpread$p(_objectSpread$p({}, initialState), {}, {
17336
+ return _objectSpread$t(_objectSpread$t({}, initialState), {}, {
17337
17337
  isFileDialogActive: true
17338
17338
  });
17339
17339
 
17340
17340
  case "closeDialog":
17341
- return _objectSpread$p(_objectSpread$p({}, state), {}, {
17341
+ return _objectSpread$t(_objectSpread$t({}, state), {}, {
17342
17342
  isFileDialogActive: false
17343
17343
  });
17344
17344
 
17345
17345
  case "setDraggedFiles":
17346
- return _objectSpread$p(_objectSpread$p({}, state), {}, {
17346
+ return _objectSpread$t(_objectSpread$t({}, state), {}, {
17347
17347
  isDragActive: action.isDragActive,
17348
17348
  isDragAccept: action.isDragAccept,
17349
17349
  isDragReject: action.isDragReject
17350
17350
  });
17351
17351
 
17352
17352
  case "setFiles":
17353
- return _objectSpread$p(_objectSpread$p({}, state), {}, {
17353
+ return _objectSpread$t(_objectSpread$t({}, state), {}, {
17354
17354
  acceptedFiles: action.acceptedFiles,
17355
17355
  fileRejections: action.fileRejections
17356
17356
  });
17357
17357
 
17358
17358
  case "reset":
17359
- return _objectSpread$p({}, initialState);
17359
+ return _objectSpread$t({}, initialState);
17360
17360
 
17361
17361
  default:
17362
17362
  return state;
@@ -19582,7 +19582,7 @@ function shallowEqual(a, b) {
19582
19582
  return true;
19583
19583
  }
19584
19584
 
19585
- function _typeof$s(obj) { "@babel/helpers - typeof"; return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$s(obj); }
19585
+ function _typeof$w(obj) { "@babel/helpers - typeof"; return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$w(obj); }
19586
19586
 
19587
19587
  //
19588
19588
  // Event Handler Types -- Copied from @types/react/index.d.ts and adapted for Props.
@@ -19609,7 +19609,9 @@ var FilteredElementKeyMap = {
19609
19609
  };
19610
19610
  var EventKeys = ['dangerouslySetInnerHTML', 'onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onChangeCapture', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onError', 'onErrorCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerEnterCapture', 'onPointerLeave', 'onPointerLeaveCapture', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];
19611
19611
 
19612
- // Animation Types => TODO: Should be moved when react-smooth is typescriptified.
19612
+ /** The type of easing function to use for animations */
19613
+
19614
+ /** Specifies the duration of animation, the unit of this option is ms. */
19613
19615
 
19614
19616
  /** the offset of a chart, which define the blank space all around */
19615
19617
 
@@ -19645,7 +19647,7 @@ var getEventHandlerOfChild = function getEventHandlerOfChild(originalHandler, da
19645
19647
  };
19646
19648
  };
19647
19649
  var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
19648
- if (!isObject_1(props) || _typeof$s(props) !== 'object') {
19650
+ if (!isObject_1(props) || _typeof$w(props) !== 'object') {
19649
19651
  return null;
19650
19652
  }
19651
19653
  var out = null;
@@ -19659,11 +19661,11 @@ var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
19659
19661
  return out;
19660
19662
  };
19661
19663
 
19662
- var _excluded$c = ["children"],
19663
- _excluded2$2 = ["children"];
19664
- function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19665
- function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19666
- function _typeof$r(obj) { "@babel/helpers - typeof"; return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$r(obj); }
19664
+ var _excluded$f = ["children"],
19665
+ _excluded2$4 = ["children"];
19666
+ function _objectWithoutProperties$f(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19667
+ function _objectWithoutPropertiesLoose$f(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19668
+ function _typeof$v(obj) { "@babel/helpers - typeof"; return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$v(obj); }
19667
19669
  var REACT_BROWSER_EVENT_MAP = {
19668
19670
  click: 'onClick',
19669
19671
  mousedown: 'onMouseDown',
@@ -19770,7 +19772,7 @@ var isSvgElement = function isSvgElement(child) {
19770
19772
  return child && child.type && isString_1(child.type) && SVG_TAGS.indexOf(child.type) >= 0;
19771
19773
  };
19772
19774
  var isDotProps = function isDotProps(dot) {
19773
- return dot && _typeof$r(dot) === 'object' && 'cx' in dot && 'cy' in dot && 'r' in dot;
19775
+ return dot && _typeof$v(dot) === 'object' && 'cx' in dot && 'cy' in dot && 'r' in dot;
19774
19776
  };
19775
19777
 
19776
19778
  /**
@@ -19862,10 +19864,10 @@ var isSingleChildEqual = function isSingleChildEqual(nextChild, prevChild) {
19862
19864
  if (!isNil_1(nextChild) && !isNil_1(prevChild)) {
19863
19865
  var _ref = nextChild.props || {},
19864
19866
  nextChildren = _ref.children,
19865
- nextProps = _objectWithoutProperties$c(_ref, _excluded$c);
19867
+ nextProps = _objectWithoutProperties$f(_ref, _excluded$f);
19866
19868
  var _ref2 = prevChild.props || {},
19867
19869
  prevChildren = _ref2.children,
19868
- prevProps = _objectWithoutProperties$c(_ref2, _excluded2$2);
19870
+ prevProps = _objectWithoutProperties$f(_ref2, _excluded2$4);
19869
19871
  if (nextChildren && prevChildren) {
19870
19872
  return shallowEqual(nextProps, prevProps) && isChildrenEqual(nextChildren, prevChildren);
19871
19873
  }
@@ -19907,10 +19909,10 @@ var parseChildIndex = function parseChildIndex(child, children) {
19907
19909
  return toArray(children).indexOf(child);
19908
19910
  };
19909
19911
 
19910
- var _excluded$b = ["children", "width", "height", "viewBox", "className", "style"];
19912
+ var _excluded$e = ["children", "width", "height", "viewBox", "className", "style"];
19911
19913
  function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
19912
- function _objectWithoutProperties$b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19913
- function _objectWithoutPropertiesLoose$b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19914
+ function _objectWithoutProperties$e(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19915
+ function _objectWithoutPropertiesLoose$e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19914
19916
  function Surface(props) {
19915
19917
  var children = props.children,
19916
19918
  width = props.width,
@@ -19918,7 +19920,7 @@ function Surface(props) {
19918
19920
  viewBox = props.viewBox,
19919
19921
  className = props.className,
19920
19922
  style = props.style,
19921
- others = _objectWithoutProperties$b(props, _excluded$b);
19923
+ others = _objectWithoutProperties$e(props, _excluded$e);
19922
19924
  var svgView = viewBox || {
19923
19925
  width: width,
19924
19926
  height: height,
@@ -19935,14 +19937,14 @@ function Surface(props) {
19935
19937
  }), /*#__PURE__*/React__default["default"].createElement("title", null, props.title), /*#__PURE__*/React__default["default"].createElement("desc", null, props.desc), children);
19936
19938
  }
19937
19939
 
19938
- var _excluded$a = ["children", "className"];
19940
+ var _excluded$d = ["children", "className"];
19939
19941
  function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
19940
- function _objectWithoutProperties$a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19941
- function _objectWithoutPropertiesLoose$a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19942
+ function _objectWithoutProperties$d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19943
+ function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19942
19944
  var Layer = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
19943
19945
  var children = props.children,
19944
19946
  className = props.className,
19945
- others = _objectWithoutProperties$a(props, _excluded$a);
19947
+ others = _objectWithoutProperties$d(props, _excluded$d);
19946
19948
  var layerClass = classNames('recharts-layer', className);
19947
19949
  return /*#__PURE__*/React__default["default"].createElement("g", _extends$l({
19948
19950
  className: layerClass
@@ -23357,7 +23359,16 @@ function stackOffsetWiggle(series, order) {
23357
23359
  stackOffsetNone(series, order);
23358
23360
  }
23359
23361
 
23362
+ function _typeof$u(obj) { "@babel/helpers - typeof"; return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$u(obj); }
23363
+ var _excluded$c = ["type", "size", "sizeType"];
23360
23364
  function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
23365
+ function ownKeys$s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23366
+ function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) { _defineProperty$u(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23367
+ function _defineProperty$u(obj, key, value) { key = _toPropertyKey$t(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23368
+ function _toPropertyKey$t(arg) { var key = _toPrimitive$t(arg, "string"); return _typeof$u(key) === "symbol" ? key : String(key); }
23369
+ function _toPrimitive$t(input, hint) { if (_typeof$u(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$u(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23370
+ function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23371
+ function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23361
23372
  var symbolFactories = {
23362
23373
  symbolCircle: symbolCircle,
23363
23374
  symbolCross: symbolCross,
@@ -23396,31 +23407,35 @@ var calculateAreaSize = function calculateAreaSize(size, sizeType, type) {
23396
23407
  return Math.PI * size * size / 4;
23397
23408
  }
23398
23409
  };
23399
- var symbolsDefaultProps = {
23400
- type: 'circle',
23401
- size: 64,
23402
- sizeType: 'area'
23403
- };
23404
23410
  var registerSymbol = function registerSymbol(key, factory) {
23405
23411
  symbolFactories["symbol".concat(upperFirst_1(key))] = factory;
23406
23412
  };
23407
- var Symbols = function Symbols(props) {
23413
+ var Symbols = function Symbols(_ref) {
23414
+ var _ref$type = _ref.type,
23415
+ type = _ref$type === void 0 ? 'circle' : _ref$type,
23416
+ _ref$size = _ref.size,
23417
+ size = _ref$size === void 0 ? 64 : _ref$size,
23418
+ _ref$sizeType = _ref.sizeType,
23419
+ sizeType = _ref$sizeType === void 0 ? 'area' : _ref$sizeType,
23420
+ rest = _objectWithoutProperties$c(_ref, _excluded$c);
23421
+ var props = _objectSpread$s(_objectSpread$s({}, rest), {}, {
23422
+ type: type,
23423
+ size: size,
23424
+ sizeType: sizeType
23425
+ });
23426
+
23408
23427
  /**
23409
23428
  * Calculate the path of curve
23410
23429
  * @return {String} path
23411
23430
  */
23412
23431
  var getPath = function getPath() {
23413
- var size = props.size,
23414
- sizeType = props.sizeType,
23415
- type = props.type;
23416
23432
  var symbolFactory = getSymbolFactory(type);
23417
23433
  var symbol = Symbol$2().type(symbolFactory).size(calculateAreaSize(size, sizeType, type));
23418
23434
  return symbol();
23419
23435
  };
23420
23436
  var className = props.className,
23421
23437
  cx = props.cx,
23422
- cy = props.cy,
23423
- size = props.size;
23438
+ cy = props.cy;
23424
23439
  var filteredProps = filterProps(props, true);
23425
23440
  if (cx === +cx && cy === +cy && size === +size) {
23426
23441
  return /*#__PURE__*/React__default["default"].createElement("path", _extends$k({}, filteredProps, {
@@ -23431,35 +23446,34 @@ var Symbols = function Symbols(props) {
23431
23446
  }
23432
23447
  return null;
23433
23448
  };
23434
- Symbols.defaultProps = symbolsDefaultProps;
23435
23449
  Symbols.registerSymbol = registerSymbol;
23436
23450
 
23437
- function _typeof$q(obj) { "@babel/helpers - typeof"; return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$q(obj); }
23451
+ function _typeof$t(obj) { "@babel/helpers - typeof"; return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$t(obj); }
23438
23452
  function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
23439
- function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23440
- function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$q(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23441
- function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23442
- function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$p(descriptor.key), descriptor); } }
23443
- function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23444
- function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
23445
- function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
23446
- function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
23447
- function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$8(self); }
23448
- function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23449
- function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23450
- function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
23451
- function _defineProperty$q(obj, key, value) { key = _toPropertyKey$p(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23452
- function _toPropertyKey$p(arg) { var key = _toPrimitive$p(arg, "string"); return _typeof$q(key) === "symbol" ? key : String(key); }
23453
- function _toPrimitive$p(input, hint) { if (_typeof$q(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$q(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23453
+ function ownKeys$r(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23454
+ function _objectSpread$r(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) { _defineProperty$t(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23455
+ function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23456
+ function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$s(descriptor.key), descriptor); } }
23457
+ function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23458
+ function _inherits$9(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$9(subClass, superClass); }
23459
+ function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
23460
+ function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
23461
+ function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$9(self); }
23462
+ function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23463
+ function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23464
+ function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
23465
+ function _defineProperty$t(obj, key, value) { key = _toPropertyKey$s(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23466
+ function _toPropertyKey$s(arg) { var key = _toPrimitive$s(arg, "string"); return _typeof$t(key) === "symbol" ? key : String(key); }
23467
+ function _toPrimitive$s(input, hint) { if (_typeof$t(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$t(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23454
23468
  var SIZE = 32;
23455
23469
  var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23456
- _inherits$8(DefaultLegendContent, _PureComponent);
23457
- var _super = _createSuper$8(DefaultLegendContent);
23470
+ _inherits$9(DefaultLegendContent, _PureComponent);
23471
+ var _super = _createSuper$9(DefaultLegendContent);
23458
23472
  function DefaultLegendContent() {
23459
- _classCallCheck$a(this, DefaultLegendContent);
23473
+ _classCallCheck$b(this, DefaultLegendContent);
23460
23474
  return _super.apply(this, arguments);
23461
23475
  }
23462
- _createClass$a(DefaultLegendContent, [{
23476
+ _createClass$b(DefaultLegendContent, [{
23463
23477
  key: "renderIcon",
23464
23478
  value:
23465
23479
  /**
@@ -23504,7 +23518,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23504
23518
  });
23505
23519
  }
23506
23520
  if ( /*#__PURE__*/React__default["default"].isValidElement(data.legendIcon)) {
23507
- var iconProps = _objectSpread$o({}, data);
23521
+ var iconProps = _objectSpread$r({}, data);
23508
23522
  delete iconProps.legendIcon;
23509
23523
  return /*#__PURE__*/React__default["default"].cloneElement(data.legendIcon, iconProps);
23510
23524
  }
@@ -23552,7 +23566,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23552
23566
  var finalFormatter = entry.formatter || formatter;
23553
23567
  var className = classNames((_classNames = {
23554
23568
  'recharts-legend-item': true
23555
- }, _defineProperty$q(_classNames, "legend-item-".concat(i), true), _defineProperty$q(_classNames, "inactive", entry.inactive), _classNames));
23569
+ }, _defineProperty$t(_classNames, "legend-item-".concat(i), true), _defineProperty$t(_classNames, "inactive", entry.inactive), _classNames));
23556
23570
  if (entry.type === 'none') {
23557
23571
  return null;
23558
23572
  }
@@ -23597,8 +23611,8 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
23597
23611
  }]);
23598
23612
  return DefaultLegendContent;
23599
23613
  }(React$3.PureComponent);
23600
- _defineProperty$q(DefaultLegendContent, "displayName", 'Legend');
23601
- _defineProperty$q(DefaultLegendContent, "defaultProps", {
23614
+ _defineProperty$t(DefaultLegendContent, "displayName", 'Legend');
23615
+ _defineProperty$t(DefaultLegendContent, "defaultProps", {
23602
23616
  iconSize: 14,
23603
23617
  layout: 'horizontal',
23604
23618
  align: 'center',
@@ -23606,25 +23620,25 @@ _defineProperty$q(DefaultLegendContent, "defaultProps", {
23606
23620
  inactiveColor: '#ccc'
23607
23621
  });
23608
23622
 
23609
- function _typeof$p(obj) { "@babel/helpers - typeof"; return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$p(obj); }
23610
- var _excluded$9 = ["ref"];
23611
- function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23612
- function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$p(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23613
- function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23614
- function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$o(descriptor.key), descriptor); } }
23615
- function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23616
- function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
23617
- function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
23618
- function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
23619
- function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$7(self); }
23620
- function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23621
- function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23622
- function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
23623
- function _defineProperty$p(obj, key, value) { key = _toPropertyKey$o(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23624
- function _toPropertyKey$o(arg) { var key = _toPrimitive$o(arg, "string"); return _typeof$p(key) === "symbol" ? key : String(key); }
23625
- function _toPrimitive$o(input, hint) { if (_typeof$p(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$p(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23626
- function _objectWithoutProperties$9(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23627
- function _objectWithoutPropertiesLoose$9(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23623
+ function _typeof$s(obj) { "@babel/helpers - typeof"; return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$s(obj); }
23624
+ var _excluded$b = ["ref"];
23625
+ function ownKeys$q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23626
+ function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) { _defineProperty$s(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23627
+ function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23628
+ function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$r(descriptor.key), descriptor); } }
23629
+ function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23630
+ function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
23631
+ function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
23632
+ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
23633
+ function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$8(self); }
23634
+ function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23635
+ function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23636
+ function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
23637
+ function _defineProperty$s(obj, key, value) { key = _toPropertyKey$r(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23638
+ function _toPropertyKey$r(arg) { var key = _toPrimitive$r(arg, "string"); return _typeof$s(key) === "symbol" ? key : String(key); }
23639
+ function _toPrimitive$r(input, hint) { if (_typeof$s(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$s(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23640
+ function _objectWithoutProperties$b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23641
+ function _objectWithoutPropertiesLoose$b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23628
23642
  function defaultUniqBy$1(entry) {
23629
23643
  return entry.value;
23630
23644
  }
@@ -23645,27 +23659,27 @@ function renderContent$1(content, props) {
23645
23659
  return /*#__PURE__*/React__default["default"].createElement(content, props);
23646
23660
  }
23647
23661
  props.ref;
23648
- var otherProps = _objectWithoutProperties$9(props, _excluded$9);
23662
+ var otherProps = _objectWithoutProperties$b(props, _excluded$b);
23649
23663
  return /*#__PURE__*/React__default["default"].createElement(DefaultLegendContent, otherProps);
23650
23664
  }
23651
23665
  var EPS$2 = 1;
23652
23666
  var Legend = /*#__PURE__*/function (_PureComponent) {
23653
- _inherits$7(Legend, _PureComponent);
23654
- var _super = _createSuper$7(Legend);
23667
+ _inherits$8(Legend, _PureComponent);
23668
+ var _super = _createSuper$8(Legend);
23655
23669
  function Legend() {
23656
23670
  var _this;
23657
- _classCallCheck$9(this, Legend);
23671
+ _classCallCheck$a(this, Legend);
23658
23672
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23659
23673
  args[_key] = arguments[_key];
23660
23674
  }
23661
23675
  _this = _super.call.apply(_super, [this].concat(args));
23662
- _defineProperty$p(_assertThisInitialized$7(_this), "state", {
23676
+ _defineProperty$s(_assertThisInitialized$8(_this), "state", {
23663
23677
  boxWidth: -1,
23664
23678
  boxHeight: -1
23665
23679
  });
23666
23680
  return _this;
23667
23681
  }
23668
- _createClass$9(Legend, [{
23682
+ _createClass$a(Legend, [{
23669
23683
  key: "componentDidMount",
23670
23684
  value: function componentDidMount() {
23671
23685
  this.updateBBox();
@@ -23740,7 +23754,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23740
23754
  };
23741
23755
  }
23742
23756
  }
23743
- return _objectSpread$n(_objectSpread$n({}, hPos), vPos);
23757
+ return _objectSpread$q(_objectSpread$q({}, hPos), vPos);
23744
23758
  }
23745
23759
  }, {
23746
23760
  key: "updateBBox",
@@ -23783,7 +23797,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23783
23797
  wrapperStyle = _this$props2.wrapperStyle,
23784
23798
  payloadUniqBy = _this$props2.payloadUniqBy,
23785
23799
  payload = _this$props2.payload;
23786
- var outerStyle = _objectSpread$n(_objectSpread$n({
23800
+ var outerStyle = _objectSpread$q(_objectSpread$q({
23787
23801
  position: 'absolute',
23788
23802
  width: width || 'auto',
23789
23803
  height: height || 'auto'
@@ -23794,7 +23808,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23794
23808
  ref: function ref(node) {
23795
23809
  _this2.wrapperNode = node;
23796
23810
  }
23797
- }, renderContent$1(content, _objectSpread$n(_objectSpread$n({}, this.props), {}, {
23811
+ }, renderContent$1(content, _objectSpread$q(_objectSpread$q({}, this.props), {}, {
23798
23812
  payload: getUniqPayload$1(payloadUniqBy, payload)
23799
23813
  })));
23800
23814
  }
@@ -23817,8 +23831,8 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
23817
23831
  }]);
23818
23832
  return Legend;
23819
23833
  }(React$3.PureComponent);
23820
- _defineProperty$p(Legend, "displayName", 'Legend');
23821
- _defineProperty$p(Legend, "defaultProps", {
23834
+ _defineProperty$s(Legend, "displayName", 'Legend');
23835
+ _defineProperty$s(Legend, "defaultProps", {
23822
23836
  iconSize: 14,
23823
23837
  layout: 'horizontal',
23824
23838
  align: 'center',
@@ -24382,13 +24396,13 @@ function setRafTimeout(callback) {
24382
24396
  requestAnimationFrame(shouldUpdate);
24383
24397
  }
24384
24398
 
24385
- function _typeof$o(obj) { "@babel/helpers - typeof"; return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$o(obj); }
24386
- function _toArray(arr) { return _arrayWithHoles$b(arr) || _iterableToArray$b(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableRest$b(); }
24387
- function _nonIterableRest$b() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24388
- function _unsupportedIterableToArray$i(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen); }
24389
- function _arrayLikeToArray$i(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24399
+ function _typeof$r(obj) { "@babel/helpers - typeof"; return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$r(obj); }
24400
+ function _toArray(arr) { return _arrayWithHoles$a(arr) || _iterableToArray$b(arr) || _unsupportedIterableToArray$h(arr) || _nonIterableRest$a(); }
24401
+ function _nonIterableRest$a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24402
+ function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
24403
+ function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24390
24404
  function _iterableToArray$b(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24391
- function _arrayWithHoles$b(arr) { if (Array.isArray(arr)) return arr; }
24405
+ function _arrayWithHoles$a(arr) { if (Array.isArray(arr)) return arr; }
24392
24406
  function createAnimateManager() {
24393
24407
  var currStyle = {};
24394
24408
  var handleChange = function handleChange() {
@@ -24415,7 +24429,7 @@ function createAnimateManager() {
24415
24429
  setRafTimeout(setStyle.bind(null, restStyles));
24416
24430
  return;
24417
24431
  }
24418
- if (_typeof$o(_style) === 'object') {
24432
+ if (_typeof$r(_style) === 'object') {
24419
24433
  currStyle = _style;
24420
24434
  handleChange(currStyle);
24421
24435
  }
@@ -24442,12 +24456,12 @@ function createAnimateManager() {
24442
24456
  };
24443
24457
  }
24444
24458
 
24445
- function _typeof$n(obj) { "@babel/helpers - typeof"; return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$n(obj); }
24446
- function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24447
- function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$o(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24448
- function _defineProperty$o(obj, key, value) { key = _toPropertyKey$n(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24449
- function _toPropertyKey$n(arg) { var key = _toPrimitive$n(arg, "string"); return _typeof$n(key) === "symbol" ? key : String(key); }
24450
- function _toPrimitive$n(input, hint) { if (_typeof$n(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$n(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24459
+ function _typeof$q(obj) { "@babel/helpers - typeof"; return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$q(obj); }
24460
+ function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24461
+ function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty$r(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24462
+ function _defineProperty$r(obj, key, value) { key = _toPropertyKey$q(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24463
+ function _toPropertyKey$q(arg) { var key = _toPrimitive$q(arg, "string"); return _typeof$q(key) === "symbol" ? key : String(key); }
24464
+ function _toPrimitive$q(input, hint) { if (_typeof$q(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$q(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24451
24465
  /* eslint no-console: 0 */
24452
24466
  var PREFIX_LIST$1 = ['Webkit', 'Moz', 'O', 'ms'];
24453
24467
  var IN_LINE_PREFIX_LIST = ['-webkit-', '-moz-', '-o-', '-ms-'];
@@ -24479,7 +24493,7 @@ var getDashCase = function getDashCase(name) {
24479
24493
  */
24480
24494
  var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
24481
24495
  if (IN_COMPATIBLE_PROPERTY.indexOf(name) === -1) {
24482
- return _defineProperty$o({}, name, Number.isNaN(value) ? 0 : value);
24496
+ return _defineProperty$r({}, name, Number.isNaN(value) ? 0 : value);
24483
24497
  }
24484
24498
  var isTransition = name === 'transition';
24485
24499
  var camelName = name.replace(/(\w)/, function (v) {
@@ -24490,7 +24504,7 @@ var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
24490
24504
  if (isTransition) {
24491
24505
  styleVal = value.replace(/(transform|transform-origin)/gim, "".concat(IN_LINE_PREFIX_LIST[i], "$1"));
24492
24506
  }
24493
- return _objectSpread$m(_objectSpread$m({}, result), {}, _defineProperty$o({}, property + camelName, styleVal));
24507
+ return _objectSpread$p(_objectSpread$p({}, result), {}, _defineProperty$r({}, property + camelName, styleVal));
24494
24508
  }, {});
24495
24509
  };
24496
24510
 
@@ -24500,7 +24514,7 @@ var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
24500
24514
  */
24501
24515
  var mapObject = function mapObject(fn, obj) {
24502
24516
  return Object.keys(obj).reduce(function (res, key) {
24503
- return _objectSpread$m(_objectSpread$m({}, res), {}, _defineProperty$o({}, key, fn(key, obj[key])));
24517
+ return _objectSpread$p(_objectSpread$p({}, res), {}, _defineProperty$r({}, key, fn(key, obj[key])));
24504
24518
  }, {});
24505
24519
  };
24506
24520
 
@@ -24510,7 +24524,7 @@ var mapObject = function mapObject(fn, obj) {
24510
24524
  */
24511
24525
  var translateStyle = function translateStyle(style) {
24512
24526
  return Object.keys(style).reduce(function (res, key) {
24513
- return _objectSpread$m(_objectSpread$m({}, res), generatePrefixStyle$1(key, res[key]));
24527
+ return _objectSpread$p(_objectSpread$p({}, res), generatePrefixStyle$1(key, res[key]));
24514
24528
  }, style);
24515
24529
  };
24516
24530
  var getTransitionVal = function getTransitionVal(props, duration, easing) {
@@ -24538,16 +24552,16 @@ var warn$1 = function warn(condition, format, a, b, c, d, e, f) {
24538
24552
  }
24539
24553
  };
24540
24554
 
24541
- function _slicedToArray$a(arr, i) { return _arrayWithHoles$a(arr) || _iterableToArrayLimit$a(arr, i) || _unsupportedIterableToArray$h(arr, i) || _nonIterableRest$a(); }
24542
- function _nonIterableRest$a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24543
- function _iterableToArrayLimit$a(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24544
- function _arrayWithHoles$a(arr) { if (Array.isArray(arr)) return arr; }
24545
- function _toConsumableArray$a(arr) { return _arrayWithoutHoles$a(arr) || _iterableToArray$a(arr) || _unsupportedIterableToArray$h(arr) || _nonIterableSpread$a(); }
24555
+ function _slicedToArray$9(arr, i) { return _arrayWithHoles$9(arr) || _iterableToArrayLimit$9(arr, i) || _unsupportedIterableToArray$g(arr, i) || _nonIterableRest$9(); }
24556
+ function _nonIterableRest$9() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24557
+ function _iterableToArrayLimit$9(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24558
+ function _arrayWithHoles$9(arr) { if (Array.isArray(arr)) return arr; }
24559
+ function _toConsumableArray$a(arr) { return _arrayWithoutHoles$a(arr) || _iterableToArray$a(arr) || _unsupportedIterableToArray$g(arr) || _nonIterableSpread$a(); }
24546
24560
  function _nonIterableSpread$a() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24547
- function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
24561
+ function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
24548
24562
  function _iterableToArray$a(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24549
- function _arrayWithoutHoles$a(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$h(arr); }
24550
- function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24563
+ function _arrayWithoutHoles$a(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$g(arr); }
24564
+ function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24551
24565
  var ACCURACY = 1e-4;
24552
24566
  var cubicBezierFactor = function cubicBezierFactor(c1, c2) {
24553
24567
  return [0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1];
@@ -24623,7 +24637,7 @@ var configBezier = function configBezier() {
24623
24637
  var _easing$1$split$0$spl = easing[1].split(')')[0].split(',').map(function (x) {
24624
24638
  return parseFloat(x);
24625
24639
  });
24626
- var _easing$1$split$0$spl2 = _slicedToArray$a(_easing$1$split$0$spl, 4);
24640
+ var _easing$1$split$0$spl2 = _slicedToArray$9(_easing$1$split$0$spl, 4);
24627
24641
  x1 = _easing$1$split$0$spl2[0];
24628
24642
  y1 = _easing$1$split$0$spl2[1];
24629
24643
  x2 = _easing$1$split$0$spl2[2];
@@ -24716,22 +24730,22 @@ var configEasing = function configEasing() {
24716
24730
  return null;
24717
24731
  };
24718
24732
 
24719
- function _typeof$m(obj) { "@babel/helpers - typeof"; return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$m(obj); }
24720
- function _toConsumableArray$9(arr) { return _arrayWithoutHoles$9(arr) || _iterableToArray$9(arr) || _unsupportedIterableToArray$g(arr) || _nonIterableSpread$9(); }
24733
+ function _typeof$p(obj) { "@babel/helpers - typeof"; return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$p(obj); }
24734
+ function _toConsumableArray$9(arr) { return _arrayWithoutHoles$9(arr) || _iterableToArray$9(arr) || _unsupportedIterableToArray$f(arr) || _nonIterableSpread$9(); }
24721
24735
  function _nonIterableSpread$9() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24722
24736
  function _iterableToArray$9(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24723
- function _arrayWithoutHoles$9(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$g(arr); }
24724
- function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24725
- function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$n(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24726
- function _defineProperty$n(obj, key, value) { key = _toPropertyKey$m(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24727
- function _toPropertyKey$m(arg) { var key = _toPrimitive$m(arg, "string"); return _typeof$m(key) === "symbol" ? key : String(key); }
24728
- function _toPrimitive$m(input, hint) { if (_typeof$m(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$m(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24729
- function _slicedToArray$9(arr, i) { return _arrayWithHoles$9(arr) || _iterableToArrayLimit$9(arr, i) || _unsupportedIterableToArray$g(arr, i) || _nonIterableRest$9(); }
24730
- function _nonIterableRest$9() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24731
- function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
24732
- function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24733
- function _iterableToArrayLimit$9(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24734
- function _arrayWithHoles$9(arr) { if (Array.isArray(arr)) return arr; }
24737
+ function _arrayWithoutHoles$9(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$f(arr); }
24738
+ function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24739
+ function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$q(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24740
+ function _defineProperty$q(obj, key, value) { key = _toPropertyKey$p(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24741
+ function _toPropertyKey$p(arg) { var key = _toPrimitive$p(arg, "string"); return _typeof$p(key) === "symbol" ? key : String(key); }
24742
+ function _toPrimitive$p(input, hint) { if (_typeof$p(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$p(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24743
+ function _slicedToArray$8(arr, i) { return _arrayWithHoles$8(arr) || _iterableToArrayLimit$8(arr, i) || _unsupportedIterableToArray$f(arr, i) || _nonIterableRest$8(); }
24744
+ function _nonIterableRest$8() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24745
+ function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
24746
+ function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24747
+ function _iterableToArrayLimit$8(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24748
+ function _arrayWithHoles$8(arr) { if (Array.isArray(arr)) return arr; }
24735
24749
  var alpha = function alpha(begin, end, k) {
24736
24750
  return begin + (end - begin) * k;
24737
24751
  };
@@ -24749,10 +24763,10 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
24749
24763
  var nextStepVals = mapObject(function (key, val) {
24750
24764
  if (needContinue(val)) {
24751
24765
  var _easing = easing(val.from, val.to, val.velocity),
24752
- _easing2 = _slicedToArray$9(_easing, 2),
24766
+ _easing2 = _slicedToArray$8(_easing, 2),
24753
24767
  newX = _easing2[0],
24754
24768
  newV = _easing2[1];
24755
- return _objectSpread$l(_objectSpread$l({}, val), {}, {
24769
+ return _objectSpread$o(_objectSpread$o({}, val), {}, {
24756
24770
  from: newX,
24757
24771
  velocity: newV
24758
24772
  });
@@ -24762,7 +24776,7 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
24762
24776
  if (steps < 1) {
24763
24777
  return mapObject(function (key, val) {
24764
24778
  if (needContinue(val)) {
24765
- return _objectSpread$l(_objectSpread$l({}, val), {}, {
24779
+ return _objectSpread$o(_objectSpread$o({}, val), {}, {
24766
24780
  velocity: alpha(val.velocity, nextStepVals[key].velocity, steps),
24767
24781
  from: alpha(val.from, nextStepVals[key].from, steps)
24768
24782
  });
@@ -24777,10 +24791,10 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
24777
24791
  var configUpdate = (function (from, to, easing, duration, render) {
24778
24792
  var interKeys = getIntersectionKeys(from, to);
24779
24793
  var timingStyle = interKeys.reduce(function (res, key) {
24780
- return _objectSpread$l(_objectSpread$l({}, res), {}, _defineProperty$n({}, key, [from[key], to[key]]));
24794
+ return _objectSpread$o(_objectSpread$o({}, res), {}, _defineProperty$q({}, key, [from[key], to[key]]));
24781
24795
  }, {});
24782
24796
  var stepperStyle = interKeys.reduce(function (res, key) {
24783
- return _objectSpread$l(_objectSpread$l({}, res), {}, _defineProperty$n({}, key, {
24797
+ return _objectSpread$o(_objectSpread$o({}, res), {}, _defineProperty$q({}, key, {
24784
24798
  from: from[key],
24785
24799
  velocity: 0,
24786
24800
  to: to[key]
@@ -24810,7 +24824,7 @@ var configUpdate = (function (from, to, easing, duration, render) {
24810
24824
  var steps = deltaTime / easing.dt;
24811
24825
  stepperStyle = calStepperVals(easing, stepperStyle, steps);
24812
24826
  // get union set and add compatible prefix
24813
- render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), getCurrStyle()));
24827
+ render(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, from), to), getCurrStyle()));
24814
24828
  preTime = now;
24815
24829
  if (!shouldStopAnimation()) {
24816
24830
  cafId = requestAnimationFrame(update);
@@ -24828,14 +24842,14 @@ var configUpdate = (function (from, to, easing, duration, render) {
24828
24842
  }, timingStyle);
24829
24843
 
24830
24844
  // get union set and add compatible prefix
24831
- render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), currStyle));
24845
+ render(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, from), to), currStyle));
24832
24846
  if (t < 1) {
24833
24847
  cafId = requestAnimationFrame(update);
24834
24848
  } else {
24835
24849
  var finalStyle = mapObject(function (key, val) {
24836
24850
  return alpha.apply(void 0, _toConsumableArray$9(val).concat([easing(1)]));
24837
24851
  }, timingStyle);
24838
- render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), finalStyle));
24852
+ render(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, from), to), finalStyle));
24839
24853
  }
24840
24854
  };
24841
24855
  update = easing.isStepper ? stepperUpdate : timingUpdate;
@@ -24851,37 +24865,37 @@ var configUpdate = (function (from, to, easing, duration, render) {
24851
24865
  };
24852
24866
  });
24853
24867
 
24854
- function _typeof$l(obj) { "@babel/helpers - typeof"; return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$l(obj); }
24855
- var _excluded$8 = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"];
24856
- function _objectWithoutProperties$8(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24857
- function _objectWithoutPropertiesLoose$8(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24858
- function _toConsumableArray$8(arr) { return _arrayWithoutHoles$8(arr) || _iterableToArray$8(arr) || _unsupportedIterableToArray$f(arr) || _nonIterableSpread$8(); }
24868
+ function _typeof$o(obj) { "@babel/helpers - typeof"; return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$o(obj); }
24869
+ var _excluded$a = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"];
24870
+ function _objectWithoutProperties$a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24871
+ function _objectWithoutPropertiesLoose$a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24872
+ function _toConsumableArray$8(arr) { return _arrayWithoutHoles$8(arr) || _iterableToArray$8(arr) || _unsupportedIterableToArray$e(arr) || _nonIterableSpread$8(); }
24859
24873
  function _nonIterableSpread$8() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24860
- function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
24874
+ function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
24861
24875
  function _iterableToArray$8(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24862
- function _arrayWithoutHoles$8(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$f(arr); }
24863
- function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24864
- function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24865
- function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$m(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24866
- function _defineProperty$m(obj, key, value) { key = _toPropertyKey$l(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24867
- function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24868
- function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$l(descriptor.key), descriptor); } }
24869
- function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24870
- function _toPropertyKey$l(arg) { var key = _toPrimitive$l(arg, "string"); return _typeof$l(key) === "symbol" ? key : String(key); }
24871
- function _toPrimitive$l(input, hint) { if (_typeof$l(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$l(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24872
- function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
24873
- function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
24874
- function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
24875
- function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$6(self); }
24876
- function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24877
- function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24878
- function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
24876
+ function _arrayWithoutHoles$8(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$e(arr); }
24877
+ function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24878
+ function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24879
+ function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$p(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24880
+ function _defineProperty$p(obj, key, value) { key = _toPropertyKey$o(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24881
+ function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24882
+ function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$o(descriptor.key), descriptor); } }
24883
+ function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24884
+ function _toPropertyKey$o(arg) { var key = _toPrimitive$o(arg, "string"); return _typeof$o(key) === "symbol" ? key : String(key); }
24885
+ function _toPrimitive$o(input, hint) { if (_typeof$o(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$o(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24886
+ function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
24887
+ function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
24888
+ function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
24889
+ function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$7(self); }
24890
+ function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24891
+ function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24892
+ function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
24879
24893
  var Animate = /*#__PURE__*/function (_PureComponent) {
24880
- _inherits$6(Animate, _PureComponent);
24881
- var _super = _createSuper$6(Animate);
24894
+ _inherits$7(Animate, _PureComponent);
24895
+ var _super = _createSuper$7(Animate);
24882
24896
  function Animate(props, context) {
24883
24897
  var _this;
24884
- _classCallCheck$8(this, Animate);
24898
+ _classCallCheck$9(this, Animate);
24885
24899
  _this = _super.call(this, props, context);
24886
24900
  var _this$props = _this.props,
24887
24901
  isActive = _this$props.isActive,
@@ -24891,8 +24905,8 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24891
24905
  steps = _this$props.steps,
24892
24906
  children = _this$props.children,
24893
24907
  duration = _this$props.duration;
24894
- _this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized$6(_this));
24895
- _this.changeStyle = _this.changeStyle.bind(_assertThisInitialized$6(_this));
24908
+ _this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized$7(_this));
24909
+ _this.changeStyle = _this.changeStyle.bind(_assertThisInitialized$7(_this));
24896
24910
  if (!isActive || duration <= 0) {
24897
24911
  _this.state = {
24898
24912
  style: {}
@@ -24904,7 +24918,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24904
24918
  style: to
24905
24919
  };
24906
24920
  }
24907
- return _possibleConstructorReturn$6(_this);
24921
+ return _possibleConstructorReturn$7(_this);
24908
24922
  }
24909
24923
  if (steps && steps.length) {
24910
24924
  _this.state = {
@@ -24915,10 +24929,10 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24915
24929
  _this.state = {
24916
24930
  style: from
24917
24931
  };
24918
- return _possibleConstructorReturn$6(_this);
24932
+ return _possibleConstructorReturn$7(_this);
24919
24933
  }
24920
24934
  _this.state = {
24921
- style: attributeName ? _defineProperty$m({}, attributeName, from) : from
24935
+ style: attributeName ? _defineProperty$p({}, attributeName, from) : from
24922
24936
  };
24923
24937
  } else {
24924
24938
  _this.state = {
@@ -24927,7 +24941,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24927
24941
  }
24928
24942
  return _this;
24929
24943
  }
24930
- _createClass$8(Animate, [{
24944
+ _createClass$9(Animate, [{
24931
24945
  key: "componentDidMount",
24932
24946
  value: function componentDidMount() {
24933
24947
  var _this$props2 = this.props,
@@ -24955,7 +24969,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24955
24969
  }
24956
24970
  if (!isActive) {
24957
24971
  var newState = {
24958
- style: attributeName ? _defineProperty$m({}, attributeName, to) : to
24972
+ style: attributeName ? _defineProperty$p({}, attributeName, to) : to
24959
24973
  };
24960
24974
  if (this.state && style) {
24961
24975
  if (attributeName && style[attributeName] !== to || !attributeName && style !== to) {
@@ -24978,14 +24992,14 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
24978
24992
  var from = isTriggered || shouldReAnimate ? currentFrom : prevProps.to;
24979
24993
  if (this.state && style) {
24980
24994
  var _newState = {
24981
- style: attributeName ? _defineProperty$m({}, attributeName, from) : from
24995
+ style: attributeName ? _defineProperty$p({}, attributeName, from) : from
24982
24996
  };
24983
24997
  if (attributeName && [attributeName] !== from || !attributeName && style !== from) {
24984
24998
  // eslint-disable-next-line react/no-did-update-set-state
24985
24999
  this.setState(_newState);
24986
25000
  }
24987
25001
  }
24988
- this.runAnimation(_objectSpread$k(_objectSpread$k({}, this.props), {}, {
25002
+ this.runAnimation(_objectSpread$n(_objectSpread$n({}, this.props), {}, {
24989
25003
  from: from,
24990
25004
  begin: 0
24991
25005
  }));
@@ -25068,7 +25082,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25068
25082
  }), duration]);
25069
25083
  }
25070
25084
  var transition = getTransitionVal(properties, duration, easing);
25071
- var newStyle = _objectSpread$k(_objectSpread$k(_objectSpread$k({}, preItem.style), style), {}, {
25085
+ var newStyle = _objectSpread$n(_objectSpread$n(_objectSpread$n({}, preItem.style), style), {}, {
25072
25086
  transition: transition
25073
25087
  });
25074
25088
  return [].concat(_toConsumableArray$8(sequence), [newStyle, duration, onAnimationEnd]).filter(identity$9);
@@ -25100,9 +25114,9 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25100
25114
  this.runStepAnimation(props);
25101
25115
  return;
25102
25116
  }
25103
- var to = attributeName ? _defineProperty$m({}, attributeName, propsTo) : propsTo;
25117
+ var to = attributeName ? _defineProperty$p({}, attributeName, propsTo) : propsTo;
25104
25118
  var transition = getTransitionVal(Object.keys(to), duration, easing);
25105
- manager.start([onAnimationStart, begin, _objectSpread$k(_objectSpread$k({}, to), {}, {
25119
+ manager.start([onAnimationStart, begin, _objectSpread$n(_objectSpread$n({}, to), {}, {
25106
25120
  transition: transition
25107
25121
  }), duration, onAnimationEnd]);
25108
25122
  }
@@ -25123,7 +25137,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25123
25137
  _this$props4.onAnimationEnd;
25124
25138
  _this$props4.shouldReAnimate;
25125
25139
  _this$props4.onAnimationReStart;
25126
- var others = _objectWithoutProperties$8(_this$props4, _excluded$8);
25140
+ var others = _objectWithoutProperties$a(_this$props4, _excluded$a);
25127
25141
  var count = React$3.Children.count(children);
25128
25142
  // eslint-disable-next-line react/destructuring-assignment
25129
25143
  var stateStyle = translateStyle(this.state.style);
@@ -25138,8 +25152,8 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
25138
25152
  _container$props$styl = _container$props.style,
25139
25153
  style = _container$props$styl === void 0 ? {} : _container$props$styl,
25140
25154
  className = _container$props.className;
25141
- var res = /*#__PURE__*/React$3.cloneElement(container, _objectSpread$k(_objectSpread$k({}, others), {}, {
25142
- style: _objectSpread$k(_objectSpread$k({}, style), stateStyle),
25155
+ var res = /*#__PURE__*/React$3.cloneElement(container, _objectSpread$n(_objectSpread$n({}, others), {}, {
25156
+ style: _objectSpread$n(_objectSpread$n({}, style), stateStyle),
25143
25157
  className: className
25144
25158
  }));
25145
25159
  return res;
@@ -25664,10 +25678,10 @@ var defineProperty$2 = (function() {
25664
25678
  } catch (e) {}
25665
25679
  }());
25666
25680
 
25667
- var _defineProperty$l = defineProperty$2;
25681
+ var _defineProperty$o = defineProperty$2;
25668
25682
 
25669
25683
  var constant$1 = constant_1,
25670
- defineProperty$1 = _defineProperty$l,
25684
+ defineProperty$1 = _defineProperty$o,
25671
25685
  identity$7 = identity_1;
25672
25686
 
25673
25687
  /**
@@ -25844,18 +25858,18 @@ var sortBy_1 = sortBy;
25844
25858
  /**
25845
25859
  * @fileOverview Default Tooltip Content
25846
25860
  */
25847
- function _typeof$k(obj) { "@babel/helpers - typeof"; return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$k(obj); }
25848
- function _slicedToArray$8(arr, i) { return _arrayWithHoles$8(arr) || _iterableToArrayLimit$8(arr, i) || _unsupportedIterableToArray$e(arr, i) || _nonIterableRest$8(); }
25849
- function _nonIterableRest$8() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25850
- function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
25851
- function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25852
- function _iterableToArrayLimit$8(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25853
- function _arrayWithHoles$8(arr) { if (Array.isArray(arr)) return arr; }
25854
- function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25855
- function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty$k(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25856
- function _defineProperty$k(obj, key, value) { key = _toPropertyKey$k(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25857
- function _toPropertyKey$k(arg) { var key = _toPrimitive$k(arg, "string"); return _typeof$k(key) === "symbol" ? key : String(key); }
25858
- function _toPrimitive$k(input, hint) { if (_typeof$k(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$k(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25861
+ function _typeof$n(obj) { "@babel/helpers - typeof"; return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$n(obj); }
25862
+ function _slicedToArray$7(arr, i) { return _arrayWithHoles$7(arr) || _iterableToArrayLimit$7(arr, i) || _unsupportedIterableToArray$d(arr, i) || _nonIterableRest$7(); }
25863
+ function _nonIterableRest$7() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25864
+ function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
25865
+ function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25866
+ function _iterableToArrayLimit$7(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25867
+ function _arrayWithHoles$7(arr) { if (Array.isArray(arr)) return arr; }
25868
+ function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25869
+ function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$n(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25870
+ function _defineProperty$n(obj, key, value) { key = _toPropertyKey$n(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25871
+ function _toPropertyKey$n(arg) { var key = _toPrimitive$n(arg, "string"); return _typeof$n(key) === "symbol" ? key : String(key); }
25872
+ function _toPrimitive$n(input, hint) { if (_typeof$n(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$n(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25859
25873
  function defaultFormatter(value) {
25860
25874
  return isArray_1(value) && isNumOrStr(value[0]) && isNumOrStr(value[1]) ? value.join(' ~ ') : value;
25861
25875
  }
@@ -25885,7 +25899,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
25885
25899
  if (entry.type === 'none') {
25886
25900
  return null;
25887
25901
  }
25888
- var finalItemStyle = _objectSpread$j({
25902
+ var finalItemStyle = _objectSpread$m({
25889
25903
  display: 'block',
25890
25904
  paddingTop: 4,
25891
25905
  paddingBottom: 4,
@@ -25899,7 +25913,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
25899
25913
  if (finalFormatter && finalValue != null && finalName != null) {
25900
25914
  var formatted = finalFormatter(value, name, entry, i, payload);
25901
25915
  if (Array.isArray(formatted)) {
25902
- var _formatted = _slicedToArray$8(formatted, 2);
25916
+ var _formatted = _slicedToArray$7(formatted, 2);
25903
25917
  finalValue = _formatted[0];
25904
25918
  finalName = _formatted[1];
25905
25919
  } else {
@@ -25931,14 +25945,14 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
25931
25945
  }
25932
25946
  return null;
25933
25947
  };
25934
- var finalStyle = _objectSpread$j({
25948
+ var finalStyle = _objectSpread$m({
25935
25949
  margin: 0,
25936
25950
  padding: 10,
25937
25951
  backgroundColor: '#fff',
25938
25952
  border: '1px solid #ccc',
25939
25953
  whiteSpace: 'nowrap'
25940
25954
  }, contentStyle);
25941
- var finalLabelStyle = _objectSpread$j({
25955
+ var finalLabelStyle = _objectSpread$m({
25942
25956
  margin: 0
25943
25957
  }, labelStyle);
25944
25958
  var hasLabel = !isNil_1(label);
@@ -25979,18 +25993,22 @@ var Global = {
25979
25993
  }
25980
25994
  };
25981
25995
 
25982
- function _typeof$j(obj) { "@babel/helpers - typeof"; return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$j(obj); }
25983
- function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25984
- function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty$j(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25985
- function _defineProperty$j(obj, key, value) { key = _toPropertyKey$j(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25986
- function _toPropertyKey$j(arg) { var key = _toPrimitive$j(arg, "string"); return _typeof$j(key) === "symbol" ? key : String(key); }
25987
- function _toPrimitive$j(input, hint) { if (_typeof$j(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$j(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25988
- function _slicedToArray$7(arr, i) { return _arrayWithHoles$7(arr) || _iterableToArrayLimit$7(arr, i) || _unsupportedIterableToArray$d(arr, i) || _nonIterableRest$7(); }
25989
- function _nonIterableRest$7() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25990
- function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
25991
- function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25992
- function _iterableToArrayLimit$7(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25993
- function _arrayWithHoles$7(arr) { if (Array.isArray(arr)) return arr; }
25996
+ function _typeof$m(obj) { "@babel/helpers - typeof"; return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$m(obj); }
25997
+ function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25998
+ function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$m(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25999
+ function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26000
+ function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$m(descriptor.key), descriptor); } }
26001
+ function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26002
+ function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
26003
+ function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
26004
+ function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
26005
+ function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$6(self); }
26006
+ function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26007
+ function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26008
+ function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
26009
+ function _defineProperty$m(obj, key, value) { key = _toPropertyKey$m(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26010
+ function _toPropertyKey$m(arg) { var key = _toPrimitive$m(arg, "string"); return _typeof$m(key) === "symbol" ? key : String(key); }
26011
+ function _toPrimitive$m(input, hint) { if (_typeof$m(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$m(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25994
26012
  var CLS_PREFIX = 'recharts-tooltip-wrapper';
25995
26013
  var EPS$1 = 1;
25996
26014
  function defaultUniqBy(entry) {
@@ -26014,7 +26032,204 @@ function renderContent(content, props) {
26014
26032
  }
26015
26033
  return /*#__PURE__*/React__default["default"].createElement(DefaultTooltipContent, props);
26016
26034
  }
26017
- var tooltipDefaultProps = {
26035
+ var Tooltip$1 = /*#__PURE__*/function (_PureComponent) {
26036
+ _inherits$6(Tooltip, _PureComponent);
26037
+ var _super = _createSuper$6(Tooltip);
26038
+ function Tooltip() {
26039
+ var _this;
26040
+ _classCallCheck$8(this, Tooltip);
26041
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26042
+ args[_key] = arguments[_key];
26043
+ }
26044
+ _this = _super.call.apply(_super, [this].concat(args));
26045
+ _defineProperty$m(_assertThisInitialized$6(_this), "state", {
26046
+ boxWidth: -1,
26047
+ boxHeight: -1,
26048
+ dismissed: false,
26049
+ dismissedAtCoordinate: {
26050
+ x: 0,
26051
+ y: 0
26052
+ }
26053
+ });
26054
+ _defineProperty$m(_assertThisInitialized$6(_this), "handleKeyDown", function (event) {
26055
+ if (event.key === 'Escape') {
26056
+ _this.setState({
26057
+ dismissed: true,
26058
+ dismissedAtCoordinate: _objectSpread$l(_objectSpread$l({}, _this.state.dismissedAtCoordinate), {}, {
26059
+ x: _this.props.coordinate.x,
26060
+ y: _this.props.coordinate.y
26061
+ })
26062
+ });
26063
+ }
26064
+ });
26065
+ _defineProperty$m(_assertThisInitialized$6(_this), "getTranslate", function (_ref) {
26066
+ var key = _ref.key,
26067
+ tooltipDimension = _ref.tooltipDimension,
26068
+ viewBoxDimension = _ref.viewBoxDimension;
26069
+ var _this$props = _this.props,
26070
+ allowEscapeViewBox = _this$props.allowEscapeViewBox,
26071
+ reverseDirection = _this$props.reverseDirection,
26072
+ coordinate = _this$props.coordinate,
26073
+ offset = _this$props.offset,
26074
+ position = _this$props.position,
26075
+ viewBox = _this$props.viewBox;
26076
+ if (position && isNumber(position[key])) {
26077
+ return position[key];
26078
+ }
26079
+ var negative = coordinate[key] - tooltipDimension - offset;
26080
+ var positive = coordinate[key] + offset;
26081
+ if (allowEscapeViewBox[key]) {
26082
+ return reverseDirection[key] ? negative : positive;
26083
+ }
26084
+ if (reverseDirection[key]) {
26085
+ var _tooltipBoundary = negative;
26086
+ var _viewBoxBoundary = viewBox[key];
26087
+ if (_tooltipBoundary < _viewBoxBoundary) {
26088
+ return Math.max(positive, viewBox[key]);
26089
+ }
26090
+ return Math.max(negative, viewBox[key]);
26091
+ }
26092
+ var tooltipBoundary = positive + tooltipDimension;
26093
+ var viewBoxBoundary = viewBox[key] + viewBoxDimension;
26094
+ if (tooltipBoundary > viewBoxBoundary) {
26095
+ return Math.max(negative, viewBox[key]);
26096
+ }
26097
+ return Math.max(positive, viewBox[key]);
26098
+ });
26099
+ return _this;
26100
+ }
26101
+ _createClass$8(Tooltip, [{
26102
+ key: "componentDidMount",
26103
+ value: function componentDidMount() {
26104
+ this.updateBBox();
26105
+ }
26106
+ }, {
26107
+ key: "componentWillUnmount",
26108
+ value: function componentWillUnmount() {
26109
+ document.removeEventListener('keydown', this.handleKeyDown);
26110
+ }
26111
+ }, {
26112
+ key: "componentDidUpdate",
26113
+ value: function componentDidUpdate() {
26114
+ this.updateBBox();
26115
+ }
26116
+ }, {
26117
+ key: "updateBBox",
26118
+ value: function updateBBox() {
26119
+ var _this$state = this.state,
26120
+ boxWidth = _this$state.boxWidth,
26121
+ boxHeight = _this$state.boxHeight,
26122
+ dismissed = _this$state.dismissed;
26123
+ if (dismissed) {
26124
+ document.removeEventListener('keydown', this.handleKeyDown);
26125
+ if (this.props.coordinate.x !== this.state.dismissedAtCoordinate.x || this.props.coordinate.y !== this.state.dismissedAtCoordinate.y) {
26126
+ this.setState({
26127
+ dismissed: false
26128
+ });
26129
+ }
26130
+ } else {
26131
+ document.addEventListener('keydown', this.handleKeyDown);
26132
+ }
26133
+ if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
26134
+ var box = this.wrapperNode.getBoundingClientRect();
26135
+ if (Math.abs(box.width - boxWidth) > EPS$1 || Math.abs(box.height - boxHeight) > EPS$1) {
26136
+ this.setState({
26137
+ boxWidth: box.width,
26138
+ boxHeight: box.height
26139
+ });
26140
+ }
26141
+ } else if (boxWidth !== -1 || boxHeight !== -1) {
26142
+ this.setState({
26143
+ boxWidth: -1,
26144
+ boxHeight: -1
26145
+ });
26146
+ }
26147
+ }
26148
+ }, {
26149
+ key: "render",
26150
+ value: function render() {
26151
+ var _classNames,
26152
+ _this2 = this;
26153
+ var _this$props2 = this.props,
26154
+ payload = _this$props2.payload,
26155
+ isAnimationActive = _this$props2.isAnimationActive,
26156
+ animationDuration = _this$props2.animationDuration,
26157
+ animationEasing = _this$props2.animationEasing,
26158
+ filterNull = _this$props2.filterNull,
26159
+ payloadUniqBy = _this$props2.payloadUniqBy;
26160
+ var finalPayload = getUniqPayload(payloadUniqBy, filterNull && payload && payload.length ? payload.filter(function (entry) {
26161
+ return !isNil_1(entry.value);
26162
+ }) : payload);
26163
+ var hasPayload = finalPayload && finalPayload.length;
26164
+ var _this$props3 = this.props,
26165
+ content = _this$props3.content,
26166
+ viewBox = _this$props3.viewBox,
26167
+ coordinate = _this$props3.coordinate,
26168
+ position = _this$props3.position,
26169
+ active = _this$props3.active,
26170
+ wrapperStyle = _this$props3.wrapperStyle;
26171
+ var outerStyle = _objectSpread$l({
26172
+ pointerEvents: 'none',
26173
+ visibility: !this.state.dismissed && active && hasPayload ? 'visible' : 'hidden',
26174
+ position: 'absolute',
26175
+ top: 0,
26176
+ left: 0
26177
+ }, wrapperStyle);
26178
+ var translateX, translateY;
26179
+ if (position && isNumber(position.x) && isNumber(position.y)) {
26180
+ translateX = position.x;
26181
+ translateY = position.y;
26182
+ } else {
26183
+ var _this$state2 = this.state,
26184
+ boxWidth = _this$state2.boxWidth,
26185
+ boxHeight = _this$state2.boxHeight;
26186
+ if (boxWidth > 0 && boxHeight > 0 && coordinate) {
26187
+ translateX = this.getTranslate({
26188
+ key: 'x',
26189
+ tooltipDimension: boxWidth,
26190
+ viewBoxDimension: viewBox.width
26191
+ });
26192
+ translateY = this.getTranslate({
26193
+ key: 'y',
26194
+ tooltipDimension: boxHeight,
26195
+ viewBoxDimension: viewBox.height
26196
+ });
26197
+ } else {
26198
+ outerStyle.visibility = 'hidden';
26199
+ }
26200
+ }
26201
+ outerStyle = _objectSpread$l(_objectSpread$l({}, translateStyle({
26202
+ transform: this.props.useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)")
26203
+ })), outerStyle);
26204
+ if (isAnimationActive && active) {
26205
+ outerStyle = _objectSpread$l(_objectSpread$l({}, translateStyle({
26206
+ transition: "transform ".concat(animationDuration, "ms ").concat(animationEasing)
26207
+ })), outerStyle);
26208
+ }
26209
+ var cls = classNames(CLS_PREFIX, (_classNames = {}, _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-right"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-left"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-bottom"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-top"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y), _classNames));
26210
+ return (
26211
+ /*#__PURE__*/
26212
+ // ESLint is disabled to allow listening to the `Escape` key. Refer to
26213
+ // https://github.com/recharts/recharts/pull/2925
26214
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
26215
+ React__default["default"].createElement("div", {
26216
+ tabIndex: -1,
26217
+ role: "dialog",
26218
+ className: cls,
26219
+ style: outerStyle,
26220
+ ref: function ref(node) {
26221
+ _this2.wrapperNode = node;
26222
+ }
26223
+ }, renderContent(content, _objectSpread$l(_objectSpread$l({}, this.props), {}, {
26224
+ payload: finalPayload
26225
+ })))
26226
+ );
26227
+ }
26228
+ }]);
26229
+ return Tooltip;
26230
+ }(React$3.PureComponent);
26231
+ _defineProperty$m(Tooltip$1, "displayName", 'Tooltip');
26232
+ _defineProperty$m(Tooltip$1, "defaultProps", {
26018
26233
  active: false,
26019
26234
  allowEscapeViewBox: {
26020
26235
  x: false,
@@ -26035,9 +26250,6 @@ var tooltipDefaultProps = {
26035
26250
  x: 0,
26036
26251
  y: 0
26037
26252
  },
26038
- // this doesn't exist on TooltipProps
26039
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
26040
- // @ts-ignore
26041
26253
  cursorStyle: {},
26042
26254
  separator: ' : ',
26043
26255
  wrapperStyle: {},
@@ -26051,173 +26263,7 @@ var tooltipDefaultProps = {
26051
26263
  animationDuration: 400,
26052
26264
  filterNull: true,
26053
26265
  useTranslate3d: false
26054
- };
26055
- var Tooltip$1 = function Tooltip(props) {
26056
- var _classNames;
26057
- var _useState = React$3.useState(-1),
26058
- _useState2 = _slicedToArray$7(_useState, 2),
26059
- boxWidth = _useState2[0],
26060
- setBoxWidth = _useState2[1];
26061
- var _useState3 = React$3.useState(-1),
26062
- _useState4 = _slicedToArray$7(_useState3, 2),
26063
- boxHeight = _useState4[0],
26064
- setBoxHeight = _useState4[1];
26065
- var _useState5 = React$3.useState(false),
26066
- _useState6 = _slicedToArray$7(_useState5, 2),
26067
- dismissed = _useState6[0],
26068
- setDismissed = _useState6[1];
26069
- var _useState7 = React$3.useState({
26070
- x: 0,
26071
- y: 0
26072
- }),
26073
- _useState8 = _slicedToArray$7(_useState7, 2),
26074
- dismissedAtCoordinate = _useState8[0],
26075
- setDismissedAtCoordinate = _useState8[1];
26076
- var wrapperNode = React$3.useRef();
26077
- var allowEscapeViewBox = props.allowEscapeViewBox,
26078
- reverseDirection = props.reverseDirection,
26079
- coordinate = props.coordinate,
26080
- offset = props.offset,
26081
- position = props.position,
26082
- viewBox = props.viewBox;
26083
- var handleKeyDown = React$3.useCallback(function (event) {
26084
- if (event.key === 'Escape') {
26085
- setDismissed(true);
26086
- setDismissedAtCoordinate(function (prev) {
26087
- return _objectSpread$i(_objectSpread$i({}, prev), {}, {
26088
- x: coordinate === null || coordinate === void 0 ? void 0 : coordinate.x,
26089
- y: coordinate === null || coordinate === void 0 ? void 0 : coordinate.y
26090
- });
26091
- });
26092
- }
26093
- }, [coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, coordinate === null || coordinate === void 0 ? void 0 : coordinate.y]);
26094
- React$3.useEffect(function () {
26095
- var updateBBox = function updateBBox() {
26096
- if (dismissed) {
26097
- document.removeEventListener('keydown', handleKeyDown);
26098
- if ((coordinate === null || coordinate === void 0 ? void 0 : coordinate.x) !== dismissedAtCoordinate.x || (coordinate === null || coordinate === void 0 ? void 0 : coordinate.y) !== dismissedAtCoordinate.y) {
26099
- setDismissed(false);
26100
- }
26101
- } else {
26102
- document.addEventListener('keydown', handleKeyDown);
26103
- }
26104
- if (wrapperNode.current && wrapperNode.current.getBoundingClientRect) {
26105
- var box = wrapperNode.current.getBoundingClientRect();
26106
- if (Math.abs(box.width - boxWidth) > EPS$1 || Math.abs(box.height - boxHeight) > EPS$1) {
26107
- setBoxWidth(box.width);
26108
- setBoxHeight(box.height);
26109
- }
26110
- } else if (boxWidth !== -1 || boxHeight !== -1) {
26111
- setBoxWidth(-1);
26112
- setBoxHeight(-1);
26113
- }
26114
- };
26115
- updateBBox();
26116
- return function () {
26117
- document.removeEventListener('keydown', handleKeyDown);
26118
- };
26119
- }, [boxHeight, boxWidth, coordinate, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]);
26120
- var getTranslate = function getTranslate(_ref) {
26121
- var key = _ref.key,
26122
- tooltipDimension = _ref.tooltipDimension,
26123
- viewBoxDimension = _ref.viewBoxDimension;
26124
- if (position && isNumber(position[key])) {
26125
- return position[key];
26126
- }
26127
- var negative = coordinate[key] - tooltipDimension - offset;
26128
- var positive = coordinate[key] + offset;
26129
- if (allowEscapeViewBox !== null && allowEscapeViewBox !== void 0 && allowEscapeViewBox[key]) {
26130
- return reverseDirection[key] ? negative : positive;
26131
- }
26132
- if (reverseDirection !== null && reverseDirection !== void 0 && reverseDirection[key]) {
26133
- var _tooltipBoundary = negative;
26134
- var _viewBoxBoundary = viewBox[key];
26135
- if (_tooltipBoundary < _viewBoxBoundary) {
26136
- return Math.max(positive, viewBox[key]);
26137
- }
26138
- return Math.max(negative, viewBox[key]);
26139
- }
26140
- var tooltipBoundary = positive + tooltipDimension;
26141
- var viewBoxBoundary = viewBox[key] + viewBoxDimension;
26142
- if (tooltipBoundary > viewBoxBoundary) {
26143
- return Math.max(negative, viewBox[key]);
26144
- }
26145
- return Math.max(positive, viewBox[key]);
26146
- };
26147
- var payload = props.payload,
26148
- payloadUniqBy = props.payloadUniqBy,
26149
- filterNull = props.filterNull,
26150
- active = props.active,
26151
- wrapperStyle = props.wrapperStyle,
26152
- useTranslate3d = props.useTranslate3d,
26153
- isAnimationActive = props.isAnimationActive,
26154
- animationDuration = props.animationDuration,
26155
- animationEasing = props.animationEasing;
26156
- var finalPayload = getUniqPayload(payloadUniqBy, filterNull && payload && payload.length ? payload.filter(function (entry) {
26157
- return !isNil_1(entry.value);
26158
- }) : payload);
26159
- var hasPayload = finalPayload && finalPayload.length;
26160
- var content = props.content;
26161
- var outerStyle = _objectSpread$i({
26162
- pointerEvents: 'none',
26163
- visibility: !dismissed && active && hasPayload ? 'visible' : 'hidden',
26164
- position: 'absolute',
26165
- top: 0,
26166
- left: 0
26167
- }, wrapperStyle);
26168
- var translateX, translateY;
26169
- if (position && isNumber(position.x) && isNumber(position.y)) {
26170
- translateX = position.x;
26171
- translateY = position.y;
26172
- } else if (boxWidth > 0 && boxHeight > 0 && coordinate) {
26173
- translateX = getTranslate({
26174
- key: 'x',
26175
- tooltipDimension: boxWidth,
26176
- viewBoxDimension: viewBox.width
26177
- });
26178
- translateY = getTranslate({
26179
- key: 'y',
26180
- tooltipDimension: boxHeight,
26181
- viewBoxDimension: viewBox.height
26182
- });
26183
- } else {
26184
- outerStyle.visibility = 'hidden';
26185
- }
26186
- outerStyle = _objectSpread$i(_objectSpread$i({}, translateStyle({
26187
- transform: useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)")
26188
- })), outerStyle);
26189
- if (isAnimationActive && active) {
26190
- outerStyle = _objectSpread$i(_objectSpread$i({}, translateStyle({
26191
- transition: "transform ".concat(animationDuration, "ms ").concat(animationEasing)
26192
- })), outerStyle);
26193
- }
26194
- var cls = classNames(CLS_PREFIX, (_classNames = {}, _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-right"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-left"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-bottom"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-top"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y), _classNames));
26195
- return (
26196
- /*#__PURE__*/
26197
- // ESLint is disabled to allow listening to the `Escape` key. Refer to
26198
- // https://github.com/recharts/recharts/pull/2925
26199
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
26200
- React__default["default"].createElement("div", {
26201
- tabIndex: -1,
26202
- role: "dialog",
26203
- className: cls,
26204
- style: outerStyle,
26205
- ref: wrapperNode
26206
- }, renderContent(content, _objectSpread$i(_objectSpread$i({}, props), {}, {
26207
- payload: finalPayload
26208
- })))
26209
- );
26210
- };
26211
-
26212
- // needs to be set so that renderByOrder can find the correct handler function
26213
- Tooltip$1.displayName = 'Tooltip';
26214
-
26215
- /**
26216
- * needs to be set so that renderByOrder can access an have default values for
26217
- * children.props when there are no props set by the consumer
26218
- * doesn't work if using default parameters
26219
- */
26220
- Tooltip$1.defaultProps = tooltipDefaultProps;
26266
+ });
26221
26267
 
26222
26268
  var root = _root;
26223
26269
 
@@ -31787,12 +31833,12 @@ module.exports = exports['default'];
31787
31833
 
31788
31834
  var reduceCSSCalc = /*@__PURE__*/getDefaultExportFromCjs(dist.exports);
31789
31835
 
31790
- function _typeof$i(obj) { "@babel/helpers - typeof"; return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$i(obj); }
31791
- function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31792
- function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$i(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31793
- function _defineProperty$i(obj, key, value) { key = _toPropertyKey$i(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31794
- function _toPropertyKey$i(arg) { var key = _toPrimitive$i(arg, "string"); return _typeof$i(key) === "symbol" ? key : String(key); }
31795
- function _toPrimitive$i(input, hint) { if (_typeof$i(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$i(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31836
+ function _typeof$l(obj) { "@babel/helpers - typeof"; return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$l(obj); }
31837
+ function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31838
+ function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$l(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31839
+ function _defineProperty$l(obj, key, value) { key = _toPropertyKey$l(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31840
+ function _toPropertyKey$l(arg) { var key = _toPrimitive$l(arg, "string"); return _typeof$l(key) === "symbol" ? key : String(key); }
31841
+ function _toPrimitive$l(input, hint) { if (_typeof$l(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$l(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31796
31842
  function _toConsumableArray$7(arr) { return _arrayWithoutHoles$7(arr) || _iterableToArray$7(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$7(); }
31797
31843
  function _nonIterableSpread$7() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31798
31844
  function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
@@ -31860,7 +31906,7 @@ var getStringSize = function getStringSize(text) {
31860
31906
  }
31861
31907
  // Need to use CSS Object Model (CSSOM) to be able to comply with Content Security Policy (CSP)
31862
31908
  // https://en.wikipedia.org/wiki/Content_Security_Policy
31863
- var measurementSpanStyle = _objectSpread$h(_objectSpread$h({}, SPAN_STYLE), style);
31909
+ var measurementSpanStyle = _objectSpread$k(_objectSpread$k({}, SPAN_STYLE), style);
31864
31910
  Object.keys(measurementSpanStyle).map(function (styleKey) {
31865
31911
  measurementSpan.style[styleKey] = measurementSpanStyle[styleKey];
31866
31912
  return styleKey;
@@ -31915,10 +31961,11 @@ var calculateChartCoordinate = function calculateChartCoordinate(event, offset)
31915
31961
  };
31916
31962
  };
31917
31963
 
31918
- var _excluded$7 = ["dx", "dy", "textAnchor", "verticalAnchor", "scaleToFit", "angle", "lineHeight", "capHeight", "className", "breakAll"];
31964
+ var _excluded$9 = ["x", "y", "lineHeight", "capHeight", "scaleToFit", "textAnchor", "verticalAnchor", "fill"],
31965
+ _excluded2$3 = ["dx", "dy", "angle", "className", "breakAll"];
31919
31966
  function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
31920
- function _objectWithoutProperties$7(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
31921
- function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31967
+ function _objectWithoutProperties$9(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
31968
+ function _objectWithoutPropertiesLoose$9(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31922
31969
  function _slicedToArray$5(arr, i) { return _arrayWithHoles$5(arr) || _iterableToArrayLimit$5(arr, i) || _unsupportedIterableToArray$a(arr, i) || _nonIterableRest$5(); }
31923
31970
  function _nonIterableRest$5() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31924
31971
  function _unsupportedIterableToArray$a(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$a(o, minLen); }
@@ -32072,45 +32119,46 @@ var getWordsByLines = function getWordsByLines(_ref4) {
32072
32119
  }
32073
32120
  return getWordsWithoutCalculate(children);
32074
32121
  };
32075
- var textDefaultProps = {
32076
- x: 0,
32077
- y: 0,
32078
- lineHeight: '1em',
32079
- capHeight: '0.71em',
32080
- // Magic number from d3
32081
- scaleToFit: false,
32082
- textAnchor: 'start',
32083
- verticalAnchor: 'end',
32084
- // Maintain compat with existing charts / default SVG behavior
32085
- fill: '#808080'
32086
- };
32087
- var Text = function Text(props) {
32122
+ var DEFAULT_FILL = '#808080';
32123
+ var Text = function Text(_ref5) {
32124
+ var _ref5$x = _ref5.x,
32125
+ propsX = _ref5$x === void 0 ? 0 : _ref5$x,
32126
+ _ref5$y = _ref5.y,
32127
+ propsY = _ref5$y === void 0 ? 0 : _ref5$y,
32128
+ _ref5$lineHeight = _ref5.lineHeight,
32129
+ lineHeight = _ref5$lineHeight === void 0 ? '1em' : _ref5$lineHeight,
32130
+ _ref5$capHeight = _ref5.capHeight,
32131
+ capHeight = _ref5$capHeight === void 0 ? '0.71em' : _ref5$capHeight,
32132
+ _ref5$scaleToFit = _ref5.scaleToFit,
32133
+ scaleToFit = _ref5$scaleToFit === void 0 ? false : _ref5$scaleToFit,
32134
+ _ref5$textAnchor = _ref5.textAnchor,
32135
+ textAnchor = _ref5$textAnchor === void 0 ? 'start' : _ref5$textAnchor,
32136
+ _ref5$verticalAnchor = _ref5.verticalAnchor,
32137
+ verticalAnchor = _ref5$verticalAnchor === void 0 ? 'end' : _ref5$verticalAnchor,
32138
+ _ref5$fill = _ref5.fill,
32139
+ fill = _ref5$fill === void 0 ? DEFAULT_FILL : _ref5$fill,
32140
+ props = _objectWithoutProperties$9(_ref5, _excluded$9);
32088
32141
  var wordsByLines = React$3.useMemo(function () {
32089
32142
  return getWordsByLines({
32090
32143
  breakAll: props.breakAll,
32091
32144
  children: props.children,
32092
32145
  maxLines: props.maxLines,
32093
- scaleToFit: props.scaleToFit,
32146
+ scaleToFit: scaleToFit,
32094
32147
  style: props.style,
32095
32148
  width: props.width
32096
32149
  });
32097
- }, [props.breakAll, props.children, props.maxLines, props.scaleToFit, props.style, props.width]);
32150
+ }, [props.breakAll, props.children, props.maxLines, scaleToFit, props.style, props.width]);
32098
32151
  var dx = props.dx,
32099
32152
  dy = props.dy,
32100
- textAnchor = props.textAnchor,
32101
- verticalAnchor = props.verticalAnchor,
32102
- scaleToFit = props.scaleToFit,
32103
32153
  angle = props.angle,
32104
- lineHeight = props.lineHeight,
32105
- capHeight = props.capHeight,
32106
32154
  className = props.className,
32107
32155
  breakAll = props.breakAll,
32108
- textProps = _objectWithoutProperties$7(props, _excluded$7);
32109
- if (!isNumOrStr(textProps.x) || !isNumOrStr(textProps.y)) {
32156
+ textProps = _objectWithoutProperties$9(props, _excluded2$3);
32157
+ if (!isNumOrStr(propsX) || !isNumOrStr(propsY)) {
32110
32158
  return null;
32111
32159
  }
32112
- var x = textProps.x + (isNumber(dx) ? dx : 0);
32113
- var y = textProps.y + (isNumber(dy) ? dy : 0);
32160
+ var x = propsX + (isNumber(dx) ? dx : 0);
32161
+ var y = propsY + (isNumber(dy) ? dy : 0);
32114
32162
  var startDy;
32115
32163
  switch (verticalAnchor) {
32116
32164
  case 'start':
@@ -32140,7 +32188,7 @@ var Text = function Text(props) {
32140
32188
  y: y,
32141
32189
  className: classNames('recharts-text', className),
32142
32190
  textAnchor: textAnchor,
32143
- fill: textProps.fill.includes('url') ? textDefaultProps.fill : textProps.fill
32191
+ fill: fill.includes('url') ? DEFAULT_FILL : fill
32144
32192
  }), wordsByLines.map(function (line, index) {
32145
32193
  return (
32146
32194
  /*#__PURE__*/
@@ -32153,7 +32201,6 @@ var Text = function Text(props) {
32153
32201
  );
32154
32202
  }));
32155
32203
  };
32156
- Text.defaultProps = textDefaultProps;
32157
32204
 
32158
32205
  var baseIsEqual = _baseIsEqual;
32159
32206
 
@@ -38421,7 +38468,7 @@ function getTickValuesFixedDomainFn(_ref7, tickCount) {
38421
38468
  var getNiceTickValues = memoize(getNiceTickValuesFn);
38422
38469
  var getTickValuesFixedDomain = memoize(getTickValuesFixedDomainFn);
38423
38470
 
38424
- var _excluded$6 = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"];
38471
+ var _excluded$8 = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"];
38425
38472
  function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
38426
38473
  function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$7(arr, i) || _nonIterableRest$3(); }
38427
38474
  function _nonIterableRest$3() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -38429,8 +38476,8 @@ function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o
38429
38476
  function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
38430
38477
  function _iterableToArrayLimit$3(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
38431
38478
  function _arrayWithHoles$3(arr) { if (Array.isArray(arr)) return arr; }
38432
- function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
38433
- function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
38479
+ function _objectWithoutProperties$8(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
38480
+ function _objectWithoutPropertiesLoose$8(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
38434
38481
  function ErrorBar(props) {
38435
38482
  var offset = props.offset,
38436
38483
  layout = props.layout,
@@ -38440,7 +38487,7 @@ function ErrorBar(props) {
38440
38487
  dataPointFormatter = props.dataPointFormatter,
38441
38488
  xAxis = props.xAxis,
38442
38489
  yAxis = props.yAxis,
38443
- others = _objectWithoutProperties$6(props, _excluded$6);
38490
+ others = _objectWithoutProperties$8(props, _excluded$8);
38444
38491
  var svgProps = filterProps(others);
38445
38492
  var errorBars = data.map(function (entry, i) {
38446
38493
  var _dataPointFormatter = dataPointFormatter(entry, dataKey),
@@ -38551,18 +38598,18 @@ ErrorBar.defaultProps = {
38551
38598
  };
38552
38599
  ErrorBar.displayName = 'ErrorBar';
38553
38600
 
38554
- function _typeof$h(obj) { "@babel/helpers - typeof"; return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$h(obj); }
38601
+ function _typeof$k(obj) { "@babel/helpers - typeof"; return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$k(obj); }
38555
38602
  function _toConsumableArray$4(arr) { return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$6(arr) || _nonIterableSpread$4(); }
38556
38603
  function _nonIterableSpread$4() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38557
38604
  function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
38558
38605
  function _iterableToArray$4(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
38559
38606
  function _arrayWithoutHoles$4(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$6(arr); }
38560
38607
  function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
38561
- function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38562
- function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty$h(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
38563
- function _defineProperty$h(obj, key, value) { key = _toPropertyKey$h(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38564
- function _toPropertyKey$h(arg) { var key = _toPrimitive$h(arg, "string"); return _typeof$h(key) === "symbol" ? key : String(key); }
38565
- function _toPrimitive$h(input, hint) { if (_typeof$h(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$h(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
38608
+ function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38609
+ function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty$k(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
38610
+ function _defineProperty$k(obj, key, value) { key = _toPropertyKey$k(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38611
+ function _toPropertyKey$k(arg) { var key = _toPrimitive$k(arg, "string"); return _typeof$k(key) === "symbol" ? key : String(key); }
38612
+ function _toPrimitive$k(input, hint) { if (_typeof$k(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$k(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
38566
38613
  // TODO: Cause of circular dependency. Needs refactor.
38567
38614
  // import { RadiusAxisProps, AngleAxisProps } from '../polar/types';
38568
38615
  function getValueByDataKey(obj, dataKey, defaultValue) {
@@ -38733,7 +38780,7 @@ var getLegendProps = function getLegendProps(_ref2) {
38733
38780
  };
38734
38781
  });
38735
38782
  }
38736
- return _objectSpread$g(_objectSpread$g(_objectSpread$g({}, legendItem.props), Legend.getWithHeight(legendItem, legendWidth)), {}, {
38783
+ return _objectSpread$j(_objectSpread$j(_objectSpread$j({}, legendItem.props), Legend.getWithHeight(legendItem, legendWidth)), {}, {
38737
38784
  payload: legendData,
38738
38785
  item: legendItem
38739
38786
  });
@@ -38887,10 +38934,10 @@ var appendOffsetOfLegend = function appendOffsetOfLegend(offset, items, props, l
38887
38934
  verticalAlign = legendProps.verticalAlign,
38888
38935
  layout = legendProps.layout;
38889
38936
  if ((layout === 'vertical' || layout === 'horizontal' && verticalAlign === 'middle') && isNumber(offset[align])) {
38890
- newOffset = _objectSpread$g(_objectSpread$g({}, offset), {}, _defineProperty$h({}, align, newOffset[align] + (box.width || 0)));
38937
+ newOffset = _objectSpread$j(_objectSpread$j({}, offset), {}, _defineProperty$k({}, align, newOffset[align] + (box.width || 0)));
38891
38938
  }
38892
38939
  if ((layout === 'horizontal' || layout === 'vertical' && align === 'center') && isNumber(offset[verticalAlign])) {
38893
- newOffset = _objectSpread$g(_objectSpread$g({}, offset), {}, _defineProperty$h({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)));
38940
+ newOffset = _objectSpread$j(_objectSpread$j({}, offset), {}, _defineProperty$k({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)));
38894
38941
  }
38895
38942
  }
38896
38943
  return newOffset;
@@ -39316,14 +39363,14 @@ var getStackGroupsByAxisId = function getStackGroupsByAxisId(data, _items, numer
39316
39363
  items: [item]
39317
39364
  };
39318
39365
  }
39319
- return _objectSpread$g(_objectSpread$g({}, result), {}, _defineProperty$h({}, axisId, parentGroup));
39366
+ return _objectSpread$j(_objectSpread$j({}, result), {}, _defineProperty$k({}, axisId, parentGroup));
39320
39367
  }, {});
39321
39368
  return Object.keys(stackGroups).reduce(function (result, axisId) {
39322
39369
  var group = stackGroups[axisId];
39323
39370
  if (group.hasStack) {
39324
39371
  group.stackGroups = Object.keys(group.stackGroups).reduce(function (res, stackId) {
39325
39372
  var g = group.stackGroups[stackId];
39326
- return _objectSpread$g(_objectSpread$g({}, res), {}, _defineProperty$h({}, stackId, {
39373
+ return _objectSpread$j(_objectSpread$j({}, res), {}, _defineProperty$k({}, stackId, {
39327
39374
  numericAxisId: numericAxisId,
39328
39375
  cateAxisId: cateAxisId,
39329
39376
  items: g.items,
@@ -39331,7 +39378,7 @@ var getStackGroupsByAxisId = function getStackGroupsByAxisId(data, _items, numer
39331
39378
  }));
39332
39379
  }, {});
39333
39380
  }
39334
- return _objectSpread$g(_objectSpread$g({}, result), {}, _defineProperty$h({}, axisId, group));
39381
+ return _objectSpread$j(_objectSpread$j({}, result), {}, _defineProperty$k({}, axisId, group));
39335
39382
  }, {});
39336
39383
  };
39337
39384
 
@@ -39545,7 +39592,7 @@ var getTooltipItem = function getTooltipItem(graphicalItem, payload) {
39545
39592
  formatter = _graphicalItem$props.formatter,
39546
39593
  tooltipType = _graphicalItem$props.tooltipType,
39547
39594
  chartType = _graphicalItem$props.chartType;
39548
- return _objectSpread$g(_objectSpread$g({}, filterProps(graphicalItem)), {}, {
39595
+ return _objectSpread$j(_objectSpread$j({}, filterProps(graphicalItem)), {}, {
39549
39596
  dataKey: dataKey,
39550
39597
  unit: unit,
39551
39598
  formatter: formatter,
@@ -39558,12 +39605,12 @@ var getTooltipItem = function getTooltipItem(graphicalItem, payload) {
39558
39605
  });
39559
39606
  };
39560
39607
 
39561
- function _typeof$g(obj) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$g(obj); }
39562
- function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39563
- function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty$g(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39564
- function _defineProperty$g(obj, key, value) { key = _toPropertyKey$g(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39565
- function _toPropertyKey$g(arg) { var key = _toPrimitive$g(arg, "string"); return _typeof$g(key) === "symbol" ? key : String(key); }
39566
- function _toPrimitive$g(input, hint) { if (_typeof$g(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$g(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39608
+ function _typeof$j(obj) { "@babel/helpers - typeof"; return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$j(obj); }
39609
+ function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39610
+ function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty$j(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39611
+ function _defineProperty$j(obj, key, value) { key = _toPropertyKey$j(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39612
+ function _toPropertyKey$j(arg) { var key = _toPrimitive$j(arg, "string"); return _typeof$j(key) === "symbol" ? key : String(key); }
39613
+ function _toPrimitive$j(input, hint) { if (_typeof$j(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$j(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39567
39614
  var RADIAN = Math.PI / 180;
39568
39615
  var radianToDegree = function radianToDegree(angleInRadian) {
39569
39616
  return angleInRadian * 180 / Math.PI;
@@ -39668,7 +39715,7 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
39668
39715
  inRange = formatAngle >= endAngle && formatAngle <= startAngle;
39669
39716
  }
39670
39717
  if (inRange) {
39671
- return _objectSpread$f(_objectSpread$f({}, sector), {}, {
39718
+ return _objectSpread$i(_objectSpread$i({}, sector), {}, {
39672
39719
  radius: radius,
39673
39720
  angle: reverseFormatAngleOfSetor(formatAngle, sector)
39674
39721
  });
@@ -39676,18 +39723,21 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
39676
39723
  return null;
39677
39724
  };
39678
39725
 
39679
- function _typeof$f(obj) { "@babel/helpers - typeof"; return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$f(obj); }
39726
+ function _typeof$i(obj) { "@babel/helpers - typeof"; return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$i(obj); }
39727
+ var _excluded$7 = ["offset"];
39680
39728
  function _toConsumableArray$3(arr) { return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$5(arr) || _nonIterableSpread$3(); }
39681
39729
  function _nonIterableSpread$3() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39682
39730
  function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
39683
39731
  function _iterableToArray$3(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
39684
39732
  function _arrayWithoutHoles$3(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$5(arr); }
39685
39733
  function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
39686
- function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39687
- function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$f(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39688
- function _defineProperty$f(obj, key, value) { key = _toPropertyKey$f(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39689
- function _toPropertyKey$f(arg) { var key = _toPrimitive$f(arg, "string"); return _typeof$f(key) === "symbol" ? key : String(key); }
39690
- function _toPrimitive$f(input, hint) { if (_typeof$f(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$f(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39734
+ function _objectWithoutProperties$7(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
39735
+ function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
39736
+ function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39737
+ function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$i(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39738
+ function _defineProperty$i(obj, key, value) { key = _toPropertyKey$i(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39739
+ function _toPropertyKey$i(arg) { var key = _toPrimitive$i(arg, "string"); return _typeof$i(key) === "symbol" ? key : String(key); }
39740
+ function _toPrimitive$i(input, hint) { if (_typeof$i(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$i(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39691
39741
  function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
39692
39742
  var getLabel = function getLabel(props) {
39693
39743
  var value = props.value,
@@ -39832,7 +39882,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39832
39882
  textAnchor: 'middle',
39833
39883
  verticalAnchor: verticalEnd
39834
39884
  };
39835
- return _objectSpread$e(_objectSpread$e({}, attrs), parentViewBox ? {
39885
+ return _objectSpread$h(_objectSpread$h({}, attrs), parentViewBox ? {
39836
39886
  height: Math.max(y - parentViewBox.y, 0),
39837
39887
  width: width
39838
39888
  } : {});
@@ -39844,7 +39894,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39844
39894
  textAnchor: 'middle',
39845
39895
  verticalAnchor: verticalStart
39846
39896
  };
39847
- return _objectSpread$e(_objectSpread$e({}, _attrs), parentViewBox ? {
39897
+ return _objectSpread$h(_objectSpread$h({}, _attrs), parentViewBox ? {
39848
39898
  height: Math.max(parentViewBox.y + parentViewBox.height - (y + height), 0),
39849
39899
  width: width
39850
39900
  } : {});
@@ -39856,7 +39906,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39856
39906
  textAnchor: horizontalEnd,
39857
39907
  verticalAnchor: 'middle'
39858
39908
  };
39859
- return _objectSpread$e(_objectSpread$e({}, _attrs2), parentViewBox ? {
39909
+ return _objectSpread$h(_objectSpread$h({}, _attrs2), parentViewBox ? {
39860
39910
  width: Math.max(_attrs2.x - parentViewBox.x, 0),
39861
39911
  height: height
39862
39912
  } : {});
@@ -39868,7 +39918,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39868
39918
  textAnchor: horizontalStart,
39869
39919
  verticalAnchor: 'middle'
39870
39920
  };
39871
- return _objectSpread$e(_objectSpread$e({}, _attrs3), parentViewBox ? {
39921
+ return _objectSpread$h(_objectSpread$h({}, _attrs3), parentViewBox ? {
39872
39922
  width: Math.max(parentViewBox.x + parentViewBox.width - _attrs3.x, 0),
39873
39923
  height: height
39874
39924
  } : {});
@@ -39878,7 +39928,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39878
39928
  height: height
39879
39929
  } : {};
39880
39930
  if (position === 'insideLeft') {
39881
- return _objectSpread$e({
39931
+ return _objectSpread$h({
39882
39932
  x: x + horizontalOffset,
39883
39933
  y: y + height / 2,
39884
39934
  textAnchor: horizontalStart,
@@ -39886,7 +39936,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39886
39936
  }, sizeAttrs);
39887
39937
  }
39888
39938
  if (position === 'insideRight') {
39889
- return _objectSpread$e({
39939
+ return _objectSpread$h({
39890
39940
  x: x + width - horizontalOffset,
39891
39941
  y: y + height / 2,
39892
39942
  textAnchor: horizontalEnd,
@@ -39894,7 +39944,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39894
39944
  }, sizeAttrs);
39895
39945
  }
39896
39946
  if (position === 'insideTop') {
39897
- return _objectSpread$e({
39947
+ return _objectSpread$h({
39898
39948
  x: x + width / 2,
39899
39949
  y: y + verticalOffset,
39900
39950
  textAnchor: 'middle',
@@ -39902,7 +39952,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39902
39952
  }, sizeAttrs);
39903
39953
  }
39904
39954
  if (position === 'insideBottom') {
39905
- return _objectSpread$e({
39955
+ return _objectSpread$h({
39906
39956
  x: x + width / 2,
39907
39957
  y: y + height - verticalOffset,
39908
39958
  textAnchor: 'middle',
@@ -39910,7 +39960,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39910
39960
  }, sizeAttrs);
39911
39961
  }
39912
39962
  if (position === 'insideTopLeft') {
39913
- return _objectSpread$e({
39963
+ return _objectSpread$h({
39914
39964
  x: x + horizontalOffset,
39915
39965
  y: y + verticalOffset,
39916
39966
  textAnchor: horizontalStart,
@@ -39918,7 +39968,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39918
39968
  }, sizeAttrs);
39919
39969
  }
39920
39970
  if (position === 'insideTopRight') {
39921
- return _objectSpread$e({
39971
+ return _objectSpread$h({
39922
39972
  x: x + width - horizontalOffset,
39923
39973
  y: y + verticalOffset,
39924
39974
  textAnchor: horizontalEnd,
@@ -39926,7 +39976,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39926
39976
  }, sizeAttrs);
39927
39977
  }
39928
39978
  if (position === 'insideBottomLeft') {
39929
- return _objectSpread$e({
39979
+ return _objectSpread$h({
39930
39980
  x: x + horizontalOffset,
39931
39981
  y: y + height - verticalOffset,
39932
39982
  textAnchor: horizontalStart,
@@ -39934,7 +39984,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39934
39984
  }, sizeAttrs);
39935
39985
  }
39936
39986
  if (position === 'insideBottomRight') {
39937
- return _objectSpread$e({
39987
+ return _objectSpread$h({
39938
39988
  x: x + width - horizontalOffset,
39939
39989
  y: y + height - verticalOffset,
39940
39990
  textAnchor: horizontalEnd,
@@ -39942,14 +39992,14 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39942
39992
  }, sizeAttrs);
39943
39993
  }
39944
39994
  if (isObject_1(position) && (isNumber(position.x) || isPercent(position.x)) && (isNumber(position.y) || isPercent(position.y))) {
39945
- return _objectSpread$e({
39995
+ return _objectSpread$h({
39946
39996
  x: x + getPercentValue(position.x, width),
39947
39997
  y: y + getPercentValue(position.y, height),
39948
39998
  textAnchor: 'end',
39949
39999
  verticalAnchor: 'end'
39950
40000
  }, sizeAttrs);
39951
40001
  }
39952
- return _objectSpread$e({
40002
+ return _objectSpread$h({
39953
40003
  x: x + width / 2,
39954
40004
  y: y + height / 2,
39955
40005
  textAnchor: 'middle',
@@ -39959,7 +40009,13 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
39959
40009
  var isPolar = function isPolar(viewBox) {
39960
40010
  return 'cx' in viewBox && isNumber(viewBox.cx);
39961
40011
  };
39962
- function Label$3(props) {
40012
+ function Label$3(_ref4) {
40013
+ var _ref4$offset = _ref4.offset,
40014
+ offset = _ref4$offset === void 0 ? 5 : _ref4$offset,
40015
+ restProps = _objectWithoutProperties$7(_ref4, _excluded$7);
40016
+ var props = _objectSpread$h({
40017
+ offset: offset
40018
+ }, restProps);
39963
40019
  var viewBox = props.viewBox,
39964
40020
  position = props.position,
39965
40021
  value = props.value,
@@ -39996,9 +40052,6 @@ function Label$3(props) {
39996
40052
  }), label);
39997
40053
  }
39998
40054
  Label$3.displayName = 'Label';
39999
- Label$3.defaultProps = {
40000
- offset: 5
40001
- };
40002
40055
  var parseViewBox = function parseViewBox(props) {
40003
40056
  var cx = props.cx,
40004
40057
  cy = props.cy,
@@ -40153,8 +40206,9 @@ function last(array) {
40153
40206
 
40154
40207
  var last_1 = last;
40155
40208
 
40156
- function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$e(obj); }
40157
- var _excluded$5 = ["data", "valueAccessor", "dataKey", "clockWise", "id", "textBreakAll"];
40209
+ function _typeof$h(obj) { "@babel/helpers - typeof"; return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$h(obj); }
40210
+ var _excluded$6 = ["valueAccessor"],
40211
+ _excluded2$2 = ["data", "dataKey", "clockWise", "id", "textBreakAll"];
40158
40212
  function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread$2(); }
40159
40213
  function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
40160
40214
  function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
@@ -40162,26 +40216,26 @@ function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Sy
40162
40216
  function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$4(arr); }
40163
40217
  function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
40164
40218
  function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
40165
- function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40166
- function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40167
- function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40168
- function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
40169
- function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40170
- function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40171
- function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40172
- var defaultProps = {
40173
- valueAccessor: function valueAccessor(entry) {
40174
- return isArray_1(entry.value) ? last_1(entry.value) : entry.value;
40175
- }
40176
- };
40177
- function LabelList(props) {
40178
- var data = props.data,
40179
- valueAccessor = props.valueAccessor,
40180
- dataKey = props.dataKey,
40181
- clockWise = props.clockWise,
40182
- id = props.id,
40183
- textBreakAll = props.textBreakAll,
40184
- others = _objectWithoutProperties$5(props, _excluded$5);
40219
+ function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40220
+ function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty$h(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40221
+ function _defineProperty$h(obj, key, value) { key = _toPropertyKey$h(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40222
+ function _toPropertyKey$h(arg) { var key = _toPrimitive$h(arg, "string"); return _typeof$h(key) === "symbol" ? key : String(key); }
40223
+ function _toPrimitive$h(input, hint) { if (_typeof$h(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$h(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40224
+ function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40225
+ function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40226
+ var defaultAccessor = function defaultAccessor(entry) {
40227
+ return isArray_1(entry.value) ? last_1(entry.value) : entry.value;
40228
+ };
40229
+ function LabelList(_ref) {
40230
+ var _ref$valueAccessor = _ref.valueAccessor,
40231
+ valueAccessor = _ref$valueAccessor === void 0 ? defaultAccessor : _ref$valueAccessor,
40232
+ restProps = _objectWithoutProperties$6(_ref, _excluded$6);
40233
+ var data = restProps.data,
40234
+ dataKey = restProps.dataKey,
40235
+ clockWise = restProps.clockWise,
40236
+ id = restProps.id,
40237
+ textBreakAll = restProps.textBreakAll,
40238
+ others = _objectWithoutProperties$6(restProps, _excluded2$2);
40185
40239
  if (!data || !data.length) {
40186
40240
  return null;
40187
40241
  }
@@ -40197,7 +40251,7 @@ function LabelList(props) {
40197
40251
  index: index,
40198
40252
  value: value,
40199
40253
  textBreakAll: textBreakAll,
40200
- viewBox: Label$3.parseViewBox(isNil_1(clockWise) ? entry : _objectSpread$d(_objectSpread$d({}, entry), {}, {
40254
+ viewBox: Label$3.parseViewBox(isNil_1(clockWise) ? entry : _objectSpread$g(_objectSpread$g({}, entry), {}, {
40201
40255
  clockWise: clockWise
40202
40256
  })),
40203
40257
  key: "label-".concat(index) // eslint-disable-line react/no-array-index-key
@@ -40252,9 +40306,14 @@ function renderCallByParent(parentProps, data) {
40252
40306
  return [implicitLabelList].concat(_toConsumableArray$2(explicitChildren));
40253
40307
  }
40254
40308
  LabelList.renderCallByParent = renderCallByParent;
40255
- LabelList.defaultProps = defaultProps;
40256
40309
 
40310
+ function _typeof$g(obj) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$g(obj); }
40257
40311
  function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
40312
+ function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40313
+ function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty$g(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40314
+ function _defineProperty$g(obj, key, value) { key = _toPropertyKey$g(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40315
+ function _toPropertyKey$g(arg) { var key = _toPrimitive$g(arg, "string"); return _typeof$g(key) === "symbol" ? key : String(key); }
40316
+ function _toPrimitive$g(input, hint) { if (_typeof$g(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$g(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40258
40317
  var getDeltaAngle = function getDeltaAngle(startAngle, endAngle) {
40259
40318
  var sign = mathSign(endAngle - startAngle);
40260
40319
  var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 359.999);
@@ -40395,7 +40454,19 @@ var getSectorWithCorner = function getSectorWithCorner(_ref3) {
40395
40454
  }
40396
40455
  return path;
40397
40456
  };
40398
- var Sector = function Sector(props) {
40457
+ var defaultProps$1 = {
40458
+ cx: 0,
40459
+ cy: 0,
40460
+ innerRadius: 0,
40461
+ outerRadius: 0,
40462
+ startAngle: 0,
40463
+ endAngle: 0,
40464
+ cornerRadius: 0,
40465
+ forceCornerRadius: false,
40466
+ cornerIsExternal: false
40467
+ };
40468
+ var Sector = function Sector(sectorProps) {
40469
+ var props = _objectSpread$f(_objectSpread$f({}, defaultProps$1), sectorProps);
40399
40470
  var cx = props.cx,
40400
40471
  cy = props.cy,
40401
40472
  innerRadius = props.innerRadius,
@@ -40441,25 +40512,14 @@ var Sector = function Sector(props) {
40441
40512
  role: "img"
40442
40513
  }));
40443
40514
  };
40444
- Sector.defaultProps = {
40445
- cx: 0,
40446
- cy: 0,
40447
- innerRadius: 0,
40448
- outerRadius: 0,
40449
- startAngle: 0,
40450
- endAngle: 0,
40451
- cornerRadius: 0,
40452
- forceCornerRadius: false,
40453
- cornerIsExternal: false
40454
- };
40455
40515
 
40456
- function _typeof$d(obj) { "@babel/helpers - typeof"; return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$d(obj); }
40516
+ function _typeof$f(obj) { "@babel/helpers - typeof"; return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$f(obj); }
40457
40517
  function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
40458
- function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40459
- function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$d(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40460
- function _defineProperty$d(obj, key, value) { key = _toPropertyKey$d(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40461
- function _toPropertyKey$d(arg) { var key = _toPrimitive$d(arg, "string"); return _typeof$d(key) === "symbol" ? key : String(key); }
40462
- function _toPrimitive$d(input, hint) { if (_typeof$d(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$d(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40518
+ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40519
+ function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$f(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40520
+ function _defineProperty$f(obj, key, value) { key = _toPropertyKey$f(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40521
+ function _toPropertyKey$f(arg) { var key = _toPrimitive$f(arg, "string"); return _typeof$f(key) === "symbol" ? key : String(key); }
40522
+ function _toPrimitive$f(input, hint) { if (_typeof$f(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$f(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40463
40523
  var CURVE_FACTORIES = {
40464
40524
  curveBasisClosed: curveBasisClosed,
40465
40525
  curveBasisOpen: curveBasisOpen,
@@ -40499,11 +40559,14 @@ var getCurveFactory = function getCurveFactory(type, layout) {
40499
40559
  * @return {String} path
40500
40560
  */
40501
40561
  var getPath$1 = function getPath(_ref) {
40502
- var type = _ref.type,
40503
- points = _ref.points,
40562
+ var _ref$type = _ref.type,
40563
+ type = _ref$type === void 0 ? 'linear' : _ref$type,
40564
+ _ref$points = _ref.points,
40565
+ points = _ref$points === void 0 ? [] : _ref$points,
40504
40566
  baseLine = _ref.baseLine,
40505
40567
  layout = _ref.layout,
40506
- connectNulls = _ref.connectNulls;
40568
+ _ref$connectNulls = _ref.connectNulls,
40569
+ connectNulls = _ref$connectNulls === void 0 ? false : _ref$connectNulls;
40507
40570
  var curveFactory = getCurveFactory(type, layout);
40508
40571
  var formatPoints = connectNulls ? points.filter(function (entry) {
40509
40572
  return defined(entry);
@@ -40514,7 +40577,7 @@ var getPath$1 = function getPath(_ref) {
40514
40577
  return defined(base);
40515
40578
  }) : baseLine;
40516
40579
  var areaPoints = formatPoints.map(function (entry, index) {
40517
- return _objectSpread$c(_objectSpread$c({}, entry), {}, {
40580
+ return _objectSpread$e(_objectSpread$e({}, entry), {}, {
40518
40581
  base: formatBaseLine[index]
40519
40582
  });
40520
40583
  });
@@ -40555,12 +40618,8 @@ var Curve = function Curve(props) {
40555
40618
  ref: pathRef
40556
40619
  }));
40557
40620
  };
40558
- Curve.defaultProps = {
40559
- type: 'linear',
40560
- points: [],
40561
- connectNulls: false
40562
- };
40563
40621
 
40622
+ function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$e(obj); }
40564
40623
  function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
40565
40624
  function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$2(); }
40566
40625
  function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -40568,6 +40627,11 @@ function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o
40568
40627
  function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
40569
40628
  function _iterableToArrayLimit$2(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
40570
40629
  function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
40630
+ function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40631
+ function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40632
+ function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40633
+ function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
40634
+ function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40571
40635
  var getRectanglePath = function getRectanglePath(x, y, width, height, radius) {
40572
40636
  var maxRadius = Math.min(Math.abs(width) / 2, Math.abs(height) / 2);
40573
40637
  var ySign = height >= 0 ? 1 : -1;
@@ -40623,13 +40687,29 @@ var isInRectangle = function isInRectangle(point, rect) {
40623
40687
  }
40624
40688
  return false;
40625
40689
  };
40626
- var Rectangle = function Rectangle(props) {
40690
+ var defaultProps = {
40691
+ x: 0,
40692
+ y: 0,
40693
+ width: 0,
40694
+ height: 0,
40695
+ // The radius of border
40696
+ // The radius of four corners when radius is a number
40697
+ // The radius of left-top, right-top, right-bottom, left-bottom when radius is an array
40698
+ radius: 0,
40699
+ isAnimationActive: false,
40700
+ isUpdateAnimationActive: false,
40701
+ animationBegin: 0,
40702
+ animationDuration: 1500,
40703
+ animationEasing: 'ease'
40704
+ };
40705
+ var Rectangle = function Rectangle(rectangleProps) {
40706
+ var props = _objectSpread$d(_objectSpread$d({}, defaultProps), rectangleProps);
40627
40707
  var pathRef = React$3.useRef();
40628
40708
  var _useState = React$3.useState(-1),
40629
40709
  _useState2 = _slicedToArray$2(_useState, 2),
40630
40710
  totalLength = _useState2[0],
40631
40711
  setTotalLength = _useState2[1];
40632
- React$3.useLayoutEffect(function () {
40712
+ React$3.useEffect(function () {
40633
40713
  if (pathRef.current && pathRef.current.getTotalLength) {
40634
40714
  try {
40635
40715
  var pathTotalLength = pathRef.current.getTotalLength();
@@ -40700,21 +40780,6 @@ var Rectangle = function Rectangle(props) {
40700
40780
  })));
40701
40781
  });
40702
40782
  };
40703
- Rectangle.defaultProps = {
40704
- x: 0,
40705
- y: 0,
40706
- width: 0,
40707
- height: 0,
40708
- // The radius of border
40709
- // The radius of four corners when radius is a number
40710
- // The radius of left-top, right-top, right-bottom, left-bottom when radius is an array
40711
- radius: 0,
40712
- isAnimationActive: false,
40713
- isUpdateAnimationActive: false,
40714
- animationBegin: 0,
40715
- animationDuration: 1500,
40716
- animationEasing: 'ease'
40717
- };
40718
40783
 
40719
40784
  function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
40720
40785
  var Dot$1 = function Dot(props) {
@@ -40734,18 +40799,42 @@ var Dot$1 = function Dot(props) {
40734
40799
  return null;
40735
40800
  };
40736
40801
 
40802
+ function _typeof$d(obj) { "@babel/helpers - typeof"; return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$d(obj); }
40803
+ var _excluded$5 = ["x", "y", "top", "left", "width", "height", "className"];
40737
40804
  function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
40805
+ function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40806
+ function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$d(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40807
+ function _defineProperty$d(obj, key, value) { key = _toPropertyKey$d(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40808
+ function _toPropertyKey$d(arg) { var key = _toPrimitive$d(arg, "string"); return _typeof$d(key) === "symbol" ? key : String(key); }
40809
+ function _toPrimitive$d(input, hint) { if (_typeof$d(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$d(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40810
+ function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40811
+ function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40738
40812
  var getPath = function getPath(x, y, width, height, top, left) {
40739
40813
  return "M".concat(x, ",").concat(top, "v").concat(height, "M").concat(left, ",").concat(y, "h").concat(width);
40740
40814
  };
40741
- var Cross = function Cross(props) {
40742
- var x = props.x,
40743
- y = props.y,
40744
- width = props.width,
40745
- height = props.height,
40746
- top = props.top,
40747
- left = props.left,
40748
- className = props.className;
40815
+ var Cross = function Cross(_ref) {
40816
+ var _ref$x = _ref.x,
40817
+ x = _ref$x === void 0 ? 0 : _ref$x,
40818
+ _ref$y = _ref.y,
40819
+ y = _ref$y === void 0 ? 0 : _ref$y,
40820
+ _ref$top = _ref.top,
40821
+ top = _ref$top === void 0 ? 0 : _ref$top,
40822
+ _ref$left = _ref.left,
40823
+ left = _ref$left === void 0 ? 0 : _ref$left,
40824
+ _ref$width = _ref.width,
40825
+ width = _ref$width === void 0 ? 0 : _ref$width,
40826
+ _ref$height = _ref.height,
40827
+ height = _ref$height === void 0 ? 0 : _ref$height,
40828
+ className = _ref.className,
40829
+ rest = _objectWithoutProperties$5(_ref, _excluded$5);
40830
+ var props = _objectSpread$c({
40831
+ x: x,
40832
+ y: y,
40833
+ top: top,
40834
+ left: left,
40835
+ width: width,
40836
+ height: height
40837
+ }, rest);
40749
40838
  if (!isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || !isNumber(top) || !isNumber(left)) {
40750
40839
  return null;
40751
40840
  }
@@ -40754,14 +40843,6 @@ var Cross = function Cross(props) {
40754
40843
  d: getPath(x, y, width, height, top, left)
40755
40844
  }));
40756
40845
  };
40757
- Cross.defaultProps = {
40758
- x: 0,
40759
- y: 0,
40760
- top: 0,
40761
- left: 0,
40762
- width: 0,
40763
- height: 0
40764
- };
40765
40846
 
40766
40847
  /* Built-in method references for those with the same name as other `lodash` methods. */
40767
40848
 
@@ -40971,6 +41052,7 @@ var createScale = function createScale(_ref) {
40971
41052
  isTextActive: false,
40972
41053
  isSlideMoving: false,
40973
41054
  isTravellerMoving: false,
41055
+ isTravellerFocused: false,
40974
41056
  startX: scale(startIndex),
40975
41057
  endX: scale(endIndex),
40976
41058
  scale: scale,
@@ -41184,6 +41266,38 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41184
41266
  }
41185
41267
  });
41186
41268
  }
41269
+ }, {
41270
+ key: "handleTravellerMoveKeyboard",
41271
+ value: function handleTravellerMoveKeyboard(direction, id) {
41272
+ var _this2 = this;
41273
+ // scaleValues are a list of coordinates. For example: [65, 250, 435, 620, 805, 990].
41274
+ var _this$state3 = this.state,
41275
+ scaleValues = _this$state3.scaleValues,
41276
+ startX = _this$state3.startX,
41277
+ endX = _this$state3.endX;
41278
+ // currentScaleValue refers to which coordinate the current traveller should be placed at.
41279
+ var currentScaleValue = this.state[id];
41280
+ var currentIndex = scaleValues.indexOf(currentScaleValue);
41281
+ if (currentIndex === -1) {
41282
+ return;
41283
+ }
41284
+ var newIndex = currentIndex + direction;
41285
+ if (newIndex === -1 || newIndex >= scaleValues.length) {
41286
+ return;
41287
+ }
41288
+ var newScaleValue = scaleValues[newIndex];
41289
+
41290
+ // Prevent travellers from being on top of each other or overlapping
41291
+ if (id === 'startX' && newScaleValue >= endX || id === 'endX' && newScaleValue <= startX) {
41292
+ return;
41293
+ }
41294
+ this.setState(_defineProperty$b({}, id, newScaleValue), function () {
41295
+ _this2.props.onChange(_this2.getIndex({
41296
+ startX: _this2.state.startX,
41297
+ endX: _this2.state.endX
41298
+ }));
41299
+ });
41300
+ }
41187
41301
  }, {
41188
41302
  key: "renderBackground",
41189
41303
  value: function renderBackground() {
@@ -41231,6 +41345,7 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41231
41345
  }, {
41232
41346
  key: "renderTravellerLayer",
41233
41347
  value: function renderTravellerLayer(travellerX, id) {
41348
+ var _this3 = this;
41234
41349
  var _this$props7 = this.props,
41235
41350
  y = _this$props7.y,
41236
41351
  travellerWidth = _this$props7.travellerWidth,
@@ -41244,11 +41359,31 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41244
41359
  height: height
41245
41360
  });
41246
41361
  return /*#__PURE__*/React__default["default"].createElement(Layer, {
41362
+ tabIndex: 0,
41363
+ role: "slider",
41247
41364
  className: "recharts-brush-traveller",
41248
41365
  onMouseEnter: this.handleEnterSlideOrTraveller,
41249
41366
  onMouseLeave: this.handleLeaveSlideOrTraveller,
41250
41367
  onMouseDown: this.travellerDragStartHandlers[id],
41251
41368
  onTouchStart: this.travellerDragStartHandlers[id],
41369
+ onKeyDown: function onKeyDown(e) {
41370
+ if (!['ArrowLeft', 'ArrowRight'].includes(e.key)) {
41371
+ return;
41372
+ }
41373
+ e.preventDefault();
41374
+ e.stopPropagation();
41375
+ _this3.handleTravellerMoveKeyboard(e.key === 'ArrowRight' ? 1 : -1, id);
41376
+ },
41377
+ onFocus: function onFocus() {
41378
+ _this3.setState({
41379
+ isTravellerFocused: true
41380
+ });
41381
+ },
41382
+ onBlur: function onBlur() {
41383
+ _this3.setState({
41384
+ isTravellerFocused: false
41385
+ });
41386
+ },
41252
41387
  style: {
41253
41388
  cursor: 'col-resize'
41254
41389
  }
@@ -41292,9 +41427,9 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41292
41427
  height = _this$props9.height,
41293
41428
  travellerWidth = _this$props9.travellerWidth,
41294
41429
  stroke = _this$props9.stroke;
41295
- var _this$state3 = this.state,
41296
- startX = _this$state3.startX,
41297
- endX = _this$state3.endX;
41430
+ var _this$state4 = this.state,
41431
+ startX = _this$state4.startX,
41432
+ endX = _this$state4.endX;
41298
41433
  var offset = 5;
41299
41434
  var attrs = {
41300
41435
  pointerEvents: 'none',
@@ -41326,12 +41461,13 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41326
41461
  width = _this$props10.width,
41327
41462
  height = _this$props10.height,
41328
41463
  alwaysShowText = _this$props10.alwaysShowText;
41329
- var _this$state4 = this.state,
41330
- startX = _this$state4.startX,
41331
- endX = _this$state4.endX,
41332
- isTextActive = _this$state4.isTextActive,
41333
- isSlideMoving = _this$state4.isSlideMoving,
41334
- isTravellerMoving = _this$state4.isTravellerMoving;
41464
+ var _this$state5 = this.state,
41465
+ startX = _this$state5.startX,
41466
+ endX = _this$state5.endX,
41467
+ isTextActive = _this$state5.isTextActive,
41468
+ isSlideMoving = _this$state5.isSlideMoving,
41469
+ isTravellerMoving = _this$state5.isTravellerMoving,
41470
+ isTravellerFocused = _this$state5.isTravellerFocused;
41335
41471
  if (!data || !data.length || !isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || width <= 0 || height <= 0) {
41336
41472
  return null;
41337
41473
  }
@@ -41343,7 +41479,7 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
41343
41479
  onMouseLeave: this.handleLeaveWrapper,
41344
41480
  onTouchMove: this.handleTouchMove,
41345
41481
  style: style
41346
- }, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTravellerLayer(startX, 'startX'), this.renderTravellerLayer(endX, 'endX'), (isTextActive || isSlideMoving || isTravellerMoving || alwaysShowText) && this.renderText());
41482
+ }, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTravellerLayer(startX, 'startX'), this.renderTravellerLayer(endX, 'endX'), (isTextActive || isSlideMoving || isTravellerMoving || isTravellerFocused || alwaysShowText) && this.renderText());
41347
41483
  }
41348
41484
  }], [{
41349
41485
  key: "renderDefaultTraveller",
@@ -41661,7 +41797,7 @@ function every(collection, predicate, guard) {
41661
41797
 
41662
41798
  var every_1 = every;
41663
41799
 
41664
- var defineProperty = _defineProperty$l;
41800
+ var defineProperty = _defineProperty$o;
41665
41801
 
41666
41802
  /**
41667
41803
  * The base implementation of `assignValue` and `assignMergeValue` without
@@ -42022,7 +42158,6 @@ _defineProperty$a(Bar, "defaultProps", {
42022
42158
  legendType: 'rect',
42023
42159
  minPointSize: 0,
42024
42160
  hide: false,
42025
- // data of bar
42026
42161
  data: [],
42027
42162
  layout: 'vertical',
42028
42163
  isAnimationActive: !Global.isSsr,
@@ -44935,10 +45070,11 @@ var AccessibilityManager = /*#__PURE__*/function () {
44935
45070
  }
44936
45071
  var _this$container$getBo = this.container.getBoundingClientRect(),
44937
45072
  x = _this$container$getBo.x,
44938
- y = _this$container$getBo.y;
45073
+ y = _this$container$getBo.y,
45074
+ height = _this$container$getBo.height;
44939
45075
  var coordinate = this.coordinateList[this.activeIndex].coordinate;
44940
45076
  var pageX = x + coordinate;
44941
- var pageY = y + this.offset.top;
45077
+ var pageY = y + this.offset.top + height / 2;
44942
45078
  this.mouseHandlerCallback({
44943
45079
  pageX: pageX,
44944
45080
  pageY: pageY
@@ -47424,31 +47560,31 @@ var locale = {
47424
47560
  };
47425
47561
  var nl = locale;
47426
47562
 
47427
- var Period;
47563
+ exports.ChartPeriod = void 0;
47428
47564
  (function (Period) {
47429
47565
  Period["TODAY"] = "today";
47430
47566
  Period["LAST_7_DAYS"] = "7d";
47431
47567
  Period["LAST_30_DAYS"] = "30d";
47432
47568
  Period["LAST_3_MONTHS"] = "90d";
47433
47569
  Period["LAST_12_MONTHS"] = "1y";
47434
- })(Period || (Period = {}));
47570
+ })(exports.ChartPeriod || (exports.ChartPeriod = {}));
47435
47571
 
47436
47572
  var getInterval = function (period) {
47437
47573
  var start = undefined;
47438
47574
  switch (period) {
47439
- case Period.TODAY:
47575
+ case exports.ChartPeriod.TODAY:
47440
47576
  start = startOfToday();
47441
47577
  break;
47442
- case Period.LAST_7_DAYS:
47578
+ case exports.ChartPeriod.LAST_7_DAYS:
47443
47579
  start = startOfDay(subDays(new Date(), 7));
47444
47580
  break;
47445
- case Period.LAST_30_DAYS:
47581
+ case exports.ChartPeriod.LAST_30_DAYS:
47446
47582
  start = startOfDay(subDays(new Date(), 30));
47447
47583
  break;
47448
- case Period.LAST_3_MONTHS:
47584
+ case exports.ChartPeriod.LAST_3_MONTHS:
47449
47585
  start = startOfMonth(subMonths(new Date(), 3));
47450
47586
  break;
47451
- case Period.LAST_12_MONTHS:
47587
+ case exports.ChartPeriod.LAST_12_MONTHS:
47452
47588
  start = startOfMonth(subYears(new Date(), 1));
47453
47589
  break;
47454
47590
  }
@@ -47469,17 +47605,17 @@ var prepareData = function (period, results) {
47469
47605
  var intervals = undefined;
47470
47606
  var resultsByInterval = undefined;
47471
47607
  switch (period) {
47472
- case Period.TODAY:
47608
+ case exports.ChartPeriod.TODAY:
47473
47609
  intervals = eachHourOfInterval({ start: start, end: end });
47474
47610
  resultsByInterval = groupByIntervals(intervals, results);
47475
47611
  break;
47476
- case Period.LAST_7_DAYS:
47477
- case Period.LAST_30_DAYS:
47612
+ case exports.ChartPeriod.LAST_7_DAYS:
47613
+ case exports.ChartPeriod.LAST_30_DAYS:
47478
47614
  intervals = eachDayOfInterval({ start: start, end: end });
47479
47615
  resultsByInterval = groupByIntervals(intervals, results);
47480
47616
  break;
47481
- case Period.LAST_3_MONTHS:
47482
- case Period.LAST_12_MONTHS:
47617
+ case exports.ChartPeriod.LAST_3_MONTHS:
47618
+ case exports.ChartPeriod.LAST_12_MONTHS:
47483
47619
  intervals = eachMonthOfInterval({ start: start, end: end });
47484
47620
  resultsByInterval = groupByIntervals(intervals, results);
47485
47621
  break;
@@ -47496,13 +47632,13 @@ var tickFormatter = function (value, period, locale) {
47496
47632
  locale: dateFnsLocales[locale],
47497
47633
  };
47498
47634
  switch (period) {
47499
- case Period.TODAY:
47635
+ case exports.ChartPeriod.TODAY:
47500
47636
  return format$1(fromUnixTime(value), "HH:00", options);
47501
- case Period.LAST_7_DAYS:
47502
- case Period.LAST_30_DAYS:
47637
+ case exports.ChartPeriod.LAST_7_DAYS:
47638
+ case exports.ChartPeriod.LAST_30_DAYS:
47503
47639
  return format$1(fromUnixTime(value), "d-M", options);
47504
- case Period.LAST_3_MONTHS:
47505
- case Period.LAST_12_MONTHS:
47640
+ case exports.ChartPeriod.LAST_3_MONTHS:
47641
+ case exports.ChartPeriod.LAST_12_MONTHS:
47506
47642
  return format$1(fromUnixTime(value), "MMM", options);
47507
47643
  }
47508
47644
  };
@@ -47572,17 +47708,17 @@ var Tooltip = function (_a) {
47572
47708
  locale: dateFnsLocales[locale],
47573
47709
  };
47574
47710
  switch (period) {
47575
- case Period.TODAY:
47711
+ case exports.ChartPeriod.TODAY:
47576
47712
  return "".concat(format$1(fromUnixTime(label), "HH:00", options), " - ").concat(format$1(fromUnixTime(label + 3600), "HH:00", options));
47577
- case Period.LAST_7_DAYS:
47578
- case Period.LAST_30_DAYS:
47713
+ case exports.ChartPeriod.LAST_7_DAYS:
47714
+ case exports.ChartPeriod.LAST_30_DAYS:
47579
47715
  var formats = (_b = {},
47580
47716
  _b[enums.Locale.NL_NL] = "iiii, d MMMM",
47581
47717
  _b[enums.Locale.NL_BE] = "iiii, d MMMM",
47582
47718
  _b);
47583
47719
  return "".concat(format$1(fromUnixTime(label), formats[locale], options));
47584
- case Period.LAST_3_MONTHS:
47585
- case Period.LAST_12_MONTHS:
47720
+ case exports.ChartPeriod.LAST_3_MONTHS:
47721
+ case exports.ChartPeriod.LAST_12_MONTHS:
47586
47722
  return "".concat(format$1(fromUnixTime(label), "MMMM", options));
47587
47723
  }
47588
47724
  };
@@ -47739,17 +47875,17 @@ var TimeChart = function (_a) {
47739
47875
  };
47740
47876
 
47741
47877
  var Chart = function (_a) {
47742
- var type = _a.type, locale = _a.locale, exerciseResults = _a.exerciseResults, _b = _a.defaultPeriod, defaultPeriod = _b === void 0 ? Period.TODAY : _b, onChangePeriod = _a.onChangePeriod, nExercisesInCourse = _a.nExercisesInCourse;
47878
+ var type = _a.type, locale = _a.locale, exerciseResults = _a.exerciseResults, _b = _a.defaultPeriod, defaultPeriod = _b === void 0 ? exports.ChartPeriod.TODAY : _b, onChangePeriod = _a.onChangePeriod, nExercisesInCourse = _a.nExercisesInCourse;
47743
47879
  var _c = React$3.useState(defaultPeriod), period = _c[0], setPeriod = _c[1];
47744
47880
  React$3.useEffect(function () {
47745
47881
  setPeriod(defaultPeriod);
47746
47882
  }, [defaultPeriod]);
47747
47883
  var periods = [
47748
- { value: Period.TODAY, label: translations[locale]["Today"] },
47749
- { value: Period.LAST_7_DAYS, label: translations[locale]["Last 7 days"] },
47750
- { value: Period.LAST_30_DAYS, label: translations[locale]["Last 30 days"] },
47751
- { value: Period.LAST_3_MONTHS, label: translations[locale]["Last 3 months"] },
47752
- { value: Period.LAST_12_MONTHS, label: translations[locale]["Last 12 months"] },
47884
+ { value: exports.ChartPeriod.TODAY, label: translations[locale]["Today"] },
47885
+ { value: exports.ChartPeriod.LAST_7_DAYS, label: translations[locale]["Last 7 days"] },
47886
+ { value: exports.ChartPeriod.LAST_30_DAYS, label: translations[locale]["Last 30 days"] },
47887
+ { value: exports.ChartPeriod.LAST_3_MONTHS, label: translations[locale]["Last 3 months"] },
47888
+ { value: exports.ChartPeriod.LAST_12_MONTHS, label: translations[locale]["Last 12 months"] },
47753
47889
  ];
47754
47890
  var titles = {
47755
47891
  accuracy: translations[locale]["Accuracy"],