victory-brush-container 36.4.0 → 36.4.1
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,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryBrushContainer"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryBrushContainer"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -585,16 +585,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
585
585
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
586
586
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
587
587
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
|
|
588
|
-
/* harmony import */ var
|
|
589
|
-
/* harmony import */ var
|
|
590
|
-
/* harmony import */ var
|
|
591
|
-
/* harmony import */ var
|
|
592
|
-
/* harmony import */ var
|
|
593
|
-
/* harmony import */ var
|
|
588
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
589
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
590
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
591
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
592
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/selection.js");
|
|
593
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
594
594
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/rect.js");
|
|
595
|
-
/* harmony import */ var
|
|
596
|
-
/* harmony import */ var
|
|
597
|
-
/* harmony import */ var
|
|
595
|
+
/* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./brush-helpers */ "./brush-helpers.js");
|
|
596
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
597
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
|
|
598
598
|
|
|
599
599
|
|
|
600
600
|
|
|
@@ -665,7 +665,7 @@ var brushContainerMixin = function (base) {
|
|
|
665
665
|
name = props.name;
|
|
666
666
|
var brushComponentStyle = brushComponent.props && brushComponent.props.style;
|
|
667
667
|
var cursor = !props.allowDrag && !props.allowResize ? "auto" : "move";
|
|
668
|
-
return x[0] !== x[1] && y[0] !== y[1] ? /*#__PURE__*/
|
|
668
|
+
return x[0] !== x[1] && y[0] !== y[1] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(brushComponent, {
|
|
669
669
|
key: "".concat(name, "-brush"),
|
|
670
670
|
width: Math.abs(x[1] - x[0]) || 1,
|
|
671
671
|
height: Math.abs(y[1] - y[0]) || 1,
|
|
@@ -700,13 +700,13 @@ var brushContainerMixin = function (base) {
|
|
|
700
700
|
handleStyle = props.handleStyle,
|
|
701
701
|
handleComponent = props.handleComponent,
|
|
702
702
|
name = props.name;
|
|
703
|
-
var domainBox =
|
|
703
|
+
var domainBox = _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].getDomainBox(props, domain);
|
|
704
704
|
var x1 = domainBox.x1,
|
|
705
705
|
x2 = domainBox.x2,
|
|
706
706
|
y1 = domainBox.y1,
|
|
707
707
|
y2 = domainBox.y2;
|
|
708
708
|
|
|
709
|
-
var _BrushHelpers$getHand =
|
|
709
|
+
var _BrushHelpers$getHand = _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].getHandles(props, domainBox),
|
|
710
710
|
top = _BrushHelpers$getHand.top,
|
|
711
711
|
bottom = _BrushHelpers$getHand.bottom,
|
|
712
712
|
left = _BrushHelpers$getHand.left,
|
|
@@ -750,7 +750,7 @@ var brushContainerMixin = function (base) {
|
|
|
750
750
|
}, xProps)
|
|
751
751
|
};
|
|
752
752
|
var handles = ["top", "bottom", "left", "right"].reduce(function (memo, curr) {
|
|
753
|
-
memo = handleProps[curr] ? memo.concat( /*#__PURE__*/
|
|
753
|
+
memo = handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(handleComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
754
754
|
key: "".concat(name, "-handle-").concat(curr)
|
|
755
755
|
}, handleProps[curr]))) : memo;
|
|
756
756
|
return memo;
|
|
@@ -765,8 +765,8 @@ var brushContainerMixin = function (base) {
|
|
|
765
765
|
|
|
766
766
|
var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, props.domain);
|
|
767
767
|
|
|
768
|
-
var domain =
|
|
769
|
-
var coordinates =
|
|
768
|
+
var domain = react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(brushDomain, cachedBrushDomain) ? lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, brushDomain) : brushDomain;
|
|
769
|
+
var coordinates = victory_core__WEBPACK_IMPORTED_MODULE_5__.getDomainCoordinates(props, domain);
|
|
770
770
|
var selectBox = this.getSelectBox(props, coordinates);
|
|
771
771
|
return selectBox ? [selectBox, this.getHandles(props, domain)] : [];
|
|
772
772
|
} // Overrides method in VictoryContainer
|
|
@@ -774,41 +774,41 @@ var brushContainerMixin = function (base) {
|
|
|
774
774
|
}, {
|
|
775
775
|
key: "getChildren",
|
|
776
776
|
value: function getChildren(props) {
|
|
777
|
-
return [].concat(_toConsumableArray(
|
|
777
|
+
return [].concat(_toConsumableArray(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)), _toConsumableArray(this.getRect(props)));
|
|
778
778
|
}
|
|
779
779
|
}]);
|
|
780
780
|
|
|
781
781
|
return VictoryBrushContainer;
|
|
782
|
-
}(base), _defineProperty(_class, "displayName", "VictoryBrushContainer"), _defineProperty(_class, "propTypes", _objectSpread(_objectSpread({},
|
|
783
|
-
allowDrag: (
|
|
784
|
-
allowDraw: (
|
|
785
|
-
allowResize: (
|
|
786
|
-
brushComponent: (
|
|
787
|
-
brushDimension:
|
|
788
|
-
brushDomain:
|
|
789
|
-
x: (
|
|
790
|
-
y: (
|
|
782
|
+
}(base), _defineProperty(_class, "displayName", "VictoryBrushContainer"), _defineProperty(_class, "propTypes", _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes), {}, {
|
|
783
|
+
allowDrag: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
784
|
+
allowDraw: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
785
|
+
allowResize: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
786
|
+
brushComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
787
|
+
brushDimension: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["x", "y"]),
|
|
788
|
+
brushDomain: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
789
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array),
|
|
790
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array)
|
|
791
791
|
}),
|
|
792
|
-
brushStyle: (
|
|
793
|
-
defaultBrushArea:
|
|
794
|
-
disable: (
|
|
795
|
-
handleComponent: (
|
|
796
|
-
handleStyle: (
|
|
797
|
-
handleWidth: (
|
|
798
|
-
onBrushCleared: (
|
|
799
|
-
onBrushDomainChange: (
|
|
800
|
-
onBrushDomainChangeEnd: (
|
|
801
|
-
})), _defineProperty(_class, "defaultProps", _objectSpread(_objectSpread({},
|
|
792
|
+
brushStyle: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
793
|
+
defaultBrushArea: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["all", "disable", "none", "move"]),
|
|
794
|
+
disable: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
795
|
+
handleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
796
|
+
handleStyle: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
797
|
+
handleWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number),
|
|
798
|
+
onBrushCleared: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
|
|
799
|
+
onBrushDomainChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
|
|
800
|
+
onBrushDomainChangeEnd: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)
|
|
801
|
+
})), _defineProperty(_class, "defaultProps", _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__["default"].defaultProps), {}, {
|
|
802
802
|
allowDrag: true,
|
|
803
803
|
allowDraw: true,
|
|
804
804
|
allowResize: true,
|
|
805
|
-
brushComponent: /*#__PURE__*/
|
|
805
|
+
brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
|
|
806
806
|
brushStyle: {
|
|
807
807
|
stroke: "transparent",
|
|
808
808
|
fill: "black",
|
|
809
809
|
fillOpacity: 0.1
|
|
810
810
|
},
|
|
811
|
-
handleComponent: /*#__PURE__*/
|
|
811
|
+
handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
|
|
812
812
|
handleStyle: {
|
|
813
813
|
stroke: "transparent",
|
|
814
814
|
fill: "transparent"
|
|
@@ -820,31 +820,31 @@ var brushContainerMixin = function (base) {
|
|
|
820
820
|
target: "parent",
|
|
821
821
|
eventHandlers: {
|
|
822
822
|
onMouseDown: function (evt, targetProps) {
|
|
823
|
-
return props.disable ? {} :
|
|
823
|
+
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseDown(evt, targetProps);
|
|
824
824
|
},
|
|
825
825
|
onTouchStart: function (evt, targetProps) {
|
|
826
|
-
return props.disable ? {} :
|
|
826
|
+
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseDown(evt, targetProps);
|
|
827
827
|
},
|
|
828
828
|
onGlobalMouseMove: function (evt, targetProps) {
|
|
829
|
-
return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} :
|
|
829
|
+
return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onGlobalMouseMove(evt, targetProps);
|
|
830
830
|
},
|
|
831
831
|
onGlobalTouchMove: function (evt, targetProps) {
|
|
832
|
-
return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} :
|
|
832
|
+
return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onGlobalMouseMove(evt, targetProps);
|
|
833
833
|
},
|
|
834
834
|
onGlobalMouseUp: function (evt, targetProps) {
|
|
835
|
-
return props.disable ? {} :
|
|
835
|
+
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onGlobalMouseUp(evt, targetProps);
|
|
836
836
|
},
|
|
837
837
|
onGlobalTouchEnd: function (evt, targetProps) {
|
|
838
|
-
return props.disable ? {} :
|
|
838
|
+
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onGlobalMouseUp(evt, targetProps);
|
|
839
839
|
},
|
|
840
840
|
onGlobalTouchCancel: function (evt, targetProps) {
|
|
841
|
-
return props.disable ? {} :
|
|
841
|
+
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onGlobalMouseUp(evt, targetProps);
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}];
|
|
845
845
|
}), _class;
|
|
846
846
|
};
|
|
847
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (brushContainerMixin(
|
|
847
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"]));
|
|
848
848
|
|
|
849
849
|
/***/ }),
|
|
850
850
|
|
|
@@ -5058,7 +5058,7 @@ var printWarning = function() {};
|
|
|
5058
5058
|
if (true) {
|
|
5059
5059
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5060
5060
|
var loggedTypeFailures = {};
|
|
5061
|
-
var has =
|
|
5061
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5062
5062
|
|
|
5063
5063
|
printWarning = function(text) {
|
|
5064
5064
|
var message = 'Warning: ' + text;
|
|
@@ -5070,7 +5070,7 @@ if (true) {
|
|
|
5070
5070
|
// This error was thrown as a convenience so that you can use this stack
|
|
5071
5071
|
// to find the callsite that caused this warning to fire.
|
|
5072
5072
|
throw new Error(message);
|
|
5073
|
-
} catch (x) {}
|
|
5073
|
+
} catch (x) { /**/ }
|
|
5074
5074
|
};
|
|
5075
5075
|
}
|
|
5076
5076
|
|
|
@@ -5099,7 +5099,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
5099
5099
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
5100
5100
|
var err = Error(
|
|
5101
5101
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
5102
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
5102
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
5103
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
5103
5104
|
);
|
|
5104
5105
|
err.name = 'Invariant Violation';
|
|
5105
5106
|
throw err;
|
|
@@ -5170,9 +5171,9 @@ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-i
|
|
|
5170
5171
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
5171
5172
|
|
|
5172
5173
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5174
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5173
5175
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
5174
5176
|
|
|
5175
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5176
5177
|
var printWarning = function() {};
|
|
5177
5178
|
|
|
5178
5179
|
if (true) {
|
|
@@ -5273,6 +5274,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5273
5274
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
5274
5275
|
var ReactPropTypes = {
|
|
5275
5276
|
array: createPrimitiveTypeChecker('array'),
|
|
5277
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
5276
5278
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
5277
5279
|
func: createPrimitiveTypeChecker('function'),
|
|
5278
5280
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -5318,8 +5320,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5318
5320
|
* is prohibitively expensive if they are created too often, such as what
|
|
5319
5321
|
* happens in oneOfType() for any type before the one that matched.
|
|
5320
5322
|
*/
|
|
5321
|
-
function PropTypeError(message) {
|
|
5323
|
+
function PropTypeError(message, data) {
|
|
5322
5324
|
this.message = message;
|
|
5325
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
5323
5326
|
this.stack = '';
|
|
5324
5327
|
}
|
|
5325
5328
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -5354,7 +5357,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5354
5357
|
) {
|
|
5355
5358
|
printWarning(
|
|
5356
5359
|
'You are manually calling a React.PropTypes validation ' +
|
|
5357
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
5360
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
5358
5361
|
'and will throw in the standalone `prop-types` package. ' +
|
|
5359
5362
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
5360
5363
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -5393,7 +5396,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5393
5396
|
// 'of type `object`'.
|
|
5394
5397
|
var preciseType = getPreciseType(propValue);
|
|
5395
5398
|
|
|
5396
|
-
return new PropTypeError(
|
|
5399
|
+
return new PropTypeError(
|
|
5400
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
5401
|
+
{expectedType: expectedType}
|
|
5402
|
+
);
|
|
5397
5403
|
}
|
|
5398
5404
|
return null;
|
|
5399
5405
|
}
|
|
@@ -5537,14 +5543,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5537
5543
|
}
|
|
5538
5544
|
|
|
5539
5545
|
function validate(props, propName, componentName, location, propFullName) {
|
|
5546
|
+
var expectedTypes = [];
|
|
5540
5547
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
5541
5548
|
var checker = arrayOfTypeCheckers[i];
|
|
5542
|
-
|
|
5549
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
5550
|
+
if (checkerResult == null) {
|
|
5543
5551
|
return null;
|
|
5544
5552
|
}
|
|
5553
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
5554
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
5555
|
+
}
|
|
5545
5556
|
}
|
|
5546
|
-
|
|
5547
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
5557
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
5558
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
5548
5559
|
}
|
|
5549
5560
|
return createChainableTypeChecker(validate);
|
|
5550
5561
|
}
|
|
@@ -5559,6 +5570,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5559
5570
|
return createChainableTypeChecker(validate);
|
|
5560
5571
|
}
|
|
5561
5572
|
|
|
5573
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
5574
|
+
return new PropTypeError(
|
|
5575
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
5576
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
5577
|
+
);
|
|
5578
|
+
}
|
|
5579
|
+
|
|
5562
5580
|
function createShapeTypeChecker(shapeTypes) {
|
|
5563
5581
|
function validate(props, propName, componentName, location, propFullName) {
|
|
5564
5582
|
var propValue = props[propName];
|
|
@@ -5568,8 +5586,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5568
5586
|
}
|
|
5569
5587
|
for (var key in shapeTypes) {
|
|
5570
5588
|
var checker = shapeTypes[key];
|
|
5571
|
-
if (
|
|
5572
|
-
|
|
5589
|
+
if (typeof checker !== 'function') {
|
|
5590
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
5573
5591
|
}
|
|
5574
5592
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
5575
5593
|
if (error) {
|
|
@@ -5588,16 +5606,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5588
5606
|
if (propType !== 'object') {
|
|
5589
5607
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
5590
5608
|
}
|
|
5591
|
-
// We need to check all keys in case some are required but missing from
|
|
5592
|
-
// props.
|
|
5609
|
+
// We need to check all keys in case some are required but missing from props.
|
|
5593
5610
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
5594
5611
|
for (var key in allKeys) {
|
|
5595
5612
|
var checker = shapeTypes[key];
|
|
5613
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
5614
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
5615
|
+
}
|
|
5596
5616
|
if (!checker) {
|
|
5597
5617
|
return new PropTypeError(
|
|
5598
5618
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
5599
5619
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
5600
|
-
'\nValid keys: ' +
|
|
5620
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
5601
5621
|
);
|
|
5602
5622
|
}
|
|
5603
5623
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -5798,6 +5818,17 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
5798
5818
|
module.exports = ReactPropTypesSecret;
|
|
5799
5819
|
|
|
5800
5820
|
|
|
5821
|
+
/***/ }),
|
|
5822
|
+
|
|
5823
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
5824
|
+
/*!***************************************************!*\
|
|
5825
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
5826
|
+
\***************************************************/
|
|
5827
|
+
/***/ ((module) => {
|
|
5828
|
+
|
|
5829
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5830
|
+
|
|
5831
|
+
|
|
5801
5832
|
/***/ }),
|
|
5802
5833
|
|
|
5803
5834
|
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
@@ -5806,26 +5837,24 @@ module.exports = ReactPropTypesSecret;
|
|
|
5806
5837
|
\*********************************************************/
|
|
5807
5838
|
/***/ ((module) => {
|
|
5808
5839
|
|
|
5809
|
-
|
|
5840
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
5810
5841
|
|
|
5811
|
-
|
|
5812
|
-
var isArray = Array.isArray;
|
|
5813
|
-
var keyList = Object.keys;
|
|
5814
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
5815
5842
|
var hasElementType = typeof Element !== 'undefined';
|
|
5843
|
+
var hasMap = typeof Map === 'function';
|
|
5844
|
+
var hasSet = typeof Set === 'function';
|
|
5845
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
5846
|
+
|
|
5847
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
5816
5848
|
|
|
5817
5849
|
function equal(a, b) {
|
|
5818
|
-
// fast-deep-equal index.js
|
|
5850
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
5819
5851
|
if (a === b) return true;
|
|
5820
5852
|
|
|
5821
5853
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
5822
|
-
|
|
5823
|
-
, arrB = isArray(b)
|
|
5824
|
-
, i
|
|
5825
|
-
, length
|
|
5826
|
-
, key;
|
|
5854
|
+
if (a.constructor !== b.constructor) return false;
|
|
5827
5855
|
|
|
5828
|
-
|
|
5856
|
+
var length, i, keys;
|
|
5857
|
+
if (Array.isArray(a)) {
|
|
5829
5858
|
length = a.length;
|
|
5830
5859
|
if (length != b.length) return false;
|
|
5831
5860
|
for (i = length; i-- !== 0;)
|
|
@@ -5833,50 +5862,91 @@ function equal(a, b) {
|
|
|
5833
5862
|
return true;
|
|
5834
5863
|
}
|
|
5835
5864
|
|
|
5836
|
-
|
|
5865
|
+
// START: Modifications:
|
|
5866
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
5867
|
+
// to co-exist with es5.
|
|
5868
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
5869
|
+
// Basically, take:
|
|
5870
|
+
//
|
|
5871
|
+
// ```js
|
|
5872
|
+
// for (i of a.entries())
|
|
5873
|
+
// if (!b.has(i[0])) return false;
|
|
5874
|
+
// ```
|
|
5875
|
+
//
|
|
5876
|
+
// ... and convert to:
|
|
5877
|
+
//
|
|
5878
|
+
// ```js
|
|
5879
|
+
// it = a.entries();
|
|
5880
|
+
// while (!(i = it.next()).done)
|
|
5881
|
+
// if (!b.has(i.value[0])) return false;
|
|
5882
|
+
// ```
|
|
5883
|
+
//
|
|
5884
|
+
// **Note**: `i` access switches to `i.value`.
|
|
5885
|
+
var it;
|
|
5886
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
5887
|
+
if (a.size !== b.size) return false;
|
|
5888
|
+
it = a.entries();
|
|
5889
|
+
while (!(i = it.next()).done)
|
|
5890
|
+
if (!b.has(i.value[0])) return false;
|
|
5891
|
+
it = a.entries();
|
|
5892
|
+
while (!(i = it.next()).done)
|
|
5893
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
5894
|
+
return true;
|
|
5895
|
+
}
|
|
5837
5896
|
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5897
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
5898
|
+
if (a.size !== b.size) return false;
|
|
5899
|
+
it = a.entries();
|
|
5900
|
+
while (!(i = it.next()).done)
|
|
5901
|
+
if (!b.has(i.value[0])) return false;
|
|
5902
|
+
return true;
|
|
5903
|
+
}
|
|
5904
|
+
// END: Modifications
|
|
5842
5905
|
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5906
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
5907
|
+
length = a.length;
|
|
5908
|
+
if (length != b.length) return false;
|
|
5909
|
+
for (i = length; i-- !== 0;)
|
|
5910
|
+
if (a[i] !== b[i]) return false;
|
|
5911
|
+
return true;
|
|
5912
|
+
}
|
|
5847
5913
|
|
|
5848
|
-
|
|
5849
|
-
|
|
5914
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
5915
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
5916
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
5850
5917
|
|
|
5851
|
-
|
|
5852
|
-
|
|
5918
|
+
keys = Object.keys(a);
|
|
5919
|
+
length = keys.length;
|
|
5920
|
+
if (length !== Object.keys(b).length) return false;
|
|
5853
5921
|
|
|
5854
5922
|
for (i = length; i-- !== 0;)
|
|
5855
|
-
if (!
|
|
5856
|
-
//
|
|
5923
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
5924
|
+
// END: fast-deep-equal
|
|
5857
5925
|
|
|
5858
|
-
//
|
|
5926
|
+
// START: react-fast-compare
|
|
5859
5927
|
// custom handling for DOM elements
|
|
5860
|
-
if (hasElementType && a instanceof Element
|
|
5861
|
-
return a === b;
|
|
5928
|
+
if (hasElementType && a instanceof Element) return false;
|
|
5862
5929
|
|
|
5863
|
-
// custom handling for React
|
|
5930
|
+
// custom handling for React/Preact
|
|
5864
5931
|
for (i = length; i-- !== 0;) {
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
//
|
|
5868
|
-
//
|
|
5869
|
-
//
|
|
5870
|
-
//
|
|
5932
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
5933
|
+
// React-specific: avoid traversing React elements' _owner
|
|
5934
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
5935
|
+
// __v = $_original / $_vnode
|
|
5936
|
+
// __o = $_owner
|
|
5937
|
+
// These properties contain circular references and are not needed when
|
|
5938
|
+
// comparing the actual elements (and not their owners)
|
|
5939
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
5940
|
+
|
|
5871
5941
|
continue;
|
|
5872
|
-
} else {
|
|
5873
|
-
// all other properties should be traversed as usual
|
|
5874
|
-
if (!equal(a[key], b[key])) return false;
|
|
5875
5942
|
}
|
|
5943
|
+
|
|
5944
|
+
// all other properties should be traversed as usual
|
|
5945
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
5876
5946
|
}
|
|
5877
|
-
//
|
|
5947
|
+
// END: react-fast-compare
|
|
5878
5948
|
|
|
5879
|
-
// fast-deep-equal
|
|
5949
|
+
// START: fast-deep-equal
|
|
5880
5950
|
return true;
|
|
5881
5951
|
}
|
|
5882
5952
|
|
|
@@ -5884,17 +5954,17 @@ function equal(a, b) {
|
|
|
5884
5954
|
}
|
|
5885
5955
|
// end fast-deep-equal
|
|
5886
5956
|
|
|
5887
|
-
module.exports = function
|
|
5957
|
+
module.exports = function isEqual(a, b) {
|
|
5888
5958
|
try {
|
|
5889
5959
|
return equal(a, b);
|
|
5890
5960
|
} catch (error) {
|
|
5891
|
-
if ((error.message
|
|
5961
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
5892
5962
|
// warn on circular references, don't crash
|
|
5893
5963
|
// browsers give this different errors name and messages:
|
|
5894
5964
|
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
5895
5965
|
// firefox: "InternalError", too much recursion"
|
|
5896
5966
|
// edge: "Error", "Out of stack space"
|
|
5897
|
-
console.warn('
|
|
5967
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
5898
5968
|
return false;
|
|
5899
5969
|
}
|
|
5900
5970
|
// some other error. we should definitely know about these
|
|
@@ -6136,14 +6206,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6136
6206
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
6137
6207
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
6138
6208
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
6139
|
-
/* harmony import */ var
|
|
6140
|
-
/* harmony import */ var
|
|
6209
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
6210
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
6141
6211
|
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
6142
6212
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
6143
|
-
/* harmony import */ var
|
|
6213
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
6144
6214
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
6145
|
-
/* harmony import */ var
|
|
6146
|
-
/* harmony import */ var
|
|
6215
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6216
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
6147
6217
|
|
|
6148
6218
|
|
|
6149
6219
|
|
|
@@ -6321,7 +6391,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
6321
6391
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
6322
6392
|
style: portalSvgStyle
|
|
6323
6393
|
};
|
|
6324
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
6394
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
|
|
6325
6395
|
value: {
|
|
6326
6396
|
portalUpdate: this.portalUpdate,
|
|
6327
6397
|
portalRegister: this.portalRegister,
|
|
@@ -6356,8 +6426,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
6356
6426
|
tabIndex = _this$props.tabIndex,
|
|
6357
6427
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
6358
6428
|
role = _this$props.role;
|
|
6359
|
-
var style = responsive ? this.props.style :
|
|
6360
|
-
var userProps =
|
|
6429
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
6430
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
6361
6431
|
|
|
6362
6432
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
6363
6433
|
width: width,
|
|
@@ -6382,33 +6452,33 @@ _defineProperty(VictoryContainer, "displayName", "VictoryContainer");
|
|
|
6382
6452
|
_defineProperty(VictoryContainer, "role", "container");
|
|
6383
6453
|
|
|
6384
6454
|
_defineProperty(VictoryContainer, "propTypes", {
|
|
6385
|
-
"aria-describedby": (
|
|
6386
|
-
"aria-labelledby": (
|
|
6387
|
-
children:
|
|
6388
|
-
className: (
|
|
6389
|
-
containerId:
|
|
6390
|
-
containerRef: (
|
|
6391
|
-
desc: (
|
|
6392
|
-
events: (
|
|
6455
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6456
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6457
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
|
|
6458
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6459
|
+
containerId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
6460
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
6461
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6462
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
6393
6463
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
6394
|
-
name: (
|
|
6395
|
-
origin:
|
|
6464
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6465
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
6396
6466
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
6397
6467
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
6398
6468
|
}),
|
|
6399
|
-
ouiaId:
|
|
6400
|
-
ouiaSafe: (
|
|
6401
|
-
ouiaType: (
|
|
6402
|
-
polar: (
|
|
6403
|
-
portalComponent: (
|
|
6469
|
+
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
6470
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
6471
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6472
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
6473
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
6404
6474
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
6405
|
-
preserveAspectRatio: (
|
|
6406
|
-
responsive: (
|
|
6407
|
-
role: (
|
|
6408
|
-
style: (
|
|
6409
|
-
tabIndex: (
|
|
6410
|
-
theme: (
|
|
6411
|
-
title: (
|
|
6475
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6476
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
6477
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6478
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
6479
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
6480
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
6481
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
6412
6482
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
6413
6483
|
});
|
|
6414
6484
|
|
|
@@ -6618,14 +6688,14 @@ var Rect = function (props) {
|
|
|
6618
6688
|
"use strict";
|
|
6619
6689
|
__webpack_require__.r(__webpack_exports__);
|
|
6620
6690
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6621
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
6622
6691
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
6623
6692
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
6624
6693
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
6625
|
-
/* harmony export */ "
|
|
6626
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
6694
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
6627
6695
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
6628
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
6696
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
6697
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
6698
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
6629
6699
|
/* harmony export */ });
|
|
6630
6700
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6631
6701
|
|
|
@@ -6702,25 +6772,25 @@ function getMinValue(arr) {
|
|
|
6702
6772
|
"use strict";
|
|
6703
6773
|
__webpack_require__.r(__webpack_exports__);
|
|
6704
6774
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6705
|
-
/* harmony export */ "
|
|
6706
|
-
/* harmony export */ "
|
|
6707
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
6708
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
6709
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
6710
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
6711
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
6775
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
6776
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
6712
6777
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
6713
6778
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
6714
|
-
/* harmony export */ "
|
|
6715
|
-
/* harmony export */ "
|
|
6716
|
-
/* harmony export */ "
|
|
6779
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
6780
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
6781
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
6782
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
6717
6783
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
6784
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
6718
6785
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
6719
|
-
/* harmony export */ "
|
|
6786
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
6787
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
6788
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
6720
6789
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
6721
|
-
/* harmony export */ "
|
|
6790
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
6791
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
6722
6792
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
6723
|
-
/* harmony export */ "
|
|
6793
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
6724
6794
|
/* harmony export */ });
|
|
6725
6795
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
6726
6796
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7123,16 +7193,16 @@ function warn(message) {
|
|
|
7123
7193
|
"use strict";
|
|
7124
7194
|
__webpack_require__.r(__webpack_exports__);
|
|
7125
7195
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7126
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
7127
7196
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
7128
|
-
/* harmony export */ "
|
|
7129
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
7130
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
7197
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
7131
7198
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
7132
|
-
/* harmony export */ "
|
|
7199
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
7133
7200
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
7201
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
7134
7202
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
7135
|
-
/* harmony export */ "
|
|
7203
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
7204
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
7205
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
7136
7206
|
/* harmony export */ });
|
|
7137
7207
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
7138
7208
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7140,9 +7210,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7140
7210
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
7141
7211
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7142
7212
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
7143
|
-
/* harmony import */ var
|
|
7144
|
-
/* harmony import */ var
|
|
7145
|
-
/* harmony import */ var
|
|
7213
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
7214
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7215
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7146
7216
|
|
|
7147
7217
|
|
|
7148
7218
|
|
|
@@ -7241,10 +7311,10 @@ function deprecated(propType, explanation) {
|
|
|
7241
7311
|
var value = props[propName];
|
|
7242
7312
|
|
|
7243
7313
|
if (value !== null && value !== undefined) {
|
|
7244
|
-
|
|
7314
|
+
_log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
7245
7315
|
}
|
|
7246
7316
|
|
|
7247
|
-
return
|
|
7317
|
+
return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
7248
7318
|
};
|
|
7249
7319
|
}
|
|
7250
7320
|
/**
|
|
@@ -7406,11 +7476,11 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
7406
7476
|
"use strict";
|
|
7407
7477
|
__webpack_require__.r(__webpack_exports__);
|
|
7408
7478
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7409
|
-
/* harmony export */ "
|
|
7410
|
-
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates),
|
|
7411
|
-
/* harmony export */ "getDomainCoordinates": () => (/* binding */ getDomainCoordinates),
|
|
7479
|
+
/* harmony export */ "getBounds": () => (/* binding */ getBounds),
|
|
7412
7480
|
/* harmony export */ "getDataCoordinates": () => (/* binding */ getDataCoordinates),
|
|
7413
|
-
/* harmony export */ "
|
|
7481
|
+
/* harmony export */ "getDomainCoordinates": () => (/* binding */ getDomainCoordinates),
|
|
7482
|
+
/* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
|
|
7483
|
+
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
7414
7484
|
/* harmony export */ });
|
|
7415
7485
|
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
7416
7486
|
/* eslint-disable func-style */
|
|
@@ -7658,8 +7728,11 @@ var Timer = /*#__PURE__*/function () {
|
|
|
7658
7728
|
"use strict";
|
|
7659
7729
|
__webpack_require__.r(__webpack_exports__);
|
|
7660
7730
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7661
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
7731
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
7732
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
7662
7733
|
/* harmony export */ });
|
|
7734
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7735
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7663
7736
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
7664
7737
|
|
|
7665
7738
|
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."); }
|
|
@@ -7678,12 +7751,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7678
7751
|
|
|
7679
7752
|
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; }
|
|
7680
7753
|
|
|
7754
|
+
|
|
7681
7755
|
/*
|
|
7682
7756
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
7683
7757
|
The startsWidth array will contain the start of any accepted user-prop that
|
|
7684
7758
|
starts with these characters.
|
|
7685
7759
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
7686
7760
|
*/
|
|
7761
|
+
|
|
7687
7762
|
var USER_PROPS_SAFELIST = {
|
|
7688
7763
|
startsWith: ["data-", "aria-"],
|
|
7689
7764
|
exactMatch: []
|
|
@@ -7770,6 +7845,17 @@ var getSafeUserProps = function (props) {
|
|
|
7770
7845
|
return [key, getValue(value, props)];
|
|
7771
7846
|
}));
|
|
7772
7847
|
};
|
|
7848
|
+
/**
|
|
7849
|
+
* Wraps a component and adds safe user props
|
|
7850
|
+
*
|
|
7851
|
+
* @param {ReactNode} component: parent component
|
|
7852
|
+
* @param {Object} props: props to be filtered
|
|
7853
|
+
* @returns {ReactNode} modified component
|
|
7854
|
+
*/
|
|
7855
|
+
|
|
7856
|
+
var withSafeUserProps = function (component, props) {
|
|
7857
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
7858
|
+
};
|
|
7773
7859
|
|
|
7774
7860
|
/***/ }),
|
|
7775
7861
|
|
|
@@ -7793,8 +7879,8 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
|
|
|
7793
7879
|
"use strict";
|
|
7794
7880
|
__webpack_require__.r(__webpack_exports__);
|
|
7795
7881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7796
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
7797
7882
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
7883
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
7798
7884
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
7799
7885
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
7800
7886
|
/* harmony export */ });
|
|
@@ -8013,9 +8099,9 @@ var __webpack_exports__ = {};
|
|
|
8013
8099
|
\******************/
|
|
8014
8100
|
__webpack_require__.r(__webpack_exports__);
|
|
8015
8101
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8016
|
-
/* harmony export */ "
|
|
8102
|
+
/* harmony export */ "BrushHelpers": () => (/* reexport safe */ _brush_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
8017
8103
|
/* harmony export */ "VictoryBrushContainer": () => (/* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
8018
|
-
/* harmony export */ "
|
|
8104
|
+
/* harmony export */ "brushContainerMixin": () => (/* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.brushContainerMixin)
|
|
8019
8105
|
/* harmony export */ });
|
|
8020
8106
|
/* harmony import */ var _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-brush-container */ "./victory-brush-container.js");
|
|
8021
8107
|
/* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./brush-helpers */ "./brush-helpers.js");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(function(t){return(()=>{var e={1124:(t,e,r)=>{var n=r(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,e,r)=>{var n=r(7168),o=r(6582),i=r(3867),a=r(9557),u=r(2726);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,r)=>{var n=r(441).Symbol;t.exports=n},5198:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7596:(t,e,r)=>{var n=r(999),o=r(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(6530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},528:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,r)=>{var n=r(3848),o=r(1754);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},641:(t,e,r)=>{var n=r(2630)();t.exports=n},5897:(t,e,r)=>{var n=r(641),o=r(2635);t.exports=function(t,e){return t&&n(t,e,o)}},166:(t,e,r)=>{var n=r(8422),o=r(8780);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1071:(t,e,r)=>{var n=r(7229),o=r(3387);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7229:(t,e,r)=>{var n=r(4281),o=r(2503),i=r(6001),a=r(8784),u=r(6686),c=r(7236),l=r(8752),s=r(4812),f="[object Arguments]",p="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),w=x?p:u(e),O=(g=g==f?h:g)==h,j=(w=w==f?h:w)==h,M=g==w;if(M&&l(t)){if(!l(e))return!1;m=!0,O=!1}if(M&&!O)return b||(b=new n),m||s(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=O&&y.call(t,"__wrapped__"),D=j&&y.call(e,"__wrapped__");if(P||D){var E=P?t.value():t,_=D?e.value():e;return b||(b=new n),d(E,_,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9157:(t,e,r)=>{var n=r(4281),o=r(1071);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new n;if(i)var y=i(f,p,s,t,e,h);if(!(void 0===y?o(p,f,3,i,h):y))return!1}}return!0}},1131:(t,e,r)=>{var n=r(4318),o=r(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,e,r)=>{var n=r(8418),o=r(4555),i=r(5362),a=r(7236),u=r(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},8418:(t,e,r)=>{var n=r(9157),o=r(9182),i=r(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4555:(t,e,r)=>{var n=r(1071),o=r(3795),i=r(3646),a=r(3266),u=r(1457),c=r(7375),l=r(8780);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7410:(t,e,r)=>{var n=r(6621),o=r(3646);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6621:(t,e,r)=>{var n=r(166),o=r(8116),i=r(8422);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,r)=>{var n=r(166);t.exports=function(t){return function(e){return n(e,t)}}},4569:(t,e,r)=>{var n=r(5362),o=r(4468),i=r(8756);t.exports=function(t,e){return i(o(t,e,n),t+"")}},8116:(t,e,r)=>{var n=r(7596),o=r(8422),i=r(4363),a=r(5973),u=r(8780);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var h=u(e[l]),y=r;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(l!=f){var v=p[h];void 0===(y=c?c(v,h,p):void 0)&&(y=a(v)?v:i(e[l+1])?[]:{})}n(p,h,y),p=p[h]}return t}},454:(t,e,r)=>{var n=r(4690),o=r(6460),i=r(7236),a=r(2945),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},555:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},8422:(t,e,r)=>{var n=r(7236),o=r(3266),i=r(3879),a=r(1119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},6051:(t,e,r)=>{var n=r(7596),o=r(999);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},2544:(t,e,r)=>{var n=r(4569),o=r(3108);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3086:(t,e,r)=>{var n=r(8904),o=r(1580),i=r(2635);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},9346:(t,e,r)=>{var n=r(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,r)=>{var n=r(1124),o=r(4793),i=r(555);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var y=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++y<s;){var b=t[y],m=e[y];if(a)var x=l?a(m,b,y,e,t,c):a(b,m,y,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,r)=>{var n=r(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),y=u.get(e);if(h&&y)return h==e&&y==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<s;){var b=t[p=l[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(t),u.delete(e),v}},3368:(t,e,r)=>{var n=r(5453),o=r(4468),i=r(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},6094:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},9182:(t,e,r)=>{var n=r(1457),o=r(2635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,r)=>{var n=r(8422),o=r(6981),i=r(7236),a=r(4363),u=r(9216),c=r(8780);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},1754:(t,e,r)=>{var n=r(4690),o=r(6981),i=r(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,r)=>{var n=r(7236),o=r(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,r)=>{var n=r(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},3867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},9557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},7375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,r)=>{t=r.nmd(t);var n=r(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4468:(t,e,r)=>{var n=r(5198),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},441:(t,e,r)=>{var n=r(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},8756:t=>{t.exports=function(t){return t}},3879:(t,e,r)=>{var n=r(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},6782:(t,e,r)=>{var n=r(7596),o=r(6051),i=r(2544),a=r(1580),u=r(5003),c=r(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5750:(t,e,r)=>{var n=r(5973),o=r(8148),i=r(8746),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,y=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,y=e,f=t.apply(n,r)}function x(t){return y=t,p=setTimeout(w,e),v?m(t):f}function g(t){var r=t-h;return void 0===h||r>=e||r<0||d&&t-y>=s}function w(){var t=o();if(g(t))return O(t);p=setTimeout(w,function(t){var r=e-(t-h);return d?u(r,s-(t-y)):r}(t))}function O(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,h=t,r){if(void 0===p)return x(h);if(d)return clearTimeout(p),p=setTimeout(w,e),m(h)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(d="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),y=0,c=h=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(t,e,r)=>{var n=r(4569),o=r(6530),i=r(3108),a=r(5850),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,h=f.length;++p<h;){var y=f[p],v=t[y];(void 0===v||o(v,u[y])&&!c.call(t,y))&&(t[y]=s[y])}return t}));t.exports=l},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,r)=>{var n=r(3086)(r(8611));t.exports=n},8611:(t,e,r)=>{var n=r(528),o=r(8904),i=r(5225),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},5453:(t,e,r)=>{var n=r(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},3795:(t,e,r)=>{var n=r(166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},3646:(t,e,r)=>{var n=r(7),o=r(7383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,r)=>{var n=r(3839),o=r(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,e,r)=>{var n=r(4318),o=r(5973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,e,r)=>{var n=r(1131),o=r(6535),i=r(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},3792:(t,e,r)=>{var n=r(999),o=r(5897),i=r(8904);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8148:(t,e,r)=>{var n=r(441);t.exports=function(){return n.Date.now()}},8423:(t,e,r)=>{var n=r(7410),o=r(3368)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},1651:(t,e,r)=>{var n=r(1712),o=r(4815),i=r(3266),a=r(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3259:(t,e,r)=>{var n=r(5750),o=r(5973);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,r)=>{var n=r(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,r)=>{var n=r(992);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8746:t=>{t.exports=function(t){return t}},1119:(t,e,r)=>{var n=r(454);t.exports=function(t){return null==t?"":n(t)}},556:(t,e,r)=>{var n=r(1119),o=0;t.exports=function(t){var e=++o;return n(t)+e}},459:(t,e,r)=>{"use strict";var n=r(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},216:(t,e,r)=>{t.exports=r(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{"use strict";var e=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){var u,c,l,s=e(t),f=e(a);if(s&&f){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(!i(t[u],a[u]))return!1;return!0}if(s!=f)return!1;var p=t instanceof Date,h=a instanceof Date;if(p!=h)return!1;if(p&&h)return t.getTime()==a.getTime();var y=t instanceof RegExp,v=a instanceof RegExp;if(y!=v)return!1;if(y&&v)return t.toString()==a.toString();var d=r(t);if((c=d.length)!==r(a).length)return!1;for(u=c;0!=u--;)if(!n.call(a,d[u]))return!1;if(o&&t instanceof Element&&a instanceof Element)return t===a;for(u=c;0!=u--;)if(!("_owner"===(l=d[u])&&t.$$typeof||i(t[l],a[l])))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Xt,VictoryBrushContainer:()=>ie,brushContainerMixin:()=>oe});var t=n(7901),e=n.n(t),r=n(6782),i=n.n(r),a=n(216),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function b(t,e){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var r=function(t){return t.getScreenCTM().inverse()}(e=e||d(t));return{x:v(t.clientX,r,"x"),y:v(t.clientY,r,"y")}}function m(t,e){var r=t.scale,n=t.horizontal;return e=e||{x:r.x.domain(),y:r.y.domain()},{x:n?[r.y(e.y[0]),r.y(e.y[1])]:[r.x(e.x[0]),r.x(e.x[1])],y:n?[r.x(e.x[0]),r.x(e.x[1])]:[r.y(e.y[0]),r.y(e.y[1])]}}function x(t,e,r,n){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=r-a.x,c=n-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(s),y:e.y.invert(l)}}return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)}}function g(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=x(t,i,e,n),u=x(t,i,r,o),c=function(t,e){return[y([t,e]),h([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(3839),O=n.n(w),j=n(5973),M=n.n(j),P=n(556),D=n.n(P),E=n(2654),_=n.n(E),S=n(6786),A=n.n(S),R=function(t){var e=function(e,r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))},r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r},T=function(){return null},B=function(){},C=function(t){return void 0===t?B:null===t?T:t.constructor},k=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},I=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<0)return new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number."))})),G=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n%1!=0)return new Error("`".concat(e,"` in `").concat(r,"` must be an integer."))})),z=(R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<=0)return new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),R((function(t,e,r){var n;if(n=t[e],!(O()(n)?O()(n.copy)&&O()(n.domain)&&O()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(!(n.length<2)){var o=C(n[0]),i=A()(n,(function(t){return o!==C(t)}));if(i){var a=k(n[0]),u=k(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),R((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),R((function(t,e,r){if(t[e]&&!_()(t[e]))return new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression."))})),n(2635)),U=n.n(z);function W(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function N(t,e){return N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},N(t,e)}function F(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return V(t)}function V(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=H(n);if(o){var r=H(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return F(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map={},e.index=1,e.portalUpdate=e.portalUpdate.bind(V(e)),e.portalRegister=e.portalRegister.bind(V(e)),e.portalDeregister=e.portalDeregister.bind(V(e)),e}return e=a,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,e){this.map[t]=e,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t],this.forceUpdate()}},{key:"getChildren",value:function(){var t=this;return U()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&W(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);q($,"displayName","Portal"),q($,"propTypes",{className:u().string,height:I,style:u().object,viewBox:u().string,width:I});var X=l().createContext({});X.displayName="PortalContext";const Y=X;var L,Z,J=0,K=0,Q=0,tt=0,et=0,rt=0,nt="object"==typeof performance&&performance.now?performance:Date,ot="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function it(){return et||(ot(at),et=nt.now()+rt)}function at(){et=0}function ut(){this._call=this._time=this._next=null}function ct(t,e,r){var n=new ut;return n.restart(t,e,r),n}function lt(){et=(tt=nt.now())+rt,J=K=0;try{!function(){it(),++J;for(var t,e=L;e;)(t=et-e._time)>=0&&e._call.call(void 0,t),e=e._next;--J}()}finally{J=0,function(){for(var t,e,r=L,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:L=e);Z=t,ft(n)}(),et=0}}function st(){var t=nt.now(),e=t-tt;e>1e3&&(rt-=e,tt=t)}function ft(t){J||(K&&(K=clearTimeout(K)),t-et>24?(t<1/0&&(K=setTimeout(lt,t-nt.now()-rt)),Q&&(Q=clearInterval(Q))):(Q||(tt=nt.now(),Q=setInterval(st,1e3)),J=1,ot(lt)))}function pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ut.prototype=ct.prototype={constructor:ut,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?it():+r)+(null==e?0:+e),this._next||Z===this||(Z?Z._next=this:L=this,Z=this),this._call=t,this._time=r,ft()},stop:function(){this._call&&(this._call=null,this._time=1/0,ft())}};var ht=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(it()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=ct(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:it(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&pt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),yt=l().createContext({transitionTimer:new ht,animationTimer:new ht});yt.displayName="TimerContext";const vt=yt;function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(8423),n(1651);var gt={startsWith:["data-","aria-"],exactMatch:[]},wt=function(t,e){return"function"==typeof t?t(e):t},Ot=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return gt.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return gt.exactMatch.includes(t)}(t))}(dt(t,1)[0])})).map((function(e){var r=dt(e,2),n=r[0],o=r[1];return[n,wt(o,t)]})))};function jt(){return jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jt.apply(this,arguments)}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){At(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Et(t,e){return Et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Et(t,e)}function _t(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},St(t)}function At(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Et(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=St(o);if(a){var r=St(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _t(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=M()(t)&&void 0!==t.containerId?t.containerId:D()("victory-container-"),e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=t&&O()(t.containerRef)?t.containerRef:function(t){return e.containerRef=t,t},e.shouldHandleWheel=t&&t.events&&t.events.onWheel,e.shouldHandleWheel&&(e.handleWheel=function(t){return t.preventDefault()}),e}return r=c,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Pt(Pt(Pt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,h=t.responsive,y=this.getChildren(t),v=h?{width:"100%",height:"100%"}:{width:s,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(Y.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",jt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",jt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,y),l().createElement("div",{style:b},l().cloneElement(u,Pt(Pt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=Ot(this.props),h=i()(Pt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,h,f)}}])&&Dt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);At(Rt,"displayName","VictoryContainer"),At(Rt,"role","container"),At(Rt,"propTypes",{"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:I,name:u().string,origin:u().shape({x:I,y:I}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:G,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:I}),At(Rt,"defaultProps",{className:"VictoryContainer",portalComponent:l().createElement($,null),portalZIndex:99,responsive:!0,role:"img"}),At(Rt,"contextType",vt);var Tt=["desc"];function Bt(){return Bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Bt.apply(this,arguments)}const Ct=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Tt);return e?l().createElement("rect",Bt({vectorEffect:"non-scaling-stroke"},r),l().createElement("desc",null,e)):l().createElement("rect",Bt({vectorEffect:"non-scaling-stroke"},r))};var kt=n(3792),It=n.n(kt),Gt=n(3259),zt=n.n(Gt),Ut=n(8266),Wt=n.n(Ut);function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(r),!0).forEach((function(e){Vt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ht(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $t={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=It()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=It()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=m(t,r),a=m(t,n);return{x1:"y"!==o?Math.min.apply(Math,Ht(a.x)):Math.min.apply(Math,Ht(i.x)),x2:"y"!==o?Math.max.apply(Math,Ht(a.x)):Math.max.apply(Math,Ht(i.x)),y1:"x"!==o?Math.min.apply(Math,Ht(a.y)):Math.min.apply(Math,Ht(i.y)),y2:"x"!==o?Math.max.apply(Math,Ht(a.y)):Math.max.apply(Math,Ht(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||d(r),s=this.panBox(Ft(Ft(Ft({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return g(Ft(Ft({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,h=l.y2,y=r.x,v=r.y,d=o?o-y:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-d:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-d:Math.max(s,f),y1:"x"!==a?Math.min(p,h)-b:Math.min(p,h),y2:"x"!==a?Math.max(p,h)-b:Math.max(p,h)}},constrainBox:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),h=r.parentSVG||d(t),y=b(t,h),v=y.x,m=y.y;if(!this.withinBounds({x:v,y:m},p,o))return{};var x=e()({},r.brushDomain,a),g=Wt()(x,i)?r.currentDomain||x||a:x||a,w=this.getDomainBox(r,a,g),O=u&&this.getActiveHandles({x:v,y:m},r,w);return O?[{target:"parent",mutation:function(){return Ft({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:h},n.getResizeMutation(w,O))}}]:this.withinBounds({x:v,y:m},w)&&!Wt()(a,g)?[{target:"parent",mutation:function(){return Ft({isPanning:c,startX:v,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:h},w)}}]:l?[{target:"parent",mutation:function(){return Ft({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:h,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:m},w,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,h=this.getDimension(r),y=b(t,p),v=y.x,d=y.y;if(!c&&!l||f>0&&!this.hasMoved(Ft(Ft({},r),{},{x2:v,y2:d})))return{};if(l&&o){var m=r.startX,x=r.startY,w=this.panBox(r,{x:v,y:d}),j=this.constrainBox(w,a),M=g(Ft(Ft({},j),{},{scale:n,horizontal:s})),P=Ft({currentDomain:M,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?m:v,startY:w.y2>=a.y2||w.y1<=a.y1?x:d},j);return O()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==h?v:r.x2,y:"x"!==h?d:r.y2},a),E=D.x,_=D.y,S=g({x2:E,y2:_,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:E,y2:_,currentDomain:S,parentSVG:p};return O()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,h=r.allowResize,y=r.allowDrag,v=h||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!h&&(void 0===v||"none"===v)||n!==i&&o!==a)(y&&u||h&&c)&&O()(s)&&s(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,O()(l)&&l(m,e()({},d,r)),O()(s)&&s(m,e()({},d,r)),O()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}};const Xt=Ft(Ft({},$t),{},{onMouseDown:$t.onMouseDown.bind($t),onGlobalMouseUp:$t.onGlobalMouseUp.bind($t),onGlobalMouseMove:zt()($t.onGlobalMouseMove.bind($t),16,{leading:!0,trailing:!1})});function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){ne(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zt(t){return function(t){if(Array.isArray(t))return Jt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function te(t,e){return te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},te(t,e)}function ee(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function re(t){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},re(t)}function ne(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oe=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&te(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=re(o);if(a){var r=re(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ee(this,t)});function c(){return Kt(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Xt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,h=c.y2,y=Xt.getHandles(t,c),v=y.top,d=y.bottom,b=y.left,m=y.right,x=Math.abs(f-s)||1,g=Math.abs(h-p)||1,w=a.props&&a.props.style||{},O=e()({},w,o),j=this.getCursorPointers(t),M={style:O,width:x,height:n,cursor:j.yProps},P={style:O,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},E=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return E.length?E:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Wt()(o,n)?e()({},r,o):o,a=m(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Zt(l().Children.toArray(t.children)),Zt(this.getRect(t)))}}])&&Qt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),ne(r,"displayName","VictoryBrushContainer"),ne(r,"propTypes",Lt(Lt({},Rt.propTypes),{},{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func})),ne(r,"defaultProps",Lt(Lt({},Rt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(Ct,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(Ct,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})),ne(r,"defaultEvents",(function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)}}}]})),r};const ie=oe(Rt)})(),o})()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={1124:(t,e,r)=>{var n=r(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,e,r)=>{var n=r(7168),o=r(6582),i=r(3867),a=r(9557),u=r(2726);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,r)=>{var n=r(441).Symbol;t.exports=n},5198:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7596:(t,e,r)=>{var n=r(999),o=r(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(6530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},528:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,r)=>{var n=r(3848),o=r(1754);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},641:(t,e,r)=>{var n=r(2630)();t.exports=n},5897:(t,e,r)=>{var n=r(641),o=r(2635);t.exports=function(t,e){return t&&n(t,e,o)}},166:(t,e,r)=>{var n=r(8422),o=r(8780);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1071:(t,e,r)=>{var n=r(7229),o=r(3387);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7229:(t,e,r)=>{var n=r(4281),o=r(2503),i=r(6001),a=r(8784),u=r(6686),c=r(7236),l=r(8752),s=r(4812),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),w=x?p:u(e),O=(g=g==f?y:g)==y,j=(w=w==f?y:w)==y,M=g==w;if(M&&l(t)){if(!l(e))return!1;m=!0,O=!1}if(M&&!O)return b||(b=new n),m||s(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=O&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return b||(b=new n),d(_,E,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9157:(t,e,r)=>{var n=r(4281),o=r(1071);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var y=new n;if(i)var h=i(f,p,s,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},1131:(t,e,r)=>{var n=r(4318),o=r(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,e,r)=>{var n=r(8418),o=r(4555),i=r(5362),a=r(7236),u=r(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},8418:(t,e,r)=>{var n=r(9157),o=r(9182),i=r(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4555:(t,e,r)=>{var n=r(1071),o=r(3795),i=r(3646),a=r(3266),u=r(1457),c=r(7375),l=r(8780);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7410:(t,e,r)=>{var n=r(6621),o=r(3646);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6621:(t,e,r)=>{var n=r(166),o=r(8116),i=r(8422);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,r)=>{var n=r(166);t.exports=function(t){return function(e){return n(e,t)}}},4569:(t,e,r)=>{var n=r(5362),o=r(4468),i=r(8756);t.exports=function(t,e){return i(o(t,e,n),t+"")}},8116:(t,e,r)=>{var n=r(7596),o=r(8422),i=r(4363),a=r(5973),u=r(8780);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var y=u(e[l]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(l!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}n(p,y,h),p=p[y]}return t}},454:(t,e,r)=>{var n=r(4690),o=r(6460),i=r(7236),a=r(2945),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},555:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},8422:(t,e,r)=>{var n=r(7236),o=r(3266),i=r(3879),a=r(1119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},6051:(t,e,r)=>{var n=r(7596),o=r(999);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},2544:(t,e,r)=>{var n=r(4569),o=r(3108);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3086:(t,e,r)=>{var n=r(8904),o=r(1580),i=r(2635);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},9346:(t,e,r)=>{var n=r(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,r)=>{var n=r(1124),o=r(4793),i=r(555);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var b=t[h],m=e[h];if(a)var x=l?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,r)=>{var n=r(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<s;){var b=t[p=l[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(t),u.delete(e),v}},3368:(t,e,r)=>{var n=r(5453),o=r(4468),i=r(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},6094:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},9182:(t,e,r)=>{var n=r(1457),o=r(2635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,r)=>{var n=r(8422),o=r(6981),i=r(7236),a=r(4363),u=r(9216),c=r(8780);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},1754:(t,e,r)=>{var n=r(4690),o=r(6981),i=r(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,r)=>{var n=r(7236),o=r(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,r)=>{var n=r(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},3867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},9557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},7375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,r)=>{t=r.nmd(t);var n=r(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4468:(t,e,r)=>{var n=r(5198),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},441:(t,e,r)=>{var n=r(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},8756:t=>{t.exports=function(t){return t}},3879:(t,e,r)=>{var n=r(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},6782:(t,e,r)=>{var n=r(7596),o=r(6051),i=r(2544),a=r(1580),u=r(5003),c=r(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5750:(t,e,r)=>{var n=r(5973),o=r(8148),i=r(8746),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,y,h=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(w,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||d&&t-h>=s}function w(){var t=o();if(g(t))return O(t);p=setTimeout(w,function(t){var r=e-(t-y);return d?u(r,s-(t-h)):r}(t))}function O(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,y=t,r){if(void 0===p)return x(y);if(d)return clearTimeout(p),p=setTimeout(w,e),m(y)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(d="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(t,e,r)=>{var n=r(4569),o=r(6530),i=r(3108),a=r(5850),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,r)=>{var n=r(3086)(r(8611));t.exports=n},8611:(t,e,r)=>{var n=r(528),o=r(8904),i=r(5225),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},5453:(t,e,r)=>{var n=r(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},3795:(t,e,r)=>{var n=r(166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},3646:(t,e,r)=>{var n=r(7),o=r(7383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,r)=>{var n=r(3839),o=r(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,e,r)=>{var n=r(4318),o=r(5973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,e,r)=>{var n=r(1131),o=r(6535),i=r(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},3792:(t,e,r)=>{var n=r(999),o=r(5897),i=r(8904);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8148:(t,e,r)=>{var n=r(441);t.exports=function(){return n.Date.now()}},8423:(t,e,r)=>{var n=r(7410),o=r(3368)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},1651:(t,e,r)=>{var n=r(1712),o=r(4815),i=r(3266),a=r(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3259:(t,e,r)=>{var n=r(5750),o=r(5973);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,r)=>{var n=r(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,r)=>{var n=r(992);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8746:t=>{t.exports=function(t){return t}},1119:(t,e,r)=>{var n=r(454);t.exports=function(t){return null==t?"":n(t)}},556:(t,e,r)=>{var n=r(1119),o=0;t.exports=function(t){var e=++o;return n(t)+e}},459:(t,e,r)=>{"use strict";var n=r(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},216:(t,e,r)=>{t.exports=r(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Xt,VictoryBrushContainer:()=>ie,brushContainerMixin:()=>oe});var t=n(7901),e=n.n(t),r=n(6782),i=n.n(r),a=n(216),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function b(t,e){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var r=function(t){return t.getScreenCTM().inverse()}(e=e||d(t));return{x:v(t.clientX,r,"x"),y:v(t.clientY,r,"y")}}function m(t,e){var r=t.scale,n=t.horizontal;return e=e||{x:r.x.domain(),y:r.y.domain()},{x:n?[r.y(e.y[0]),r.y(e.y[1])]:[r.x(e.x[0]),r.x(e.x[1])],y:n?[r.x(e.x[0]),r.x(e.x[1])]:[r.y(e.y[0]),r.y(e.y[1])]}}function x(t,e,r,n){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=r-a.x,c=n-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(s),y:e.y.invert(l)}}return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)}}function g(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=x(t,i,e,n),u=x(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(3839),O=n.n(w),j=n(5973),M=n.n(j),P=n(556),D=n.n(P),_=n(2654),E=n.n(_),S=n(6786),A=n.n(S),R=function(t){var e=function(e,r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))},r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r},B=function(){return null},T=function(){},k=function(t){return void 0===t?T:null===t?B:t.constructor},C=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},I=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<0)return new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number."))})),z=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n%1!=0)return new Error("`".concat(e,"` in `").concat(r,"` must be an integer."))})),G=(R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<=0)return new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),R((function(t,e,r){var n;if(n=t[e],!(O()(n)?O()(n.copy)&&O()(n.domain)&&O()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(!(n.length<2)){var o=k(n[0]),i=A()(n,(function(t){return o!==k(t)}));if(i){var a=C(n[0]),u=C(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),R((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),R((function(t,e,r){if(t[e]&&!E()(t[e]))return new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression."))})),n(2635)),U=n.n(G);function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W(t,e){return W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},W(t,e)}function V(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return F(t)}function F(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=H(n);if(o){var r=H(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return V(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map={},e.index=1,e.portalUpdate=e.portalUpdate.bind(F(e)),e.portalRegister=e.portalRegister.bind(F(e)),e.portalDeregister=e.portalDeregister.bind(F(e)),e}return e=a,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,e){this.map[t]=e,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t],this.forceUpdate()}},{key:"getChildren",value:function(){var t=this;return U()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&N(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);q($,"displayName","Portal"),q($,"propTypes",{className:u().string,height:I,style:u().object,viewBox:u().string,width:I});var X=l().createContext({});X.displayName="PortalContext";const Y=X;var L,Z,J=0,K=0,Q=0,tt=0,et=0,rt=0,nt="object"==typeof performance&&performance.now?performance:Date,ot="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function it(){return et||(ot(at),et=nt.now()+rt)}function at(){et=0}function ut(){this._call=this._time=this._next=null}function ct(t,e,r){var n=new ut;return n.restart(t,e,r),n}function lt(){et=(tt=nt.now())+rt,J=K=0;try{!function(){it(),++J;for(var t,e=L;e;)(t=et-e._time)>=0&&e._call.call(void 0,t),e=e._next;--J}()}finally{J=0,function(){for(var t,e,r=L,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:L=e);Z=t,ft(n)}(),et=0}}function st(){var t=nt.now(),e=t-tt;e>1e3&&(rt-=e,tt=t)}function ft(t){J||(K&&(K=clearTimeout(K)),t-et>24?(t<1/0&&(K=setTimeout(lt,t-nt.now()-rt)),Q&&(Q=clearInterval(Q))):(Q||(tt=nt.now(),Q=setInterval(st,1e3)),J=1,ot(lt)))}function pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ut.prototype=ct.prototype={constructor:ut,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?it():+r)+(null==e?0:+e),this._next||Z===this||(Z?Z._next=this:L=this,Z=this),this._call=t,this._time=r,ft()},stop:function(){this._call&&(this._call=null,this._time=1/0,ft())}};var yt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(it()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=ct(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:it(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&pt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ht=l().createContext({transitionTimer:new yt,animationTimer:new yt});ht.displayName="TimerContext";const vt=ht;function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(8423),n(1651);var gt={startsWith:["data-","aria-"],exactMatch:[]},wt=function(t,e){return"function"==typeof t?t(e):t},Ot=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return gt.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return gt.exactMatch.includes(t)}(t))}(dt(t,1)[0])})).map((function(e){var r=dt(e,2),n=r[0],o=r[1];return[n,wt(o,t)]})))};function jt(){return jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jt.apply(this,arguments)}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){At(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _t(t,e){return _t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_t(t,e)}function Et(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},St(t)}function At(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_t(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=St(o);if(a){var r=St(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Et(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=M()(t)&&void 0!==t.containerId?t.containerId:D()("victory-container-"),e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=t&&O()(t.containerRef)?t.containerRef:function(t){return e.containerRef=t,t},e.shouldHandleWheel=t&&t.events&&t.events.onWheel,e.shouldHandleWheel&&(e.handleWheel=function(t){return t.preventDefault()}),e}return r=c,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Pt(Pt(Pt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:s,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(Y.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",jt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",jt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),l().createElement("div",{style:b},l().cloneElement(u,Pt(Pt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=Ot(this.props),y=i()(Pt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Dt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);At(Rt,"displayName","VictoryContainer"),At(Rt,"role","container"),At(Rt,"propTypes",{"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:I,name:u().string,origin:u().shape({x:I,y:I}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:z,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:I}),At(Rt,"defaultProps",{className:"VictoryContainer",portalComponent:l().createElement($,null),portalZIndex:99,responsive:!0,role:"img"}),At(Rt,"contextType",vt);var Bt=["desc"];function Tt(){return Tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tt.apply(this,arguments)}const kt=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Bt);return e?l().createElement("rect",Tt({vectorEffect:"non-scaling-stroke"},r),l().createElement("desc",null,e)):l().createElement("rect",Tt({vectorEffect:"non-scaling-stroke"},r))};var Ct=n(3792),It=n.n(Ct),zt=n(3259),Gt=n.n(zt),Ut=n(8266),Nt=n.n(Ut);function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(r),!0).forEach((function(e){Ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ht(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $t={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=It()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=It()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=m(t,r),a=m(t,n);return{x1:"y"!==o?Math.min.apply(Math,Ht(a.x)):Math.min.apply(Math,Ht(i.x)),x2:"y"!==o?Math.max.apply(Math,Ht(a.x)):Math.max.apply(Math,Ht(i.x)),y1:"x"!==o?Math.min.apply(Math,Ht(a.y)):Math.min.apply(Math,Ht(i.y)),y2:"x"!==o?Math.max.apply(Math,Ht(a.y)):Math.max.apply(Math,Ht(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||d(r),s=this.panBox(Vt(Vt(Vt({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return g(Vt(Vt({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,y=l.y2,h=r.x,v=r.y,d=o?o-h:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-d:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-d:Math.max(s,f),y1:"x"!==a?Math.min(p,y)-b:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-b:Math.max(p,y)}},constrainBox:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||d(t),h=b(t,y),v=h.x,m=h.y;if(!this.withinBounds({x:v,y:m},p,o))return{};var x=e()({},r.brushDomain,a),g=Nt()(x,i)?r.currentDomain||x||a:x||a,w=this.getDomainBox(r,a,g),O=u&&this.getActiveHandles({x:v,y:m},r,w);return O?[{target:"parent",mutation:function(){return Vt({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(w,O))}}]:this.withinBounds({x:v,y:m},w)&&!Nt()(a,g)?[{target:"parent",mutation:function(){return Vt({isPanning:c,startX:v,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},w)}}]:l?[{target:"parent",mutation:function(){return Vt({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:m},w,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=b(t,p),v=h.x,d=h.y;if(!c&&!l||f>0&&!this.hasMoved(Vt(Vt({},r),{},{x2:v,y2:d})))return{};if(l&&o){var m=r.startX,x=r.startY,w=this.panBox(r,{x:v,y:d}),j=this.constrainBox(w,a),M=g(Vt(Vt({},j),{},{scale:n,horizontal:s})),P=Vt({currentDomain:M,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?m:v,startY:w.y2>=a.y2||w.y1<=a.y1?x:d},j);return O()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?d:r.y2},a),_=D.x,E=D.y,S=g({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return O()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&O()(s)&&s(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,O()(l)&&l(m,e()({},d,r)),O()(s)&&s(m,e()({},d,r)),O()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}};const Xt=Vt(Vt({},$t),{},{onMouseDown:$t.onMouseDown.bind($t),onGlobalMouseUp:$t.onGlobalMouseUp.bind($t),onGlobalMouseMove:Gt()($t.onGlobalMouseMove.bind($t),16,{leading:!0,trailing:!1})});function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){ne(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zt(t){return function(t){if(Array.isArray(t))return Jt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function te(t,e){return te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},te(t,e)}function ee(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function re(t){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},re(t)}function ne(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oe=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&te(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=re(o);if(a){var r=re(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ee(this,t)});function c(){return Kt(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Xt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Xt.getHandles(t,c),v=h.top,d=h.bottom,b=h.left,m=h.right,x=Math.abs(f-s)||1,g=Math.abs(y-p)||1,w=a.props&&a.props.style||{},O=e()({},w,o),j=this.getCursorPointers(t),M={style:O,width:x,height:n,cursor:j.yProps},P={style:O,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Nt()(o,n)?e()({},r,o):o,a=m(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Zt(l().Children.toArray(t.children)),Zt(this.getRect(t)))}}])&&Qt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),ne(r,"displayName","VictoryBrushContainer"),ne(r,"propTypes",Lt(Lt({},Rt.propTypes),{},{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func})),ne(r,"defaultProps",Lt(Lt({},Rt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(kt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(kt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})),ne(r,"defaultEvents",(function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)}}}]})),r};const ie=oe(Rt)})(),o})()));
|
|
2
2
|
//# sourceMappingURL=victory-brush-container.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-brush-container",
|
|
3
|
-
"version": "36.4.
|
|
3
|
+
"version": "36.4.1",
|
|
4
4
|
"description": "Interactive Brush Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
|
-
"prop-types": "^15.
|
|
24
|
-
"react-fast-compare": "^2.0
|
|
25
|
-
"victory-core": "^36.4.
|
|
23
|
+
"prop-types": "^15.8.1",
|
|
24
|
+
"react-fast-compare": "^3.2.0",
|
|
25
|
+
"victory-core": "^36.4.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^16.6.0 || ^17.0.0"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
|
|
35
35
|
}
|