victory-voronoi 36.4.1 → 36.5.2

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.
@@ -226,6 +226,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
226
226
 
227
227
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
228
228
 
229
+ function _defineProperty(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; }
230
+
229
231
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
230
232
 
231
233
  function _defineProperties(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, descriptor.key, descriptor); } }
@@ -234,7 +236,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
234
236
 
235
237
  function _inherits(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(subClass, superClass); }
236
238
 
237
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
239
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
238
240
 
239
241
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
240
242
 
@@ -244,9 +246,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
244
246
 
245
247
  function _isNativeReflectConstruct() { 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; } }
246
248
 
247
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
248
-
249
- function _defineProperty(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; }
249
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
250
250
 
251
251
 
252
252
 
@@ -295,42 +295,34 @@ var VictoryVoronoi = /*#__PURE__*/function (_React$Component) {
295
295
  return VictoryVoronoi;
296
296
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
297
297
 
298
- _defineProperty(VictoryVoronoi, "animationWhitelist", ["data", "domain", "height", "padding", "samples", "size", "style", "width"]);
299
-
300
- _defineProperty(VictoryVoronoi, "displayName", "VictoryVoronoi");
301
-
302
- _defineProperty(VictoryVoronoi, "role", "voronoi");
303
-
304
- _defineProperty(VictoryVoronoi, "defaultTransitions", victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions());
305
-
306
- _defineProperty(VictoryVoronoi, "propTypes", _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.dataProps), {}, {
298
+ VictoryVoronoi.animationWhitelist = ["data", "domain", "height", "padding", "samples", "size", "style", "width"];
299
+ VictoryVoronoi.displayName = "VictoryVoronoi";
300
+ VictoryVoronoi.role = "voronoi";
301
+ VictoryVoronoi.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions();
302
+ VictoryVoronoi.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.dataProps), {}, {
307
303
  size: victory_core__WEBPACK_IMPORTED_MODULE_5__.nonNegative
308
- }));
309
-
310
- _defineProperty(VictoryVoronoi, "defaultProps", {
311
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"], null),
304
+ });
305
+ VictoryVoronoi.defaultProps = {
306
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer, null),
312
307
  dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_voronoi__WEBPACK_IMPORTED_MODULE_7__["default"], null),
313
- labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
308
+ labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryLabel, null),
314
309
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
315
310
  role: "presentation"
316
311
  }),
317
312
  samples: 50,
318
313
  sortOrder: "ascending",
319
314
  standalone: true,
320
- theme: victory_core__WEBPACK_IMPORTED_MODULE_9__["default"].grayscale
321
- });
322
-
323
- _defineProperty(VictoryVoronoi, "getDomain", victory_core__WEBPACK_IMPORTED_MODULE_10__.getDomain);
324
-
325
- _defineProperty(VictoryVoronoi, "getData", victory_core__WEBPACK_IMPORTED_MODULE_11__.getData);
315
+ theme: victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryTheme.grayscale
316
+ };
317
+ VictoryVoronoi.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_10__.getDomain;
318
+ VictoryVoronoi.getData = victory_core__WEBPACK_IMPORTED_MODULE_11__.getData;
326
319
 
327
- _defineProperty(VictoryVoronoi, "getBaseProps", function (props) {
320
+ VictoryVoronoi.getBaseProps = function (props) {
328
321
  return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getBaseProps)(props, fallbackProps);
329
- });
330
-
331
- _defineProperty(VictoryVoronoi, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
322
+ };
332
323
 
333
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__["default"])(VictoryVoronoi));
324
+ VictoryVoronoi.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
325
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__.addEvents)(VictoryVoronoi));
334
326
 
335
327
  /***/ }),
336
328
 
@@ -447,7 +439,7 @@ var Voronoi = function (props) {
447
439
  }));
448
440
  };
449
441
 
450
- Voronoi.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.primitiveProps), {}, {
442
+ Voronoi.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.primitiveProps), {}, {
451
443
  circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
452
444
  clipId: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]),
453
445
  clipPathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
@@ -460,9 +452,9 @@ Voronoi.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORT
460
452
  y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
461
453
  });
462
454
  Voronoi.defaultProps = {
463
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"], null),
464
- circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
465
- clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
455
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.Path, null),
456
+ circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Circle, null),
457
+ clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.ClipPath, null),
466
458
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
467
459
  role: "presentation",
468
460
  shapeRendering: "auto"
@@ -5960,7 +5952,7 @@ module.exports = checkPropTypes;
5960
5952
 
5961
5953
 
5962
5954
 
5963
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
5955
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
5964
5956
  var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
5965
5957
 
5966
5958
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -6579,7 +6571,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
6579
6571
  */
6580
6572
 
6581
6573
  if (true) {
6582
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
6574
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
6583
6575
 
6584
6576
  // By explicitly using `prop-types` you are opting into new development behavior.
6585
6577
  // http://fb.me/prop-types-in-prod
@@ -6624,154 +6616,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
6624
6616
 
6625
6617
  /***/ }),
6626
6618
 
6627
- /***/ "../../../node_modules/react-fast-compare/index.js":
6628
- /*!*********************************************************!*\
6629
- !*** ../../../node_modules/react-fast-compare/index.js ***!
6630
- \*********************************************************/
6631
- /***/ ((module) => {
6632
-
6633
- /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
6634
-
6635
- var hasElementType = typeof Element !== 'undefined';
6636
- var hasMap = typeof Map === 'function';
6637
- var hasSet = typeof Set === 'function';
6638
- var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
6639
-
6640
- // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
6641
-
6642
- function equal(a, b) {
6643
- // START: fast-deep-equal es6/index.js 3.1.1
6644
- if (a === b) return true;
6645
-
6646
- if (a && b && typeof a == 'object' && typeof b == 'object') {
6647
- if (a.constructor !== b.constructor) return false;
6648
-
6649
- var length, i, keys;
6650
- if (Array.isArray(a)) {
6651
- length = a.length;
6652
- if (length != b.length) return false;
6653
- for (i = length; i-- !== 0;)
6654
- if (!equal(a[i], b[i])) return false;
6655
- return true;
6656
- }
6657
-
6658
- // START: Modifications:
6659
- // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6660
- // to co-exist with es5.
6661
- // 2. Replace `for of` with es5 compliant iteration using `for`.
6662
- // Basically, take:
6663
- //
6664
- // ```js
6665
- // for (i of a.entries())
6666
- // if (!b.has(i[0])) return false;
6667
- // ```
6668
- //
6669
- // ... and convert to:
6670
- //
6671
- // ```js
6672
- // it = a.entries();
6673
- // while (!(i = it.next()).done)
6674
- // if (!b.has(i.value[0])) return false;
6675
- // ```
6676
- //
6677
- // **Note**: `i` access switches to `i.value`.
6678
- var it;
6679
- if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6680
- if (a.size !== b.size) return false;
6681
- it = a.entries();
6682
- while (!(i = it.next()).done)
6683
- if (!b.has(i.value[0])) return false;
6684
- it = a.entries();
6685
- while (!(i = it.next()).done)
6686
- if (!equal(i.value[1], b.get(i.value[0]))) return false;
6687
- return true;
6688
- }
6689
-
6690
- if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6691
- if (a.size !== b.size) return false;
6692
- it = a.entries();
6693
- while (!(i = it.next()).done)
6694
- if (!b.has(i.value[0])) return false;
6695
- return true;
6696
- }
6697
- // END: Modifications
6698
-
6699
- if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
6700
- length = a.length;
6701
- if (length != b.length) return false;
6702
- for (i = length; i-- !== 0;)
6703
- if (a[i] !== b[i]) return false;
6704
- return true;
6705
- }
6706
-
6707
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
6708
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
6709
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
6710
-
6711
- keys = Object.keys(a);
6712
- length = keys.length;
6713
- if (length !== Object.keys(b).length) return false;
6714
-
6715
- for (i = length; i-- !== 0;)
6716
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
6717
- // END: fast-deep-equal
6718
-
6719
- // START: react-fast-compare
6720
- // custom handling for DOM elements
6721
- if (hasElementType && a instanceof Element) return false;
6722
-
6723
- // custom handling for React/Preact
6724
- for (i = length; i-- !== 0;) {
6725
- if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
6726
- // React-specific: avoid traversing React elements' _owner
6727
- // Preact-specific: avoid traversing Preact elements' __v and __o
6728
- // __v = $_original / $_vnode
6729
- // __o = $_owner
6730
- // These properties contain circular references and are not needed when
6731
- // comparing the actual elements (and not their owners)
6732
- // .$$typeof and ._store on just reasonable markers of elements
6733
-
6734
- continue;
6735
- }
6736
-
6737
- // all other properties should be traversed as usual
6738
- if (!equal(a[keys[i]], b[keys[i]])) return false;
6739
- }
6740
- // END: react-fast-compare
6741
-
6742
- // START: fast-deep-equal
6743
- return true;
6744
- }
6745
-
6746
- return a !== a && b !== b;
6747
- }
6748
- // end fast-deep-equal
6749
-
6750
- module.exports = function isEqual(a, b) {
6751
- try {
6752
- return equal(a, b);
6753
- } catch (error) {
6754
- if (((error.message || '').match(/stack|recursion/i))) {
6755
- // warn on circular references, don't crash
6756
- // browsers give this different errors name and messages:
6757
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
6758
- // firefox: "InternalError", too much recursion"
6759
- // edge: "Error", "Out of stack space"
6760
- console.warn('react-fast-compare cannot handle circular refs');
6761
- return false;
6762
- }
6763
- // some other error. we should definitely know about these
6764
- throw error;
6765
- }
6766
- };
6767
-
6768
-
6769
- /***/ }),
6770
-
6771
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
6772
- /*!******************************************************************!*\
6773
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
6774
- \******************************************************************/
6619
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
6620
+ /*!******************************************************************************************!*\
6621
+ !*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
6622
+ \******************************************************************************************/
6775
6623
  /***/ ((__unused_webpack_module, exports) => {
6776
6624
 
6777
6625
  "use strict";
@@ -6960,98 +6808,242 @@ exports.typeOf = typeOf;
6960
6808
 
6961
6809
  /***/ }),
6962
6810
 
6963
- /***/ "../../../node_modules/react-is/index.js":
6964
- /*!***********************************************!*\
6965
- !*** ../../../node_modules/react-is/index.js ***!
6966
- \***********************************************/
6811
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
6812
+ /*!***********************************************************************!*\
6813
+ !*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
6814
+ \***********************************************************************/
6967
6815
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6968
6816
 
6969
6817
  "use strict";
6970
6818
 
6971
6819
 
6972
6820
  if (false) {} else {
6973
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
6821
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
6974
6822
  }
6975
6823
 
6976
6824
 
6977
6825
  /***/ }),
6978
6826
 
6979
- /***/ "../../victory-core/es/victory-animation/util.js":
6980
- /*!*******************************************************!*\
6981
- !*** ../../victory-core/es/victory-animation/util.js ***!
6982
- \*******************************************************/
6983
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6984
-
6985
- "use strict";
6986
- __webpack_require__.r(__webpack_exports__);
6987
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6988
- /* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
6989
- /* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
6990
- /* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
6991
- /* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
6992
- /* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
6993
- /* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
6994
- /* harmony export */ });
6995
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
6996
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
6997
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
6998
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
6999
- /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
7000
-
7001
-
6827
+ /***/ "../../../node_modules/react-fast-compare/index.js":
6828
+ /*!*********************************************************!*\
6829
+ !*** ../../../node_modules/react-fast-compare/index.js ***!
6830
+ \*********************************************************/
6831
+ /***/ ((module) => {
7002
6832
 
7003
- var isInterpolatable = function (obj) {
7004
- // d3 turns null into 0 and undefined into NaN, which we don't want.
7005
- if (obj !== null) {
7006
- switch (typeof obj) {
7007
- case "undefined":
7008
- return false;
6833
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
7009
6834
 
7010
- case "number":
7011
- // The standard `isNaN` is fine in this case since we already know the
7012
- // type is number.
7013
- return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;
6835
+ var hasElementType = typeof Element !== 'undefined';
6836
+ var hasMap = typeof Map === 'function';
6837
+ var hasSet = typeof Set === 'function';
6838
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
7014
6839
 
7015
- case "string":
7016
- // d3 might not *actually* be able to interpolate the string, but it
7017
- // won't cause any issues to let it try.
7018
- return true;
6840
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
7019
6841
 
7020
- case "boolean":
7021
- // d3 turns Booleans into integers, which we don't want. Sure, we could
7022
- // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
7023
- // something expecting a Boolean.
7024
- return false;
6842
+ function equal(a, b) {
6843
+ // START: fast-deep-equal es6/index.js 3.1.1
6844
+ if (a === b) return true;
7025
6845
 
7026
- case "object":
7027
- // Don't try to interpolate class instances (except Date or Array).
7028
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
6846
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
6847
+ if (a.constructor !== b.constructor) return false;
7029
6848
 
7030
- case "function":
7031
- // Careful! There may be extra properties on function objects that the
7032
- // component expects to access - for instance, it may be a `d3.scale()`
7033
- // function, which has its own methods attached. We don't know if the
7034
- // component is only going to call the function (in which case it's
7035
- // safely interpolatable) or if it's going to access special properties
7036
- // (in which case our function generated from `interpolateFunction` will
7037
- // most likely cause an error. We could check for enumerable properties
7038
- // on the function object here to see if it's a "plain" function, but
7039
- // let's just require that components prevent such function props from
7040
- // being animated in the first place.
7041
- return true;
6849
+ var length, i, keys;
6850
+ if (Array.isArray(a)) {
6851
+ length = a.length;
6852
+ if (length != b.length) return false;
6853
+ for (i = length; i-- !== 0;)
6854
+ if (!equal(a[i], b[i])) return false;
6855
+ return true;
7042
6856
  }
7043
- }
7044
6857
 
7045
- return false;
7046
- };
7047
- /**
7048
- * Interpolate immediately to the end value at the given step `when`.
7049
- * Some nicer default behavior might be to jump at the halfway point or return
7050
- * `a` if `t` is 0 (instead of always returning `b`). But d3's default
7051
- * interpolator does not do these things:
7052
- *
7053
- * d3.interpolate('aaa', 'bbb')(0) === 'bbb'
7054
- *
6858
+ // START: Modifications:
6859
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6860
+ // to co-exist with es5.
6861
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
6862
+ // Basically, take:
6863
+ //
6864
+ // ```js
6865
+ // for (i of a.entries())
6866
+ // if (!b.has(i[0])) return false;
6867
+ // ```
6868
+ //
6869
+ // ... and convert to:
6870
+ //
6871
+ // ```js
6872
+ // it = a.entries();
6873
+ // while (!(i = it.next()).done)
6874
+ // if (!b.has(i.value[0])) return false;
6875
+ // ```
6876
+ //
6877
+ // **Note**: `i` access switches to `i.value`.
6878
+ var it;
6879
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6880
+ if (a.size !== b.size) return false;
6881
+ it = a.entries();
6882
+ while (!(i = it.next()).done)
6883
+ if (!b.has(i.value[0])) return false;
6884
+ it = a.entries();
6885
+ while (!(i = it.next()).done)
6886
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
6887
+ return true;
6888
+ }
6889
+
6890
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6891
+ if (a.size !== b.size) return false;
6892
+ it = a.entries();
6893
+ while (!(i = it.next()).done)
6894
+ if (!b.has(i.value[0])) return false;
6895
+ return true;
6896
+ }
6897
+ // END: Modifications
6898
+
6899
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
6900
+ length = a.length;
6901
+ if (length != b.length) return false;
6902
+ for (i = length; i-- !== 0;)
6903
+ if (a[i] !== b[i]) return false;
6904
+ return true;
6905
+ }
6906
+
6907
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
6908
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
6909
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
6910
+
6911
+ keys = Object.keys(a);
6912
+ length = keys.length;
6913
+ if (length !== Object.keys(b).length) return false;
6914
+
6915
+ for (i = length; i-- !== 0;)
6916
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
6917
+ // END: fast-deep-equal
6918
+
6919
+ // START: react-fast-compare
6920
+ // custom handling for DOM elements
6921
+ if (hasElementType && a instanceof Element) return false;
6922
+
6923
+ // custom handling for React/Preact
6924
+ for (i = length; i-- !== 0;) {
6925
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
6926
+ // React-specific: avoid traversing React elements' _owner
6927
+ // Preact-specific: avoid traversing Preact elements' __v and __o
6928
+ // __v = $_original / $_vnode
6929
+ // __o = $_owner
6930
+ // These properties contain circular references and are not needed when
6931
+ // comparing the actual elements (and not their owners)
6932
+ // .$$typeof and ._store on just reasonable markers of elements
6933
+
6934
+ continue;
6935
+ }
6936
+
6937
+ // all other properties should be traversed as usual
6938
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
6939
+ }
6940
+ // END: react-fast-compare
6941
+
6942
+ // START: fast-deep-equal
6943
+ return true;
6944
+ }
6945
+
6946
+ return a !== a && b !== b;
6947
+ }
6948
+ // end fast-deep-equal
6949
+
6950
+ module.exports = function isEqual(a, b) {
6951
+ try {
6952
+ return equal(a, b);
6953
+ } catch (error) {
6954
+ if (((error.message || '').match(/stack|recursion/i))) {
6955
+ // warn on circular references, don't crash
6956
+ // browsers give this different errors name and messages:
6957
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
6958
+ // firefox: "InternalError", too much recursion"
6959
+ // edge: "Error", "Out of stack space"
6960
+ console.warn('react-fast-compare cannot handle circular refs');
6961
+ return false;
6962
+ }
6963
+ // some other error. we should definitely know about these
6964
+ throw error;
6965
+ }
6966
+ };
6967
+
6968
+
6969
+ /***/ }),
6970
+
6971
+ /***/ "../../victory-core/es/victory-animation/util.js":
6972
+ /*!*******************************************************!*\
6973
+ !*** ../../victory-core/es/victory-animation/util.js ***!
6974
+ \*******************************************************/
6975
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6976
+
6977
+ "use strict";
6978
+ __webpack_require__.r(__webpack_exports__);
6979
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6980
+ /* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
6981
+ /* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
6982
+ /* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
6983
+ /* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
6984
+ /* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
6985
+ /* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
6986
+ /* harmony export */ });
6987
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
6988
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
6989
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
6990
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
6991
+ /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
6992
+
6993
+
6994
+
6995
+ var isInterpolatable = function (obj) {
6996
+ // d3 turns null into 0 and undefined into NaN, which we don't want.
6997
+ if (obj !== null) {
6998
+ switch (typeof obj) {
6999
+ case "undefined":
7000
+ return false;
7001
+
7002
+ case "number":
7003
+ // The standard `isNaN` is fine in this case since we already know the
7004
+ // type is number.
7005
+ return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;
7006
+
7007
+ case "string":
7008
+ // d3 might not *actually* be able to interpolate the string, but it
7009
+ // won't cause any issues to let it try.
7010
+ return true;
7011
+
7012
+ case "boolean":
7013
+ // d3 turns Booleans into integers, which we don't want. Sure, we could
7014
+ // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
7015
+ // something expecting a Boolean.
7016
+ return false;
7017
+
7018
+ case "object":
7019
+ // Don't try to interpolate class instances (except Date or Array).
7020
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
7021
+
7022
+ case "function":
7023
+ // Careful! There may be extra properties on function objects that the
7024
+ // component expects to access - for instance, it may be a `d3.scale()`
7025
+ // function, which has its own methods attached. We don't know if the
7026
+ // component is only going to call the function (in which case it's
7027
+ // safely interpolatable) or if it's going to access special properties
7028
+ // (in which case our function generated from `interpolateFunction` will
7029
+ // most likely cause an error). We could check for enumerable properties
7030
+ // on the function object here to see if it's a "plain" function, but
7031
+ // let's just require that components prevent such function props from
7032
+ // being animated in the first place.
7033
+ return true;
7034
+ }
7035
+ }
7036
+
7037
+ return false;
7038
+ };
7039
+ /**
7040
+ * Interpolate immediately to the end value at the given step `when`.
7041
+ * Some nicer default behavior might be to jump at the halfway point or return
7042
+ * `a` if `t` is 0 (instead of always returning `b`). But d3's default
7043
+ * interpolator does not do these things:
7044
+ *
7045
+ * d3.interpolate('aaa', 'bbb')(0) === 'bbb'
7046
+ *
7055
7047
  * ...and things might get wonky if we don't replicate that behavior.
7056
7048
  *
7057
7049
  * @param {any} a - Start value.
@@ -7086,7 +7078,7 @@ var interpolateFunction = function (a, b) {
7086
7078
  }
7087
7079
 
7088
7080
  return function () {
7089
- /* eslint-disable no-invalid-this */
7081
+ /* eslint-disable no-invalid-this, prefer-rest-params */
7090
7082
  var aval = typeof a === "function" ? a.apply(this, arguments) : a;
7091
7083
  var bval = typeof b === "function" ? b.apply(this, arguments) : b;
7092
7084
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
@@ -7199,15 +7191,18 @@ var victoryInterpolator = function (a, b) {
7199
7191
  }
7200
7192
 
7201
7193
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7194
+ // @ts-expect-error These generics are tough, but they work :)
7202
7195
  return interpolateObject(a, b);
7203
7196
  }
7204
7197
 
7205
7198
  if (typeof a === "string" || typeof b === "string") {
7206
7199
  return interpolateString(a, b);
7207
- }
7200
+ } // @ts-expect-error These generics are tough, but they work :)
7201
+
7208
7202
 
7209
7203
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7210
7204
  };
7205
+ //# sourceMappingURL=util.js.map
7211
7206
 
7212
7207
  /***/ }),
7213
7208
 
@@ -7220,7 +7215,7 @@ var victoryInterpolator = function (a, b) {
7220
7215
  "use strict";
7221
7216
  __webpack_require__.r(__webpack_exports__);
7222
7217
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7223
- /* harmony export */ "default": () => (/* binding */ VictoryAnimation)
7218
+ /* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
7224
7219
  /* harmony export */ });
7225
7220
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7226
7221
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -7251,7 +7246,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7251
7246
 
7252
7247
  function _inherits(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(subClass, superClass); }
7253
7248
 
7254
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7249
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7255
7250
 
7256
7251
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7257
7252
 
@@ -7261,9 +7256,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7261
7256
 
7262
7257
  function _isNativeReflectConstruct() { 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; } }
7263
7258
 
7264
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7265
-
7266
- function _defineProperty(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; }
7259
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7267
7260
 
7268
7261
  /*global setTimeout:false */
7269
7262
 
@@ -7272,7 +7265,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7272
7265
 
7273
7266
 
7274
7267
 
7275
-
7276
7268
  var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7277
7269
  _inherits(VictoryAnimation, _React$Component);
7278
7270
 
@@ -7286,6 +7278,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7286
7278
  _this = _super.call(this, props, context);
7287
7279
  /* defaults */
7288
7280
 
7281
+ _this.interpolator = void 0;
7282
+ _this.queue = void 0;
7283
+ _this.ease = void 0;
7284
+ _this.timer = void 0;
7285
+ _this.loopID = void 0;
7286
+
7287
+ _this.functionToBeRunEachFrame = function (elapsed, duration) {
7288
+ /*
7289
+ step can generate imprecise values, sometimes greater than 1
7290
+ if this happens set the state to 1 and return, cancelling the timer
7291
+ */
7292
+ duration = duration !== undefined ? duration : _this.props.duration;
7293
+ var step = duration ? elapsed / duration : 1;
7294
+
7295
+ if (step >= 1) {
7296
+ _this.setState({
7297
+ data: _this.interpolator(1),
7298
+ animationInfo: {
7299
+ progress: 1,
7300
+ animating: false,
7301
+ terminating: true
7302
+ }
7303
+ });
7304
+
7305
+ if (_this.loopID) {
7306
+ _this.timer.unsubscribe(_this.loopID);
7307
+ }
7308
+
7309
+ _this.queue.shift();
7310
+
7311
+ _this.traverseQueue();
7312
+
7313
+ return;
7314
+ }
7315
+ /*
7316
+ if we're not at the end of the timer, set the state by passing
7317
+ current step value that's transformed by the ease function to the
7318
+ interpolator, which is cached for performance whenever props are received
7319
+ */
7320
+
7321
+
7322
+ _this.setState({
7323
+ data: _this.interpolator(_this.ease(step)),
7324
+ animationInfo: {
7325
+ progress: step,
7326
+ animating: step < 1
7327
+ }
7328
+ });
7329
+ };
7330
+
7289
7331
  _this.state = {
7290
7332
  data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
7291
7333
  animationInfo: {
@@ -7298,12 +7340,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7298
7340
  /* build easing function */
7299
7341
 
7300
7342
  _this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
7301
- /*
7302
- There is no autobinding of this in ES6 classes
7303
- so we bind functionToBeRunEachFrame to current instance of victory animation class
7304
- */
7305
-
7306
- _this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
7307
7343
  _this.timer = _this.context.animationTimer;
7308
7344
  return _this;
7309
7345
  }
@@ -7403,50 +7439,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7403
7439
  }
7404
7440
  }
7405
7441
  /* every frame we... */
7406
-
7407
- }, {
7408
- key: "functionToBeRunEachFrame",
7409
- value: function functionToBeRunEachFrame(elapsed, duration) {
7410
- /*
7411
- step can generate imprecise values, sometimes greater than 1
7412
- if this happens set the state to 1 and return, cancelling the timer
7413
- */
7414
- duration = duration !== undefined ? duration : this.props.duration;
7415
- var step = duration ? elapsed / duration : 1;
7416
-
7417
- if (step >= 1) {
7418
- this.setState({
7419
- data: this.interpolator(1),
7420
- animationInfo: {
7421
- progress: 1,
7422
- animating: false,
7423
- terminating: true
7424
- }
7425
- });
7426
-
7427
- if (this.loopID) {
7428
- this.timer.unsubscribe(this.loopID);
7429
- }
7430
-
7431
- this.queue.shift();
7432
- this.traverseQueue();
7433
- return;
7434
- }
7435
- /*
7436
- if we're not at the end of the timer, set the state by passing
7437
- current step value that's transformed by the ease function to the
7438
- interpolator, which is cached for performance whenever props are received
7439
- */
7440
-
7441
-
7442
- this.setState({
7443
- data: this.interpolator(this.ease(step)),
7444
- animationInfo: {
7445
- progress: step,
7446
- animating: step < 1
7447
- }
7448
- });
7449
- }
7442
+
7450
7443
  }, {
7451
7444
  key: "render",
7452
7445
  value: function render() {
@@ -7456,28 +7449,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7456
7449
 
7457
7450
  return VictoryAnimation;
7458
7451
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
7459
-
7460
- _defineProperty(VictoryAnimation, "displayName", "VictoryAnimation");
7461
-
7462
- _defineProperty(VictoryAnimation, "propTypes", {
7452
+ VictoryAnimation.displayName = "VictoryAnimation";
7453
+ VictoryAnimation.propTypes = {
7463
7454
  children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
7464
7455
  data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
7465
7456
  delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
7466
7457
  duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
7467
7458
  easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
7468
7459
  onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
7469
- });
7470
-
7471
- _defineProperty(VictoryAnimation, "defaultProps", {
7460
+ };
7461
+ VictoryAnimation.defaultProps = {
7472
7462
  data: {},
7473
7463
  delay: 0,
7474
7464
  duration: 1000,
7475
7465
  easing: "quadInOut"
7476
- });
7477
-
7478
- _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
7479
-
7480
-
7466
+ };
7467
+ VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
7468
+ //# sourceMappingURL=victory-animation.js.map
7481
7469
 
7482
7470
  /***/ }),
7483
7471
 
@@ -7490,7 +7478,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
7490
7478
  "use strict";
7491
7479
  __webpack_require__.r(__webpack_exports__);
7492
7480
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7493
- /* harmony export */ "default": () => (/* binding */ VictoryContainer)
7481
+ /* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
7494
7482
  /* harmony export */ });
7495
7483
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
7496
7484
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
@@ -7518,12 +7506,14 @@ __webpack_require__.r(__webpack_exports__);
7518
7506
 
7519
7507
 
7520
7508
 
7521
- function _extends() { _extends = Object.assign || 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.apply(this, arguments); }
7509
+ function _extends() { _extends = 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.apply(this, arguments); }
7522
7510
 
7523
7511
  function ownKeys(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; }
7524
7512
 
7525
7513
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7526
7514
 
7515
+ function _defineProperty(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; }
7516
+
7527
7517
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7528
7518
 
7529
7519
  function _defineProperties(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, descriptor.key, descriptor); } }
@@ -7532,7 +7522,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7532
7522
 
7533
7523
  function _inherits(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(subClass, superClass); }
7534
7524
 
7535
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7525
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7536
7526
 
7537
7527
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7538
7528
 
@@ -7542,10 +7532,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7542
7532
 
7543
7533
  function _isNativeReflectConstruct() { 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; } }
7544
7534
 
7545
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7546
-
7547
- function _defineProperty(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; }
7548
-
7535
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7549
7536
 
7550
7537
 
7551
7538
 
@@ -7560,13 +7547,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7560
7547
 
7561
7548
  var _super = _createSuper(VictoryContainer);
7562
7549
 
7550
+ // @ts-expect-error Ref will be initialized on mount
7551
+ // @ts-expect-error Ref will be initialized on mount
7563
7552
  function VictoryContainer(props) {
7564
7553
  var _this;
7565
7554
 
7566
7555
  _classCallCheck(this, VictoryContainer);
7567
7556
 
7568
7557
  _this = _super.call(this, props);
7569
- _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7558
+ _this.containerId = void 0;
7559
+ _this.portalRef = void 0;
7560
+ _this.containerRef = void 0;
7561
+ _this.shouldHandleWheel = void 0;
7570
7562
 
7571
7563
  _this.savePortalRef = function (portal) {
7572
7564
  _this.portalRef = portal;
@@ -7585,18 +7577,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7585
7577
  return _this.portalRef.portalDeregister(key);
7586
7578
  };
7587
7579
 
7588
- _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) {
7580
+ _this.saveContainerRef = function (container) {
7581
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
7582
+ _this.props.containerRef(container);
7583
+ }
7584
+
7589
7585
  _this.containerRef = container;
7590
7586
  return container;
7591
7587
  };
7592
- _this.shouldHandleWheel = props && props.events && props.events.onWheel;
7593
7588
 
7594
- if (_this.shouldHandleWheel) {
7595
- _this.handleWheel = function (e) {
7596
- return e.preventDefault();
7597
- };
7598
- }
7589
+ _this.handleWheel = function (e) {
7590
+ return e.preventDefault();
7591
+ };
7599
7592
 
7593
+ _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7594
+ _this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
7600
7595
  return _this;
7601
7596
  }
7602
7597
 
@@ -7689,7 +7684,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7689
7684
  preserveAspectRatio: svgProps.preserveAspectRatio,
7690
7685
  style: portalSvgStyle
7691
7686
  };
7692
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
7687
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
7693
7688
  value: {
7694
7689
  portalUpdate: this.portalUpdate,
7695
7690
  portalRegister: this.portalRegister,
@@ -7744,12 +7739,9 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7744
7739
 
7745
7740
  return VictoryContainer;
7746
7741
  }((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
7747
-
7748
- _defineProperty(VictoryContainer, "displayName", "VictoryContainer");
7749
-
7750
- _defineProperty(VictoryContainer, "role", "container");
7751
-
7752
- _defineProperty(VictoryContainer, "propTypes", {
7742
+ VictoryContainer.displayName = "VictoryContainer";
7743
+ VictoryContainer.role = "container";
7744
+ VictoryContainer.propTypes = {
7753
7745
  "aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7754
7746
  "aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7755
7747
  children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
@@ -7778,19 +7770,16 @@ _defineProperty(VictoryContainer, "propTypes", {
7778
7770
  theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
7779
7771
  title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7780
7772
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
7781
- });
7782
-
7783
- _defineProperty(VictoryContainer, "defaultProps", {
7773
+ };
7774
+ VictoryContainer.defaultProps = {
7784
7775
  className: "VictoryContainer",
7785
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__["default"], null),
7776
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
7786
7777
  portalZIndex: 99,
7787
7778
  responsive: true,
7788
7779
  role: "img"
7789
- });
7790
-
7791
- _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
7792
-
7793
-
7780
+ };
7781
+ VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
7782
+ //# sourceMappingURL=victory-container.js.map
7794
7783
 
7795
7784
  /***/ }),
7796
7785
 
@@ -7803,7 +7792,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
7803
7792
  "use strict";
7804
7793
  __webpack_require__.r(__webpack_exports__);
7805
7794
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7806
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
7795
+ /* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
7807
7796
  /* harmony export */ });
7808
7797
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
7809
7798
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
@@ -8353,6 +8342,7 @@ var VictoryLabel = function (props) {
8353
8342
  fontSize: currentStyle.fontSize || defaultStyles.fontSize,
8354
8343
  capHeight: capHeightPx,
8355
8344
  text: line,
8345
+ // @ts-expect-error TODO: This looks like a bug:
8356
8346
  textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
8357
8347
  lineHeight: currentLineHeight,
8358
8348
  backgroundPadding: getSingleValue(backgroundPadding, i)
@@ -8364,12 +8354,11 @@ var VictoryLabel = function (props) {
8364
8354
  var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
8365
8355
  var children = [backgroundElement, label];
8366
8356
  var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
8367
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null, backgroundWithLabel) : backgroundWithLabel;
8357
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
8368
8358
  }
8369
8359
 
8370
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null, label) : label;
8360
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
8371
8361
  };
8372
-
8373
8362
  VictoryLabel.displayName = "VictoryLabel";
8374
8363
  VictoryLabel.role = "label";
8375
8364
  VictoryLabel.defaultStyles = defaultStyles;
@@ -8384,6 +8373,7 @@ VictoryLabel.propTypes = {
8384
8373
  className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
8385
8374
  data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
8386
8375
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
8376
+ // @ts-expect-error "Function is not assignable to string"
8387
8377
  desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8388
8378
  direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
8389
8379
  dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
@@ -8396,8 +8386,8 @@ VictoryLabel.propTypes = {
8396
8386
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
8397
8387
  lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8398
8388
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
8399
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
8400
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
8389
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
8390
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
8401
8391
  }),
8402
8392
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
8403
8393
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -8408,26 +8398,30 @@ VictoryLabel.propTypes = {
8408
8398
  style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8409
8399
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8410
8400
  text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8401
+ // @ts-expect-error Function is not assignable to string"
8411
8402
  textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8412
8403
  textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
8413
8404
  title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
8414
8405
  transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8415
8406
  tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
8407
+ // @ts-expect-error Function is not assignable to string"
8416
8408
  verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8409
+ // @ts-expect-error Number is not assignable to string
8417
8410
  x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
8411
+ // @ts-expect-error Number is not assignable to string
8418
8412
  y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
8419
8413
  };
8420
8414
  VictoryLabel.defaultProps = {
8421
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__["default"], null),
8415
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
8422
8416
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
8423
8417
  direction: "inherit",
8424
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__["default"], null),
8425
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__["default"], null),
8418
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
8419
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
8426
8420
  capHeight: 0.71,
8427
8421
  // Magic number from d3.
8428
8422
  lineHeight: 1
8429
8423
  };
8430
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryLabel);
8424
+ //# sourceMappingURL=victory-label.js.map
8431
8425
 
8432
8426
  /***/ }),
8433
8427
 
@@ -8440,19 +8434,19 @@ VictoryLabel.defaultProps = {
8440
8434
  "use strict";
8441
8435
  __webpack_require__.r(__webpack_exports__);
8442
8436
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8443
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8437
+ /* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
8444
8438
  /* harmony export */ });
8445
8439
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8446
8440
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8447
8441
 
8442
+
8448
8443
  /**
8449
8444
  * The React context object consumers may use to access the context of the
8450
8445
  * portal.
8451
8446
  */
8452
-
8453
8447
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
8454
8448
  PortalContext.displayName = "PortalContext";
8455
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
8449
+ //# sourceMappingURL=portal-context.js.map
8456
8450
 
8457
8451
  /***/ }),
8458
8452
 
@@ -8465,7 +8459,7 @@ PortalContext.displayName = "PortalContext";
8465
8459
  "use strict";
8466
8460
  __webpack_require__.r(__webpack_exports__);
8467
8461
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8468
- /* harmony export */ "default": () => (/* binding */ Portal)
8462
+ /* harmony export */ "Portal": () => (/* binding */ Portal)
8469
8463
  /* harmony export */ });
8470
8464
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
8471
8465
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
@@ -8484,7 +8478,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8484
8478
 
8485
8479
  function _inherits(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(subClass, superClass); }
8486
8480
 
8487
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8481
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8488
8482
 
8489
8483
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8490
8484
 
@@ -8494,10 +8488,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8494
8488
 
8495
8489
  function _isNativeReflectConstruct() { 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; } }
8496
8490
 
8497
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8498
-
8499
- function _defineProperty(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; }
8500
-
8491
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8501
8492
 
8502
8493
 
8503
8494
 
@@ -8513,32 +8504,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
8513
8504
  _classCallCheck(this, Portal);
8514
8505
 
8515
8506
  _this = _super.call(this, props);
8507
+ _this.map = void 0;
8508
+ _this.index = void 0;
8509
+
8510
+ _this.portalRegister = function () {
8511
+ return ++_this.index;
8512
+ };
8513
+
8514
+ _this.portalUpdate = function (key, element) {
8515
+ _this.map[key] = element;
8516
+
8517
+ _this.forceUpdate();
8518
+ };
8519
+
8520
+ _this.portalDeregister = function (key) {
8521
+ delete _this.map[key];
8522
+
8523
+ _this.forceUpdate();
8524
+ };
8525
+
8516
8526
  _this.map = {};
8517
8527
  _this.index = 1;
8518
- _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
8519
- _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
8520
- _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
8521
8528
  return _this;
8522
8529
  }
8523
8530
 
8524
8531
  _createClass(Portal, [{
8525
- key: "portalRegister",
8526
- value: function portalRegister() {
8527
- return ++this.index;
8528
- }
8529
- }, {
8530
- key: "portalUpdate",
8531
- value: function portalUpdate(key, element) {
8532
- this.map[key] = element;
8533
- this.forceUpdate();
8534
- }
8535
- }, {
8536
- key: "portalDeregister",
8537
- value: function portalDeregister(key) {
8538
- delete this.map[key];
8539
- this.forceUpdate();
8540
- }
8541
- }, {
8542
8532
  key: "getChildren",
8543
8533
  value: function getChildren() {
8544
8534
  var _this2 = this;
@@ -8560,18 +8550,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
8560
8550
 
8561
8551
  return Portal;
8562
8552
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
8563
-
8564
- _defineProperty(Portal, "displayName", "Portal");
8565
-
8566
- _defineProperty(Portal, "propTypes", {
8553
+ Portal.displayName = "Portal";
8554
+ Portal.propTypes = {
8567
8555
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8568
8556
  height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
8569
8557
  style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
8570
8558
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8571
8559
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
8572
- });
8573
-
8574
-
8560
+ };
8561
+ //# sourceMappingURL=portal.js.map
8575
8562
 
8576
8563
  /***/ }),
8577
8564
 
@@ -8584,7 +8571,7 @@ _defineProperty(Portal, "propTypes", {
8584
8571
  "use strict";
8585
8572
  __webpack_require__.r(__webpack_exports__);
8586
8573
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8587
- /* harmony export */ "default": () => (/* binding */ VictoryPortal)
8574
+ /* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
8588
8575
  /* harmony export */ });
8589
8576
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
8590
8577
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
@@ -8605,7 +8592,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8605
8592
 
8606
8593
  function _inherits(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(subClass, superClass); }
8607
8594
 
8608
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8595
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8609
8596
 
8610
8597
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8611
8598
 
@@ -8615,10 +8602,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8615
8602
 
8616
8603
  function _isNativeReflectConstruct() { 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; } }
8617
8604
 
8618
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8619
-
8620
- function _defineProperty(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; }
8621
-
8605
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8622
8606
 
8623
8607
 
8624
8608
 
@@ -8631,9 +8615,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
8631
8615
  var _super = _createSuper(VictoryPortal);
8632
8616
 
8633
8617
  function VictoryPortal() {
8618
+ var _this;
8619
+
8634
8620
  _classCallCheck(this, VictoryPortal);
8635
8621
 
8636
- return _super.apply(this, arguments);
8622
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8623
+ args[_key] = arguments[_key];
8624
+ }
8625
+
8626
+ _this = _super.call.apply(_super, [this].concat(args));
8627
+ _this.checkedContext = void 0;
8628
+ _this.renderInPlace = void 0;
8629
+ _this.element = void 0;
8630
+ _this.portalKey = void 0;
8631
+ return _this;
8637
8632
  }
8638
8633
 
8639
8634
  _createClass(VictoryPortal, [{
@@ -8697,23 +8692,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
8697
8692
 
8698
8693
  return VictoryPortal;
8699
8694
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
8700
-
8701
- _defineProperty(VictoryPortal, "displayName", "VictoryPortal");
8702
-
8703
- _defineProperty(VictoryPortal, "role", "portal");
8704
-
8705
- _defineProperty(VictoryPortal, "propTypes", {
8695
+ VictoryPortal.displayName = "VictoryPortal";
8696
+ VictoryPortal.role = "portal";
8697
+ VictoryPortal.propTypes = {
8706
8698
  children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
8707
8699
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
8708
- });
8709
-
8710
- _defineProperty(VictoryPortal, "defaultProps", {
8700
+ };
8701
+ VictoryPortal.defaultProps = {
8711
8702
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
8712
- });
8713
-
8714
- _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
8715
-
8716
-
8703
+ };
8704
+ VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
8705
+ //# sourceMappingURL=victory-portal.js.map
8717
8706
 
8718
8707
  /***/ }),
8719
8708
 
@@ -8726,33 +8715,37 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
8726
8715
  "use strict";
8727
8716
  __webpack_require__.r(__webpack_exports__);
8728
8717
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8729
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8718
+ /* harmony export */ "Circle": () => (/* binding */ Circle)
8730
8719
  /* harmony export */ });
8731
8720
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8732
8721
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8733
8722
  var _excluded = ["desc"];
8734
8723
 
8735
- function _extends() { _extends = Object.assign || 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.apply(this, arguments); }
8724
+ function _extends() { _extends = 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.apply(this, arguments); }
8736
8725
 
8737
8726
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(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; }
8738
8727
 
8739
8728
  function _objectWithoutPropertiesLoose(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; }
8740
8729
 
8741
8730
 
8742
-
8743
8731
  var Circle = function (props) {
8744
8732
  // eslint-disable-next-line react/prop-types
8745
8733
  var desc = props.desc,
8746
8734
  rest = _objectWithoutProperties(props, _excluded);
8747
8735
 
8748
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({
8736
+ return desc ?
8737
+ /*#__PURE__*/
8738
+ // @ts-expect-error FIXME: "id cannot be a number"
8739
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({
8749
8740
  vectorEffect: "non-scaling-stroke"
8750
- }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({
8741
+ }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8742
+ /*#__PURE__*/
8743
+ // @ts-expect-error FIXME: "id cannot be a number"
8744
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({
8751
8745
  vectorEffect: "non-scaling-stroke"
8752
8746
  }, rest));
8753
8747
  };
8754
-
8755
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Circle);
8748
+ //# sourceMappingURL=circle.js.map
8756
8749
 
8757
8750
  /***/ }),
8758
8751
 
@@ -8765,7 +8758,7 @@ var Circle = function (props) {
8765
8758
  "use strict";
8766
8759
  __webpack_require__.r(__webpack_exports__);
8767
8760
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8768
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8761
+ /* harmony export */ "ClipPath": () => (/* binding */ ClipPath)
8769
8762
  /* harmony export */ });
8770
8763
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8771
8764
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8773,18 +8766,19 @@ __webpack_require__.r(__webpack_exports__);
8773
8766
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
8774
8767
 
8775
8768
 
8776
-
8777
8769
  var ClipPath = function (props) {
8778
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("clipPath", {
8770
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("defs", null,
8771
+ /*#__PURE__*/
8772
+ // @ts-expect-error FIXME: "id cannot be a number"
8773
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("clipPath", {
8779
8774
  id: props.clipId
8780
8775
  }, props.children));
8781
8776
  };
8782
-
8783
8777
  ClipPath.propTypes = {
8784
8778
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)]),
8785
8779
  clipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)])
8786
8780
  };
8787
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ClipPath);
8781
+ //# sourceMappingURL=clip-path.js.map
8788
8782
 
8789
8783
  /***/ }),
8790
8784
 
@@ -8797,7 +8791,7 @@ ClipPath.propTypes = {
8797
8791
  "use strict";
8798
8792
  __webpack_require__.r(__webpack_exports__);
8799
8793
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8800
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8794
+ /* harmony export */ "Path": () => (/* binding */ Path)
8801
8795
  /* harmony export */ });
8802
8796
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8803
8797
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8808,16 +8802,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8808
8802
  function _objectWithoutPropertiesLoose(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; }
8809
8803
 
8810
8804
 
8811
-
8812
8805
  var Path = function (props) {
8813
8806
  // eslint-disable-next-line react/prop-types
8814
8807
  var desc = props.desc,
8815
8808
  rest = _objectWithoutProperties(props, _excluded);
8816
8809
 
8817
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
8810
+ return desc ?
8811
+ /*#__PURE__*/
8812
+ // @ts-expect-error FIXME: "id cannot be a number"
8813
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8814
+ /*#__PURE__*/
8815
+ // @ts-expect-error FIXME: "id cannot be a number"
8816
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
8818
8817
  };
8819
-
8820
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
8818
+ //# sourceMappingURL=path.js.map
8821
8819
 
8822
8820
  /***/ }),
8823
8821
 
@@ -8830,33 +8828,37 @@ var Path = function (props) {
8830
8828
  "use strict";
8831
8829
  __webpack_require__.r(__webpack_exports__);
8832
8830
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8833
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8831
+ /* harmony export */ "Rect": () => (/* binding */ Rect)
8834
8832
  /* harmony export */ });
8835
8833
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8836
8834
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8837
8835
  var _excluded = ["desc"];
8838
8836
 
8839
- function _extends() { _extends = Object.assign || 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.apply(this, arguments); }
8837
+ function _extends() { _extends = 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.apply(this, arguments); }
8840
8838
 
8841
8839
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(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; }
8842
8840
 
8843
8841
  function _objectWithoutPropertiesLoose(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; }
8844
8842
 
8845
8843
 
8846
-
8847
8844
  var Rect = function (props) {
8848
8845
  // eslint-disable-next-line react/prop-types
8849
8846
  var desc = props.desc,
8850
8847
  rest = _objectWithoutProperties(props, _excluded);
8851
8848
 
8852
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8849
+ return desc ?
8850
+ /*#__PURE__*/
8851
+ // @ts-expect-error FIXME: "id cannot be a number"
8852
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8853
8853
  vectorEffect: "non-scaling-stroke"
8854
- }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8854
+ }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8855
+ /*#__PURE__*/
8856
+ // @ts-expect-error FIXME: "id cannot be a number"
8857
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8855
8858
  vectorEffect: "non-scaling-stroke"
8856
8859
  }, rest));
8857
8860
  };
8858
-
8859
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
8861
+ //# sourceMappingURL=rect.js.map
8860
8862
 
8861
8863
  /***/ }),
8862
8864
 
@@ -8869,7 +8871,7 @@ var Rect = function (props) {
8869
8871
  "use strict";
8870
8872
  __webpack_require__.r(__webpack_exports__);
8871
8873
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8872
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8874
+ /* harmony export */ "Text": () => (/* binding */ Text)
8873
8875
  /* harmony export */ });
8874
8876
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8875
8877
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8883,22 +8885,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
8883
8885
 
8884
8886
 
8885
8887
 
8886
-
8887
8888
  var Text = function (props) {
8888
8889
  var children = props.children,
8889
8890
  title = props.title,
8890
8891
  desc = props.desc,
8891
8892
  rest = _objectWithoutProperties(props, _excluded);
8892
8893
 
8893
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children);
8894
+ return (
8895
+ /*#__PURE__*/
8896
+ // @ts-expect-error FIXME: "id cannot be a number"
8897
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
8898
+ );
8894
8899
  };
8895
-
8896
8900
  Text.propTypes = {
8897
8901
  children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
8898
8902
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
8899
8903
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
8900
8904
  };
8901
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);
8905
+ //# sourceMappingURL=text.js.map
8902
8906
 
8903
8907
  /***/ }),
8904
8908
 
@@ -8911,17 +8915,19 @@ Text.propTypes = {
8911
8915
  "use strict";
8912
8916
  __webpack_require__.r(__webpack_exports__);
8913
8917
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8914
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8918
+ /* harmony export */ "TSpan": () => (/* binding */ TSpan)
8915
8919
  /* harmony export */ });
8916
8920
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8917
8921
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8918
8922
 
8919
-
8920
8923
  var TSpan = function (props) {
8921
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props);
8924
+ return (
8925
+ /*#__PURE__*/
8926
+ // @ts-expect-error FIXME: "id cannot be a number"
8927
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
8928
+ );
8922
8929
  };
8923
-
8924
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
8930
+ //# sourceMappingURL=tspan.js.map
8925
8931
 
8926
8932
  /***/ }),
8927
8933
 
@@ -8934,7 +8940,7 @@ var TSpan = function (props) {
8934
8940
  "use strict";
8935
8941
  __webpack_require__.r(__webpack_exports__);
8936
8942
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8937
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8943
+ /* harmony export */ "grayscale": () => (/* binding */ grayscale)
8938
8944
  /* harmony export */ });
8939
8945
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
8940
8946
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -8981,7 +8987,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8981
8987
 
8982
8988
  var strokeLinecap = "round";
8983
8989
  var strokeLinejoin = "round";
8984
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8990
+ var grayscale = {
8985
8991
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8986
8992
  style: {
8987
8993
  data: {
@@ -9196,7 +9202,8 @@ var strokeLinejoin = "round";
9196
9202
  }
9197
9203
  }
9198
9204
  }, baseProps)
9199
- });
9205
+ };
9206
+ //# sourceMappingURL=grayscale.js.map
9200
9207
 
9201
9208
  /***/ }),
9202
9209
 
@@ -9209,7 +9216,7 @@ var strokeLinejoin = "round";
9209
9216
  "use strict";
9210
9217
  __webpack_require__.r(__webpack_exports__);
9211
9218
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9212
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9219
+ /* harmony export */ "material": () => (/* binding */ material)
9213
9220
  /* harmony export */ });
9214
9221
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9215
9222
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -9266,7 +9273,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9266
9273
  var strokeDasharray = "10, 5";
9267
9274
  var strokeLinecap = "round";
9268
9275
  var strokeLinejoin = "round";
9269
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9276
+ var material = {
9270
9277
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9271
9278
  style: {
9272
9279
  data: {
@@ -9498,7 +9505,8 @@ var strokeLinejoin = "round";
9498
9505
  }
9499
9506
  }
9500
9507
  }, baseProps)
9501
- });
9508
+ };
9509
+ //# sourceMappingURL=material.js.map
9502
9510
 
9503
9511
  /***/ }),
9504
9512
 
@@ -9511,16 +9519,18 @@ var strokeLinejoin = "round";
9511
9519
  "use strict";
9512
9520
  __webpack_require__.r(__webpack_exports__);
9513
9521
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9514
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9522
+ /* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
9515
9523
  /* harmony export */ });
9516
- /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9517
- /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9524
+ /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9525
+ /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9518
9526
 
9519
9527
 
9520
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9521
- material: _material__WEBPACK_IMPORTED_MODULE_0__["default"],
9522
- grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_1__["default"]
9523
- });
9528
+
9529
+ var VictoryTheme = {
9530
+ grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
9531
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material
9532
+ };
9533
+ //# sourceMappingURL=victory-theme.js.map
9524
9534
 
9525
9535
  /***/ }),
9526
9536
 
@@ -9533,33 +9543,30 @@ __webpack_require__.r(__webpack_exports__);
9533
9543
  "use strict";
9534
9544
  __webpack_require__.r(__webpack_exports__);
9535
9545
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9536
- /* harmony export */ "default": () => (/* binding */ VictoryTransition)
9546
+ /* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
9537
9547
  /* harmony export */ });
9538
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js");
9539
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
9540
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9541
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
9542
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9543
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
9544
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9545
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
9546
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
9547
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
9548
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9549
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
9550
- /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
9551
- /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
9552
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
9553
- /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
9554
- /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
9555
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
9556
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
9557
-
9548
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9549
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9550
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9551
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
9552
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9553
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
9554
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9555
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9556
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9557
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
9558
+ /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
9559
+ /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
9560
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
9561
+ /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
9562
+ /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
9563
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
9564
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
9558
9565
 
9559
9566
 
9560
9567
 
9561
9568
 
9562
- function _extends() { _extends = Object.assign || 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.apply(this, arguments); }
9569
+ function _extends() { _extends = 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.apply(this, arguments); }
9563
9570
 
9564
9571
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9565
9572
 
@@ -9569,7 +9576,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
9569
9576
 
9570
9577
  function _inherits(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(subClass, superClass); }
9571
9578
 
9572
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9579
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9573
9580
 
9574
9581
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9575
9582
 
@@ -9579,10 +9586,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9579
9586
 
9580
9587
  function _isNativeReflectConstruct() { 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; } }
9581
9588
 
9582
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9583
-
9584
- function _defineProperty(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; }
9585
-
9589
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9586
9590
 
9587
9591
 
9588
9592
 
@@ -9603,6 +9607,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9603
9607
  _classCallCheck(this, VictoryTransition);
9604
9608
 
9605
9609
  _this = _super.call(this, props, context);
9610
+ _this.continuous = void 0;
9611
+ _this.timer = void 0;
9612
+ _this.transitionProps = void 0;
9606
9613
  _this.state = {
9607
9614
  nodesShouldLoad: false,
9608
9615
  nodesDoneLoad: false
@@ -9610,7 +9617,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9610
9617
  var child = _this.props.children;
9611
9618
  var polar = child.props.polar;
9612
9619
  _this.continuous = !polar && child.type && child.type.continuous === true;
9613
- _this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
9614
9620
  _this.timer = _this.context.transitionTimer;
9615
9621
  return _this;
9616
9622
  }
@@ -9627,7 +9633,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9627
9633
  value: function shouldComponentUpdate(nextProps) {
9628
9634
  var _this2 = this;
9629
9635
 
9630
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
9636
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
9631
9637
  this.timer.bypassAnimation();
9632
9638
  this.setState(this.getTransitionState(this.props, nextProps), function () {
9633
9639
  return _this2.timer.resumeAnimation();
@@ -9656,10 +9662,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9656
9662
  nextProps: nextProps
9657
9663
  };
9658
9664
  } else {
9659
- var oldChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
9660
- var nextChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(nextProps.children);
9665
+ var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
9666
+ var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
9661
9667
 
9662
- var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getInitialTransitionState(oldChildren, nextChildren),
9668
+ var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
9663
9669
  nodesWillExit = _Transitions$getIniti.nodesWillExit,
9664
9670
  nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
9665
9671
  childrenTransitions = _Transitions$getIniti.childrenTransitions,
@@ -9680,18 +9686,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9680
9686
  value: function getDomainFromChildren(props, axis) {
9681
9687
  var getChildDomains = function (children) {
9682
9688
  return children.reduce(function (memo, child) {
9683
- if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(child.type.getDomain)) {
9689
+ if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
9684
9690
  var childDomain = child.props && child.type.getDomain(child.props, axis);
9685
9691
  return childDomain ? memo.concat(childDomain) : memo;
9686
9692
  } else if (child.props && child.props.children) {
9687
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
9693
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
9688
9694
  }
9689
9695
 
9690
9696
  return memo;
9691
9697
  }, []);
9692
9698
  };
9693
9699
 
9694
- var child = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children)[0];
9700
+ var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
9695
9701
  var childProps = child.props || {};
9696
9702
  var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
9697
9703
 
@@ -9699,7 +9705,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9699
9705
  return domain;
9700
9706
  } else {
9701
9707
  var childDomains = getChildDomains([child]);
9702
- return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMaxValue(childDomains)];
9708
+ return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
9703
9709
  }
9704
9710
  }
9705
9711
  }, {
@@ -9714,10 +9720,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9714
9720
  }, {
9715
9721
  key: "pickDomainProps",
9716
9722
  value: function pickDomainProps(props) {
9717
- var parentState = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props.animate) && props.animate.parentState;
9723
+ var _props$animate;
9724
+
9725
+ var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
9718
9726
 
9719
9727
  if (parentState && parentState.nodesWillExit) {
9720
- return this.continous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
9728
+ return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
9721
9729
  }
9722
9730
 
9723
9731
  return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
@@ -9726,7 +9734,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9726
9734
  key: "getClipWidth",
9727
9735
  value: function getClipWidth(props, child) {
9728
9736
  var getDefaultClipWidth = function () {
9729
- var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__.getRange(child.props, "x");
9737
+ var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
9730
9738
  return range ? Math.abs(range[1] - range[0]) : props.width;
9731
9739
  };
9732
9740
 
@@ -9736,13 +9744,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9736
9744
  }, {
9737
9745
  key: "render",
9738
9746
  value: function render() {
9739
- var _this3 = this;
9747
+ var _this$props$animate,
9748
+ _this3 = this;
9740
9749
 
9741
9750
  var props = this.pickProps();
9742
- var getTransitionProps = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(this.props.animate) && this.props.animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getTransitionPropsFactory(props, this.state, function (newState) {
9751
+ var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
9743
9752
  return _this3.setState(newState);
9744
9753
  });
9745
- var child = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children)[0];
9754
+ var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
9746
9755
  var transitionProps = getTransitionProps(child);
9747
9756
  this.transitionProps = transitionProps;
9748
9757
  var domain = {
@@ -9751,29 +9760,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9751
9760
  };
9752
9761
  var clipWidth = this.getClipWidth(props, child);
9753
9762
 
9754
- var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9763
+ var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9755
9764
  domain: domain,
9756
9765
  clipWidth: clipWidth
9757
9766
  }, transitionProps, child.props);
9758
9767
 
9759
9768
  var animationWhitelist = props.animationWhitelist || [];
9760
9769
  var whitelist = animationWhitelist.concat(["clipWidth"]);
9761
- var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(combinedProps, whitelist) : combinedProps;
9762
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__["default"], _extends({}, combinedProps.animate, {
9770
+ var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
9771
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
9763
9772
  data: propsToAnimate
9764
9773
  }), function (newProps) {
9765
9774
  if (child.props.groupComponent) {
9766
- var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child.props.groupComponent, {
9775
+ var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
9767
9776
  clipWidth: newProps.clipWidth || 0
9768
9777
  }) : child.props.groupComponent;
9769
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9778
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9770
9779
  animate: null,
9771
9780
  animating: true,
9772
9781
  groupComponent: groupComponent
9773
9782
  }, newProps, combinedProps));
9774
9783
  }
9775
9784
 
9776
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9785
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9777
9786
  animate: null,
9778
9787
  animating: true
9779
9788
  }, newProps, combinedProps));
@@ -9782,19 +9791,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9782
9791
  }]);
9783
9792
 
9784
9793
  return VictoryTransition;
9785
- }((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
9786
-
9787
- _defineProperty(VictoryTransition, "displayName", "VictoryTransition");
9788
-
9789
- _defineProperty(VictoryTransition, "propTypes", {
9790
- animate: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object)]),
9791
- animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array),
9792
- children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)
9793
- });
9794
-
9795
- _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
9796
-
9797
-
9794
+ }((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
9795
+ VictoryTransition.displayName = "VictoryTransition";
9796
+ VictoryTransition.propTypes = {
9797
+ animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
9798
+ animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
9799
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
9800
+ };
9801
+ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
9802
+ //# sourceMappingURL=victory-transition.js.map
9798
9803
 
9799
9804
  /***/ }),
9800
9805
 
@@ -9807,26 +9812,26 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
9807
9812
  "use strict";
9808
9813
  __webpack_require__.r(__webpack_exports__);
9809
9814
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9810
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9815
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
9811
9816
  /* harmony export */ });
9812
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
9813
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
9814
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
9815
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
9816
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
9817
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
9818
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
9819
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
9820
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9821
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
9822
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9823
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
9824
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
9825
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
9826
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9827
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
9828
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9829
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
9817
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
9818
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
9819
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9820
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
9821
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
9822
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
9823
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
9824
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
9825
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9826
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
9827
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
9828
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
9829
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
9830
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
9831
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9832
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
9833
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9834
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
9830
9835
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
9831
9836
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
9832
9837
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -9863,7 +9868,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
9863
9868
 
9864
9869
  function _inherits(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(subClass, superClass); }
9865
9870
 
9866
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9871
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9867
9872
 
9868
9873
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9869
9874
 
@@ -9873,7 +9878,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9873
9878
 
9874
9879
  function _isNativeReflectConstruct() { 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; } }
9875
9880
 
9876
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9881
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9877
9882
 
9878
9883
  /*global window:false */
9879
9884
 
@@ -9881,8 +9886,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
9881
9886
 
9882
9887
 
9883
9888
 
9889
+ // DISCLAIMER:
9890
+ // This file is not currently tested, and it is first on the list of files
9891
+ // to refactor in our current refactoring effort. Please do not make changes
9892
+ // to this file without manual testing and/or refactoring and adding tests.
9884
9893
  var datumHasXandY = function (datum) {
9885
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
9894
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
9886
9895
  }; // used for checking state changes. Expected components can be passed in via options
9887
9896
 
9888
9897
 
@@ -9894,44 +9903,45 @@ var defaultComponents = [{
9894
9903
  }, {
9895
9904
  name: "labels"
9896
9905
  }];
9897
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
9898
- return /*#__PURE__*/function (_WrappedComponent) {
9899
- _inherits(addEvents, _WrappedComponent);
9906
+ function addEvents(WrappedComponent) {
9907
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9900
9908
 
9901
- var _super = _createSuper(addEvents);
9909
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
9910
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
9911
+ _inherits(AddEventsMixin, _WrappedComponent);
9902
9912
 
9903
- function addEvents(props) {
9913
+ var _super = _createSuper(AddEventsMixin);
9914
+
9915
+ function AddEventsMixin(props) {
9904
9916
  var _this;
9905
9917
 
9906
- _classCallCheck(this, addEvents);
9918
+ _classCallCheck(this, AddEventsMixin);
9907
9919
 
9908
9920
  _this = _super.call(this, props);
9909
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
9910
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
9911
9921
  _this.state = {};
9922
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
9923
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
9912
9924
 
9913
9925
  _this.getEvents = function (p, target, eventKey) {
9914
- return boundGetEvents(p, target, eventKey, getScopedEvents);
9926
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
9915
9927
  };
9916
9928
 
9917
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
9918
-
9919
- var calculatedValues = _this.getCalculatedValues(props);
9920
-
9921
- _this.cacheValues(calculatedValues);
9922
-
9923
- _this.externalMutations = _this.getExternalMutations(props);
9924
- _this.calculatedState = _this.getStateChanges(props);
9929
+ _this.externalMutations = _this.getExternalMutations(_this.props);
9930
+ _this.calculatedState = _this.getStateChanges(_this.props);
9925
9931
  _this.globalEvents = {};
9926
9932
  _this.prevGlobalEventKeys = [];
9927
9933
  _this.boundGlobalEvents = {};
9934
+
9935
+ _this.cacheValues(_this.getCalculatedValues(props));
9936
+
9928
9937
  return _this;
9929
9938
  }
9930
9939
 
9931
- _createClass(addEvents, [{
9940
+ _createClass(AddEventsMixin, [{
9932
9941
  key: "shouldComponentUpdate",
9933
9942
  value: function shouldComponentUpdate(nextProps) {
9934
- var externalMutations = this.getExternalMutations(nextProps);
9943
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
9944
+
9935
9945
  var animating = this.props.animating || this.props.animate;
9936
9946
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
9937
9947
 
@@ -9961,7 +9971,7 @@ var defaultComponents = [{
9961
9971
  value: function componentDidMount() {
9962
9972
  var _this2 = this;
9963
9973
 
9964
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
9974
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
9965
9975
 
9966
9976
  globalEventKeys.forEach(function (key) {
9967
9977
  return _this2.addGlobalListener(key);
@@ -9976,15 +9986,15 @@ var defaultComponents = [{
9976
9986
  var calculatedState = this.getStateChanges(prevProps);
9977
9987
  this.calculatedState = calculatedState;
9978
9988
 
9979
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
9989
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
9980
9990
 
9981
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
9991
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
9982
9992
 
9983
9993
  removedGlobalEventKeys.forEach(function (key) {
9984
9994
  return _this3.removeGlobalListener(key);
9985
9995
  });
9986
9996
 
9987
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
9997
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
9988
9998
 
9989
9999
  addedGlobalEventKeys.forEach(function (key) {
9990
10000
  return _this3.addGlobalListener(key);
@@ -10030,12 +10040,11 @@ var defaultComponents = [{
10030
10040
  }
10031
10041
 
10032
10042
  var getState = function (key, type) {
10033
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10043
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10034
10044
 
10035
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10045
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10036
10046
  };
10037
10047
 
10038
- options = options || {};
10039
10048
  var components = options.components || defaultComponents;
10040
10049
  var stateChanges = components.map(function (component) {
10041
10050
  if (!props.standalone && component.name === "parent") {
@@ -10052,9 +10061,9 @@ var defaultComponents = [{
10052
10061
  }, {
10053
10062
  key: "applyExternalMutations",
10054
10063
  value: function applyExternalMutations(props, externalMutations) {
10055
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10064
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10056
10065
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10057
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10066
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10058
10067
  return memo;
10059
10068
  }, []);
10060
10069
  var compiledCallbacks = callbacks.length ? function () {
@@ -10071,12 +10080,12 @@ var defaultComponents = [{
10071
10080
  var sharedEvents = props.sharedEvents;
10072
10081
  var components = WrappedComponent.expectedComponents;
10073
10082
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10074
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10083
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10075
10084
  return undefined;
10076
10085
  };
10077
10086
  var baseProps = this.getBaseProps(props, getSharedEventState);
10078
10087
 
10079
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
10088
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10080
10089
  return key !== "parent";
10081
10090
  });
10082
10091
 
@@ -10096,32 +10105,32 @@ var defaultComponents = [{
10096
10105
  value: function getExternalMutations(props) {
10097
10106
  var sharedEvents = props.sharedEvents,
10098
10107
  externalEventMutations = props.externalEventMutations;
10099
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10108
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10100
10109
  }
10101
10110
  }, {
10102
10111
  key: "cacheValues",
10103
10112
  value: function cacheValues(obj) {
10104
10113
  var _this7 = this;
10105
10114
 
10106
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
10115
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
10107
10116
  _this7[key] = obj[key];
10108
10117
  });
10109
10118
  }
10110
10119
  }, {
10111
10120
  key: "getBaseProps",
10112
10121
  value: function getBaseProps(props, getSharedEventState) {
10113
- getSharedEventState = getSharedEventState || this.getSharedEventState;
10122
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
10114
10123
  var sharedParentState = getSharedEventState("parent", "parent");
10115
10124
  var parentState = this.getEventState("parent", "parent");
10116
10125
 
10117
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
10126
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
10118
10127
 
10119
10128
  var parentPropsList = baseParentProps.parentControlledProps;
10120
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
10129
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
10121
10130
 
10122
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
10131
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
10123
10132
 
10124
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
10133
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
10125
10134
  }
10126
10135
  }, {
10127
10136
  key: "getAllEvents",
@@ -10149,21 +10158,21 @@ var defaultComponents = [{
10149
10158
  if (this.hasEvents) {
10150
10159
  var baseEvents = this.getEvents(this.props, type, key);
10151
10160
 
10152
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10161
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10153
10162
  index: index,
10154
10163
  key: id
10155
10164
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
10156
10165
  id: id
10157
10166
  });
10158
10167
 
10159
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10168
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10160
10169
 
10161
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
10170
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
10162
10171
  events: events
10163
10172
  });
10164
10173
  }
10165
10174
 
10166
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10175
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10167
10176
  index: index,
10168
10177
  key: id
10169
10178
  }, component.props, baseProps, {
@@ -10186,11 +10195,14 @@ var defaultComponents = [{
10186
10195
  }, {
10187
10196
  key: "animateComponent",
10188
10197
  value: function animateComponent(props, defaultAnimationWhitelist) {
10189
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
10190
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__["default"], {
10198
+ var _props$animate;
10199
+
10200
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
10201
+ var Comp = this.constructor;
10202
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
10191
10203
  animate: props.animate,
10192
10204
  animationWhitelist: animationWhitelist
10193
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
10205
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
10194
10206
  } // Used by `VictoryLine` and `VictoryArea`
10195
10207
 
10196
10208
  }, {
@@ -10202,7 +10214,7 @@ var defaultComponents = [{
10202
10214
  labelComponent = props.labelComponent,
10203
10215
  groupComponent = props.groupComponent;
10204
10216
 
10205
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
10217
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
10206
10218
 
10207
10219
  var labelComponents = dataKeys.reduce(function (memo, key) {
10208
10220
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -10249,9 +10261,12 @@ var defaultComponents = [{
10249
10261
  }
10250
10262
  }]);
10251
10263
 
10252
- return addEvents;
10264
+ return AddEventsMixin;
10253
10265
  }(WrappedComponent);
10254
- });
10266
+
10267
+ return AddEventsMixin;
10268
+ }
10269
+ //# sourceMappingURL=add-events.js.map
10255
10270
 
10256
10271
  /***/ }),
10257
10272
 
@@ -10285,9 +10300,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10285
10300
 
10286
10301
  function _arrayLikeToArray(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; }
10287
10302
 
10288
- /* eslint-disable func-style */
10289
-
10290
- /* eslint-disable no-use-before-define */
10291
10303
  function isNonEmptyArray(collection) {
10292
10304
  return Array.isArray(collection) && collection.length > 0;
10293
10305
  }
@@ -10326,7 +10338,8 @@ function getMaxValue(arr) {
10326
10338
  }
10327
10339
 
10328
10340
  var array = arr.concat(values);
10329
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
10341
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10342
+ : Math.max.apply(Math, _toConsumableArray(array));
10330
10343
  }
10331
10344
  function getMinValue(arr) {
10332
10345
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -10334,8 +10347,10 @@ function getMinValue(arr) {
10334
10347
  }
10335
10348
 
10336
10349
  var array = arr.concat(values);
10337
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
10350
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10351
+ : Math.min.apply(Math, _toConsumableArray(array));
10338
10352
  }
10353
+ //# sourceMappingURL=collection.js.map
10339
10354
 
10340
10355
  /***/ }),
10341
10356
 
@@ -10348,9 +10363,7 @@ function getMinValue(arr) {
10348
10363
  "use strict";
10349
10364
  __webpack_require__.r(__webpack_exports__);
10350
10365
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10351
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
10352
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
10353
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
10366
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
10354
10367
  /* harmony export */ });
10355
10368
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
10356
10369
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -10358,26 +10371,28 @@ __webpack_require__.r(__webpack_exports__);
10358
10371
 
10359
10372
 
10360
10373
  var dataProps = {
10374
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10361
10375
  categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10362
10376
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
10363
10377
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
10364
10378
  })]),
10379
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10365
10380
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
10366
10381
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10367
10382
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
10368
10383
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10369
10384
  labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
10370
10385
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
10371
- sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
10386
+ sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
10372
10387
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
10373
10388
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10374
10389
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10375
10390
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10376
10391
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
10377
10392
  }),
10378
- x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
10379
- y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
10380
- y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
10393
+ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
10394
+ y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
10395
+ y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
10381
10396
  };
10382
10397
  var baseProps = {
10383
10398
  animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
@@ -10386,14 +10401,17 @@ var baseProps = {
10386
10401
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
10387
10402
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
10388
10403
  })]),
10404
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10389
10405
  maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10390
10406
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
10391
10407
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
10392
10408
  })]),
10409
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10393
10410
  minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10394
10411
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
10395
10412
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
10396
10413
  })]),
10414
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10397
10415
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10398
10416
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
10399
10417
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
@@ -10404,6 +10422,7 @@ var baseProps = {
10404
10422
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
10405
10423
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
10406
10424
  })),
10425
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10407
10426
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10408
10427
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
10409
10428
  childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
@@ -10414,10 +10433,12 @@ var baseProps = {
10414
10433
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10415
10434
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
10416
10435
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
10436
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10417
10437
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10418
10438
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10419
10439
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
10420
10440
  }),
10441
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10421
10442
  padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10422
10443
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10423
10444
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -10426,17 +10447,19 @@ var baseProps = {
10426
10447
  })]),
10427
10448
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
10428
10449
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10429
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
10430
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
10450
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
10451
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
10431
10452
  })]),
10432
10453
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10433
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
10434
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
10454
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
10455
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
10435
10456
  })]),
10457
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10436
10458
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10437
10459
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
10438
10460
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
10439
10461
  }),
10462
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10440
10463
  singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10441
10464
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
10442
10465
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -10456,6 +10479,7 @@ var primitiveProps = {
10456
10479
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10457
10480
  id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
10458
10481
  index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
10482
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10459
10483
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10460
10484
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10461
10485
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -10471,6 +10495,12 @@ var primitiveProps = {
10471
10495
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
10472
10496
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
10473
10497
  };
10498
+ var CommonProps = {
10499
+ dataProps: dataProps,
10500
+ baseProps: baseProps,
10501
+ primitiveProps: primitiveProps
10502
+ };
10503
+ //# sourceMappingURL=common-props.js.map
10474
10504
 
10475
10505
  /***/ }),
10476
10506
 
@@ -10553,8 +10583,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10553
10583
 
10554
10584
  function _arrayLikeToArray(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; }
10555
10585
 
10556
- /* eslint-disable func-style */
10557
-
10558
10586
  /* eslint-disable no-use-before-define */
10559
10587
 
10560
10588
 
@@ -10986,6 +11014,7 @@ function isDataComponent(component) {
10986
11014
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
10987
11015
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
10988
11016
  }
11017
+ //# sourceMappingURL=data.js.map
10989
11018
 
10990
11019
  /***/ }),
10991
11020
 
@@ -11002,7 +11031,6 @@ __webpack_require__.r(__webpack_exports__);
11002
11031
  /* harmony export */ "continuousTransitions": () => (/* binding */ continuousTransitions),
11003
11032
  /* harmony export */ "discreteTransitions": () => (/* binding */ discreteTransitions)
11004
11033
  /* harmony export */ });
11005
- /* eslint-disable func-style */
11006
11034
  function continuousTransitions() {
11007
11035
  return {
11008
11036
  onLoad: {
@@ -11109,6 +11137,7 @@ function discreteTransitions() {
11109
11137
  }
11110
11138
  };
11111
11139
  }
11140
+ //# sourceMappingURL=default-transitions.js.map
11112
11141
 
11113
11142
  /***/ }),
11114
11143
 
@@ -11171,8 +11200,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11171
11200
 
11172
11201
  function _arrayLikeToArray(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; }
11173
11202
 
11174
- /* eslint-disable func-style */
11175
-
11176
11203
  /* eslint-disable no-use-before-define */
11177
11204
 
11178
11205
 
@@ -11212,8 +11239,9 @@ function getDomainPadding(props, axis) {
11212
11239
  }
11213
11240
 
11214
11241
  function getFlatData(dataset, axis) {
11242
+ var axisKey = "_".concat(axis);
11215
11243
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
11216
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
11244
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
11217
11245
  });
11218
11246
  }
11219
11247
 
@@ -11278,7 +11306,9 @@ function padDomain(domain, props, axis) {
11278
11306
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
11279
11307
  // Naive initial padding calculation
11280
11308
  var initialPadding = {
11309
+ // @ts-expect-error `max/min` might be dates
11281
11310
  left: Math.abs(max - min) * padding.left / rangeExtent,
11311
+ // @ts-expect-error `max/min` might be dates
11282
11312
  right: Math.abs(max - min) * padding.right / rangeExtent
11283
11313
  }; // Adjust the domain by the initial padding
11284
11314
 
@@ -11563,6 +11593,7 @@ function isDomainComponent(component) {
11563
11593
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11564
11594
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
11565
11595
  }
11596
+ //# sourceMappingURL=domain.js.map
11566
11597
 
11567
11598
  /***/ }),
11568
11599
 
@@ -11631,15 +11662,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11631
11662
  function _arrayLikeToArray(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; }
11632
11663
 
11633
11664
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
11665
+
11634
11666
  /* Returns all own and shared events that should be attached to a single target element,
11635
11667
  * i.e. an individual bar specified by target: "data", eventKey: [index].
11636
11668
  * Returned events are scoped to the appropriate state. Either that of the component itself
11637
11669
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
11638
11670
  * (i.e. VictoryChart) in the case of shared events
11639
11671
  */
11640
- // eslint-disable-next-line max-params,no-shadow
11641
-
11642
- function getEvents(props, target, eventKey, getScopedEvents) {
11672
+ // eslint-disable-next-line max-params
11673
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
11674
+ getScopedEvents) {
11643
11675
  var _this = this;
11644
11676
 
11645
11677
  // Returns all events that apply to a particular target element
@@ -11862,24 +11894,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
11862
11894
  return memo;
11863
11895
  }, {});
11864
11896
  }
11865
- /* Returns a partially applied event handler for a specific target element
11897
+ /*
11898
+ * Returns a partially applied event handler for a specific target element
11866
11899
  * This allows event handlers to have access to props controlling each element
11867
11900
  */
11868
11901
 
11869
11902
  function getPartialEvents(events, eventKey, childProps) {
11870
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
11903
+ if (!events) return {};
11904
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
11871
11905
  var appliedEvent = function (evt) {
11872
11906
  return events[eventName](evt, childProps, eventKey, eventName);
11873
11907
  };
11874
11908
 
11875
11909
  memo[eventName] = appliedEvent;
11876
11910
  return memo;
11877
- }, {}) : {};
11911
+ }, {});
11878
11912
  }
11913
+
11879
11914
  /* Returns the property of the state object corresponding to event changes for
11880
11915
  * a particular element
11881
11916
  */
11882
-
11917
+ // eslint-disable-next-line max-params
11883
11918
  function getEventState(eventKey, namespace, childType) {
11884
11919
  // Mandatory usage: `getEventState.bind(this)`
11885
11920
  // eslint-disable-next-line no-invalid-this
@@ -12064,6 +12099,7 @@ var emulateReactEvent = function (event) {
12064
12099
  nativeEvent: event
12065
12100
  });
12066
12101
  };
12102
+ //# sourceMappingURL=events.js.map
12067
12103
 
12068
12104
  /***/ }),
12069
12105
 
@@ -12117,8 +12153,6 @@ __webpack_require__.r(__webpack_exports__);
12117
12153
 
12118
12154
 
12119
12155
 
12120
- /* eslint-disable func-style */
12121
-
12122
12156
  /* eslint-disable no-use-before-define */
12123
12157
 
12124
12158
 
@@ -12147,7 +12181,7 @@ function getPolarRange(props, axis) {
12147
12181
 
12148
12182
  /**
12149
12183
  * creates an object with some keys excluded
12150
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
12184
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
12151
12185
  * @param {Object} originalObject: created object will be based on this object
12152
12186
  * @param {Array<String>} ks: an array of keys to omit from the new object
12153
12187
  * @returns {Object} new object with same properties as originalObject
@@ -12160,6 +12194,7 @@ function omit(originalObject) {
12160
12194
  var newObject = {};
12161
12195
 
12162
12196
  for (var key in originalObject) {
12197
+ // @ts-expect-error String is not assignable to Key
12163
12198
  if (ks.indexOf(key) >= 0) {
12164
12199
  continue;
12165
12200
  }
@@ -12392,7 +12427,9 @@ function reduceChildren(children, iteratee) {
12392
12427
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
12393
12428
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
12394
12429
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
12395
- return memo.concat(item);
12430
+ return (// @ts-expect-error These defaults are hard to type
12431
+ memo.concat(item)
12432
+ );
12396
12433
  };
12397
12434
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
12398
12435
 
@@ -12436,7 +12473,7 @@ function reduceChildren(children, iteratee) {
12436
12473
  /**
12437
12474
  * @param {Object} props: the props object
12438
12475
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
12439
- * children or nested children are hoizontal
12476
+ * children or nested children are horizontal
12440
12477
  */
12441
12478
 
12442
12479
  function isHorizontal(props) {
@@ -12459,6 +12496,7 @@ function isHorizontal(props) {
12459
12496
 
12460
12497
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
12461
12498
  }
12499
+ //# sourceMappingURL=helpers.js.map
12462
12500
 
12463
12501
  /***/ }),
12464
12502
 
@@ -12482,7 +12520,6 @@ __webpack_require__.r(__webpack_exports__);
12482
12520
  /* harmony export */ "isRecord": () => (/* binding */ isRecord),
12483
12521
  /* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
12484
12522
  /* harmony export */ });
12485
- /* eslint-disable func-style */
12486
12523
  var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
12487
12524
  var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
12488
12525
  var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
@@ -12503,15 +12540,16 @@ function isMap(x) {
12503
12540
  return !!(x && x[IMMUTABLE_MAP]);
12504
12541
  }
12505
12542
  function shallowToJS(x, whitelist) {
12506
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
12543
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
12507
12544
  if (whitelist && whitelist[key]) {
12508
12545
  curr = shallowToJS(curr);
12509
12546
  }
12510
12547
 
12511
- prev[key] = curr;
12512
- return prev;
12548
+ result[key] = curr;
12549
+ return result;
12513
12550
  }, isList(x) ? [] : {}) : x;
12514
12551
  }
12552
+ //# sourceMappingURL=immutable.js.map
12515
12553
 
12516
12554
  /***/ }),
12517
12555
 
@@ -12536,8 +12574,6 @@ __webpack_require__.r(__webpack_exports__);
12536
12574
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12537
12575
 
12538
12576
 
12539
- /* eslint-disable func-style */
12540
-
12541
12577
  /* eslint-disable no-use-before-define */
12542
12578
 
12543
12579
 
@@ -12771,6 +12807,7 @@ function getProps(props, index) {
12771
12807
  var tooltipTheme = theme && theme.tooltip || {};
12772
12808
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
12773
12809
  }
12810
+ //# sourceMappingURL=label-helpers.js.map
12774
12811
 
12775
12812
  /***/ }),
12776
12813
 
@@ -12789,7 +12826,6 @@ __webpack_require__.r(__webpack_exports__);
12789
12826
 
12790
12827
  /* eslint-disable no-console */
12791
12828
  // TODO: Use "warning" npm module like React is switching to.
12792
- // eslint-disable-next-line func-style
12793
12829
  function warn(message) {
12794
12830
  if (true) {
12795
12831
  if (console && console.warn) {
@@ -12797,6 +12833,7 @@ function warn(message) {
12797
12833
  }
12798
12834
  }
12799
12835
  }
12836
+ //# sourceMappingURL=log.js.map
12800
12837
 
12801
12838
  /***/ }),
12802
12839
 
@@ -12824,12 +12861,10 @@ __webpack_require__.r(__webpack_exports__);
12824
12861
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
12825
12862
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
12826
12863
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
12827
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
12828
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
12829
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
12830
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12831
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
12832
-
12864
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
12865
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12866
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
12867
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
12833
12868
 
12834
12869
 
12835
12870
 
@@ -12837,6 +12872,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12837
12872
 
12838
12873
 
12839
12874
 
12875
+
12876
+
12840
12877
  /**
12841
12878
  * Return a new validator based on `validator` but with the option to chain
12842
12879
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -12844,30 +12881,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12844
12881
  * @param {Function} validator Validation function.
12845
12882
  * @returns {Function} Validator with `isRequired` option.
12846
12883
  */
12847
-
12848
12884
  var makeChainable = function (validator) {
12849
- /* eslint-disable max-params */
12850
- var _chainable = function (isRequired, props, propName, componentName) {
12851
- var value = props[propName];
12885
+ var createChainable = function (isRequired) {
12886
+ return function (props, propName, componentName) {
12887
+ var value = props[propName];
12852
12888
 
12853
- if (value === undefined || value === null) {
12854
- if (isRequired) {
12855
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
12856
- }
12889
+ if (value === undefined || value === null) {
12890
+ if (isRequired) {
12891
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
12892
+ }
12857
12893
 
12858
- return null;
12859
- }
12894
+ return null;
12895
+ }
12860
12896
 
12861
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
12862
- rest[_key - 4] = arguments[_key];
12863
- }
12897
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
12898
+ rest[_key - 3] = arguments[_key];
12899
+ }
12864
12900
 
12865
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
12901
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
12902
+ };
12866
12903
  };
12867
12904
 
12868
- var chainable = _chainable.bind(null, false);
12869
-
12870
- chainable.isRequired = _chainable.bind(null, true);
12905
+ var chainable = Object.assign(createChainable(false), {
12906
+ isRequired: createChainable(true)
12907
+ });
12871
12908
  return chainable;
12872
12909
  };
12873
12910
 
@@ -12897,7 +12934,7 @@ var getConstructor = function (value) {
12897
12934
  };
12898
12935
  /**
12899
12936
  * Get the name of the constructor used to create `value`, using
12900
- * `Object.protoype.toString`. If the value is null or undefined, return
12937
+ * `Object.prototype.toString`. If the value is null or undefined, return
12901
12938
  * "null" or "undefined", respectively.
12902
12939
  * @param {*} value Instance to return the constructor name of.
12903
12940
  * @returns {String} Name of the constructor.
@@ -12927,10 +12964,11 @@ function deprecated(propType, explanation) {
12927
12964
  var value = props[propName];
12928
12965
 
12929
12966
  if (value !== null && value !== undefined) {
12930
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
12967
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
12931
12968
  }
12932
12969
 
12933
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
12970
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
12971
+ return null;
12934
12972
  };
12935
12973
  }
12936
12974
  /**
@@ -12949,7 +12987,7 @@ function allOfType(validators) {
12949
12987
 
12950
12988
  return validators.reduce(function (result, validator) {
12951
12989
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
12952
- }, undefined);
12990
+ }, null);
12953
12991
  });
12954
12992
  }
12955
12993
  /**
@@ -12963,7 +13001,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
12963
13001
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
12964
13002
  }
12965
13003
 
12966
- return undefined;
13004
+ return null;
12967
13005
  });
12968
13006
  /**
12969
13007
  * Check that the value is an integer.
@@ -12976,7 +13014,7 @@ var integer = makeChainable(function (props, propName, componentName) {
12976
13014
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
12977
13015
  }
12978
13016
 
12979
- return undefined;
13017
+ return null;
12980
13018
  });
12981
13019
  /**
12982
13020
  * Check that the value is greater than zero.
@@ -12989,7 +13027,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
12989
13027
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
12990
13028
  }
12991
13029
 
12992
- return undefined;
13030
+ return null;
12993
13031
  });
12994
13032
  /**
12995
13033
  * Check that the value is an Array of two unique values.
@@ -13002,32 +13040,20 @@ var domain = makeChainable(function (props, propName, componentName) {
13002
13040
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
13003
13041
  }
13004
13042
 
13005
- return undefined;
13043
+ return null;
13006
13044
  });
13007
13045
  /**
13008
13046
  * Check that the value looks like a d3 `scale` function.
13009
13047
  */
13010
13048
 
13011
13049
  var scale = makeChainable(function (props, propName, componentName) {
13012
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13013
-
13014
- var validScale = function (scl) {
13015
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
13016
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
13017
- } else if (typeof scl === "string") {
13018
- return supportedScaleStrings.indexOf(scl) !== -1;
13019
- }
13020
-
13021
- return false;
13022
- };
13023
-
13024
13050
  var value = props[propName];
13025
13051
 
13026
- if (!validScale(value)) {
13052
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
13027
13053
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
13028
13054
  }
13029
13055
 
13030
- return undefined;
13056
+ return null;
13031
13057
  });
13032
13058
  /**
13033
13059
  * Check that an array contains items of the same type.
@@ -13041,7 +13067,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13041
13067
  }
13042
13068
 
13043
13069
  if (values.length < 2) {
13044
- return undefined;
13070
+ return null;
13045
13071
  }
13046
13072
 
13047
13073
  var comparisonConstructor = getConstructor(values[0]);
@@ -13056,7 +13082,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13056
13082
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
13057
13083
  }
13058
13084
 
13059
- return undefined;
13085
+ return null;
13060
13086
  });
13061
13087
  /**
13062
13088
  * Check that array prop length matches props.data.length
@@ -13067,7 +13093,7 @@ var matchDataLength = makeChainable(function (props, propName) {
13067
13093
  return new Error("Length of data and ".concat(propName, " arrays must match."));
13068
13094
  }
13069
13095
 
13070
- return undefined;
13096
+ return null;
13071
13097
  });
13072
13098
  /**
13073
13099
  * Check that the value is a regular expression
@@ -13078,8 +13104,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
13078
13104
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
13079
13105
  }
13080
13106
 
13081
- return undefined;
13107
+ return null;
13082
13108
  });
13109
+ //# sourceMappingURL=prop-types.js.map
13083
13110
 
13084
13111
  /***/ }),
13085
13112
 
@@ -13097,7 +13124,8 @@ __webpack_require__.r(__webpack_exports__);
13097
13124
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
13098
13125
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
13099
13126
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
13100
- /* harmony export */ "getType": () => (/* binding */ getType)
13127
+ /* harmony export */ "getType": () => (/* binding */ getType),
13128
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
13101
13129
  /* harmony export */ });
13102
13130
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
13103
13131
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -13115,8 +13143,9 @@ __webpack_require__.r(__webpack_exports__);
13115
13143
 
13116
13144
 
13117
13145
 
13118
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
13146
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13119
13147
 
13148
+ // Private Functions
13120
13149
  function toNewName(scale) {
13121
13150
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
13122
13151
  var capitalize = function (s) {
@@ -13186,7 +13215,13 @@ function getScaleTypeFromData(props, axis) {
13186
13215
 
13187
13216
 
13188
13217
  function getScaleFromName(name) {
13189
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
13218
+ if (validScale(name)) {
13219
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
13220
+
13221
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
13222
+ }
13223
+
13224
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
13190
13225
  }
13191
13226
  function getBaseScale(props, axis) {
13192
13227
  var scale = getScaleFromProps(props, axis);
@@ -13196,7 +13231,7 @@ function getBaseScale(props, axis) {
13196
13231
  }
13197
13232
 
13198
13233
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
13199
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
13234
+ return getScaleFromName(defaultScale);
13200
13235
  }
13201
13236
  function getDefaultScale() {
13202
13237
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -13209,7 +13244,7 @@ function getScaleFromProps(props, axis) {
13209
13244
  var scale = props.scale[axis] || props.scale;
13210
13245
 
13211
13246
  if (validScale(scale)) {
13212
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
13247
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
13213
13248
  }
13214
13249
 
13215
13250
  return undefined;
@@ -13244,6 +13279,7 @@ function getType(scale) {
13244
13279
  })[0];
13245
13280
  return scaleType ? scaleType.name : undefined;
13246
13281
  }
13282
+ //# sourceMappingURL=scale.js.map
13247
13283
 
13248
13284
  /***/ }),
13249
13285
 
@@ -13259,8 +13295,6 @@ __webpack_require__.r(__webpack_exports__);
13259
13295
  /* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
13260
13296
  /* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
13261
13297
  /* harmony export */ });
13262
- /* eslint-disable func-style */
13263
-
13264
13298
  /**
13265
13299
  * Given an object with CSS/SVG transform definitions, return the string value
13266
13300
  * for use with the `transform` CSS property or SVG attribute. Note that we
@@ -13317,6 +13351,7 @@ function getColorScale(name) {
13317
13351
  };
13318
13352
  return name ? scales[name] : scales.grayscale;
13319
13353
  }
13354
+ //# sourceMappingURL=style.js.map
13320
13355
 
13321
13356
  /***/ }),
13322
13357
 
@@ -13521,8 +13556,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
13521
13556
 
13522
13557
 
13523
13558
  var convertLengthToPixels = function (length, fontSize) {
13524
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
13525
- var value = length.match(/[0-9.,]+/);
13559
+ var _length$match;
13560
+
13561
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
13562
+ var value = Number(length.match(/[0-9.,]+/));
13526
13563
  var result;
13527
13564
 
13528
13565
  if (!attribute) {
@@ -13588,9 +13625,9 @@ var _approximateTextHeightInternal = function (text, style) {
13588
13625
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
13589
13626
  return total + lineStyle.lineHeight * height;
13590
13627
  }, 0);
13591
- }; // Stubbable implementation.
13592
-
13628
+ };
13593
13629
 
13630
+ // Stubbable implementation.
13594
13631
  var _approximateTextSizeInternal = {
13595
13632
  impl: function (text, style) {
13596
13633
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -13609,7 +13646,7 @@ var _approximateTextSizeInternal = {
13609
13646
  };
13610
13647
  /**
13611
13648
  * Predict text size by font params.
13612
- * @param {string} text Content for width calculation.
13649
+ * @param {string|string[]} text Content for width calculation.
13613
13650
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
13614
13651
  * @param {string} style.fontFamily Text fontFamily.
13615
13652
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -13622,6 +13659,7 @@ var _approximateTextSizeInternal = {
13622
13659
  var approximateTextSize = function (text, style) {
13623
13660
  return _approximateTextSizeInternal.impl(text, style);
13624
13661
  };
13662
+ //# sourceMappingURL=textsize.js.map
13625
13663
 
13626
13664
  /***/ }),
13627
13665
 
@@ -13652,6 +13690,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
13652
13690
  });
13653
13691
  TimerContext.displayName = "TimerContext";
13654
13692
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
13693
+ //# sourceMappingURL=timer-context.js.map
13655
13694
 
13656
13695
  /***/ }),
13657
13696
 
@@ -13677,11 +13716,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13677
13716
 
13678
13717
  var Timer = /*#__PURE__*/function () {
13679
13718
  function Timer() {
13719
+ var _this = this;
13720
+
13680
13721
  _classCallCheck(this, Timer);
13681
13722
 
13723
+ this.shouldAnimate = void 0;
13724
+ this.subscribers = void 0;
13725
+ this.activeSubscriptions = void 0;
13726
+ this.timer = void 0;
13727
+
13728
+ this.loop = function () {
13729
+ _this.subscribers.forEach(function (s) {
13730
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
13731
+ });
13732
+ };
13733
+
13682
13734
  this.shouldAnimate = true;
13683
13735
  this.subscribers = [];
13684
- this.loop = this.loop.bind(this);
13685
13736
  this.timer = null;
13686
13737
  this.activeSubscriptions = 0;
13687
13738
  }
@@ -13696,13 +13747,6 @@ var Timer = /*#__PURE__*/function () {
13696
13747
  value: function resumeAnimation() {
13697
13748
  this.shouldAnimate = true;
13698
13749
  }
13699
- }, {
13700
- key: "loop",
13701
- value: function loop() {
13702
- this.subscribers.forEach(function (s) {
13703
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
13704
- });
13705
- }
13706
13750
  }, {
13707
13751
  key: "start",
13708
13752
  value: function start() {
@@ -13749,6 +13793,7 @@ var Timer = /*#__PURE__*/function () {
13749
13793
  }();
13750
13794
 
13751
13795
 
13796
+ //# sourceMappingURL=timer.js.map
13752
13797
 
13753
13798
  /***/ }),
13754
13799
 
@@ -13839,7 +13884,7 @@ function getChildData(child) {
13839
13884
  }
13840
13885
  /**
13841
13886
  * If a parent component has animation enabled, calculate the transitions
13842
- * for any data of any child component that supports data transitions
13887
+ * for any data of any child component that supports data transitions.
13843
13888
  * Data transitions are defined as any two datasets where data nodes exist
13844
13889
  * in the first set and not the second, in the second and not the first,
13845
13890
  * or both.
@@ -13968,7 +14013,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
13968
14013
 
13969
14014
  if (exitingNodes) {
13970
14015
  // After the exit transition occurs, trigger the animations for
13971
- // nodes that are neither exiting or entering.
14016
+ // nodes that are neither exiting nor entering.
13972
14017
  animate.onEnd = cb;
13973
14018
  var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
13974
14019
 
@@ -14038,7 +14083,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
14038
14083
  * and its index in the parent's children array.
14039
14084
  *
14040
14085
  * In particular, this will include an `animate` object that is set appropriately
14041
- * so that each child will be synchoronized for each stage of a transition
14086
+ * so that each child will be synchronized for each stage of a transition
14042
14087
  * animation. It will also include a transformed `data` object, where each datum
14043
14088
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
14044
14089
  * functions.
@@ -14183,6 +14228,7 @@ function getTransitionPropsFactory(props, state, setState) {
14183
14228
  };
14184
14229
  };
14185
14230
  }
14231
+ //# sourceMappingURL=transitions.js.map
14186
14232
 
14187
14233
  /***/ }),
14188
14234
 
@@ -14221,7 +14267,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
14221
14267
 
14222
14268
  /*
14223
14269
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
14224
- The startsWidth array will contain the start of any accepted user-prop that
14270
+ The startsWidth array will contain the start of any accepted user-prop that
14225
14271
  starts with these characters.
14226
14272
  The exactMatch will contain a list of exact prop names that are accepted.
14227
14273
  */
@@ -14230,6 +14276,7 @@ var USER_PROPS_SAFELIST = {
14230
14276
  startsWith: ["data-", "aria-"],
14231
14277
  exactMatch: []
14232
14278
  };
14279
+
14233
14280
  /**
14234
14281
  * doesPropStartWith: Function that takes a prop's key and runs it against all
14235
14282
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -14238,7 +14285,6 @@ var USER_PROPS_SAFELIST = {
14238
14285
  * @returns {Boolean}: returns true if the key starts with an option or false if
14239
14286
  * otherwise
14240
14287
  */
14241
-
14242
14288
  var doesPropStartWith = function (key) {
14243
14289
  var startsWith = false;
14244
14290
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -14315,14 +14361,15 @@ var getSafeUserProps = function (props) {
14315
14361
  /**
14316
14362
  * Wraps a component and adds safe user props
14317
14363
  *
14318
- * @param {ReactNode} component: parent component
14364
+ * @param {ReactElement} component: parent component
14319
14365
  * @param {Object} props: props to be filtered
14320
- * @returns {ReactNode} modified component
14366
+ * @returns {ReactElement} modified component
14321
14367
  */
14322
14368
 
14323
14369
  var withSafeUserProps = function (component, props) {
14324
14370
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
14325
14371
  };
14372
+ //# sourceMappingURL=user-props.js.map
14326
14373
 
14327
14374
  /***/ }),
14328
14375