victory-shared-events 36.2.2 → 36.4.0

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.
@@ -56,51 +56,65 @@ __webpack_require__.r(__webpack_exports__);
56
56
 
57
57
 
58
58
 
59
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
59
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
60
60
 
61
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
61
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
62
62
 
63
- function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
63
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
64
64
 
65
65
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
66
66
 
67
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
67
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
68
68
 
69
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
69
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
70
70
 
71
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
71
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
72
72
 
73
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
73
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
74
+
75
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
76
+
77
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
74
78
 
75
79
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
76
80
 
77
81
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
78
82
 
79
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
83
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
84
+
85
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
80
86
 
81
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
87
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
82
88
 
83
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
89
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
90
+
91
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
84
92
 
85
93
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
86
94
 
95
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
87
96
 
97
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
88
98
 
99
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
89
100
 
90
101
 
91
102
 
92
103
 
93
- var VictorySharedEvents =
94
- /*#__PURE__*/
95
- function (_React$Component) {
104
+
105
+
106
+
107
+ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
96
108
  _inherits(VictorySharedEvents, _React$Component);
97
109
 
110
+ var _super = _createSuper(VictorySharedEvents);
111
+
98
112
  function VictorySharedEvents(props) {
99
113
  var _this;
100
114
 
101
115
  _classCallCheck(this, VictorySharedEvents);
102
116
 
103
- _this = _possibleConstructorReturn(this, (VictorySharedEvents.__proto__ || Object.getPrototypeOf(VictorySharedEvents)).call(this, props));
117
+ _this = _super.call(this, props);
104
118
  _this.state = _this.state || {};
105
119
  _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
106
120
  _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
@@ -274,7 +288,7 @@ function (_React$Component) {
274
288
  if (child.props.children) {
275
289
  var newChildren = react__WEBPACK_IMPORTED_MODULE_7___default().Children.toArray(child.props.children);
276
290
  var names = childNames.slice(index, index + newChildren.length);
277
- var results = react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, child.props, alterChildren(newChildren, names));
291
+ var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, child.props, alterChildren(newChildren, names));
278
292
  return memo.concat(results);
279
293
  } else if (childNames[index] !== "parent" && child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) {
280
294
  var name = child.props.name || childNames[index];
@@ -300,7 +314,7 @@ function (_React$Component) {
300
314
 
301
315
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
302
316
 
303
- return memo.concat(react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
317
+ return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
304
318
  key: "events-".concat(name),
305
319
  sharedEvents: sharedEvents,
306
320
  eventKey: eventKey,
@@ -350,9 +364,9 @@ function (_React$Component) {
350
364
 
351
365
  this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(containerEvents);
352
366
  var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(containerEvents);
353
- return role === "container" ? react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
367
+ return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
354
368
  events: localEvents
355
- })) : react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
369
+ })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
356
370
  }
357
371
  }, {
358
372
  key: "render",
@@ -363,7 +377,7 @@ function (_React$Component) {
363
377
  return this.getContainer(this.props, this.baseProps, events);
364
378
  }
365
379
 
366
- return react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(this.props.container, {
380
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(this.props.container, {
367
381
  children: this.props.children
368
382
  });
369
383
  }
@@ -372,184 +386,36 @@ function (_React$Component) {
372
386
  return VictorySharedEvents;
373
387
  }((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
374
388
 
375
- Object.defineProperty(VictorySharedEvents, "displayName", {
376
- configurable: true,
377
- enumerable: true,
378
- writable: true,
379
- value: "VictorySharedEvents"
380
- });
381
- Object.defineProperty(VictorySharedEvents, "role", {
382
- configurable: true,
383
- enumerable: true,
384
- writable: true,
385
- value: "shared-event-wrapper"
386
- });
387
- Object.defineProperty(VictorySharedEvents, "propTypes", {
388
- configurable: true,
389
- enumerable: true,
390
- writable: true,
391
- value: {
392
- children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
393
- container: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node),
394
- eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
395
- events: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
396
- childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)]),
397
- eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
398
- eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
399
- target: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)
400
- })),
401
- externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
402
- callback: (prop_types__WEBPACK_IMPORTED_MODULE_8___default()["function"]),
403
- childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)]),
404
- eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
405
- mutation: (prop_types__WEBPACK_IMPORTED_MODULE_8___default()["function"]),
406
- target: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)])
407
- })),
408
- groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)
409
- }
410
- });
411
- Object.defineProperty(VictorySharedEvents, "defaultProps", {
412
- configurable: true,
413
- enumerable: true,
414
- writable: true,
415
- value: {
416
- groupComponent: react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
417
- }
418
- });
419
- Object.defineProperty(VictorySharedEvents, "contextType", {
420
- configurable: true,
421
- enumerable: true,
422
- writable: true,
423
- value: victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]
424
- });
425
-
426
-
427
- /***/ }),
428
-
429
- /***/ "../../../node_modules/d3-timer/src/timer.js":
430
- /*!***************************************************!*\
431
- !*** ../../../node_modules/d3-timer/src/timer.js ***!
432
- \***************************************************/
433
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
434
-
435
- "use strict";
436
- __webpack_require__.r(__webpack_exports__);
437
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
438
- /* harmony export */ "now": () => (/* binding */ now),
439
- /* harmony export */ "Timer": () => (/* binding */ Timer),
440
- /* harmony export */ "timer": () => (/* binding */ timer),
441
- /* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
442
- /* harmony export */ });
443
- var frame = 0, // is an animation frame pending?
444
- timeout = 0, // is a timeout pending?
445
- interval = 0, // are any timers active?
446
- pokeDelay = 1000, // how frequently we check for clock skew
447
- taskHead,
448
- taskTail,
449
- clockLast = 0,
450
- clockNow = 0,
451
- clockSkew = 0,
452
- clock = typeof performance === "object" && performance.now ? performance : Date,
453
- setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
454
-
455
- function now() {
456
- return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
457
- }
458
-
459
- function clearNow() {
460
- clockNow = 0;
461
- }
462
-
463
- function Timer() {
464
- this._call =
465
- this._time =
466
- this._next = null;
467
- }
468
-
469
- Timer.prototype = timer.prototype = {
470
- constructor: Timer,
471
- restart: function(callback, delay, time) {
472
- if (typeof callback !== "function") throw new TypeError("callback is not a function");
473
- time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
474
- if (!this._next && taskTail !== this) {
475
- if (taskTail) taskTail._next = this;
476
- else taskHead = this;
477
- taskTail = this;
478
- }
479
- this._call = callback;
480
- this._time = time;
481
- sleep();
482
- },
483
- stop: function() {
484
- if (this._call) {
485
- this._call = null;
486
- this._time = Infinity;
487
- sleep();
488
- }
489
- }
490
- };
491
-
492
- function timer(callback, delay, time) {
493
- var t = new Timer;
494
- t.restart(callback, delay, time);
495
- return t;
496
- }
389
+ _defineProperty(VictorySharedEvents, "displayName", "VictorySharedEvents");
497
390
 
498
- function timerFlush() {
499
- now(); // Get the current time, if not already set.
500
- ++frame; // Pretend we’ve set an alarm, if we haven’t already.
501
- var t = taskHead, e;
502
- while (t) {
503
- if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
504
- t = t._next;
505
- }
506
- --frame;
507
- }
391
+ _defineProperty(VictorySharedEvents, "role", "shared-event-wrapper");
508
392
 
509
- function wake() {
510
- clockNow = (clockLast = clock.now()) + clockSkew;
511
- frame = timeout = 0;
512
- try {
513
- timerFlush();
514
- } finally {
515
- frame = 0;
516
- nap();
517
- clockNow = 0;
518
- }
519
- }
393
+ _defineProperty(VictorySharedEvents, "propTypes", {
394
+ children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
395
+ container: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node),
396
+ eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
397
+ events: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
398
+ childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)]),
399
+ eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
400
+ eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
401
+ target: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)
402
+ })),
403
+ externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
404
+ callback: (prop_types__WEBPACK_IMPORTED_MODULE_8___default()["function"]),
405
+ childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)]),
406
+ eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
407
+ mutation: (prop_types__WEBPACK_IMPORTED_MODULE_8___default()["function"]),
408
+ target: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)])
409
+ })),
410
+ groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)
411
+ });
520
412
 
521
- function poke() {
522
- var now = clock.now(), delay = now - clockLast;
523
- if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
524
- }
413
+ _defineProperty(VictorySharedEvents, "defaultProps", {
414
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
415
+ });
525
416
 
526
- function nap() {
527
- var t0, t1 = taskHead, t2, time = Infinity;
528
- while (t1) {
529
- if (t1._call) {
530
- if (time > t1._time) time = t1._time;
531
- t0 = t1, t1 = t1._next;
532
- } else {
533
- t2 = t1._next, t1._next = null;
534
- t1 = t0 ? t0._next = t2 : taskHead = t2;
535
- }
536
- }
537
- taskTail = t0;
538
- sleep(time);
539
- }
417
+ _defineProperty(VictorySharedEvents, "contextType", victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]);
540
418
 
541
- function sleep(time) {
542
- if (frame) return; // Soonest alarm already set, or will be.
543
- if (timeout) timeout = clearTimeout(timeout);
544
- var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
545
- if (delay > 24) {
546
- if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
547
- if (interval) interval = clearInterval(interval);
548
- } else {
549
- if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
550
- frame = 1, setFrame(wake);
551
- }
552
- }
553
419
 
554
420
 
555
421
  /***/ }),
@@ -6292,13 +6158,17 @@ __webpack_require__.r(__webpack_exports__);
6292
6158
 
6293
6159
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6294
6160
 
6295
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6161
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6162
+
6163
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6296
6164
 
6297
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6165
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6298
6166
 
6299
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6167
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6300
6168
 
6301
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
6169
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6170
+
6171
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6302
6172
 
6303
6173
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
6304
6174
  /* Returns all own and shared events that should be attached to a single target element,
@@ -7077,7 +6947,7 @@ function reduceChildren(children, iteratee) {
7077
6947
  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) {
7078
6948
  var nestedChildProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(childProps, sharedProps));
7079
6949
 
7080
- return react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(c, nestedChildProps);
6950
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(c, nestedChildProps);
7081
6951
  });
7082
6952
 
7083
6953
  var _childNames = nestedChildren.map(function (c, i) {
@@ -7462,7 +7332,7 @@ __webpack_require__.r(__webpack_exports__);
7462
7332
  * timer.
7463
7333
  */
7464
7334
 
7465
- var TimerContext = react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
7335
+ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
7466
7336
  transitionTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"](),
7467
7337
  animationTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"]()
7468
7338
  });
@@ -7482,18 +7352,16 @@ __webpack_require__.r(__webpack_exports__);
7482
7352
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7483
7353
  /* harmony export */ "default": () => (/* binding */ Timer)
7484
7354
  /* harmony export */ });
7485
- /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-timer */ "../../../node_modules/d3-timer/src/timer.js");
7355
+ /* harmony import */ var victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-vendor/d3-timer */ "../../victory-vendor/node_modules/d3-timer/src/timer.js");
7486
7356
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7487
7357
 
7488
7358
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
7489
7359
 
7490
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
7360
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7491
7361
 
7492
7362
 
7493
7363
 
7494
- var Timer =
7495
- /*#__PURE__*/
7496
- function () {
7364
+ var Timer = /*#__PURE__*/function () {
7497
7365
  function Timer() {
7498
7366
  _classCallCheck(this, Timer);
7499
7367
 
@@ -7518,14 +7386,14 @@ function () {
7518
7386
  key: "loop",
7519
7387
  value: function loop() {
7520
7388
  this.subscribers.forEach(function (s) {
7521
- s.callback((0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
7389
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
7522
7390
  });
7523
7391
  }
7524
7392
  }, {
7525
7393
  key: "start",
7526
7394
  value: function start() {
7527
7395
  if (!this.timer) {
7528
- this.timer = (0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
7396
+ this.timer = (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
7529
7397
  }
7530
7398
  }
7531
7399
  }, {
@@ -7541,7 +7409,7 @@ function () {
7541
7409
  value: function subscribe(callback, duration) {
7542
7410
  duration = this.shouldAnimate ? duration : 0;
7543
7411
  var subscriptionID = this.subscribers.push({
7544
- startTime: (0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
7412
+ startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
7545
7413
  callback: callback,
7546
7414
  duration: duration
7547
7415
  });
@@ -7579,6 +7447,134 @@ function () {
7579
7447
  "use strict";
7580
7448
  module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
7581
7449
 
7450
+ /***/ }),
7451
+
7452
+ /***/ "../../victory-vendor/node_modules/d3-timer/src/timer.js":
7453
+ /*!***************************************************************!*\
7454
+ !*** ../../victory-vendor/node_modules/d3-timer/src/timer.js ***!
7455
+ \***************************************************************/
7456
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7457
+
7458
+ "use strict";
7459
+ __webpack_require__.r(__webpack_exports__);
7460
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7461
+ /* harmony export */ "now": () => (/* binding */ now),
7462
+ /* harmony export */ "Timer": () => (/* binding */ Timer),
7463
+ /* harmony export */ "timer": () => (/* binding */ timer),
7464
+ /* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
7465
+ /* harmony export */ });
7466
+ var frame = 0, // is an animation frame pending?
7467
+ timeout = 0, // is a timeout pending?
7468
+ interval = 0, // are any timers active?
7469
+ pokeDelay = 1000, // how frequently we check for clock skew
7470
+ taskHead,
7471
+ taskTail,
7472
+ clockLast = 0,
7473
+ clockNow = 0,
7474
+ clockSkew = 0,
7475
+ clock = typeof performance === "object" && performance.now ? performance : Date,
7476
+ setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
7477
+
7478
+ function now() {
7479
+ return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
7480
+ }
7481
+
7482
+ function clearNow() {
7483
+ clockNow = 0;
7484
+ }
7485
+
7486
+ function Timer() {
7487
+ this._call =
7488
+ this._time =
7489
+ this._next = null;
7490
+ }
7491
+
7492
+ Timer.prototype = timer.prototype = {
7493
+ constructor: Timer,
7494
+ restart: function(callback, delay, time) {
7495
+ if (typeof callback !== "function") throw new TypeError("callback is not a function");
7496
+ time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
7497
+ if (!this._next && taskTail !== this) {
7498
+ if (taskTail) taskTail._next = this;
7499
+ else taskHead = this;
7500
+ taskTail = this;
7501
+ }
7502
+ this._call = callback;
7503
+ this._time = time;
7504
+ sleep();
7505
+ },
7506
+ stop: function() {
7507
+ if (this._call) {
7508
+ this._call = null;
7509
+ this._time = Infinity;
7510
+ sleep();
7511
+ }
7512
+ }
7513
+ };
7514
+
7515
+ function timer(callback, delay, time) {
7516
+ var t = new Timer;
7517
+ t.restart(callback, delay, time);
7518
+ return t;
7519
+ }
7520
+
7521
+ function timerFlush() {
7522
+ now(); // Get the current time, if not already set.
7523
+ ++frame; // Pretend we’ve set an alarm, if we haven’t already.
7524
+ var t = taskHead, e;
7525
+ while (t) {
7526
+ if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e);
7527
+ t = t._next;
7528
+ }
7529
+ --frame;
7530
+ }
7531
+
7532
+ function wake() {
7533
+ clockNow = (clockLast = clock.now()) + clockSkew;
7534
+ frame = timeout = 0;
7535
+ try {
7536
+ timerFlush();
7537
+ } finally {
7538
+ frame = 0;
7539
+ nap();
7540
+ clockNow = 0;
7541
+ }
7542
+ }
7543
+
7544
+ function poke() {
7545
+ var now = clock.now(), delay = now - clockLast;
7546
+ if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
7547
+ }
7548
+
7549
+ function nap() {
7550
+ var t0, t1 = taskHead, t2, time = Infinity;
7551
+ while (t1) {
7552
+ if (t1._call) {
7553
+ if (time > t1._time) time = t1._time;
7554
+ t0 = t1, t1 = t1._next;
7555
+ } else {
7556
+ t2 = t1._next, t1._next = null;
7557
+ t1 = t0 ? t0._next = t2 : taskHead = t2;
7558
+ }
7559
+ }
7560
+ taskTail = t0;
7561
+ sleep(time);
7562
+ }
7563
+
7564
+ function sleep(time) {
7565
+ if (frame) return; // Soonest alarm already set, or will be.
7566
+ if (timeout) timeout = clearTimeout(timeout);
7567
+ var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
7568
+ if (delay > 24) {
7569
+ if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
7570
+ if (interval) interval = clearInterval(interval);
7571
+ } else {
7572
+ if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
7573
+ frame = 1, setFrame(wake);
7574
+ }
7575
+ }
7576
+
7577
+
7582
7578
  /***/ })
7583
7579
 
7584
7580
  /******/ });
@@ -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,(function(t){return(()=>{var r={1299:(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},1124:(t,r,e)=>{var n=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,r,e)=>{var n=e(7168),o=e(6582),i=e(3867),a=e(9557),u=e(2726);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},4690:(t,r,e)=>{var n=e(441).Symbol;t.exports=n},5198: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)}},8058:(t,r,e)=>{var n=e(7650);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},7431: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}},6460: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}},3848: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}},4793: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}},7596:(t,r,e)=>{var n=e(999),o=e(6530),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)}},3833:(t,r,e)=>{var n=e(6530);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},999:(t,r,e)=>{var n=e(9346);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},1096:(t,r,e)=>{var n=e(1124),o=e(8058),i=e(7431),a=e(6460),u=e(6535),c=e(555);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}},528:t=>{t.exports=function(t,r,e,n){for(var o=t.length,i=e+(n?1:-1);n?i--:++i<o;)if(r(t[i],i,t))return i;return-1}},314:(t,r,e)=>{var n=e(3848),o=e(1754);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}},166:(t,r,e)=>{var n=e(8422),o=e(8780);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}},4318:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},7:t=>{t.exports=function(t,r){return null!=t&&r in Object(t)}},7650: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}},1071:(t,r,e)=>{var n=e(7229),o=e(3387);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))}},7229:(t,r,e)=>{var n=e(4281),o=e(2503),i=e(6001),a=e(8784),u=e(6686),c=e(7236),s=e(8752),l=e(4812),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),E=m?p:u(r),w=(x=x==f?v:x)==v,O=(E=E==f?v:E)==v,A=x==E;if(A&&s(t)){if(!s(r))return!1;g=!0,w=!1}if(A&&!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 j=w&&h.call(t,"__wrapped__"),_=O&&h.call(r,"__wrapped__");if(j||_){var k=j?t.value():t,S=_?r.value():r;return b||(b=new n),d(k,S,e,y,b)}}return!!A&&(b||(b=new n),a(t,r,e,y,d,b))}},9157:(t,r,e)=>{var n=e(4281),o=e(1071);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}},1131:(t,r,e)=>{var n=e(4318),o=e(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,r,e)=>{var n=e(8418),o=e(4555),i=e(5362),a=e(7236),u=e(1651);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)}},8803:(t,r,e)=>{var n=e(3717)(Object.keys,Object);t.exports=n},8418:(t,r,e)=>{var n=e(9157),o=e(9182),i=e(7375);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)}}},4555:(t,r,e)=>{var n=e(1071),o=e(3795),i=e(3646),a=e(3266),u=e(1457),c=e(7375),s=e(8780);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)}}},7410:(t,r,e)=>{var n=e(6621),o=e(3646);t.exports=function(t,r){return n(t,r,(function(r,e){return o(t,e)}))}},6621:(t,r,e)=>{var n=e(166),o=e(8116),i=e(8422);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}},1712:t=>{t.exports=function(t){return function(r){return null==r?void 0:r[t]}}},4815:(t,r,e)=>{var n=e(166);t.exports=function(t){return function(r){return n(r,t)}}},4569:(t,r,e)=>{var n=e(5362),o=e(4468),i=e(8756);t.exports=function(t,r){return i(o(t,r,n),t+"")}},8116:(t,r,e)=>{var n=e(7596),o=e(8422),i=e(4363),a=e(5973),u=e(8780);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}},454:(t,r,e)=>{var n=e(4690),o=e(6460),i=e(7236),a=e(2945),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}},3349:(t,r,e)=>{var n=e(5720),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},6535:t=>{t.exports=function(t){return function(r){return t(r)}}},4351:(t,r,e)=>{var n=e(1124),o=e(8058),i=e(7431),a=e(555),u=e(8491),c=e(6350);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}},555:(t,r,e)=>{var n=e(7650);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},8422:(t,r,e)=>{var n=e(7236),o=e(3266),i=e(3879),a=e(1119);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},6051:(t,r,e)=>{var n=e(7596),o=e(999);t.exports=function(t,r,e,i){var a=!e;e||(e={});for(var u=-1,c=r.length;++u<c;){var s=r[u],l=i?i(e[s],t[s],s,e,t):void 0;void 0===l&&(l=t[s]),a?o(e,s,l):n(e,s,l)}return e}},2544:(t,r,e)=>{var n=e(4569),o=e(3108);t.exports=function(t){return n((function(r,e){var n=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++n<i;){var c=e[n];c&&t(r,c,n,a)}return r}))}},3086:(t,r,e)=>{var n=e(8904),o=e(1580),i=e(2635);t.exports=function(t){return function(r,e,a){var u=Object(r);if(!o(r)){var c=n(e,3);r=i(r),e=function(t){return c(u[t],t,u)}}var s=t(r,e,a);return s>-1?u[c?r[s]:s]:void 0}}},8491:t=>{t.exports=function(){}},9346:(t,r,e)=>{var n=e(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,r,e)=>{var n=e(1124),o=e(4793),i=e(555);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}},6001:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},8784:(t,r,e)=>{var n=e(6094),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,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 u.delete(t),u.delete(r),y}},3368:(t,r,e)=>{var n=e(5453),o=e(4468),i=e(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},6094:(t,r,e)=>{var n=e(3717)(Object.keys,Object);t.exports=n},5559:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},9182:(t,r,e)=>{var n=e(1457),o=e(2635);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}},4457:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},6686:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},7383:(t,r,e)=>{var n=e(8422),o=e(6981),i=e(7236),a=e(4363),u=e(9216),c=e(8780);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))}},1754:(t,r,e)=>{var n=e(4690),o=e(6981),i=e(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363: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}},3108:t=>{t.exports=function(){return!1}},3266:(t,r,e)=>{var n=e(7236),o=e(2945),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)}},5003:t=>{t.exports=function(){return!1}},1457:(t,r,e)=>{var n=e(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,r,e)=>{var n=e(3833),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))}},3867:(t,r,e)=>{var n=e(3833);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},9557:(t,r,e)=>{var n=e(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,r,e)=>{var n=e(3833);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}},7375:t=>{t.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,r,e)=>{t=e.nmd(t);var n=e(4414),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},4468:(t,r,e)=>{var n=e(5198),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)}}},441:(t,r,e)=>{var n=e(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6350:t=>{t.exports=function(){return[]}},8756:t=>{t.exports=function(t){return t}},3879:(t,r,e)=>{var n=e(7085),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},8780:(t,r,e)=>{var n=e(2945);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},5720:t=>{var r=/\s/;t.exports=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},6782:(t,r,e)=>{var n=e(7596),o=e(6051),i=e(2544),a=e(1580),u=e(5003),c=e(2635),s=Object.prototype.hasOwnProperty,l=i((function(t,r){if(u(r)||a(r))o(r,c(r),t);else for(var e in r)s.call(r,e)&&n(t,e,r[e])}));t.exports=l},7901:(t,r,e)=>{var n=e(4569),o=e(6530),i=e(3108),a=e(5850),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},484:(t,r,e)=>{var n=e(1096),o=e(314),i=e(4569),a=e(9747),u=i((function(t,r){return a(t)?n(t,o(r,1,a,!0)):[]}));t.exports=u},6530:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},6786:(t,r,e)=>{var n=e(3086)(e(8611));t.exports=n},8611:(t,r,e)=>{var n=e(528),o=e(8904),i=e(5225),a=Math.max;t.exports=function(t,r,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),n(t,o(r,3),c)}},5453:(t,r,e)=>{var n=e(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},5161: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}},3795:(t,r,e)=>{var n=e(166);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},3646:(t,r,e)=>{var n=e(7),o=e(7383);t.exports=function(t,r){return null!=t&&o(t,r,n)}},5362:t=>{t.exports=function(t){return t}},6901:(t,r,e)=>{var n=e(7650);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var r=Array.isArray;t.exports=r},1580:(t,r,e)=>{var n=e(3839),o=e(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},9747:(t,r,e)=>{var n=e(1580),o=e(3387);t.exports=function(t){return o(t)&&n(t)}},8752:t=>{t.exports=function(){return!1}},6834:(t,r,e)=>{var n=e(8803),o=e(6686),i=e(6981),a=e(7236),u=e(1580),c=e(8752),s=e(5003),l=e(4812),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}},3839:(t,r,e)=>{var n=e(4318),o=e(5973);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}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,r,e)=>{var n=e(1131),o=e(6535),i=e(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,r,e)=>{var n=e(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},5913: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)}}},5492:(t,r,e)=>{var n=e(8904),o=e(5913),i=e(9922);t.exports=function(t,r){return i(t,o(n(r)))}},8423:(t,r,e)=>{var n=e(7410),o=e(3368)((function(t,r){return null==t?{}:n(t,r)}));t.exports=o},9922:(t,r,e)=>{var n=e(6460),o=e(8904),i=e(6621),a=e(5559);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])}))}},1651:(t,r,e)=>{var n=e(1712),o=e(4815),i=e(3266),a=e(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},992:(t,r,e)=>{var n=e(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,r,e)=>{var n=e(992);t.exports=function(t){var r=n(t),e=r%1;return r==r?e?r-e:r:0}},8746:(t,r,e)=>{var n=e(3349),o=e(5973),i=e(2945),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=o(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var e=u.test(t);return e||c.test(t)?s(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:(t,r,e)=>{var n=e(454);t.exports=function(t){return null==t?"":n(t)}},1815:(t,r,e)=>{var n=e(4351);t.exports=function(t){return t&&t.length?n(t):[]}},6205:(t,r,e)=>{var n=e(1096),o=e(4569),i=e(9747),a=o((function(t,r){return i(t)?n(t,r):[]}));t.exports=a},459:(t,r,e)=>{"use strict";var n=e(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,r,e,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function r(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},216:(t,r,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{"use strict";var r=Array.isArray,e=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){var u,c,s,l=r(t),f=r(a);if(l&&f){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(!i(t[u],a[u]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,v=a instanceof Date;if(p!=v)return!1;if(p&&v)return t.getTime()==a.getTime();var h=t instanceof RegExp,y=a instanceof RegExp;if(h!=y)return!1;if(h&&y)return t.toString()==a.toString();var d=e(t);if((c=d.length)!==e(a).length)return!1;for(u=c;0!=u--;)if(!n.call(a,d[u]))return!1;if(o&&t instanceof Element&&a instanceof Element)return t===a;for(u=c;0!=u--;)if(!("_owner"===(s=d[u])&&t.$$typeof||i(t[s],a[s])))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,r){try{return i(t,r)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!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]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,n),i.loaded=!0,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})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{VictorySharedEvents:()=>jt});var t=n(484),r=n.n(t),e=n(2635),i=n.n(e),a=n(5161),u=n.n(a),c=n(6834),s=n.n(c),l=n(7901),f=n.n(l),p=n(3839),v=n.n(p),h=n(6782),y=n.n(h),d=n(9787),b=n.n(d),g=n(216),m=n.n(g),x=n(6901),E=n.n(x),w=n(1815),O=n.n(w),A=n(5492),j=n.n(A),_=n(9922),k=n.n(_),S=n(6205),P=n.n(S);function T(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function C(t){return function(t){if(Array.isArray(t)){for(var r=0,e=new Array(t.length);r<t.length;r++)e[r]=t[r];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var N=/^onGlobal(.*)$/;function K(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)?E()(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}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,C(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 y()({},l,c)}function G(t,r,e,n){var o=this;if(s()(t))return{};n=n||this.baseProps;var a=function(t,r){var e=t.childName,i=t.target,a=t.key,u="props"===r?n:o.state||{},c=null!=e&&u[e]?u[e]:u;return"parent"===a?c.parent:c[a]&&c[a][i]},u=function(t,u){var c="parent"===r?t.childName:t.childName||e,s=t.target||r,l=function(r,e){var u=o.state||{};if(!v()(t.mutation))return u;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),n),p=u[e]||{},h=function(t){return f?function(t){return"parent"===s?y()(t,T({},r,y()(t[r],f))):y()(t,T({},r,y()(t[r],T({},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()(u,T({},e,h(p))):h(u)},f=function(r){var e=function(r){return"parent"===s?"parent":"all"===t.eventKey?n[r]?P()(i()(n[r]),"parent"):P()(i()(n),"parent"):void 0===t.eventKey&&"parent"===u?n[r]?i()(n[r]):i()(n):void 0!==t.eventKey?t.eventKey:u}(r);return Array.isArray(e)?e.reduce((function(t,e){return y()(t,l(e,r))}),{}):l(e,r)},p="all"===c?P()(i()(n),"parent"):c;return Array.isArray(p)?p.reduce((function(t,r){return y()(t,f(r))}),{}):f(p)},c=function(r,e,n,i){var a=t[i](r,e,n,o);if(!s()(a)){var c=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 y()({},t,u(e,r))}),{}):u(t,r)}(a,n),c)}};return i()(t).reduce((function(t,r){return t[r]=c,t}),{})}function M(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 R(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 E()(e,n[r])}return!1},i=t=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(){})(y()({},r,e));return y()({},t,o)}),{})}}function L(t){var r=t.match(N);return r&&r[1]&&r[1].toLowerCase()}var q=n(8423),I=n.n(q);n(1651);var F=n(2654),$=n.n(F),B=n(6786),D=n.n(B),z=function(t){var r=function(r,e,n,o){var i=e[n];if(null==i)return r?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[e,n,o].concat(u))},e=r.bind(null,!1);return e.isRequired=r.bind(null,!0),e},U=function(){return null},V=function(){},W=function(t){return void 0===t?V:null===t?U:t.constructor},H=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function J(t){return z((function(r,e,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[r,e,n].concat(i))}),void 0)}))}var Y,Q,X=z((function(t,r,e){var n=t[r];if("number"!=typeof n||n<0)return new Error("`".concat(r,"` in `").concat(e,"` must be a non-negative number."))})),Z=z((function(t,r,e){var n=t[r];if("number"!=typeof n||n%1!=0)return new Error("`".concat(r,"` in `").concat(e,"` must be an integer."))})),tt=(z((function(t,r,e){var n=t[r];if("number"!=typeof n||n<=0)return new Error("`".concat(r,"` in `").concat(e,"` must be a number greater than zero."))})),z((function(t,r,e){var n=t[r];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(r,"` in `").concat(e,"` must be an array of two unique numeric values."))})),z((function(t,r,e){var n;if(n=t[r],!(v()(n)?v()(n.copy)&&v()(n.domain)&&v()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(r,"` in `").concat(e,"` must be a d3 scale."))})),z((function(t,r,e){var n=t[r];if(!Array.isArray(n))return new Error("`".concat(r,"` in `").concat(e,"` must be an array."));if(!(n.length<2)){var o=W(n[0]),i=D()(n,(function(t){return o!==W(t)}));if(i){var a=H(n[0]),u=H(i);return new Error("Expected `".concat(r,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),z((function(t,r){if(t[r]&&Array.isArray(t[r])&&t[r].length!==t.data.length)return new Error("Length of data and ".concat(r," arrays must match."))})),z((function(t,r,e){if(t[r]&&!$()(t[r]))return new Error("`".concat(r,"` in `").concat(e,"` must be a regular expression."))})),0),rt=0,et=0,nt=0,ot=0,it=0,at="object"==typeof performance&&performance.now?performance:Date,ut="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ct(){return ot||(ut(st),ot=at.now()+it)}function st(){ot=0}function lt(){this._call=this._time=this._next=null}function ft(t,r,e){var n=new lt;return n.restart(t,r,e),n}function pt(){ot=(nt=at.now())+it,tt=rt=0;try{!function(){ct(),++tt;for(var t,r=Y;r;)(t=ot-r._time)>=0&&r._call.call(null,t),r=r._next;--tt}()}finally{tt=0,function(){for(var t,r,e=Y,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:Y=r);Q=t,ht(n)}(),ot=0}}function vt(){var t=at.now(),r=t-nt;r>1e3&&(it-=r,nt=t)}function ht(t){tt||(rt&&(rt=clearTimeout(rt)),t-ot>24?(t<1/0&&(rt=setTimeout(pt,t-at.now()-it)),et&&(et=clearInterval(et))):(et||(nt=at.now(),et=setInterval(vt,1e3)),tt=1,ut(pt)))}function yt(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)}}lt.prototype=ft.prototype={constructor:lt,restart:function(t,r,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ct():+e)+(null==r?0:+r),this._next||Q===this||(Q?Q._next=this:Y=this,Q=this),this._call=t,this._time=e,ht()},stop:function(){this._call&&(this._call=null,this._time=1/0,ht())}};var dt=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),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:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(ct()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=ft(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,r){r=this.shouldAnimate?r:0;var e=this.subscribers.push({startTime:ct(),callback:t,duration:r});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()}}])&&yt(r.prototype,e),t}(),bt=b().createContext({transitionTimer:new dt,animationTimer:new dt});bt.displayName="TimerContext";const gt=bt;var mt=n(8266),xt=n.n(mt),Et=n(1299),wt=n.n(Et);function Ot(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 At(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var jt=function(t){function e(t){var r;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,r){return!r||"object"!=typeof r&&"function"!=typeof r?At(t):r}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).state=r.state||{},r.getScopedEvents=G.bind(At(r)),r.getEventState=M.bind(At(r)),r.baseProps=r.getBaseProps(t),r.sharedEventsCache={},r.globalEvents={},r.prevGlobalEventKeys=[],r.boundGlobalEvents={},r}var n,o;return 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,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r)}(e,t),n=e,o=[{key:"shouldComponentUpdate",value:function(t){if(!xt()(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(L(t),e)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(L(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,o=t[e],i=o&&o.type&&o.type.defaultEvents,a=v()(i)?i(o.props):i;return Array.isArray(a)?(n=r).concat.apply(n,C(a)):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)){for(var r=0,e=new Array(t.length);r<t.length;r++)e[r]=t[r];return e}}(r=t.events)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()):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,r,e,n){return r=r||{},e=e||{},n.reduce((function(n,o){var a=e[o],u=function(t,r,e,n){return r=r||{},e=e||{},i()(r).reduce((function(o,a){var u=e[a]||{},c=r[a]||{};if("parent"===a){var l=R(t,c,u,{eventKey:a,target:"parent"});o[a]=void 0!==l?y()({},u,l):u}else{var f=O()(i()(c).concat(i()(u)));o[a]=f.reduce((function(r,e){var o={eventKey:a,target:e,childName:n},i=R(t,c[e],u[e],o);return r[e]=void 0!==i?y()({},u[e],i):u[e],k()(r,(function(t){return!s()(t)}))}),{})}return k()(o,(function(t){return!s()(t)}))}),{})}(t,r[o],e[o],o);return n[o]=u||a,k()(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=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(e.push(a.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return e}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1];if(i&&xt()(r,a))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"],a=function(t,u,c){return t.reduce((function(t,n,s){var l=n.type&&n.type.role,f=n.props.name||"".concat(l,"-").concat(u[s]);if(n.props&&n.props.children){var p=y()({},n.props,I()(e,i)),h=n.type&&"stack"===n.type.role&&v()(n.type.getChildren)?n.type.getChildren(p):b().Children.toArray(n.props.children).map((function(t){var r=y()({},t.props,I()(p,i));return b().cloneElement(t,r)})),d=h.map((function(t,r){return"".concat(f,"-").concat(r)})),g=a(h,d,n);t=o(t,g)}else{var m=r(n,f,c);m&&(t=o(t,m))}return t}),n)},u=t.map((function(t,r){return r}));return a(t,u)}(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=b().Children.toArray(u.props.children),l=i.slice(c,c+s.length),f=b().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,wt()(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(u,y()({key:"events-".concat(p),sharedEvents:g,eventKey:o,name:p},u.props)))}return t.concat(u)}),[])},u=i()(r),c=b().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=K.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 k()(t,(function(t,r){return N.test(r)}))}(d);var g=function(t){return j()(t,(function(t,r){return N.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})}}],o&&Ot(n.prototype,o),e}(b().Component);Object.defineProperty(jt,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictorySharedEvents"}),Object.defineProperty(jt,"role",{configurable:!0,enumerable:!0,writable:!0,value:"shared-event-wrapper"}),Object.defineProperty(jt,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:m().oneOfType([m().arrayOf(m().node),m().node]),container:m().node,eventKey:m().oneOfType([m().array,m().func,J([Z,X]),m().string]),events:m().arrayOf(m().shape({childName:m().oneOfType([m().string,m().array]),eventHandlers:m().object,eventKey:m().oneOfType([m().array,m().func,J([Z,X]),m().string]),target:m().string})),externalEventMutations:m().arrayOf(m().shape({callback:m().function,childName:m().oneOfType([m().string,m().array]),eventKey:m().oneOfType([m().array,J([Z,X]),m().string]),mutation:m().function,target:m().oneOfType([m().string,m().array])})),groupComponent:m().node}}),Object.defineProperty(jt,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:b().createElement("g",null)}}),Object.defineProperty(jt,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:gt})})(),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,(function(t){return(()=>{var r={1299:(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},1124:(t,r,e)=>{var n=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,r,e)=>{var n=e(7168),o=e(6582),i=e(3867),a=e(9557),u=e(2726);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},4690:(t,r,e)=>{var n=e(441).Symbol;t.exports=n},5198: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)}},8058:(t,r,e)=>{var n=e(7650);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},7431: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}},6460: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}},3848: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}},4793: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}},7596:(t,r,e)=>{var n=e(999),o=e(6530),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)}},3833:(t,r,e)=>{var n=e(6530);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},999:(t,r,e)=>{var n=e(9346);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},1096:(t,r,e)=>{var n=e(1124),o=e(8058),i=e(7431),a=e(6460),u=e(6535),c=e(555);t.exports=function(t,r,e,s){var f=-1,l=o,p=!0,v=t.length,h=[],y=r.length;if(!v)return h;e&&(r=a(r,u(e))),s?(l=i,p=!1):r.length>=200&&(l=c,p=!1,r=new n(r));t:for(;++f<v;){var d=t[f],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 l(r,b,s)||h.push(d)}return h}},528:t=>{t.exports=function(t,r,e,n){for(var o=t.length,i=e+(n?1:-1);n?i--:++i<o;)if(r(t[i],i,t))return i;return-1}},314:(t,r,e)=>{var n=e(3848),o=e(1754);t.exports=function t(r,e,i,a,u){var c=-1,s=r.length;for(i||(i=o),u||(u=[]);++c<s;){var f=r[c];e>0&&i(f)?e>1?t(f,e-1,i,a,u):n(u,f):a||(u[u.length]=f)}return u}},166:(t,r,e)=>{var n=e(8422),o=e(8780);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}},4318:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},7:t=>{t.exports=function(t,r){return null!=t&&r in Object(t)}},7650: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}},1071:(t,r,e)=>{var n=e(7229),o=e(3387);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))}},7229:(t,r,e)=>{var n=e(4281),o=e(2503),i=e(6001),a=e(8784),u=e(6686),c=e(7236),s=e(8752),f=e(4812),l="[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),E=m?p:u(r),w=(x=x==l?v:x)==v,O=(E=E==l?v:E)==v,A=x==E;if(A&&s(t)){if(!s(r))return!1;g=!0,w=!1}if(A&&!w)return b||(b=new n),g||f(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var j=w&&h.call(t,"__wrapped__"),_=O&&h.call(r,"__wrapped__");if(j||_){var S=j?t.value():t,k=_?r.value():r;return b||(b=new n),d(S,k,e,y,b)}}return!!A&&(b||(b=new n),a(t,r,e,y,d,b))}},9157:(t,r,e)=>{var n=e(4281),o=e(1071);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 f=(s=e[a])[0],l=t[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in t))return!1}else{var v=new n;if(i)var h=i(l,p,f,t,r,v);if(!(void 0===h?o(p,l,3,i,v):h))return!1}}return!0}},1131:(t,r,e)=>{var n=e(4318),o=e(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,r,e)=>{var n=e(8418),o=e(4555),i=e(5362),a=e(7236),u=e(1651);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)}},8803:(t,r,e)=>{var n=e(3717)(Object.keys,Object);t.exports=n},8418:(t,r,e)=>{var n=e(9157),o=e(9182),i=e(7375);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)}}},4555:(t,r,e)=>{var n=e(1071),o=e(3795),i=e(3646),a=e(3266),u=e(1457),c=e(7375),s=e(8780);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)}}},7410:(t,r,e)=>{var n=e(6621),o=e(3646);t.exports=function(t,r){return n(t,r,(function(r,e){return o(t,e)}))}},6621:(t,r,e)=>{var n=e(166),o=e(8116),i=e(8422);t.exports=function(t,r,e){for(var a=-1,u=r.length,c={};++a<u;){var s=r[a],f=n(t,s);e(f,s)&&o(c,i(s,t),f)}return c}},1712:t=>{t.exports=function(t){return function(r){return null==r?void 0:r[t]}}},4815:(t,r,e)=>{var n=e(166);t.exports=function(t){return function(r){return n(r,t)}}},4569:(t,r,e)=>{var n=e(5362),o=e(4468),i=e(8756);t.exports=function(t,r){return i(o(t,r,n),t+"")}},8116:(t,r,e)=>{var n=e(7596),o=e(8422),i=e(4363),a=e(5973),u=e(8780);t.exports=function(t,r,e,c){if(!a(t))return t;for(var s=-1,f=(r=o(r,t)).length,l=f-1,p=t;null!=p&&++s<f;){var v=u(r[s]),h=e;if("__proto__"===v||"constructor"===v||"prototype"===v)return t;if(s!=l){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}},454:(t,r,e)=>{var n=e(4690),o=e(6460),i=e(7236),a=e(2945),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}},3349:(t,r,e)=>{var n=e(5720),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},6535:t=>{t.exports=function(t){return function(r){return t(r)}}},4351:(t,r,e)=>{var n=e(1124),o=e(8058),i=e(7431),a=e(555),u=e(8491),c=e(6350);t.exports=function(t,r,e){var s=-1,f=o,l=t.length,p=!0,v=[],h=v;if(e)p=!1,f=i;else if(l>=200){var y=r?null:u(t);if(y)return c(y);p=!1,f=a,h=new n}else h=r?[]:v;t:for(;++s<l;){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 f(h,b,e)||(h!==v&&h.push(b),v.push(d))}return v}},555:(t,r,e)=>{var n=e(7650);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},8422:(t,r,e)=>{var n=e(7236),o=e(3266),i=e(3879),a=e(1119);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},6051:(t,r,e)=>{var n=e(7596),o=e(999);t.exports=function(t,r,e,i){var a=!e;e||(e={});for(var u=-1,c=r.length;++u<c;){var s=r[u],f=i?i(e[s],t[s],s,e,t):void 0;void 0===f&&(f=t[s]),a?o(e,s,f):n(e,s,f)}return e}},2544:(t,r,e)=>{var n=e(4569),o=e(3108);t.exports=function(t){return n((function(r,e){var n=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++n<i;){var c=e[n];c&&t(r,c,n,a)}return r}))}},3086:(t,r,e)=>{var n=e(8904),o=e(1580),i=e(2635);t.exports=function(t){return function(r,e,a){var u=Object(r);if(!o(r)){var c=n(e,3);r=i(r),e=function(t){return c(u[t],t,u)}}var s=t(r,e,a);return s>-1?u[c?r[s]:s]:void 0}}},8491:t=>{t.exports=function(){}},9346:(t,r,e)=>{var n=e(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,r,e)=>{var n=e(1124),o=e(4793),i=e(555);t.exports=function(t,r,e,a,u,c){var s=1&e,f=t.length,l=r.length;if(f!=l&&!(s&&l>f))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<f;){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}},6001:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},8784:(t,r,e)=>{var n=e(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,u){var c=1&e,s=n(t),f=s.length;if(f!=n(r).length&&!c)return!1;for(var l=f;l--;){var p=s[l];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;++l<f;){var b=t[p=s[l]],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,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 u.delete(t),u.delete(r),y}},3368:(t,r,e)=>{var n=e(5453),o=e(4468),i=e(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},6094:(t,r,e)=>{var n=e(3717)(Object.keys,Object);t.exports=n},5559:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},9182:(t,r,e)=>{var n=e(1457),o=e(2635);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}},4457:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},6686:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},7383:(t,r,e)=>{var n=e(8422),o=e(6981),i=e(7236),a=e(4363),u=e(9216),c=e(8780);t.exports=function(t,r,e){for(var s=-1,f=(r=n(r,t)).length,l=!1;++s<f;){var p=c(r[s]);if(!(l=null!=t&&e(t,p)))break;t=t[p]}return l||++s!=f?l:!!(f=null==t?0:t.length)&&u(f)&&a(p,f)&&(i(t)||o(t))}},1754:(t,r,e)=>{var n=e(4690),o=e(6981),i=e(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363: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}},3108:t=>{t.exports=function(){return!1}},3266:(t,r,e)=>{var n=e(7236),o=e(2945),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)}},5003:t=>{t.exports=function(){return!1}},1457:(t,r,e)=>{var n=e(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,r,e)=>{var n=e(3833),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))}},3867:(t,r,e)=>{var n=e(3833);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},9557:(t,r,e)=>{var n=e(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,r,e)=>{var n=e(3833);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}},7375:t=>{t.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,r,e)=>{t=e.nmd(t);var n=e(4414),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},4468:(t,r,e)=>{var n=e(5198),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)}}},441:(t,r,e)=>{var n=e(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6350:t=>{t.exports=function(){return[]}},8756:t=>{t.exports=function(t){return t}},3879:(t,r,e)=>{var n=e(7085),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},8780:(t,r,e)=>{var n=e(2945);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},5720:t=>{var r=/\s/;t.exports=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},6782:(t,r,e)=>{var n=e(7596),o=e(6051),i=e(2544),a=e(1580),u=e(5003),c=e(2635),s=Object.prototype.hasOwnProperty,f=i((function(t,r){if(u(r)||a(r))o(r,c(r),t);else for(var e in r)s.call(r,e)&&n(t,e,r[e])}));t.exports=f},7901:(t,r,e)=>{var n=e(4569),o=e(6530),i=e(3108),a=e(5850),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 f=r[e],l=a(f),p=-1,v=l.length;++p<v;){var h=l[p],y=t[h];(void 0===y||o(y,u[h])&&!c.call(t,h))&&(t[h]=f[h])}return t}));t.exports=s},484:(t,r,e)=>{var n=e(1096),o=e(314),i=e(4569),a=e(9747),u=i((function(t,r){return a(t)?n(t,o(r,1,a,!0)):[]}));t.exports=u},6530:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},6786:(t,r,e)=>{var n=e(3086)(e(8611));t.exports=n},8611:(t,r,e)=>{var n=e(528),o=e(8904),i=e(5225),a=Math.max;t.exports=function(t,r,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),n(t,o(r,3),c)}},5453:(t,r,e)=>{var n=e(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},5161: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}},3795:(t,r,e)=>{var n=e(166);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},3646:(t,r,e)=>{var n=e(7),o=e(7383);t.exports=function(t,r){return null!=t&&o(t,r,n)}},5362:t=>{t.exports=function(t){return t}},6901:(t,r,e)=>{var n=e(7650);t.exports=function(t,r){return!(null==t||!t.length)&&n(t,r,0)>-1}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var r=Array.isArray;t.exports=r},1580:(t,r,e)=>{var n=e(3839),o=e(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},9747:(t,r,e)=>{var n=e(1580),o=e(3387);t.exports=function(t){return o(t)&&n(t)}},8752:t=>{t.exports=function(){return!1}},6834:(t,r,e)=>{var n=e(8803),o=e(6686),i=e(6981),a=e(7236),u=e(1580),c=e(8752),s=e(5003),f=e(4812),l=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)||f(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(l.call(t,e))return!1;return!0}},3839:(t,r,e)=>{var n=e(4318),o=e(5973);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}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,r,e)=>{var n=e(1131),o=e(6535),i=e(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,r,e)=>{var n=e(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},5913: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)}}},5492:(t,r,e)=>{var n=e(8904),o=e(5913),i=e(9922);t.exports=function(t,r){return i(t,o(n(r)))}},8423:(t,r,e)=>{var n=e(7410),o=e(3368)((function(t,r){return null==t?{}:n(t,r)}));t.exports=o},9922:(t,r,e)=>{var n=e(6460),o=e(8904),i=e(6621),a=e(5559);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])}))}},1651:(t,r,e)=>{var n=e(1712),o=e(4815),i=e(3266),a=e(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},992:(t,r,e)=>{var n=e(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,r,e)=>{var n=e(992);t.exports=function(t){var r=n(t),e=r%1;return r==r?e?r-e:r:0}},8746:(t,r,e)=>{var n=e(3349),o=e(5973),i=e(2945),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=o(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var e=u.test(t);return e||c.test(t)?s(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:(t,r,e)=>{var n=e(454);t.exports=function(t){return null==t?"":n(t)}},1815:(t,r,e)=>{var n=e(4351);t.exports=function(t){return t&&t.length?n(t):[]}},6205:(t,r,e)=>{var n=e(1096),o=e(4569),i=e(9747),a=o((function(t,r){return i(t)?n(t,r):[]}));t.exports=a},459:(t,r,e)=>{"use strict";var n=e(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,r,e,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function r(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},216:(t,r,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{"use strict";var r=Array.isArray,e=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){var u,c,s,f=r(t),l=r(a);if(f&&l){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(!i(t[u],a[u]))return!1;return!0}if(f!=l)return!1;var p=t instanceof Date,v=a instanceof Date;if(p!=v)return!1;if(p&&v)return t.getTime()==a.getTime();var h=t instanceof RegExp,y=a instanceof RegExp;if(h!=y)return!1;if(h&&y)return t.toString()==a.toString();var d=e(t);if((c=d.length)!==e(a).length)return!1;for(u=c;0!=u--;)if(!n.call(a,d[u]))return!1;if(o&&t instanceof Element&&a instanceof Element)return t===a;for(u=c;0!=u--;)if(!("_owner"===(s=d[u])&&t.$$typeof||i(t[s],a[s])))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,r){try{return i(t,r)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!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]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,n),i.loaded=!0,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})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{VictorySharedEvents:()=>Nt});var t=n(484),r=n.n(t),e=n(2635),i=n.n(e),a=n(5161),u=n.n(a),c=n(6834),s=n.n(c),f=n(7901),l=n.n(f),p=n(3839),v=n.n(p),h=n(6782),y=n.n(h),d=n(9787),b=n.n(d),g=n(216),m=n.n(g),x=n(6901),E=n.n(x),w=n(1815),O=n.n(w),A=n(5492),j=n.n(A),_=n(9922),S=n.n(_),k=n(6205),P=n.n(k);function T(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function C(t){return function(t){if(Array.isArray(t))return N(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 N(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)?N(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 N(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 K=/^onGlobal(.*)$/;function R(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)?E()(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}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,C(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,f=t.sharedEvents.events&&s(a(t.sharedEvents.events),r);return y()({},f,c)}function G(t,r,e,n){var o=this;if(s()(t))return{};n=n||this.baseProps;var a=function(t,r){var e=t.childName,i=t.target,a=t.key,u="props"===r?n:o.state||{},c=null!=e&&u[e]?u[e]:u;return"parent"===a?c.parent:c[a]&&c[a][i]},u=function(t,u){var c="parent"===r?t.childName:t.childName||e,s=t.target||r,f=function(r,e){var u=o.state||{};if(!v()(t.mutation))return u;var c=a({childName:e,key:r,target:s},"props"),f=a({childName:e,key:r,target:s},"state"),l=t.mutation(y()({},c,f),n),p=u[e]||{},h=function(t){return l?function(t){return"parent"===s?y()(t,T({},r,y()(t[r],l))):y()(t,T({},r,y()(t[r],T({},s,l))))}(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()(u,T({},e,h(p))):h(u)},l=function(r){var e=function(r){return"parent"===s?"parent":"all"===t.eventKey?n[r]?P()(i()(n[r]),"parent"):P()(i()(n),"parent"):void 0===t.eventKey&&"parent"===u?n[r]?i()(n[r]):i()(n):void 0!==t.eventKey?t.eventKey:u}(r);return Array.isArray(e)?e.reduce((function(t,e){return y()(t,f(e,r))}),{}):f(e,r)},p="all"===c?P()(i()(n),"parent"):c;return Array.isArray(p)?p.reduce((function(t,r){return y()(t,l(r))}),{}):l(p)},c=function(r,e,n,i){var a=t[i](r,e,n,o);if(!s()(a)){var c=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 y()({},t,u(e,r))}),{}):u(t,r)}(a,n),c)}};return i()(t).reduce((function(t,r){return t[r]=c,t}),{})}function M(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 I(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 E()(e,n[r])}return!1},i=t=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(){})(y()({},r,e));return y()({},t,o)}),{})}}function L(t){var r=t.match(K);return r&&r[1]&&r[1].toLowerCase()}var $=n(8423),q=n.n($);n(1651);var B=n(2654),D=n.n(B),F=n(6786),z=n.n(F),U=function(t){var r=function(r,e,n,o){var i=e[n];if(null==i)return r?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[e,n,o].concat(u))},e=r.bind(null,!1);return e.isRequired=r.bind(null,!0),e},V=function(){return null},W=function(){},H=function(t){return void 0===t?W:null===t?V:t.constructor},J=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function Y(t){return U((function(r,e,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[r,e,n].concat(i))}),void 0)}))}var Q,X,Z=U((function(t,r,e){var n=t[r];if("number"!=typeof n||n<0)return new Error("`".concat(r,"` in `").concat(e,"` must be a non-negative number."))})),tt=U((function(t,r,e){var n=t[r];if("number"!=typeof n||n%1!=0)return new Error("`".concat(r,"` in `").concat(e,"` must be an integer."))})),rt=(U((function(t,r,e){var n=t[r];if("number"!=typeof n||n<=0)return new Error("`".concat(r,"` in `").concat(e,"` must be a number greater than zero."))})),U((function(t,r,e){var n=t[r];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(r,"` in `").concat(e,"` must be an array of two unique numeric values."))})),U((function(t,r,e){var n;if(n=t[r],!(v()(n)?v()(n.copy)&&v()(n.domain)&&v()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(r,"` in `").concat(e,"` must be a d3 scale."))})),U((function(t,r,e){var n=t[r];if(!Array.isArray(n))return new Error("`".concat(r,"` in `").concat(e,"` must be an array."));if(!(n.length<2)){var o=H(n[0]),i=z()(n,(function(t){return o!==H(t)}));if(i){var a=J(n[0]),u=J(i);return new Error("Expected `".concat(r,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),U((function(t,r){if(t[r]&&Array.isArray(t[r])&&t[r].length!==t.data.length)return new Error("Length of data and ".concat(r," arrays must match."))})),U((function(t,r,e){if(t[r]&&!D()(t[r]))return new Error("`".concat(r,"` in `").concat(e,"` must be a regular expression."))})),0),et=0,nt=0,ot=0,it=0,at=0,ut="object"==typeof performance&&performance.now?performance:Date,ct="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function st(){return it||(ct(ft),it=ut.now()+at)}function ft(){it=0}function lt(){this._call=this._time=this._next=null}function pt(t,r,e){var n=new lt;return n.restart(t,r,e),n}function vt(){it=(ot=ut.now())+at,rt=et=0;try{!function(){st(),++rt;for(var t,r=Q;r;)(t=it-r._time)>=0&&r._call.call(void 0,t),r=r._next;--rt}()}finally{rt=0,function(){for(var t,r,e=Q,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:Q=r);X=t,yt(n)}(),it=0}}function ht(){var t=ut.now(),r=t-ot;r>1e3&&(at-=r,ot=t)}function yt(t){rt||(et&&(et=clearTimeout(et)),t-it>24?(t<1/0&&(et=setTimeout(vt,t-ut.now()-at)),nt&&(nt=clearInterval(nt))):(nt||(ot=ut.now(),nt=setInterval(ht,1e3)),rt=1,ct(vt)))}function dt(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)}}lt.prototype=pt.prototype={constructor:lt,restart:function(t,r,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?st():+e)+(null==r?0:+r),this._next||X===this||(X?X._next=this:Q=this,X=this),this._call=t,this._time=e,yt()},stop:function(){this._call&&(this._call=null,this._time=1/0,yt())}};var bt=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),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:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(st()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=pt(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,r){r=this.shouldAnimate?r:0;var e=this.subscribers.push({startTime:st(),callback:t,duration:r});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()}}])&&dt(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),t}(),gt=b().createContext({transitionTimer:new bt,animationTimer:new bt});gt.displayName="TimerContext";const mt=gt;var xt=n(8266),Et=n.n(xt),wt=n(1299),Ot=n.n(wt);function At(t,r){if(t){if("string"==typeof t)return jt(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)?jt(t,r):void 0}}function jt(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 _t(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 St(t,r){return St=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},St(t,r)}function kt(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 Pt(t)}function Pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}function Ct(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var Nt=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&&St(t,r)}(f,t);var e,n,o,a,c=(o=f,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=Tt(o);if(a){var e=Tt(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return kt(this,t)});function f(t){var r;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,f),(r=c.call(this,t)).state=r.state||{},r.getScopedEvents=G.bind(Pt(r)),r.getEventState=M.bind(Pt(r)),r.baseProps=r.getBaseProps(t),r.sharedEventsCache={},r.globalEvents={},r.prevGlobalEventKeys=[],r.boundGlobalEvents={},r}return e=f,n=[{key:"shouldComponentUpdate",value:function(t){if(!Et()(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(L(t),e)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(L(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,o=t[e],i=o&&o.type&&o.type.defaultEvents,a=v()(i)?i(o.props):i;return Array.isArray(a)?(n=r).concat.apply(n,C(a)):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 jt(t)}(r=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||At(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,r,e,n){return r=r||{},e=e||{},n.reduce((function(n,o){var a=e[o],u=function(t,r,e,n){return r=r||{},e=e||{},i()(r).reduce((function(o,a){var u=e[a]||{},c=r[a]||{};if("parent"===a){var f=I(t,c,u,{eventKey:a,target:"parent"});o[a]=void 0!==f?y()({},u,f):u}else{var l=O()(i()(c).concat(i()(u)));o[a]=l.reduce((function(r,e){var o={eventKey:a,target:e,childName:n},i=I(t,c[e],u[e],o);return r[e]=void 0!==i?y()({},u[e],i):u[e],S()(r,(function(t){return!s()(t)}))}),{})}return S()(o,(function(t){return!s()(t)}))}),{})}(t,r[o],e[o],o);return n[o]=u||a,S()(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)||At(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&&Et()(r,a))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"],a=function(t,u,c){return t.reduce((function(t,n,s){var f=n.type&&n.type.role,l=n.props.name||"".concat(f,"-").concat(u[s]);if(n.props&&n.props.children){var p=y()({},n.props,q()(e,i)),h=n.type&&"stack"===n.type.role&&v()(n.type.getChildren)?n.type.getChildren(p):b().Children.toArray(n.props.children).map((function(t){var r=y()({},t.props,q()(p,i));return b().cloneElement(t,r)})),d=h.map((function(t,r){return"".concat(l,"-").concat(r)})),g=a(h,d,n);t=o(t,g)}else{var m=r(n,l,c);m&&(t=o(t,m))}return t}),n)},u=t.map((function(t,r){return r}));return a(t,u)}(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=b().Children.toArray(u.props.children),f=i.slice(c,c+s.length),l=b().cloneElement(u,u.props,a(s,f));return t.concat(l)}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,Ot()(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(u,y()({key:"events-".concat(p),sharedEvents:g,eventKey:o,name:p},u.props)))}return t.concat(u)}),[])},u=i()(r),c=b().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,f=c.props||{},p=R.bind(this),v=u&&p({sharedEvents:u},"parent"),h=l()({},this.getEventState("parent","parent"),f,r.parent,{children:o}),d=l()({},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),f.events);this.globalEvents=function(t){return S()(t,(function(t,r){return K.test(r)}))}(d);var g=function(t){return j()(t,(function(t,r){return K.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&&_t(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(b().Component);Ct(Nt,"displayName","VictorySharedEvents"),Ct(Nt,"role","shared-event-wrapper"),Ct(Nt,"propTypes",{children:m().oneOfType([m().arrayOf(m().node),m().node]),container:m().node,eventKey:m().oneOfType([m().array,m().func,Y([tt,Z]),m().string]),events:m().arrayOf(m().shape({childName:m().oneOfType([m().string,m().array]),eventHandlers:m().object,eventKey:m().oneOfType([m().array,m().func,Y([tt,Z]),m().string]),target:m().string})),externalEventMutations:m().arrayOf(m().shape({callback:m().function,childName:m().oneOfType([m().string,m().array]),eventKey:m().oneOfType([m().array,Y([tt,Z]),m().string]),mutation:m().function,target:m().oneOfType([m().string,m().array])})),groupComponent:m().node}),Ct(Nt,"defaultProps",{groupComponent:b().createElement("g",null)}),Ct(Nt,"contextType",mt)})(),o})()}));
2
2
  //# sourceMappingURL=victory-shared-events.min.js.map
@@ -6,51 +6,65 @@ import _defaults from "lodash/defaults";
6
6
  import _isFunction from "lodash/isFunction";
7
7
  import _assign from "lodash/assign";
8
8
 
9
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
10
 
11
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
12
 
13
- function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
13
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
14
14
 
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
 
17
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
17
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
18
18
 
19
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
19
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
20
 
21
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
21
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
22
22
 
23
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
23
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
24
+
25
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
26
+
27
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
28
 
25
29
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26
30
 
27
31
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
28
32
 
29
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
34
+
35
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
36
 
31
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
37
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
38
 
33
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
39
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
40
+
41
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
34
42
 
35
43
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
36
44
 
45
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
46
+
47
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
48
+
49
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
50
+
37
51
  import React from "react";
38
52
  import PropTypes from "prop-types";
39
53
  import { PropTypes as CustomPropTypes, Events, Helpers, TimerContext } from "victory-core";
40
54
  import isEqual from "react-fast-compare";
41
55
  import stringify from "json-stringify-safe";
42
56
 
43
- var VictorySharedEvents =
44
- /*#__PURE__*/
45
- function (_React$Component) {
57
+ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
46
58
  _inherits(VictorySharedEvents, _React$Component);
47
59
 
60
+ var _super = _createSuper(VictorySharedEvents);
61
+
48
62
  function VictorySharedEvents(props) {
49
63
  var _this;
50
64
 
51
65
  _classCallCheck(this, VictorySharedEvents);
52
66
 
53
- _this = _possibleConstructorReturn(this, (VictorySharedEvents.__proto__ || Object.getPrototypeOf(VictorySharedEvents)).call(this, props));
67
+ _this = _super.call(this, props);
54
68
  _this.state = _this.state || {};
55
69
  _this.getScopedEvents = Events.getScopedEvents.bind(_assertThisInitialized(_this));
56
70
  _this.getEventState = Events.getEventState.bind(_assertThisInitialized(_this));
@@ -224,7 +238,7 @@ function (_React$Component) {
224
238
  if (child.props.children) {
225
239
  var newChildren = React.Children.toArray(child.props.children);
226
240
  var names = childNames.slice(index, index + newChildren.length);
227
- var results = React.cloneElement(child, child.props, alterChildren(newChildren, names));
241
+ var results = /*#__PURE__*/React.cloneElement(child, child.props, alterChildren(newChildren, names));
228
242
  return memo.concat(results);
229
243
  } else if (childNames[index] !== "parent" && child.type && _isFunction(child.type.getBaseProps)) {
230
244
  var name = child.props.name || childNames[index];
@@ -250,7 +264,7 @@ function (_React$Component) {
250
264
 
251
265
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
252
266
 
253
- return memo.concat(React.cloneElement(child, _assign({
267
+ return memo.concat( /*#__PURE__*/React.cloneElement(child, _assign({
254
268
  key: "events-".concat(name),
255
269
  sharedEvents: sharedEvents,
256
270
  eventKey: eventKey,
@@ -300,9 +314,9 @@ function (_React$Component) {
300
314
 
301
315
  this.globalEvents = Events.getGlobalEvents(containerEvents);
302
316
  var localEvents = Events.omitGlobalEvents(containerEvents);
303
- return role === "container" ? React.cloneElement(container, _assign({}, parentProps, {
317
+ return role === "container" ? /*#__PURE__*/React.cloneElement(container, _assign({}, parentProps, {
304
318
  events: localEvents
305
- })) : React.cloneElement(container, localEvents, children);
319
+ })) : /*#__PURE__*/React.cloneElement(container, localEvents, children);
306
320
  }
307
321
  }, {
308
322
  key: "render",
@@ -313,7 +327,7 @@ function (_React$Component) {
313
327
  return this.getContainer(this.props, this.baseProps, events);
314
328
  }
315
329
 
316
- return React.cloneElement(this.props.container, {
330
+ return /*#__PURE__*/React.cloneElement(this.props.container, {
317
331
  children: this.props.children
318
332
  });
319
333
  }
@@ -322,54 +336,34 @@ function (_React$Component) {
322
336
  return VictorySharedEvents;
323
337
  }(React.Component);
324
338
 
325
- Object.defineProperty(VictorySharedEvents, "displayName", {
326
- configurable: true,
327
- enumerable: true,
328
- writable: true,
329
- value: "VictorySharedEvents"
330
- });
331
- Object.defineProperty(VictorySharedEvents, "role", {
332
- configurable: true,
333
- enumerable: true,
334
- writable: true,
335
- value: "shared-event-wrapper"
336
- });
337
- Object.defineProperty(VictorySharedEvents, "propTypes", {
338
- configurable: true,
339
- enumerable: true,
340
- writable: true,
341
- value: {
342
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
343
- container: PropTypes.node,
339
+ _defineProperty(VictorySharedEvents, "displayName", "VictorySharedEvents");
340
+
341
+ _defineProperty(VictorySharedEvents, "role", "shared-event-wrapper");
342
+
343
+ _defineProperty(VictorySharedEvents, "propTypes", {
344
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
345
+ container: PropTypes.node,
346
+ eventKey: PropTypes.oneOfType([PropTypes.array, PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
347
+ events: PropTypes.arrayOf(PropTypes.shape({
348
+ childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
349
+ eventHandlers: PropTypes.object,
344
350
  eventKey: PropTypes.oneOfType([PropTypes.array, PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
345
- events: PropTypes.arrayOf(PropTypes.shape({
346
- childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
347
- eventHandlers: PropTypes.object,
348
- eventKey: PropTypes.oneOfType([PropTypes.array, PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
349
- target: PropTypes.string
350
- })),
351
- externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
352
- callback: PropTypes.function,
353
- childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
354
- eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
355
- mutation: PropTypes.function,
356
- target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
357
- })),
358
- groupComponent: PropTypes.node
359
- }
351
+ target: PropTypes.string
352
+ })),
353
+ externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
354
+ callback: PropTypes.function,
355
+ childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
356
+ eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
357
+ mutation: PropTypes.function,
358
+ target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
359
+ })),
360
+ groupComponent: PropTypes.node
360
361
  });
361
- Object.defineProperty(VictorySharedEvents, "defaultProps", {
362
- configurable: true,
363
- enumerable: true,
364
- writable: true,
365
- value: {
366
- groupComponent: React.createElement("g", null)
367
- }
368
- });
369
- Object.defineProperty(VictorySharedEvents, "contextType", {
370
- configurable: true,
371
- enumerable: true,
372
- writable: true,
373
- value: TimerContext
362
+
363
+ _defineProperty(VictorySharedEvents, "defaultProps", {
364
+ groupComponent: /*#__PURE__*/React.createElement("g", null)
374
365
  });
366
+
367
+ _defineProperty(VictorySharedEvents, "contextType", TimerContext);
368
+
375
369
  export { VictorySharedEvents as default };
@@ -31,45 +31,59 @@ var _jsonStringifySafe = _interopRequireDefault(require("json-stringify-safe"));
31
31
 
32
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
33
 
34
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
34
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
35
 
36
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
36
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37
37
 
38
- function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
39
 
40
40
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
41
 
42
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
42
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
43
43
 
44
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
44
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
45
45
 
46
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
46
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
47
47
 
48
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
48
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
49
+
50
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
51
+
52
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
49
53
 
50
54
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
51
55
 
52
56
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
53
57
 
54
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
58
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
59
+
60
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
55
61
 
56
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
62
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
63
 
58
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
64
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
65
+
66
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
59
67
 
60
68
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
61
69
 
62
- var VictorySharedEvents =
63
- /*#__PURE__*/
64
- function (_React$Component) {
70
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
71
+
72
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
73
+
74
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
75
+
76
+ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
65
77
  _inherits(VictorySharedEvents, _React$Component);
66
78
 
79
+ var _super = _createSuper(VictorySharedEvents);
80
+
67
81
  function VictorySharedEvents(props) {
68
82
  var _this;
69
83
 
70
84
  _classCallCheck(this, VictorySharedEvents);
71
85
 
72
- _this = _possibleConstructorReturn(this, (VictorySharedEvents.__proto__ || Object.getPrototypeOf(VictorySharedEvents)).call(this, props));
86
+ _this = _super.call(this, props);
73
87
  _this.state = _this.state || {};
74
88
  _this.getScopedEvents = _victoryCore.Events.getScopedEvents.bind(_assertThisInitialized(_this));
75
89
  _this.getEventState = _victoryCore.Events.getEventState.bind(_assertThisInitialized(_this));
@@ -244,7 +258,7 @@ function (_React$Component) {
244
258
 
245
259
  var names = childNames.slice(index, index + newChildren.length);
246
260
 
247
- var results = _react.default.cloneElement(child, child.props, alterChildren(newChildren, names));
261
+ var results = /*#__PURE__*/_react.default.cloneElement(child, child.props, alterChildren(newChildren, names));
248
262
 
249
263
  return memo.concat(results);
250
264
  } else if (childNames[index] !== "parent" && child.type && (0, _isFunction2.default)(child.type.getBaseProps)) {
@@ -271,7 +285,7 @@ function (_React$Component) {
271
285
 
272
286
  _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
273
287
 
274
- return memo.concat(_react.default.cloneElement(child, (0, _assign2.default)({
288
+ return memo.concat( /*#__PURE__*/_react.default.cloneElement(child, (0, _assign2.default)({
275
289
  key: "events-".concat(name),
276
290
  sharedEvents: sharedEvents,
277
291
  eventKey: eventKey,
@@ -323,9 +337,9 @@ function (_React$Component) {
323
337
 
324
338
  var localEvents = _victoryCore.Events.omitGlobalEvents(containerEvents);
325
339
 
326
- return role === "container" ? _react.default.cloneElement(container, (0, _assign2.default)({}, parentProps, {
340
+ return role === "container" ? /*#__PURE__*/_react.default.cloneElement(container, (0, _assign2.default)({}, parentProps, {
327
341
  events: localEvents
328
- })) : _react.default.cloneElement(container, localEvents, children);
342
+ })) : /*#__PURE__*/_react.default.cloneElement(container, localEvents, children);
329
343
  }
330
344
  }, {
331
345
  key: "render",
@@ -336,7 +350,7 @@ function (_React$Component) {
336
350
  return this.getContainer(this.props, this.baseProps, events);
337
351
  }
338
352
 
339
- return _react.default.cloneElement(this.props.container, {
353
+ return /*#__PURE__*/_react.default.cloneElement(this.props.container, {
340
354
  children: this.props.children
341
355
  });
342
356
  }
@@ -346,53 +360,33 @@ function (_React$Component) {
346
360
  }(_react.default.Component);
347
361
 
348
362
  exports.default = VictorySharedEvents;
349
- Object.defineProperty(VictorySharedEvents, "displayName", {
350
- configurable: true,
351
- enumerable: true,
352
- writable: true,
353
- value: "VictorySharedEvents"
354
- });
355
- Object.defineProperty(VictorySharedEvents, "role", {
356
- configurable: true,
357
- enumerable: true,
358
- writable: true,
359
- value: "shared-event-wrapper"
360
- });
361
- Object.defineProperty(VictorySharedEvents, "propTypes", {
362
- configurable: true,
363
- enumerable: true,
364
- writable: true,
365
- value: {
366
- children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
367
- container: _propTypes.default.node,
363
+
364
+ _defineProperty(VictorySharedEvents, "displayName", "VictorySharedEvents");
365
+
366
+ _defineProperty(VictorySharedEvents, "role", "shared-event-wrapper");
367
+
368
+ _defineProperty(VictorySharedEvents, "propTypes", {
369
+ children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
370
+ container: _propTypes.default.node,
371
+ eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.func, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]),
372
+ events: _propTypes.default.arrayOf(_propTypes.default.shape({
373
+ childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
374
+ eventHandlers: _propTypes.default.object,
368
375
  eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.func, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]),
369
- events: _propTypes.default.arrayOf(_propTypes.default.shape({
370
- childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
371
- eventHandlers: _propTypes.default.object,
372
- eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.func, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]),
373
- target: _propTypes.default.string
374
- })),
375
- externalEventMutations: _propTypes.default.arrayOf(_propTypes.default.shape({
376
- callback: _propTypes.default.function,
377
- childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
378
- eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]),
379
- mutation: _propTypes.default.function,
380
- target: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array])
381
- })),
382
- groupComponent: _propTypes.default.node
383
- }
376
+ target: _propTypes.default.string
377
+ })),
378
+ externalEventMutations: _propTypes.default.arrayOf(_propTypes.default.shape({
379
+ callback: _propTypes.default.function,
380
+ childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
381
+ eventKey: _propTypes.default.oneOfType([_propTypes.default.array, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string]),
382
+ mutation: _propTypes.default.function,
383
+ target: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array])
384
+ })),
385
+ groupComponent: _propTypes.default.node
384
386
  });
385
- Object.defineProperty(VictorySharedEvents, "defaultProps", {
386
- configurable: true,
387
- enumerable: true,
388
- writable: true,
389
- value: {
390
- groupComponent: _react.default.createElement("g", null)
391
- }
387
+
388
+ _defineProperty(VictorySharedEvents, "defaultProps", {
389
+ groupComponent: /*#__PURE__*/_react.default.createElement("g", null)
392
390
  });
393
- Object.defineProperty(VictorySharedEvents, "contextType", {
394
- configurable: true,
395
- enumerable: true,
396
- writable: true,
397
- value: _victoryCore.TimerContext
398
- });
391
+
392
+ _defineProperty(VictorySharedEvents, "contextType", _victoryCore.TimerContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-shared-events",
3
- "version": "36.2.2",
3
+ "version": "36.4.0",
4
4
  "description": "Shared Event Helper for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -23,7 +23,7 @@
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.5.8",
25
25
  "react-fast-compare": "^2.0.0",
26
- "victory-core": "^36.2.2"
26
+ "victory-core": "^36.4.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^16.6.0 || ^17.0.0"
@@ -32,5 +32,5 @@
32
32
  "version": "yarn run nps build-libs && nps build-dists"
33
33
  },
34
34
  "sideEffects": false,
35
- "gitHead": "e09146d4bede80e27ed095fcd7e1167c00fba864"
35
+ "gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
36
36
  }