victory-shared-events 36.9.2 → 37.0.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.
@@ -7,20 +7,20 @@
7
7
  exports["VictorySharedEvents"] = factory(require("react"));
8
8
  else
9
9
  root["VictorySharedEvents"] = factory(root["React"]);
10
- })(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
11
- return /******/ (() => { // webpackBootstrap
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE_react__) {
11
+ return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
14
  /***/ "./victory-shared-events.tsx":
15
15
  /*!***********************************!*\
16
16
  !*** ./victory-shared-events.tsx ***!
17
17
  \***********************************/
18
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19
19
 
20
20
  "use strict";
21
21
  __webpack_require__.r(__webpack_exports__);
22
22
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
- /* harmony export */ "VictorySharedEvents": () => (/* binding */ VictorySharedEvents)
23
+ /* harmony export */ "VictorySharedEvents": function() { return /* binding */ VictorySharedEvents; }
24
24
  /* harmony export */ });
25
25
  /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js");
26
26
  /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__);
@@ -30,10 +30,10 @@ __webpack_require__.r(__webpack_exports__);
30
30
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
31
31
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
32
32
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
33
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
34
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
35
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
36
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
33
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
34
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
35
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
36
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
37
37
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
38
38
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
39
39
  /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
@@ -42,337 +42,201 @@ __webpack_require__.r(__webpack_exports__);
42
42
 
43
43
 
44
44
 
45
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
46
45
 
47
- 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."); }
48
46
 
49
- 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; }
50
47
 
51
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
52
48
 
53
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
49
+ // DISCLAIMER:
50
+ // This file is not currently tested, and it is first on the list of files
51
+ // to refactor in our current refactoring effort. Please do not make changes
52
+ // to this file without manual testing and/or refactoring and adding tests.
54
53
 
55
- 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."); }
54
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
56
55
 
57
- 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); }
58
-
59
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
60
-
61
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
62
-
63
- 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; }
64
-
65
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
66
-
67
- 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); } }
68
-
69
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
70
-
71
- 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); }
72
-
73
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
74
-
75
- 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); }; }
76
-
77
- 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); }
78
-
79
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
80
-
81
- 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; } }
82
-
83
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
84
-
85
-
86
-
87
-
88
-
89
- var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
90
- _inherits(VictorySharedEvents, _React$Component);
91
-
92
- var _super = _createSuper(VictorySharedEvents);
93
-
94
- function VictorySharedEvents(props) {
95
- var _this;
96
-
97
- _classCallCheck(this, VictorySharedEvents);
98
-
99
- _this = _super.call(this, props);
100
- _this.getScopedEvents = void 0;
101
- _this.getEventState = void 0;
102
- _this.baseProps = void 0;
103
- _this.sharedEventsCache = void 0;
104
- _this.globalEvents = void 0;
105
- _this.prevGlobalEventKeys = void 0;
106
- _this.boundGlobalEvents = void 0;
107
- _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
108
- _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
109
- _this.state = _this.state || {};
110
- _this.sharedEventsCache = {};
111
- _this.globalEvents = {};
112
- _this.prevGlobalEventKeys = [];
113
- _this.boundGlobalEvents = {};
114
- _this.baseProps = _this.getBaseProps(props);
115
- return _this;
56
+ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().Component) {
57
+ static displayName = "VictorySharedEvents";
58
+ static role = "shared-event-wrapper";
59
+ static contextType = victory_core__WEBPACK_IMPORTED_MODULE_6__["default"];
60
+ static defaultProps = {
61
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
62
+ };
63
+ constructor(props) {
64
+ super(props);
65
+ this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getScopedEvents.bind(this);
66
+ this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_7__.getEventState.bind(this);
67
+ this.state = this.state || {};
68
+ this.sharedEventsCache = {};
69
+ this.globalEvents = {};
70
+ this.prevGlobalEventKeys = [];
71
+ this.boundGlobalEvents = {};
72
+ this.baseProps = this.getBaseProps(props);
116
73
  }
117
-
118
- _createClass(VictorySharedEvents, [{
119
- key: "shouldComponentUpdate",
120
- value: function shouldComponentUpdate(nextProps) {
121
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
122
- this.baseProps = this.getBaseProps(nextProps);
123
- var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
124
- this.applyExternalMutations(nextProps, externalMutations);
125
- }
126
-
127
- return true;
128
- }
129
- }, {
130
- key: "componentDidMount",
131
- value: function componentDidMount() {
132
- var _this2 = this;
133
-
134
- var globalEventKeys = Object.keys(this.globalEvents);
135
- globalEventKeys.forEach(function (key) {
136
- return _this2.addGlobalListener(key);
137
- });
138
- this.prevGlobalEventKeys = globalEventKeys;
139
- }
140
- }, {
141
- key: "componentDidUpdate",
142
- value: function componentDidUpdate() {
143
- var _this3 = this;
144
-
145
- var globalEventKeys = Object.keys(this.globalEvents);
146
- var removedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(this.prevGlobalEventKeys, globalEventKeys);
147
- removedGlobalEventKeys.forEach(function (key) {
148
- return _this3.removeGlobalListener(key);
149
- });
150
- var addedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(globalEventKeys, this.prevGlobalEventKeys);
151
- addedGlobalEventKeys.forEach(function (key) {
152
- return _this3.addGlobalListener(key);
153
- });
154
- this.prevGlobalEventKeys = globalEventKeys;
74
+ shouldComponentUpdate(nextProps) {
75
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
76
+ this.baseProps = this.getBaseProps(nextProps);
77
+ const externalMutations = this.getExternalMutations(nextProps, this.baseProps);
78
+ this.applyExternalMutations(nextProps, externalMutations);
155
79
  }
156
- }, {
157
- key: "componentWillUnmount",
158
- value: function componentWillUnmount() {
159
- var _this4 = this;
160
-
161
- this.prevGlobalEventKeys.forEach(function (key) {
162
- return _this4.removeGlobalListener(key);
163
- });
80
+ return true;
81
+ }
82
+ componentDidMount() {
83
+ const globalEventKeys = Object.keys(this.globalEvents);
84
+ globalEventKeys.forEach(key => this.addGlobalListener(key));
85
+ this.prevGlobalEventKeys = globalEventKeys;
86
+ }
87
+ componentDidUpdate() {
88
+ const globalEventKeys = Object.keys(this.globalEvents);
89
+ const removedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_8__.difference(this.prevGlobalEventKeys, globalEventKeys);
90
+ removedGlobalEventKeys.forEach(key => this.removeGlobalListener(key));
91
+ const addedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_8__.difference(globalEventKeys, this.prevGlobalEventKeys);
92
+ addedGlobalEventKeys.forEach(key => this.addGlobalListener(key));
93
+ this.prevGlobalEventKeys = globalEventKeys;
94
+ }
95
+ componentWillUnmount() {
96
+ this.prevGlobalEventKeys.forEach(key => this.removeGlobalListener(key));
97
+ }
98
+ addGlobalListener(key) {
99
+ const boundListener = event => {
100
+ const listener = this.globalEvents[key];
101
+ return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_7__.emulateReactEvent(event));
102
+ };
103
+ this.boundGlobalEvents[key] = boundListener;
104
+ window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), boundListener);
105
+ }
106
+ removeGlobalListener(key) {
107
+ window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
108
+ }
109
+ getAllEvents(props) {
110
+ const components = ["container", "groupComponent"];
111
+ const componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getComponentEvents(props, components);
112
+ if (Array.isArray(componentEvents)) {
113
+ return Array.isArray(props.events) ? componentEvents.concat(...props.events) : componentEvents;
164
114
  }
165
- }, {
166
- key: "addGlobalListener",
167
- value: function addGlobalListener(key) {
168
- var _this5 = this;
169
-
170
- var boundListener = function (event) {
171
- var listener = _this5.globalEvents[key];
172
- return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
173
- };
174
-
175
- this.boundGlobalEvents[key] = boundListener;
176
- window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
115
+ return props.events;
116
+ }
117
+ applyExternalMutations(props, externalMutations) {
118
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
119
+ const callbacks = props.externalEventMutations.reduce((memo, mutation) => victory_core__WEBPACK_IMPORTED_MODULE_9__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
120
+ const compiledCallbacks = callbacks.length ? () => {
121
+ callbacks.forEach(c => c());
122
+ } : undefined;
123
+ this.setState(externalMutations, compiledCallbacks);
177
124
  }
178
- }, {
179
- key: "removeGlobalListener",
180
- value: function removeGlobalListener(key) {
181
- window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
125
+ }
126
+ getExternalMutations(props, baseProps) {
127
+ return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_7__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
128
+ }
129
+ cacheSharedEvents(name, sharedEvents, cacheValues) {
130
+ this.sharedEventsCache[name] = [sharedEvents, cacheValues];
131
+ }
132
+ getCachedSharedEvents(name, cacheValues) {
133
+ const [sharedEvents, prevCacheValues] = this.sharedEventsCache[name] || [];
134
+ if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(cacheValues, prevCacheValues)) {
135
+ return sharedEvents;
182
136
  }
183
- }, {
184
- key: "getAllEvents",
185
- value: function getAllEvents(props) {
186
- var components = ["container", "groupComponent"];
187
- var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
188
-
189
- if (Array.isArray(componentEvents)) {
190
- return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
137
+ return undefined;
138
+ }
139
+ getBaseProps(props) {
140
+ const {
141
+ container
142
+ } = props;
143
+ const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
144
+ const childBaseProps = this.getBasePropsFromChildren(children);
145
+ const parentBaseProps = container ? container.props : {};
146
+ return Object.assign({}, childBaseProps, {
147
+ parent: parentBaseProps
148
+ });
149
+ }
150
+ getBasePropsFromChildren(childComponents) {
151
+ const iteratee = (child, childName) => {
152
+ if (child.type && victory_core__WEBPACK_IMPORTED_MODULE_9__.isFunction(child.type.getBaseProps)) {
153
+ const baseProps = child.props && child.type.getBaseProps(child.props);
154
+ return baseProps ? [[childName, baseProps]] : null;
191
155
  }
192
-
193
- return props.events;
194
- }
195
- }, {
196
- key: "applyExternalMutations",
197
- value: function applyExternalMutations(props, externalMutations) {
198
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
199
- var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
200
- return victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo;
201
- }, []);
202
- var compiledCallbacks = callbacks.length ? function () {
203
- callbacks.forEach(function (c) {
204
- return c();
156
+ return null;
157
+ };
158
+ const baseProps = victory_core__WEBPACK_IMPORTED_MODULE_9__.reduceChildren(childComponents, iteratee);
159
+ return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
160
+ }
161
+ getNewChildren(props, baseProps) {
162
+ const {
163
+ events,
164
+ eventKey
165
+ } = props;
166
+ const alterChildren = (children, childNames) => {
167
+ return children.reduce((memo, child, index) => {
168
+ if (child.props.children) {
169
+ const newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
170
+ const names = childNames.slice(index, index + newChildren.length);
171
+ const results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
172
+ return memo.concat(results);
173
+ } else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_9__.isFunction(child.type.getBaseProps)) {
174
+ const name = child.props.name || childNames[index];
175
+ const childEvents = Array.isArray(events) && events.filter(event => {
176
+ if (event.target === "parent") {
177
+ return false;
178
+ }
179
+ return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
205
180
  });
206
- } : undefined;
207
- this.setState(externalMutations, compiledCallbacks);
208
- }
209
- }
210
- }, {
211
- key: "getExternalMutations",
212
- value: function getExternalMutations(props, baseProps) {
213
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_6__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
214
- }
215
- }, {
216
- key: "cacheSharedEvents",
217
- value: function cacheSharedEvents(name, sharedEvents, cacheValues) {
218
- this.sharedEventsCache[name] = [sharedEvents, cacheValues];
219
- }
220
- }, {
221
- key: "getCachedSharedEvents",
222
- value: function getCachedSharedEvents(name, cacheValues) {
223
- var _ref = this.sharedEventsCache[name] || [],
224
- _ref2 = _slicedToArray(_ref, 2),
225
- sharedEvents = _ref2[0],
226
- prevCacheValues = _ref2[1];
227
-
228
- if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(cacheValues, prevCacheValues)) {
229
- return sharedEvents;
230
- }
231
-
232
- return undefined;
233
- }
234
- }, {
235
- key: "getBaseProps",
236
- value: function getBaseProps(props) {
237
- var container = props.container;
238
- var children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
239
- var childBaseProps = this.getBasePropsFromChildren(children);
240
- var parentBaseProps = container ? container.props : {};
241
- return Object.assign({}, childBaseProps, {
242
- parent: parentBaseProps
243
- });
244
- }
245
- }, {
246
- key: "getBasePropsFromChildren",
247
- value: function getBasePropsFromChildren(childComponents) {
248
- var iteratee = function (child, childName) {
249
- if (child.type && victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(child.type.getBaseProps)) {
250
- var _baseProps = child.props && child.type.getBaseProps(child.props);
251
-
252
- return _baseProps ? [[childName, _baseProps]] : null;
181
+ const sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default()(this.state[name])];
182
+ const sharedEvents = this.getCachedSharedEvents(name, sharedEventsCacheValues) || {
183
+ events: childEvents,
184
+ // partially apply child name and baseProps,
185
+ getEvents: (evts, target) => this.getScopedEvents(evts, target, name, baseProps),
186
+ // partially apply child name
187
+ getEventState: (key, target) => this.getEventState(key, target, name)
188
+ };
189
+ this.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
190
+ return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
191
+ key: `events-${name}`,
192
+ sharedEvents,
193
+ eventKey,
194
+ name
195
+ }, child.props)));
253
196
  }
254
-
255
- return null;
256
- };
257
-
258
- var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.reduceChildren(childComponents, iteratee);
259
- return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
260
- }
261
- }, {
262
- key: "getNewChildren",
263
- value: function getNewChildren(props, baseProps) {
264
- var _this6 = this;
265
-
266
- var events = props.events,
267
- eventKey = props.eventKey;
268
-
269
- var alterChildren = function (children, childNames) {
270
- return children.reduce(function (memo, child, index) {
271
- if (child.props.children) {
272
- var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
273
- var names = childNames.slice(index, index + newChildren.length);
274
- var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
275
- return memo.concat(results);
276
- } else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(child.type.getBaseProps)) {
277
- var name = child.props.name || childNames[index];
278
- var childEvents = Array.isArray(events) && events.filter(function (event) {
279
- if (event.target === "parent") {
280
- return false;
281
- }
282
-
283
- return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
284
- });
285
- var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default()(_this6.state[name])];
286
- var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
287
- events: childEvents,
288
- // partially apply child name and baseProps,
289
- getEvents: function (evts, target) {
290
- return _this6.getScopedEvents(evts, target, name, baseProps);
291
- },
292
- // partially apply child name
293
- getEventState: function (key, target) {
294
- return _this6.getEventState(key, target, name);
295
- }
296
- };
297
-
298
- _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
299
-
300
- return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
301
- key: "events-".concat(name),
302
- sharedEvents: sharedEvents,
303
- eventKey: eventKey,
304
- name: name
305
- }, child.props)));
306
- }
307
-
308
- return memo.concat(child);
309
- }, []);
310
- };
311
-
312
- var childNames = Object.keys(baseProps);
313
- var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
314
- return alterChildren(childComponents, childNames);
315
- }
316
- }, {
317
- key: "getContainer",
318
- value: function getContainer(props, baseProps, events) {
319
- var _this7 = this;
320
-
321
- var children = this.getNewChildren(props, baseProps);
322
- var parents = Array.isArray(events) ? events.filter(function (event) {
323
- return event.target === "parent";
324
- }) : [];
325
- var sharedEvents = parents.length > 0 ? {
326
- events: parents,
327
- // partially apply childName (null) and baseProps,
328
- getEvents: function (evts, target) {
329
- return _this7.getScopedEvents(evts, target, null, baseProps);
330
- },
331
- getEventState: this.getEventState
332
- } : null;
333
- var container = props.container || props.groupComponent;
334
- var role = container.type && container.type.role;
335
- var containerProps = container.props || {};
336
- var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEvents.bind(this);
337
- var parentEvents = sharedEvents && boundGetEvents({
338
- sharedEvents: sharedEvents
339
- }, "parent");
340
-
341
- var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
342
- children: children
343
- });
344
-
345
- var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
346
-
347
- this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(containerEvents);
348
- var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(containerEvents);
349
- return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
350
- events: localEvents
351
- })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
352
- }
353
- }, {
354
- key: "render",
355
- value: function render() {
356
- var events = this.getAllEvents(this.props);
357
-
358
- if (events) {
359
- return this.getContainer(this.props, this.baseProps, events);
360
- }
361
-
362
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
363
- children: this.props.children
364
- });
197
+ return memo.concat(child);
198
+ }, []);
199
+ };
200
+ const childNames = Object.keys(baseProps);
201
+ const childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
202
+ return alterChildren(childComponents, childNames);
203
+ }
204
+ getContainer(props, baseProps, events) {
205
+ const children = this.getNewChildren(props, baseProps);
206
+ const parents = Array.isArray(events) ? events.filter(event => event.target === "parent") : [];
207
+ const sharedEvents = parents.length > 0 ? {
208
+ events: parents,
209
+ // partially apply childName (null) and baseProps,
210
+ getEvents: (evts, target) => this.getScopedEvents(evts, target, null, baseProps),
211
+ getEventState: this.getEventState
212
+ } : null;
213
+ const container = props.container || props.groupComponent;
214
+ const role = container.type && container.type.role;
215
+ const containerProps = container.props || {};
216
+ const boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getEvents.bind(this);
217
+ const parentEvents = sharedEvents && boundGetEvents({
218
+ sharedEvents
219
+ }, "parent");
220
+ const parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
221
+ children
222
+ });
223
+ const containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
224
+ this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEvents(containerEvents);
225
+ const localEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.omitGlobalEvents(containerEvents);
226
+ return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
227
+ events: localEvents
228
+ })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
229
+ }
230
+ render() {
231
+ const events = this.getAllEvents(this.props);
232
+ if (events) {
233
+ return this.getContainer(this.props, this.baseProps, events);
365
234
  }
366
- }]);
367
-
368
- return VictorySharedEvents;
369
- }((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
370
- VictorySharedEvents.displayName = "VictorySharedEvents";
371
- VictorySharedEvents.role = "shared-event-wrapper";
372
- VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_9__["default"];
373
- VictorySharedEvents.defaultProps = {
374
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
375
- };
235
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
236
+ children: this.props.children
237
+ });
238
+ }
239
+ }
376
240
 
377
241
  /***/ }),
378
242
 
@@ -380,7 +244,7 @@ VictorySharedEvents.defaultProps = {
380
244
  /*!***********************************************************************************************************!*\
381
245
  !*** ../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js ***!
382
246
  \***********************************************************************************************************/
383
- /***/ ((module, exports) => {
247
+ /***/ (function(module, exports) {
384
248
 
385
249
  exports = module.exports = stringify
386
250
  exports.getSerialize = serializer
@@ -417,7 +281,7 @@ function serializer(replacer, cycleReplacer) {
417
281
  /*!***********************************************************************************!*\
418
282
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js ***!
419
283
  \***********************************************************************************/
420
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
284
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
421
285
 
422
286
  var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js");
423
287
 
@@ -471,7 +335,7 @@ module.exports = castArray;
471
335
  /*!********************************************************************************!*\
472
336
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js ***!
473
337
  \********************************************************************************/
474
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
338
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
475
339
 
476
340
  var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"),
477
341
  listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"),
@@ -513,7 +377,7 @@ module.exports = ListCache;
513
377
  /*!*********************************************************************************!*\
514
378
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js ***!
515
379
  \*********************************************************************************/
516
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
380
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
517
381
 
518
382
  var root = __webpack_require__(/*! ./_root */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
519
383
 
@@ -529,7 +393,7 @@ module.exports = Symbol;
529
393
  /*!********************************************************************************!*\
530
394
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js ***!
531
395
  \********************************************************************************/
532
- /***/ ((module) => {
396
+ /***/ (function(module) {
533
397
 
534
398
  /**
535
399
  * A faster alternative to `Function#apply`, this function invokes `func`
@@ -560,7 +424,7 @@ module.exports = apply;
560
424
  /*!****************************************************************************************!*\
561
425
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js ***!
562
426
  \****************************************************************************************/
563
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
427
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
564
428
 
565
429
  var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js");
566
430
 
@@ -587,7 +451,7 @@ module.exports = arrayIncludes;
587
451
  /*!********************************************************************************************!*\
588
452
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js ***!
589
453
  \********************************************************************************************/
590
- /***/ ((module) => {
454
+ /***/ (function(module) {
591
455
 
592
456
  /**
593
457
  * This function is like `arrayIncludes` except that it accepts a comparator.
@@ -619,7 +483,7 @@ module.exports = arrayIncludesWith;
619
483
  /*!***********************************************************************************!*\
620
484
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js ***!
621
485
  \***********************************************************************************/
622
- /***/ ((module) => {
486
+ /***/ (function(module) {
623
487
 
624
488
  /**
625
489
  * A specialized version of `_.map` for arrays without support for iteratee
@@ -650,7 +514,7 @@ module.exports = arrayMap;
650
514
  /*!************************************************************************************!*\
651
515
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js ***!
652
516
  \************************************************************************************/
653
- /***/ ((module) => {
517
+ /***/ (function(module) {
654
518
 
655
519
  /**
656
520
  * Appends the elements of `values` to `array`.
@@ -680,7 +544,7 @@ module.exports = arrayPush;
680
544
  /*!************************************************************************************!*\
681
545
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js ***!
682
546
  \************************************************************************************/
683
- /***/ ((module) => {
547
+ /***/ (function(module) {
684
548
 
685
549
  /**
686
550
  * A specialized version of `_.some` for arrays without support for iteratee
@@ -713,7 +577,7 @@ module.exports = arraySome;
713
577
  /*!**************************************************************************************!*\
714
578
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js ***!
715
579
  \**************************************************************************************/
716
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
580
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
717
581
 
718
582
  var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"),
719
583
  eq = __webpack_require__(/*! ./eq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js");
@@ -751,7 +615,7 @@ module.exports = assignValue;
751
615
  /*!***************************************************************************************!*\
752
616
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js ***!
753
617
  \***************************************************************************************/
754
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
618
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
755
619
 
756
620
  var eq = __webpack_require__(/*! ./eq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js");
757
621
 
@@ -782,7 +646,7 @@ module.exports = assocIndexOf;
782
646
  /*!******************************************************************************************!*\
783
647
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js ***!
784
648
  \******************************************************************************************/
785
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
649
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
786
650
 
787
651
  var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js");
788
652
 
@@ -817,7 +681,7 @@ module.exports = baseAssignValue;
817
681
  /*!**************************************************************************************!*\
818
682
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js ***!
819
683
  \**************************************************************************************/
820
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
684
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
821
685
 
822
686
  var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js"),
823
687
  isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js");
@@ -865,7 +729,7 @@ module.exports = baseFlatten;
865
729
  /*!**********************************************************************************!*\
866
730
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js ***!
867
731
  \**********************************************************************************/
868
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
732
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
869
733
 
870
734
  var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),
871
735
  toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js");
@@ -899,7 +763,7 @@ module.exports = baseGet;
899
763
  /*!*************************************************************************************!*\
900
764
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js ***!
901
765
  \*************************************************************************************/
902
- /***/ ((module) => {
766
+ /***/ (function(module) {
903
767
 
904
768
  /** Used for built-in method references. */
905
769
  var objectProto = Object.prototype;
@@ -931,7 +795,7 @@ module.exports = objectToString;
931
795
  /*!************************************************************************************!*\
932
796
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js ***!
933
797
  \************************************************************************************/
934
- /***/ ((module) => {
798
+ /***/ (function(module) {
935
799
 
936
800
  /**
937
801
  * The base implementation of `_.hasIn` without support for deep paths.
@@ -954,7 +818,7 @@ module.exports = baseHasIn;
954
818
  /*!**************************************************************************************!*\
955
819
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js ***!
956
820
  \**************************************************************************************/
957
- /***/ ((module) => {
821
+ /***/ (function(module) {
958
822
 
959
823
  /**
960
824
  * A specialized version of `_.indexOf` which performs strict equality
@@ -987,7 +851,7 @@ module.exports = strictIndexOf;
987
851
  /*!**************************************************************************************!*\
988
852
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js ***!
989
853
  \**************************************************************************************/
990
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
854
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
991
855
 
992
856
  var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js"),
993
857
  isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
@@ -1025,7 +889,7 @@ module.exports = baseIsEqual;
1025
889
  /*!******************************************************************************************!*\
1026
890
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js ***!
1027
891
  \******************************************************************************************/
1028
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
892
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1029
893
 
1030
894
  var Stack = __webpack_require__(/*! ./_Stack */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"),
1031
895
  equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js"),
@@ -1118,7 +982,7 @@ module.exports = baseIsEqualDeep;
1118
982
  /*!**************************************************************************************!*\
1119
983
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js ***!
1120
984
  \**************************************************************************************/
1121
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
985
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1122
986
 
1123
987
  var Stack = __webpack_require__(/*! ./_Stack */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"),
1124
988
  baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js");
@@ -1190,7 +1054,7 @@ module.exports = baseIsMatch;
1190
1054
  /*!***************************************************************************************!*\
1191
1055
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js ***!
1192
1056
  \***************************************************************************************/
1193
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1057
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1194
1058
 
1195
1059
  var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js"),
1196
1060
  baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"),
@@ -1231,7 +1095,7 @@ module.exports = baseIteratee;
1231
1095
  /*!***********************************************************************************!*\
1232
1096
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js ***!
1233
1097
  \***********************************************************************************/
1234
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1098
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1235
1099
 
1236
1100
  var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js");
1237
1101
 
@@ -1247,7 +1111,7 @@ module.exports = nativeKeys;
1247
1111
  /*!**************************************************************************************!*\
1248
1112
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js ***!
1249
1113
  \**************************************************************************************/
1250
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1114
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1251
1115
 
1252
1116
  var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js"),
1253
1117
  getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js"),
@@ -1279,7 +1143,7 @@ module.exports = baseMatches;
1279
1143
  /*!**********************************************************************************************!*\
1280
1144
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js ***!
1281
1145
  \**********************************************************************************************/
1282
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1146
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1283
1147
 
1284
1148
  var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js"),
1285
1149
  get = __webpack_require__(/*! ./get */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"),
@@ -1322,7 +1186,7 @@ module.exports = baseMatchesProperty;
1322
1186
  /*!***********************************************************************************!*\
1323
1187
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js ***!
1324
1188
  \***********************************************************************************/
1325
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1189
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1326
1190
 
1327
1191
  var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js"),
1328
1192
  hasIn = __webpack_require__(/*! ./hasIn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js");
@@ -1351,7 +1215,7 @@ module.exports = basePick;
1351
1215
  /*!*************************************************************************************!*\
1352
1216
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js ***!
1353
1217
  \*************************************************************************************/
1354
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1218
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1355
1219
 
1356
1220
  var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"),
1357
1221
  baseSet = __webpack_require__(/*! ./_baseSet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js"),
@@ -1391,7 +1255,7 @@ module.exports = basePickBy;
1391
1255
  /*!***************************************************************************************!*\
1392
1256
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js ***!
1393
1257
  \***************************************************************************************/
1394
- /***/ ((module) => {
1258
+ /***/ (function(module) {
1395
1259
 
1396
1260
  /**
1397
1261
  * The base implementation of `_.property` without support for deep paths.
@@ -1415,7 +1279,7 @@ module.exports = baseProperty;
1415
1279
  /*!*******************************************************************************************!*\
1416
1280
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js ***!
1417
1281
  \*******************************************************************************************/
1418
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1282
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1419
1283
 
1420
1284
  var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js");
1421
1285
 
@@ -1441,7 +1305,7 @@ module.exports = basePropertyDeep;
1441
1305
  /*!***********************************************************************************!*\
1442
1306
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js ***!
1443
1307
  \***********************************************************************************/
1444
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1308
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1445
1309
 
1446
1310
  var identity = __webpack_require__(/*! ./identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"),
1447
1311
  overRest = __webpack_require__(/*! ./_overRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"),
@@ -1468,7 +1332,7 @@ module.exports = baseRest;
1468
1332
  /*!**********************************************************************************!*\
1469
1333
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js ***!
1470
1334
  \**********************************************************************************/
1471
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1335
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1472
1336
 
1473
1337
  var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"),
1474
1338
  castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),
@@ -1529,7 +1393,7 @@ module.exports = baseSet;
1529
1393
  /*!***************************************************************************************!*\
1530
1394
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js ***!
1531
1395
  \***************************************************************************************/
1532
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1396
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1533
1397
 
1534
1398
  var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),
1535
1399
  arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
@@ -1576,7 +1440,7 @@ module.exports = baseToString;
1576
1440
  /*!***********************************************************************************!*\
1577
1441
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js ***!
1578
1442
  \***********************************************************************************/
1579
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1443
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1580
1444
 
1581
1445
  var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
1582
1446
  arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
@@ -1658,7 +1522,7 @@ module.exports = baseUniq;
1658
1522
  /*!***********************************************************************************!*\
1659
1523
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js ***!
1660
1524
  \***********************************************************************************/
1661
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1525
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1662
1526
 
1663
1527
  var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js");
1664
1528
 
@@ -1685,7 +1549,7 @@ module.exports = arrayIncludes;
1685
1549
  /*!***********************************************************************************!*\
1686
1550
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js ***!
1687
1551
  \***********************************************************************************/
1688
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1552
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1689
1553
 
1690
1554
  var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
1691
1555
  isKey = __webpack_require__(/*! ./_isKey */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"),
@@ -1716,7 +1580,7 @@ module.exports = castPath;
1716
1580
  /*!************************************************************************************!*\
1717
1581
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js ***!
1718
1582
  \************************************************************************************/
1719
- /***/ ((module) => {
1583
+ /***/ (function(module) {
1720
1584
 
1721
1585
  /**
1722
1586
  * This method returns `undefined`.
@@ -1743,7 +1607,7 @@ module.exports = noop;
1743
1607
  /*!*****************************************************************************************!*\
1744
1608
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js ***!
1745
1609
  \*****************************************************************************************/
1746
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1610
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1747
1611
 
1748
1612
  var getNative = __webpack_require__(/*! ./_getNative */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js");
1749
1613
 
@@ -1764,7 +1628,7 @@ module.exports = defineProperty;
1764
1628
  /*!**************************************************************************************!*\
1765
1629
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js ***!
1766
1630
  \**************************************************************************************/
1767
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1631
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1768
1632
 
1769
1633
  var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
1770
1634
  arraySome = __webpack_require__(/*! ./_arraySome */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js"),
@@ -1858,7 +1722,7 @@ module.exports = equalArrays;
1858
1722
  /*!*************************************************************************************!*\
1859
1723
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js ***!
1860
1724
  \*************************************************************************************/
1861
- /***/ ((module) => {
1725
+ /***/ (function(module) {
1862
1726
 
1863
1727
  /**
1864
1728
  * Performs a
@@ -1905,7 +1769,7 @@ module.exports = eq;
1905
1769
  /*!***************************************************************************************!*\
1906
1770
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js ***!
1907
1771
  \***************************************************************************************/
1908
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1772
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1909
1773
 
1910
1774
  var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js");
1911
1775
 
@@ -2005,7 +1869,7 @@ module.exports = equalObjects;
2005
1869
  /*!***********************************************************************************!*\
2006
1870
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js ***!
2007
1871
  \***********************************************************************************/
2008
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1872
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2009
1873
 
2010
1874
  var flatten = __webpack_require__(/*! ./flatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js"),
2011
1875
  overRest = __webpack_require__(/*! ./_overRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"),
@@ -2031,7 +1895,7 @@ module.exports = flatRest;
2031
1895
  /*!*************************************************************************************!*\
2032
1896
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js ***!
2033
1897
  \*************************************************************************************/
2034
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1898
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2035
1899
 
2036
1900
  /** Detect free variable `global` from Node.js. */
2037
1901
  var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
@@ -2045,7 +1909,7 @@ module.exports = freeGlobal;
2045
1909
  /*!*************************************************************************************!*\
2046
1910
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js ***!
2047
1911
  \*************************************************************************************/
2048
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1912
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2049
1913
 
2050
1914
  var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js");
2051
1915
 
@@ -2061,7 +1925,7 @@ module.exports = nativeKeys;
2061
1925
  /*!***************************************************************************************!*\
2062
1926
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js ***!
2063
1927
  \***************************************************************************************/
2064
- /***/ ((module) => {
1928
+ /***/ (function(module) {
2065
1929
 
2066
1930
  /**
2067
1931
  * This function is like
@@ -2091,7 +1955,7 @@ module.exports = nativeKeysIn;
2091
1955
  /*!***************************************************************************************!*\
2092
1956
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js ***!
2093
1957
  \***************************************************************************************/
2094
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1958
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2095
1959
 
2096
1960
  var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js"),
2097
1961
  keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
@@ -2125,7 +1989,7 @@ module.exports = getMatchData;
2125
1989
  /*!************************************************************************************!*\
2126
1990
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js ***!
2127
1991
  \************************************************************************************/
2128
- /***/ ((module) => {
1992
+ /***/ (function(module) {
2129
1993
 
2130
1994
  /**
2131
1995
  * Gets the value at `key` of `object`.
@@ -2148,7 +2012,7 @@ module.exports = getValue;
2148
2012
  /*!*********************************************************************************!*\
2149
2013
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js ***!
2150
2014
  \*********************************************************************************/
2151
- /***/ ((module) => {
2015
+ /***/ (function(module) {
2152
2016
 
2153
2017
  /** Used for built-in method references. */
2154
2018
  var objectProto = Object.prototype;
@@ -2180,7 +2044,7 @@ module.exports = objectToString;
2180
2044
  /*!**********************************************************************************!*\
2181
2045
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js ***!
2182
2046
  \**********************************************************************************/
2183
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2047
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2184
2048
 
2185
2049
  var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),
2186
2050
  isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"),
@@ -2229,7 +2093,7 @@ module.exports = hasPath;
2229
2093
  /*!****************************************************************************************!*\
2230
2094
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js ***!
2231
2095
  \****************************************************************************************/
2232
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2096
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2233
2097
 
2234
2098
  var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),
2235
2099
  isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"),
@@ -2259,7 +2123,7 @@ module.exports = isFlattenable;
2259
2123
  /*!**********************************************************************************!*\
2260
2124
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js ***!
2261
2125
  \**********************************************************************************/
2262
- /***/ ((module) => {
2126
+ /***/ (function(module) {
2263
2127
 
2264
2128
  /** Used as references for various `Number` constants. */
2265
2129
  var MAX_SAFE_INTEGER = 9007199254740991;
@@ -2294,7 +2158,7 @@ module.exports = isIndex;
2294
2158
  /*!*****************************************************************************************!*\
2295
2159
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js ***!
2296
2160
  \*****************************************************************************************/
2297
- /***/ ((module) => {
2161
+ /***/ (function(module) {
2298
2162
 
2299
2163
  /**
2300
2164
  * This method returns `false`.
@@ -2322,7 +2186,7 @@ module.exports = stubFalse;
2322
2186
  /*!********************************************************************************!*\
2323
2187
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js ***!
2324
2188
  \********************************************************************************/
2325
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2189
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2326
2190
 
2327
2191
  var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
2328
2192
  isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
@@ -2361,7 +2225,7 @@ module.exports = isKey;
2361
2225
  /*!**************************************************************************************!*\
2362
2226
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js ***!
2363
2227
  \**************************************************************************************/
2364
- /***/ ((module) => {
2228
+ /***/ (function(module) {
2365
2229
 
2366
2230
  /**
2367
2231
  * This method returns `false`.
@@ -2389,7 +2253,7 @@ module.exports = stubFalse;
2389
2253
  /*!*********************************************************************************************!*\
2390
2254
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js ***!
2391
2255
  \*********************************************************************************************/
2392
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2256
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2393
2257
 
2394
2258
  var isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
2395
2259
 
@@ -2414,7 +2278,7 @@ module.exports = isStrictComparable;
2414
2278
  /*!*****************************************************************************************!*\
2415
2279
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js ***!
2416
2280
  \*****************************************************************************************/
2417
- /***/ ((module) => {
2281
+ /***/ (function(module) {
2418
2282
 
2419
2283
  /**
2420
2284
  * Removes all key-value entries from the list cache.
@@ -2437,7 +2301,7 @@ module.exports = listCacheClear;
2437
2301
  /*!******************************************************************************************!*\
2438
2302
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js ***!
2439
2303
  \******************************************************************************************/
2440
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2304
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2441
2305
 
2442
2306
  var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");
2443
2307
 
@@ -2482,7 +2346,7 @@ module.exports = listCacheDelete;
2482
2346
  /*!***************************************************************************************!*\
2483
2347
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js ***!
2484
2348
  \***************************************************************************************/
2485
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2349
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2486
2350
 
2487
2351
  var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");
2488
2352
 
@@ -2511,7 +2375,7 @@ module.exports = listCacheGet;
2511
2375
  /*!***************************************************************************************!*\
2512
2376
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js ***!
2513
2377
  \***************************************************************************************/
2514
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2378
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2515
2379
 
2516
2380
  var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");
2517
2381
 
@@ -2537,7 +2401,7 @@ module.exports = listCacheHas;
2537
2401
  /*!***************************************************************************************!*\
2538
2402
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js ***!
2539
2403
  \***************************************************************************************/
2540
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2404
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2541
2405
 
2542
2406
  var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");
2543
2407
 
@@ -2573,7 +2437,7 @@ module.exports = listCacheSet;
2573
2437
  /*!**************************************************************************************************!*\
2574
2438
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js ***!
2575
2439
  \**************************************************************************************************/
2576
- /***/ ((module) => {
2440
+ /***/ (function(module) {
2577
2441
 
2578
2442
  /**
2579
2443
  * A specialized version of `matchesProperty` for source values suitable
@@ -2603,7 +2467,7 @@ module.exports = matchesStrictComparable;
2603
2467
  /*!****************************************************************************************!*\
2604
2468
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js ***!
2605
2469
  \****************************************************************************************/
2606
- /***/ ((module) => {
2470
+ /***/ (function(module) {
2607
2471
 
2608
2472
  /**
2609
2473
  * This method returns the first argument it receives.
@@ -2634,7 +2498,7 @@ module.exports = identity;
2634
2498
  /*!**********************************************************************************!*\
2635
2499
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js ***!
2636
2500
  \**********************************************************************************/
2637
- /***/ ((module) => {
2501
+ /***/ (function(module) {
2638
2502
 
2639
2503
  /**
2640
2504
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -2659,7 +2523,7 @@ module.exports = overArg;
2659
2523
  /*!***********************************************************************************!*\
2660
2524
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js ***!
2661
2525
  \***********************************************************************************/
2662
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2526
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2663
2527
 
2664
2528
  var apply = __webpack_require__(/*! ./_apply */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js");
2665
2529
 
@@ -2705,7 +2569,7 @@ module.exports = overRest;
2705
2569
  /*!*******************************************************************************!*\
2706
2570
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js ***!
2707
2571
  \*******************************************************************************/
2708
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2572
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2709
2573
 
2710
2574
  var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js");
2711
2575
 
@@ -2724,7 +2588,7 @@ module.exports = root;
2724
2588
  /*!*************************************************************************************!*\
2725
2589
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js ***!
2726
2590
  \*************************************************************************************/
2727
- /***/ ((module) => {
2591
+ /***/ (function(module) {
2728
2592
 
2729
2593
  /**
2730
2594
  * This method returns a new empty array.
@@ -2757,7 +2621,7 @@ module.exports = stubArray;
2757
2621
  /*!**************************************************************************************!*\
2758
2622
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js ***!
2759
2623
  \**************************************************************************************/
2760
- /***/ ((module) => {
2624
+ /***/ (function(module) {
2761
2625
 
2762
2626
  /**
2763
2627
  * This method returns the first argument it receives.
@@ -2788,7 +2652,7 @@ module.exports = identity;
2788
2652
  /*!***************************************************************************************!*\
2789
2653
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js ***!
2790
2654
  \***************************************************************************************/
2791
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2655
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2792
2656
 
2793
2657
  var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js");
2794
2658
 
@@ -2825,7 +2689,7 @@ module.exports = stringToPath;
2825
2689
  /*!********************************************************************************!*\
2826
2690
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js ***!
2827
2691
  \********************************************************************************/
2828
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2692
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2829
2693
 
2830
2694
  var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
2831
2695
 
@@ -2856,7 +2720,7 @@ module.exports = toKey;
2856
2720
  /*!**********************************************************************************!*\
2857
2721
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js ***!
2858
2722
  \**********************************************************************************/
2859
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2723
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2860
2724
 
2861
2725
  var baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
2862
2726
  eq = __webpack_require__(/*! ./eq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"),
@@ -2930,7 +2794,7 @@ module.exports = defaults;
2930
2794
  /*!****************************************************************************!*\
2931
2795
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js ***!
2932
2796
  \****************************************************************************/
2933
- /***/ ((module) => {
2797
+ /***/ (function(module) {
2934
2798
 
2935
2799
  /**
2936
2800
  * Performs a
@@ -2977,7 +2841,7 @@ module.exports = eq;
2977
2841
  /*!*********************************************************************************!*\
2978
2842
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js ***!
2979
2843
  \*********************************************************************************/
2980
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2844
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2981
2845
 
2982
2846
  var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js");
2983
2847
 
@@ -3009,7 +2873,7 @@ module.exports = flatten;
3009
2873
  /*!***********************************************************************************!*\
3010
2874
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js ***!
3011
2875
  \***********************************************************************************/
3012
- /***/ ((module) => {
2876
+ /***/ (function(module) {
3013
2877
 
3014
2878
  /**
3015
2879
  * The inverse of `_.toPairs`; this method returns an object composed
@@ -3047,7 +2911,7 @@ module.exports = fromPairs;
3047
2911
  /*!*****************************************************************************!*\
3048
2912
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js ***!
3049
2913
  \*****************************************************************************/
3050
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2914
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3051
2915
 
3052
2916
  var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js");
3053
2917
 
@@ -3090,7 +2954,7 @@ module.exports = get;
3090
2954
  /*!*******************************************************************************!*\
3091
2955
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js ***!
3092
2956
  \*******************************************************************************/
3093
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2957
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3094
2958
 
3095
2959
  var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js"),
3096
2960
  hasPath = __webpack_require__(/*! ./_hasPath */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js");
@@ -3134,7 +2998,7 @@ module.exports = hasIn;
3134
2998
  /*!**********************************************************************************!*\
3135
2999
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js ***!
3136
3000
  \**********************************************************************************/
3137
- /***/ ((module) => {
3001
+ /***/ (function(module) {
3138
3002
 
3139
3003
  /**
3140
3004
  * This method returns the first argument it receives.
@@ -3165,7 +3029,7 @@ module.exports = identity;
3165
3029
  /*!*************************************************************************************!*\
3166
3030
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js ***!
3167
3031
  \*************************************************************************************/
3168
- /***/ ((module) => {
3032
+ /***/ (function(module) {
3169
3033
 
3170
3034
  /**
3171
3035
  * This method returns `false`.
@@ -3193,7 +3057,7 @@ module.exports = stubFalse;
3193
3057
  /*!*********************************************************************************!*\
3194
3058
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js ***!
3195
3059
  \*********************************************************************************/
3196
- /***/ ((module) => {
3060
+ /***/ (function(module) {
3197
3061
 
3198
3062
  /**
3199
3063
  * Checks if `value` is classified as an `Array` object.
@@ -3229,7 +3093,7 @@ module.exports = isArray;
3229
3093
  /*!*************************************************************************************!*\
3230
3094
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js ***!
3231
3095
  \*************************************************************************************/
3232
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3096
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3233
3097
 
3234
3098
  var isFunction = __webpack_require__(/*! ./isFunction */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"),
3235
3099
  isLength = __webpack_require__(/*! ./isLength */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js");
@@ -3272,7 +3136,7 @@ module.exports = isArrayLike;
3272
3136
  /*!**********************************************************************************!*\
3273
3137
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js ***!
3274
3138
  \**********************************************************************************/
3275
- /***/ ((module) => {
3139
+ /***/ (function(module) {
3276
3140
 
3277
3141
  /**
3278
3142
  * This method returns `false`.
@@ -3300,7 +3164,7 @@ module.exports = stubFalse;
3300
3164
  /*!*********************************************************************************!*\
3301
3165
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js ***!
3302
3166
  \*********************************************************************************/
3303
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3167
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3304
3168
 
3305
3169
  var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js"),
3306
3170
  getTag = __webpack_require__(/*! ./_getTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js"),
@@ -3387,7 +3251,7 @@ module.exports = isEmpty;
3387
3251
  /*!************************************************************************************!*\
3388
3252
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js ***!
3389
3253
  \************************************************************************************/
3390
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3254
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3391
3255
 
3392
3256
  var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
3393
3257
  isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
@@ -3434,7 +3298,7 @@ module.exports = isFunction;
3434
3298
  /*!**********************************************************************************!*\
3435
3299
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js ***!
3436
3300
  \**********************************************************************************/
3437
- /***/ ((module) => {
3301
+ /***/ (function(module) {
3438
3302
 
3439
3303
  /** Used as references for various `Number` constants. */
3440
3304
  var MAX_SAFE_INTEGER = 9007199254740991;
@@ -3479,7 +3343,7 @@ module.exports = isLength;
3479
3343
  /*!**********************************************************************************!*\
3480
3344
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js ***!
3481
3345
  \**********************************************************************************/
3482
- /***/ ((module) => {
3346
+ /***/ (function(module) {
3483
3347
 
3484
3348
  /**
3485
3349
  * Checks if `value` is the
@@ -3520,7 +3384,7 @@ module.exports = isObject;
3520
3384
  /*!**************************************************************************************!*\
3521
3385
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js ***!
3522
3386
  \**************************************************************************************/
3523
- /***/ ((module) => {
3387
+ /***/ (function(module) {
3524
3388
 
3525
3389
  /**
3526
3390
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -3559,7 +3423,7 @@ module.exports = isObjectLike;
3559
3423
  /*!**********************************************************************************!*\
3560
3424
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js ***!
3561
3425
  \**********************************************************************************/
3562
- /***/ ((module) => {
3426
+ /***/ (function(module) {
3563
3427
 
3564
3428
  /**
3565
3429
  * This method returns `false`.
@@ -3587,7 +3451,7 @@ module.exports = stubFalse;
3587
3451
  /*!**************************************************************************************!*\
3588
3452
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js ***!
3589
3453
  \**************************************************************************************/
3590
- /***/ ((module) => {
3454
+ /***/ (function(module) {
3591
3455
 
3592
3456
  /**
3593
3457
  * This method returns `false`.
@@ -3615,7 +3479,7 @@ module.exports = stubFalse;
3615
3479
  /*!******************************************************************************!*\
3616
3480
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js ***!
3617
3481
  \******************************************************************************/
3618
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3482
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3619
3483
 
3620
3484
  var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js");
3621
3485
 
@@ -3631,7 +3495,7 @@ module.exports = nativeKeys;
3631
3495
  /*!********************************************************************************!*\
3632
3496
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js ***!
3633
3497
  \********************************************************************************/
3634
- /***/ ((module) => {
3498
+ /***/ (function(module) {
3635
3499
 
3636
3500
  /**
3637
3501
  * This function is like
@@ -3661,7 +3525,7 @@ module.exports = nativeKeysIn;
3661
3525
  /*!********************************************************************************!*\
3662
3526
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/negate.js ***!
3663
3527
  \********************************************************************************/
3664
- /***/ ((module) => {
3528
+ /***/ (function(module) {
3665
3529
 
3666
3530
  /** Error message constants. */
3667
3531
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -3711,7 +3575,7 @@ module.exports = negate;
3711
3575
  /*!********************************************************************************!*\
3712
3576
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js ***!
3713
3577
  \********************************************************************************/
3714
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3578
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3715
3579
 
3716
3580
  var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
3717
3581
  negate = __webpack_require__(/*! ./negate */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/negate.js"),
@@ -3750,7 +3614,7 @@ module.exports = omitBy;
3750
3614
  /*!******************************************************************************!*\
3751
3615
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js ***!
3752
3616
  \******************************************************************************/
3753
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3617
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3754
3618
 
3755
3619
  var basePick = __webpack_require__(/*! ./_basePick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js"),
3756
3620
  flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js");
@@ -3785,7 +3649,7 @@ module.exports = pick;
3785
3649
  /*!********************************************************************************!*\
3786
3650
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js ***!
3787
3651
  \********************************************************************************/
3788
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3652
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3789
3653
 
3790
3654
  var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
3791
3655
  baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
@@ -3832,7 +3696,7 @@ module.exports = pickBy;
3832
3696
  /*!**********************************************************************************!*\
3833
3697
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js ***!
3834
3698
  \**********************************************************************************/
3835
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3699
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3836
3700
 
3837
3701
  var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"),
3838
3702
  basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js"),
@@ -3874,7 +3738,7 @@ module.exports = property;
3874
3738
  /*!**********************************************************************************!*\
3875
3739
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
3876
3740
  \**********************************************************************************/
3877
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3741
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3878
3742
 
3879
3743
  var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
3880
3744
 
@@ -3912,7 +3776,7 @@ module.exports = toString;
3912
3776
  /*!******************************************************************************!*\
3913
3777
  !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
3914
3778
  \******************************************************************************/
3915
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3779
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3916
3780
 
3917
3781
  var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
3918
3782
 
@@ -3947,7 +3811,7 @@ module.exports = uniq;
3947
3811
  /*!*****************************************************************************************************!*\
3948
3812
  !*** ../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js ***!
3949
3813
  \*****************************************************************************************************/
3950
- /***/ ((module) => {
3814
+ /***/ (function(module) {
3951
3815
 
3952
3816
  /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
3953
3817
 
@@ -4091,98 +3955,70 @@ module.exports = function isEqual(a, b) {
4091
3955
  /*!********************************************************!*\
4092
3956
  !*** ../../victory-core/es/victory-util/collection.js ***!
4093
3957
  \********************************************************/
4094
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3958
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4095
3959
 
4096
3960
  "use strict";
4097
3961
  __webpack_require__.r(__webpack_exports__);
4098
3962
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4099
- /* harmony export */ "containsDates": () => (/* binding */ containsDates),
4100
- /* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
4101
- /* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
4102
- /* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
4103
- /* harmony export */ "difference": () => (/* binding */ difference),
4104
- /* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
4105
- /* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
4106
- /* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
4107
- /* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
3963
+ /* harmony export */ "containsDates": function() { return /* binding */ containsDates; },
3964
+ /* harmony export */ "containsNumbers": function() { return /* binding */ containsNumbers; },
3965
+ /* harmony export */ "containsOnlyStrings": function() { return /* binding */ containsOnlyStrings; },
3966
+ /* harmony export */ "containsStrings": function() { return /* binding */ containsStrings; },
3967
+ /* harmony export */ "difference": function() { return /* binding */ difference; },
3968
+ /* harmony export */ "getMaxValue": function() { return /* binding */ getMaxValue; },
3969
+ /* harmony export */ "getMinValue": function() { return /* binding */ getMinValue; },
3970
+ /* harmony export */ "isArrayOfArrays": function() { return /* binding */ isArrayOfArrays; },
3971
+ /* harmony export */ "removeUndefined": function() { return /* binding */ removeUndefined; }
4108
3972
  /* harmony export */ });
4109
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4110
-
4111
- 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."); }
4112
-
4113
- 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); }
4114
-
4115
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4116
-
4117
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
4118
-
4119
- 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; }
4120
-
4121
3973
  function isNonEmptyArray(collection) {
4122
3974
  return Array.isArray(collection) && collection.length > 0;
4123
3975
  }
4124
-
4125
3976
  function containsStrings(collection) {
4126
- return Array.isArray(collection) && collection.some(function (value) {
4127
- return typeof value === "string";
4128
- });
3977
+ return Array.isArray(collection) && collection.some(value => typeof value === "string");
4129
3978
  }
4130
3979
  function containsDates(collection) {
4131
- return Array.isArray(collection) && collection.some(function (value) {
4132
- return value instanceof Date;
4133
- });
3980
+ return Array.isArray(collection) && collection.some(value => value instanceof Date);
4134
3981
  }
4135
3982
  function containsNumbers(collection) {
4136
- return Array.isArray(collection) && collection.some(function (value) {
4137
- return typeof value === "number";
4138
- });
3983
+ return Array.isArray(collection) && collection.some(value => typeof value === "number");
4139
3984
  }
4140
3985
  function containsOnlyStrings(collection) {
4141
- return isNonEmptyArray(collection) && collection.every(function (value) {
4142
- return typeof value === "string";
4143
- });
3986
+ return isNonEmptyArray(collection) && collection.every(value => typeof value === "string");
4144
3987
  }
3988
+
4145
3989
  /**
4146
3990
  * Creates an array of array values not included in the other given arrays
4147
3991
  * @param a The array to inspect
4148
3992
  * @param b The values to exclude
4149
3993
  * @returns The new array of filtered values
4150
3994
  */
4151
-
4152
3995
  function difference(a, b) {
4153
3996
  if (a && b) {
4154
- return a.filter(function (value) {
4155
- return !b.includes(value);
4156
- });
3997
+ return a.filter(value => !b.includes(value));
4157
3998
  }
4158
-
4159
3999
  return [];
4160
4000
  }
4161
4001
  function isArrayOfArrays(collection) {
4162
4002
  return isNonEmptyArray(collection) && collection.every(Array.isArray);
4163
4003
  }
4164
4004
  function removeUndefined(arr) {
4165
- return arr.filter(function (el) {
4166
- return el !== undefined;
4167
- });
4005
+ return arr.filter(el => el !== undefined);
4168
4006
  }
4169
4007
  function getMaxValue(arr) {
4170
4008
  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4171
4009
  values[_key - 1] = arguments[_key];
4172
4010
  }
4173
-
4174
- var array = arr.concat(values);
4175
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
4176
- : Math.max.apply(Math, _toConsumableArray(array));
4011
+ const array = arr.concat(values);
4012
+ return containsDates(array) ? new Date(Math.max(...array)) // Dates will be coerced to numbers
4013
+ : Math.max(...array);
4177
4014
  }
4178
4015
  function getMinValue(arr) {
4179
4016
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
4180
4017
  values[_key2 - 1] = arguments[_key2];
4181
4018
  }
4182
-
4183
- var array = arr.concat(values);
4184
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
4185
- : Math.min.apply(Math, _toConsumableArray(array));
4019
+ const array = arr.concat(values);
4020
+ return containsDates(array) ? new Date(Math.min(...array)) // Dates will be coerced to numbers
4021
+ : Math.min(...array);
4186
4022
  }
4187
4023
 
4188
4024
  /***/ }),
@@ -4191,23 +4027,23 @@ function getMinValue(arr) {
4191
4027
  /*!****************************************************!*\
4192
4028
  !*** ../../victory-core/es/victory-util/events.js ***!
4193
4029
  \****************************************************/
4194
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4030
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4195
4031
 
4196
4032
  "use strict";
4197
4033
  __webpack_require__.r(__webpack_exports__);
4198
4034
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4199
- /* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
4200
- /* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
4201
- /* harmony export */ "getEventState": () => (/* binding */ getEventState),
4202
- /* harmony export */ "getEvents": () => (/* binding */ getEvents),
4203
- /* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
4204
- /* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
4205
- /* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
4206
- /* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
4207
- /* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
4208
- /* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
4209
- /* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
4210
- /* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
4035
+ /* harmony export */ "emulateReactEvent": function() { return /* binding */ emulateReactEvent; },
4036
+ /* harmony export */ "getComponentEvents": function() { return /* binding */ getComponentEvents; },
4037
+ /* harmony export */ "getEventState": function() { return /* binding */ getEventState; },
4038
+ /* harmony export */ "getEvents": function() { return /* binding */ getEvents; },
4039
+ /* harmony export */ "getExternalMutation": function() { return /* binding */ getExternalMutation; },
4040
+ /* harmony export */ "getExternalMutations": function() { return /* binding */ getExternalMutations; },
4041
+ /* harmony export */ "getExternalMutationsWithChildren": function() { return /* binding */ getExternalMutationsWithChildren; },
4042
+ /* harmony export */ "getGlobalEventNameFromKey": function() { return /* binding */ getGlobalEventNameFromKey; },
4043
+ /* harmony export */ "getGlobalEvents": function() { return /* binding */ getGlobalEvents; },
4044
+ /* harmony export */ "getPartialEvents": function() { return /* binding */ getPartialEvents; },
4045
+ /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
4046
+ /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
4211
4047
  /* harmony export */ });
4212
4048
  /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
4213
4049
  /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
@@ -4222,23 +4058,12 @@ __webpack_require__.r(__webpack_exports__);
4222
4058
 
4223
4059
 
4224
4060
 
4061
+ /* eslint-disable no-use-before-define */
4225
4062
 
4226
- 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; }
4227
-
4228
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4229
-
4230
- 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."); }
4231
-
4232
- 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); }
4233
-
4234
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4235
-
4236
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
4237
-
4238
- 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; }
4239
-
4063
+ const GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
4240
4064
 
4241
- var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
4065
+ // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
4066
+ // `on${Capitalize<string>}`;
4242
4067
 
4243
4068
  /* Returns all own and shared events that should be attached to a single target element,
4244
4069
  * i.e. an individual bar specified by target: "data", eventKey: [index].
@@ -4247,252 +4072,206 @@ var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
4247
4072
  * (i.e. VictoryChart) in the case of shared events
4248
4073
  */
4249
4074
  // eslint-disable-next-line max-params
4250
- function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
4075
+ function getEvents(props, target, eventKey,
4076
+ // eslint-disable-next-line no-shadow
4251
4077
  getScopedEvents) {
4252
- var _this = this;
4253
-
4254
4078
  // Returns all events that apply to a particular target element
4255
- var getEventsByTarget = function (events) {
4256
- var getSelectedEvents = function () {
4257
- var targetEvents = events.reduce(function (memo, event) {
4079
+ const getEventsByTarget = events => {
4080
+ const getSelectedEvents = () => {
4081
+ const targetEvents = events.reduce((memo, event) => {
4258
4082
  if (event.target !== undefined) {
4259
- var matchesTarget = Array.isArray(event.target) ? event.target.includes(target) : "".concat(event.target) === "".concat(target);
4083
+ const matchesTarget = Array.isArray(event.target) ? event.target.includes(target) : `${event.target}` === `${target}`;
4260
4084
  return matchesTarget ? memo.concat(event) : memo;
4261
4085
  }
4262
-
4263
4086
  return memo.concat(event);
4264
4087
  }, []);
4265
-
4266
4088
  if (eventKey !== undefined && target !== "parent") {
4267
- return targetEvents.filter(function (obj) {
4268
- var targetKeys = obj.eventKey;
4269
-
4270
- var useKey = function (key) {
4271
- return key ? "".concat(key) === "".concat(eventKey) : true;
4272
- };
4273
-
4274
- return Array.isArray(targetKeys) ? targetKeys.some(function (k) {
4275
- return useKey(k);
4276
- }) : useKey(targetKeys);
4089
+ return targetEvents.filter(obj => {
4090
+ const targetKeys = obj.eventKey;
4091
+ const useKey = key => key ? `${key}` === `${eventKey}` : true;
4092
+ return Array.isArray(targetKeys) ? targetKeys.some(k => useKey(k)) : useKey(targetKeys);
4277
4093
  });
4278
4094
  }
4279
-
4280
4095
  return targetEvents;
4281
4096
  };
4282
-
4283
- var selectedEvents = getSelectedEvents();
4284
- return Array.isArray(selectedEvents) && selectedEvents.reduce(function (memo, event) {
4097
+ const selectedEvents = getSelectedEvents();
4098
+ return Array.isArray(selectedEvents) && selectedEvents.reduce((memo, event) => {
4285
4099
  return event ? Object.assign(memo, event.eventHandlers) : memo;
4286
4100
  }, {});
4287
4101
  };
4102
+
4288
4103
  /* Returns all events from props and defaultEvents from components. Events handlers
4289
4104
  * specified in props will override handlers for the same event if they are also
4290
4105
  * specified in defaultEvents of a sub-component
4291
4106
  */
4292
-
4293
-
4294
- var getAllEvents = function () {
4107
+ const getAllEvents = () => {
4295
4108
  // Mandatory usage: `getEvents.bind(this)`
4296
-
4297
4109
  /* eslint-disable no-invalid-this */
4298
- if (Array.isArray(_this.componentEvents)) {
4299
- var _this$componentEvents;
4300
-
4301
- return Array.isArray(props.events) ? (_this$componentEvents = _this.componentEvents).concat.apply(_this$componentEvents, _toConsumableArray(props.events)) : _this.componentEvents;
4110
+ if (Array.isArray(this.componentEvents)) {
4111
+ return Array.isArray(props.events) ? this.componentEvents.concat(...props.events) : this.componentEvents;
4302
4112
  }
4303
4113
  /* eslint-enable no-invalid-this */
4304
-
4305
-
4306
4114
  return props.events;
4307
4115
  };
4308
-
4309
- var allEvents = getAllEvents();
4310
- var ownEvents = allEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(getScopedEvents) ? getScopedEvents(getEventsByTarget(allEvents), target) : undefined;
4311
-
4116
+ const allEvents = getAllEvents();
4117
+ const ownEvents = allEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(getScopedEvents) ? getScopedEvents(getEventsByTarget(allEvents), target) : undefined;
4312
4118
  if (!props.sharedEvents) {
4313
4119
  return ownEvents;
4314
4120
  }
4315
-
4316
- var getSharedEvents = props.sharedEvents.getEvents;
4317
- var sharedEvents = props.sharedEvents.events && getSharedEvents(getEventsByTarget(props.sharedEvents.events), target);
4121
+ const getSharedEvents = props.sharedEvents.getEvents;
4122
+ const sharedEvents = props.sharedEvents.events && getSharedEvents(getEventsByTarget(props.sharedEvents.events), target);
4318
4123
  return Object.assign({}, sharedEvents, ownEvents);
4319
4124
  }
4125
+
4320
4126
  /* Returns a modified events object where each event handler is replaced by a new
4321
4127
  * function that calls the original handler and then calls setState with the return
4322
4128
  * of the original event handler assigned to state property that maps to the target
4323
4129
  * element.
4324
4130
  */
4325
4131
  // eslint-disable-next-line max-params
4326
-
4327
4132
  function getScopedEvents(events, namespace, childType, baseProps) {
4328
- var _this2 = this;
4329
-
4330
4133
  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
4331
4134
  return {};
4332
- } // Mandatory usage: `getScopedEvents.bind(this)`
4333
- // eslint-disable-next-line no-invalid-this
4334
-
4335
-
4336
- var newBaseProps = baseProps || this.baseProps; // returns the original base props or base state of a given target element
4337
-
4338
- var getTargetProps = function (identifier, type) {
4339
- var childName = identifier.childName,
4340
- target = identifier.target,
4341
- key = identifier.key; // eslint-disable-next-line no-invalid-this
4135
+ }
4342
4136
 
4343
- var baseType = type === "props" ? newBaseProps : _this2.state || {};
4344
- var base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
4137
+ // Mandatory usage: `getScopedEvents.bind(this)`
4138
+ // eslint-disable-next-line no-invalid-this
4139
+ const newBaseProps = baseProps || this.baseProps;
4140
+ // returns the original base props or base state of a given target element
4141
+ const getTargetProps = (identifier, type) => {
4142
+ const {
4143
+ childName,
4144
+ target,
4145
+ key
4146
+ } = identifier;
4147
+ // eslint-disable-next-line no-invalid-this
4148
+ const baseType = type === "props" ? newBaseProps : this.state || {};
4149
+ const base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
4345
4150
  return key === "parent" ? base.parent : base[key] && base[key][target];
4346
- }; // Returns the state object with the mutation caused by a given eventReturn
4347
- // applied to the appropriate property on the state object
4348
-
4151
+ };
4349
4152
 
4350
- var parseEvent = function (eventReturn, eventKey) {
4351
- var childNames = namespace === "parent" ? eventReturn.childName : eventReturn.childName || childType;
4352
- var target = eventReturn.target || namespace; // returns all eventKeys to modify for a targeted childName
4153
+ // Returns the state object with the mutation caused by a given eventReturn
4154
+ // applied to the appropriate property on the state object
4155
+ const parseEvent = (eventReturn, eventKey) => {
4156
+ const childNames = namespace === "parent" ? eventReturn.childName : eventReturn.childName || childType;
4157
+ const target = eventReturn.target || namespace;
4353
4158
 
4354
- var getKeys = function (childName) {
4159
+ // returns all eventKeys to modify for a targeted childName
4160
+ const getKeys = childName => {
4355
4161
  if (target === "parent") {
4356
4162
  return "parent";
4357
4163
  }
4358
-
4359
4164
  if (eventReturn.eventKey === "all") {
4360
- return newBaseProps[childName] ? Object.keys(newBaseProps[childName]).filter(function (value) {
4361
- return value !== "parent";
4362
- }) : Object.keys(newBaseProps).filter(function (value) {
4363
- return value !== "parent";
4364
- });
4165
+ return newBaseProps[childName] ? Object.keys(newBaseProps[childName]).filter(value => value !== "parent") : Object.keys(newBaseProps).filter(value => value !== "parent");
4365
4166
  } else if (eventReturn.eventKey === undefined && eventKey === "parent") {
4366
4167
  return newBaseProps[childName] ? Object.keys(newBaseProps[childName]) : Object.keys(newBaseProps);
4367
4168
  }
4368
-
4369
4169
  return eventReturn.eventKey !== undefined ? eventReturn.eventKey : eventKey;
4370
- }; // returns the state object with mutated props applied for a single key
4371
-
4170
+ };
4372
4171
 
4373
- var getMutationObject = function (key, childName) {
4172
+ // returns the state object with mutated props applied for a single key
4173
+ const getMutationObject = (key, childName) => {
4374
4174
  // eslint-disable-next-line no-invalid-this
4375
- var baseState = _this2.state || {};
4376
-
4175
+ const baseState = this.state || {};
4377
4176
  if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(eventReturn.mutation)) {
4378
4177
  return baseState;
4379
4178
  }
4380
-
4381
- var mutationTargetProps = getTargetProps({
4382
- childName: childName,
4383
- key: key,
4384
- target: target
4179
+ const mutationTargetProps = getTargetProps({
4180
+ childName,
4181
+ key,
4182
+ target
4385
4183
  }, "props");
4386
- var mutationTargetState = getTargetProps({
4387
- childName: childName,
4388
- key: key,
4389
- target: target
4184
+ const mutationTargetState = getTargetProps({
4185
+ childName,
4186
+ key,
4187
+ target
4390
4188
  }, "state");
4391
- var mutatedProps = eventReturn.mutation(Object.assign({}, mutationTargetProps, mutationTargetState), newBaseProps);
4392
- var childState = baseState[childName] || {};
4393
-
4394
- var filterState = function (state) {
4189
+ const mutatedProps = eventReturn.mutation(Object.assign({}, mutationTargetProps, mutationTargetState), newBaseProps);
4190
+ const childState = baseState[childName] || {};
4191
+ const filterState = state => {
4395
4192
  if (state[key] && state[key][target]) {
4396
4193
  delete state[key][target];
4397
4194
  }
4398
-
4399
4195
  if (state[key] && !Object.keys(state[key]).length) {
4400
4196
  delete state[key];
4401
4197
  }
4402
-
4403
4198
  return state;
4404
4199
  };
4405
-
4406
- var extendState = function (state) {
4407
- return target === "parent" ? Object.assign(state, _defineProperty({}, key, Object.assign(state[key] || {}, mutatedProps))) : Object.assign(state, _defineProperty({}, key, Object.assign(state[key] || {}, _defineProperty({}, target, mutatedProps))));
4200
+ const extendState = state => {
4201
+ return target === "parent" ? Object.assign(state, {
4202
+ [key]: Object.assign(state[key] || {}, mutatedProps)
4203
+ }) : Object.assign(state, {
4204
+ [key]: Object.assign(state[key] || {}, {
4205
+ [target]: mutatedProps
4206
+ })
4207
+ });
4408
4208
  };
4409
-
4410
- var updateState = function (state) {
4209
+ const updateState = state => {
4411
4210
  return mutatedProps ? extendState(state) : filterState(state);
4412
4211
  };
4212
+ return childName !== undefined && childName !== null ? Object.assign(baseState, {
4213
+ [childName]: updateState(childState)
4214
+ }) : updateState(baseState);
4215
+ };
4413
4216
 
4414
- return childName !== undefined && childName !== null ? Object.assign(baseState, _defineProperty({}, childName, updateState(childState))) : updateState(baseState);
4415
- }; // returns entire mutated state for a given childName
4416
-
4417
-
4418
- var getReturnByChild = function (childName) {
4419
- var mutationKeys = getKeys(childName);
4420
- return Array.isArray(mutationKeys) ? mutationKeys.reduce(function (memo, key) {
4217
+ // returns entire mutated state for a given childName
4218
+ const getReturnByChild = childName => {
4219
+ const mutationKeys = getKeys(childName);
4220
+ return Array.isArray(mutationKeys) ? mutationKeys.reduce((memo, key) => {
4421
4221
  return Object.assign(memo, getMutationObject(key, childName));
4422
4222
  }, {}) : getMutationObject(mutationKeys, childName);
4423
- }; // returns an entire mutated state for all children
4424
-
4223
+ };
4425
4224
 
4426
- var allChildNames = childNames === "all" ? Object.keys(newBaseProps).filter(function (value) {
4427
- return value !== "parent";
4428
- }) : childNames;
4429
- return Array.isArray(allChildNames) ? allChildNames.reduce(function (memo, childName) {
4225
+ // returns an entire mutated state for all children
4226
+ const allChildNames = childNames === "all" ? Object.keys(newBaseProps).filter(value => value !== "parent") : childNames;
4227
+ return Array.isArray(allChildNames) ? allChildNames.reduce((memo, childName) => {
4430
4228
  return Object.assign(memo, getReturnByChild(childName));
4431
4229
  }, {}) : getReturnByChild(allChildNames);
4432
- }; // Parses an array of event returns into a single state mutation
4433
-
4434
-
4435
- var parseEventReturn = function (eventReturn, eventKey) {
4436
- return Array.isArray(eventReturn) ? eventReturn.reduce(function (memo, props) {
4437
- return Object.assign({}, memo, parseEvent(props, eventKey));
4438
- }, {}) : parseEvent(eventReturn, eventKey);
4439
4230
  };
4440
4231
 
4441
- var compileCallbacks = function (eventReturn) {
4442
- var getCallback = function (obj) {
4443
- return (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(obj.callback) && obj.callback;
4444
- };
4232
+ // Parses an array of event returns into a single state mutation
4233
+ const parseEventReturn = (eventReturn, eventKey) => {
4234
+ return Array.isArray(eventReturn) ? eventReturn.reduce((memo, props) => Object.assign({}, memo, parseEvent(props, eventKey)), {}) : parseEvent(eventReturn, eventKey);
4235
+ };
4236
+ const compileCallbacks = eventReturn => {
4237
+ const getCallback = obj => (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(obj.callback) && obj.callback;
4238
+ const callbacks = Array.isArray(eventReturn) ? eventReturn.map(evtObj => getCallback(evtObj)) : [getCallback(eventReturn)];
4239
+ const callbackArray = callbacks.filter(callback => callback !== false);
4240
+ return callbackArray.length ? () => callbackArray.forEach(callback => callback()) : undefined;
4241
+ };
4445
4242
 
4446
- var callbacks = Array.isArray(eventReturn) ? eventReturn.map(function (evtObj) {
4447
- return getCallback(evtObj);
4448
- }) : [getCallback(eventReturn)];
4449
- var callbackArray = callbacks.filter(function (callback) {
4450
- return callback !== false;
4451
- });
4452
- return callbackArray.length ? function () {
4453
- return callbackArray.forEach(function (callback) {
4454
- return callback();
4455
- });
4456
- } : undefined;
4457
- }; // A function that calls a particular event handler, parses its return
4243
+ // A function that calls a particular event handler, parses its return
4458
4244
  // into a state mutation, and calls setState
4459
4245
  // eslint-disable-next-line max-params
4460
-
4461
-
4462
- var onEvent = function (evt, childProps, eventKey, eventName) {
4246
+ const onEvent = (evt, childProps, eventKey, eventName) => {
4463
4247
  // eslint-disable-next-line no-invalid-this
4464
- var eventReturn = events[eventName](evt, childProps, eventKey, _this2);
4465
-
4248
+ const eventReturn = events[eventName](evt, childProps, eventKey, this);
4466
4249
  if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
4467
- var callbacks = compileCallbacks(eventReturn); // eslint-disable-next-line no-invalid-this
4468
-
4469
- _this2.setState(parseEventReturn(eventReturn, eventKey), callbacks);
4250
+ const callbacks = compileCallbacks(eventReturn);
4251
+ // eslint-disable-next-line no-invalid-this
4252
+ this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
4470
4253
  }
4471
- }; // returns a new events object with enhanced event handlers
4472
-
4254
+ };
4473
4255
 
4474
- return Object.keys(events).reduce(function (memo, event) {
4256
+ // returns a new events object with enhanced event handlers
4257
+ return Object.keys(events).reduce((memo, event) => {
4475
4258
  memo[event] = onEvent;
4476
4259
  return memo;
4477
4260
  }, {});
4478
4261
  }
4262
+
4479
4263
  /*
4480
4264
  * Returns a partially applied event handler for a specific target element
4481
4265
  * This allows event handlers to have access to props controlling each element
4482
4266
  */
4483
-
4484
4267
  function getPartialEvents(events, eventKey, childProps) {
4485
4268
  if (!events) return {};
4486
- return Object.keys(events).reduce(function (memo, eventName) {
4487
- var appliedEvent = function (evt) {
4488
- return events[eventName](evt, childProps, eventKey, eventName);
4489
- };
4490
-
4269
+ return Object.keys(events).reduce((memo, eventName) => {
4270
+ const appliedEvent = evt => events[eventName](evt, childProps, eventKey, eventName);
4491
4271
  memo[eventName] = appliedEvent;
4492
4272
  return memo;
4493
4273
  }, {});
4494
4274
  }
4495
-
4496
4275
  /* Returns the property of the state object corresponding to event changes for
4497
4276
  * a particular element
4498
4277
  */
@@ -4500,14 +4279,13 @@ function getPartialEvents(events, eventKey, childProps) {
4500
4279
  function getEventState(eventKey, namespace, childType) {
4501
4280
  // Mandatory usage: `getEventState.bind(this)`
4502
4281
  // eslint-disable-next-line no-invalid-this
4503
- var state = this.state || {};
4504
-
4282
+ const state = this.state || {};
4505
4283
  if (!childType) {
4506
4284
  return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
4507
4285
  }
4508
-
4509
4286
  return state[childType] && state[childType][eventKey] && state[childType][eventKey][namespace];
4510
4287
  }
4288
+
4511
4289
  /**
4512
4290
  * Returns a set of all mutations for shared events
4513
4291
  *
@@ -4519,20 +4297,21 @@ function getEventState(eventKey, namespace, childType) {
4519
4297
  * @return {Object} a object describing all mutations for VictorySharedEvents
4520
4298
  */
4521
4299
  // eslint-disable-next-line max-params
4522
-
4523
- function getExternalMutationsWithChildren(mutations) {
4524
- var baseProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4525
- var baseState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
4526
- var childNames = arguments.length > 3 ? arguments[3] : undefined;
4527
- return childNames.reduce(function (memo, childName) {
4528
- var childState = baseState[childName];
4529
- var mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
4300
+ function getExternalMutationsWithChildren(mutations, baseProps, baseState, childNames) {
4301
+ if (baseProps === void 0) {
4302
+ baseProps = {};
4303
+ }
4304
+ if (baseState === void 0) {
4305
+ baseState = {};
4306
+ }
4307
+ return childNames.reduce((memo, childName) => {
4308
+ const childState = baseState[childName];
4309
+ const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
4530
4310
  memo[childName] = mutation ? mutation : childState;
4531
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, function (v) {
4532
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v);
4533
- });
4311
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
4534
4312
  }, {});
4535
4313
  }
4314
+
4536
4315
  /**
4537
4316
  * Returns a set of all mutations for a component
4538
4317
  *
@@ -4544,47 +4323,43 @@ function getExternalMutationsWithChildren(mutations) {
4544
4323
  * @return {Object} a object describing mutations for a given component
4545
4324
  */
4546
4325
  // eslint-disable-next-line max-params
4547
-
4548
- function getExternalMutations(mutations) {
4549
- var baseProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4550
- var baseState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
4551
- var childName = arguments.length > 3 ? arguments[3] : undefined;
4552
- var eventKeys = Object.keys(baseProps);
4553
- return eventKeys.reduce(function (memo, eventKey) {
4554
- var keyState = baseState[eventKey] || {};
4555
- var keyProps = baseProps[eventKey] || {};
4556
-
4326
+ function getExternalMutations(mutations, baseProps, baseState, childName) {
4327
+ if (baseProps === void 0) {
4328
+ baseProps = {};
4329
+ }
4330
+ if (baseState === void 0) {
4331
+ baseState = {};
4332
+ }
4333
+ const eventKeys = Object.keys(baseProps);
4334
+ return eventKeys.reduce((memo, eventKey) => {
4335
+ const keyState = baseState[eventKey] || {};
4336
+ const keyProps = baseProps[eventKey] || {};
4557
4337
  if (eventKey === "parent") {
4558
- var identifier = {
4559
- eventKey: eventKey,
4338
+ const identifier = {
4339
+ eventKey,
4560
4340
  target: "parent"
4561
4341
  };
4562
- var mutation = getExternalMutation(mutations, keyProps, keyState, identifier);
4342
+ const mutation = getExternalMutation(mutations, keyProps, keyState, identifier);
4563
4343
  memo[eventKey] = mutation !== undefined ? Object.assign({}, keyState, mutation) : keyState;
4564
4344
  } else {
4565
4345
  // use keys from both state and props so that elements not intially included in baseProps
4566
4346
  // will be used. (i.e. labels)
4567
- var targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
4568
-
4569
- memo[eventKey] = targets.reduce(function (m, target) {
4570
- var identifier = {
4571
- eventKey: eventKey,
4572
- target: target,
4573
- childName: childName
4347
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
4348
+ memo[eventKey] = targets.reduce((m, target) => {
4349
+ const identifier = {
4350
+ eventKey,
4351
+ target,
4352
+ childName
4574
4353
  };
4575
- var mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
4354
+ const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
4576
4355
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
4577
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, function (v) {
4578
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v);
4579
- });
4356
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
4580
4357
  }, {});
4581
4358
  }
4582
-
4583
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, function (v) {
4584
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v);
4585
- });
4359
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
4586
4360
  }, {});
4587
4361
  }
4362
+
4588
4363
  /**
4589
4364
  * Returns a set of mutations for a particular element given scoped baseProps and baseState
4590
4365
  *
@@ -4596,87 +4371,58 @@ function getExternalMutations(mutations) {
4596
4371
  * @return {Object | undefined} a object describing mutations for a given element, or undefined
4597
4372
  */
4598
4373
  // eslint-disable-next-line max-params
4599
-
4600
4374
  function getExternalMutation(mutations, baseProps, baseState, identifier) {
4601
- var filterMutations = function (mutation, type) {
4375
+ const filterMutations = (mutation, type) => {
4602
4376
  if (typeof mutation[type] === "string") {
4603
4377
  return mutation[type] === "all" || mutation[type] === identifier[type];
4604
4378
  } else if (Array.isArray(mutation[type])) {
4605
4379
  // coerce arrays to strings before matching
4606
- var stringArray = mutation[type].map(function (m) {
4607
- return "".concat(m);
4608
- });
4380
+ const stringArray = mutation[type].map(m => `${m}`);
4609
4381
  return stringArray.includes(identifier[type]);
4610
4382
  }
4611
-
4612
4383
  return false;
4613
4384
  };
4614
-
4615
- var scopedMutations = Array.isArray(mutations) ? mutations : [mutations];
4616
-
4385
+ let scopedMutations = Array.isArray(mutations) ? mutations : [mutations];
4617
4386
  if (identifier.childName) {
4618
- scopedMutations = mutations.filter(function (m) {
4619
- return filterMutations(m, "childName");
4620
- });
4621
- } // find any mutation objects that match the target
4622
-
4623
-
4624
- var targetMutations = scopedMutations.filter(function (m) {
4625
- return filterMutations(m, "target");
4626
- });
4627
-
4387
+ scopedMutations = mutations.filter(m => filterMutations(m, "childName"));
4388
+ }
4389
+ // find any mutation objects that match the target
4390
+ const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
4628
4391
  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
4629
4392
  return undefined;
4630
4393
  }
4631
-
4632
- var keyMutations = targetMutations.filter(function (m) {
4633
- return filterMutations(m, "eventKey");
4634
- });
4635
-
4394
+ const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
4636
4395
  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
4637
4396
  return undefined;
4638
4397
  }
4639
-
4640
- return keyMutations.reduce(function (memo, curr) {
4641
- var mutationFunction = curr && (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(curr.mutation) ? curr.mutation : function () {
4642
- return undefined;
4643
- };
4644
- var currentMutation = mutationFunction(Object.assign({}, baseProps, baseState));
4398
+ return keyMutations.reduce((memo, curr) => {
4399
+ const mutationFunction = curr && (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(curr.mutation) ? curr.mutation : () => undefined;
4400
+ const currentMutation = mutationFunction(Object.assign({}, baseProps, baseState));
4645
4401
  return Object.assign({}, memo, currentMutation);
4646
4402
  }, {});
4647
4403
  }
4404
+
4648
4405
  /* Returns an array of defaultEvents from sub-components of a given component.
4649
4406
  * i.e. any static `defaultEvents` on `labelComponent` will be returned
4650
4407
  */
4651
-
4652
4408
  function getComponentEvents(props, components) {
4653
- var events = Array.isArray(components) && components.reduce(function (memo, componentName) {
4654
- var component = props[componentName];
4655
- var defaultEvents = component && component.type && component.type.defaultEvents;
4656
- var componentEvents = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(defaultEvents) ? defaultEvents(component.props) : defaultEvents;
4657
- return Array.isArray(componentEvents) ? memo.concat.apply(memo, _toConsumableArray(componentEvents)) : memo;
4409
+ const events = Array.isArray(components) && components.reduce((memo, componentName) => {
4410
+ const component = props[componentName];
4411
+ const defaultEvents = component && component.type && component.type.defaultEvents;
4412
+ const componentEvents = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(defaultEvents) ? defaultEvents(component.props) : defaultEvents;
4413
+ return Array.isArray(componentEvents) ? memo.concat(...componentEvents) : memo;
4658
4414
  }, []);
4659
4415
  return events && events.length ? events : undefined;
4660
4416
  }
4661
4417
  function getGlobalEventNameFromKey(key) {
4662
- var match = key.match(GLOBAL_EVENT_REGEX);
4418
+ const match = key.match(GLOBAL_EVENT_REGEX);
4663
4419
  return match && match[1] && match[1].toLowerCase();
4664
4420
  }
4665
- var getGlobalEvents = function (events) {
4666
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, function (_, key) {
4667
- return GLOBAL_EVENT_REGEX.test(key);
4668
- });
4669
- };
4670
- var omitGlobalEvents = function (events) {
4671
- return lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, function (_, key) {
4672
- return GLOBAL_EVENT_REGEX.test(key);
4673
- });
4674
- };
4675
- var emulateReactEvent = function (event) {
4676
- return Object.assign(event, {
4677
- nativeEvent: event
4678
- });
4679
- };
4421
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
4422
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
4423
+ const emulateReactEvent = event => Object.assign(event, {
4424
+ nativeEvent: event
4425
+ });
4680
4426
 
4681
4427
  /***/ }),
4682
4428
 
@@ -4684,35 +4430,35 @@ var emulateReactEvent = function (event) {
4684
4430
  /*!*****************************************************!*\
4685
4431
  !*** ../../victory-core/es/victory-util/helpers.js ***!
4686
4432
  \*****************************************************/
4687
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4433
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4688
4434
 
4689
4435
  "use strict";
4690
4436
  __webpack_require__.r(__webpack_exports__);
4691
4437
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4692
- /* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
4693
- /* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
4694
- /* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
4695
- /* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
4696
- /* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
4697
- /* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
4698
- /* harmony export */ "getPadding": () => (/* binding */ getPadding),
4699
- /* harmony export */ "getPoint": () => (/* binding */ getPoint),
4700
- /* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
4701
- /* harmony export */ "getRadius": () => (/* binding */ getRadius),
4702
- /* harmony export */ "getRange": () => (/* binding */ getRange),
4703
- /* harmony export */ "getStyles": () => (/* binding */ getStyles),
4704
- /* harmony export */ "invert": () => (/* binding */ invert),
4705
- /* harmony export */ "isFunction": () => (/* binding */ isFunction),
4706
- /* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
4707
- /* harmony export */ "isNil": () => (/* binding */ isNil),
4708
- /* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
4709
- /* harmony export */ "mapValues": () => (/* binding */ mapValues),
4710
- /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
4711
- /* harmony export */ "omit": () => (/* binding */ omit),
4712
- /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
4713
- /* harmony export */ "range": () => (/* binding */ range),
4714
- /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
4715
- /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
4438
+ /* harmony export */ "createAccessor": function() { return /* binding */ createAccessor; },
4439
+ /* harmony export */ "degreesToRadians": function() { return /* binding */ degreesToRadians; },
4440
+ /* harmony export */ "evaluateProp": function() { return /* binding */ evaluateProp; },
4441
+ /* harmony export */ "evaluateStyle": function() { return /* binding */ evaluateStyle; },
4442
+ /* harmony export */ "getCurrentAxis": function() { return /* binding */ getCurrentAxis; },
4443
+ /* harmony export */ "getDefaultStyles": function() { return /* binding */ getDefaultStyles; },
4444
+ /* harmony export */ "getPadding": function() { return /* binding */ getPadding; },
4445
+ /* harmony export */ "getPoint": function() { return /* binding */ getPoint; },
4446
+ /* harmony export */ "getPolarOrigin": function() { return /* binding */ getPolarOrigin; },
4447
+ /* harmony export */ "getRadius": function() { return /* binding */ getRadius; },
4448
+ /* harmony export */ "getRange": function() { return /* binding */ getRange; },
4449
+ /* harmony export */ "getStyles": function() { return /* binding */ getStyles; },
4450
+ /* harmony export */ "invert": function() { return /* binding */ invert; },
4451
+ /* harmony export */ "isFunction": function() { return /* binding */ isFunction; },
4452
+ /* harmony export */ "isHorizontal": function() { return /* binding */ isHorizontal; },
4453
+ /* harmony export */ "isNil": function() { return /* binding */ isNil; },
4454
+ /* harmony export */ "isTooltip": function() { return /* binding */ isTooltip; },
4455
+ /* harmony export */ "mapValues": function() { return /* binding */ mapValues; },
4456
+ /* harmony export */ "modifyProps": function() { return /* binding */ modifyProps; },
4457
+ /* harmony export */ "omit": function() { return /* binding */ omit; },
4458
+ /* harmony export */ "radiansToDegrees": function() { return /* binding */ radiansToDegrees; },
4459
+ /* harmony export */ "range": function() { return /* binding */ range; },
4460
+ /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
4461
+ /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
4716
4462
  /* harmony export */ });
4717
4463
  /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
4718
4464
  /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
@@ -4725,45 +4471,41 @@ __webpack_require__.r(__webpack_exports__);
4725
4471
 
4726
4472
 
4727
4473
 
4728
-
4729
4474
  /* eslint-disable no-use-before-define */
4730
4475
 
4731
-
4732
4476
  // Private Functions
4477
+
4733
4478
  function getCartesianRange(props, axis) {
4734
4479
  // determine how to lay the axis and what direction positive and negative are
4735
- var vertical = axis !== "x";
4736
- var padding = getPadding(props);
4737
-
4480
+ const vertical = axis !== "x";
4481
+ const padding = getPadding(props);
4738
4482
  if (vertical) {
4739
4483
  return [props.height - padding.bottom, padding.top];
4740
4484
  }
4741
-
4742
4485
  return [padding.left, props.width - padding.right];
4743
4486
  }
4744
-
4745
4487
  function getPolarRange(props, axis) {
4746
4488
  if (axis === "x") {
4747
- var startAngle = degreesToRadians(props.startAngle || 0);
4748
- var endAngle = degreesToRadians(props.endAngle || 360);
4489
+ const startAngle = degreesToRadians(props.startAngle || 0);
4490
+ const endAngle = degreesToRadians(props.endAngle || 360);
4749
4491
  return [startAngle, endAngle];
4750
4492
  }
4751
-
4752
4493
  return [props.innerRadius || 0, getRadius(props)];
4753
- } // Exported Functions
4494
+ }
4495
+
4496
+ // Exported Functions
4754
4497
 
4755
4498
  /**
4756
4499
  * Creates an object composed of the inverted keys and values of object.
4757
4500
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
4758
4501
  */
4759
-
4760
-
4761
4502
  function invert(original) {
4762
- return Object.entries(original).reduce(function (acc, current) {
4503
+ return Object.entries(original).reduce((acc, current) => {
4763
4504
  acc[current[1]] = current[0];
4764
4505
  return acc;
4765
4506
  }, {});
4766
4507
  }
4508
+
4767
4509
  /**
4768
4510
  * creates an object with some keys excluded
4769
4511
  * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
@@ -4771,43 +4513,39 @@ function invert(original) {
4771
4513
  * @param {Array<String>} ks: an array of keys to omit from the new object
4772
4514
  * @returns {Object} new object with same properties as originalObject
4773
4515
  */
4774
-
4775
- function omit(originalObject) {
4776
- var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
4516
+ function omit(originalObject, ks) {
4517
+ if (ks === void 0) {
4518
+ ks = [];
4519
+ }
4777
4520
  // code based on babel's _objectWithoutProperties
4778
- var newObject = {};
4779
-
4780
- for (var key in originalObject) {
4521
+ const newObject = {};
4522
+ for (const key in originalObject) {
4781
4523
  // @ts-expect-error String is not assignable to Key
4782
4524
  if (ks.indexOf(key) >= 0) {
4783
4525
  continue;
4784
4526
  }
4785
-
4786
4527
  if (!Object.prototype.hasOwnProperty.call(originalObject, key)) {
4787
4528
  continue;
4788
4529
  }
4789
-
4790
4530
  newObject[key] = originalObject[key];
4791
4531
  }
4792
-
4793
4532
  return newObject;
4794
4533
  }
4795
4534
  function getPoint(datum) {
4796
- var exists = function (val) {
4797
- return val !== undefined;
4798
- };
4799
-
4800
- var _x = datum._x,
4801
- _x1 = datum._x1,
4802
- _x0 = datum._x0,
4803
- _voronoiX = datum._voronoiX,
4804
- _y = datum._y,
4805
- _y1 = datum._y1,
4806
- _y0 = datum._y0,
4807
- _voronoiY = datum._voronoiY;
4808
- var defaultX = exists(_x1) ? _x1 : _x;
4809
- var defaultY = exists(_y1) ? _y1 : _y;
4810
- var point = {
4535
+ const exists = val => val !== undefined;
4536
+ const {
4537
+ _x,
4538
+ _x1,
4539
+ _x0,
4540
+ _voronoiX,
4541
+ _y,
4542
+ _y1,
4543
+ _y0,
4544
+ _voronoiY
4545
+ } = datum;
4546
+ const defaultX = exists(_x1) ? _x1 : _x;
4547
+ const defaultY = exists(_y1) ? _y1 : _y;
4548
+ const point = {
4811
4549
  x: exists(_voronoiX) ? _voronoiX : defaultX,
4812
4550
  x0: exists(_x0) ? _x0 : _x,
4813
4551
  y: exists(_voronoiY) ? _voronoiY : defaultY,
@@ -4816,18 +4554,20 @@ function getPoint(datum) {
4816
4554
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
4817
4555
  }
4818
4556
  function scalePoint(props, datum) {
4819
- var scale = props.scale,
4820
- polar = props.polar,
4821
- horizontal = props.horizontal;
4822
- var d = getPoint(datum);
4823
- var origin = props.origin || {
4557
+ const {
4558
+ scale,
4559
+ polar,
4560
+ horizontal
4561
+ } = props;
4562
+ const d = getPoint(datum);
4563
+ const origin = props.origin || {
4824
4564
  x: 0,
4825
4565
  y: 0
4826
4566
  };
4827
- var x = horizontal ? scale.y(d.y) : scale.x(d.x);
4828
- var x0 = horizontal ? scale.y(d.y0) : scale.x(d.x0);
4829
- var y = horizontal ? scale.x(d.x) : scale.y(d.y);
4830
- var y0 = horizontal ? scale.x(d.x0) : scale.y(d.y0);
4567
+ const x = horizontal ? scale.y(d.y) : scale.x(d.x);
4568
+ const x0 = horizontal ? scale.y(d.y0) : scale.x(d.x0);
4569
+ const y = horizontal ? scale.x(d.x) : scale.y(d.y);
4570
+ const y0 = horizontal ? scale.x(d.x0) : scale.y(d.y0);
4831
4571
  return {
4832
4572
  x: polar ? y * Math.cos(x) + origin.x : x,
4833
4573
  x0: polar ? y0 * Math.cos(x0) + origin.x : x0,
@@ -4835,11 +4575,13 @@ function scalePoint(props, datum) {
4835
4575
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
4836
4576
  };
4837
4577
  }
4838
- function getPadding(props) {
4839
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "padding";
4840
- var padding = props[name];
4841
- var paddingVal = typeof padding === "number" ? padding : 0;
4842
- var paddingObj = typeof padding === "object" ? padding : {};
4578
+ function getPadding(props, name) {
4579
+ if (name === void 0) {
4580
+ name = "padding";
4581
+ }
4582
+ const padding = props[name];
4583
+ const paddingVal = typeof padding === "number" ? padding : 0;
4584
+ const paddingObj = typeof padding === "object" ? padding : {};
4843
4585
  return {
4844
4586
  top: paddingObj.top || paddingVal,
4845
4587
  bottom: paddingObj.bottom || paddingVal,
@@ -4848,50 +4590,47 @@ function getPadding(props) {
4848
4590
  };
4849
4591
  }
4850
4592
  function isTooltip(component) {
4851
- var labelRole = component && component.type && component.type.role;
4593
+ const labelRole = component && component.type && component.type.role;
4852
4594
  return labelRole === "tooltip";
4853
4595
  }
4854
4596
  function getDefaultStyles(props, role) {
4855
- var _props$theme = props.theme,
4856
- theme = _props$theme === void 0 ? {} : _props$theme,
4857
- labelComponent = props.labelComponent;
4858
- var defaultStyles = theme[role] && theme[role].style || {};
4859
-
4597
+ const {
4598
+ theme = {},
4599
+ labelComponent
4600
+ } = props;
4601
+ const defaultStyles = theme[role] && theme[role].style || {};
4860
4602
  if (!isTooltip(labelComponent)) {
4861
4603
  return defaultStyles;
4862
4604
  }
4863
-
4864
- var tooltipStyle = theme.tooltip && theme.tooltip.style || {};
4865
-
4866
- var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
4867
-
4605
+ const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
4606
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
4868
4607
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
4869
4608
  labels: labelStyle
4870
4609
  }, defaultStyles);
4871
4610
  }
4872
4611
  function getStyles(style, defaultStyles) {
4873
- var width = "100%";
4874
- var height = "100%";
4875
-
4612
+ const width = "100%";
4613
+ const height = "100%";
4876
4614
  if (!style) {
4877
4615
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
4878
4616
  parent: {
4879
- height: height,
4880
- width: width
4617
+ height,
4618
+ width
4881
4619
  }
4882
4620
  }, defaultStyles);
4883
4621
  }
4884
-
4885
- var data = style.data,
4886
- labels = style.labels,
4887
- parent = style.parent;
4888
- var defaultParent = defaultStyles && defaultStyles.parent || {};
4889
- var defaultLabels = defaultStyles && defaultStyles.labels || {};
4890
- var defaultData = defaultStyles && defaultStyles.data || {};
4622
+ const {
4623
+ data,
4624
+ labels,
4625
+ parent
4626
+ } = style;
4627
+ const defaultParent = defaultStyles && defaultStyles.parent || {};
4628
+ const defaultLabels = defaultStyles && defaultStyles.labels || {};
4629
+ const defaultData = defaultStyles && defaultStyles.data || {};
4891
4630
  return {
4892
4631
  parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
4893
- width: width,
4894
- height: height
4632
+ width,
4633
+ height
4895
4634
  }),
4896
4635
  labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
4897
4636
  data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
@@ -4904,14 +4643,10 @@ function evaluateStyle(style, props) {
4904
4643
  if (props.disableInlineStyles) {
4905
4644
  return {};
4906
4645
  }
4907
-
4908
- if (!style || !Object.keys(style).some(function (value) {
4909
- return isFunction(style[value]);
4910
- })) {
4646
+ if (!style || !Object.keys(style).some(value => isFunction(style[value]))) {
4911
4647
  return style;
4912
4648
  }
4913
-
4914
- return Object.keys(style).reduce(function (prev, curr) {
4649
+ return Object.keys(style).reduce((prev, curr) => {
4915
4650
  prev[curr] = evaluateProp(style[curr], props);
4916
4651
  return prev;
4917
4652
  }, {});
@@ -4923,29 +4658,32 @@ function radiansToDegrees(radians) {
4923
4658
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
4924
4659
  }
4925
4660
  function getRadius(props) {
4926
- var _getPadding = getPadding(props),
4927
- left = _getPadding.left,
4928
- right = _getPadding.right,
4929
- top = _getPadding.top,
4930
- bottom = _getPadding.bottom;
4931
-
4932
- var width = props.width,
4933
- height = props.height;
4661
+ const {
4662
+ left,
4663
+ right,
4664
+ top,
4665
+ bottom
4666
+ } = getPadding(props);
4667
+ const {
4668
+ width,
4669
+ height
4670
+ } = props;
4934
4671
  return Math.min(width - left - right, height - top - bottom) / 2;
4935
4672
  }
4936
4673
  function getPolarOrigin(props) {
4937
- var width = props.width,
4938
- height = props.height;
4939
-
4940
- var _getPadding2 = getPadding(props),
4941
- top = _getPadding2.top,
4942
- bottom = _getPadding2.bottom,
4943
- left = _getPadding2.left,
4944
- right = _getPadding2.right;
4945
-
4946
- var radius = Math.min(width - left - right, height - top - bottom) / 2;
4947
- var offsetWidth = width / 2 + left - right;
4948
- var offsetHeight = height / 2 + top - bottom;
4674
+ const {
4675
+ width,
4676
+ height
4677
+ } = props;
4678
+ const {
4679
+ top,
4680
+ bottom,
4681
+ left,
4682
+ right
4683
+ } = getPadding(props);
4684
+ const radius = Math.min(width - left - right, height - top - bottom) / 2;
4685
+ const offsetWidth = width / 2 + left - right;
4686
+ const offsetHeight = height / 2 + top - bottom;
4949
4687
  return {
4950
4688
  x: offsetWidth + radius > width ? radius + left - right : offsetWidth,
4951
4689
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
@@ -4957,18 +4695,18 @@ function getRange(props, axis) {
4957
4695
  } else if (props.range && Array.isArray(props.range)) {
4958
4696
  return props.range;
4959
4697
  }
4960
-
4961
4698
  return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
4962
4699
  }
4700
+
4963
4701
  /**
4964
4702
  * Checks if `value` is `null` or `undefined`.
4965
4703
  * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
4966
4704
  */
4967
-
4968
4705
  function isNil(value) {
4969
4706
  // eslint-disable-next-line eqeqeq
4970
4707
  return value == null;
4971
4708
  }
4709
+
4972
4710
  /**
4973
4711
  * Checks if `value` is classified as a `Function` object.
4974
4712
  *
@@ -4976,7 +4714,6 @@ function isNil(value) {
4976
4714
  * @param {*} value The value to check.
4977
4715
  * @returns {boolean} Returns `true` if `value` is a function, else `false`.
4978
4716
  */
4979
-
4980
4717
  function isFunction(value) {
4981
4718
  return typeof value === "function";
4982
4719
  }
@@ -4987,47 +4724,45 @@ function createAccessor(key) {
4987
4724
  return key;
4988
4725
  } else if (key === null || key === undefined) {
4989
4726
  // null/undefined means "return the data item itself"
4990
- return function (x) {
4991
- return x;
4992
- };
4993
- } // otherwise, assume it is an array index, property key or path (_.property handles all three)
4994
-
4995
-
4727
+ return x => x;
4728
+ }
4729
+ // otherwise, assume it is an array index, property key or path (_.property handles all three)
4996
4730
  return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
4997
4731
  }
4998
4732
  function modifyProps(props, fallbackProps, role) {
4999
- var theme = props.theme && props.theme[role] ? props.theme[role] : {};
5000
- var themeProps = omit(theme, ["style"]);
5001
- var horizontal = isHorizontal(props);
5002
- var defaultObject = horizontal === undefined ? {} : {
5003
- horizontal: horizontal
4733
+ const theme = props.theme && props.theme[role] ? props.theme[role] : {};
4734
+ const themeProps = omit(theme, ["style"]);
4735
+ const horizontal = isHorizontal(props);
4736
+ const defaultObject = horizontal === undefined ? {} : {
4737
+ horizontal
5004
4738
  };
5005
4739
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
5006
4740
  }
4741
+
5007
4742
  /**
5008
4743
  * Returns the given axis or the opposite axis when horizontal
5009
4744
  * @param {string} axis: the given axis, either "x" pr "y"
5010
4745
  * @param {Boolean} horizontal: true when the chart is flipped to the horizontal orientation
5011
4746
  * @returns {String} the dimension appropriate for the axis given its props "x" or "y"
5012
4747
  */
5013
-
5014
4748
  function getCurrentAxis(axis, horizontal) {
5015
- var otherAxis = axis === "x" ? "y" : "x";
4749
+ const otherAxis = axis === "x" ? "y" : "x";
5016
4750
  return horizontal ? otherAxis : axis;
5017
4751
  }
4752
+
5018
4753
  /**
5019
4754
  * Creates an object with the same keys as object and values generated by running
5020
4755
  * each own enumerable string keyed property of object through the function fn
5021
4756
  */
5022
-
5023
4757
  function mapValues(values, fn) {
5024
4758
  if (values) {
5025
- return Object.keys(values).reduce(function (acc, key) {
4759
+ return Object.keys(values).reduce((acc, key) => {
5026
4760
  acc[key] = fn(values[key]);
5027
4761
  return acc;
5028
4762
  }, {});
5029
4763
  }
5030
4764
  }
4765
+
5031
4766
  /**
5032
4767
  * Creates an array of numbers (positive and/or negative) progressing
5033
4768
  * from start up to, but not including, end.
@@ -5038,28 +4773,25 @@ function mapValues(values, fn) {
5038
4773
  * @param end [The end value] If this is defined, start is the start value
5039
4774
  * @returns An array of the given length
5040
4775
  */
5041
-
5042
4776
  function range(start, end, increment) {
5043
4777
  // when the end index is not given, start from 0
5044
- var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
4778
+ const startIndex = end ? start : 0;
5045
4779
 
5046
- var endIndex = end ? end : start; // ensure endIndex is not a falsy value
4780
+ // when the end index is not given, the end of the range is the start index
4781
+ let endIndex = end ? end : start;
5047
4782
 
4783
+ // ensure endIndex is not a falsy value
5048
4784
  if (!endIndex) endIndex = 0;
5049
- var k = endIndex - startIndex; // the value range
5050
-
5051
- var length = Math.abs(k); // the length of the range
5052
-
5053
- var sign = k / length || 1; // the sign of the range (negative or positive)
4785
+ const k = endIndex - startIndex; // the value range
4786
+ const length = Math.abs(k); // the length of the range
4787
+ const sign = k / length || 1; // the sign of the range (negative or positive)
4788
+ const inc = increment || 1; // the step size of each increment
5054
4789
 
5055
- var inc = increment || 1; // the step size of each increment
5056
4790
  // normalize the array length when dealing with floating point values
5057
-
5058
- var arrayLength = Math.max(Math.ceil(length / inc), 0);
5059
- return Array.from(Array(arrayLength), function (_, i) {
5060
- return startIndex + i * sign * inc;
5061
- });
4791
+ const arrayLength = Math.max(Math.ceil(length / inc), 0);
4792
+ return Array.from(Array(arrayLength), (_, i) => startIndex + i * sign * inc);
5062
4793
  }
4794
+
5063
4795
  /**
5064
4796
  * @param {Array} children: an array of child components
5065
4797
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"
@@ -5069,79 +4801,68 @@ function range(start, end, increment) {
5069
4801
  * to the memo for the next iteration step
5070
4802
  * @returns {Array} returns an array of results from calling the iteratee on all nested children
5071
4803
  */
5072
-
5073
4804
  /* eslint-disable max-params */
5074
-
5075
- function reduceChildren(children, iteratee) {
5076
- var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
5077
- var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
5078
- var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
5079
- return (// @ts-expect-error These defaults are hard to type
5080
- memo.concat(item)
5081
- );
5082
- };
5083
- var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
5084
-
5085
- var traverseChildren = function (childArray, names, parent) {
5086
- return childArray.reduce(function (memo, child, index) {
5087
- var newMemo = memo;
5088
- var childRole = child.type && child.type.role;
5089
- var childName = child.props.name || "".concat(childRole, "-").concat(names[index]);
5090
-
4805
+ function reduceChildren(children, iteratee, parentProps,
4806
+ // @ts-expect-error These defaults are hard to type
4807
+ initialMemo, combine) {
4808
+ if (parentProps === void 0) {
4809
+ parentProps = {};
4810
+ }
4811
+ if (initialMemo === void 0) {
4812
+ initialMemo = [];
4813
+ }
4814
+ if (combine === void 0) {
4815
+ combine = (memo, item) =>
4816
+ // @ts-expect-error These defaults are hard to type
4817
+ memo.concat(item);
4818
+ }
4819
+ const sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
4820
+ const traverseChildren = (childArray, names, parent) => {
4821
+ return childArray.reduce((memo, child, index) => {
4822
+ let newMemo = memo;
4823
+ const childRole = child.type && child.type.role;
4824
+ const childName = child.props.name || `${childRole}-${names[index]}`;
5091
4825
  if (child.props && child.props.children) {
5092
- var childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
5093
- var nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children).map(function (c) {
5094
- var nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
4826
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
4827
+ const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children).map(c => {
4828
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
5095
4829
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
5096
4830
  });
5097
-
5098
- var _childNames = nestedChildren.map(function (c, i) {
5099
- return "".concat(childName, "-").concat(i);
5100
- });
5101
-
5102
- var nestedResults = traverseChildren(nestedChildren, _childNames, child);
4831
+ const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
4832
+ const nestedResults = traverseChildren(nestedChildren, childNames, child);
5103
4833
  newMemo = combine(newMemo, nestedResults);
5104
4834
  } else {
5105
- var result = iteratee(child, childName, parent);
5106
-
4835
+ const result = iteratee(child, childName, parent);
5107
4836
  if (result) {
5108
4837
  newMemo = combine(newMemo, result);
5109
4838
  }
5110
4839
  }
5111
-
5112
4840
  return newMemo;
5113
4841
  }, initialMemo);
5114
4842
  };
5115
-
5116
- var validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
5117
- var childNames = validChildren.map(function (c, i) {
5118
- return i;
5119
- });
4843
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
4844
+ const childNames = validChildren.map((c, i) => i);
5120
4845
  return traverseChildren(validChildren, childNames);
5121
4846
  }
4847
+
5122
4848
  /**
5123
4849
  * @param {Object} props: the props object
5124
4850
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
5125
4851
  * children or nested children are horizontal
5126
4852
  */
5127
-
5128
4853
  function isHorizontal(props) {
5129
4854
  if (props.horizontal !== undefined || !props.children) {
5130
4855
  return props.horizontal;
5131
4856
  }
5132
-
5133
- var traverseChildren = function (childArray) {
5134
- return childArray.reduce(function (memo, child) {
5135
- var childProps = child.props || {};
5136
-
4857
+ const traverseChildren = childArray => {
4858
+ return childArray.reduce((memo, child) => {
4859
+ const childProps = child.props || {};
5137
4860
  if (memo || childProps.horizontal || !childProps.children) {
5138
4861
  return memo || childProps.horizontal;
5139
4862
  }
5140
-
5141
4863
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
5142
4864
  }, false);
5143
4865
  };
5144
-
5145
4866
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
5146
4867
  }
5147
4868
 
@@ -5151,29 +4872,26 @@ function isHorizontal(props) {
5151
4872
  /*!***********************************************************!*\
5152
4873
  !*** ../../victory-core/es/victory-util/timer-context.js ***!
5153
4874
  \***********************************************************/
5154
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4875
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5155
4876
 
5156
4877
  "use strict";
5157
4878
  __webpack_require__.r(__webpack_exports__);
5158
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5159
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5160
- /* harmony export */ });
5161
4879
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5162
4880
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5163
4881
  /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timer */ "../../victory-core/es/victory-util/timer.js");
5164
4882
 
5165
4883
 
4884
+
5166
4885
  /**
5167
4886
  * The React context object consumers may use to access or override the global
5168
4887
  * timer.
5169
4888
  */
5170
-
5171
- var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
4889
+ const TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
5172
4890
  transitionTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"](),
5173
4891
  animationTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"]()
5174
4892
  });
5175
4893
  TimerContext.displayName = "TimerContext";
5176
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
4894
+ /* harmony default export */ __webpack_exports__["default"] = (TimerContext);
5177
4895
 
5178
4896
  /***/ }),
5179
4897
 
@@ -5181,100 +4899,64 @@ TimerContext.displayName = "TimerContext";
5181
4899
  /*!***************************************************!*\
5182
4900
  !*** ../../victory-core/es/victory-util/timer.js ***!
5183
4901
  \***************************************************/
5184
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4902
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5185
4903
 
5186
4904
  "use strict";
5187
4905
  __webpack_require__.r(__webpack_exports__);
5188
4906
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5189
- /* harmony export */ "default": () => (/* binding */ Timer)
4907
+ /* harmony export */ "default": function() { return /* binding */ Timer; }
5190
4908
  /* harmony export */ });
5191
4909
  /* harmony import */ var victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-vendor/d3-timer */ "../../victory-vendor/es/d3-timer.js");
5192
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5193
-
5194
- 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); } }
5195
-
5196
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5197
-
5198
-
5199
-
5200
- var Timer = /*#__PURE__*/function () {
5201
- function Timer() {
5202
- var _this = this;
5203
-
5204
- _classCallCheck(this, Timer);
5205
-
5206
- this.shouldAnimate = void 0;
5207
- this.subscribers = void 0;
5208
- this.activeSubscriptions = void 0;
5209
- this.timer = void 0;
5210
-
5211
- this.loop = function () {
5212
- _this.subscribers.forEach(function (s) {
5213
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
5214
- });
5215
- };
5216
4910
 
4911
+ class Timer {
4912
+ constructor() {
5217
4913
  this.shouldAnimate = true;
5218
4914
  this.subscribers = [];
5219
4915
  this.timer = null;
5220
4916
  this.activeSubscriptions = 0;
5221
4917
  }
5222
-
5223
- _createClass(Timer, [{
5224
- key: "bypassAnimation",
5225
- value: function bypassAnimation() {
5226
- this.shouldAnimate = false;
5227
- }
5228
- }, {
5229
- key: "resumeAnimation",
5230
- value: function resumeAnimation() {
5231
- this.shouldAnimate = true;
5232
- }
5233
- }, {
5234
- key: "start",
5235
- value: function start() {
5236
- if (!this.timer) {
5237
- this.timer = (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
5238
- }
4918
+ bypassAnimation() {
4919
+ this.shouldAnimate = false;
4920
+ }
4921
+ resumeAnimation() {
4922
+ this.shouldAnimate = true;
4923
+ }
4924
+ loop = () => {
4925
+ this.subscribers.forEach(s => {
4926
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
4927
+ });
4928
+ };
4929
+ start() {
4930
+ if (!this.timer) {
4931
+ this.timer = (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
5239
4932
  }
5240
- }, {
5241
- key: "stop",
5242
- value: function stop() {
5243
- if (this.timer) {
5244
- this.timer.stop();
5245
- this.timer = null;
5246
- }
4933
+ }
4934
+ stop() {
4935
+ if (this.timer) {
4936
+ this.timer.stop();
4937
+ this.timer = null;
5247
4938
  }
5248
- }, {
5249
- key: "subscribe",
5250
- value: function subscribe(callback, duration) {
5251
- var subscriptionID = this.subscribers.push({
5252
- startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
5253
- callback: callback,
5254
- duration: this.shouldAnimate ? duration : 0
5255
- });
5256
- this.activeSubscriptions++;
5257
- this.start();
5258
- return subscriptionID;
4939
+ }
4940
+ subscribe(callback, duration) {
4941
+ const subscriptionID = this.subscribers.push({
4942
+ startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
4943
+ callback,
4944
+ duration: this.shouldAnimate ? duration : 0
4945
+ });
4946
+ this.activeSubscriptions++;
4947
+ this.start();
4948
+ return subscriptionID;
4949
+ }
4950
+ unsubscribe(id) {
4951
+ if (id !== null && this.subscribers[id - 1]) {
4952
+ delete this.subscribers[id - 1];
4953
+ this.activeSubscriptions--;
5259
4954
  }
5260
- }, {
5261
- key: "unsubscribe",
5262
- value: function unsubscribe(id) {
5263
- if (id !== null && this.subscribers[id - 1]) {
5264
- delete this.subscribers[id - 1];
5265
- this.activeSubscriptions--;
5266
- }
5267
-
5268
- if (this.activeSubscriptions === 0) {
5269
- this.stop();
5270
- }
4955
+ if (this.activeSubscriptions === 0) {
4956
+ this.stop();
5271
4957
  }
5272
- }]);
5273
-
5274
- return Timer;
5275
- }();
5276
-
5277
-
4958
+ }
4959
+ }
5278
4960
 
5279
4961
  /***/ }),
5280
4962
 
@@ -5282,16 +4964,16 @@ var Timer = /*#__PURE__*/function () {
5282
4964
  /*!*******************************************!*\
5283
4965
  !*** ../../victory-vendor/es/d3-timer.js ***!
5284
4966
  \*******************************************/
5285
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4967
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5286
4968
 
5287
4969
  "use strict";
5288
4970
  __webpack_require__.r(__webpack_exports__);
5289
4971
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5290
- /* harmony export */ "interval": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.interval),
5291
- /* harmony export */ "now": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.now),
5292
- /* harmony export */ "timeout": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timeout),
5293
- /* harmony export */ "timer": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer),
5294
- /* harmony export */ "timerFlush": () => (/* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timerFlush)
4972
+ /* harmony export */ "interval": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.interval; },
4973
+ /* harmony export */ "now": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.now; },
4974
+ /* harmony export */ "timeout": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timeout; },
4975
+ /* harmony export */ "timer": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer; },
4976
+ /* harmony export */ "timerFlush": function() { return /* reexport safe */ d3_timer__WEBPACK_IMPORTED_MODULE_0__.timerFlush; }
5295
4977
  /* harmony export */ });
5296
4978
  /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-timer */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/index.js");
5297
4979
 
@@ -5308,7 +4990,7 @@ __webpack_require__.r(__webpack_exports__);
5308
4990
  /*!**************************************************************************************!*\
5309
4991
  !*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
5310
4992
  \**************************************************************************************/
5311
- /***/ ((module) => {
4993
+ /***/ (function(module) {
5312
4994
 
5313
4995
  "use strict";
5314
4996
  module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
@@ -5319,16 +5001,16 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
5319
5001
  /*!*************************************************************************************!*\
5320
5002
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/index.js ***!
5321
5003
  \*************************************************************************************/
5322
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5004
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5323
5005
 
5324
5006
  "use strict";
5325
5007
  __webpack_require__.r(__webpack_exports__);
5326
5008
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5327
- /* harmony export */ "interval": () => (/* reexport safe */ _interval_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
5328
- /* harmony export */ "now": () => (/* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.now),
5329
- /* harmony export */ "timeout": () => (/* reexport safe */ _timeout_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
5330
- /* harmony export */ "timer": () => (/* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timer),
5331
- /* harmony export */ "timerFlush": () => (/* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timerFlush)
5009
+ /* harmony export */ "interval": function() { return /* reexport safe */ _interval_js__WEBPACK_IMPORTED_MODULE_2__["default"]; },
5010
+ /* harmony export */ "now": function() { return /* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.now; },
5011
+ /* harmony export */ "timeout": function() { return /* reexport safe */ _timeout_js__WEBPACK_IMPORTED_MODULE_1__["default"]; },
5012
+ /* harmony export */ "timer": function() { return /* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timer; },
5013
+ /* harmony export */ "timerFlush": function() { return /* reexport safe */ _timer_js__WEBPACK_IMPORTED_MODULE_0__.timerFlush; }
5332
5014
  /* harmony export */ });
5333
5015
  /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");
5334
5016
  /* harmony import */ var _timeout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timeout.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js");
@@ -5346,12 +5028,12 @@ __webpack_require__.r(__webpack_exports__);
5346
5028
  /*!****************************************************************************************!*\
5347
5029
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/interval.js ***!
5348
5030
  \****************************************************************************************/
5349
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5031
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5350
5032
 
5351
5033
  "use strict";
5352
5034
  __webpack_require__.r(__webpack_exports__);
5353
5035
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5354
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
5036
+ /* harmony export */ "default": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }
5355
5037
  /* harmony export */ });
5356
5038
  /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");
5357
5039
 
@@ -5379,12 +5061,12 @@ __webpack_require__.r(__webpack_exports__);
5379
5061
  /*!***************************************************************************************!*\
5380
5062
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js ***!
5381
5063
  \***************************************************************************************/
5382
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5064
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5383
5065
 
5384
5066
  "use strict";
5385
5067
  __webpack_require__.r(__webpack_exports__);
5386
5068
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5387
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
5069
+ /* harmony export */ "default": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }
5388
5070
  /* harmony export */ });
5389
5071
  /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");
5390
5072
 
@@ -5406,15 +5088,15 @@ __webpack_require__.r(__webpack_exports__);
5406
5088
  /*!*************************************************************************************!*\
5407
5089
  !*** ../../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js ***!
5408
5090
  \*************************************************************************************/
5409
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5091
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5410
5092
 
5411
5093
  "use strict";
5412
5094
  __webpack_require__.r(__webpack_exports__);
5413
5095
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5414
- /* harmony export */ "Timer": () => (/* binding */ Timer),
5415
- /* harmony export */ "now": () => (/* binding */ now),
5416
- /* harmony export */ "timer": () => (/* binding */ timer),
5417
- /* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
5096
+ /* harmony export */ "Timer": function() { return /* binding */ Timer; },
5097
+ /* harmony export */ "now": function() { return /* binding */ now; },
5098
+ /* harmony export */ "timer": function() { return /* binding */ timer; },
5099
+ /* harmony export */ "timerFlush": function() { return /* binding */ timerFlush; }
5418
5100
  /* harmony export */ });
5419
5101
  var frame = 0, // is an animation frame pending?
5420
5102
  timeout = 0, // is a timeout pending?
@@ -5558,31 +5240,31 @@ function sleep(time) {
5558
5240
  /******/
5559
5241
  /************************************************************************/
5560
5242
  /******/ /* webpack/runtime/compat get default export */
5561
- /******/ (() => {
5243
+ /******/ !function() {
5562
5244
  /******/ // getDefaultExport function for compatibility with non-harmony modules
5563
- /******/ __webpack_require__.n = (module) => {
5245
+ /******/ __webpack_require__.n = function(module) {
5564
5246
  /******/ var getter = module && module.__esModule ?
5565
- /******/ () => (module['default']) :
5566
- /******/ () => (module);
5247
+ /******/ function() { return module['default']; } :
5248
+ /******/ function() { return module; };
5567
5249
  /******/ __webpack_require__.d(getter, { a: getter });
5568
5250
  /******/ return getter;
5569
5251
  /******/ };
5570
- /******/ })();
5252
+ /******/ }();
5571
5253
  /******/
5572
5254
  /******/ /* webpack/runtime/define property getters */
5573
- /******/ (() => {
5255
+ /******/ !function() {
5574
5256
  /******/ // define getter functions for harmony exports
5575
- /******/ __webpack_require__.d = (exports, definition) => {
5257
+ /******/ __webpack_require__.d = function(exports, definition) {
5576
5258
  /******/ for(var key in definition) {
5577
5259
  /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5578
5260
  /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5579
5261
  /******/ }
5580
5262
  /******/ }
5581
5263
  /******/ };
5582
- /******/ })();
5264
+ /******/ }();
5583
5265
  /******/
5584
5266
  /******/ /* webpack/runtime/global */
5585
- /******/ (() => {
5267
+ /******/ !function() {
5586
5268
  /******/ __webpack_require__.g = (function() {
5587
5269
  /******/ if (typeof globalThis === 'object') return globalThis;
5588
5270
  /******/ try {
@@ -5591,40 +5273,39 @@ function sleep(time) {
5591
5273
  /******/ if (typeof window === 'object') return window;
5592
5274
  /******/ }
5593
5275
  /******/ })();
5594
- /******/ })();
5276
+ /******/ }();
5595
5277
  /******/
5596
5278
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
5597
- /******/ (() => {
5598
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5599
- /******/ })();
5279
+ /******/ !function() {
5280
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
5281
+ /******/ }();
5600
5282
  /******/
5601
5283
  /******/ /* webpack/runtime/make namespace object */
5602
- /******/ (() => {
5284
+ /******/ !function() {
5603
5285
  /******/ // define __esModule on exports
5604
- /******/ __webpack_require__.r = (exports) => {
5286
+ /******/ __webpack_require__.r = function(exports) {
5605
5287
  /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5606
5288
  /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5607
5289
  /******/ }
5608
5290
  /******/ Object.defineProperty(exports, '__esModule', { value: true });
5609
5291
  /******/ };
5610
- /******/ })();
5292
+ /******/ }();
5611
5293
  /******/
5612
5294
  /************************************************************************/
5613
5295
  var __webpack_exports__ = {};
5614
5296
  // This entry need to be wrapped in an IIFE because it need to be in strict mode.
5615
- (() => {
5297
+ !function() {
5616
5298
  "use strict";
5617
5299
  /*!******************!*\
5618
5300
  !*** ./index.ts ***!
5619
5301
  \******************/
5620
5302
  __webpack_require__.r(__webpack_exports__);
5621
5303
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5622
- /* harmony export */ "VictorySharedEvents": () => (/* reexport safe */ _victory_shared_events__WEBPACK_IMPORTED_MODULE_0__.VictorySharedEvents)
5304
+ /* harmony export */ "VictorySharedEvents": function() { return /* reexport safe */ _victory_shared_events__WEBPACK_IMPORTED_MODULE_0__.VictorySharedEvents; }
5623
5305
  /* harmony export */ });
5624
5306
  /* harmony import */ var _victory_shared_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-shared-events */ "./victory-shared-events.tsx");
5625
5307
 
5626
- })();
5627
-
5308
+ }();
5628
5309
  /******/ return __webpack_exports__;
5629
5310
  /******/ })()
5630
5311
  ;