victory-box-plot 36.8.6 → 36.9.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/victory-box-plot.js +88 -2331
- package/dist/victory-box-plot.min.js +1 -1
- package/es/helper-methods.d.ts +3 -3
- package/es/index.d.ts +1 -1
- package/es/victory-box-plot.d.ts +139 -240
- package/es/victory-box-plot.js +1 -62
- package/lib/helper-methods.d.ts +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/victory-box-plot.d.ts +139 -240
- package/lib/victory-box-plot.js +0 -62
- package/package.json +5 -9
- package/src/victory-box-plot.tsx +0 -143
package/dist/victory-box-plot.js
CHANGED
|
@@ -596,30 +596,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
596
596
|
/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_1__);
|
|
597
597
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
598
598
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
599
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
600
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
601
599
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
602
600
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
603
601
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/default-transitions.js");
|
|
604
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
605
|
-
/* harmony import */ var
|
|
606
|
-
/* harmony import */ var
|
|
607
|
-
/* harmony import */ var
|
|
608
|
-
/* harmony import */ var
|
|
609
|
-
/* harmony import */ var
|
|
610
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
611
|
-
/* harmony import */ var
|
|
612
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
|
|
613
|
-
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
|
|
602
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
603
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/border.js");
|
|
604
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/whisker.js");
|
|
605
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
606
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
|
|
607
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
608
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
|
|
609
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
|
|
614
610
|
|
|
615
611
|
|
|
616
612
|
|
|
617
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
618
|
-
|
|
619
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
620
|
-
|
|
621
|
-
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; }
|
|
622
|
-
|
|
623
613
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
624
614
|
|
|
625
615
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -655,7 +645,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
655
645
|
|
|
656
646
|
|
|
657
647
|
|
|
658
|
-
|
|
659
648
|
var fallbackProps = {
|
|
660
649
|
width: 450,
|
|
661
650
|
height: 300,
|
|
@@ -798,92 +787,38 @@ VictoryBoxPlotBase.animationWhitelist = ["data", "domain", "height", "padding",
|
|
|
798
787
|
VictoryBoxPlotBase.displayName = "VictoryBoxPlot";
|
|
799
788
|
VictoryBoxPlotBase.role = "boxplot";
|
|
800
789
|
VictoryBoxPlotBase.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_5__.discreteTransitions();
|
|
801
|
-
VictoryBoxPlotBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.dataProps), {}, {
|
|
802
|
-
boxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number),
|
|
803
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
804
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
|
|
805
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string)]),
|
|
806
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object)
|
|
807
|
-
})),
|
|
808
|
-
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
809
|
-
labelOrientation: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]), prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
810
|
-
q1: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
811
|
-
q3: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
812
|
-
min: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
813
|
-
max: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
814
|
-
median: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"])
|
|
815
|
-
})]),
|
|
816
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
817
|
-
max: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
818
|
-
maxComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
819
|
-
maxLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
820
|
-
maxLabels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
821
|
-
median: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
822
|
-
medianComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
823
|
-
medianLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
824
|
-
medianLabels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
825
|
-
min: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
826
|
-
minComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
827
|
-
minLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
828
|
-
minLabels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
829
|
-
q1: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
830
|
-
q1Component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
831
|
-
q1LabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
832
|
-
q1Labels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
833
|
-
q3: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
834
|
-
q3Component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
835
|
-
q3LabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
836
|
-
q3Labels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
837
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
838
|
-
boxes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
839
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
840
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
841
|
-
max: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
842
|
-
maxLabels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
843
|
-
median: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
844
|
-
medianLabels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
845
|
-
min: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
846
|
-
minLabels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
847
|
-
q1: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
848
|
-
q1Labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
849
|
-
q3: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
850
|
-
q3Labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
851
|
-
whiskers: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object)
|
|
852
|
-
}),
|
|
853
|
-
whiskerWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)
|
|
854
|
-
});
|
|
855
790
|
VictoryBoxPlotBase.defaultProps = {
|
|
856
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
791
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer, null),
|
|
857
792
|
data: defaultData,
|
|
858
|
-
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
793
|
+
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Border, null),
|
|
859
794
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", {
|
|
860
795
|
role: "presentation"
|
|
861
796
|
}),
|
|
862
|
-
maxComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
863
|
-
maxLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
864
|
-
medianComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
865
|
-
medianLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
866
|
-
minComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
867
|
-
minLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
868
|
-
q1Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
869
|
-
q1LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
870
|
-
q3Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
871
|
-
q3LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
797
|
+
maxComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Whisker, null),
|
|
798
|
+
maxLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
|
|
799
|
+
medianComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.LineSegment, null),
|
|
800
|
+
medianLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
|
|
801
|
+
minComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Whisker, null),
|
|
802
|
+
minLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
|
|
803
|
+
q1Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Border, null),
|
|
804
|
+
q1LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
|
|
805
|
+
q3Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Border, null),
|
|
806
|
+
q3LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
|
|
872
807
|
samples: 50,
|
|
873
808
|
sortKey: "x",
|
|
874
809
|
sortOrder: "ascending",
|
|
875
810
|
standalone: true,
|
|
876
|
-
theme:
|
|
811
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_11__.VictoryTheme.grayscale
|
|
877
812
|
};
|
|
878
|
-
VictoryBoxPlotBase.getDomain =
|
|
879
|
-
VictoryBoxPlotBase.getData =
|
|
813
|
+
VictoryBoxPlotBase.getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_12__.getDomain;
|
|
814
|
+
VictoryBoxPlotBase.getData = _helper_methods__WEBPACK_IMPORTED_MODULE_12__.getData;
|
|
880
815
|
|
|
881
816
|
VictoryBoxPlotBase.getBaseProps = function (props) {
|
|
882
|
-
return (0,
|
|
817
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getBaseProps)(props, fallbackProps);
|
|
883
818
|
};
|
|
884
819
|
|
|
885
820
|
VictoryBoxPlotBase.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
|
|
886
|
-
var VictoryBoxPlot = (0,
|
|
821
|
+
var VictoryBoxPlot = (0,victory_core__WEBPACK_IMPORTED_MODULE_13__.addEvents)(VictoryBoxPlotBase, options);
|
|
887
822
|
|
|
888
823
|
/***/ }),
|
|
889
824
|
|
|
@@ -1468,40 +1403,6 @@ function baseDifference(array, values, iteratee, comparator) {
|
|
|
1468
1403
|
module.exports = baseDifference;
|
|
1469
1404
|
|
|
1470
1405
|
|
|
1471
|
-
/***/ }),
|
|
1472
|
-
|
|
1473
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js":
|
|
1474
|
-
/*!****************************************************************************************!*\
|
|
1475
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js ***!
|
|
1476
|
-
\****************************************************************************************/
|
|
1477
|
-
/***/ ((module) => {
|
|
1478
|
-
|
|
1479
|
-
/**
|
|
1480
|
-
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
1481
|
-
* support for iteratee shorthands.
|
|
1482
|
-
*
|
|
1483
|
-
* @private
|
|
1484
|
-
* @param {Array} array The array to inspect.
|
|
1485
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1486
|
-
* @param {number} fromIndex The index to search from.
|
|
1487
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1488
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1489
|
-
*/
|
|
1490
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1491
|
-
var length = array.length,
|
|
1492
|
-
index = fromIndex + (fromRight ? 1 : -1);
|
|
1493
|
-
|
|
1494
|
-
while ((fromRight ? index-- : ++index < length)) {
|
|
1495
|
-
if (predicate(array[index], index, array)) {
|
|
1496
|
-
return index;
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
return -1;
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
module.exports = baseFindIndex;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
1406
|
/***/ }),
|
|
1506
1407
|
|
|
1507
1408
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1903,34 +1804,6 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
1903
1804
|
module.exports = baseIsMatch;
|
|
1904
1805
|
|
|
1905
1806
|
|
|
1906
|
-
/***/ }),
|
|
1907
|
-
|
|
1908
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js":
|
|
1909
|
-
/*!***************************************************************************************!*\
|
|
1910
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js ***!
|
|
1911
|
-
\***************************************************************************************/
|
|
1912
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1913
|
-
|
|
1914
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
|
|
1915
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
1916
|
-
|
|
1917
|
-
/** `Object#toString` result references. */
|
|
1918
|
-
var regexpTag = '[object RegExp]';
|
|
1919
|
-
|
|
1920
|
-
/**
|
|
1921
|
-
* The base implementation of `_.isRegExp` without Node.js optimizations.
|
|
1922
|
-
*
|
|
1923
|
-
* @private
|
|
1924
|
-
* @param {*} value The value to check.
|
|
1925
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
1926
|
-
*/
|
|
1927
|
-
function baseIsRegExp(value) {
|
|
1928
|
-
return isObjectLike(value) && baseGetTag(value) == regexpTag;
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
module.exports = baseIsRegExp;
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
1807
|
/***/ }),
|
|
1935
1808
|
|
|
1936
1809
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js":
|
|
@@ -2478,35 +2351,6 @@ function baseToString(value) {
|
|
|
2478
2351
|
module.exports = baseToString;
|
|
2479
2352
|
|
|
2480
2353
|
|
|
2481
|
-
/***/ }),
|
|
2482
|
-
|
|
2483
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js":
|
|
2484
|
-
/*!***********************************************************************************!*\
|
|
2485
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js ***!
|
|
2486
|
-
\***********************************************************************************/
|
|
2487
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2488
|
-
|
|
2489
|
-
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js");
|
|
2490
|
-
|
|
2491
|
-
/** Used to match leading whitespace. */
|
|
2492
|
-
var reTrimStart = /^\s+/;
|
|
2493
|
-
|
|
2494
|
-
/**
|
|
2495
|
-
* The base implementation of `_.trim`.
|
|
2496
|
-
*
|
|
2497
|
-
* @private
|
|
2498
|
-
* @param {string} string The string to trim.
|
|
2499
|
-
* @returns {string} Returns the trimmed string.
|
|
2500
|
-
*/
|
|
2501
|
-
function baseTrim(string) {
|
|
2502
|
-
return string
|
|
2503
|
-
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2504
|
-
: string;
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
module.exports = baseTrim;
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
2354
|
/***/ }),
|
|
2511
2355
|
|
|
2512
2356
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
|
|
@@ -2809,41 +2653,6 @@ function createAggregator(setter, initializer) {
|
|
|
2809
2653
|
module.exports = createAggregator;
|
|
2810
2654
|
|
|
2811
2655
|
|
|
2812
|
-
/***/ }),
|
|
2813
|
-
|
|
2814
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js":
|
|
2815
|
-
/*!*************************************************************************************!*\
|
|
2816
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js ***!
|
|
2817
|
-
\*************************************************************************************/
|
|
2818
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2819
|
-
|
|
2820
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
2821
|
-
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
2822
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
2823
|
-
|
|
2824
|
-
/**
|
|
2825
|
-
* Creates a `_.find` or `_.findLast` function.
|
|
2826
|
-
*
|
|
2827
|
-
* @private
|
|
2828
|
-
* @param {Function} findIndexFunc The function to find the collection index.
|
|
2829
|
-
* @returns {Function} Returns the new find function.
|
|
2830
|
-
*/
|
|
2831
|
-
function createFind(findIndexFunc) {
|
|
2832
|
-
return function(collection, predicate, fromIndex) {
|
|
2833
|
-
var iterable = Object(collection);
|
|
2834
|
-
if (!isArrayLike(collection)) {
|
|
2835
|
-
var iteratee = baseIteratee(predicate, 3);
|
|
2836
|
-
collection = keys(collection);
|
|
2837
|
-
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
|
2838
|
-
}
|
|
2839
|
-
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2840
|
-
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
2841
|
-
};
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2844
|
-
module.exports = createFind;
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
2656
|
/***/ }),
|
|
2848
2657
|
|
|
2849
2658
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
|
|
@@ -4041,35 +3850,6 @@ function identity(value) {
|
|
|
4041
3850
|
module.exports = identity;
|
|
4042
3851
|
|
|
4043
3852
|
|
|
4044
|
-
/***/ }),
|
|
4045
|
-
|
|
4046
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js":
|
|
4047
|
-
/*!******************************************************************************************!*\
|
|
4048
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js ***!
|
|
4049
|
-
\******************************************************************************************/
|
|
4050
|
-
/***/ ((module) => {
|
|
4051
|
-
|
|
4052
|
-
/** Used to match a single whitespace character. */
|
|
4053
|
-
var reWhitespace = /\s/;
|
|
4054
|
-
|
|
4055
|
-
/**
|
|
4056
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
4057
|
-
* character of `string`.
|
|
4058
|
-
*
|
|
4059
|
-
* @private
|
|
4060
|
-
* @param {string} string The string to inspect.
|
|
4061
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
4062
|
-
*/
|
|
4063
|
-
function trimmedEndIndex(string) {
|
|
4064
|
-
var index = string.length;
|
|
4065
|
-
|
|
4066
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
4067
|
-
return index;
|
|
4068
|
-
}
|
|
4069
|
-
|
|
4070
|
-
module.exports = trimmedEndIndex;
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
3853
|
/***/ }),
|
|
4074
3854
|
|
|
4075
3855
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js":
|
|
@@ -4234,123 +4014,6 @@ function eq(value, other) {
|
|
|
4234
4014
|
module.exports = eq;
|
|
4235
4015
|
|
|
4236
4016
|
|
|
4237
|
-
/***/ }),
|
|
4238
|
-
|
|
4239
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js":
|
|
4240
|
-
/*!******************************************************************************!*\
|
|
4241
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js ***!
|
|
4242
|
-
\******************************************************************************/
|
|
4243
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4244
|
-
|
|
4245
|
-
var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js"),
|
|
4246
|
-
findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js");
|
|
4247
|
-
|
|
4248
|
-
/**
|
|
4249
|
-
* Iterates over elements of `collection`, returning the first element
|
|
4250
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
4251
|
-
* arguments: (value, index|key, collection).
|
|
4252
|
-
*
|
|
4253
|
-
* @static
|
|
4254
|
-
* @memberOf _
|
|
4255
|
-
* @since 0.1.0
|
|
4256
|
-
* @category Collection
|
|
4257
|
-
* @param {Array|Object} collection The collection to inspect.
|
|
4258
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4259
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4260
|
-
* @returns {*} Returns the matched element, else `undefined`.
|
|
4261
|
-
* @example
|
|
4262
|
-
*
|
|
4263
|
-
* var users = [
|
|
4264
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
4265
|
-
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
4266
|
-
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
4267
|
-
* ];
|
|
4268
|
-
*
|
|
4269
|
-
* _.find(users, function(o) { return o.age < 40; });
|
|
4270
|
-
* // => object for 'barney'
|
|
4271
|
-
*
|
|
4272
|
-
* // The `_.matches` iteratee shorthand.
|
|
4273
|
-
* _.find(users, { 'age': 1, 'active': true });
|
|
4274
|
-
* // => object for 'pebbles'
|
|
4275
|
-
*
|
|
4276
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4277
|
-
* _.find(users, ['active', false]);
|
|
4278
|
-
* // => object for 'fred'
|
|
4279
|
-
*
|
|
4280
|
-
* // The `_.property` iteratee shorthand.
|
|
4281
|
-
* _.find(users, 'active');
|
|
4282
|
-
* // => object for 'barney'
|
|
4283
|
-
*/
|
|
4284
|
-
var find = createFind(findIndex);
|
|
4285
|
-
|
|
4286
|
-
module.exports = find;
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
/***/ }),
|
|
4290
|
-
|
|
4291
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js":
|
|
4292
|
-
/*!***********************************************************************************!*\
|
|
4293
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js ***!
|
|
4294
|
-
\***********************************************************************************/
|
|
4295
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4296
|
-
|
|
4297
|
-
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js"),
|
|
4298
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
4299
|
-
toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js");
|
|
4300
|
-
|
|
4301
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4302
|
-
var nativeMax = Math.max;
|
|
4303
|
-
|
|
4304
|
-
/**
|
|
4305
|
-
* This method is like `_.find` except that it returns the index of the first
|
|
4306
|
-
* element `predicate` returns truthy for instead of the element itself.
|
|
4307
|
-
*
|
|
4308
|
-
* @static
|
|
4309
|
-
* @memberOf _
|
|
4310
|
-
* @since 1.1.0
|
|
4311
|
-
* @category Array
|
|
4312
|
-
* @param {Array} array The array to inspect.
|
|
4313
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4314
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4315
|
-
* @returns {number} Returns the index of the found element, else `-1`.
|
|
4316
|
-
* @example
|
|
4317
|
-
*
|
|
4318
|
-
* var users = [
|
|
4319
|
-
* { 'user': 'barney', 'active': false },
|
|
4320
|
-
* { 'user': 'fred', 'active': false },
|
|
4321
|
-
* { 'user': 'pebbles', 'active': true }
|
|
4322
|
-
* ];
|
|
4323
|
-
*
|
|
4324
|
-
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
4325
|
-
* // => 0
|
|
4326
|
-
*
|
|
4327
|
-
* // The `_.matches` iteratee shorthand.
|
|
4328
|
-
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
4329
|
-
* // => 1
|
|
4330
|
-
*
|
|
4331
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4332
|
-
* _.findIndex(users, ['active', false]);
|
|
4333
|
-
* // => 0
|
|
4334
|
-
*
|
|
4335
|
-
* // The `_.property` iteratee shorthand.
|
|
4336
|
-
* _.findIndex(users, 'active');
|
|
4337
|
-
* // => 2
|
|
4338
|
-
*/
|
|
4339
|
-
function findIndex(array, predicate, fromIndex) {
|
|
4340
|
-
var length = array == null ? 0 : array.length;
|
|
4341
|
-
if (!length) {
|
|
4342
|
-
return -1;
|
|
4343
|
-
}
|
|
4344
|
-
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4345
|
-
if (index < 0) {
|
|
4346
|
-
index = nativeMax(length + index, 0);
|
|
4347
|
-
}
|
|
4348
|
-
return baseFindIndex(array, baseIteratee(predicate, 3), index);
|
|
4349
|
-
}
|
|
4350
|
-
|
|
4351
|
-
module.exports = findIndex;
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
4017
|
/***/ }),
|
|
4355
4018
|
|
|
4356
4019
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":
|
|
@@ -5301,43 +4964,6 @@ function isPlainObject(value) {
|
|
|
5301
4964
|
module.exports = isPlainObject;
|
|
5302
4965
|
|
|
5303
4966
|
|
|
5304
|
-
/***/ }),
|
|
5305
|
-
|
|
5306
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js":
|
|
5307
|
-
/*!**********************************************************************************!*\
|
|
5308
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js ***!
|
|
5309
|
-
\**********************************************************************************/
|
|
5310
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5311
|
-
|
|
5312
|
-
var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js"),
|
|
5313
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
5314
|
-
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js");
|
|
5315
|
-
|
|
5316
|
-
/* Node.js helper references. */
|
|
5317
|
-
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
|
5318
|
-
|
|
5319
|
-
/**
|
|
5320
|
-
* Checks if `value` is classified as a `RegExp` object.
|
|
5321
|
-
*
|
|
5322
|
-
* @static
|
|
5323
|
-
* @memberOf _
|
|
5324
|
-
* @since 0.1.0
|
|
5325
|
-
* @category Lang
|
|
5326
|
-
* @param {*} value The value to check.
|
|
5327
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
5328
|
-
* @example
|
|
5329
|
-
*
|
|
5330
|
-
* _.isRegExp(/abc/);
|
|
5331
|
-
* // => true
|
|
5332
|
-
*
|
|
5333
|
-
* _.isRegExp('/abc/');
|
|
5334
|
-
* // => false
|
|
5335
|
-
*/
|
|
5336
|
-
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
5337
|
-
|
|
5338
|
-
module.exports = isRegExp;
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
4967
|
/***/ }),
|
|
5342
4968
|
|
|
5343
4969
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":
|
|
@@ -5891,261 +5517,89 @@ module.exports = sortedUniq;
|
|
|
5891
5517
|
|
|
5892
5518
|
/***/ }),
|
|
5893
5519
|
|
|
5894
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5520
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5895
5521
|
/*!**********************************************************************************!*\
|
|
5896
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5522
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5897
5523
|
\**********************************************************************************/
|
|
5898
5524
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5899
5525
|
|
|
5900
|
-
var
|
|
5901
|
-
|
|
5902
|
-
/** Used as references for various `Number` constants. */
|
|
5903
|
-
var INFINITY = 1 / 0,
|
|
5904
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
5526
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5905
5527
|
|
|
5906
5528
|
/**
|
|
5907
|
-
* Converts `value` to a
|
|
5529
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
5530
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
5908
5531
|
*
|
|
5909
5532
|
* @static
|
|
5910
5533
|
* @memberOf _
|
|
5911
|
-
* @since 4.
|
|
5534
|
+
* @since 4.0.0
|
|
5912
5535
|
* @category Lang
|
|
5913
5536
|
* @param {*} value The value to convert.
|
|
5914
|
-
* @returns {
|
|
5537
|
+
* @returns {string} Returns the converted string.
|
|
5915
5538
|
* @example
|
|
5916
5539
|
*
|
|
5917
|
-
* _.
|
|
5918
|
-
* // =>
|
|
5919
|
-
*
|
|
5920
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
5921
|
-
* // => 5e-324
|
|
5540
|
+
* _.toString(null);
|
|
5541
|
+
* // => ''
|
|
5922
5542
|
*
|
|
5923
|
-
* _.
|
|
5924
|
-
* // =>
|
|
5543
|
+
* _.toString(-0);
|
|
5544
|
+
* // => '-0'
|
|
5925
5545
|
*
|
|
5926
|
-
* _.
|
|
5927
|
-
* // => 3
|
|
5546
|
+
* _.toString([1, 2, 3]);
|
|
5547
|
+
* // => '1,2,3'
|
|
5928
5548
|
*/
|
|
5929
|
-
function
|
|
5930
|
-
|
|
5931
|
-
return value === 0 ? value : 0;
|
|
5932
|
-
}
|
|
5933
|
-
value = toNumber(value);
|
|
5934
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
5935
|
-
var sign = (value < 0 ? -1 : 1);
|
|
5936
|
-
return sign * MAX_INTEGER;
|
|
5937
|
-
}
|
|
5938
|
-
return value === value ? value : 0;
|
|
5549
|
+
function toString(value) {
|
|
5550
|
+
return value == null ? '' : baseToString(value);
|
|
5939
5551
|
}
|
|
5940
5552
|
|
|
5941
|
-
module.exports =
|
|
5553
|
+
module.exports = toString;
|
|
5942
5554
|
|
|
5943
5555
|
|
|
5944
5556
|
/***/ }),
|
|
5945
5557
|
|
|
5946
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5947
|
-
|
|
5948
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5949
|
-
|
|
5558
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5559
|
+
/*!******************************************************************************!*\
|
|
5560
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5561
|
+
\******************************************************************************/
|
|
5950
5562
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5951
5563
|
|
|
5952
|
-
var
|
|
5564
|
+
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5953
5565
|
|
|
5954
5566
|
/**
|
|
5955
|
-
*
|
|
5956
|
-
*
|
|
5957
|
-
*
|
|
5958
|
-
*
|
|
5567
|
+
* Creates a duplicate-free version of an array, using
|
|
5568
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5569
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
5570
|
+
* is kept. The order of result values is determined by the order they occur
|
|
5571
|
+
* in the array.
|
|
5959
5572
|
*
|
|
5960
5573
|
* @static
|
|
5961
5574
|
* @memberOf _
|
|
5962
|
-
* @since
|
|
5963
|
-
* @category
|
|
5964
|
-
* @param {
|
|
5965
|
-
* @returns {
|
|
5575
|
+
* @since 0.1.0
|
|
5576
|
+
* @category Array
|
|
5577
|
+
* @param {Array} array The array to inspect.
|
|
5578
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
5966
5579
|
* @example
|
|
5967
5580
|
*
|
|
5968
|
-
* _.
|
|
5969
|
-
* // =>
|
|
5970
|
-
*
|
|
5971
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
5972
|
-
* // => 0
|
|
5973
|
-
*
|
|
5974
|
-
* _.toInteger(Infinity);
|
|
5975
|
-
* // => 1.7976931348623157e+308
|
|
5976
|
-
*
|
|
5977
|
-
* _.toInteger('3.2');
|
|
5978
|
-
* // => 3
|
|
5581
|
+
* _.uniq([2, 1, 2]);
|
|
5582
|
+
* // => [2, 1]
|
|
5979
5583
|
*/
|
|
5980
|
-
function
|
|
5981
|
-
|
|
5982
|
-
remainder = result % 1;
|
|
5983
|
-
|
|
5984
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
5584
|
+
function uniq(array) {
|
|
5585
|
+
return (array && array.length) ? baseUniq(array) : [];
|
|
5985
5586
|
}
|
|
5986
5587
|
|
|
5987
|
-
module.exports =
|
|
5588
|
+
module.exports = uniq;
|
|
5988
5589
|
|
|
5989
5590
|
|
|
5990
5591
|
/***/ }),
|
|
5991
5592
|
|
|
5992
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5593
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js":
|
|
5993
5594
|
/*!**********************************************************************************!*\
|
|
5994
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5595
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js ***!
|
|
5995
5596
|
\**********************************************************************************/
|
|
5996
5597
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5997
5598
|
|
|
5998
|
-
var
|
|
5999
|
-
isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),
|
|
6000
|
-
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
5599
|
+
var toString = __webpack_require__(/*! ./toString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js");
|
|
6001
5600
|
|
|
6002
|
-
/** Used
|
|
6003
|
-
var
|
|
6004
|
-
|
|
6005
|
-
/** Used to detect bad signed hexadecimal string values. */
|
|
6006
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
6007
|
-
|
|
6008
|
-
/** Used to detect binary string values. */
|
|
6009
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
6010
|
-
|
|
6011
|
-
/** Used to detect octal string values. */
|
|
6012
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
6013
|
-
|
|
6014
|
-
/** Built-in method references without a dependency on `root`. */
|
|
6015
|
-
var freeParseInt = parseInt;
|
|
6016
|
-
|
|
6017
|
-
/**
|
|
6018
|
-
* Converts `value` to a number.
|
|
6019
|
-
*
|
|
6020
|
-
* @static
|
|
6021
|
-
* @memberOf _
|
|
6022
|
-
* @since 4.0.0
|
|
6023
|
-
* @category Lang
|
|
6024
|
-
* @param {*} value The value to process.
|
|
6025
|
-
* @returns {number} Returns the number.
|
|
6026
|
-
* @example
|
|
6027
|
-
*
|
|
6028
|
-
* _.toNumber(3.2);
|
|
6029
|
-
* // => 3.2
|
|
6030
|
-
*
|
|
6031
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
6032
|
-
* // => 5e-324
|
|
6033
|
-
*
|
|
6034
|
-
* _.toNumber(Infinity);
|
|
6035
|
-
* // => Infinity
|
|
6036
|
-
*
|
|
6037
|
-
* _.toNumber('3.2');
|
|
6038
|
-
* // => 3.2
|
|
6039
|
-
*/
|
|
6040
|
-
function toNumber(value) {
|
|
6041
|
-
if (typeof value == 'number') {
|
|
6042
|
-
return value;
|
|
6043
|
-
}
|
|
6044
|
-
if (isSymbol(value)) {
|
|
6045
|
-
return NAN;
|
|
6046
|
-
}
|
|
6047
|
-
if (isObject(value)) {
|
|
6048
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
6049
|
-
value = isObject(other) ? (other + '') : other;
|
|
6050
|
-
}
|
|
6051
|
-
if (typeof value != 'string') {
|
|
6052
|
-
return value === 0 ? value : +value;
|
|
6053
|
-
}
|
|
6054
|
-
value = baseTrim(value);
|
|
6055
|
-
var isBinary = reIsBinary.test(value);
|
|
6056
|
-
return (isBinary || reIsOctal.test(value))
|
|
6057
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
6058
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
|
-
module.exports = toNumber;
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
/***/ }),
|
|
6065
|
-
|
|
6066
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
6067
|
-
/*!**********************************************************************************!*\
|
|
6068
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
6069
|
-
\**********************************************************************************/
|
|
6070
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6071
|
-
|
|
6072
|
-
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
6073
|
-
|
|
6074
|
-
/**
|
|
6075
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
6076
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
6077
|
-
*
|
|
6078
|
-
* @static
|
|
6079
|
-
* @memberOf _
|
|
6080
|
-
* @since 4.0.0
|
|
6081
|
-
* @category Lang
|
|
6082
|
-
* @param {*} value The value to convert.
|
|
6083
|
-
* @returns {string} Returns the converted string.
|
|
6084
|
-
* @example
|
|
6085
|
-
*
|
|
6086
|
-
* _.toString(null);
|
|
6087
|
-
* // => ''
|
|
6088
|
-
*
|
|
6089
|
-
* _.toString(-0);
|
|
6090
|
-
* // => '-0'
|
|
6091
|
-
*
|
|
6092
|
-
* _.toString([1, 2, 3]);
|
|
6093
|
-
* // => '1,2,3'
|
|
6094
|
-
*/
|
|
6095
|
-
function toString(value) {
|
|
6096
|
-
return value == null ? '' : baseToString(value);
|
|
6097
|
-
}
|
|
6098
|
-
|
|
6099
|
-
module.exports = toString;
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
/***/ }),
|
|
6103
|
-
|
|
6104
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
6105
|
-
/*!******************************************************************************!*\
|
|
6106
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
6107
|
-
\******************************************************************************/
|
|
6108
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6109
|
-
|
|
6110
|
-
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
6111
|
-
|
|
6112
|
-
/**
|
|
6113
|
-
* Creates a duplicate-free version of an array, using
|
|
6114
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
6115
|
-
* for equality comparisons, in which only the first occurrence of each element
|
|
6116
|
-
* is kept. The order of result values is determined by the order they occur
|
|
6117
|
-
* in the array.
|
|
6118
|
-
*
|
|
6119
|
-
* @static
|
|
6120
|
-
* @memberOf _
|
|
6121
|
-
* @since 0.1.0
|
|
6122
|
-
* @category Array
|
|
6123
|
-
* @param {Array} array The array to inspect.
|
|
6124
|
-
* @returns {Array} Returns the new duplicate free array.
|
|
6125
|
-
* @example
|
|
6126
|
-
*
|
|
6127
|
-
* _.uniq([2, 1, 2]);
|
|
6128
|
-
* // => [2, 1]
|
|
6129
|
-
*/
|
|
6130
|
-
function uniq(array) {
|
|
6131
|
-
return (array && array.length) ? baseUniq(array) : [];
|
|
6132
|
-
}
|
|
6133
|
-
|
|
6134
|
-
module.exports = uniq;
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
/***/ }),
|
|
6138
|
-
|
|
6139
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js":
|
|
6140
|
-
/*!**********************************************************************************!*\
|
|
6141
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js ***!
|
|
6142
|
-
\**********************************************************************************/
|
|
6143
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6144
|
-
|
|
6145
|
-
var toString = __webpack_require__(/*! ./toString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js");
|
|
6146
|
-
|
|
6147
|
-
/** Used to generate unique IDs. */
|
|
6148
|
-
var idCounter = 0;
|
|
5601
|
+
/** Used to generate unique IDs. */
|
|
5602
|
+
var idCounter = 0;
|
|
6149
5603
|
|
|
6150
5604
|
/**
|
|
6151
5605
|
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
|
@@ -6195,917 +5649,22 @@ var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node
|
|
|
6195
5649
|
* @memberOf _
|
|
6196
5650
|
* @since 0.1.0
|
|
6197
5651
|
* @category Array
|
|
6198
|
-
* @param {Array} array The array to inspect.
|
|
6199
|
-
* @param {...*} [values] The values to exclude.
|
|
6200
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
6201
|
-
* @see _.difference, _.xor
|
|
6202
|
-
* @example
|
|
6203
|
-
*
|
|
6204
|
-
* _.without([2, 1, 2, 3], 1, 2);
|
|
6205
|
-
* // => [3]
|
|
6206
|
-
*/
|
|
6207
|
-
var without = baseRest(function(array, values) {
|
|
6208
|
-
return isArrayLikeObject(array)
|
|
6209
|
-
? baseDifference(array, values)
|
|
6210
|
-
: [];
|
|
6211
|
-
});
|
|
6212
|
-
|
|
6213
|
-
module.exports = without;
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
/***/ }),
|
|
6217
|
-
|
|
6218
|
-
/***/ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js":
|
|
6219
|
-
/*!*******************************************************************************************!*\
|
|
6220
|
-
!*** ../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js ***!
|
|
6221
|
-
\*******************************************************************************************/
|
|
6222
|
-
/***/ ((module) => {
|
|
6223
|
-
|
|
6224
|
-
"use strict";
|
|
6225
|
-
/*
|
|
6226
|
-
object-assign
|
|
6227
|
-
(c) Sindre Sorhus
|
|
6228
|
-
@license MIT
|
|
6229
|
-
*/
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
/* eslint-disable no-unused-vars */
|
|
6233
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6234
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6235
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6236
|
-
|
|
6237
|
-
function toObject(val) {
|
|
6238
|
-
if (val === null || val === undefined) {
|
|
6239
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
6240
|
-
}
|
|
6241
|
-
|
|
6242
|
-
return Object(val);
|
|
6243
|
-
}
|
|
6244
|
-
|
|
6245
|
-
function shouldUseNative() {
|
|
6246
|
-
try {
|
|
6247
|
-
if (!Object.assign) {
|
|
6248
|
-
return false;
|
|
6249
|
-
}
|
|
6250
|
-
|
|
6251
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
6252
|
-
|
|
6253
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
6254
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
6255
|
-
test1[5] = 'de';
|
|
6256
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
6257
|
-
return false;
|
|
6258
|
-
}
|
|
6259
|
-
|
|
6260
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
6261
|
-
var test2 = {};
|
|
6262
|
-
for (var i = 0; i < 10; i++) {
|
|
6263
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
6264
|
-
}
|
|
6265
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
6266
|
-
return test2[n];
|
|
6267
|
-
});
|
|
6268
|
-
if (order2.join('') !== '0123456789') {
|
|
6269
|
-
return false;
|
|
6270
|
-
}
|
|
6271
|
-
|
|
6272
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
6273
|
-
var test3 = {};
|
|
6274
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
6275
|
-
test3[letter] = letter;
|
|
6276
|
-
});
|
|
6277
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
6278
|
-
'abcdefghijklmnopqrst') {
|
|
6279
|
-
return false;
|
|
6280
|
-
}
|
|
6281
|
-
|
|
6282
|
-
return true;
|
|
6283
|
-
} catch (err) {
|
|
6284
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
6285
|
-
return false;
|
|
6286
|
-
}
|
|
6287
|
-
}
|
|
6288
|
-
|
|
6289
|
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
6290
|
-
var from;
|
|
6291
|
-
var to = toObject(target);
|
|
6292
|
-
var symbols;
|
|
6293
|
-
|
|
6294
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
6295
|
-
from = Object(arguments[s]);
|
|
6296
|
-
|
|
6297
|
-
for (var key in from) {
|
|
6298
|
-
if (hasOwnProperty.call(from, key)) {
|
|
6299
|
-
to[key] = from[key];
|
|
6300
|
-
}
|
|
6301
|
-
}
|
|
6302
|
-
|
|
6303
|
-
if (getOwnPropertySymbols) {
|
|
6304
|
-
symbols = getOwnPropertySymbols(from);
|
|
6305
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
6306
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
6307
|
-
to[symbols[i]] = from[symbols[i]];
|
|
6308
|
-
}
|
|
6309
|
-
}
|
|
6310
|
-
}
|
|
6311
|
-
}
|
|
6312
|
-
|
|
6313
|
-
return to;
|
|
6314
|
-
};
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
/***/ }),
|
|
6318
|
-
|
|
6319
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js":
|
|
6320
|
-
/*!***********************************************************************************************!*\
|
|
6321
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js ***!
|
|
6322
|
-
\***********************************************************************************************/
|
|
6323
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6324
|
-
|
|
6325
|
-
"use strict";
|
|
6326
|
-
/**
|
|
6327
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6328
|
-
*
|
|
6329
|
-
* This source code is licensed under the MIT license found in the
|
|
6330
|
-
* LICENSE file in the root directory of this source tree.
|
|
6331
|
-
*/
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
var printWarning = function() {};
|
|
6336
|
-
|
|
6337
|
-
if (true) {
|
|
6338
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6339
|
-
var loggedTypeFailures = {};
|
|
6340
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6341
|
-
|
|
6342
|
-
printWarning = function(text) {
|
|
6343
|
-
var message = 'Warning: ' + text;
|
|
6344
|
-
if (typeof console !== 'undefined') {
|
|
6345
|
-
console.error(message);
|
|
6346
|
-
}
|
|
6347
|
-
try {
|
|
6348
|
-
// --- Welcome to debugging React ---
|
|
6349
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6350
|
-
// to find the callsite that caused this warning to fire.
|
|
6351
|
-
throw new Error(message);
|
|
6352
|
-
} catch (x) { /**/ }
|
|
6353
|
-
};
|
|
6354
|
-
}
|
|
6355
|
-
|
|
6356
|
-
/**
|
|
6357
|
-
* Assert that the values match with the type specs.
|
|
6358
|
-
* Error messages are memorized and will only be shown once.
|
|
6359
|
-
*
|
|
6360
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
6361
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
6362
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
6363
|
-
* @param {string} componentName Name of the component for error messages.
|
|
6364
|
-
* @param {?Function} getStack Returns the component stack.
|
|
6365
|
-
* @private
|
|
6366
|
-
*/
|
|
6367
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
6368
|
-
if (true) {
|
|
6369
|
-
for (var typeSpecName in typeSpecs) {
|
|
6370
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
6371
|
-
var error;
|
|
6372
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
6373
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
6374
|
-
// After these have been cleaned up, we'll let them throw.
|
|
6375
|
-
try {
|
|
6376
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
6377
|
-
// behavior as without this statement except with a better message.
|
|
6378
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6379
|
-
var err = Error(
|
|
6380
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6381
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6382
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6383
|
-
);
|
|
6384
|
-
err.name = 'Invariant Violation';
|
|
6385
|
-
throw err;
|
|
6386
|
-
}
|
|
6387
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
6388
|
-
} catch (ex) {
|
|
6389
|
-
error = ex;
|
|
6390
|
-
}
|
|
6391
|
-
if (error && !(error instanceof Error)) {
|
|
6392
|
-
printWarning(
|
|
6393
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
6394
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
6395
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
6396
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
6397
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
6398
|
-
'shape all require an argument).'
|
|
6399
|
-
);
|
|
6400
|
-
}
|
|
6401
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
6402
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
6403
|
-
// same error.
|
|
6404
|
-
loggedTypeFailures[error.message] = true;
|
|
6405
|
-
|
|
6406
|
-
var stack = getStack ? getStack() : '';
|
|
6407
|
-
|
|
6408
|
-
printWarning(
|
|
6409
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
6410
|
-
);
|
|
6411
|
-
}
|
|
6412
|
-
}
|
|
6413
|
-
}
|
|
6414
|
-
}
|
|
6415
|
-
}
|
|
6416
|
-
|
|
6417
|
-
/**
|
|
6418
|
-
* Resets warning cache when testing.
|
|
6419
|
-
*
|
|
6420
|
-
* @private
|
|
6421
|
-
*/
|
|
6422
|
-
checkPropTypes.resetWarningCache = function() {
|
|
6423
|
-
if (true) {
|
|
6424
|
-
loggedTypeFailures = {};
|
|
6425
|
-
}
|
|
6426
|
-
}
|
|
6427
|
-
|
|
6428
|
-
module.exports = checkPropTypes;
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
/***/ }),
|
|
6432
|
-
|
|
6433
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
6434
|
-
/*!********************************************************************************************************!*\
|
|
6435
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
6436
|
-
\********************************************************************************************************/
|
|
6437
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6438
|
-
|
|
6439
|
-
"use strict";
|
|
6440
|
-
/**
|
|
6441
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6442
|
-
*
|
|
6443
|
-
* This source code is licensed under the MIT license found in the
|
|
6444
|
-
* LICENSE file in the root directory of this source tree.
|
|
6445
|
-
*/
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6450
|
-
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");
|
|
6451
|
-
|
|
6452
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6453
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6454
|
-
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js");
|
|
6455
|
-
|
|
6456
|
-
var printWarning = function() {};
|
|
6457
|
-
|
|
6458
|
-
if (true) {
|
|
6459
|
-
printWarning = function(text) {
|
|
6460
|
-
var message = 'Warning: ' + text;
|
|
6461
|
-
if (typeof console !== 'undefined') {
|
|
6462
|
-
console.error(message);
|
|
6463
|
-
}
|
|
6464
|
-
try {
|
|
6465
|
-
// --- Welcome to debugging React ---
|
|
6466
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6467
|
-
// to find the callsite that caused this warning to fire.
|
|
6468
|
-
throw new Error(message);
|
|
6469
|
-
} catch (x) {}
|
|
6470
|
-
};
|
|
6471
|
-
}
|
|
6472
|
-
|
|
6473
|
-
function emptyFunctionThatReturnsNull() {
|
|
6474
|
-
return null;
|
|
6475
|
-
}
|
|
6476
|
-
|
|
6477
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
6478
|
-
/* global Symbol */
|
|
6479
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
6480
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
6481
|
-
|
|
6482
|
-
/**
|
|
6483
|
-
* Returns the iterator method function contained on the iterable object.
|
|
6484
|
-
*
|
|
6485
|
-
* Be sure to invoke the function with the iterable as context:
|
|
6486
|
-
*
|
|
6487
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
6488
|
-
* if (iteratorFn) {
|
|
6489
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
6490
|
-
* ...
|
|
6491
|
-
* }
|
|
6492
|
-
*
|
|
6493
|
-
* @param {?object} maybeIterable
|
|
6494
|
-
* @return {?function}
|
|
6495
|
-
*/
|
|
6496
|
-
function getIteratorFn(maybeIterable) {
|
|
6497
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
6498
|
-
if (typeof iteratorFn === 'function') {
|
|
6499
|
-
return iteratorFn;
|
|
6500
|
-
}
|
|
6501
|
-
}
|
|
6502
|
-
|
|
6503
|
-
/**
|
|
6504
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
6505
|
-
* supplied to React components. Example usage:
|
|
6506
|
-
*
|
|
6507
|
-
* var Props = require('ReactPropTypes');
|
|
6508
|
-
* var MyArticle = React.createClass({
|
|
6509
|
-
* propTypes: {
|
|
6510
|
-
* // An optional string prop named "description".
|
|
6511
|
-
* description: Props.string,
|
|
6512
|
-
*
|
|
6513
|
-
* // A required enum prop named "category".
|
|
6514
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
6515
|
-
*
|
|
6516
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
6517
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
6518
|
-
* },
|
|
6519
|
-
* render: function() { ... }
|
|
6520
|
-
* });
|
|
6521
|
-
*
|
|
6522
|
-
* A more formal specification of how these methods are used:
|
|
6523
|
-
*
|
|
6524
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
6525
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
6526
|
-
*
|
|
6527
|
-
* Each and every declaration produces a function with the same signature. This
|
|
6528
|
-
* allows the creation of custom validation functions. For example:
|
|
6529
|
-
*
|
|
6530
|
-
* var MyLink = React.createClass({
|
|
6531
|
-
* propTypes: {
|
|
6532
|
-
* // An optional string or URI prop named "href".
|
|
6533
|
-
* href: function(props, propName, componentName) {
|
|
6534
|
-
* var propValue = props[propName];
|
|
6535
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
6536
|
-
* !(propValue instanceof URI)) {
|
|
6537
|
-
* return new Error(
|
|
6538
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
6539
|
-
* componentName
|
|
6540
|
-
* );
|
|
6541
|
-
* }
|
|
6542
|
-
* }
|
|
6543
|
-
* },
|
|
6544
|
-
* render: function() {...}
|
|
6545
|
-
* });
|
|
6546
|
-
*
|
|
6547
|
-
* @internal
|
|
6548
|
-
*/
|
|
6549
|
-
|
|
6550
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
6551
|
-
|
|
6552
|
-
// Important!
|
|
6553
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6554
|
-
var ReactPropTypes = {
|
|
6555
|
-
array: createPrimitiveTypeChecker('array'),
|
|
6556
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6557
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
6558
|
-
func: createPrimitiveTypeChecker('function'),
|
|
6559
|
-
number: createPrimitiveTypeChecker('number'),
|
|
6560
|
-
object: createPrimitiveTypeChecker('object'),
|
|
6561
|
-
string: createPrimitiveTypeChecker('string'),
|
|
6562
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
6563
|
-
|
|
6564
|
-
any: createAnyTypeChecker(),
|
|
6565
|
-
arrayOf: createArrayOfTypeChecker,
|
|
6566
|
-
element: createElementTypeChecker(),
|
|
6567
|
-
elementType: createElementTypeTypeChecker(),
|
|
6568
|
-
instanceOf: createInstanceTypeChecker,
|
|
6569
|
-
node: createNodeChecker(),
|
|
6570
|
-
objectOf: createObjectOfTypeChecker,
|
|
6571
|
-
oneOf: createEnumTypeChecker,
|
|
6572
|
-
oneOfType: createUnionTypeChecker,
|
|
6573
|
-
shape: createShapeTypeChecker,
|
|
6574
|
-
exact: createStrictShapeTypeChecker,
|
|
6575
|
-
};
|
|
6576
|
-
|
|
6577
|
-
/**
|
|
6578
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
6579
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
6580
|
-
*/
|
|
6581
|
-
/*eslint-disable no-self-compare*/
|
|
6582
|
-
function is(x, y) {
|
|
6583
|
-
// SameValue algorithm
|
|
6584
|
-
if (x === y) {
|
|
6585
|
-
// Steps 1-5, 7-10
|
|
6586
|
-
// Steps 6.b-6.e: +0 != -0
|
|
6587
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
6588
|
-
} else {
|
|
6589
|
-
// Step 6.a: NaN == NaN
|
|
6590
|
-
return x !== x && y !== y;
|
|
6591
|
-
}
|
|
6592
|
-
}
|
|
6593
|
-
/*eslint-enable no-self-compare*/
|
|
6594
|
-
|
|
6595
|
-
/**
|
|
6596
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
6597
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
6598
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
6599
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
6600
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
6601
|
-
*/
|
|
6602
|
-
function PropTypeError(message, data) {
|
|
6603
|
-
this.message = message;
|
|
6604
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
6605
|
-
this.stack = '';
|
|
6606
|
-
}
|
|
6607
|
-
// Make `instanceof Error` still work for returned errors.
|
|
6608
|
-
PropTypeError.prototype = Error.prototype;
|
|
6609
|
-
|
|
6610
|
-
function createChainableTypeChecker(validate) {
|
|
6611
|
-
if (true) {
|
|
6612
|
-
var manualPropTypeCallCache = {};
|
|
6613
|
-
var manualPropTypeWarningCount = 0;
|
|
6614
|
-
}
|
|
6615
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
6616
|
-
componentName = componentName || ANONYMOUS;
|
|
6617
|
-
propFullName = propFullName || propName;
|
|
6618
|
-
|
|
6619
|
-
if (secret !== ReactPropTypesSecret) {
|
|
6620
|
-
if (throwOnDirectAccess) {
|
|
6621
|
-
// New behavior only for users of `prop-types` package
|
|
6622
|
-
var err = new Error(
|
|
6623
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
6624
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
6625
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
6626
|
-
);
|
|
6627
|
-
err.name = 'Invariant Violation';
|
|
6628
|
-
throw err;
|
|
6629
|
-
} else if ( true && typeof console !== 'undefined') {
|
|
6630
|
-
// Old behavior for people using React.PropTypes
|
|
6631
|
-
var cacheKey = componentName + ':' + propName;
|
|
6632
|
-
if (
|
|
6633
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
6634
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
6635
|
-
manualPropTypeWarningCount < 3
|
|
6636
|
-
) {
|
|
6637
|
-
printWarning(
|
|
6638
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
6639
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6640
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
6641
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6642
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6643
|
-
);
|
|
6644
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
6645
|
-
manualPropTypeWarningCount++;
|
|
6646
|
-
}
|
|
6647
|
-
}
|
|
6648
|
-
}
|
|
6649
|
-
if (props[propName] == null) {
|
|
6650
|
-
if (isRequired) {
|
|
6651
|
-
if (props[propName] === null) {
|
|
6652
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
6653
|
-
}
|
|
6654
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
6655
|
-
}
|
|
6656
|
-
return null;
|
|
6657
|
-
} else {
|
|
6658
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
6659
|
-
}
|
|
6660
|
-
}
|
|
6661
|
-
|
|
6662
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
6663
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
6664
|
-
|
|
6665
|
-
return chainedCheckType;
|
|
6666
|
-
}
|
|
6667
|
-
|
|
6668
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
6669
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
6670
|
-
var propValue = props[propName];
|
|
6671
|
-
var propType = getPropType(propValue);
|
|
6672
|
-
if (propType !== expectedType) {
|
|
6673
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
6674
|
-
// check, but we can offer a more precise error message here rather than
|
|
6675
|
-
// 'of type `object`'.
|
|
6676
|
-
var preciseType = getPreciseType(propValue);
|
|
6677
|
-
|
|
6678
|
-
return new PropTypeError(
|
|
6679
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6680
|
-
{expectedType: expectedType}
|
|
6681
|
-
);
|
|
6682
|
-
}
|
|
6683
|
-
return null;
|
|
6684
|
-
}
|
|
6685
|
-
return createChainableTypeChecker(validate);
|
|
6686
|
-
}
|
|
6687
|
-
|
|
6688
|
-
function createAnyTypeChecker() {
|
|
6689
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
6690
|
-
}
|
|
6691
|
-
|
|
6692
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
6693
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6694
|
-
if (typeof typeChecker !== 'function') {
|
|
6695
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
6696
|
-
}
|
|
6697
|
-
var propValue = props[propName];
|
|
6698
|
-
if (!Array.isArray(propValue)) {
|
|
6699
|
-
var propType = getPropType(propValue);
|
|
6700
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
6701
|
-
}
|
|
6702
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
6703
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
6704
|
-
if (error instanceof Error) {
|
|
6705
|
-
return error;
|
|
6706
|
-
}
|
|
6707
|
-
}
|
|
6708
|
-
return null;
|
|
6709
|
-
}
|
|
6710
|
-
return createChainableTypeChecker(validate);
|
|
6711
|
-
}
|
|
6712
|
-
|
|
6713
|
-
function createElementTypeChecker() {
|
|
6714
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6715
|
-
var propValue = props[propName];
|
|
6716
|
-
if (!isValidElement(propValue)) {
|
|
6717
|
-
var propType = getPropType(propValue);
|
|
6718
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
6719
|
-
}
|
|
6720
|
-
return null;
|
|
6721
|
-
}
|
|
6722
|
-
return createChainableTypeChecker(validate);
|
|
6723
|
-
}
|
|
6724
|
-
|
|
6725
|
-
function createElementTypeTypeChecker() {
|
|
6726
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6727
|
-
var propValue = props[propName];
|
|
6728
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
6729
|
-
var propType = getPropType(propValue);
|
|
6730
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
6731
|
-
}
|
|
6732
|
-
return null;
|
|
6733
|
-
}
|
|
6734
|
-
return createChainableTypeChecker(validate);
|
|
6735
|
-
}
|
|
6736
|
-
|
|
6737
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
6738
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6739
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
6740
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
6741
|
-
var actualClassName = getClassName(props[propName]);
|
|
6742
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
6743
|
-
}
|
|
6744
|
-
return null;
|
|
6745
|
-
}
|
|
6746
|
-
return createChainableTypeChecker(validate);
|
|
6747
|
-
}
|
|
6748
|
-
|
|
6749
|
-
function createEnumTypeChecker(expectedValues) {
|
|
6750
|
-
if (!Array.isArray(expectedValues)) {
|
|
6751
|
-
if (true) {
|
|
6752
|
-
if (arguments.length > 1) {
|
|
6753
|
-
printWarning(
|
|
6754
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
6755
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
6756
|
-
);
|
|
6757
|
-
} else {
|
|
6758
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
6759
|
-
}
|
|
6760
|
-
}
|
|
6761
|
-
return emptyFunctionThatReturnsNull;
|
|
6762
|
-
}
|
|
6763
|
-
|
|
6764
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6765
|
-
var propValue = props[propName];
|
|
6766
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
6767
|
-
if (is(propValue, expectedValues[i])) {
|
|
6768
|
-
return null;
|
|
6769
|
-
}
|
|
6770
|
-
}
|
|
6771
|
-
|
|
6772
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
6773
|
-
var type = getPreciseType(value);
|
|
6774
|
-
if (type === 'symbol') {
|
|
6775
|
-
return String(value);
|
|
6776
|
-
}
|
|
6777
|
-
return value;
|
|
6778
|
-
});
|
|
6779
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
6780
|
-
}
|
|
6781
|
-
return createChainableTypeChecker(validate);
|
|
6782
|
-
}
|
|
6783
|
-
|
|
6784
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
6785
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6786
|
-
if (typeof typeChecker !== 'function') {
|
|
6787
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
6788
|
-
}
|
|
6789
|
-
var propValue = props[propName];
|
|
6790
|
-
var propType = getPropType(propValue);
|
|
6791
|
-
if (propType !== 'object') {
|
|
6792
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
6793
|
-
}
|
|
6794
|
-
for (var key in propValue) {
|
|
6795
|
-
if (has(propValue, key)) {
|
|
6796
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6797
|
-
if (error instanceof Error) {
|
|
6798
|
-
return error;
|
|
6799
|
-
}
|
|
6800
|
-
}
|
|
6801
|
-
}
|
|
6802
|
-
return null;
|
|
6803
|
-
}
|
|
6804
|
-
return createChainableTypeChecker(validate);
|
|
6805
|
-
}
|
|
6806
|
-
|
|
6807
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
6808
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
6809
|
-
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
6810
|
-
return emptyFunctionThatReturnsNull;
|
|
6811
|
-
}
|
|
6812
|
-
|
|
6813
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6814
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6815
|
-
if (typeof checker !== 'function') {
|
|
6816
|
-
printWarning(
|
|
6817
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
6818
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
6819
|
-
);
|
|
6820
|
-
return emptyFunctionThatReturnsNull;
|
|
6821
|
-
}
|
|
6822
|
-
}
|
|
6823
|
-
|
|
6824
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6825
|
-
var expectedTypes = [];
|
|
6826
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6827
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6828
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6829
|
-
if (checkerResult == null) {
|
|
6830
|
-
return null;
|
|
6831
|
-
}
|
|
6832
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6833
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
6834
|
-
}
|
|
6835
|
-
}
|
|
6836
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6837
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6838
|
-
}
|
|
6839
|
-
return createChainableTypeChecker(validate);
|
|
6840
|
-
}
|
|
6841
|
-
|
|
6842
|
-
function createNodeChecker() {
|
|
6843
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6844
|
-
if (!isNode(props[propName])) {
|
|
6845
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
6846
|
-
}
|
|
6847
|
-
return null;
|
|
6848
|
-
}
|
|
6849
|
-
return createChainableTypeChecker(validate);
|
|
6850
|
-
}
|
|
6851
|
-
|
|
6852
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6853
|
-
return new PropTypeError(
|
|
6854
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6855
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6856
|
-
);
|
|
6857
|
-
}
|
|
6858
|
-
|
|
6859
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
6860
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6861
|
-
var propValue = props[propName];
|
|
6862
|
-
var propType = getPropType(propValue);
|
|
6863
|
-
if (propType !== 'object') {
|
|
6864
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6865
|
-
}
|
|
6866
|
-
for (var key in shapeTypes) {
|
|
6867
|
-
var checker = shapeTypes[key];
|
|
6868
|
-
if (typeof checker !== 'function') {
|
|
6869
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6870
|
-
}
|
|
6871
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6872
|
-
if (error) {
|
|
6873
|
-
return error;
|
|
6874
|
-
}
|
|
6875
|
-
}
|
|
6876
|
-
return null;
|
|
6877
|
-
}
|
|
6878
|
-
return createChainableTypeChecker(validate);
|
|
6879
|
-
}
|
|
6880
|
-
|
|
6881
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
6882
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6883
|
-
var propValue = props[propName];
|
|
6884
|
-
var propType = getPropType(propValue);
|
|
6885
|
-
if (propType !== 'object') {
|
|
6886
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6887
|
-
}
|
|
6888
|
-
// We need to check all keys in case some are required but missing from props.
|
|
6889
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6890
|
-
for (var key in allKeys) {
|
|
6891
|
-
var checker = shapeTypes[key];
|
|
6892
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6893
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6894
|
-
}
|
|
6895
|
-
if (!checker) {
|
|
6896
|
-
return new PropTypeError(
|
|
6897
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6898
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6899
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6900
|
-
);
|
|
6901
|
-
}
|
|
6902
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6903
|
-
if (error) {
|
|
6904
|
-
return error;
|
|
6905
|
-
}
|
|
6906
|
-
}
|
|
6907
|
-
return null;
|
|
6908
|
-
}
|
|
6909
|
-
|
|
6910
|
-
return createChainableTypeChecker(validate);
|
|
6911
|
-
}
|
|
6912
|
-
|
|
6913
|
-
function isNode(propValue) {
|
|
6914
|
-
switch (typeof propValue) {
|
|
6915
|
-
case 'number':
|
|
6916
|
-
case 'string':
|
|
6917
|
-
case 'undefined':
|
|
6918
|
-
return true;
|
|
6919
|
-
case 'boolean':
|
|
6920
|
-
return !propValue;
|
|
6921
|
-
case 'object':
|
|
6922
|
-
if (Array.isArray(propValue)) {
|
|
6923
|
-
return propValue.every(isNode);
|
|
6924
|
-
}
|
|
6925
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
6926
|
-
return true;
|
|
6927
|
-
}
|
|
6928
|
-
|
|
6929
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
6930
|
-
if (iteratorFn) {
|
|
6931
|
-
var iterator = iteratorFn.call(propValue);
|
|
6932
|
-
var step;
|
|
6933
|
-
if (iteratorFn !== propValue.entries) {
|
|
6934
|
-
while (!(step = iterator.next()).done) {
|
|
6935
|
-
if (!isNode(step.value)) {
|
|
6936
|
-
return false;
|
|
6937
|
-
}
|
|
6938
|
-
}
|
|
6939
|
-
} else {
|
|
6940
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
6941
|
-
while (!(step = iterator.next()).done) {
|
|
6942
|
-
var entry = step.value;
|
|
6943
|
-
if (entry) {
|
|
6944
|
-
if (!isNode(entry[1])) {
|
|
6945
|
-
return false;
|
|
6946
|
-
}
|
|
6947
|
-
}
|
|
6948
|
-
}
|
|
6949
|
-
}
|
|
6950
|
-
} else {
|
|
6951
|
-
return false;
|
|
6952
|
-
}
|
|
6953
|
-
|
|
6954
|
-
return true;
|
|
6955
|
-
default:
|
|
6956
|
-
return false;
|
|
6957
|
-
}
|
|
6958
|
-
}
|
|
6959
|
-
|
|
6960
|
-
function isSymbol(propType, propValue) {
|
|
6961
|
-
// Native Symbol.
|
|
6962
|
-
if (propType === 'symbol') {
|
|
6963
|
-
return true;
|
|
6964
|
-
}
|
|
6965
|
-
|
|
6966
|
-
// falsy value can't be a Symbol
|
|
6967
|
-
if (!propValue) {
|
|
6968
|
-
return false;
|
|
6969
|
-
}
|
|
6970
|
-
|
|
6971
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
6972
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
6973
|
-
return true;
|
|
6974
|
-
}
|
|
6975
|
-
|
|
6976
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
6977
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
6978
|
-
return true;
|
|
6979
|
-
}
|
|
6980
|
-
|
|
6981
|
-
return false;
|
|
6982
|
-
}
|
|
6983
|
-
|
|
6984
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
6985
|
-
function getPropType(propValue) {
|
|
6986
|
-
var propType = typeof propValue;
|
|
6987
|
-
if (Array.isArray(propValue)) {
|
|
6988
|
-
return 'array';
|
|
6989
|
-
}
|
|
6990
|
-
if (propValue instanceof RegExp) {
|
|
6991
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
6992
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
6993
|
-
// passes PropTypes.object.
|
|
6994
|
-
return 'object';
|
|
6995
|
-
}
|
|
6996
|
-
if (isSymbol(propType, propValue)) {
|
|
6997
|
-
return 'symbol';
|
|
6998
|
-
}
|
|
6999
|
-
return propType;
|
|
7000
|
-
}
|
|
7001
|
-
|
|
7002
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
7003
|
-
// See `createPrimitiveTypeChecker`.
|
|
7004
|
-
function getPreciseType(propValue) {
|
|
7005
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
7006
|
-
return '' + propValue;
|
|
7007
|
-
}
|
|
7008
|
-
var propType = getPropType(propValue);
|
|
7009
|
-
if (propType === 'object') {
|
|
7010
|
-
if (propValue instanceof Date) {
|
|
7011
|
-
return 'date';
|
|
7012
|
-
} else if (propValue instanceof RegExp) {
|
|
7013
|
-
return 'regexp';
|
|
7014
|
-
}
|
|
7015
|
-
}
|
|
7016
|
-
return propType;
|
|
7017
|
-
}
|
|
7018
|
-
|
|
7019
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
7020
|
-
// For example, "undefined" or "of type array"
|
|
7021
|
-
function getPostfixForTypeWarning(value) {
|
|
7022
|
-
var type = getPreciseType(value);
|
|
7023
|
-
switch (type) {
|
|
7024
|
-
case 'array':
|
|
7025
|
-
case 'object':
|
|
7026
|
-
return 'an ' + type;
|
|
7027
|
-
case 'boolean':
|
|
7028
|
-
case 'date':
|
|
7029
|
-
case 'regexp':
|
|
7030
|
-
return 'a ' + type;
|
|
7031
|
-
default:
|
|
7032
|
-
return type;
|
|
7033
|
-
}
|
|
7034
|
-
}
|
|
7035
|
-
|
|
7036
|
-
// Returns class name of the object, if any.
|
|
7037
|
-
function getClassName(propValue) {
|
|
7038
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
7039
|
-
return ANONYMOUS;
|
|
7040
|
-
}
|
|
7041
|
-
return propValue.constructor.name;
|
|
7042
|
-
}
|
|
7043
|
-
|
|
7044
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
7045
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
7046
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
7047
|
-
|
|
7048
|
-
return ReactPropTypes;
|
|
7049
|
-
};
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
/***/ }),
|
|
7053
|
-
|
|
7054
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":
|
|
7055
|
-
/*!**************************************************************************************!*\
|
|
7056
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js ***!
|
|
7057
|
-
\**************************************************************************************/
|
|
7058
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7059
|
-
|
|
7060
|
-
/**
|
|
7061
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7062
|
-
*
|
|
7063
|
-
* This source code is licensed under the MIT license found in the
|
|
7064
|
-
* LICENSE file in the root directory of this source tree.
|
|
7065
|
-
*/
|
|
7066
|
-
|
|
7067
|
-
if (true) {
|
|
7068
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
7069
|
-
|
|
7070
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7071
|
-
// http://fb.me/prop-types-in-prod
|
|
7072
|
-
var throwOnDirectAccess = true;
|
|
7073
|
-
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
7074
|
-
} else {}
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
/***/ }),
|
|
7078
|
-
|
|
7079
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
7080
|
-
/*!*********************************************************************************************************!*\
|
|
7081
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
7082
|
-
\*********************************************************************************************************/
|
|
7083
|
-
/***/ ((module) => {
|
|
7084
|
-
|
|
7085
|
-
"use strict";
|
|
7086
|
-
/**
|
|
7087
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5652
|
+
* @param {Array} array The array to inspect.
|
|
5653
|
+
* @param {...*} [values] The values to exclude.
|
|
5654
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
5655
|
+
* @see _.difference, _.xor
|
|
5656
|
+
* @example
|
|
7088
5657
|
*
|
|
7089
|
-
*
|
|
7090
|
-
*
|
|
5658
|
+
* _.without([2, 1, 2, 3], 1, 2);
|
|
5659
|
+
* // => [3]
|
|
7091
5660
|
*/
|
|
5661
|
+
var without = baseRest(function(array, values) {
|
|
5662
|
+
return isArrayLikeObject(array)
|
|
5663
|
+
? baseDifference(array, values)
|
|
5664
|
+
: [];
|
|
5665
|
+
});
|
|
7092
5666
|
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
7096
|
-
|
|
7097
|
-
module.exports = ReactPropTypesSecret;
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
/***/ }),
|
|
7101
|
-
|
|
7102
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js":
|
|
7103
|
-
/*!****************************************************************************************!*\
|
|
7104
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js ***!
|
|
7105
|
-
\****************************************************************************************/
|
|
7106
|
-
/***/ ((module) => {
|
|
7107
|
-
|
|
7108
|
-
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5667
|
+
module.exports = without;
|
|
7109
5668
|
|
|
7110
5669
|
|
|
7111
5670
|
/***/ }),
|
|
@@ -7252,214 +5811,6 @@ module.exports = function isEqual(a, b) {
|
|
|
7252
5811
|
};
|
|
7253
5812
|
|
|
7254
5813
|
|
|
7255
|
-
/***/ }),
|
|
7256
|
-
|
|
7257
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js":
|
|
7258
|
-
/*!******************************************************************************************************!*\
|
|
7259
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7260
|
-
\******************************************************************************************************/
|
|
7261
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7262
|
-
|
|
7263
|
-
"use strict";
|
|
7264
|
-
/** @license React v16.13.1
|
|
7265
|
-
* react-is.development.js
|
|
7266
|
-
*
|
|
7267
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7268
|
-
*
|
|
7269
|
-
* This source code is licensed under the MIT license found in the
|
|
7270
|
-
* LICENSE file in the root directory of this source tree.
|
|
7271
|
-
*/
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
if (true) {
|
|
7278
|
-
(function() {
|
|
7279
|
-
'use strict';
|
|
7280
|
-
|
|
7281
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
7282
|
-
// nor polyfill, then a plain number is used for performance.
|
|
7283
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
7284
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
7285
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
7286
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
7287
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
7288
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
7289
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
7290
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
7291
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
7292
|
-
|
|
7293
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
7294
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
7295
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
7296
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
7297
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
7298
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
7299
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
7300
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
7301
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
7302
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
7303
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
7304
|
-
|
|
7305
|
-
function isValidElementType(type) {
|
|
7306
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7307
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
7308
|
-
}
|
|
7309
|
-
|
|
7310
|
-
function typeOf(object) {
|
|
7311
|
-
if (typeof object === 'object' && object !== null) {
|
|
7312
|
-
var $$typeof = object.$$typeof;
|
|
7313
|
-
|
|
7314
|
-
switch ($$typeof) {
|
|
7315
|
-
case REACT_ELEMENT_TYPE:
|
|
7316
|
-
var type = object.type;
|
|
7317
|
-
|
|
7318
|
-
switch (type) {
|
|
7319
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
7320
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
7321
|
-
case REACT_FRAGMENT_TYPE:
|
|
7322
|
-
case REACT_PROFILER_TYPE:
|
|
7323
|
-
case REACT_STRICT_MODE_TYPE:
|
|
7324
|
-
case REACT_SUSPENSE_TYPE:
|
|
7325
|
-
return type;
|
|
7326
|
-
|
|
7327
|
-
default:
|
|
7328
|
-
var $$typeofType = type && type.$$typeof;
|
|
7329
|
-
|
|
7330
|
-
switch ($$typeofType) {
|
|
7331
|
-
case REACT_CONTEXT_TYPE:
|
|
7332
|
-
case REACT_FORWARD_REF_TYPE:
|
|
7333
|
-
case REACT_LAZY_TYPE:
|
|
7334
|
-
case REACT_MEMO_TYPE:
|
|
7335
|
-
case REACT_PROVIDER_TYPE:
|
|
7336
|
-
return $$typeofType;
|
|
7337
|
-
|
|
7338
|
-
default:
|
|
7339
|
-
return $$typeof;
|
|
7340
|
-
}
|
|
7341
|
-
|
|
7342
|
-
}
|
|
7343
|
-
|
|
7344
|
-
case REACT_PORTAL_TYPE:
|
|
7345
|
-
return $$typeof;
|
|
7346
|
-
}
|
|
7347
|
-
}
|
|
7348
|
-
|
|
7349
|
-
return undefined;
|
|
7350
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
7351
|
-
|
|
7352
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
7353
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
7354
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
7355
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
7356
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
7357
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
7358
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
7359
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
7360
|
-
var Memo = REACT_MEMO_TYPE;
|
|
7361
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
7362
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
7363
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
7364
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
7365
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
7366
|
-
|
|
7367
|
-
function isAsyncMode(object) {
|
|
7368
|
-
{
|
|
7369
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
7370
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
7371
|
-
|
|
7372
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
7373
|
-
}
|
|
7374
|
-
}
|
|
7375
|
-
|
|
7376
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
7377
|
-
}
|
|
7378
|
-
function isConcurrentMode(object) {
|
|
7379
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
7380
|
-
}
|
|
7381
|
-
function isContextConsumer(object) {
|
|
7382
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
7383
|
-
}
|
|
7384
|
-
function isContextProvider(object) {
|
|
7385
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
7386
|
-
}
|
|
7387
|
-
function isElement(object) {
|
|
7388
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
7389
|
-
}
|
|
7390
|
-
function isForwardRef(object) {
|
|
7391
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
7392
|
-
}
|
|
7393
|
-
function isFragment(object) {
|
|
7394
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7395
|
-
}
|
|
7396
|
-
function isLazy(object) {
|
|
7397
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7398
|
-
}
|
|
7399
|
-
function isMemo(object) {
|
|
7400
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7401
|
-
}
|
|
7402
|
-
function isPortal(object) {
|
|
7403
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7404
|
-
}
|
|
7405
|
-
function isProfiler(object) {
|
|
7406
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7407
|
-
}
|
|
7408
|
-
function isStrictMode(object) {
|
|
7409
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7410
|
-
}
|
|
7411
|
-
function isSuspense(object) {
|
|
7412
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7413
|
-
}
|
|
7414
|
-
|
|
7415
|
-
exports.AsyncMode = AsyncMode;
|
|
7416
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
7417
|
-
exports.ContextConsumer = ContextConsumer;
|
|
7418
|
-
exports.ContextProvider = ContextProvider;
|
|
7419
|
-
exports.Element = Element;
|
|
7420
|
-
exports.ForwardRef = ForwardRef;
|
|
7421
|
-
exports.Fragment = Fragment;
|
|
7422
|
-
exports.Lazy = Lazy;
|
|
7423
|
-
exports.Memo = Memo;
|
|
7424
|
-
exports.Portal = Portal;
|
|
7425
|
-
exports.Profiler = Profiler;
|
|
7426
|
-
exports.StrictMode = StrictMode;
|
|
7427
|
-
exports.Suspense = Suspense;
|
|
7428
|
-
exports.isAsyncMode = isAsyncMode;
|
|
7429
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
7430
|
-
exports.isContextConsumer = isContextConsumer;
|
|
7431
|
-
exports.isContextProvider = isContextProvider;
|
|
7432
|
-
exports.isElement = isElement;
|
|
7433
|
-
exports.isForwardRef = isForwardRef;
|
|
7434
|
-
exports.isFragment = isFragment;
|
|
7435
|
-
exports.isLazy = isLazy;
|
|
7436
|
-
exports.isMemo = isMemo;
|
|
7437
|
-
exports.isPortal = isPortal;
|
|
7438
|
-
exports.isProfiler = isProfiler;
|
|
7439
|
-
exports.isStrictMode = isStrictMode;
|
|
7440
|
-
exports.isSuspense = isSuspense;
|
|
7441
|
-
exports.isValidElementType = isValidElementType;
|
|
7442
|
-
exports.typeOf = typeOf;
|
|
7443
|
-
})();
|
|
7444
|
-
}
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
/***/ }),
|
|
7448
|
-
|
|
7449
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js":
|
|
7450
|
-
/*!***********************************************************************************!*\
|
|
7451
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js ***!
|
|
7452
|
-
\***********************************************************************************/
|
|
7453
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7454
|
-
|
|
7455
|
-
"use strict";
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
if (false) {} else {
|
|
7459
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js");
|
|
7460
|
-
}
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
5814
|
/***/ }),
|
|
7464
5815
|
|
|
7465
5816
|
/***/ "../../victory-core/es/victory-animation/util.js":
|
|
@@ -7714,11 +6065,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7714
6065
|
/* harmony export */ });
|
|
7715
6066
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7716
6067
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7717
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
7718
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7719
6068
|
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7720
6069
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7721
|
-
/* harmony import */ var
|
|
6070
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7722
6071
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
7723
6072
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
|
|
7724
6073
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -7759,7 +6108,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
7759
6108
|
|
|
7760
6109
|
|
|
7761
6110
|
|
|
7762
|
-
|
|
7763
6111
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7764
6112
|
_inherits(VictoryAnimation, _React$Component);
|
|
7765
6113
|
|
|
@@ -7945,21 +6293,13 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7945
6293
|
return VictoryAnimation;
|
|
7946
6294
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
7947
6295
|
VictoryAnimation.displayName = "VictoryAnimation";
|
|
7948
|
-
VictoryAnimation.propTypes = {
|
|
7949
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
7950
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
|
|
7951
|
-
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7952
|
-
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7953
|
-
easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
7954
|
-
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
7955
|
-
};
|
|
7956
6296
|
VictoryAnimation.defaultProps = {
|
|
7957
6297
|
data: {},
|
|
7958
6298
|
delay: 0,
|
|
7959
6299
|
duration: 1000,
|
|
7960
6300
|
easing: "quadInOut"
|
|
7961
6301
|
};
|
|
7962
|
-
VictoryAnimation.contextType =
|
|
6302
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
7963
6303
|
|
|
7964
6304
|
/***/ }),
|
|
7965
6305
|
|
|
@@ -7984,12 +6324,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7984
6324
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
7985
6325
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
7986
6326
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
7987
|
-
/* harmony import */ var
|
|
7988
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
7989
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7990
|
-
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
6327
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7991
6328
|
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
7992
|
-
/* harmony import */ var
|
|
6329
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7993
6330
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7994
6331
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
7995
6332
|
|
|
@@ -8031,8 +6368,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
8031
6368
|
|
|
8032
6369
|
|
|
8033
6370
|
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
6371
|
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
8037
6372
|
_inherits(VictoryContainer, _React$Component);
|
|
8038
6373
|
|
|
@@ -8225,44 +6560,14 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8225
6560
|
}((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
|
|
8226
6561
|
VictoryContainer.displayName = "VictoryContainer";
|
|
8227
6562
|
VictoryContainer.role = "container";
|
|
8228
|
-
VictoryContainer.propTypes = {
|
|
8229
|
-
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8230
|
-
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8231
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
|
|
8232
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8233
|
-
containerId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
8234
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
8235
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8236
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
8237
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
8238
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8239
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
8240
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
8241
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
8242
|
-
}),
|
|
8243
|
-
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
8244
|
-
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
8245
|
-
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8246
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
8247
|
-
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
8248
|
-
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
|
|
8249
|
-
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8250
|
-
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
8251
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8252
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
8253
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
8254
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
8255
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
8256
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
8257
|
-
};
|
|
8258
6563
|
VictoryContainer.defaultProps = {
|
|
8259
6564
|
className: "VictoryContainer",
|
|
8260
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(
|
|
6565
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__.Portal, null),
|
|
8261
6566
|
portalZIndex: 99,
|
|
8262
6567
|
responsive: true,
|
|
8263
6568
|
role: "img"
|
|
8264
6569
|
};
|
|
8265
|
-
VictoryContainer.contextType =
|
|
6570
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
8266
6571
|
|
|
8267
6572
|
/***/ }),
|
|
8268
6573
|
|
|
@@ -8281,8 +6586,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8281
6586
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
8282
6587
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
8283
6588
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
8284
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
8285
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
8286
6589
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
8287
6590
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
8288
6591
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
@@ -8292,7 +6595,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8292
6595
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8293
6596
|
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
8294
6597
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8295
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
8296
6598
|
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
8297
6599
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
8298
6600
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
@@ -8328,8 +6630,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8328
6630
|
|
|
8329
6631
|
|
|
8330
6632
|
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
6633
|
var defaultStyles = {
|
|
8334
6634
|
fill: "#252525",
|
|
8335
6635
|
fontSize: 14,
|
|
@@ -8848,55 +7148,6 @@ var VictoryLabel = function (initialProps) {
|
|
|
8848
7148
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8849
7149
|
VictoryLabel.role = "label";
|
|
8850
7150
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8851
|
-
VictoryLabel.propTypes = {
|
|
8852
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8853
|
-
angle: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8854
|
-
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8855
|
-
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8856
|
-
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
8857
|
-
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
8858
|
-
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8859
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
8860
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
|
|
8861
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
|
|
8862
|
-
// @ts-expect-error "Function is not assignable to string"
|
|
8863
|
-
desc: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8864
|
-
direction: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8865
|
-
dx: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8866
|
-
dy: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8867
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
8868
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8869
|
-
id: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8870
|
-
index: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]),
|
|
8871
|
-
inline: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8872
|
-
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8873
|
-
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
8874
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
8875
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired,
|
|
8876
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired
|
|
8877
|
-
}),
|
|
8878
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8879
|
-
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8880
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
8881
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale,
|
|
8882
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale
|
|
8883
|
-
}),
|
|
8884
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
8885
|
-
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8886
|
-
text: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
8887
|
-
// @ts-expect-error Function is not assignable to string"
|
|
8888
|
-
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8889
|
-
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8890
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
8891
|
-
transform: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8892
|
-
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8893
|
-
// @ts-expect-error Function is not assignable to string"
|
|
8894
|
-
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
8895
|
-
// @ts-expect-error Number is not assignable to string
|
|
8896
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]),
|
|
8897
|
-
// @ts-expect-error Number is not assignable to string
|
|
8898
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)])
|
|
8899
|
-
};
|
|
8900
7151
|
|
|
8901
7152
|
/***/ }),
|
|
8902
7153
|
|
|
@@ -8939,9 +7190,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8939
7190
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
8940
7191
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8941
7192
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8942
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
8943
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
8944
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
8945
7193
|
|
|
8946
7194
|
|
|
8947
7195
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8965,8 +7213,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8965
7213
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8966
7214
|
|
|
8967
7215
|
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
7216
|
var Portal = /*#__PURE__*/function (_ref) {
|
|
8971
7217
|
_inherits(Portal, _ref);
|
|
8972
7218
|
|
|
@@ -9025,13 +7271,6 @@ var Portal = /*#__PURE__*/function (_ref) {
|
|
|
9025
7271
|
return Portal;
|
|
9026
7272
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9027
7273
|
Portal.displayName = "Portal";
|
|
9028
|
-
Portal.propTypes = {
|
|
9029
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9030
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
9031
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
9032
|
-
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9033
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
9034
|
-
};
|
|
9035
7274
|
|
|
9036
7275
|
/***/ }),
|
|
9037
7276
|
|
|
@@ -9050,11 +7289,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9050
7289
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9051
7290
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9052
7291
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9053
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9054
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9055
7292
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9056
7293
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9057
|
-
/* harmony import */ var
|
|
7294
|
+
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9058
7295
|
|
|
9059
7296
|
|
|
9060
7297
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -9081,7 +7318,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9081
7318
|
|
|
9082
7319
|
|
|
9083
7320
|
|
|
9084
|
-
|
|
9085
7321
|
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
9086
7322
|
_inherits(VictoryPortal, _React$Component);
|
|
9087
7323
|
|
|
@@ -9167,14 +7403,10 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9167
7403
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9168
7404
|
VictoryPortal.displayName = "VictoryPortal";
|
|
9169
7405
|
VictoryPortal.role = "portal";
|
|
9170
|
-
VictoryPortal.propTypes = {
|
|
9171
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
9172
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
9173
|
-
};
|
|
9174
7406
|
VictoryPortal.defaultProps = {
|
|
9175
7407
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
9176
7408
|
};
|
|
9177
|
-
VictoryPortal.contextType =
|
|
7409
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_4__.PortalContext;
|
|
9178
7410
|
|
|
9179
7411
|
/***/ }),
|
|
9180
7412
|
|
|
@@ -9191,10 +7423,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9191
7423
|
/* harmony export */ });
|
|
9192
7424
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9193
7425
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9194
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9195
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9196
7426
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9197
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
9198
7427
|
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
9199
7428
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9200
7429
|
|
|
@@ -9206,8 +7435,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9206
7435
|
|
|
9207
7436
|
|
|
9208
7437
|
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
7438
|
var evaluateProps = function (props) {
|
|
9212
7439
|
/**
|
|
9213
7440
|
* Potential evaluated props are:
|
|
@@ -9256,13 +7483,6 @@ var Border = function (initialProps) {
|
|
|
9256
7483
|
clipPath: props.clipPath
|
|
9257
7484
|
}));
|
|
9258
7485
|
};
|
|
9259
|
-
Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9260
|
-
height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9261
|
-
rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9262
|
-
width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9263
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9264
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9265
|
-
});
|
|
9266
7486
|
|
|
9267
7487
|
/***/ }),
|
|
9268
7488
|
|
|
@@ -9279,10 +7499,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9279
7499
|
/* harmony export */ });
|
|
9280
7500
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9281
7501
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9282
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9283
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9284
7502
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9285
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
9286
7503
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
9287
7504
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9288
7505
|
|
|
@@ -9294,8 +7511,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9294
7511
|
|
|
9295
7512
|
|
|
9296
7513
|
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
7514
|
var evaluateProps = function (props) {
|
|
9300
7515
|
/**
|
|
9301
7516
|
* Potential evaluated props are:
|
|
@@ -9344,14 +7559,6 @@ var LineSegment = function (initialProps) {
|
|
|
9344
7559
|
clipPath: props.clipPath
|
|
9345
7560
|
}));
|
|
9346
7561
|
};
|
|
9347
|
-
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9348
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
9349
|
-
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9350
|
-
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9351
|
-
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9352
|
-
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9353
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9354
|
-
});
|
|
9355
7562
|
|
|
9356
7563
|
/***/ }),
|
|
9357
7564
|
|
|
@@ -9584,10 +7791,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9584
7791
|
/* harmony export */ });
|
|
9585
7792
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9586
7793
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9587
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9588
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9589
7794
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9590
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
9591
7795
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
9592
7796
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9593
7797
|
|
|
@@ -9599,8 +7803,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9599
7803
|
|
|
9600
7804
|
|
|
9601
7805
|
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
7806
|
var evaluateProps = function (props) {
|
|
9605
7807
|
/**
|
|
9606
7808
|
* Potential evaluated props are:
|
|
@@ -9666,22 +7868,6 @@ var Whisker = function (initialProps) {
|
|
|
9666
7868
|
"aria-label": ariaLabel
|
|
9667
7869
|
}, baseProps, minorWhisker))]);
|
|
9668
7870
|
};
|
|
9669
|
-
Whisker.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9670
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9671
|
-
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9672
|
-
majorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
|
|
9673
|
-
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9674
|
-
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9675
|
-
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9676
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9677
|
-
}),
|
|
9678
|
-
minorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
|
|
9679
|
-
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9680
|
-
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9681
|
-
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9682
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9683
|
-
})
|
|
9684
|
-
});
|
|
9685
7871
|
|
|
9686
7872
|
/***/ }),
|
|
9687
7873
|
|
|
@@ -10294,12 +8480,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10294
8480
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
10295
8481
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
10296
8482
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
10297
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10298
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
10299
8483
|
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
10300
8484
|
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
10301
8485
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10302
|
-
/* harmony import */ var
|
|
8486
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
10303
8487
|
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
10304
8488
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
10305
8489
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
@@ -10336,7 +8520,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10336
8520
|
|
|
10337
8521
|
|
|
10338
8522
|
|
|
10339
|
-
|
|
10340
8523
|
var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
10341
8524
|
_inherits(VictoryTransition, _React$Component);
|
|
10342
8525
|
|
|
@@ -10534,12 +8717,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10534
8717
|
return VictoryTransition;
|
|
10535
8718
|
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
10536
8719
|
VictoryTransition.displayName = "VictoryTransition";
|
|
10537
|
-
VictoryTransition.
|
|
10538
|
-
animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
|
|
10539
|
-
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
10540
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
10541
|
-
};
|
|
10542
|
-
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
8720
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
10543
8721
|
|
|
10544
8722
|
/***/ }),
|
|
10545
8723
|
|
|
@@ -11091,155 +9269,6 @@ function getMinValue(arr) {
|
|
|
11091
9269
|
|
|
11092
9270
|
/***/ }),
|
|
11093
9271
|
|
|
11094
|
-
/***/ "../../victory-core/es/victory-util/common-props.js":
|
|
11095
|
-
/*!**********************************************************!*\
|
|
11096
|
-
!*** ../../victory-core/es/victory-util/common-props.js ***!
|
|
11097
|
-
\**********************************************************/
|
|
11098
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
11099
|
-
|
|
11100
|
-
"use strict";
|
|
11101
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11102
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11103
|
-
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
11104
|
-
/* harmony export */ });
|
|
11105
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
11106
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
11107
|
-
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
var dataProps = {
|
|
11111
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11112
|
-
categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11113
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
11114
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
11115
|
-
})]),
|
|
11116
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11117
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
11118
|
-
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11119
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11120
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11121
|
-
labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
11122
|
-
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11123
|
-
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
11124
|
-
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
11125
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11126
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11127
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11128
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11129
|
-
}),
|
|
11130
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
11131
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
11132
|
-
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
|
|
11133
|
-
};
|
|
11134
|
-
var baseProps = {
|
|
11135
|
-
animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
11136
|
-
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11137
|
-
domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11138
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11139
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11140
|
-
})]),
|
|
11141
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11142
|
-
maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11143
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
11144
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
11145
|
-
})]),
|
|
11146
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11147
|
-
minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11148
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
11149
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
11150
|
-
})]),
|
|
11151
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11152
|
-
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11153
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
11154
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
|
|
11155
|
-
}), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
11156
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
11157
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11158
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
|
|
11159
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
11160
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11161
|
-
})),
|
|
11162
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11163
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11164
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11165
|
-
childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
11166
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
11167
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11168
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
11169
|
-
})),
|
|
11170
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11171
|
-
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11172
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11173
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11174
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11175
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11176
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11177
|
-
}),
|
|
11178
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11179
|
-
padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11180
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11181
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11182
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11183
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11184
|
-
})]),
|
|
11185
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11186
|
-
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11187
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
11188
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
11189
|
-
})]),
|
|
11190
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11191
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
11192
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
11193
|
-
})]),
|
|
11194
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11195
|
-
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11196
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
11197
|
-
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
11198
|
-
}),
|
|
11199
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11200
|
-
singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11201
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
11202
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
11203
|
-
})]),
|
|
11204
|
-
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11205
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11206
|
-
width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
|
|
11207
|
-
};
|
|
11208
|
-
var primitiveProps = {
|
|
11209
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11210
|
-
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
11211
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11212
|
-
clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11213
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
11214
|
-
desc: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
11215
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11216
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11217
|
-
id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
11218
|
-
index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
11219
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11220
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11221
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11222
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11223
|
-
}),
|
|
11224
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11225
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11226
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11227
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
11228
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
11229
|
-
})]),
|
|
11230
|
-
shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11231
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11232
|
-
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
11233
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
11234
|
-
};
|
|
11235
|
-
var CommonProps = {
|
|
11236
|
-
dataProps: dataProps,
|
|
11237
|
-
baseProps: baseProps,
|
|
11238
|
-
primitiveProps: primitiveProps
|
|
11239
|
-
};
|
|
11240
|
-
|
|
11241
|
-
/***/ }),
|
|
11242
|
-
|
|
11243
9272
|
/***/ "../../victory-core/es/victory-util/data.js":
|
|
11244
9273
|
/*!**************************************************!*\
|
|
11245
9274
|
!*** ../../victory-core/es/victory-util/data.js ***!
|
|
@@ -13585,278 +11614,6 @@ function warn(message) {
|
|
|
13585
11614
|
|
|
13586
11615
|
/***/ }),
|
|
13587
11616
|
|
|
13588
|
-
/***/ "../../victory-core/es/victory-util/prop-types.js":
|
|
13589
|
-
/*!********************************************************!*\
|
|
13590
|
-
!*** ../../victory-core/es/victory-util/prop-types.js ***!
|
|
13591
|
-
\********************************************************/
|
|
13592
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13593
|
-
|
|
13594
|
-
"use strict";
|
|
13595
|
-
__webpack_require__.r(__webpack_exports__);
|
|
13596
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13597
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
13598
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13599
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
13600
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13601
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
13602
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13603
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
13604
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
13605
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
13606
|
-
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
13607
|
-
/* harmony export */ });
|
|
13608
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js");
|
|
13609
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
13610
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js");
|
|
13611
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
13612
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13613
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
13614
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
13615
|
-
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
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; }
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
/**
|
|
13626
|
-
* Return a new validator based on `validator` but with the option to chain
|
|
13627
|
-
* `isRequired` onto the validation. This is nearly identical to how React
|
|
13628
|
-
* does it internally, but they don't expose their helper for us to use.
|
|
13629
|
-
* @param {Function} validator Validation function.
|
|
13630
|
-
* @returns {Function} Validator with `isRequired` option.
|
|
13631
|
-
*/
|
|
13632
|
-
var makeChainable = function (validator) {
|
|
13633
|
-
var createChainable = function (isRequired) {
|
|
13634
|
-
return function (props, propName, componentName) {
|
|
13635
|
-
var value = props[propName];
|
|
13636
|
-
|
|
13637
|
-
if (value === undefined || value === null) {
|
|
13638
|
-
if (isRequired) {
|
|
13639
|
-
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
13640
|
-
}
|
|
13641
|
-
|
|
13642
|
-
return null;
|
|
13643
|
-
}
|
|
13644
|
-
|
|
13645
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
13646
|
-
rest[_key - 3] = arguments[_key];
|
|
13647
|
-
}
|
|
13648
|
-
|
|
13649
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13650
|
-
};
|
|
13651
|
-
};
|
|
13652
|
-
|
|
13653
|
-
var chainable = Object.assign(createChainable(false), {
|
|
13654
|
-
isRequired: createChainable(true)
|
|
13655
|
-
});
|
|
13656
|
-
return chainable;
|
|
13657
|
-
};
|
|
13658
|
-
|
|
13659
|
-
var nullConstructor = function () {
|
|
13660
|
-
return null;
|
|
13661
|
-
};
|
|
13662
|
-
|
|
13663
|
-
var undefinedConstructor = function () {
|
|
13664
|
-
return undefined;
|
|
13665
|
-
};
|
|
13666
|
-
/**
|
|
13667
|
-
* Get the constructor of `value`. If `value` is null or undefined, return the
|
|
13668
|
-
* special singletons `nullConstructor` or `undefinedConstructor`, respectively.
|
|
13669
|
-
* @param {*} value Instance to return the constructor of.
|
|
13670
|
-
* @returns {Function} Constructor of `value`.
|
|
13671
|
-
*/
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
var getConstructor = function (value) {
|
|
13675
|
-
if (value === undefined) {
|
|
13676
|
-
return undefinedConstructor;
|
|
13677
|
-
} else if (value === null) {
|
|
13678
|
-
return nullConstructor;
|
|
13679
|
-
}
|
|
13680
|
-
|
|
13681
|
-
return value.constructor;
|
|
13682
|
-
};
|
|
13683
|
-
/**
|
|
13684
|
-
* Get the name of the constructor used to create `value`, using
|
|
13685
|
-
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
13686
|
-
* "null" or "undefined", respectively.
|
|
13687
|
-
* @param {*} value Instance to return the constructor name of.
|
|
13688
|
-
* @returns {String} Name of the constructor.
|
|
13689
|
-
*/
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
var getConstructorName = function (value) {
|
|
13693
|
-
if (value === undefined) {
|
|
13694
|
-
return "undefined";
|
|
13695
|
-
} else if (value === null) {
|
|
13696
|
-
return "null";
|
|
13697
|
-
}
|
|
13698
|
-
|
|
13699
|
-
return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
|
|
13700
|
-
};
|
|
13701
|
-
/**
|
|
13702
|
-
* Return a new validator based on `propType` but which logs a `console.error`
|
|
13703
|
-
* with `explanation` if used.
|
|
13704
|
-
* @param {Function} propType The old, deprecated propType.
|
|
13705
|
-
* @param {String} explanation The message to provide the user of the deprecated propType.
|
|
13706
|
-
* @returns {Function} Validator which logs usage of this propType
|
|
13707
|
-
*/
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
function deprecated(propType, explanation) {
|
|
13711
|
-
return function (props, propName, componentName) {
|
|
13712
|
-
var value = props[propName];
|
|
13713
|
-
|
|
13714
|
-
if (value !== null && value !== undefined) {
|
|
13715
|
-
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
13716
|
-
}
|
|
13717
|
-
|
|
13718
|
-
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
13719
|
-
return null;
|
|
13720
|
-
};
|
|
13721
|
-
}
|
|
13722
|
-
/**
|
|
13723
|
-
* Return a new validator which returns true
|
|
13724
|
-
* if and only if all validators passed as arguments return true.
|
|
13725
|
-
* Like React.propTypes.oneOfType, except "all" instead of "any"
|
|
13726
|
-
* @param {Array} validators Validation functions.
|
|
13727
|
-
* @returns {Function} Combined validator function
|
|
13728
|
-
*/
|
|
13729
|
-
|
|
13730
|
-
function allOfType(validators) {
|
|
13731
|
-
return makeChainable(function (props, propName, componentName) {
|
|
13732
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
13733
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
13734
|
-
}
|
|
13735
|
-
|
|
13736
|
-
return validators.reduce(function (result, validator) {
|
|
13737
|
-
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13738
|
-
}, null);
|
|
13739
|
-
});
|
|
13740
|
-
}
|
|
13741
|
-
/**
|
|
13742
|
-
* Check that the value is a non-negative number.
|
|
13743
|
-
*/
|
|
13744
|
-
|
|
13745
|
-
var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
13746
|
-
var value = props[propName];
|
|
13747
|
-
|
|
13748
|
-
if (typeof value !== "number" || value < 0) {
|
|
13749
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
13750
|
-
}
|
|
13751
|
-
|
|
13752
|
-
return null;
|
|
13753
|
-
});
|
|
13754
|
-
/**
|
|
13755
|
-
* Check that the value is an integer.
|
|
13756
|
-
*/
|
|
13757
|
-
|
|
13758
|
-
var integer = makeChainable(function (props, propName, componentName) {
|
|
13759
|
-
var value = props[propName];
|
|
13760
|
-
|
|
13761
|
-
if (typeof value !== "number" || value % 1 !== 0) {
|
|
13762
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
13763
|
-
}
|
|
13764
|
-
|
|
13765
|
-
return null;
|
|
13766
|
-
});
|
|
13767
|
-
/**
|
|
13768
|
-
* Check that the value is greater than zero.
|
|
13769
|
-
*/
|
|
13770
|
-
|
|
13771
|
-
var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
13772
|
-
var value = props[propName];
|
|
13773
|
-
|
|
13774
|
-
if (typeof value !== "number" || value <= 0) {
|
|
13775
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
13776
|
-
}
|
|
13777
|
-
|
|
13778
|
-
return null;
|
|
13779
|
-
});
|
|
13780
|
-
/**
|
|
13781
|
-
* Check that the value is an Array of two unique values.
|
|
13782
|
-
*/
|
|
13783
|
-
|
|
13784
|
-
var domain = makeChainable(function (props, propName, componentName) {
|
|
13785
|
-
var value = props[propName];
|
|
13786
|
-
|
|
13787
|
-
if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
|
|
13788
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
13789
|
-
}
|
|
13790
|
-
|
|
13791
|
-
return null;
|
|
13792
|
-
});
|
|
13793
|
-
/**
|
|
13794
|
-
* Check that the value looks like a d3 `scale` function.
|
|
13795
|
-
*/
|
|
13796
|
-
|
|
13797
|
-
var scale = makeChainable(function (props, propName, componentName) {
|
|
13798
|
-
var value = props[propName];
|
|
13799
|
-
|
|
13800
|
-
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
13801
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
13802
|
-
}
|
|
13803
|
-
|
|
13804
|
-
return null;
|
|
13805
|
-
});
|
|
13806
|
-
/**
|
|
13807
|
-
* Check that an array contains items of the same type.
|
|
13808
|
-
*/
|
|
13809
|
-
|
|
13810
|
-
var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
13811
|
-
var values = props[propName];
|
|
13812
|
-
|
|
13813
|
-
if (!Array.isArray(values)) {
|
|
13814
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
|
|
13815
|
-
}
|
|
13816
|
-
|
|
13817
|
-
if (values.length < 2) {
|
|
13818
|
-
return null;
|
|
13819
|
-
}
|
|
13820
|
-
|
|
13821
|
-
var comparisonConstructor = getConstructor(values[0]);
|
|
13822
|
-
|
|
13823
|
-
var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
|
|
13824
|
-
return comparisonConstructor !== getConstructor(value);
|
|
13825
|
-
});
|
|
13826
|
-
|
|
13827
|
-
if (typeMismatchedValue) {
|
|
13828
|
-
var constructorName = getConstructorName(values[0]);
|
|
13829
|
-
var otherConstructorName = getConstructorName(typeMismatchedValue);
|
|
13830
|
-
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
13831
|
-
}
|
|
13832
|
-
|
|
13833
|
-
return null;
|
|
13834
|
-
});
|
|
13835
|
-
/**
|
|
13836
|
-
* Check that array prop length matches props.data.length
|
|
13837
|
-
*/
|
|
13838
|
-
|
|
13839
|
-
var matchDataLength = makeChainable(function (props, propName) {
|
|
13840
|
-
if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
|
|
13841
|
-
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
13842
|
-
}
|
|
13843
|
-
|
|
13844
|
-
return null;
|
|
13845
|
-
});
|
|
13846
|
-
/**
|
|
13847
|
-
* Check that the value is a regular expression
|
|
13848
|
-
*/
|
|
13849
|
-
|
|
13850
|
-
var regExp = makeChainable(function (props, propName, componentName) {
|
|
13851
|
-
if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
|
|
13852
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13853
|
-
}
|
|
13854
|
-
|
|
13855
|
-
return null;
|
|
13856
|
-
});
|
|
13857
|
-
|
|
13858
|
-
/***/ }),
|
|
13859
|
-
|
|
13860
11617
|
/***/ "../../victory-core/es/victory-util/scale.js":
|
|
13861
11618
|
/*!***************************************************!*\
|
|
13862
11619
|
!*** ../../victory-core/es/victory-util/scale.js ***!
|