victory-voronoi 36.9.2-next.3 → 36.9.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.
package/CHANGELOG.md CHANGED
@@ -1,22 +1,16 @@
1
1
  # victory-voronoi
2
2
 
3
- ## 36.9.2-next.3
3
+ ## 36.9.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 7da790934: Replace lodash keys with native code
8
- - 7efd582cc: Replace lodash array utils with native code
9
- - f6f7cc515: Replace lodash isNil and isNan with native code
10
- - 6e34169a5: Replace lodash isFunction with native code
11
- - Updated dependencies [7da790934]
12
- - Updated dependencies [3f2da66e3]
13
- - Updated dependencies [c13308624]
14
- - Updated dependencies [65d02419f]
15
- - Updated dependencies [7efd582cc]
16
- - Updated dependencies [9cdaf2c08]
17
- - Updated dependencies [f6f7cc515]
18
- - Updated dependencies [6e34169a5]
19
- - victory-core@36.9.2-next.3
7
+ - Replace lodash keys with native code ([#2811](https://github.com/FormidableLabs/victory/pull/2811))
8
+
9
+ * Replace lodash array utils with native code ([#2810](https://github.com/FormidableLabs/victory/pull/2810))
10
+
11
+ - Replace lodash isNil and isNan with native code ([#2800](https://github.com/FormidableLabs/victory/pull/2800))
12
+
13
+ * Replace lodash isFunction with native code ([#2802](https://github.com/FormidableLabs/victory/pull/2802))
20
14
 
21
15
  ## 36.9.1
22
16
 
package/README.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  `victory-voronoi@^30.0.0` exports `VictoryVoronoi` and `Voronoi` components
4
4
 
5
- To view documentation for `VictoryVoronoi` please see https://formidable.com/open-source/victory/docs/victory-voronoi
5
+ To view documentation for `VictoryVoronoi` please see https://commerce.nearform.com/open-source/victory/docs/victory-voronoi
6
6
 
7
- To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs/victory-voronoi.md
7
+ To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs/victory-voronoi.md
@@ -2054,83 +2054,6 @@ function baseAssignValue(object, key, value) {
2054
2054
  module.exports = baseAssignValue;
2055
2055
 
2056
2056
 
2057
- /***/ }),
2058
-
2059
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js":
2060
- /*!*****************************************************************************************!*\
2061
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js ***!
2062
- \*****************************************************************************************/
2063
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2064
-
2065
- var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
2066
- arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
2067
- arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js"),
2068
- arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
2069
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
2070
- cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");
2071
-
2072
- /** Used as the size to enable large array optimizations. */
2073
- var LARGE_ARRAY_SIZE = 200;
2074
-
2075
- /**
2076
- * The base implementation of methods like `_.difference` without support
2077
- * for excluding multiple arrays or iteratee shorthands.
2078
- *
2079
- * @private
2080
- * @param {Array} array The array to inspect.
2081
- * @param {Array} values The values to exclude.
2082
- * @param {Function} [iteratee] The iteratee invoked per element.
2083
- * @param {Function} [comparator] The comparator invoked per element.
2084
- * @returns {Array} Returns the new array of filtered values.
2085
- */
2086
- function baseDifference(array, values, iteratee, comparator) {
2087
- var index = -1,
2088
- includes = arrayIncludes,
2089
- isCommon = true,
2090
- length = array.length,
2091
- result = [],
2092
- valuesLength = values.length;
2093
-
2094
- if (!length) {
2095
- return result;
2096
- }
2097
- if (iteratee) {
2098
- values = arrayMap(values, baseUnary(iteratee));
2099
- }
2100
- if (comparator) {
2101
- includes = arrayIncludesWith;
2102
- isCommon = false;
2103
- }
2104
- else if (values.length >= LARGE_ARRAY_SIZE) {
2105
- includes = cacheHas;
2106
- isCommon = false;
2107
- values = new SetCache(values);
2108
- }
2109
- outer:
2110
- while (++index < length) {
2111
- var value = array[index],
2112
- computed = iteratee == null ? value : iteratee(value);
2113
-
2114
- value = (comparator || value !== 0) ? value : 0;
2115
- if (isCommon && computed === computed) {
2116
- var valuesIndex = valuesLength;
2117
- while (valuesIndex--) {
2118
- if (values[valuesIndex] === computed) {
2119
- continue outer;
2120
- }
2121
- }
2122
- result.push(value);
2123
- }
2124
- else if (!includes(values, computed, comparator)) {
2125
- result.push(value);
2126
- }
2127
- }
2128
- return result;
2129
- }
2130
-
2131
- module.exports = baseDifference;
2132
-
2133
-
2134
2057
  /***/ }),
2135
2058
 
2136
2059
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
@@ -4619,49 +4542,6 @@ var defaults = baseRest(function(object, sources) {
4619
4542
  module.exports = defaults;
4620
4543
 
4621
4544
 
4622
- /***/ }),
4623
-
4624
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js":
4625
- /*!************************************************************************************!*\
4626
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js ***!
4627
- \************************************************************************************/
4628
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4629
-
4630
- var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
4631
- baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"),
4632
- baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
4633
- isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
4634
-
4635
- /**
4636
- * Creates an array of `array` values not included in the other given arrays
4637
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
4638
- * for equality comparisons. The order and references of result values are
4639
- * determined by the first array.
4640
- *
4641
- * **Note:** Unlike `_.pullAll`, this method returns a new array.
4642
- *
4643
- * @static
4644
- * @memberOf _
4645
- * @since 0.1.0
4646
- * @category Array
4647
- * @param {Array} array The array to inspect.
4648
- * @param {...Array} [values] The values to exclude.
4649
- * @returns {Array} Returns the new array of filtered values.
4650
- * @see _.without, _.xor
4651
- * @example
4652
- *
4653
- * _.difference([2, 1], [2, 3]);
4654
- * // => [1]
4655
- */
4656
- var difference = baseRest(function(array, values) {
4657
- return isArrayLikeObject(array)
4658
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
4659
- : [];
4660
- });
4661
-
4662
- module.exports = difference;
4663
-
4664
-
4665
4545
  /***/ }),
4666
4546
 
4667
4547
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":
@@ -4966,49 +4846,6 @@ function isArrayLike(value) {
4966
4846
  module.exports = isArrayLike;
4967
4847
 
4968
4848
 
4969
- /***/ }),
4970
-
4971
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js":
4972
- /*!*******************************************************************************************!*\
4973
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js ***!
4974
- \*******************************************************************************************/
4975
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4976
-
4977
- var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
4978
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
4979
-
4980
- /**
4981
- * This method is like `_.isArrayLike` except that it also checks if `value`
4982
- * is an object.
4983
- *
4984
- * @static
4985
- * @memberOf _
4986
- * @since 4.0.0
4987
- * @category Lang
4988
- * @param {*} value The value to check.
4989
- * @returns {boolean} Returns `true` if `value` is an array-like object,
4990
- * else `false`.
4991
- * @example
4992
- *
4993
- * _.isArrayLikeObject([1, 2, 3]);
4994
- * // => true
4995
- *
4996
- * _.isArrayLikeObject(document.body.children);
4997
- * // => true
4998
- *
4999
- * _.isArrayLikeObject('abc');
5000
- * // => false
5001
- *
5002
- * _.isArrayLikeObject(_.noop);
5003
- * // => false
5004
- */
5005
- function isArrayLikeObject(value) {
5006
- return isObjectLike(value) && isArrayLike(value);
5007
- }
5008
-
5009
- module.exports = isArrayLikeObject;
5010
-
5011
-
5012
4849
  /***/ }),
5013
4850
 
5014
4851
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":
@@ -8892,18 +8729,16 @@ __webpack_require__.r(__webpack_exports__);
8892
8729
  /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8893
8730
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8894
8731
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8895
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js");
8896
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_2__);
8897
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8898
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
8899
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
8900
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
8901
- /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
8902
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8903
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
8732
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8733
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
8734
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8735
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8736
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8737
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
8904
8738
  /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
8905
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8906
-
8739
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8740
+ /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
8741
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8907
8742
 
8908
8743
 
8909
8744
 
@@ -8944,13 +8779,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
8944
8779
 
8945
8780
 
8946
8781
 
8782
+
8947
8783
  // DISCLAIMER:
8948
8784
  // This file is not currently tested, and it is first on the list of files
8949
8785
  // to refactor in our current refactoring effort. Please do not make changes
8950
8786
  // to this file without manual testing and/or refactoring and adding tests.
8951
8787
 
8952
8788
  var datumHasXandY = function (datum) {
8953
- return !(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isNil)(datum._x) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isNil)(datum._y);
8789
+ return !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._x) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._y);
8954
8790
  }; // used for checking state changes. Expected components can be passed in via options
8955
8791
 
8956
8792
 
@@ -8978,11 +8814,11 @@ function addEvents(WrappedComponent) {
8978
8814
 
8979
8815
  _this = _super.call(this, props);
8980
8816
  _this.state = {};
8981
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_7__.getEventState.bind(_assertThisInitialized(_this));
8982
- _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_7__.getScopedEvents.bind(_assertThisInitialized(_this));
8817
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
8818
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
8983
8819
 
8984
8820
  _this.getEvents = function (p, target, eventKey) {
8985
- return _events__WEBPACK_IMPORTED_MODULE_7__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
8821
+ return _events__WEBPACK_IMPORTED_MODULE_6__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
8986
8822
  };
8987
8823
 
8988
8824
  _this.externalMutations = _this.getExternalMutations(_this.props);
@@ -9002,7 +8838,7 @@ function addEvents(WrappedComponent) {
9002
8838
  var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
9003
8839
 
9004
8840
  var animating = this.props.animating || this.props.animate;
9005
- var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations, this.externalMutations);
8841
+ var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(externalMutations, this.externalMutations);
9006
8842
 
9007
8843
  if (animating || newMutation) {
9008
8844
  this.cacheValues(this.getCalculatedValues(nextProps));
@@ -9013,12 +8849,12 @@ function addEvents(WrappedComponent) {
9013
8849
 
9014
8850
  var calculatedState = this.getStateChanges(nextProps);
9015
8851
 
9016
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.calculatedState, calculatedState)) {
8852
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.calculatedState, calculatedState)) {
9017
8853
  this.cacheValues(this.getCalculatedValues(nextProps));
9018
8854
  return true;
9019
8855
  }
9020
8856
 
9021
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
8857
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
9022
8858
  this.cacheValues(this.getCalculatedValues(nextProps));
9023
8859
  return true;
9024
8860
  }
@@ -9044,15 +8880,11 @@ function addEvents(WrappedComponent) {
9044
8880
  var calculatedState = this.getStateChanges(prevProps);
9045
8881
  this.calculatedState = calculatedState;
9046
8882
  var globalEventKeys = Object.keys(this.globalEvents);
9047
-
9048
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(this.prevGlobalEventKeys, globalEventKeys);
9049
-
8883
+ var removedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(this.prevGlobalEventKeys, globalEventKeys);
9050
8884
  removedGlobalEventKeys.forEach(function (key) {
9051
8885
  return _this3.removeGlobalListener(key);
9052
8886
  });
9053
-
9054
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(globalEventKeys, this.prevGlobalEventKeys);
9055
-
8887
+ var addedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(globalEventKeys, this.prevGlobalEventKeys);
9056
8888
  addedGlobalEventKeys.forEach(function (key) {
9057
8889
  return _this3.addGlobalListener(key);
9058
8890
  });
@@ -9074,16 +8906,16 @@ function addEvents(WrappedComponent) {
9074
8906
 
9075
8907
  var boundListener = function (event) {
9076
8908
  var listener = _this5.globalEvents[key];
9077
- return listener && listener(_events__WEBPACK_IMPORTED_MODULE_7__.emulateReactEvent(event));
8909
+ return listener && listener(_events__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
9078
8910
  };
9079
8911
 
9080
8912
  this.boundGlobalEvents[key] = boundListener;
9081
- window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), boundListener);
8913
+ window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
9082
8914
  }
9083
8915
  }, {
9084
8916
  key: "removeGlobalListener",
9085
8917
  value: function removeGlobalListener(key) {
9086
- window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
8918
+ window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
9087
8919
  } // compile all state changes from own and parent state. Order doesn't matter, as any state
9088
8920
  // state change should trigger a re-render
9089
8921
 
@@ -9097,7 +8929,7 @@ function addEvents(WrappedComponent) {
9097
8929
  }
9098
8930
 
9099
8931
  var getState = function (key, type) {
9100
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
8932
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
9101
8933
 
9102
8934
  return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
9103
8935
  };
@@ -9120,7 +8952,7 @@ function addEvents(WrappedComponent) {
9120
8952
  value: function applyExternalMutations(props, externalMutations) {
9121
8953
  if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
9122
8954
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
9123
- return (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo;
8955
+ return (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo;
9124
8956
  }, []);
9125
8957
  var compiledCallbacks = callbacks.length ? function () {
9126
8958
  callbacks.forEach(function (c) {
@@ -9135,8 +8967,8 @@ function addEvents(WrappedComponent) {
9135
8967
  value: function getCalculatedValues(props) {
9136
8968
  var sharedEvents = props.sharedEvents;
9137
8969
  var components = WrappedComponent.expectedComponents;
9138
- var componentEvents = _events__WEBPACK_IMPORTED_MODULE_7__.getComponentEvents(props, components);
9139
- var getSharedEventState = sharedEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction)(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
8970
+ var componentEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
8971
+ var getSharedEventState = sharedEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
9140
8972
  return undefined;
9141
8973
  };
9142
8974
  var baseProps = this.getBaseProps(props, getSharedEventState);
@@ -9159,7 +8991,7 @@ function addEvents(WrappedComponent) {
9159
8991
  value: function getExternalMutations(props) {
9160
8992
  var sharedEvents = props.sharedEvents,
9161
8993
  externalEventMutations = props.externalEventMutations;
9162
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_7__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8994
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
9163
8995
  }
9164
8996
  }, {
9165
8997
  key: "cacheValues",
@@ -9177,12 +9009,12 @@ function addEvents(WrappedComponent) {
9177
9009
  var sharedParentState = getSharedEventStateFunction("parent", "parent");
9178
9010
  var parentState = this.getEventState("parent", "parent");
9179
9011
 
9180
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, parentState, sharedParentState);
9012
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
9181
9013
 
9182
9014
  var parentPropsList = baseParentProps.parentControlledProps;
9183
9015
  var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
9184
9016
 
9185
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, parentProps, props);
9017
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
9186
9018
 
9187
9019
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
9188
9020
  }
@@ -9214,21 +9046,21 @@ function addEvents(WrappedComponent) {
9214
9046
  if (this.hasEvents) {
9215
9047
  var baseEvents = this.getEvents(this.props, type, key);
9216
9048
 
9217
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9049
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9218
9050
  index: index,
9219
9051
  key: id
9220
9052
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
9221
9053
  id: id
9222
9054
  });
9223
9055
 
9224
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, _events__WEBPACK_IMPORTED_MODULE_7__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
9056
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
9225
9057
 
9226
9058
  return Object.assign({}, componentProps, {
9227
9059
  events: events
9228
9060
  });
9229
9061
  }
9230
9062
 
9231
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9063
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9232
9064
  index: index,
9233
9065
  key: id
9234
9066
  }, currentProps, baseProps, {
@@ -9242,11 +9074,11 @@ function addEvents(WrappedComponent) {
9242
9074
  var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
9243
9075
 
9244
9076
  if (parentProps.events) {
9245
- this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_7__.getGlobalEvents(parentProps.events);
9246
- parentProps.events = _events__WEBPACK_IMPORTED_MODULE_7__.omitGlobalEvents(parentProps.events);
9077
+ this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
9078
+ parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
9247
9079
  }
9248
9080
 
9249
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(component, parentProps, children);
9081
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
9250
9082
  }
9251
9083
  }, {
9252
9084
  key: "animateComponent",
@@ -9255,10 +9087,10 @@ function addEvents(WrappedComponent) {
9255
9087
 
9256
9088
  var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
9257
9089
  var Comp = this.constructor;
9258
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
9090
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
9259
9091
  animate: props.animate,
9260
9092
  animationWhitelist: animationWhitelist
9261
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(Comp, props));
9093
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
9262
9094
  } // Used by `VictoryLine` and `VictoryArea`
9263
9095
 
9264
9096
  }, {
@@ -9278,13 +9110,13 @@ function addEvents(WrappedComponent) {
9278
9110
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
9279
9111
 
9280
9112
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
9281
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(labelComponent, labelProps));
9113
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
9282
9114
  }
9283
9115
 
9284
9116
  return newMemo;
9285
9117
  }, []);
9286
9118
  var dataProps = this.getComponentProps(dataComponent, "data", "all");
9287
- var children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
9119
+ var children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
9288
9120
  return this.renderContainer(groupComponent, children);
9289
9121
  }
9290
9122
  }, {
@@ -9300,7 +9132,7 @@ function addEvents(WrappedComponent) {
9300
9132
  var dataProps = _this9.getComponentProps(dataComponent, "data", index);
9301
9133
 
9302
9134
  if (shouldRenderDatum(dataProps.datum)) {
9303
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(dataComponent, dataProps));
9135
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
9304
9136
  }
9305
9137
 
9306
9138
  return validDataComponents;
@@ -9309,7 +9141,7 @@ function addEvents(WrappedComponent) {
9309
9141
  var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
9310
9142
 
9311
9143
  if (labelProps.text !== undefined && labelProps.text !== null) {
9312
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(labelComponent, labelProps);
9144
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
9313
9145
  }
9314
9146
 
9315
9147
  return undefined;
@@ -9340,6 +9172,7 @@ __webpack_require__.r(__webpack_exports__);
9340
9172
  /* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
9341
9173
  /* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
9342
9174
  /* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
9175
+ /* harmony export */ "difference": () => (/* binding */ difference),
9343
9176
  /* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
9344
9177
  /* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
9345
9178
  /* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
@@ -9381,6 +9214,22 @@ function containsOnlyStrings(collection) {
9381
9214
  return typeof value === "string";
9382
9215
  });
9383
9216
  }
9217
+ /**
9218
+ * Creates an array of array values not included in the other given arrays
9219
+ * @param a The array to inspect
9220
+ * @param b The values to exclude
9221
+ * @returns The new array of filtered values
9222
+ */
9223
+
9224
+ function difference(a, b) {
9225
+ if (a && b) {
9226
+ return a.filter(function (value) {
9227
+ return !b.includes(value);
9228
+ });
9229
+ }
9230
+
9231
+ return [];
9232
+ }
9384
9233
  function isArrayOfArrays(collection) {
9385
9234
  return isNonEmptyArray(collection) && collection.every(Array.isArray);
9386
9235
  }
@@ -10990,6 +10839,7 @@ __webpack_require__.r(__webpack_exports__);
10990
10839
  /* harmony export */ "getRadius": () => (/* binding */ getRadius),
10991
10840
  /* harmony export */ "getRange": () => (/* binding */ getRange),
10992
10841
  /* harmony export */ "getStyles": () => (/* binding */ getStyles),
10842
+ /* harmony export */ "invert": () => (/* binding */ invert),
10993
10843
  /* harmony export */ "isFunction": () => (/* binding */ isFunction),
10994
10844
  /* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
10995
10845
  /* harmony export */ "isNil": () => (/* binding */ isNil),
@@ -11040,6 +10890,18 @@ function getPolarRange(props, axis) {
11040
10890
  return [props.innerRadius || 0, getRadius(props)];
11041
10891
  } // Exported Functions
11042
10892
 
10893
+ /**
10894
+ * Creates an object composed of the inverted keys and values of object.
10895
+ * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
10896
+ */
10897
+
10898
+
10899
+ function invert(original) {
10900
+ return Object.entries(original).reduce(function (acc, current) {
10901
+ acc[current[1]] = current[0];
10902
+ return acc;
10903
+ }, {});
10904
+ }
11043
10905
  /**
11044
10906
  * creates an object with some keys excluded
11045
10907
  * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
@@ -11048,7 +10910,6 @@ function getPolarRange(props, axis) {
11048
10910
  * @returns {Object} new object with same properties as originalObject
11049
10911
  */
11050
10912
 
11051
-
11052
10913
  function omit(originalObject) {
11053
10914
  var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
11054
10915
  // code based on babel's _objectWithoutProperties