victory-shared-events 36.8.4 → 36.8.5

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,5 +1,11 @@
1
1
  # victory-shared-events
2
2
 
3
+ ## 36.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
8
+
3
9
  ## 36.8.4
4
10
 
5
11
  ### Patch Changes
@@ -34,18 +34,15 @@ __webpack_require__.r(__webpack_exports__);
34
34
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_4__);
35
35
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js");
36
36
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
37
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/assign.js");
38
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__);
39
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
40
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
41
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
42
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
43
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
44
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
45
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__);
46
- /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
47
- /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__);
48
-
37
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
38
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
39
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
40
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
41
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
42
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
43
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_7__);
44
+ /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
45
+ /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_8__);
49
46
 
50
47
 
51
48
 
@@ -115,8 +112,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
115
112
  _this.globalEvents = void 0;
116
113
  _this.prevGlobalEventKeys = void 0;
117
114
  _this.boundGlobalEvents = void 0;
118
- _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getScopedEvents.bind(_assertThisInitialized(_this));
119
- _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEventState.bind(_assertThisInitialized(_this));
115
+ _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__.getScopedEvents.bind(_assertThisInitialized(_this));
116
+ _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_9__.getEventState.bind(_assertThisInitialized(_this));
120
117
  _this.state = _this.state || {};
121
118
  _this.sharedEventsCache = {};
122
119
  _this.globalEvents = {};
@@ -129,7 +126,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
129
126
  _createClass(VictorySharedEvents, [{
130
127
  key: "shouldComponentUpdate",
131
128
  value: function shouldComponentUpdate(nextProps) {
132
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) {
129
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default()(this.props, nextProps)) {
133
130
  this.baseProps = this.getBaseProps(nextProps);
134
131
  var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
135
132
  this.applyExternalMutations(nextProps, externalMutations);
@@ -185,22 +182,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
185
182
 
186
183
  var boundListener = function (event) {
187
184
  var listener = _this5.globalEvents[key];
188
- return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_10__.emulateReactEvent(event));
185
+ return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_9__.emulateReactEvent(event));
189
186
  };
190
187
 
191
188
  this.boundGlobalEvents[key] = boundListener;
192
- window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), boundListener);
189
+ window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_9__.getGlobalEventNameFromKey(key), boundListener);
193
190
  }
194
191
  }, {
195
192
  key: "removeGlobalListener",
196
193
  value: function removeGlobalListener(key) {
197
- window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
194
+ window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_9__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
198
195
  }
199
196
  }, {
200
197
  key: "getAllEvents",
201
198
  value: function getAllEvents(props) {
202
199
  var components = ["container", "groupComponent"];
203
- var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getComponentEvents(props, components);
200
+ var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__.getComponentEvents(props, components);
204
201
 
205
202
  if (Array.isArray(componentEvents)) {
206
203
  return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
@@ -226,7 +223,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
226
223
  }, {
227
224
  key: "getExternalMutations",
228
225
  value: function getExternalMutations(props, baseProps) {
229
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_10__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps)) : undefined;
226
+ return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_9__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps)) : undefined;
230
227
  }
231
228
  }, {
232
229
  key: "cacheSharedEvents",
@@ -241,7 +238,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
241
238
  sharedEvents = _ref2[0],
242
239
  prevCacheValues = _ref2[1];
243
240
 
244
- if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(cacheValues, prevCacheValues)) {
241
+ if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default()(cacheValues, prevCacheValues)) {
245
242
  return sharedEvents;
246
243
  }
247
244
 
@@ -251,10 +248,10 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
251
248
  key: "getBaseProps",
252
249
  value: function getBaseProps(props) {
253
250
  var container = props.container;
254
- var children = react__WEBPACK_IMPORTED_MODULE_7___default().Children.toArray(this.props.children);
251
+ var children = react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(this.props.children);
255
252
  var childBaseProps = this.getBasePropsFromChildren(children);
256
253
  var parentBaseProps = container ? container.props : {};
257
- return lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, childBaseProps, {
254
+ return Object.assign({}, childBaseProps, {
258
255
  parent: parentBaseProps
259
256
  });
260
257
  }
@@ -271,7 +268,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
271
268
  return null;
272
269
  };
273
270
 
274
- var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_11__.reduceChildren(childComponents, iteratee);
271
+ var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_10__.reduceChildren(childComponents, iteratee);
275
272
  return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default()(baseProps);
276
273
  }
277
274
  }, {
@@ -285,9 +282,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
285
282
  var alterChildren = function (children, childNames) {
286
283
  return children.reduce(function (memo, child, index) {
287
284
  if (child.props.children) {
288
- var newChildren = react__WEBPACK_IMPORTED_MODULE_7___default().Children.toArray(child.props.children);
285
+ var newChildren = react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(child.props.children);
289
286
  var names = childNames.slice(index, index + newChildren.length);
290
- var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, child.props, alterChildren(newChildren, names));
287
+ var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(child, child.props, alterChildren(newChildren, names));
291
288
  return memo.concat(results);
292
289
  } else if (childNames[index] !== "parent" && child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) {
293
290
  var name = child.props.name || childNames[index];
@@ -298,7 +295,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
298
295
 
299
296
  return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
300
297
  });
301
- var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default()(_this6.state[name])];
298
+ var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_8___default()(_this6.state[name])];
302
299
  var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
303
300
  events: childEvents,
304
301
  // partially apply child name and baseProps,
@@ -313,7 +310,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
313
310
 
314
311
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
315
312
 
316
- return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
313
+ return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(child, Object.assign({
317
314
  key: "events-".concat(name),
318
315
  sharedEvents: sharedEvents,
319
316
  eventKey: eventKey,
@@ -327,7 +324,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
327
324
 
328
325
  var childNames = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps);
329
326
 
330
- var childComponents = react__WEBPACK_IMPORTED_MODULE_7___default().Children.toArray(props.children);
327
+ var childComponents = react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children);
331
328
  return alterChildren(childComponents, childNames);
332
329
  }
333
330
  }, {
@@ -350,7 +347,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
350
347
  var container = props.container || props.groupComponent;
351
348
  var role = container.type && container.type.role;
352
349
  var containerProps = container.props || {};
353
- var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEvents.bind(this);
350
+ var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__.getEvents.bind(this);
354
351
  var parentEvents = sharedEvents && boundGetEvents({
355
352
  sharedEvents: sharedEvents
356
353
  }, "parent");
@@ -359,13 +356,13 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
359
356
  children: children
360
357
  });
361
358
 
362
- var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_10__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
359
+ var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_9__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
363
360
 
364
- this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEvents(containerEvents);
365
- var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.omitGlobalEvents(containerEvents);
366
- return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
361
+ this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__.getGlobalEvents(containerEvents);
362
+ var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__.omitGlobalEvents(containerEvents);
363
+ return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(container, Object.assign({}, parentProps, {
367
364
  events: localEvents
368
- })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
365
+ })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(container, localEvents, children);
369
366
  }
370
367
  }, {
371
368
  key: "render",
@@ -376,19 +373,19 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
376
373
  return this.getContainer(this.props, this.baseProps, events);
377
374
  }
378
375
 
379
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(this.props.container, {
376
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(this.props.container, {
380
377
  children: this.props.children
381
378
  });
382
379
  }
383
380
  }]);
384
381
 
385
382
  return VictorySharedEvents;
386
- }((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
383
+ }((react__WEBPACK_IMPORTED_MODULE_6___default().Component));
387
384
  VictorySharedEvents.displayName = "VictorySharedEvents";
388
385
  VictorySharedEvents.role = "shared-event-wrapper";
389
- VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_12__["default"];
386
+ VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_11__["default"];
390
387
  VictorySharedEvents.defaultProps = {
391
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
388
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("g", null)
392
389
  };
393
390
 
394
391
  /***/ }),
@@ -1828,103 +1825,6 @@ function castPath(value, object) {
1828
1825
  module.exports = castPath;
1829
1826
 
1830
1827
 
1831
- /***/ }),
1832
-
1833
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js":
1834
- /*!*************************************************************************************!*\
1835
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js ***!
1836
- \*************************************************************************************/
1837
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1838
-
1839
- var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"),
1840
- baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js");
1841
-
1842
- /**
1843
- * Copies properties of `source` to `object`.
1844
- *
1845
- * @private
1846
- * @param {Object} source The object to copy properties from.
1847
- * @param {Array} props The property identifiers to copy.
1848
- * @param {Object} [object={}] The object to copy properties to.
1849
- * @param {Function} [customizer] The function to customize copied values.
1850
- * @returns {Object} Returns `object`.
1851
- */
1852
- function copyObject(source, props, object, customizer) {
1853
- var isNew = !object;
1854
- object || (object = {});
1855
-
1856
- var index = -1,
1857
- length = props.length;
1858
-
1859
- while (++index < length) {
1860
- var key = props[index];
1861
-
1862
- var newValue = customizer
1863
- ? customizer(object[key], source[key], key, object, source)
1864
- : undefined;
1865
-
1866
- if (newValue === undefined) {
1867
- newValue = source[key];
1868
- }
1869
- if (isNew) {
1870
- baseAssignValue(object, key, newValue);
1871
- } else {
1872
- assignValue(object, key, newValue);
1873
- }
1874
- }
1875
- return object;
1876
- }
1877
-
1878
- module.exports = copyObject;
1879
-
1880
-
1881
- /***/ }),
1882
-
1883
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js":
1884
- /*!*****************************************************************************************!*\
1885
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js ***!
1886
- \*****************************************************************************************/
1887
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1888
-
1889
- var baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
1890
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js");
1891
-
1892
- /**
1893
- * Creates a function like `_.assign`.
1894
- *
1895
- * @private
1896
- * @param {Function} assigner The function to assign values.
1897
- * @returns {Function} Returns the new assigner function.
1898
- */
1899
- function createAssigner(assigner) {
1900
- return baseRest(function(object, sources) {
1901
- var index = -1,
1902
- length = sources.length,
1903
- customizer = length > 1 ? sources[length - 1] : undefined,
1904
- guard = length > 2 ? sources[2] : undefined;
1905
-
1906
- customizer = (assigner.length > 3 && typeof customizer == 'function')
1907
- ? (length--, customizer)
1908
- : undefined;
1909
-
1910
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
1911
- customizer = length < 3 ? undefined : customizer;
1912
- length = 1;
1913
- }
1914
- object = Object(object);
1915
- while (++index < length) {
1916
- var source = sources[index];
1917
- if (source) {
1918
- assigner(object, source, index, customizer);
1919
- }
1920
- }
1921
- return object;
1922
- });
1923
- }
1924
-
1925
- module.exports = createAssigner;
1926
-
1927
-
1928
1828
  /***/ }),
1929
1829
 
1930
1830
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
@@ -3065,74 +2965,6 @@ function toKey(value) {
3065
2965
  module.exports = toKey;
3066
2966
 
3067
2967
 
3068
- /***/ }),
3069
-
3070
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/assign.js":
3071
- /*!********************************************************************************!*\
3072
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/assign.js ***!
3073
- \********************************************************************************/
3074
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3075
-
3076
- var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"),
3077
- copyObject = __webpack_require__(/*! ./_copyObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"),
3078
- createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"),
3079
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
3080
- isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"),
3081
- keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
3082
-
3083
- /** Used for built-in method references. */
3084
- var objectProto = Object.prototype;
3085
-
3086
- /** Used to check objects for own properties. */
3087
- var hasOwnProperty = objectProto.hasOwnProperty;
3088
-
3089
- /**
3090
- * Assigns own enumerable string keyed properties of source objects to the
3091
- * destination object. Source objects are applied from left to right.
3092
- * Subsequent sources overwrite property assignments of previous sources.
3093
- *
3094
- * **Note:** This method mutates `object` and is loosely based on
3095
- * [`Object.assign`](https://mdn.io/Object/assign).
3096
- *
3097
- * @static
3098
- * @memberOf _
3099
- * @since 0.10.0
3100
- * @category Object
3101
- * @param {Object} object The destination object.
3102
- * @param {...Object} [sources] The source objects.
3103
- * @returns {Object} Returns `object`.
3104
- * @see _.assignIn
3105
- * @example
3106
- *
3107
- * function Foo() {
3108
- * this.a = 1;
3109
- * }
3110
- *
3111
- * function Bar() {
3112
- * this.c = 3;
3113
- * }
3114
- *
3115
- * Foo.prototype.b = 2;
3116
- * Bar.prototype.d = 4;
3117
- *
3118
- * _.assign({ 'a': 0 }, new Foo, new Bar);
3119
- * // => { 'a': 1, 'c': 3 }
3120
- */
3121
- var assign = createAssigner(function(object, source) {
3122
- if (isPrototype(source) || isArrayLike(source)) {
3123
- copyObject(source, keys(source), object);
3124
- return;
3125
- }
3126
- for (var key in source) {
3127
- if (hasOwnProperty.call(source, key)) {
3128
- assignValue(object, key, source[key]);
3129
- }
3130
- }
3131
- });
3132
-
3133
- module.exports = assign;
3134
-
3135
-
3136
2968
  /***/ }),
3137
2969
 
3138
2970
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js":
@@ -4562,9 +4394,6 @@ __webpack_require__.r(__webpack_exports__);
4562
4394
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__);
4563
4395
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
4564
4396
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7__);
4565
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/assign.js");
4566
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
4567
-
4568
4397
 
4569
4398
 
4570
4399
 
@@ -4632,7 +4461,7 @@ getScopedEvents) {
4632
4461
 
4633
4462
  var selectedEvents = getSelectedEvents();
4634
4463
  return Array.isArray(selectedEvents) && selectedEvents.reduce(function (memo, event) {
4635
- return event ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, event.eventHandlers) : memo;
4464
+ return event ? Object.assign(memo, event.eventHandlers) : memo;
4636
4465
  }, {});
4637
4466
  };
4638
4467
  /* Returns all events from props and defaultEvents from components. Events handlers
@@ -4665,7 +4494,7 @@ getScopedEvents) {
4665
4494
 
4666
4495
  var getSharedEvents = props.sharedEvents.getEvents;
4667
4496
  var sharedEvents = props.sharedEvents.events && getSharedEvents(getEventsByTarget(props.sharedEvents.events), target);
4668
- return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, sharedEvents, ownEvents);
4497
+ return Object.assign({}, sharedEvents, ownEvents);
4669
4498
  }
4670
4499
  /* Returns a modified events object where each event handler is replaced by a new
4671
4500
  * function that calls the original handler and then calls setState with the return
@@ -4734,7 +4563,7 @@ function getScopedEvents(events, namespace, childType, baseProps) {
4734
4563
  key: key,
4735
4564
  target: target
4736
4565
  }, "state");
4737
- var mutatedProps = eventReturn.mutation(lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, mutationTargetProps, mutationTargetState), newBaseProps);
4566
+ var mutatedProps = eventReturn.mutation(Object.assign({}, mutationTargetProps, mutationTargetState), newBaseProps);
4738
4567
  var childState = baseState[childName] || {};
4739
4568
 
4740
4569
  var filterState = function (state) {
@@ -4750,35 +4579,35 @@ function getScopedEvents(events, namespace, childType, baseProps) {
4750
4579
  };
4751
4580
 
4752
4581
  var extendState = function (state) {
4753
- return target === "parent" ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state, _defineProperty({}, key, lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state[key], mutatedProps))) : lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state, _defineProperty({}, key, lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state[key], _defineProperty({}, target, mutatedProps))));
4582
+ return target === "parent" ? Object.assign(state, _defineProperty({}, key, Object.assign(state[key] || {}, mutatedProps))) : Object.assign(state, _defineProperty({}, key, Object.assign(state[key] || {}, _defineProperty({}, target, mutatedProps))));
4754
4583
  };
4755
4584
 
4756
4585
  var updateState = function (state) {
4757
4586
  return mutatedProps ? extendState(state) : filterState(state);
4758
4587
  };
4759
4588
 
4760
- return childName !== undefined && childName !== null ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(baseState, _defineProperty({}, childName, updateState(childState))) : updateState(baseState);
4589
+ return childName !== undefined && childName !== null ? Object.assign(baseState, _defineProperty({}, childName, updateState(childState))) : updateState(baseState);
4761
4590
  }; // returns entire mutated state for a given childName
4762
4591
 
4763
4592
 
4764
4593
  var getReturnByChild = function (childName) {
4765
4594
  var mutationKeys = getKeys(childName);
4766
4595
  return Array.isArray(mutationKeys) ? mutationKeys.reduce(function (memo, key) {
4767
- return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, getMutationObject(key, childName));
4596
+ return Object.assign(memo, getMutationObject(key, childName));
4768
4597
  }, {}) : getMutationObject(mutationKeys, childName);
4769
4598
  }; // returns an entire mutated state for all children
4770
4599
 
4771
4600
 
4772
4601
  var allChildNames = childNames === "all" ? lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(newBaseProps), "parent") : childNames;
4773
4602
  return Array.isArray(allChildNames) ? allChildNames.reduce(function (memo, childName) {
4774
- return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, getReturnByChild(childName));
4603
+ return Object.assign(memo, getReturnByChild(childName));
4775
4604
  }, {}) : getReturnByChild(allChildNames);
4776
4605
  }; // Parses an array of event returns into a single state mutation
4777
4606
 
4778
4607
 
4779
4608
  var parseEventReturn = function (eventReturn, eventKey) {
4780
4609
  return Array.isArray(eventReturn) ? eventReturn.reduce(function (memo, props) {
4781
- return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, parseEvent(props, eventKey));
4610
+ return Object.assign({}, memo, parseEvent(props, eventKey));
4782
4611
  }, {}) : parseEvent(eventReturn, eventKey);
4783
4612
  };
4784
4613
 
@@ -4906,7 +4735,7 @@ function getExternalMutations(mutations) {
4906
4735
  target: "parent"
4907
4736
  };
4908
4737
  var mutation = getExternalMutation(mutations, keyProps, keyState, identifier);
4909
- memo[eventKey] = mutation !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, keyState, mutation) : keyState;
4738
+ memo[eventKey] = mutation !== undefined ? Object.assign({}, keyState, mutation) : keyState;
4910
4739
  } else {
4911
4740
  // use keys from both state and props so that elements not intially included in baseProps
4912
4741
  // will be used. (i.e. labels)
@@ -4919,7 +4748,7 @@ function getExternalMutations(mutations) {
4919
4748
  childName: childName
4920
4749
  };
4921
4750
  var mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
4922
- m[target] = mutation !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, keyState[target], mutation) : keyState[target];
4751
+ m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
4923
4752
  return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(m, function (v) {
4924
4753
  return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v);
4925
4754
  });
@@ -4987,8 +4816,8 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
4987
4816
  var mutationFunction = curr && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(curr.mutation) ? curr.mutation : function () {
4988
4817
  return undefined;
4989
4818
  };
4990
- var currentMutation = mutationFunction(lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, baseProps, baseState));
4991
- return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, currentMutation);
4819
+ var currentMutation = mutationFunction(Object.assign({}, baseProps, baseState));
4820
+ return Object.assign({}, memo, currentMutation);
4992
4821
  }, {});
4993
4822
  }
4994
4823
  /* Returns an array of defaultEvents from sub-components of a given component.
@@ -5019,7 +4848,7 @@ var omitGlobalEvents = function (events) {
5019
4848
  });
5020
4849
  };
5021
4850
  var emulateReactEvent = function (event) {
5022
- return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(event, {
4851
+ return Object.assign(event, {
5023
4852
  nativeEvent: event
5024
4853
  });
5025
4854
  };
@@ -5052,24 +4881,22 @@ __webpack_require__.r(__webpack_exports__);
5052
4881
  /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
5053
4882
  /* harmony export */ "omit": () => (/* binding */ omit),
5054
4883
  /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
4884
+ /* harmony export */ "range": () => (/* binding */ range),
5055
4885
  /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
5056
4886
  /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
5057
4887
  /* harmony export */ });
5058
4888
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
5059
4889
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
5060
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/assign.js");
5061
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
5062
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
5063
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
5064
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
5065
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_3__);
5066
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js");
5067
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
5068
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
5069
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_5__);
5070
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
5071
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
5072
-
4890
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
4891
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
4892
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
4893
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
4894
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js");
4895
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_3__);
4896
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
4897
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_4__);
4898
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
4899
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
5073
4900
 
5074
4901
 
5075
4902
 
@@ -5152,7 +4979,7 @@ function getPoint(datum) {
5152
4979
  y: exists(_voronoiY) ? _voronoiY : defaultY,
5153
4980
  y0: exists(_y0) ? _y0 : _y
5154
4981
  };
5155
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, point, datum);
4982
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, point, datum);
5156
4983
  }
5157
4984
  function scalePoint(props, datum) {
5158
4985
  var scale = props.scale,
@@ -5202,9 +5029,9 @@ function getDefaultStyles(props, role) {
5202
5029
 
5203
5030
  var tooltipStyle = theme.tooltip && theme.tooltip.style || {};
5204
5031
 
5205
- var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, tooltipStyle, defaultStyles.labels);
5032
+ var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, tooltipStyle, defaultStyles.labels);
5206
5033
 
5207
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, {
5034
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, {
5208
5035
  labels: labelStyle
5209
5036
  }, defaultStyles);
5210
5037
  }
@@ -5213,7 +5040,7 @@ function getStyles(style, defaultStyles) {
5213
5040
  var height = "100%";
5214
5041
 
5215
5042
  if (!style) {
5216
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({
5043
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({
5217
5044
  parent: {
5218
5045
  height: height,
5219
5046
  width: width
@@ -5228,16 +5055,16 @@ function getStyles(style, defaultStyles) {
5228
5055
  var defaultLabels = defaultStyles && defaultStyles.labels || {};
5229
5056
  var defaultData = defaultStyles && defaultStyles.data || {};
5230
5057
  return {
5231
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, parent, defaultParent, {
5058
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, parent, defaultParent, {
5232
5059
  width: width,
5233
5060
  height: height
5234
5061
  }),
5235
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, labels, defaultLabels),
5236
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, data, defaultData)
5062
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, labels, defaultLabels),
5063
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, data, defaultData)
5237
5064
  };
5238
5065
  }
5239
5066
  function evaluateProp(prop, props) {
5240
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(prop) ? prop(props) : prop;
5067
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(prop) ? prop(props) : prop;
5241
5068
  }
5242
5069
  function evaluateStyle(style, props) {
5243
5070
  if (props.disableInlineStyles) {
@@ -5245,7 +5072,7 @@ function evaluateStyle(style, props) {
5245
5072
  }
5246
5073
 
5247
5074
  if (!style || !lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(style).some(function (value) {
5248
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(style[value]);
5075
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(style[value]);
5249
5076
  })) {
5250
5077
  return style;
5251
5078
  }
@@ -5302,7 +5129,7 @@ function getRange(props, axis) {
5302
5129
  function createAccessor(key) {
5303
5130
  // creates a data accessor function
5304
5131
  // given a property key, path, array index, or null for identity.
5305
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(key)) {
5132
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(key)) {
5306
5133
  return key;
5307
5134
  } else if (key === null || key === undefined) {
5308
5135
  // null/undefined means "return the data item itself"
@@ -5312,7 +5139,7 @@ function createAccessor(key) {
5312
5139
  } // otherwise, assume it is an array index, property key or path (_.property handles all three)
5313
5140
 
5314
5141
 
5315
- return lodash_property__WEBPACK_IMPORTED_MODULE_3___default()(key);
5142
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
5316
5143
  }
5317
5144
  function modifyProps(props, fallbackProps, role) {
5318
5145
  var theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -5321,7 +5148,7 @@ function modifyProps(props, fallbackProps, role) {
5321
5148
  var defaultObject = horizontal === undefined ? {} : {
5322
5149
  horizontal: horizontal
5323
5150
  };
5324
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()(defaultObject, props, themeProps, fallbackProps);
5151
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()(defaultObject, props, themeProps, fallbackProps);
5325
5152
  }
5326
5153
  /**
5327
5154
  * Returns the given axis or the opposite axis when horizontal
@@ -5334,6 +5161,38 @@ function getCurrentAxis(axis, horizontal) {
5334
5161
  var otherAxis = axis === "x" ? "y" : "x";
5335
5162
  return horizontal ? otherAxis : axis;
5336
5163
  }
5164
+ /**
5165
+ * Creates an array of numbers (positive and/or negative) progressing
5166
+ * from start up to, but not including, end.
5167
+ * A step of -1 is used if a negative start is specified without an end or step.
5168
+ * If end is not specified, it's set to start with start then set to 0.
5169
+ *
5170
+ * @param start The length of the array to create, or the start value
5171
+ * @param end [The end value] If this is defined, start is the start value
5172
+ * @returns An array of the given length
5173
+ */
5174
+
5175
+ function range(start, end, increment) {
5176
+ // when the end index is not given, start from 0
5177
+ var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
5178
+
5179
+ var endIndex = end ? end : start; // ensure endIndex is not a falsy value
5180
+
5181
+ if (!endIndex) endIndex = 0;
5182
+ var k = endIndex - startIndex; // the value range
5183
+
5184
+ var length = Math.abs(k); // the length of the range
5185
+
5186
+ var sign = k / length || 1; // the sign of the range (negative or positive)
5187
+
5188
+ var inc = increment || 1; // the step size of each increment
5189
+ // normalize the array length when dealing with floating point values
5190
+
5191
+ var arrayLength = Math.max(Math.ceil(length / inc), 0);
5192
+ return Array.from(Array(arrayLength), function (_, i) {
5193
+ return startIndex + i * sign * inc;
5194
+ });
5195
+ }
5337
5196
  /**
5338
5197
  * @param {Array} children: an array of child components
5339
5198
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"
@@ -5363,12 +5222,10 @@ function reduceChildren(children, iteratee) {
5363
5222
  var childName = child.props.name || "".concat(childRole, "-").concat(names[index]);
5364
5223
 
5365
5224
  if (child.props && child.props.children) {
5366
- var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(parentProps, sharedProps));
5367
-
5368
- var nestedChildren = child.type && child.type.role === "stack" && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(child.props.children).map(function (c) {
5369
- var nestedChildProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(childProps, sharedProps));
5370
-
5371
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(c, nestedChildProps);
5225
+ var childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(parentProps, sharedProps));
5226
+ var nestedChildren = child.type && child.type.role === "stack" && lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_5___default().Children.toArray(child.props.children).map(function (c) {
5227
+ var nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(childProps, sharedProps));
5228
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().cloneElement(c, nestedChildProps);
5372
5229
  });
5373
5230
 
5374
5231
  var _childNames = nestedChildren.map(function (c, i) {
@@ -5389,7 +5246,7 @@ function reduceChildren(children, iteratee) {
5389
5246
  }, initialMemo);
5390
5247
  };
5391
5248
 
5392
- var validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_6__.isValidElement);
5249
+ var validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_5__.isValidElement);
5393
5250
  var childNames = validChildren.map(function (c, i) {
5394
5251
  return i;
5395
5252
  });
@@ -5414,11 +5271,11 @@ function isHorizontal(props) {
5414
5271
  return memo || childProps.horizontal;
5415
5272
  }
5416
5273
 
5417
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(childProps.children));
5274
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_5___default().Children.toArray(childProps.children));
5418
5275
  }, false);
5419
5276
  };
5420
5277
 
5421
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
5278
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_5___default().Children.toArray(props.children));
5422
5279
  }
5423
5280
 
5424
5281
  /***/ }),
@@ -1,2 +1,2 @@
1
- !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.VictorySharedEvents=r(require("react")):t.VictorySharedEvents=r(t.React)}(self,(t=>(()=>{var r={2516:(t,r)=>{function e(t,r){var e=[],n=[];return null==r&&(r=function(t,r){return e[0]===r?"[Circular ~]":"[Circular ~."+n.slice(0,e.indexOf(r)).join(".")+"]"}),function(o,i){if(e.length>0){var u=e.indexOf(this);~u?e.splice(u+1):e.push(this),~u?n.splice(u,1/0,o):n.push(o),~e.indexOf(i)&&(i=r.call(this,o,i))}else e.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,r,n,o){return JSON.stringify(t,e(r,o),n)}).getSerialize=e},3273:(t,r,e)=>{var n=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},8708:(t,r,e)=>{var n=e(1171),o=e(7838),i=e(4859),u=e(4073),a=e(8541);function c(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},2596:(t,r,e)=>{var n=e(2373).Symbol;t.exports=n},6082:t=>{t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},5510:(t,r,e)=>{var n=e(6123);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},9955:t=>{t.exports=function(t,r,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(r,t[n]))return!0;return!1}},8644:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},9559:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},1634:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},4132:(t,r,e)=>{var n=e(8347),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var u=t[r];i.call(t,r)&&o(u,e)&&(void 0!==e||r in t)||n(t,r,e)}},3162:(t,r,e)=>{var n=e(788);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},8347:(t,r,e)=>{var n=e(5525);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},1377:(t,r,e)=>{var n=e(3273),o=e(5510),i=e(9955),u=e(8644),a=e(9110),c=e(9914);t.exports=function(t,r,e,s){var l=-1,f=o,p=!0,v=t.length,h=[],y=r.length;if(!v)return h;e&&(r=u(r,a(e))),s?(f=i,p=!1):r.length>=200&&(f=c,p=!1,r=new n(r));t:for(;++l<v;){var d=t[l],b=null==e?d:e(d);if(d=s||0!==d?d:0,p&&b==b){for(var g=y;g--;)if(r[g]===b)continue t;h.push(d)}else f(r,b,s)||h.push(d)}return h}},6457:(t,r,e)=>{var n=e(9559),o=e(3608);t.exports=function t(r,e,i,u,a){var c=-1,s=r.length;for(i||(i=o),a||(a=[]);++c<s;){var l=r[c];e>0&&i(l)?e>1?t(l,e-1,i,u,a):n(a,l):u||(a[a.length]=l)}return a}},4432:(t,r,e)=>{var n=e(9026),o=e(3110);t.exports=function(t,r){for(var e=0,i=(r=n(r,t)).length;null!=t&&e<i;)t=t[o(r[e++])];return e&&e==i?t:void 0}},563:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},6776:t=>{t.exports=function(t,r){return null!=t&&r in Object(t)}},6123:t=>{t.exports=function(t,r,e){for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}},9070:(t,r,e)=>{var n=e(7028),o=e(3474);t.exports=function t(r,e,i,u,a){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,u,t,a))}},7028:(t,r,e)=>{var n=e(8708),o=e(8705),i=e(2813),u=e(6682),a=e(9667),c=e(163),s=e(4801),l=e(4289),f="[object Arguments]",p="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=c(t),m=c(r),x=g?p:a(t),E=m?p:a(r),w=(x=x==f?v:x)==v,A=(E=E==f?v:E)==v,j=x==E;if(j&&s(t)){if(!s(r))return!1;g=!0,w=!1}if(j&&!w)return b||(b=new n),g||l(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var O=w&&h.call(t,"__wrapped__"),_=A&&h.call(r,"__wrapped__");if(O||_){var S=O?t.value():t,k=_?r.value():r;return b||(b=new n),d(S,k,e,y,b)}}return!!j&&(b||(b=new n),u(t,r,e,y,d,b))}},9548:(t,r,e)=>{var n=e(8708),o=e(9070);t.exports=function(t,r,e,i){var u=e.length,a=u,c=!i;if(null==t)return!a;for(t=Object(t);u--;){var s=e[u];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<a;){var l=(s=e[u])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var v=new n;if(i)var h=i(f,p,l,t,r,v);if(!(void 0===h?o(p,f,3,i,v):h))return!1}}return!0}},3472:(t,r,e)=>{var n=e(758),o=e(5223),i=e(5346),u=e(163),a=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):a(t)}},7190:(t,r,e)=>{var n=e(5125)(Object.keys,Object);t.exports=n},758:(t,r,e)=>{var n=e(9548),o=e(597),i=e(6878);t.exports=function(t){var r=o(t);return 1==r.length&&r[0][2]?i(r[0][0],r[0][1]):function(e){return e===t||n(e,t,r)}}},5223:(t,r,e)=>{var n=e(9070),o=e(9201),i=e(5066),u=e(726),a=e(5385),c=e(6878),s=e(3110);t.exports=function(t,r){return u(t)&&a(r)?c(s(t),r):function(e){var u=o(e,t);return void 0===u&&u===r?i(e,t):n(r,u,3)}}},5436:(t,r,e)=>{var n=e(6371),o=e(5066);t.exports=function(t,r){return n(t,r,(function(r,e){return o(t,e)}))}},6371:(t,r,e)=>{var n=e(4432),o=e(6539),i=e(9026);t.exports=function(t,r,e){for(var u=-1,a=r.length,c={};++u<a;){var s=r[u],l=n(t,s);e(l,s)&&o(c,i(s,t),l)}return c}},1600:t=>{t.exports=function(t){return function(r){return null==r?void 0:r[t]}}},3301:(t,r,e)=>{var n=e(4432);t.exports=function(t){return function(r){return n(r,t)}}},6317:(t,r,e)=>{var n=e(5346),o=e(4280),i=e(201);t.exports=function(t,r){return i(o(t,r,n),t+"")}},6539:(t,r,e)=>{var n=e(4132),o=e(9026),i=e(9099),u=e(7709),a=e(3110);t.exports=function(t,r,e,c){if(!u(t))return t;for(var s=-1,l=(r=o(r,t)).length,f=l-1,p=t;null!=p&&++s<l;){var v=a(r[s]),h=e;if("__proto__"===v||"constructor"===v||"prototype"===v)return t;if(s!=f){var y=p[v];void 0===(h=c?c(y,v,p):void 0)&&(h=u(y)?y:i(r[s+1])?[]:{})}n(p,v,h),p=p[v]}return t}},6316:(t,r,e)=>{var n=e(2596),o=e(8644),i=e(163),u=e(1995),a=n?n.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(u(r))return c?c.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},9110:t=>{t.exports=function(t){return function(r){return t(r)}}},946:(t,r,e)=>{var n=e(3273),o=e(5510),i=e(9955),u=e(9914),a=e(6602),c=e(6226);t.exports=function(t,r,e){var s=-1,l=o,f=t.length,p=!0,v=[],h=v;if(e)p=!1,l=i;else if(f>=200){var y=r?null:a(t);if(y)return c(y);p=!1,l=u,h=new n}else h=r?[]:v;t:for(;++s<f;){var d=t[s],b=r?r(d):d;if(d=e||0!==d?d:0,p&&b==b){for(var g=h.length;g--;)if(h[g]===b)continue t;r&&h.push(b),v.push(d)}else l(h,b,e)||(h!==v&&h.push(b),v.push(d))}return v}},9914:(t,r,e)=>{var n=e(6123);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},9026:(t,r,e)=>{var n=e(163),o=e(726),i=e(7801),u=e(7010);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(u(t))}},9021:(t,r,e)=>{var n=e(4132),o=e(8347);t.exports=function(t,r,e,i){var u=!e;e||(e={});for(var a=-1,c=r.length;++a<c;){var s=r[a],l=i?i(e[s],t[s],s,e,t):void 0;void 0===l&&(l=t[s]),u?o(e,s,l):n(e,s,l)}return e}},6092:(t,r,e)=>{var n=e(6317),o=e(8286);t.exports=function(t){return n((function(r,e){var n=-1,i=e.length,u=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&o(e[0],e[1],a)&&(u=i<3?void 0:u,i=1),r=Object(r);++n<i;){var c=e[n];c&&t(r,c,n,u)}return r}))}},6602:t=>{t.exports=function(){}},5525:(t,r,e)=>{var n=e(3743),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,r,e)=>{var n=e(3273),o=e(1634),i=e(9914);t.exports=function(t,r,e,u,a,c){var s=1&e,l=t.length,f=r.length;if(l!=f&&!(s&&f>l))return!1;var p=c.get(t),v=c.get(r);if(p&&v)return p==r&&v==t;var h=-1,y=!0,d=2&e?new n:void 0;for(c.set(t,r),c.set(r,t);++h<l;){var b=t[h],g=r[h];if(u)var m=s?u(g,b,h,r,t,c):u(b,g,h,t,r,c);if(void 0!==m){if(m)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||a(b,t,e,u,c)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!a(b,g,e,u,c)){y=!1;break}}return c.delete(t),c.delete(r),y}},2813:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},6682:(t,r,e)=>{var n=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,u,a){var c=1&e,s=n(t),l=s.length;if(l!=n(r).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in r:o.call(r,p)))return!1}var v=a.get(t),h=a.get(r);if(v&&h)return v==r&&h==t;var y=!0;a.set(t,r),a.set(r,t);for(var d=c;++f<l;){var b=t[p=s[f]],g=r[p];if(i)var m=c?i(g,b,p,r,t,a):i(b,g,p,t,r,a);if(!(void 0===m?b===g||u(b,g,e,i,a):m)){y=!1;break}d||(d="constructor"==p)}if(y&&!d){var x=t.constructor,E=r.constructor;x==E||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(y=!1)}return a.delete(t),a.delete(r),y}},5557:(t,r,e)=>{var n=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(t,void 0,n),t+"")}},2117:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},8143:(t,r,e)=>{var n=e(5125)(Object.keys,Object);t.exports=n},7271:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},597:(t,r,e)=>{var n=e(5385),o=e(7747);t.exports=function(t){for(var r=o(t),e=r.length;e--;){var i=r[e],u=t[i];r[e]=[i,u,n(u)]}return r}},3743:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},9667:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},3096:(t,r,e)=>{var n=e(9026),o=e(5075),i=e(163),u=e(9099),a=e(8454),c=e(3110);t.exports=function(t,r,e){for(var s=-1,l=(r=n(r,t)).length,f=!1;++s<l;){var p=c(r[s]);if(!(f=null!=t&&e(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&a(l)&&u(p,l)&&(i(t)||o(t))}},3608:(t,r,e)=>{var n=e(2596),o=e(5075),i=e(163),u=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(u&&t&&t[u])}},9099:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},8286:t=>{t.exports=function(){return!1}},726:(t,r,e)=>{var n=e(163),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=r&&t in Object(r)}},5782:t=>{t.exports=function(){return!1}},5385:(t,r,e)=>{var n=e(7709);t.exports=function(t){return t==t&&!n(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,r,e)=>{var n=e(3162),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0||(e==r.length-1?r.pop():o.call(r,e,1),--this.size,0))}},4859:(t,r,e)=>{var n=e(3162);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},4073:(t,r,e)=>{var n=e(3162);t.exports=function(t){return n(this.__data__,t)>-1}},8541:(t,r,e)=>{var n=e(3162);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},6878:t=>{t.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},2453:t=>{t.exports=function(t){return t}},5125:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},4280:(t,r,e)=>{var n=e(6082),o=Math.max;t.exports=function(t,r,e){return r=o(void 0===r?t.length-1:r,0),function(){for(var i=arguments,u=-1,a=o(i.length-r,0),c=Array(a);++u<a;)c[u]=i[r+u];u=-1;for(var s=Array(r+1);++u<r;)s[u]=i[u];return s[r]=e(c),n(t,this,s)}}},2373:(t,r,e)=>{var n=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,r,e)=>{var n=e(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=n((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(o,(function(t,e,n,o){r.push(n?o.replace(i,"$1"):e||t)})),r}));t.exports=u},3110:(t,r,e)=>{var n=e(1995);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},156:(t,r,e)=>{var n=e(4132),o=e(9021),i=e(6092),u=e(981),a=e(5782),c=e(7747),s=Object.prototype.hasOwnProperty,l=i((function(t,r){if(a(r)||u(r))o(r,c(r),t);else for(var e in r)s.call(r,e)&&n(t,e,r[e])}));t.exports=l},1893:(t,r,e)=>{var n=e(6317),o=e(788),i=e(8286),u=e(8855),a=Object.prototype,c=a.hasOwnProperty,s=n((function(t,r){t=Object(t);var e=-1,n=r.length,s=n>2?r[2]:void 0;for(s&&i(r[0],r[1],s)&&(n=1);++e<n;)for(var l=r[e],f=u(l),p=-1,v=f.length;++p<v;){var h=f[p],y=t[h];(void 0===y||o(y,a[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},6354:(t,r,e)=>{var n=e(1377),o=e(6457),i=e(6317),u=e(7605),a=i((function(t,r){return u(t)?n(t,o(r,1,u,!0)):[]}));t.exports=a},788:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},2645:(t,r,e)=>{var n=e(6457);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7314:t=>{t.exports=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var o=t[r];n[o[0]]=o[1]}return n}},9201:(t,r,e)=>{var n=e(4432);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},5066:(t,r,e)=>{var n=e(6776),o=e(3096);t.exports=function(t,r){return null!=t&&o(t,r,n)}},5346:t=>{t.exports=function(t){return t}},6149:(t,r,e)=>{var n=e(6123);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},5075:t=>{t.exports=function(){return!1}},163:t=>{var r=Array.isArray;t.exports=r},981:(t,r,e)=>{var n=e(9642),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},7605:(t,r,e)=>{var n=e(981),o=e(3474);t.exports=function(t){return o(t)&&n(t)}},4801:t=>{t.exports=function(){return!1}},4155:(t,r,e)=>{var n=e(7190),o=e(9667),i=e(5075),u=e(163),a=e(981),c=e(4801),s=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||i(t)))return!t.length;var r=o(t);if("[object Map]"==r||"[object Set]"==r)return!t.size;if(s(t))return!n(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},9642:(t,r,e)=>{var n=e(563),o=e(7709);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},7747:(t,r,e)=>{var n=e(5125)(Object.keys,Object);t.exports=n},8855:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}},1616:(t,r,e)=>{var n=e(3472),o=e(6051),i=e(4912);t.exports=function(t,r){return i(t,o(n(r)))}},9082:(t,r,e)=>{var n=e(5436),o=e(5557)((function(t,r){return null==t?{}:n(t,r)}));t.exports=o},4912:(t,r,e)=>{var n=e(8644),o=e(3472),i=e(6371),u=e(7271);t.exports=function(t,r){if(null==t)return{};var e=n(u(t),(function(t){return[t]}));return r=o(r),i(t,e,(function(t,e){return r(t,e[0])}))}},8532:(t,r,e)=>{var n=e(1600),o=e(3301),i=e(726),u=e(3110);t.exports=function(t){return i(t)?n(u(t)):o(t)}},7010:(t,r,e)=>{var n=e(6316);t.exports=function(t){return null==t?"":n(t)}},9602:(t,r,e)=>{var n=e(946);t.exports=function(t){return t&&t.length?n(t):[]}},4882:(t,r,e)=>{var n=e(1377),o=e(6317),i=e(7605),u=o((function(t,r){return i(t)?n(t,r):[]}));t.exports=u},7491:t=>{var r="undefined"!=typeof Element,e="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,u){if(t===u)return!0;if(t&&u&&"object"==typeof t&&"object"==typeof u){if(t.constructor!==u.constructor)return!1;var a,c,s,l;if(Array.isArray(t)){if((a=t.length)!=u.length)return!1;for(c=a;0!=c--;)if(!i(t[c],u[c]))return!1;return!0}if(e&&t instanceof Map&&u instanceof Map){if(t.size!==u.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!u.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],u.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&u instanceof Set){if(t.size!==u.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!u.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(u)){if((a=t.length)!=u.length)return!1;for(c=a;0!=c--;)if(t[c]!==u[c])return!1;return!0}if(t.constructor===RegExp)return t.source===u.source&&t.flags===u.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===u.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===u.toString();if((a=(s=Object.keys(t)).length)!==Object.keys(u).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(u,s[c]))return!1;if(r&&t instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!t.$$typeof)&&!i(t[s[c]],u[s[c]]))return!1;return!0}return t!=t&&u!=u}t.exports=function(t,r){try{return i(t,r)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:r=>{"use strict";r.exports=t}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{VictorySharedEvents:()=>gt});var t=n(6354),r=n.n(t),e=n(7747),i=n.n(e),u=n(7314),a=n.n(u),c=n(4155),s=n.n(c),l=n(1893),f=n.n(l),p=n(9642),v=n.n(p),h=n(156),y=n.n(h),d=n(9787),b=n.n(d),g=n(6149),m=n.n(g),x=n(9602),E=n.n(x),w=n(1616),A=n.n(w),j=n(4912),O=n.n(j),_=n(4882),S=n.n(_);function k(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function P(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return C(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?C(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var T=/^onGlobal(.*)$/;function G(t,r,e,n){var o,i=this,u=function(t){var n,o=(n=t.reduce((function(t,e){return void 0!==e.target?(Array.isArray(e.target)?m()(e.target,r):"".concat(e.target)==="".concat(r))?t.concat(e):t:t.concat(e)}),[]),void 0!==e&&"parent"!==r?n.filter((function(t){var r=t.eventKey,n=function(t){return!t||"".concat(t)==="".concat(e)};return Array.isArray(r)?r.some((function(t){return n(t)})):n(r)})):n);return Array.isArray(o)&&o.reduce((function(t,r){return r?y()(t,r.eventHandlers):t}),{})},a=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,P(t.events)):i.componentEvents:t.events,c=a&&v()(n)?n(u(a),r):void 0;if(!t.sharedEvents)return c;var s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(u(t.sharedEvents.events),r);return y()({},l,c)}function M(t,r,e,n){var o=this;if(s()(t))return{};var u=n||this.baseProps,a=function(t,r){var e=t.childName,n=t.target,i=t.key,a="props"===r?u:o.state||{},c=null!=e&&a[e]?a[e]:a;return"parent"===i?c.parent:c[i]&&c[i][n]},c=function(t,n){var c="parent"===r?t.childName:t.childName||e,s=t.target||r,l=function(r,e){var n=o.state||{};if(!v()(t.mutation))return n;var c=a({childName:e,key:r,target:s},"props"),l=a({childName:e,key:r,target:s},"state"),f=t.mutation(y()({},c,l),u),p=n[e]||{},h=function(t){return f?function(t){return"parent"===s?y()(t,k({},r,y()(t[r],f))):y()(t,k({},r,y()(t[r],k({},s,f))))}(t):function(t){return t[r]&&t[r][s]&&delete t[r][s],t[r]&&!i()(t[r]).length&&delete t[r],t}(t)};return null!=e?y()(n,k({},e,h(p))):h(n)},f=function(r){var e=function(r){return"parent"===s?"parent":"all"===t.eventKey?u[r]?S()(i()(u[r]),"parent"):S()(i()(u),"parent"):void 0===t.eventKey&&"parent"===n?u[r]?i()(u[r]):i()(u):void 0!==t.eventKey?t.eventKey:n}(r);return Array.isArray(e)?e.reduce((function(t,e){return y()(t,l(e,r))}),{}):l(e,r)},p="all"===c?S()(i()(u),"parent"):c;return Array.isArray(p)?p.reduce((function(t,r){return y()(t,f(r))}),{}):f(p)},l=function(r,e,n,i){var u=t[i](r,e,n,o);if(!s()(u)){var a=function(t){var r=function(t){return v()(t.callback)&&t.callback},e=(Array.isArray(t)?t.map((function(t){return r(t)})):[r(t)]).filter((function(t){return!1!==t}));return e.length?function(){return e.forEach((function(t){return t()}))}:void 0}(u);o.setState(function(t,r){return Array.isArray(t)?t.reduce((function(t,e){return y()({},t,c(e,r))}),{}):c(t,r)}(u,n),a)}};return i()(t).reduce((function(t,r){return t[r]=l,t}),{})}function K(t,r,e){var n=this.state||{};return e?n[e]&&n[e][t]&&n[e][t][r]:"parent"===t?n[t]&&n[t][r]||n[t]:n[t]&&n[t][r]}function N(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=i()(r);return o.reduce((function(o,u){var a=e[u]||{},c=r[u]||{};if("parent"===u){var l=B(t,c,a,{eventKey:u,target:"parent"});o[u]=void 0!==l?y()({},a,l):a}else{var f=E()(i()(c).concat(i()(a)));o[u]=f.reduce((function(r,e){var o={eventKey:u,target:e,childName:n},i=B(t,c[e],a[e],o);return r[e]=void 0!==i?y()({},a[e],i):a[e],O()(r,(function(t){return!s()(t)}))}),{})}return O()(o,(function(t){return!s()(t)}))}),{})}function B(t,r,e,n){var o=function(t,r){if("string"==typeof t[r])return"all"===t[r]||t[r]===n[r];if(Array.isArray(t[r])){var e=t[r].map((function(t){return"".concat(t)}));return m()(e,n[r])}return!1},i=Array.isArray(t)?t:[t];n.childName&&(i=t.filter((function(t){return o(t,"childName")})));var u=i.filter((function(t){return o(t,"target")}));if(!s()(u)){var a=u.filter((function(t){return o(t,"eventKey")}));if(!s()(a))return a.reduce((function(t,n){var o=(n&&v()(n.mutation)?n.mutation:function(){})(y()({},r,e));return y()({},t,o)}),{})}}function z(t){var r=t.match(T);return r&&r[1]&&r[1].toLowerCase()}var I=n(9082),F=n.n(I);n(8532);var L,$,R=0,V=0,D=0,U=0,q=0,H=0,J="object"==typeof performance&&performance.now?performance:Date,W="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Q(){return q||(W(X),q=J.now()+H)}function X(){q=0}function Y(){this._call=this._time=this._next=null}function Z(t,r,e){var n=new Y;return n.restart(t,r,e),n}function tt(){q=(U=J.now())+H,R=V=0;try{!function(){Q(),++R;for(var t,r=L;r;)(t=q-r._time)>=0&&r._call.call(void 0,t),r=r._next;--R}()}finally{R=0,function(){for(var t,r,e=L,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:L=r);$=t,et(n)}(),q=0}}function rt(){var t=J.now(),r=t-U;r>1e3&&(H-=r,U=t)}function et(t){R||(V&&(V=clearTimeout(V)),t-q>24?(t<1/0&&(V=setTimeout(tt,t-J.now()-H)),D&&(D=clearInterval(D))):(D||(U=J.now(),D=setInterval(rt,1e3)),R=1,W(tt)))}function nt(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Y.prototype=Z.prototype={constructor:Y,restart:function(t,r,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Q():+e)+(null==r?0:+r),this._next||$===this||($?$._next=this:L=this,$=this),this._call=t,this._time=e,et()},stop:function(){this._call&&(this._call=null,this._time=1/0,et())}};var ot=function(){function t(){var r=this;!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){r.subscribers.forEach((function(t){t.callback(Q()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var r,e;return r=t,(e=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=Z(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,r){var e=this.subscribers.push({startTime:Q(),callback:t,duration:this.shouldAnimate?r:0});return this.activeSubscriptions++,this.start(),e}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&nt(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),t}(),it=b().createContext({transitionTimer:new ot,animationTimer:new ot});it.displayName="TimerContext";const ut=it;var at=n(7491),ct=n.n(at),st=n(2516),lt=n.n(st);function ft(t,r){if(t){if("string"==typeof t)return pt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?pt(t,r):void 0}}function pt(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function vt(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ht(t,r){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},ht(t,r)}function yt(t,r){if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return dt(t)}function dt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}var gt=function(t){!function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&ht(t,r)}(l,t);var e,n,o,u,c=(o=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=bt(o);if(u){var e=bt(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return yt(this,t)});function l(t){var r;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,l),(r=c.call(this,t)).getScopedEvents=void 0,r.getEventState=void 0,r.baseProps=void 0,r.sharedEventsCache=void 0,r.globalEvents=void 0,r.prevGlobalEventKeys=void 0,r.boundGlobalEvents=void 0,r.getScopedEvents=M.bind(dt(r)),r.getEventState=K.bind(dt(r)),r.state=r.state||{},r.sharedEventsCache={},r.globalEvents={},r.prevGlobalEventKeys=[],r.boundGlobalEvents={},r.baseProps=r.getBaseProps(t),r}return e=l,n=[{key:"shouldComponentUpdate",value:function(t){if(!ct()(this.props,t)){this.baseProps=this.getBaseProps(t);var r=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,r)}return!0}},{key:"componentDidMount",value:function(){var t=this,r=i()(this.globalEvents);r.forEach((function(r){return t.addGlobalListener(r)})),this.prevGlobalEventKeys=r}},{key:"componentDidUpdate",value:function(){var t=this,e=i()(this.globalEvents);r()(this.prevGlobalEventKeys,e).forEach((function(r){return t.removeGlobalListener(r)})),r()(e,this.prevGlobalEventKeys).forEach((function(r){return t.addGlobalListener(r)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(r){return t.removeGlobalListener(r)}))}},{key:"addGlobalListener",value:function(t){var r=this,e=function(e){var n=r.globalEvents[t];return n&&n(function(t){return y()(t,{nativeEvent:t})}(e))};this.boundGlobalEvents[t]=e,window.addEventListener(z(t),e)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(z(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var r,e=function(t,r){var e=Array.isArray(r)&&r.reduce((function(r,e){var n=t[e],o=n&&n.type&&n.type.defaultEvents,i=v()(o)?o(n.props):o;return Array.isArray(i)?r.concat.apply(r,P(i)):r}),[]);return e&&e.length?e:void 0}(t,["container","groupComponent"]);return Array.isArray(e)?Array.isArray(t.events)?e.concat.apply(e,function(t){if(Array.isArray(t))return pt(t)}(r=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||ft(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):e:t.events}},{key:"applyExternalMutations",value:function(t,r){if(!s()(r)){var e=t.externalEventMutations.reduce((function(t,r){return v()(r.callback)?t.concat(r.callback):t}),[]),n=e.length?function(){e.forEach((function(t){return t()}))}:void 0;this.setState(r,n)}}},{key:"getExternalMutations",value:function(t,r){return s()(t.externalEventMutations)?void 0:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(arguments.length>3?arguments[3]:void 0).reduce((function(n,o){var i=e[o],u=N(t,r[o],e[o],o);return n[o]=u||i,O()(n,(function(t){return!s()(t)}))}),{})}(t.externalEventMutations,r,this.state,i()(r))}},{key:"cacheSharedEvents",value:function(t,r,e){this.sharedEventsCache[t]=[r,e]}},{key:"getCachedSharedEvents",value:function(t,r){var e,n,o=(e=this.sharedEventsCache[t]||[],n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i=[],u=!0,a=!1;try{for(e=e.call(t);!(u=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}}(e,n)||ft(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],u=o[1];if(i&&ct()(r,u))return i}},{key:"getBaseProps",value:function(t){var r=t.container,e=b().Children.toArray(this.props.children),n=this.getBasePropsFromChildren(e),o=r?r.props:{};return y()({},n,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var r=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,r){return t.concat(r)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(t,a,c){return t.reduce((function(t,n,s){var l=t,f=n.type&&n.type.role,p=n.props.name||"".concat(f,"-").concat(a[s]);if(n.props&&n.props.children){var h=y()({},n.props,F()(e,i)),d=n.type&&"stack"===n.type.role&&v()(n.type.getChildren)?n.type.getChildren(h):b().Children.toArray(n.props.children).map((function(t){var r=y()({},t.props,F()(h,i));return b().cloneElement(t,r)})),g=d.map((function(t,r){return"".concat(p,"-").concat(r)})),m=u(d,g,n);l=o(l,m)}else{var x=r(n,p,c);x&&(l=o(l,x))}return l}),n)},a=t.filter(d.isValidElement),c=a.map((function(t,r){return r}));return u(a,c)}(t,(function(t,r){if(t.type&&v()(t.type.getBaseProps)){var e=t.props&&t.type.getBaseProps(t.props);return e?[[r,e]]:null}return null}));return a()(r)}},{key:"getNewChildren",value:function(t,r){var e=this,n=t.events,o=t.eventKey,u=function(t,i){return t.reduce((function(t,a,c){if(a.props.children){var s=b().Children.toArray(a.props.children),l=i.slice(c,c+s.length),f=b().cloneElement(a,a.props,u(s,l));return t.concat(f)}if("parent"!==i[c]&&a.type&&v()(a.type.getBaseProps)){var p=a.props.name||i[c],h=Array.isArray(n)&&n.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(p)>-1:t.childName===p||"all"===t.childName)})),d=[p,r,h,lt()(e.state[p])],g=e.getCachedSharedEvents(p,d)||{events:h,getEvents:function(t,n){return e.getScopedEvents(t,n,p,r)},getEventState:function(t,r){return e.getEventState(t,r,p)}};return e.cacheSharedEvents(p,g,d),t.concat(b().cloneElement(a,y()({key:"events-".concat(p),sharedEvents:g,eventKey:o,name:p},a.props)))}return t.concat(a)}),[])},a=i()(r),c=b().Children.toArray(t.children);return u(c,a)}},{key:"getContainer",value:function(t,r,e){var n=this,o=this.getNewChildren(t,r),u=Array.isArray(e)?e.filter((function(t){return"parent"===t.target})):[],a=u.length>0?{events:u,getEvents:function(t,e){return n.getScopedEvents(t,e,null,r)},getEventState:this.getEventState}:null,c=t.container||t.groupComponent,s=c.type&&c.type.role,l=c.props||{},p=G.bind(this),v=a&&p({sharedEvents:a},"parent"),h=f()({},this.getEventState("parent","parent"),l,r.parent,{children:o}),d=f()({},function(t,r,e){return t?i()(t).reduce((function(r,n){return r[n]=function(r){return t[n](r,e,"parent",n)},r}),{}):{}}(v,0,h),l.events);this.globalEvents=function(t){return O()(t,(function(t,r){return T.test(r)}))}(d);var g=function(t){return A()(t,(function(t,r){return T.test(r)}))}(d);return"container"===s?b().cloneElement(c,y()({},h,{events:g})):b().cloneElement(c,g,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):b().cloneElement(this.props.container,{children:this.props.children})}}],n&&vt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(b().Component);gt.displayName="VictorySharedEvents",gt.role="shared-event-wrapper",gt.contextType=ut,gt.defaultProps={groupComponent:b().createElement("g",null)}})(),o})()));
1
+ !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.VictorySharedEvents=r(require("react")):t.VictorySharedEvents=r(t.React)}(self,(t=>(()=>{var r={2516:(t,r)=>{function e(t,r){var e=[],n=[];return null==r&&(r=function(t,r){return e[0]===r?"[Circular ~]":"[Circular ~."+n.slice(0,e.indexOf(r)).join(".")+"]"}),function(o,i){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?n.splice(a,1/0,o):n.push(o),~e.indexOf(i)&&(i=r.call(this,o,i))}else e.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,r,n,o){return JSON.stringify(t,e(r,o),n)}).getSerialize=e},3273:(t,r,e)=>{var n=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},8708:(t,r,e)=>{var n=e(1171),o=e(7838),i=e(4859),a=e(4073),u=e(8541);function c(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,r,e)=>{var n=e(2373).Symbol;t.exports=n},6082:t=>{t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},5510:(t,r,e)=>{var n=e(6123);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},9955:t=>{t.exports=function(t,r,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(r,t[n]))return!0;return!1}},8644:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},9559:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},1634:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},4132:(t,r,e)=>{var n=e(8347),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var a=t[r];i.call(t,r)&&o(a,e)&&(void 0!==e||r in t)||n(t,r,e)}},3162:(t,r,e)=>{var n=e(788);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},8347:(t,r,e)=>{var n=e(5525);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},1377:(t,r,e)=>{var n=e(3273),o=e(5510),i=e(9955),a=e(8644),u=e(9110),c=e(9914);t.exports=function(t,r,e,s){var l=-1,f=o,p=!0,v=t.length,h=[],y=r.length;if(!v)return h;e&&(r=a(r,u(e))),s?(f=i,p=!1):r.length>=200&&(f=c,p=!1,r=new n(r));t:for(;++l<v;){var d=t[l],b=null==e?d:e(d);if(d=s||0!==d?d:0,p&&b==b){for(var g=y;g--;)if(r[g]===b)continue t;h.push(d)}else f(r,b,s)||h.push(d)}return h}},6457:(t,r,e)=>{var n=e(9559),o=e(3608);t.exports=function t(r,e,i,a,u){var c=-1,s=r.length;for(i||(i=o),u||(u=[]);++c<s;){var l=r[c];e>0&&i(l)?e>1?t(l,e-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},4432:(t,r,e)=>{var n=e(9026),o=e(3110);t.exports=function(t,r){for(var e=0,i=(r=n(r,t)).length;null!=t&&e<i;)t=t[o(r[e++])];return e&&e==i?t:void 0}},563:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},6776:t=>{t.exports=function(t,r){return null!=t&&r in Object(t)}},6123:t=>{t.exports=function(t,r,e){for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}},9070:(t,r,e)=>{var n=e(7028),o=e(3474);t.exports=function t(r,e,i,a,u){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,a,t,u))}},7028:(t,r,e)=>{var n=e(8708),o=e(8705),i=e(2813),a=e(6682),u=e(9667),c=e(163),s=e(4801),l=e(4289),f="[object Arguments]",p="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=c(t),m=c(r),x=g?p:u(t),j=m?p:u(r),E=(x=x==f?v:x)==v,O=(j=j==f?v:j)==v,w=x==j;if(w&&s(t)){if(!s(r))return!1;g=!0,E=!1}if(w&&!E)return b||(b=new n),g||l(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var A=E&&h.call(t,"__wrapped__"),_=O&&h.call(r,"__wrapped__");if(A||_){var S=A?t.value():t,k=_?r.value():r;return b||(b=new n),d(S,k,e,y,b)}}return!!w&&(b||(b=new n),a(t,r,e,y,d,b))}},9548:(t,r,e)=>{var n=e(8708),o=e(9070);t.exports=function(t,r,e,i){var a=e.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var s=e[a];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<u;){var l=(s=e[a])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var v=new n;if(i)var h=i(f,p,l,t,r,v);if(!(void 0===h?o(p,f,3,i,v):h))return!1}}return!0}},3472:(t,r,e)=>{var n=e(758),o=e(5223),i=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},7190:(t,r,e)=>{var n=e(5125)(Object.keys,Object);t.exports=n},758:(t,r,e)=>{var n=e(9548),o=e(597),i=e(6878);t.exports=function(t){var r=o(t);return 1==r.length&&r[0][2]?i(r[0][0],r[0][1]):function(e){return e===t||n(e,t,r)}}},5223:(t,r,e)=>{var n=e(9070),o=e(9201),i=e(5066),a=e(726),u=e(5385),c=e(6878),s=e(3110);t.exports=function(t,r){return a(t)&&u(r)?c(s(t),r):function(e){var a=o(e,t);return void 0===a&&a===r?i(e,t):n(r,a,3)}}},5436:(t,r,e)=>{var n=e(6371),o=e(5066);t.exports=function(t,r){return n(t,r,(function(r,e){return o(t,e)}))}},6371:(t,r,e)=>{var n=e(4432),o=e(6539),i=e(9026);t.exports=function(t,r,e){for(var a=-1,u=r.length,c={};++a<u;){var s=r[a],l=n(t,s);e(l,s)&&o(c,i(s,t),l)}return c}},1600:t=>{t.exports=function(t){return function(r){return null==r?void 0:r[t]}}},3301:(t,r,e)=>{var n=e(4432);t.exports=function(t){return function(r){return n(r,t)}}},6317:(t,r,e)=>{var n=e(5346),o=e(4280),i=e(201);t.exports=function(t,r){return i(o(t,r,n),t+"")}},6539:(t,r,e)=>{var n=e(4132),o=e(9026),i=e(9099),a=e(7709),u=e(3110);t.exports=function(t,r,e,c){if(!a(t))return t;for(var s=-1,l=(r=o(r,t)).length,f=l-1,p=t;null!=p&&++s<l;){var v=u(r[s]),h=e;if("__proto__"===v||"constructor"===v||"prototype"===v)return t;if(s!=f){var y=p[v];void 0===(h=c?c(y,v,p):void 0)&&(h=a(y)?y:i(r[s+1])?[]:{})}n(p,v,h),p=p[v]}return t}},6316:(t,r,e)=>{var n=e(2596),o=e(8644),i=e(163),a=e(1995),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(a(r))return c?c.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},9110:t=>{t.exports=function(t){return function(r){return t(r)}}},946:(t,r,e)=>{var n=e(3273),o=e(5510),i=e(9955),a=e(9914),u=e(6602),c=e(6226);t.exports=function(t,r,e){var s=-1,l=o,f=t.length,p=!0,v=[],h=v;if(e)p=!1,l=i;else if(f>=200){var y=r?null:u(t);if(y)return c(y);p=!1,l=a,h=new n}else h=r?[]:v;t:for(;++s<f;){var d=t[s],b=r?r(d):d;if(d=e||0!==d?d:0,p&&b==b){for(var g=h.length;g--;)if(h[g]===b)continue t;r&&h.push(b),v.push(d)}else l(h,b,e)||(h!==v&&h.push(b),v.push(d))}return v}},9914:(t,r,e)=>{var n=e(6123);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},9026:(t,r,e)=>{var n=e(163),o=e(726),i=e(7801),a=e(7010);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},6602:t=>{t.exports=function(){}},5525:(t,r,e)=>{var n=e(3743),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,r,e)=>{var n=e(3273),o=e(1634),i=e(9914);t.exports=function(t,r,e,a,u,c){var s=1&e,l=t.length,f=r.length;if(l!=f&&!(s&&f>l))return!1;var p=c.get(t),v=c.get(r);if(p&&v)return p==r&&v==t;var h=-1,y=!0,d=2&e?new n:void 0;for(c.set(t,r),c.set(r,t);++h<l;){var b=t[h],g=r[h];if(a)var m=s?a(g,b,h,r,t,c):a(b,g,h,t,r,c);if(void 0!==m){if(m)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||u(b,t,e,a,c)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!u(b,g,e,a,c)){y=!1;break}}return c.delete(t),c.delete(r),y}},2813:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},6682:(t,r,e)=>{var n=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,u){var c=1&e,s=n(t),l=s.length;if(l!=n(r).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in r:o.call(r,p)))return!1}var v=u.get(t),h=u.get(r);if(v&&h)return v==r&&h==t;var y=!0;u.set(t,r),u.set(r,t);for(var d=c;++f<l;){var b=t[p=s[f]],g=r[p];if(i)var m=c?i(g,b,p,r,t,u):i(b,g,p,t,r,u);if(!(void 0===m?b===g||a(b,g,e,i,u):m)){y=!1;break}d||(d="constructor"==p)}if(y&&!d){var x=t.constructor,j=r.constructor;x==j||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof j&&j instanceof j||(y=!1)}return u.delete(t),u.delete(r),y}},5557:(t,r,e)=>{var n=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(t,void 0,n),t+"")}},2117:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},8143:(t,r,e)=>{var n=e(5125)(Object.keys,Object);t.exports=n},7271:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},597:(t,r,e)=>{var n=e(5385),o=e(7747);t.exports=function(t){for(var r=o(t),e=r.length;e--;){var i=r[e],a=t[i];r[e]=[i,a,n(a)]}return r}},3743:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},9667:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},3096:(t,r,e)=>{var n=e(9026),o=e(5075),i=e(163),a=e(9099),u=e(8454),c=e(3110);t.exports=function(t,r,e){for(var s=-1,l=(r=n(r,t)).length,f=!1;++s<l;){var p=c(r[s]);if(!(f=null!=t&&e(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(p,l)&&(i(t)||o(t))}},3608:(t,r,e)=>{var n=e(2596),o=e(5075),i=e(163),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},8286:t=>{t.exports=function(){return!1}},726:(t,r,e)=>{var n=e(163),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=r&&t in Object(r)}},5782:t=>{t.exports=function(){return!1}},5385:(t,r,e)=>{var n=e(7709);t.exports=function(t){return t==t&&!n(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,r,e)=>{var n=e(3162),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0||(e==r.length-1?r.pop():o.call(r,e,1),--this.size,0))}},4859:(t,r,e)=>{var n=e(3162);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},4073:(t,r,e)=>{var n=e(3162);t.exports=function(t){return n(this.__data__,t)>-1}},8541:(t,r,e)=>{var n=e(3162);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},6878:t=>{t.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},2453:t=>{t.exports=function(t){return t}},5125:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},4280:(t,r,e)=>{var n=e(6082),o=Math.max;t.exports=function(t,r,e){return r=o(void 0===r?t.length-1:r,0),function(){for(var i=arguments,a=-1,u=o(i.length-r,0),c=Array(u);++a<u;)c[a]=i[r+a];a=-1;for(var s=Array(r+1);++a<r;)s[a]=i[a];return s[r]=e(c),n(t,this,s)}}},2373:(t,r,e)=>{var n=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,r,e)=>{var n=e(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(o,(function(t,e,n,o){r.push(n?o.replace(i,"$1"):e||t)})),r}));t.exports=a},3110:(t,r,e)=>{var n=e(1995);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},1893:(t,r,e)=>{var n=e(6317),o=e(788),i=e(8286),a=e(8855),u=Object.prototype,c=u.hasOwnProperty,s=n((function(t,r){t=Object(t);var e=-1,n=r.length,s=n>2?r[2]:void 0;for(s&&i(r[0],r[1],s)&&(n=1);++e<n;)for(var l=r[e],f=a(l),p=-1,v=f.length;++p<v;){var h=f[p],y=t[h];(void 0===y||o(y,u[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},6354:(t,r,e)=>{var n=e(1377),o=e(6457),i=e(6317),a=e(7605),u=i((function(t,r){return a(t)?n(t,o(r,1,a,!0)):[]}));t.exports=u},788:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},2645:(t,r,e)=>{var n=e(6457);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7314:t=>{t.exports=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var o=t[r];n[o[0]]=o[1]}return n}},9201:(t,r,e)=>{var n=e(4432);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},5066:(t,r,e)=>{var n=e(6776),o=e(3096);t.exports=function(t,r){return null!=t&&o(t,r,n)}},5346:t=>{t.exports=function(t){return t}},6149:(t,r,e)=>{var n=e(6123);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},5075:t=>{t.exports=function(){return!1}},163:t=>{var r=Array.isArray;t.exports=r},981:(t,r,e)=>{var n=e(9642),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},7605:(t,r,e)=>{var n=e(981),o=e(3474);t.exports=function(t){return o(t)&&n(t)}},4801:t=>{t.exports=function(){return!1}},4155:(t,r,e)=>{var n=e(7190),o=e(9667),i=e(5075),a=e(163),u=e(981),c=e(4801),s=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||i(t)))return!t.length;var r=o(t);if("[object Map]"==r||"[object Set]"==r)return!t.size;if(s(t))return!n(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},9642:(t,r,e)=>{var n=e(563),o=e(7709);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},7747:(t,r,e)=>{var n=e(5125)(Object.keys,Object);t.exports=n},8855:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}},1616:(t,r,e)=>{var n=e(3472),o=e(6051),i=e(4912);t.exports=function(t,r){return i(t,o(n(r)))}},9082:(t,r,e)=>{var n=e(5436),o=e(5557)((function(t,r){return null==t?{}:n(t,r)}));t.exports=o},4912:(t,r,e)=>{var n=e(8644),o=e(3472),i=e(6371),a=e(7271);t.exports=function(t,r){if(null==t)return{};var e=n(a(t),(function(t){return[t]}));return r=o(r),i(t,e,(function(t,e){return r(t,e[0])}))}},8532:(t,r,e)=>{var n=e(1600),o=e(3301),i=e(726),a=e(3110);t.exports=function(t){return i(t)?n(a(t)):o(t)}},7010:(t,r,e)=>{var n=e(6316);t.exports=function(t){return null==t?"":n(t)}},9602:(t,r,e)=>{var n=e(946);t.exports=function(t){return t&&t.length?n(t):[]}},4882:(t,r,e)=>{var n=e(1377),o=e(6317),i=e(7605),a=o((function(t,r){return i(t)?n(t,r):[]}));t.exports=a},7491:t=>{var r="undefined"!=typeof Element,e="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,s,l;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(s=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,s[c]))return!1;if(r&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!t.$$typeof)&&!i(t[s[c]],a[s[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,r){try{return i(t,r)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:r=>{"use strict";r.exports=t}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{VictorySharedEvents:()=>dt});var t=n(6354),r=n.n(t),e=n(7747),i=n.n(e),a=n(7314),u=n.n(a),c=n(4155),s=n.n(c),l=n(1893),f=n.n(l),p=n(9642),v=n.n(p),h=n(9787),y=n.n(h),d=n(6149),b=n.n(d),g=n(9602),m=n.n(g),x=n(1616),j=n.n(x),E=n(4912),O=n.n(E),w=n(4882),A=n.n(w);function _(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function S(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return k(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?k(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var P=/^onGlobal(.*)$/;function C(t,r,e,n){var o,i=this,a=function(t){var n,o=(n=t.reduce((function(t,e){return void 0!==e.target?(Array.isArray(e.target)?b()(e.target,r):"".concat(e.target)==="".concat(r))?t.concat(e):t:t.concat(e)}),[]),void 0!==e&&"parent"!==r?n.filter((function(t){var r=t.eventKey,n=function(t){return!t||"".concat(t)==="".concat(e)};return Array.isArray(r)?r.some((function(t){return n(t)})):n(r)})):n);return Array.isArray(o)&&o.reduce((function(t,r){return r?Object.assign(t,r.eventHandlers):t}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,S(t.events)):i.componentEvents:t.events,c=u&&v()(n)?n(a(u),r):void 0;if(!t.sharedEvents)return c;var s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(a(t.sharedEvents.events),r);return Object.assign({},l,c)}function T(t,r,e,n){var o=this;if(s()(t))return{};var a=n||this.baseProps,u=function(t,r){var e=t.childName,n=t.target,i=t.key,u="props"===r?a:o.state||{},c=null!=e&&u[e]?u[e]:u;return"parent"===i?c.parent:c[i]&&c[i][n]},c=function(t,n){var c="parent"===r?t.childName:t.childName||e,s=t.target||r,l=function(r,e){var n=o.state||{};if(!v()(t.mutation))return n;var c=u({childName:e,key:r,target:s},"props"),l=u({childName:e,key:r,target:s},"state"),f=t.mutation(Object.assign({},c,l),a),p=n[e]||{},h=function(t){return f?function(t){return"parent"===s?Object.assign(t,_({},r,Object.assign(t[r]||{},f))):Object.assign(t,_({},r,Object.assign(t[r]||{},_({},s,f))))}(t):function(t){return t[r]&&t[r][s]&&delete t[r][s],t[r]&&!i()(t[r]).length&&delete t[r],t}(t)};return null!=e?Object.assign(n,_({},e,h(p))):h(n)},f=function(r){var e=function(r){return"parent"===s?"parent":"all"===t.eventKey?a[r]?A()(i()(a[r]),"parent"):A()(i()(a),"parent"):void 0===t.eventKey&&"parent"===n?a[r]?i()(a[r]):i()(a):void 0!==t.eventKey?t.eventKey:n}(r);return Array.isArray(e)?e.reduce((function(t,e){return Object.assign(t,l(e,r))}),{}):l(e,r)},p="all"===c?A()(i()(a),"parent"):c;return Array.isArray(p)?p.reduce((function(t,r){return Object.assign(t,f(r))}),{}):f(p)},l=function(r,e,n,i){var a=t[i](r,e,n,o);if(!s()(a)){var u=function(t){var r=function(t){return v()(t.callback)&&t.callback},e=(Array.isArray(t)?t.map((function(t){return r(t)})):[r(t)]).filter((function(t){return!1!==t}));return e.length?function(){return e.forEach((function(t){return t()}))}:void 0}(a);o.setState(function(t,r){return Array.isArray(t)?t.reduce((function(t,e){return Object.assign({},t,c(e,r))}),{}):c(t,r)}(a,n),u)}};return i()(t).reduce((function(t,r){return t[r]=l,t}),{})}function G(t,r,e){var n=this.state||{};return e?n[e]&&n[e][t]&&n[e][t][r]:"parent"===t?n[t]&&n[t][r]||n[t]:n[t]&&n[t][r]}function M(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=i()(r);return o.reduce((function(o,a){var u=e[a]||{},c=r[a]||{};if("parent"===a){var l=K(t,c,u,{eventKey:a,target:"parent"});o[a]=void 0!==l?Object.assign({},u,l):u}else{var f=m()(i()(c).concat(i()(u)));o[a]=f.reduce((function(r,e){var o={eventKey:a,target:e,childName:n},i=K(t,c[e],u[e],o);return r[e]=void 0!==i?Object.assign({},u[e],i):u[e],O()(r,(function(t){return!s()(t)}))}),{})}return O()(o,(function(t){return!s()(t)}))}),{})}function K(t,r,e,n){var o=function(t,r){if("string"==typeof t[r])return"all"===t[r]||t[r]===n[r];if(Array.isArray(t[r])){var e=t[r].map((function(t){return"".concat(t)}));return b()(e,n[r])}return!1},i=Array.isArray(t)?t:[t];n.childName&&(i=t.filter((function(t){return o(t,"childName")})));var a=i.filter((function(t){return o(t,"target")}));if(!s()(a)){var u=a.filter((function(t){return o(t,"eventKey")}));if(!s()(u))return u.reduce((function(t,n){var o=(n&&v()(n.mutation)?n.mutation:function(){})(Object.assign({},r,e));return Object.assign({},t,o)}),{})}}function N(t){var r=t.match(P);return r&&r[1]&&r[1].toLowerCase()}var B=n(9082),z=n.n(B);n(8532);var I,F,L=0,$=0,R=0,V=0,D=0,U=0,q="object"==typeof performance&&performance.now?performance:Date,H="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function J(){return D||(H(W),D=q.now()+U)}function W(){D=0}function Q(){this._call=this._time=this._next=null}function X(t,r,e){var n=new Q;return n.restart(t,r,e),n}function Y(){D=(V=q.now())+U,L=$=0;try{!function(){J(),++L;for(var t,r=I;r;)(t=D-r._time)>=0&&r._call.call(void 0,t),r=r._next;--L}()}finally{L=0,function(){for(var t,r,e=I,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:I=r);F=t,tt(n)}(),D=0}}function Z(){var t=q.now(),r=t-V;r>1e3&&(U-=r,V=t)}function tt(t){L||($&&($=clearTimeout($)),t-D>24?(t<1/0&&($=setTimeout(Y,t-q.now()-U)),R&&(R=clearInterval(R))):(R||(V=q.now(),R=setInterval(Z,1e3)),L=1,H(Y)))}function rt(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Q.prototype=X.prototype={constructor:Q,restart:function(t,r,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?J():+e)+(null==r?0:+r),this._next||F===this||(F?F._next=this:I=this,F=this),this._call=t,this._time=e,tt()},stop:function(){this._call&&(this._call=null,this._time=1/0,tt())}};var et=function(){function t(){var r=this;!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){r.subscribers.forEach((function(t){t.callback(J()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var r,e;return r=t,(e=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=X(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,r){var e=this.subscribers.push({startTime:J(),callback:t,duration:this.shouldAnimate?r:0});return this.activeSubscriptions++,this.start(),e}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&rt(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),t}(),nt=y().createContext({transitionTimer:new et,animationTimer:new et});nt.displayName="TimerContext";const ot=nt;var it=n(7491),at=n.n(it),ut=n(2516),ct=n.n(ut);function st(t,r){if(t){if("string"==typeof t)return lt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?lt(t,r):void 0}}function lt(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ft(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pt(t,r){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},pt(t,r)}function vt(t,r){if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return ht(t)}function ht(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yt(t){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yt(t)}var dt=function(t){!function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&pt(t,r)}(l,t);var e,n,o,a,c=(o=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=yt(o);if(a){var e=yt(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return vt(this,t)});function l(t){var r;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,l),(r=c.call(this,t)).getScopedEvents=void 0,r.getEventState=void 0,r.baseProps=void 0,r.sharedEventsCache=void 0,r.globalEvents=void 0,r.prevGlobalEventKeys=void 0,r.boundGlobalEvents=void 0,r.getScopedEvents=T.bind(ht(r)),r.getEventState=G.bind(ht(r)),r.state=r.state||{},r.sharedEventsCache={},r.globalEvents={},r.prevGlobalEventKeys=[],r.boundGlobalEvents={},r.baseProps=r.getBaseProps(t),r}return e=l,n=[{key:"shouldComponentUpdate",value:function(t){if(!at()(this.props,t)){this.baseProps=this.getBaseProps(t);var r=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,r)}return!0}},{key:"componentDidMount",value:function(){var t=this,r=i()(this.globalEvents);r.forEach((function(r){return t.addGlobalListener(r)})),this.prevGlobalEventKeys=r}},{key:"componentDidUpdate",value:function(){var t=this,e=i()(this.globalEvents);r()(this.prevGlobalEventKeys,e).forEach((function(r){return t.removeGlobalListener(r)})),r()(e,this.prevGlobalEventKeys).forEach((function(r){return t.addGlobalListener(r)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(r){return t.removeGlobalListener(r)}))}},{key:"addGlobalListener",value:function(t){var r=this,e=function(e){var n=r.globalEvents[t];return n&&n(function(t){return Object.assign(t,{nativeEvent:t})}(e))};this.boundGlobalEvents[t]=e,window.addEventListener(N(t),e)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(N(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var r,e=function(t,r){var e=Array.isArray(r)&&r.reduce((function(r,e){var n=t[e],o=n&&n.type&&n.type.defaultEvents,i=v()(o)?o(n.props):o;return Array.isArray(i)?r.concat.apply(r,S(i)):r}),[]);return e&&e.length?e:void 0}(t,["container","groupComponent"]);return Array.isArray(e)?Array.isArray(t.events)?e.concat.apply(e,function(t){if(Array.isArray(t))return lt(t)}(r=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||st(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):e:t.events}},{key:"applyExternalMutations",value:function(t,r){if(!s()(r)){var e=t.externalEventMutations.reduce((function(t,r){return v()(r.callback)?t.concat(r.callback):t}),[]),n=e.length?function(){e.forEach((function(t){return t()}))}:void 0;this.setState(r,n)}}},{key:"getExternalMutations",value:function(t,r){return s()(t.externalEventMutations)?void 0:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(arguments.length>3?arguments[3]:void 0).reduce((function(n,o){var i=e[o],a=M(t,r[o],e[o],o);return n[o]=a||i,O()(n,(function(t){return!s()(t)}))}),{})}(t.externalEventMutations,r,this.state,i()(r))}},{key:"cacheSharedEvents",value:function(t,r,e){this.sharedEventsCache[t]=[r,e]}},{key:"getCachedSharedEvents",value:function(t,r){var e,n,o=(e=this.sharedEventsCache[t]||[],n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(e,n)||st(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(i&&at()(r,a))return i}},{key:"getBaseProps",value:function(t){var r=t.container,e=y().Children.toArray(this.props.children),n=this.getBasePropsFromChildren(e),o=r?r.props:{};return Object.assign({},n,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var r=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,r){return t.concat(r)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=function(t,u,c){return t.reduce((function(t,n,s){var l=t,f=n.type&&n.type.role,p=n.props.name||"".concat(f,"-").concat(u[s]);if(n.props&&n.props.children){var h=Object.assign({},n.props,z()(e,i)),d=n.type&&"stack"===n.type.role&&v()(n.type.getChildren)?n.type.getChildren(h):y().Children.toArray(n.props.children).map((function(t){var r=Object.assign({},t.props,z()(h,i));return y().cloneElement(t,r)})),b=d.map((function(t,r){return"".concat(p,"-").concat(r)})),g=a(d,b,n);l=o(l,g)}else{var m=r(n,p,c);m&&(l=o(l,m))}return l}),n)},u=t.filter(h.isValidElement),c=u.map((function(t,r){return r}));return a(u,c)}(t,(function(t,r){if(t.type&&v()(t.type.getBaseProps)){var e=t.props&&t.type.getBaseProps(t.props);return e?[[r,e]]:null}return null}));return u()(r)}},{key:"getNewChildren",value:function(t,r){var e=this,n=t.events,o=t.eventKey,a=function(t,i){return t.reduce((function(t,u,c){if(u.props.children){var s=y().Children.toArray(u.props.children),l=i.slice(c,c+s.length),f=y().cloneElement(u,u.props,a(s,l));return t.concat(f)}if("parent"!==i[c]&&u.type&&v()(u.type.getBaseProps)){var p=u.props.name||i[c],h=Array.isArray(n)&&n.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(p)>-1:t.childName===p||"all"===t.childName)})),d=[p,r,h,ct()(e.state[p])],b=e.getCachedSharedEvents(p,d)||{events:h,getEvents:function(t,n){return e.getScopedEvents(t,n,p,r)},getEventState:function(t,r){return e.getEventState(t,r,p)}};return e.cacheSharedEvents(p,b,d),t.concat(y().cloneElement(u,Object.assign({key:"events-".concat(p),sharedEvents:b,eventKey:o,name:p},u.props)))}return t.concat(u)}),[])},u=i()(r),c=y().Children.toArray(t.children);return a(c,u)}},{key:"getContainer",value:function(t,r,e){var n=this,o=this.getNewChildren(t,r),a=Array.isArray(e)?e.filter((function(t){return"parent"===t.target})):[],u=a.length>0?{events:a,getEvents:function(t,e){return n.getScopedEvents(t,e,null,r)},getEventState:this.getEventState}:null,c=t.container||t.groupComponent,s=c.type&&c.type.role,l=c.props||{},p=C.bind(this),v=u&&p({sharedEvents:u},"parent"),h=f()({},this.getEventState("parent","parent"),l,r.parent,{children:o}),d=f()({},function(t,r,e){return t?i()(t).reduce((function(r,n){return r[n]=function(r){return t[n](r,e,"parent",n)},r}),{}):{}}(v,0,h),l.events);this.globalEvents=function(t){return O()(t,(function(t,r){return P.test(r)}))}(d);var b=function(t){return j()(t,(function(t,r){return P.test(r)}))}(d);return"container"===s?y().cloneElement(c,Object.assign({},h,{events:b})):y().cloneElement(c,b,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):y().cloneElement(this.props.container,{children:this.props.children})}}],n&&ft(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(y().Component);dt.displayName="VictorySharedEvents",dt.role="shared-event-wrapper",dt.contextType=ot,dt.defaultProps={groupComponent:y().createElement("g",null)}})(),o})()));
2
2
  //# sourceMappingURL=victory-shared-events.min.js.map
@@ -4,7 +4,6 @@ import _fromPairs from "lodash/fromPairs";
4
4
  import _isEmpty from "lodash/isEmpty";
5
5
  import _defaults from "lodash/defaults";
6
6
  import _isFunction from "lodash/isFunction";
7
- import _assign from "lodash/assign";
8
7
 
9
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
9
 
@@ -207,7 +206,7 @@ export var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
207
206
  var children = React.Children.toArray(this.props.children);
208
207
  var childBaseProps = this.getBasePropsFromChildren(children);
209
208
  var parentBaseProps = container ? container.props : {};
210
- return _assign({}, childBaseProps, {
209
+ return Object.assign({}, childBaseProps, {
211
210
  parent: parentBaseProps
212
211
  });
213
212
  }
@@ -266,7 +265,7 @@ export var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
266
265
 
267
266
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
268
267
 
269
- return memo.concat( /*#__PURE__*/React.cloneElement(child, _assign({
268
+ return memo.concat( /*#__PURE__*/React.cloneElement(child, Object.assign({
270
269
  key: "events-".concat(name),
271
270
  sharedEvents: sharedEvents,
272
271
  eventKey: eventKey,
@@ -316,7 +315,7 @@ export var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
316
315
 
317
316
  this.globalEvents = Events.getGlobalEvents(containerEvents);
318
317
  var localEvents = Events.omitGlobalEvents(containerEvents);
319
- return role === "container" ? /*#__PURE__*/React.cloneElement(container, _assign({}, parentProps, {
318
+ return role === "container" ? /*#__PURE__*/React.cloneElement(container, Object.assign({}, parentProps, {
320
319
  events: localEvents
321
320
  })) : /*#__PURE__*/React.cloneElement(container, localEvents, children);
322
321
  }
@@ -17,8 +17,6 @@ var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
17
17
 
18
18
  var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
19
19
 
20
- var _assign2 = _interopRequireDefault(require("lodash/assign"));
21
-
22
20
  var _react = _interopRequireDefault(require("react"));
23
21
 
24
22
  var _victoryCore = require("victory-core");
@@ -224,7 +222,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
224
222
 
225
223
  var childBaseProps = this.getBasePropsFromChildren(children);
226
224
  var parentBaseProps = container ? container.props : {};
227
- return (0, _assign2.default)({}, childBaseProps, {
225
+ return Object.assign({}, childBaseProps, {
228
226
  parent: parentBaseProps
229
227
  });
230
228
  }
@@ -287,7 +285,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
287
285
 
288
286
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
289
287
 
290
- return memo.concat( /*#__PURE__*/_react.default.cloneElement(child, (0, _assign2.default)({
288
+ return memo.concat( /*#__PURE__*/_react.default.cloneElement(child, Object.assign({
291
289
  key: "events-".concat(name),
292
290
  sharedEvents: sharedEvents,
293
291
  eventKey: eventKey,
@@ -339,7 +337,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
339
337
 
340
338
  var localEvents = _victoryCore.Events.omitGlobalEvents(containerEvents);
341
339
 
342
- return role === "container" ? /*#__PURE__*/_react.default.cloneElement(container, (0, _assign2.default)({}, parentProps, {
340
+ return role === "container" ? /*#__PURE__*/_react.default.cloneElement(container, Object.assign({}, parentProps, {
343
341
  events: localEvents
344
342
  })) : /*#__PURE__*/_react.default.cloneElement(container, localEvents, children);
345
343
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-shared-events",
3
- "version": "36.8.4",
3
+ "version": "36.8.5",
4
4
  "description": "Shared Event Helper for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -24,7 +24,7 @@
24
24
  "lodash": "^4.17.19",
25
25
  "prop-types": "^15.8.1",
26
26
  "react-fast-compare": "^3.2.0",
27
- "victory-core": "^36.8.4"
27
+ "victory-core": "^36.8.5"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.6.0"
@@ -1,5 +1,4 @@
1
1
  import {
2
- assign,
3
2
  isFunction,
4
3
  defaults,
5
4
  isEmpty,
@@ -182,7 +181,7 @@ export class VictorySharedEvents extends React.Component<VictorySharedEventsProp
182
181
  const children = React.Children.toArray(this.props.children);
183
182
  const childBaseProps = this.getBasePropsFromChildren(children);
184
183
  const parentBaseProps = container ? container.props : {};
185
- return assign({}, childBaseProps, { parent: parentBaseProps });
184
+ return Object.assign({}, childBaseProps, { parent: parentBaseProps });
186
185
  }
187
186
 
188
187
  getBasePropsFromChildren(childComponents) {
@@ -254,7 +253,7 @@ export class VictorySharedEvents extends React.Component<VictorySharedEventsProp
254
253
  return memo.concat(
255
254
  React.cloneElement(
256
255
  child,
257
- assign(
256
+ Object.assign(
258
257
  { key: `events-${name}`, sharedEvents, eventKey, name },
259
258
  child.props,
260
259
  ),
@@ -308,7 +307,7 @@ export class VictorySharedEvents extends React.Component<VictorySharedEventsProp
308
307
  return role === "container"
309
308
  ? React.cloneElement(
310
309
  container,
311
- assign({}, parentProps, { events: localEvents }),
310
+ Object.assign({}, parentProps, { events: localEvents }),
312
311
  )
313
312
  : React.cloneElement(container, localEvents, children);
314
313
  }