victory-errorbar 36.8.6 → 36.9.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 +6 -0
- package/dist/victory-errorbar.js +88 -2251
- package/dist/victory-errorbar.min.js +1 -1
- package/es/error-bar.js +2 -13
- package/es/victory-errorbar.d.ts +0 -53
- package/es/victory-errorbar.js +1 -14
- package/lib/error-bar.js +1 -13
- package/lib/victory-errorbar.d.ts +0 -53
- package/lib/victory-errorbar.js +0 -14
- package/package.json +2 -3
- package/src/error-bar.tsx +0 -22
- package/src/victory-errorbar.tsx +0 -28
package/dist/victory-errorbar.js
CHANGED
|
@@ -24,12 +24,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24
24
|
/* harmony export */ });
|
|
25
25
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
26
26
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
27
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
28
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
|
|
29
27
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
30
28
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line.js");
|
|
31
29
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
32
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
33
30
|
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; }
|
|
34
31
|
|
|
35
32
|
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; }
|
|
@@ -40,7 +37,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
40
37
|
|
|
41
38
|
|
|
42
39
|
|
|
43
|
-
|
|
44
40
|
var renderBorder = function (props, error, type) {
|
|
45
41
|
var vertical = type === "right" || type === "left";
|
|
46
42
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, _objectSpread(_objectSpread({}, props.events), {}, {
|
|
@@ -152,16 +148,6 @@ var ErrorBar = function (initialProps) {
|
|
|
152
148
|
"aria-label": ariaLabel
|
|
153
149
|
}, userProps), children);
|
|
154
150
|
};
|
|
155
|
-
ErrorBar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.primitiveProps), {}, {
|
|
156
|
-
borderWidth: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
157
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
158
|
-
errorX: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool)]),
|
|
159
|
-
errorY: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool)]),
|
|
160
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
161
|
-
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
162
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
163
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
|
|
164
|
-
});
|
|
165
151
|
|
|
166
152
|
/***/ }),
|
|
167
153
|
|
|
@@ -440,27 +426,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
440
426
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
441
427
|
/* harmony export */ "VictoryErrorBar": () => (/* binding */ VictoryErrorBar)
|
|
442
428
|
/* harmony export */ });
|
|
443
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
444
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
|
|
445
429
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
446
430
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
447
431
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
448
432
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
449
433
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/default-transitions.js");
|
|
450
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
451
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
452
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
453
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
454
|
-
/* harmony import */ var
|
|
455
|
-
/* harmony import */ var
|
|
456
|
-
/* harmony import */ var _error_bar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./error-bar */ "./error-bar.tsx");
|
|
457
|
-
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
|
|
458
|
-
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; }
|
|
459
|
-
|
|
460
|
-
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; }
|
|
461
|
-
|
|
462
|
-
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; }
|
|
463
|
-
|
|
434
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
435
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
436
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
437
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
|
|
438
|
+
/* harmony import */ var _error_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./error-bar */ "./error-bar.tsx");
|
|
439
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
|
|
464
440
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
465
441
|
|
|
466
442
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -485,7 +461,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
485
461
|
|
|
486
462
|
|
|
487
463
|
|
|
488
|
-
|
|
489
464
|
var fallbackProps = {
|
|
490
465
|
width: 450,
|
|
491
466
|
height: 300,
|
|
@@ -554,34 +529,28 @@ VictoryErrorBarBase.animationWhitelist = ["data", "domain", "height", "padding",
|
|
|
554
529
|
VictoryErrorBarBase.displayName = "VictoryErrorBar";
|
|
555
530
|
VictoryErrorBarBase.role = "errorbar";
|
|
556
531
|
VictoryErrorBarBase.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions();
|
|
557
|
-
VictoryErrorBarBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.dataProps), {}, {
|
|
558
|
-
borderWidth: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
559
|
-
errorX: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), victory_core__WEBPACK_IMPORTED_MODULE_6__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.integer, victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string))]),
|
|
560
|
-
errorY: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), victory_core__WEBPACK_IMPORTED_MODULE_6__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.integer, victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string))]),
|
|
561
|
-
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool)
|
|
562
|
-
});
|
|
563
532
|
VictoryErrorBarBase.defaultProps = {
|
|
564
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
533
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.VictoryContainer, null),
|
|
565
534
|
data: defaultData,
|
|
566
|
-
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
567
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
535
|
+
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_bar__WEBPACK_IMPORTED_MODULE_5__.ErrorBar, null),
|
|
536
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryLabel, null),
|
|
568
537
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
|
|
569
538
|
role: "presentation"
|
|
570
539
|
}),
|
|
571
540
|
samples: 50,
|
|
572
541
|
sortOrder: "ascending",
|
|
573
542
|
standalone: true,
|
|
574
|
-
theme:
|
|
543
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryTheme.grayscale
|
|
575
544
|
};
|
|
576
|
-
VictoryErrorBarBase.getDomain =
|
|
577
|
-
VictoryErrorBarBase.getData =
|
|
545
|
+
VictoryErrorBarBase.getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getDomain;
|
|
546
|
+
VictoryErrorBarBase.getData = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getData;
|
|
578
547
|
|
|
579
548
|
VictoryErrorBarBase.getBaseProps = function (props) {
|
|
580
|
-
return (0,
|
|
549
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
|
|
581
550
|
};
|
|
582
551
|
|
|
583
552
|
VictoryErrorBarBase.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
584
|
-
var VictoryErrorBar = (0,
|
|
553
|
+
var VictoryErrorBar = (0,victory_core__WEBPACK_IMPORTED_MODULE_9__.addEvents)(VictoryErrorBarBase);
|
|
585
554
|
|
|
586
555
|
/***/ }),
|
|
587
556
|
|
|
@@ -1102,40 +1071,6 @@ function baseDifference(array, values, iteratee, comparator) {
|
|
|
1102
1071
|
module.exports = baseDifference;
|
|
1103
1072
|
|
|
1104
1073
|
|
|
1105
|
-
/***/ }),
|
|
1106
|
-
|
|
1107
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js":
|
|
1108
|
-
/*!****************************************************************************************!*\
|
|
1109
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js ***!
|
|
1110
|
-
\****************************************************************************************/
|
|
1111
|
-
/***/ ((module) => {
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
1115
|
-
* support for iteratee shorthands.
|
|
1116
|
-
*
|
|
1117
|
-
* @private
|
|
1118
|
-
* @param {Array} array The array to inspect.
|
|
1119
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1120
|
-
* @param {number} fromIndex The index to search from.
|
|
1121
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1122
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1123
|
-
*/
|
|
1124
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1125
|
-
var length = array.length,
|
|
1126
|
-
index = fromIndex + (fromRight ? 1 : -1);
|
|
1127
|
-
|
|
1128
|
-
while ((fromRight ? index-- : ++index < length)) {
|
|
1129
|
-
if (predicate(array[index], index, array)) {
|
|
1130
|
-
return index;
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
return -1;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
module.exports = baseFindIndex;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
1074
|
/***/ }),
|
|
1140
1075
|
|
|
1141
1076
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1537,34 +1472,6 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
1537
1472
|
module.exports = baseIsMatch;
|
|
1538
1473
|
|
|
1539
1474
|
|
|
1540
|
-
/***/ }),
|
|
1541
|
-
|
|
1542
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js":
|
|
1543
|
-
/*!***************************************************************************************!*\
|
|
1544
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js ***!
|
|
1545
|
-
\***************************************************************************************/
|
|
1546
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1547
|
-
|
|
1548
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
|
|
1549
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
1550
|
-
|
|
1551
|
-
/** `Object#toString` result references. */
|
|
1552
|
-
var regexpTag = '[object RegExp]';
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* The base implementation of `_.isRegExp` without Node.js optimizations.
|
|
1556
|
-
*
|
|
1557
|
-
* @private
|
|
1558
|
-
* @param {*} value The value to check.
|
|
1559
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
1560
|
-
*/
|
|
1561
|
-
function baseIsRegExp(value) {
|
|
1562
|
-
return isObjectLike(value) && baseGetTag(value) == regexpTag;
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
module.exports = baseIsRegExp;
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
1475
|
/***/ }),
|
|
1569
1476
|
|
|
1570
1477
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js":
|
|
@@ -2112,35 +2019,6 @@ function baseToString(value) {
|
|
|
2112
2019
|
module.exports = baseToString;
|
|
2113
2020
|
|
|
2114
2021
|
|
|
2115
|
-
/***/ }),
|
|
2116
|
-
|
|
2117
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js":
|
|
2118
|
-
/*!***********************************************************************************!*\
|
|
2119
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js ***!
|
|
2120
|
-
\***********************************************************************************/
|
|
2121
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2122
|
-
|
|
2123
|
-
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js");
|
|
2124
|
-
|
|
2125
|
-
/** Used to match leading whitespace. */
|
|
2126
|
-
var reTrimStart = /^\s+/;
|
|
2127
|
-
|
|
2128
|
-
/**
|
|
2129
|
-
* The base implementation of `_.trim`.
|
|
2130
|
-
*
|
|
2131
|
-
* @private
|
|
2132
|
-
* @param {string} string The string to trim.
|
|
2133
|
-
* @returns {string} Returns the trimmed string.
|
|
2134
|
-
*/
|
|
2135
|
-
function baseTrim(string) {
|
|
2136
|
-
return string
|
|
2137
|
-
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2138
|
-
: string;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
module.exports = baseTrim;
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
2022
|
/***/ }),
|
|
2145
2023
|
|
|
2146
2024
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
|
|
@@ -2507,41 +2385,6 @@ function createAssigner(assigner) {
|
|
|
2507
2385
|
module.exports = createAssigner;
|
|
2508
2386
|
|
|
2509
2387
|
|
|
2510
|
-
/***/ }),
|
|
2511
|
-
|
|
2512
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js":
|
|
2513
|
-
/*!*************************************************************************************!*\
|
|
2514
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js ***!
|
|
2515
|
-
\*************************************************************************************/
|
|
2516
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2517
|
-
|
|
2518
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
2519
|
-
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
2520
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
2521
|
-
|
|
2522
|
-
/**
|
|
2523
|
-
* Creates a `_.find` or `_.findLast` function.
|
|
2524
|
-
*
|
|
2525
|
-
* @private
|
|
2526
|
-
* @param {Function} findIndexFunc The function to find the collection index.
|
|
2527
|
-
* @returns {Function} Returns the new find function.
|
|
2528
|
-
*/
|
|
2529
|
-
function createFind(findIndexFunc) {
|
|
2530
|
-
return function(collection, predicate, fromIndex) {
|
|
2531
|
-
var iterable = Object(collection);
|
|
2532
|
-
if (!isArrayLike(collection)) {
|
|
2533
|
-
var iteratee = baseIteratee(predicate, 3);
|
|
2534
|
-
collection = keys(collection);
|
|
2535
|
-
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
|
2536
|
-
}
|
|
2537
|
-
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2538
|
-
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
2539
|
-
};
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
module.exports = createFind;
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
2388
|
/***/ }),
|
|
2546
2389
|
|
|
2547
2390
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
|
|
@@ -3739,35 +3582,6 @@ function toKey(value) {
|
|
|
3739
3582
|
module.exports = toKey;
|
|
3740
3583
|
|
|
3741
3584
|
|
|
3742
|
-
/***/ }),
|
|
3743
|
-
|
|
3744
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js":
|
|
3745
|
-
/*!******************************************************************************************!*\
|
|
3746
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js ***!
|
|
3747
|
-
\******************************************************************************************/
|
|
3748
|
-
/***/ ((module) => {
|
|
3749
|
-
|
|
3750
|
-
/** Used to match a single whitespace character. */
|
|
3751
|
-
var reWhitespace = /\s/;
|
|
3752
|
-
|
|
3753
|
-
/**
|
|
3754
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
3755
|
-
* character of `string`.
|
|
3756
|
-
*
|
|
3757
|
-
* @private
|
|
3758
|
-
* @param {string} string The string to inspect.
|
|
3759
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
3760
|
-
*/
|
|
3761
|
-
function trimmedEndIndex(string) {
|
|
3762
|
-
var index = string.length;
|
|
3763
|
-
|
|
3764
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
3765
|
-
return index;
|
|
3766
|
-
}
|
|
3767
|
-
|
|
3768
|
-
module.exports = trimmedEndIndex;
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
3585
|
/***/ }),
|
|
3772
3586
|
|
|
3773
3587
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/assign.js":
|
|
@@ -4000,123 +3814,6 @@ function eq(value, other) {
|
|
|
4000
3814
|
module.exports = eq;
|
|
4001
3815
|
|
|
4002
3816
|
|
|
4003
|
-
/***/ }),
|
|
4004
|
-
|
|
4005
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js":
|
|
4006
|
-
/*!******************************************************************************!*\
|
|
4007
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js ***!
|
|
4008
|
-
\******************************************************************************/
|
|
4009
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4010
|
-
|
|
4011
|
-
var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js"),
|
|
4012
|
-
findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js");
|
|
4013
|
-
|
|
4014
|
-
/**
|
|
4015
|
-
* Iterates over elements of `collection`, returning the first element
|
|
4016
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
4017
|
-
* arguments: (value, index|key, collection).
|
|
4018
|
-
*
|
|
4019
|
-
* @static
|
|
4020
|
-
* @memberOf _
|
|
4021
|
-
* @since 0.1.0
|
|
4022
|
-
* @category Collection
|
|
4023
|
-
* @param {Array|Object} collection The collection to inspect.
|
|
4024
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4025
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4026
|
-
* @returns {*} Returns the matched element, else `undefined`.
|
|
4027
|
-
* @example
|
|
4028
|
-
*
|
|
4029
|
-
* var users = [
|
|
4030
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
4031
|
-
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
4032
|
-
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
4033
|
-
* ];
|
|
4034
|
-
*
|
|
4035
|
-
* _.find(users, function(o) { return o.age < 40; });
|
|
4036
|
-
* // => object for 'barney'
|
|
4037
|
-
*
|
|
4038
|
-
* // The `_.matches` iteratee shorthand.
|
|
4039
|
-
* _.find(users, { 'age': 1, 'active': true });
|
|
4040
|
-
* // => object for 'pebbles'
|
|
4041
|
-
*
|
|
4042
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4043
|
-
* _.find(users, ['active', false]);
|
|
4044
|
-
* // => object for 'fred'
|
|
4045
|
-
*
|
|
4046
|
-
* // The `_.property` iteratee shorthand.
|
|
4047
|
-
* _.find(users, 'active');
|
|
4048
|
-
* // => object for 'barney'
|
|
4049
|
-
*/
|
|
4050
|
-
var find = createFind(findIndex);
|
|
4051
|
-
|
|
4052
|
-
module.exports = find;
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
/***/ }),
|
|
4056
|
-
|
|
4057
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js":
|
|
4058
|
-
/*!***********************************************************************************!*\
|
|
4059
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js ***!
|
|
4060
|
-
\***********************************************************************************/
|
|
4061
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4062
|
-
|
|
4063
|
-
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js"),
|
|
4064
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
4065
|
-
toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js");
|
|
4066
|
-
|
|
4067
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4068
|
-
var nativeMax = Math.max;
|
|
4069
|
-
|
|
4070
|
-
/**
|
|
4071
|
-
* This method is like `_.find` except that it returns the index of the first
|
|
4072
|
-
* element `predicate` returns truthy for instead of the element itself.
|
|
4073
|
-
*
|
|
4074
|
-
* @static
|
|
4075
|
-
* @memberOf _
|
|
4076
|
-
* @since 1.1.0
|
|
4077
|
-
* @category Array
|
|
4078
|
-
* @param {Array} array The array to inspect.
|
|
4079
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4080
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4081
|
-
* @returns {number} Returns the index of the found element, else `-1`.
|
|
4082
|
-
* @example
|
|
4083
|
-
*
|
|
4084
|
-
* var users = [
|
|
4085
|
-
* { 'user': 'barney', 'active': false },
|
|
4086
|
-
* { 'user': 'fred', 'active': false },
|
|
4087
|
-
* { 'user': 'pebbles', 'active': true }
|
|
4088
|
-
* ];
|
|
4089
|
-
*
|
|
4090
|
-
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
4091
|
-
* // => 0
|
|
4092
|
-
*
|
|
4093
|
-
* // The `_.matches` iteratee shorthand.
|
|
4094
|
-
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
4095
|
-
* // => 1
|
|
4096
|
-
*
|
|
4097
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4098
|
-
* _.findIndex(users, ['active', false]);
|
|
4099
|
-
* // => 0
|
|
4100
|
-
*
|
|
4101
|
-
* // The `_.property` iteratee shorthand.
|
|
4102
|
-
* _.findIndex(users, 'active');
|
|
4103
|
-
* // => 2
|
|
4104
|
-
*/
|
|
4105
|
-
function findIndex(array, predicate, fromIndex) {
|
|
4106
|
-
var length = array == null ? 0 : array.length;
|
|
4107
|
-
if (!length) {
|
|
4108
|
-
return -1;
|
|
4109
|
-
}
|
|
4110
|
-
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4111
|
-
if (index < 0) {
|
|
4112
|
-
index = nativeMax(length + index, 0);
|
|
4113
|
-
}
|
|
4114
|
-
return baseFindIndex(array, baseIteratee(predicate, 3), index);
|
|
4115
|
-
}
|
|
4116
|
-
|
|
4117
|
-
module.exports = findIndex;
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
3817
|
/***/ }),
|
|
4121
3818
|
|
|
4122
3819
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":
|
|
@@ -4920,43 +4617,6 @@ function isPlainObject(value) {
|
|
|
4920
4617
|
module.exports = isPlainObject;
|
|
4921
4618
|
|
|
4922
4619
|
|
|
4923
|
-
/***/ }),
|
|
4924
|
-
|
|
4925
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js":
|
|
4926
|
-
/*!**********************************************************************************!*\
|
|
4927
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js ***!
|
|
4928
|
-
\**********************************************************************************/
|
|
4929
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4930
|
-
|
|
4931
|
-
var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js"),
|
|
4932
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
4933
|
-
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js");
|
|
4934
|
-
|
|
4935
|
-
/* Node.js helper references. */
|
|
4936
|
-
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
|
4937
|
-
|
|
4938
|
-
/**
|
|
4939
|
-
* Checks if `value` is classified as a `RegExp` object.
|
|
4940
|
-
*
|
|
4941
|
-
* @static
|
|
4942
|
-
* @memberOf _
|
|
4943
|
-
* @since 0.1.0
|
|
4944
|
-
* @category Lang
|
|
4945
|
-
* @param {*} value The value to check.
|
|
4946
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
4947
|
-
* @example
|
|
4948
|
-
*
|
|
4949
|
-
* _.isRegExp(/abc/);
|
|
4950
|
-
* // => true
|
|
4951
|
-
*
|
|
4952
|
-
* _.isRegExp('/abc/');
|
|
4953
|
-
* // => false
|
|
4954
|
-
*/
|
|
4955
|
-
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
4956
|
-
|
|
4957
|
-
module.exports = isRegExp;
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
4620
|
/***/ }),
|
|
4961
4621
|
|
|
4962
4622
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":
|
|
@@ -5510,261 +5170,89 @@ module.exports = sortedUniq;
|
|
|
5510
5170
|
|
|
5511
5171
|
/***/ }),
|
|
5512
5172
|
|
|
5513
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5173
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5514
5174
|
/*!**********************************************************************************!*\
|
|
5515
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5175
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5516
5176
|
\**********************************************************************************/
|
|
5517
5177
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5518
5178
|
|
|
5519
|
-
var
|
|
5520
|
-
|
|
5521
|
-
/** Used as references for various `Number` constants. */
|
|
5522
|
-
var INFINITY = 1 / 0,
|
|
5523
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
5179
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5524
5180
|
|
|
5525
5181
|
/**
|
|
5526
|
-
* Converts `value` to a
|
|
5182
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
5183
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
5527
5184
|
*
|
|
5528
5185
|
* @static
|
|
5529
5186
|
* @memberOf _
|
|
5530
|
-
* @since 4.
|
|
5187
|
+
* @since 4.0.0
|
|
5531
5188
|
* @category Lang
|
|
5532
5189
|
* @param {*} value The value to convert.
|
|
5533
|
-
* @returns {
|
|
5190
|
+
* @returns {string} Returns the converted string.
|
|
5534
5191
|
* @example
|
|
5535
5192
|
*
|
|
5536
|
-
* _.
|
|
5537
|
-
* // =>
|
|
5538
|
-
*
|
|
5539
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
5540
|
-
* // => 5e-324
|
|
5193
|
+
* _.toString(null);
|
|
5194
|
+
* // => ''
|
|
5541
5195
|
*
|
|
5542
|
-
* _.
|
|
5543
|
-
* // =>
|
|
5196
|
+
* _.toString(-0);
|
|
5197
|
+
* // => '-0'
|
|
5544
5198
|
*
|
|
5545
|
-
* _.
|
|
5546
|
-
* // => 3
|
|
5199
|
+
* _.toString([1, 2, 3]);
|
|
5200
|
+
* // => '1,2,3'
|
|
5547
5201
|
*/
|
|
5548
|
-
function
|
|
5549
|
-
|
|
5550
|
-
return value === 0 ? value : 0;
|
|
5551
|
-
}
|
|
5552
|
-
value = toNumber(value);
|
|
5553
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
5554
|
-
var sign = (value < 0 ? -1 : 1);
|
|
5555
|
-
return sign * MAX_INTEGER;
|
|
5556
|
-
}
|
|
5557
|
-
return value === value ? value : 0;
|
|
5202
|
+
function toString(value) {
|
|
5203
|
+
return value == null ? '' : baseToString(value);
|
|
5558
5204
|
}
|
|
5559
5205
|
|
|
5560
|
-
module.exports =
|
|
5206
|
+
module.exports = toString;
|
|
5561
5207
|
|
|
5562
5208
|
|
|
5563
5209
|
/***/ }),
|
|
5564
5210
|
|
|
5565
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5566
|
-
|
|
5567
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5568
|
-
|
|
5211
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5212
|
+
/*!******************************************************************************!*\
|
|
5213
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5214
|
+
\******************************************************************************/
|
|
5569
5215
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5570
5216
|
|
|
5571
|
-
var
|
|
5217
|
+
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5572
5218
|
|
|
5573
5219
|
/**
|
|
5574
|
-
*
|
|
5575
|
-
*
|
|
5576
|
-
*
|
|
5577
|
-
*
|
|
5220
|
+
* Creates a duplicate-free version of an array, using
|
|
5221
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5222
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
5223
|
+
* is kept. The order of result values is determined by the order they occur
|
|
5224
|
+
* in the array.
|
|
5578
5225
|
*
|
|
5579
5226
|
* @static
|
|
5580
5227
|
* @memberOf _
|
|
5581
|
-
* @since
|
|
5582
|
-
* @category
|
|
5583
|
-
* @param {
|
|
5584
|
-
* @returns {
|
|
5228
|
+
* @since 0.1.0
|
|
5229
|
+
* @category Array
|
|
5230
|
+
* @param {Array} array The array to inspect.
|
|
5231
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
5585
5232
|
* @example
|
|
5586
5233
|
*
|
|
5587
|
-
* _.
|
|
5588
|
-
* // =>
|
|
5589
|
-
*
|
|
5590
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
5591
|
-
* // => 0
|
|
5592
|
-
*
|
|
5593
|
-
* _.toInteger(Infinity);
|
|
5594
|
-
* // => 1.7976931348623157e+308
|
|
5595
|
-
*
|
|
5596
|
-
* _.toInteger('3.2');
|
|
5597
|
-
* // => 3
|
|
5234
|
+
* _.uniq([2, 1, 2]);
|
|
5235
|
+
* // => [2, 1]
|
|
5598
5236
|
*/
|
|
5599
|
-
function
|
|
5600
|
-
|
|
5601
|
-
remainder = result % 1;
|
|
5602
|
-
|
|
5603
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
5237
|
+
function uniq(array) {
|
|
5238
|
+
return (array && array.length) ? baseUniq(array) : [];
|
|
5604
5239
|
}
|
|
5605
5240
|
|
|
5606
|
-
module.exports =
|
|
5241
|
+
module.exports = uniq;
|
|
5607
5242
|
|
|
5608
5243
|
|
|
5609
5244
|
/***/ }),
|
|
5610
5245
|
|
|
5611
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5246
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js":
|
|
5612
5247
|
/*!**********************************************************************************!*\
|
|
5613
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5248
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js ***!
|
|
5614
5249
|
\**********************************************************************************/
|
|
5615
5250
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5616
5251
|
|
|
5617
|
-
var
|
|
5618
|
-
isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),
|
|
5619
|
-
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
5620
|
-
|
|
5621
|
-
/** Used as references for various `Number` constants. */
|
|
5622
|
-
var NAN = 0 / 0;
|
|
5252
|
+
var toString = __webpack_require__(/*! ./toString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js");
|
|
5623
5253
|
|
|
5624
|
-
/** Used to
|
|
5625
|
-
var
|
|
5626
|
-
|
|
5627
|
-
/** Used to detect binary string values. */
|
|
5628
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
5629
|
-
|
|
5630
|
-
/** Used to detect octal string values. */
|
|
5631
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
5632
|
-
|
|
5633
|
-
/** Built-in method references without a dependency on `root`. */
|
|
5634
|
-
var freeParseInt = parseInt;
|
|
5635
|
-
|
|
5636
|
-
/**
|
|
5637
|
-
* Converts `value` to a number.
|
|
5638
|
-
*
|
|
5639
|
-
* @static
|
|
5640
|
-
* @memberOf _
|
|
5641
|
-
* @since 4.0.0
|
|
5642
|
-
* @category Lang
|
|
5643
|
-
* @param {*} value The value to process.
|
|
5644
|
-
* @returns {number} Returns the number.
|
|
5645
|
-
* @example
|
|
5646
|
-
*
|
|
5647
|
-
* _.toNumber(3.2);
|
|
5648
|
-
* // => 3.2
|
|
5649
|
-
*
|
|
5650
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
5651
|
-
* // => 5e-324
|
|
5652
|
-
*
|
|
5653
|
-
* _.toNumber(Infinity);
|
|
5654
|
-
* // => Infinity
|
|
5655
|
-
*
|
|
5656
|
-
* _.toNumber('3.2');
|
|
5657
|
-
* // => 3.2
|
|
5658
|
-
*/
|
|
5659
|
-
function toNumber(value) {
|
|
5660
|
-
if (typeof value == 'number') {
|
|
5661
|
-
return value;
|
|
5662
|
-
}
|
|
5663
|
-
if (isSymbol(value)) {
|
|
5664
|
-
return NAN;
|
|
5665
|
-
}
|
|
5666
|
-
if (isObject(value)) {
|
|
5667
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
5668
|
-
value = isObject(other) ? (other + '') : other;
|
|
5669
|
-
}
|
|
5670
|
-
if (typeof value != 'string') {
|
|
5671
|
-
return value === 0 ? value : +value;
|
|
5672
|
-
}
|
|
5673
|
-
value = baseTrim(value);
|
|
5674
|
-
var isBinary = reIsBinary.test(value);
|
|
5675
|
-
return (isBinary || reIsOctal.test(value))
|
|
5676
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
5677
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
5678
|
-
}
|
|
5679
|
-
|
|
5680
|
-
module.exports = toNumber;
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
/***/ }),
|
|
5684
|
-
|
|
5685
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5686
|
-
/*!**********************************************************************************!*\
|
|
5687
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5688
|
-
\**********************************************************************************/
|
|
5689
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5690
|
-
|
|
5691
|
-
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5692
|
-
|
|
5693
|
-
/**
|
|
5694
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
5695
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
5696
|
-
*
|
|
5697
|
-
* @static
|
|
5698
|
-
* @memberOf _
|
|
5699
|
-
* @since 4.0.0
|
|
5700
|
-
* @category Lang
|
|
5701
|
-
* @param {*} value The value to convert.
|
|
5702
|
-
* @returns {string} Returns the converted string.
|
|
5703
|
-
* @example
|
|
5704
|
-
*
|
|
5705
|
-
* _.toString(null);
|
|
5706
|
-
* // => ''
|
|
5707
|
-
*
|
|
5708
|
-
* _.toString(-0);
|
|
5709
|
-
* // => '-0'
|
|
5710
|
-
*
|
|
5711
|
-
* _.toString([1, 2, 3]);
|
|
5712
|
-
* // => '1,2,3'
|
|
5713
|
-
*/
|
|
5714
|
-
function toString(value) {
|
|
5715
|
-
return value == null ? '' : baseToString(value);
|
|
5716
|
-
}
|
|
5717
|
-
|
|
5718
|
-
module.exports = toString;
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
/***/ }),
|
|
5722
|
-
|
|
5723
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5724
|
-
/*!******************************************************************************!*\
|
|
5725
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5726
|
-
\******************************************************************************/
|
|
5727
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5728
|
-
|
|
5729
|
-
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5730
|
-
|
|
5731
|
-
/**
|
|
5732
|
-
* Creates a duplicate-free version of an array, using
|
|
5733
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5734
|
-
* for equality comparisons, in which only the first occurrence of each element
|
|
5735
|
-
* is kept. The order of result values is determined by the order they occur
|
|
5736
|
-
* in the array.
|
|
5737
|
-
*
|
|
5738
|
-
* @static
|
|
5739
|
-
* @memberOf _
|
|
5740
|
-
* @since 0.1.0
|
|
5741
|
-
* @category Array
|
|
5742
|
-
* @param {Array} array The array to inspect.
|
|
5743
|
-
* @returns {Array} Returns the new duplicate free array.
|
|
5744
|
-
* @example
|
|
5745
|
-
*
|
|
5746
|
-
* _.uniq([2, 1, 2]);
|
|
5747
|
-
* // => [2, 1]
|
|
5748
|
-
*/
|
|
5749
|
-
function uniq(array) {
|
|
5750
|
-
return (array && array.length) ? baseUniq(array) : [];
|
|
5751
|
-
}
|
|
5752
|
-
|
|
5753
|
-
module.exports = uniq;
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
/***/ }),
|
|
5757
|
-
|
|
5758
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js":
|
|
5759
|
-
/*!**********************************************************************************!*\
|
|
5760
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js ***!
|
|
5761
|
-
\**********************************************************************************/
|
|
5762
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5763
|
-
|
|
5764
|
-
var toString = __webpack_require__(/*! ./toString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js");
|
|
5765
|
-
|
|
5766
|
-
/** Used to generate unique IDs. */
|
|
5767
|
-
var idCounter = 0;
|
|
5254
|
+
/** Used to generate unique IDs. */
|
|
5255
|
+
var idCounter = 0;
|
|
5768
5256
|
|
|
5769
5257
|
/**
|
|
5770
5258
|
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
|
@@ -5801,930 +5289,35 @@ module.exports = uniqueId;
|
|
|
5801
5289
|
|
|
5802
5290
|
var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
|
|
5803
5291
|
baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
|
|
5804
|
-
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
5805
|
-
|
|
5806
|
-
/**
|
|
5807
|
-
* Creates an array excluding all given values using
|
|
5808
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5809
|
-
* for equality comparisons.
|
|
5810
|
-
*
|
|
5811
|
-
* **Note:** Unlike `_.pull`, this method returns a new array.
|
|
5812
|
-
*
|
|
5813
|
-
* @static
|
|
5814
|
-
* @memberOf _
|
|
5815
|
-
* @since 0.1.0
|
|
5816
|
-
* @category Array
|
|
5817
|
-
* @param {Array} array The array to inspect.
|
|
5818
|
-
* @param {...*} [values] The values to exclude.
|
|
5819
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
5820
|
-
* @see _.difference, _.xor
|
|
5821
|
-
* @example
|
|
5822
|
-
*
|
|
5823
|
-
* _.without([2, 1, 2, 3], 1, 2);
|
|
5824
|
-
* // => [3]
|
|
5825
|
-
*/
|
|
5826
|
-
var without = baseRest(function(array, values) {
|
|
5827
|
-
return isArrayLikeObject(array)
|
|
5828
|
-
? baseDifference(array, values)
|
|
5829
|
-
: [];
|
|
5830
|
-
});
|
|
5831
|
-
|
|
5832
|
-
module.exports = without;
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
/***/ }),
|
|
5836
|
-
|
|
5837
|
-
/***/ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js":
|
|
5838
|
-
/*!*******************************************************************************************!*\
|
|
5839
|
-
!*** ../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js ***!
|
|
5840
|
-
\*******************************************************************************************/
|
|
5841
|
-
/***/ ((module) => {
|
|
5842
|
-
|
|
5843
|
-
"use strict";
|
|
5844
|
-
/*
|
|
5845
|
-
object-assign
|
|
5846
|
-
(c) Sindre Sorhus
|
|
5847
|
-
@license MIT
|
|
5848
|
-
*/
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
/* eslint-disable no-unused-vars */
|
|
5852
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
5853
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5854
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
5855
|
-
|
|
5856
|
-
function toObject(val) {
|
|
5857
|
-
if (val === null || val === undefined) {
|
|
5858
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
5859
|
-
}
|
|
5860
|
-
|
|
5861
|
-
return Object(val);
|
|
5862
|
-
}
|
|
5863
|
-
|
|
5864
|
-
function shouldUseNative() {
|
|
5865
|
-
try {
|
|
5866
|
-
if (!Object.assign) {
|
|
5867
|
-
return false;
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
5871
|
-
|
|
5872
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
5873
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
5874
|
-
test1[5] = 'de';
|
|
5875
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
5876
|
-
return false;
|
|
5877
|
-
}
|
|
5878
|
-
|
|
5879
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
5880
|
-
var test2 = {};
|
|
5881
|
-
for (var i = 0; i < 10; i++) {
|
|
5882
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
5883
|
-
}
|
|
5884
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
5885
|
-
return test2[n];
|
|
5886
|
-
});
|
|
5887
|
-
if (order2.join('') !== '0123456789') {
|
|
5888
|
-
return false;
|
|
5889
|
-
}
|
|
5890
|
-
|
|
5891
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
5892
|
-
var test3 = {};
|
|
5893
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
5894
|
-
test3[letter] = letter;
|
|
5895
|
-
});
|
|
5896
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
5897
|
-
'abcdefghijklmnopqrst') {
|
|
5898
|
-
return false;
|
|
5899
|
-
}
|
|
5900
|
-
|
|
5901
|
-
return true;
|
|
5902
|
-
} catch (err) {
|
|
5903
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
5904
|
-
return false;
|
|
5905
|
-
}
|
|
5906
|
-
}
|
|
5907
|
-
|
|
5908
|
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
5909
|
-
var from;
|
|
5910
|
-
var to = toObject(target);
|
|
5911
|
-
var symbols;
|
|
5912
|
-
|
|
5913
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
5914
|
-
from = Object(arguments[s]);
|
|
5915
|
-
|
|
5916
|
-
for (var key in from) {
|
|
5917
|
-
if (hasOwnProperty.call(from, key)) {
|
|
5918
|
-
to[key] = from[key];
|
|
5919
|
-
}
|
|
5920
|
-
}
|
|
5921
|
-
|
|
5922
|
-
if (getOwnPropertySymbols) {
|
|
5923
|
-
symbols = getOwnPropertySymbols(from);
|
|
5924
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
5925
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
5926
|
-
to[symbols[i]] = from[symbols[i]];
|
|
5927
|
-
}
|
|
5928
|
-
}
|
|
5929
|
-
}
|
|
5930
|
-
}
|
|
5931
|
-
|
|
5932
|
-
return to;
|
|
5933
|
-
};
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
/***/ }),
|
|
5937
|
-
|
|
5938
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js":
|
|
5939
|
-
/*!***********************************************************************************************!*\
|
|
5940
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js ***!
|
|
5941
|
-
\***********************************************************************************************/
|
|
5942
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5943
|
-
|
|
5944
|
-
"use strict";
|
|
5945
|
-
/**
|
|
5946
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5947
|
-
*
|
|
5948
|
-
* This source code is licensed under the MIT license found in the
|
|
5949
|
-
* LICENSE file in the root directory of this source tree.
|
|
5950
|
-
*/
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
var printWarning = function() {};
|
|
5955
|
-
|
|
5956
|
-
if (true) {
|
|
5957
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5958
|
-
var loggedTypeFailures = {};
|
|
5959
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
5960
|
-
|
|
5961
|
-
printWarning = function(text) {
|
|
5962
|
-
var message = 'Warning: ' + text;
|
|
5963
|
-
if (typeof console !== 'undefined') {
|
|
5964
|
-
console.error(message);
|
|
5965
|
-
}
|
|
5966
|
-
try {
|
|
5967
|
-
// --- Welcome to debugging React ---
|
|
5968
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
5969
|
-
// to find the callsite that caused this warning to fire.
|
|
5970
|
-
throw new Error(message);
|
|
5971
|
-
} catch (x) { /**/ }
|
|
5972
|
-
};
|
|
5973
|
-
}
|
|
5974
|
-
|
|
5975
|
-
/**
|
|
5976
|
-
* Assert that the values match with the type specs.
|
|
5977
|
-
* Error messages are memorized and will only be shown once.
|
|
5978
|
-
*
|
|
5979
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
5980
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
5981
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
5982
|
-
* @param {string} componentName Name of the component for error messages.
|
|
5983
|
-
* @param {?Function} getStack Returns the component stack.
|
|
5984
|
-
* @private
|
|
5985
|
-
*/
|
|
5986
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
5987
|
-
if (true) {
|
|
5988
|
-
for (var typeSpecName in typeSpecs) {
|
|
5989
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
5990
|
-
var error;
|
|
5991
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
5992
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
5993
|
-
// After these have been cleaned up, we'll let them throw.
|
|
5994
|
-
try {
|
|
5995
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
5996
|
-
// behavior as without this statement except with a better message.
|
|
5997
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
5998
|
-
var err = Error(
|
|
5999
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6000
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6001
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6002
|
-
);
|
|
6003
|
-
err.name = 'Invariant Violation';
|
|
6004
|
-
throw err;
|
|
6005
|
-
}
|
|
6006
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
6007
|
-
} catch (ex) {
|
|
6008
|
-
error = ex;
|
|
6009
|
-
}
|
|
6010
|
-
if (error && !(error instanceof Error)) {
|
|
6011
|
-
printWarning(
|
|
6012
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
6013
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
6014
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
6015
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
6016
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
6017
|
-
'shape all require an argument).'
|
|
6018
|
-
);
|
|
6019
|
-
}
|
|
6020
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
6021
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
6022
|
-
// same error.
|
|
6023
|
-
loggedTypeFailures[error.message] = true;
|
|
6024
|
-
|
|
6025
|
-
var stack = getStack ? getStack() : '';
|
|
6026
|
-
|
|
6027
|
-
printWarning(
|
|
6028
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
6029
|
-
);
|
|
6030
|
-
}
|
|
6031
|
-
}
|
|
6032
|
-
}
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6035
|
-
|
|
6036
|
-
/**
|
|
6037
|
-
* Resets warning cache when testing.
|
|
6038
|
-
*
|
|
6039
|
-
* @private
|
|
6040
|
-
*/
|
|
6041
|
-
checkPropTypes.resetWarningCache = function() {
|
|
6042
|
-
if (true) {
|
|
6043
|
-
loggedTypeFailures = {};
|
|
6044
|
-
}
|
|
6045
|
-
}
|
|
6046
|
-
|
|
6047
|
-
module.exports = checkPropTypes;
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
/***/ }),
|
|
6051
|
-
|
|
6052
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
6053
|
-
/*!********************************************************************************************************!*\
|
|
6054
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
6055
|
-
\********************************************************************************************************/
|
|
6056
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6057
|
-
|
|
6058
|
-
"use strict";
|
|
6059
|
-
/**
|
|
6060
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6061
|
-
*
|
|
6062
|
-
* This source code is licensed under the MIT license found in the
|
|
6063
|
-
* LICENSE file in the root directory of this source tree.
|
|
6064
|
-
*/
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6069
|
-
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");
|
|
6070
|
-
|
|
6071
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6072
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6073
|
-
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js");
|
|
6074
|
-
|
|
6075
|
-
var printWarning = function() {};
|
|
6076
|
-
|
|
6077
|
-
if (true) {
|
|
6078
|
-
printWarning = function(text) {
|
|
6079
|
-
var message = 'Warning: ' + text;
|
|
6080
|
-
if (typeof console !== 'undefined') {
|
|
6081
|
-
console.error(message);
|
|
6082
|
-
}
|
|
6083
|
-
try {
|
|
6084
|
-
// --- Welcome to debugging React ---
|
|
6085
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6086
|
-
// to find the callsite that caused this warning to fire.
|
|
6087
|
-
throw new Error(message);
|
|
6088
|
-
} catch (x) {}
|
|
6089
|
-
};
|
|
6090
|
-
}
|
|
6091
|
-
|
|
6092
|
-
function emptyFunctionThatReturnsNull() {
|
|
6093
|
-
return null;
|
|
6094
|
-
}
|
|
6095
|
-
|
|
6096
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
6097
|
-
/* global Symbol */
|
|
6098
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
6099
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
6100
|
-
|
|
6101
|
-
/**
|
|
6102
|
-
* Returns the iterator method function contained on the iterable object.
|
|
6103
|
-
*
|
|
6104
|
-
* Be sure to invoke the function with the iterable as context:
|
|
6105
|
-
*
|
|
6106
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
6107
|
-
* if (iteratorFn) {
|
|
6108
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
6109
|
-
* ...
|
|
6110
|
-
* }
|
|
6111
|
-
*
|
|
6112
|
-
* @param {?object} maybeIterable
|
|
6113
|
-
* @return {?function}
|
|
6114
|
-
*/
|
|
6115
|
-
function getIteratorFn(maybeIterable) {
|
|
6116
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
6117
|
-
if (typeof iteratorFn === 'function') {
|
|
6118
|
-
return iteratorFn;
|
|
6119
|
-
}
|
|
6120
|
-
}
|
|
6121
|
-
|
|
6122
|
-
/**
|
|
6123
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
6124
|
-
* supplied to React components. Example usage:
|
|
6125
|
-
*
|
|
6126
|
-
* var Props = require('ReactPropTypes');
|
|
6127
|
-
* var MyArticle = React.createClass({
|
|
6128
|
-
* propTypes: {
|
|
6129
|
-
* // An optional string prop named "description".
|
|
6130
|
-
* description: Props.string,
|
|
6131
|
-
*
|
|
6132
|
-
* // A required enum prop named "category".
|
|
6133
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
6134
|
-
*
|
|
6135
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
6136
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
6137
|
-
* },
|
|
6138
|
-
* render: function() { ... }
|
|
6139
|
-
* });
|
|
6140
|
-
*
|
|
6141
|
-
* A more formal specification of how these methods are used:
|
|
6142
|
-
*
|
|
6143
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
6144
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
6145
|
-
*
|
|
6146
|
-
* Each and every declaration produces a function with the same signature. This
|
|
6147
|
-
* allows the creation of custom validation functions. For example:
|
|
6148
|
-
*
|
|
6149
|
-
* var MyLink = React.createClass({
|
|
6150
|
-
* propTypes: {
|
|
6151
|
-
* // An optional string or URI prop named "href".
|
|
6152
|
-
* href: function(props, propName, componentName) {
|
|
6153
|
-
* var propValue = props[propName];
|
|
6154
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
6155
|
-
* !(propValue instanceof URI)) {
|
|
6156
|
-
* return new Error(
|
|
6157
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
6158
|
-
* componentName
|
|
6159
|
-
* );
|
|
6160
|
-
* }
|
|
6161
|
-
* }
|
|
6162
|
-
* },
|
|
6163
|
-
* render: function() {...}
|
|
6164
|
-
* });
|
|
6165
|
-
*
|
|
6166
|
-
* @internal
|
|
6167
|
-
*/
|
|
6168
|
-
|
|
6169
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
6170
|
-
|
|
6171
|
-
// Important!
|
|
6172
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6173
|
-
var ReactPropTypes = {
|
|
6174
|
-
array: createPrimitiveTypeChecker('array'),
|
|
6175
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6176
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
6177
|
-
func: createPrimitiveTypeChecker('function'),
|
|
6178
|
-
number: createPrimitiveTypeChecker('number'),
|
|
6179
|
-
object: createPrimitiveTypeChecker('object'),
|
|
6180
|
-
string: createPrimitiveTypeChecker('string'),
|
|
6181
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
6182
|
-
|
|
6183
|
-
any: createAnyTypeChecker(),
|
|
6184
|
-
arrayOf: createArrayOfTypeChecker,
|
|
6185
|
-
element: createElementTypeChecker(),
|
|
6186
|
-
elementType: createElementTypeTypeChecker(),
|
|
6187
|
-
instanceOf: createInstanceTypeChecker,
|
|
6188
|
-
node: createNodeChecker(),
|
|
6189
|
-
objectOf: createObjectOfTypeChecker,
|
|
6190
|
-
oneOf: createEnumTypeChecker,
|
|
6191
|
-
oneOfType: createUnionTypeChecker,
|
|
6192
|
-
shape: createShapeTypeChecker,
|
|
6193
|
-
exact: createStrictShapeTypeChecker,
|
|
6194
|
-
};
|
|
6195
|
-
|
|
6196
|
-
/**
|
|
6197
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
6198
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
6199
|
-
*/
|
|
6200
|
-
/*eslint-disable no-self-compare*/
|
|
6201
|
-
function is(x, y) {
|
|
6202
|
-
// SameValue algorithm
|
|
6203
|
-
if (x === y) {
|
|
6204
|
-
// Steps 1-5, 7-10
|
|
6205
|
-
// Steps 6.b-6.e: +0 != -0
|
|
6206
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
6207
|
-
} else {
|
|
6208
|
-
// Step 6.a: NaN == NaN
|
|
6209
|
-
return x !== x && y !== y;
|
|
6210
|
-
}
|
|
6211
|
-
}
|
|
6212
|
-
/*eslint-enable no-self-compare*/
|
|
6213
|
-
|
|
6214
|
-
/**
|
|
6215
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
6216
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
6217
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
6218
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
6219
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
6220
|
-
*/
|
|
6221
|
-
function PropTypeError(message, data) {
|
|
6222
|
-
this.message = message;
|
|
6223
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
6224
|
-
this.stack = '';
|
|
6225
|
-
}
|
|
6226
|
-
// Make `instanceof Error` still work for returned errors.
|
|
6227
|
-
PropTypeError.prototype = Error.prototype;
|
|
6228
|
-
|
|
6229
|
-
function createChainableTypeChecker(validate) {
|
|
6230
|
-
if (true) {
|
|
6231
|
-
var manualPropTypeCallCache = {};
|
|
6232
|
-
var manualPropTypeWarningCount = 0;
|
|
6233
|
-
}
|
|
6234
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
6235
|
-
componentName = componentName || ANONYMOUS;
|
|
6236
|
-
propFullName = propFullName || propName;
|
|
6237
|
-
|
|
6238
|
-
if (secret !== ReactPropTypesSecret) {
|
|
6239
|
-
if (throwOnDirectAccess) {
|
|
6240
|
-
// New behavior only for users of `prop-types` package
|
|
6241
|
-
var err = new Error(
|
|
6242
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
6243
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
6244
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
6245
|
-
);
|
|
6246
|
-
err.name = 'Invariant Violation';
|
|
6247
|
-
throw err;
|
|
6248
|
-
} else if ( true && typeof console !== 'undefined') {
|
|
6249
|
-
// Old behavior for people using React.PropTypes
|
|
6250
|
-
var cacheKey = componentName + ':' + propName;
|
|
6251
|
-
if (
|
|
6252
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
6253
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
6254
|
-
manualPropTypeWarningCount < 3
|
|
6255
|
-
) {
|
|
6256
|
-
printWarning(
|
|
6257
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
6258
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6259
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
6260
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6261
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6262
|
-
);
|
|
6263
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
6264
|
-
manualPropTypeWarningCount++;
|
|
6265
|
-
}
|
|
6266
|
-
}
|
|
6267
|
-
}
|
|
6268
|
-
if (props[propName] == null) {
|
|
6269
|
-
if (isRequired) {
|
|
6270
|
-
if (props[propName] === null) {
|
|
6271
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
6272
|
-
}
|
|
6273
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
6274
|
-
}
|
|
6275
|
-
return null;
|
|
6276
|
-
} else {
|
|
6277
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
6278
|
-
}
|
|
6279
|
-
}
|
|
6280
|
-
|
|
6281
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
6282
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
6283
|
-
|
|
6284
|
-
return chainedCheckType;
|
|
6285
|
-
}
|
|
6286
|
-
|
|
6287
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
6288
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
6289
|
-
var propValue = props[propName];
|
|
6290
|
-
var propType = getPropType(propValue);
|
|
6291
|
-
if (propType !== expectedType) {
|
|
6292
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
6293
|
-
// check, but we can offer a more precise error message here rather than
|
|
6294
|
-
// 'of type `object`'.
|
|
6295
|
-
var preciseType = getPreciseType(propValue);
|
|
6296
|
-
|
|
6297
|
-
return new PropTypeError(
|
|
6298
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6299
|
-
{expectedType: expectedType}
|
|
6300
|
-
);
|
|
6301
|
-
}
|
|
6302
|
-
return null;
|
|
6303
|
-
}
|
|
6304
|
-
return createChainableTypeChecker(validate);
|
|
6305
|
-
}
|
|
6306
|
-
|
|
6307
|
-
function createAnyTypeChecker() {
|
|
6308
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
6309
|
-
}
|
|
6310
|
-
|
|
6311
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
6312
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6313
|
-
if (typeof typeChecker !== 'function') {
|
|
6314
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
6315
|
-
}
|
|
6316
|
-
var propValue = props[propName];
|
|
6317
|
-
if (!Array.isArray(propValue)) {
|
|
6318
|
-
var propType = getPropType(propValue);
|
|
6319
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
6320
|
-
}
|
|
6321
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
6322
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
6323
|
-
if (error instanceof Error) {
|
|
6324
|
-
return error;
|
|
6325
|
-
}
|
|
6326
|
-
}
|
|
6327
|
-
return null;
|
|
6328
|
-
}
|
|
6329
|
-
return createChainableTypeChecker(validate);
|
|
6330
|
-
}
|
|
6331
|
-
|
|
6332
|
-
function createElementTypeChecker() {
|
|
6333
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6334
|
-
var propValue = props[propName];
|
|
6335
|
-
if (!isValidElement(propValue)) {
|
|
6336
|
-
var propType = getPropType(propValue);
|
|
6337
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
6338
|
-
}
|
|
6339
|
-
return null;
|
|
6340
|
-
}
|
|
6341
|
-
return createChainableTypeChecker(validate);
|
|
6342
|
-
}
|
|
6343
|
-
|
|
6344
|
-
function createElementTypeTypeChecker() {
|
|
6345
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6346
|
-
var propValue = props[propName];
|
|
6347
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
6348
|
-
var propType = getPropType(propValue);
|
|
6349
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
6350
|
-
}
|
|
6351
|
-
return null;
|
|
6352
|
-
}
|
|
6353
|
-
return createChainableTypeChecker(validate);
|
|
6354
|
-
}
|
|
6355
|
-
|
|
6356
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
6357
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6358
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
6359
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
6360
|
-
var actualClassName = getClassName(props[propName]);
|
|
6361
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
6362
|
-
}
|
|
6363
|
-
return null;
|
|
6364
|
-
}
|
|
6365
|
-
return createChainableTypeChecker(validate);
|
|
6366
|
-
}
|
|
6367
|
-
|
|
6368
|
-
function createEnumTypeChecker(expectedValues) {
|
|
6369
|
-
if (!Array.isArray(expectedValues)) {
|
|
6370
|
-
if (true) {
|
|
6371
|
-
if (arguments.length > 1) {
|
|
6372
|
-
printWarning(
|
|
6373
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
6374
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
6375
|
-
);
|
|
6376
|
-
} else {
|
|
6377
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
6378
|
-
}
|
|
6379
|
-
}
|
|
6380
|
-
return emptyFunctionThatReturnsNull;
|
|
6381
|
-
}
|
|
6382
|
-
|
|
6383
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6384
|
-
var propValue = props[propName];
|
|
6385
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
6386
|
-
if (is(propValue, expectedValues[i])) {
|
|
6387
|
-
return null;
|
|
6388
|
-
}
|
|
6389
|
-
}
|
|
6390
|
-
|
|
6391
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
6392
|
-
var type = getPreciseType(value);
|
|
6393
|
-
if (type === 'symbol') {
|
|
6394
|
-
return String(value);
|
|
6395
|
-
}
|
|
6396
|
-
return value;
|
|
6397
|
-
});
|
|
6398
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
6399
|
-
}
|
|
6400
|
-
return createChainableTypeChecker(validate);
|
|
6401
|
-
}
|
|
6402
|
-
|
|
6403
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
6404
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6405
|
-
if (typeof typeChecker !== 'function') {
|
|
6406
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
6407
|
-
}
|
|
6408
|
-
var propValue = props[propName];
|
|
6409
|
-
var propType = getPropType(propValue);
|
|
6410
|
-
if (propType !== 'object') {
|
|
6411
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
6412
|
-
}
|
|
6413
|
-
for (var key in propValue) {
|
|
6414
|
-
if (has(propValue, key)) {
|
|
6415
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6416
|
-
if (error instanceof Error) {
|
|
6417
|
-
return error;
|
|
6418
|
-
}
|
|
6419
|
-
}
|
|
6420
|
-
}
|
|
6421
|
-
return null;
|
|
6422
|
-
}
|
|
6423
|
-
return createChainableTypeChecker(validate);
|
|
6424
|
-
}
|
|
6425
|
-
|
|
6426
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
6427
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
6428
|
-
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
6429
|
-
return emptyFunctionThatReturnsNull;
|
|
6430
|
-
}
|
|
6431
|
-
|
|
6432
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6433
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6434
|
-
if (typeof checker !== 'function') {
|
|
6435
|
-
printWarning(
|
|
6436
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
6437
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
6438
|
-
);
|
|
6439
|
-
return emptyFunctionThatReturnsNull;
|
|
6440
|
-
}
|
|
6441
|
-
}
|
|
6442
|
-
|
|
6443
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6444
|
-
var expectedTypes = [];
|
|
6445
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6446
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6447
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6448
|
-
if (checkerResult == null) {
|
|
6449
|
-
return null;
|
|
6450
|
-
}
|
|
6451
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6452
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
6453
|
-
}
|
|
6454
|
-
}
|
|
6455
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6456
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6457
|
-
}
|
|
6458
|
-
return createChainableTypeChecker(validate);
|
|
6459
|
-
}
|
|
6460
|
-
|
|
6461
|
-
function createNodeChecker() {
|
|
6462
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6463
|
-
if (!isNode(props[propName])) {
|
|
6464
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
6465
|
-
}
|
|
6466
|
-
return null;
|
|
6467
|
-
}
|
|
6468
|
-
return createChainableTypeChecker(validate);
|
|
6469
|
-
}
|
|
6470
|
-
|
|
6471
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6472
|
-
return new PropTypeError(
|
|
6473
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6474
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6475
|
-
);
|
|
6476
|
-
}
|
|
6477
|
-
|
|
6478
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
6479
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6480
|
-
var propValue = props[propName];
|
|
6481
|
-
var propType = getPropType(propValue);
|
|
6482
|
-
if (propType !== 'object') {
|
|
6483
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6484
|
-
}
|
|
6485
|
-
for (var key in shapeTypes) {
|
|
6486
|
-
var checker = shapeTypes[key];
|
|
6487
|
-
if (typeof checker !== 'function') {
|
|
6488
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6489
|
-
}
|
|
6490
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6491
|
-
if (error) {
|
|
6492
|
-
return error;
|
|
6493
|
-
}
|
|
6494
|
-
}
|
|
6495
|
-
return null;
|
|
6496
|
-
}
|
|
6497
|
-
return createChainableTypeChecker(validate);
|
|
6498
|
-
}
|
|
6499
|
-
|
|
6500
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
6501
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6502
|
-
var propValue = props[propName];
|
|
6503
|
-
var propType = getPropType(propValue);
|
|
6504
|
-
if (propType !== 'object') {
|
|
6505
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6506
|
-
}
|
|
6507
|
-
// We need to check all keys in case some are required but missing from props.
|
|
6508
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6509
|
-
for (var key in allKeys) {
|
|
6510
|
-
var checker = shapeTypes[key];
|
|
6511
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6512
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6513
|
-
}
|
|
6514
|
-
if (!checker) {
|
|
6515
|
-
return new PropTypeError(
|
|
6516
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6517
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6518
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6519
|
-
);
|
|
6520
|
-
}
|
|
6521
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6522
|
-
if (error) {
|
|
6523
|
-
return error;
|
|
6524
|
-
}
|
|
6525
|
-
}
|
|
6526
|
-
return null;
|
|
6527
|
-
}
|
|
6528
|
-
|
|
6529
|
-
return createChainableTypeChecker(validate);
|
|
6530
|
-
}
|
|
6531
|
-
|
|
6532
|
-
function isNode(propValue) {
|
|
6533
|
-
switch (typeof propValue) {
|
|
6534
|
-
case 'number':
|
|
6535
|
-
case 'string':
|
|
6536
|
-
case 'undefined':
|
|
6537
|
-
return true;
|
|
6538
|
-
case 'boolean':
|
|
6539
|
-
return !propValue;
|
|
6540
|
-
case 'object':
|
|
6541
|
-
if (Array.isArray(propValue)) {
|
|
6542
|
-
return propValue.every(isNode);
|
|
6543
|
-
}
|
|
6544
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
6545
|
-
return true;
|
|
6546
|
-
}
|
|
6547
|
-
|
|
6548
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
6549
|
-
if (iteratorFn) {
|
|
6550
|
-
var iterator = iteratorFn.call(propValue);
|
|
6551
|
-
var step;
|
|
6552
|
-
if (iteratorFn !== propValue.entries) {
|
|
6553
|
-
while (!(step = iterator.next()).done) {
|
|
6554
|
-
if (!isNode(step.value)) {
|
|
6555
|
-
return false;
|
|
6556
|
-
}
|
|
6557
|
-
}
|
|
6558
|
-
} else {
|
|
6559
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
6560
|
-
while (!(step = iterator.next()).done) {
|
|
6561
|
-
var entry = step.value;
|
|
6562
|
-
if (entry) {
|
|
6563
|
-
if (!isNode(entry[1])) {
|
|
6564
|
-
return false;
|
|
6565
|
-
}
|
|
6566
|
-
}
|
|
6567
|
-
}
|
|
6568
|
-
}
|
|
6569
|
-
} else {
|
|
6570
|
-
return false;
|
|
6571
|
-
}
|
|
6572
|
-
|
|
6573
|
-
return true;
|
|
6574
|
-
default:
|
|
6575
|
-
return false;
|
|
6576
|
-
}
|
|
6577
|
-
}
|
|
6578
|
-
|
|
6579
|
-
function isSymbol(propType, propValue) {
|
|
6580
|
-
// Native Symbol.
|
|
6581
|
-
if (propType === 'symbol') {
|
|
6582
|
-
return true;
|
|
6583
|
-
}
|
|
6584
|
-
|
|
6585
|
-
// falsy value can't be a Symbol
|
|
6586
|
-
if (!propValue) {
|
|
6587
|
-
return false;
|
|
6588
|
-
}
|
|
6589
|
-
|
|
6590
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
6591
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
6592
|
-
return true;
|
|
6593
|
-
}
|
|
6594
|
-
|
|
6595
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
6596
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
6597
|
-
return true;
|
|
6598
|
-
}
|
|
6599
|
-
|
|
6600
|
-
return false;
|
|
6601
|
-
}
|
|
6602
|
-
|
|
6603
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
6604
|
-
function getPropType(propValue) {
|
|
6605
|
-
var propType = typeof propValue;
|
|
6606
|
-
if (Array.isArray(propValue)) {
|
|
6607
|
-
return 'array';
|
|
6608
|
-
}
|
|
6609
|
-
if (propValue instanceof RegExp) {
|
|
6610
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
6611
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
6612
|
-
// passes PropTypes.object.
|
|
6613
|
-
return 'object';
|
|
6614
|
-
}
|
|
6615
|
-
if (isSymbol(propType, propValue)) {
|
|
6616
|
-
return 'symbol';
|
|
6617
|
-
}
|
|
6618
|
-
return propType;
|
|
6619
|
-
}
|
|
6620
|
-
|
|
6621
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
6622
|
-
// See `createPrimitiveTypeChecker`.
|
|
6623
|
-
function getPreciseType(propValue) {
|
|
6624
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
6625
|
-
return '' + propValue;
|
|
6626
|
-
}
|
|
6627
|
-
var propType = getPropType(propValue);
|
|
6628
|
-
if (propType === 'object') {
|
|
6629
|
-
if (propValue instanceof Date) {
|
|
6630
|
-
return 'date';
|
|
6631
|
-
} else if (propValue instanceof RegExp) {
|
|
6632
|
-
return 'regexp';
|
|
6633
|
-
}
|
|
6634
|
-
}
|
|
6635
|
-
return propType;
|
|
6636
|
-
}
|
|
6637
|
-
|
|
6638
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
6639
|
-
// For example, "undefined" or "of type array"
|
|
6640
|
-
function getPostfixForTypeWarning(value) {
|
|
6641
|
-
var type = getPreciseType(value);
|
|
6642
|
-
switch (type) {
|
|
6643
|
-
case 'array':
|
|
6644
|
-
case 'object':
|
|
6645
|
-
return 'an ' + type;
|
|
6646
|
-
case 'boolean':
|
|
6647
|
-
case 'date':
|
|
6648
|
-
case 'regexp':
|
|
6649
|
-
return 'a ' + type;
|
|
6650
|
-
default:
|
|
6651
|
-
return type;
|
|
6652
|
-
}
|
|
6653
|
-
}
|
|
6654
|
-
|
|
6655
|
-
// Returns class name of the object, if any.
|
|
6656
|
-
function getClassName(propValue) {
|
|
6657
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
6658
|
-
return ANONYMOUS;
|
|
6659
|
-
}
|
|
6660
|
-
return propValue.constructor.name;
|
|
6661
|
-
}
|
|
6662
|
-
|
|
6663
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
6664
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
6665
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
6666
|
-
|
|
6667
|
-
return ReactPropTypes;
|
|
6668
|
-
};
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
/***/ }),
|
|
6672
|
-
|
|
6673
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":
|
|
6674
|
-
/*!**************************************************************************************!*\
|
|
6675
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js ***!
|
|
6676
|
-
\**************************************************************************************/
|
|
6677
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6678
|
-
|
|
6679
|
-
/**
|
|
6680
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6681
|
-
*
|
|
6682
|
-
* This source code is licensed under the MIT license found in the
|
|
6683
|
-
* LICENSE file in the root directory of this source tree.
|
|
6684
|
-
*/
|
|
6685
|
-
|
|
6686
|
-
if (true) {
|
|
6687
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6688
|
-
|
|
6689
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
6690
|
-
// http://fb.me/prop-types-in-prod
|
|
6691
|
-
var throwOnDirectAccess = true;
|
|
6692
|
-
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
6693
|
-
} else {}
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
/***/ }),
|
|
6697
|
-
|
|
6698
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
6699
|
-
/*!*********************************************************************************************************!*\
|
|
6700
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
6701
|
-
\*********************************************************************************************************/
|
|
6702
|
-
/***/ ((module) => {
|
|
5292
|
+
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
6703
5293
|
|
|
6704
|
-
"use strict";
|
|
6705
5294
|
/**
|
|
6706
|
-
*
|
|
5295
|
+
* Creates an array excluding all given values using
|
|
5296
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5297
|
+
* for equality comparisons.
|
|
5298
|
+
*
|
|
5299
|
+
* **Note:** Unlike `_.pull`, this method returns a new array.
|
|
5300
|
+
*
|
|
5301
|
+
* @static
|
|
5302
|
+
* @memberOf _
|
|
5303
|
+
* @since 0.1.0
|
|
5304
|
+
* @category Array
|
|
5305
|
+
* @param {Array} array The array to inspect.
|
|
5306
|
+
* @param {...*} [values] The values to exclude.
|
|
5307
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
5308
|
+
* @see _.difference, _.xor
|
|
5309
|
+
* @example
|
|
6707
5310
|
*
|
|
6708
|
-
*
|
|
6709
|
-
*
|
|
5311
|
+
* _.without([2, 1, 2, 3], 1, 2);
|
|
5312
|
+
* // => [3]
|
|
6710
5313
|
*/
|
|
5314
|
+
var without = baseRest(function(array, values) {
|
|
5315
|
+
return isArrayLikeObject(array)
|
|
5316
|
+
? baseDifference(array, values)
|
|
5317
|
+
: [];
|
|
5318
|
+
});
|
|
6711
5319
|
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
6715
|
-
|
|
6716
|
-
module.exports = ReactPropTypesSecret;
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
/***/ }),
|
|
6720
|
-
|
|
6721
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js":
|
|
6722
|
-
/*!****************************************************************************************!*\
|
|
6723
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js ***!
|
|
6724
|
-
\****************************************************************************************/
|
|
6725
|
-
/***/ ((module) => {
|
|
6726
|
-
|
|
6727
|
-
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5320
|
+
module.exports = without;
|
|
6728
5321
|
|
|
6729
5322
|
|
|
6730
5323
|
/***/ }),
|
|
@@ -6871,214 +5464,6 @@ module.exports = function isEqual(a, b) {
|
|
|
6871
5464
|
};
|
|
6872
5465
|
|
|
6873
5466
|
|
|
6874
|
-
/***/ }),
|
|
6875
|
-
|
|
6876
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js":
|
|
6877
|
-
/*!******************************************************************************************************!*\
|
|
6878
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js ***!
|
|
6879
|
-
\******************************************************************************************************/
|
|
6880
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6881
|
-
|
|
6882
|
-
"use strict";
|
|
6883
|
-
/** @license React v16.13.1
|
|
6884
|
-
* react-is.development.js
|
|
6885
|
-
*
|
|
6886
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6887
|
-
*
|
|
6888
|
-
* This source code is licensed under the MIT license found in the
|
|
6889
|
-
* LICENSE file in the root directory of this source tree.
|
|
6890
|
-
*/
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
if (true) {
|
|
6897
|
-
(function() {
|
|
6898
|
-
'use strict';
|
|
6899
|
-
|
|
6900
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
6901
|
-
// nor polyfill, then a plain number is used for performance.
|
|
6902
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
6903
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
6904
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
6905
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
6906
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
6907
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
6908
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
6909
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
6910
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
6911
|
-
|
|
6912
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
6913
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
6914
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
6915
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
6916
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
6917
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
6918
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
6919
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
6920
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
6921
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
6922
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
6923
|
-
|
|
6924
|
-
function isValidElementType(type) {
|
|
6925
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
6926
|
-
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);
|
|
6927
|
-
}
|
|
6928
|
-
|
|
6929
|
-
function typeOf(object) {
|
|
6930
|
-
if (typeof object === 'object' && object !== null) {
|
|
6931
|
-
var $$typeof = object.$$typeof;
|
|
6932
|
-
|
|
6933
|
-
switch ($$typeof) {
|
|
6934
|
-
case REACT_ELEMENT_TYPE:
|
|
6935
|
-
var type = object.type;
|
|
6936
|
-
|
|
6937
|
-
switch (type) {
|
|
6938
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
6939
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
6940
|
-
case REACT_FRAGMENT_TYPE:
|
|
6941
|
-
case REACT_PROFILER_TYPE:
|
|
6942
|
-
case REACT_STRICT_MODE_TYPE:
|
|
6943
|
-
case REACT_SUSPENSE_TYPE:
|
|
6944
|
-
return type;
|
|
6945
|
-
|
|
6946
|
-
default:
|
|
6947
|
-
var $$typeofType = type && type.$$typeof;
|
|
6948
|
-
|
|
6949
|
-
switch ($$typeofType) {
|
|
6950
|
-
case REACT_CONTEXT_TYPE:
|
|
6951
|
-
case REACT_FORWARD_REF_TYPE:
|
|
6952
|
-
case REACT_LAZY_TYPE:
|
|
6953
|
-
case REACT_MEMO_TYPE:
|
|
6954
|
-
case REACT_PROVIDER_TYPE:
|
|
6955
|
-
return $$typeofType;
|
|
6956
|
-
|
|
6957
|
-
default:
|
|
6958
|
-
return $$typeof;
|
|
6959
|
-
}
|
|
6960
|
-
|
|
6961
|
-
}
|
|
6962
|
-
|
|
6963
|
-
case REACT_PORTAL_TYPE:
|
|
6964
|
-
return $$typeof;
|
|
6965
|
-
}
|
|
6966
|
-
}
|
|
6967
|
-
|
|
6968
|
-
return undefined;
|
|
6969
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
6970
|
-
|
|
6971
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
6972
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
6973
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
6974
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
6975
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
6976
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
6977
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
6978
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
6979
|
-
var Memo = REACT_MEMO_TYPE;
|
|
6980
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
6981
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
6982
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
6983
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
6984
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
6985
|
-
|
|
6986
|
-
function isAsyncMode(object) {
|
|
6987
|
-
{
|
|
6988
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
6989
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
6990
|
-
|
|
6991
|
-
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.');
|
|
6992
|
-
}
|
|
6993
|
-
}
|
|
6994
|
-
|
|
6995
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
6996
|
-
}
|
|
6997
|
-
function isConcurrentMode(object) {
|
|
6998
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
6999
|
-
}
|
|
7000
|
-
function isContextConsumer(object) {
|
|
7001
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
7002
|
-
}
|
|
7003
|
-
function isContextProvider(object) {
|
|
7004
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
7005
|
-
}
|
|
7006
|
-
function isElement(object) {
|
|
7007
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
7008
|
-
}
|
|
7009
|
-
function isForwardRef(object) {
|
|
7010
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
7011
|
-
}
|
|
7012
|
-
function isFragment(object) {
|
|
7013
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7014
|
-
}
|
|
7015
|
-
function isLazy(object) {
|
|
7016
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7017
|
-
}
|
|
7018
|
-
function isMemo(object) {
|
|
7019
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7020
|
-
}
|
|
7021
|
-
function isPortal(object) {
|
|
7022
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7023
|
-
}
|
|
7024
|
-
function isProfiler(object) {
|
|
7025
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7026
|
-
}
|
|
7027
|
-
function isStrictMode(object) {
|
|
7028
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7029
|
-
}
|
|
7030
|
-
function isSuspense(object) {
|
|
7031
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7032
|
-
}
|
|
7033
|
-
|
|
7034
|
-
exports.AsyncMode = AsyncMode;
|
|
7035
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
7036
|
-
exports.ContextConsumer = ContextConsumer;
|
|
7037
|
-
exports.ContextProvider = ContextProvider;
|
|
7038
|
-
exports.Element = Element;
|
|
7039
|
-
exports.ForwardRef = ForwardRef;
|
|
7040
|
-
exports.Fragment = Fragment;
|
|
7041
|
-
exports.Lazy = Lazy;
|
|
7042
|
-
exports.Memo = Memo;
|
|
7043
|
-
exports.Portal = Portal;
|
|
7044
|
-
exports.Profiler = Profiler;
|
|
7045
|
-
exports.StrictMode = StrictMode;
|
|
7046
|
-
exports.Suspense = Suspense;
|
|
7047
|
-
exports.isAsyncMode = isAsyncMode;
|
|
7048
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
7049
|
-
exports.isContextConsumer = isContextConsumer;
|
|
7050
|
-
exports.isContextProvider = isContextProvider;
|
|
7051
|
-
exports.isElement = isElement;
|
|
7052
|
-
exports.isForwardRef = isForwardRef;
|
|
7053
|
-
exports.isFragment = isFragment;
|
|
7054
|
-
exports.isLazy = isLazy;
|
|
7055
|
-
exports.isMemo = isMemo;
|
|
7056
|
-
exports.isPortal = isPortal;
|
|
7057
|
-
exports.isProfiler = isProfiler;
|
|
7058
|
-
exports.isStrictMode = isStrictMode;
|
|
7059
|
-
exports.isSuspense = isSuspense;
|
|
7060
|
-
exports.isValidElementType = isValidElementType;
|
|
7061
|
-
exports.typeOf = typeOf;
|
|
7062
|
-
})();
|
|
7063
|
-
}
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
/***/ }),
|
|
7067
|
-
|
|
7068
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js":
|
|
7069
|
-
/*!***********************************************************************************!*\
|
|
7070
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js ***!
|
|
7071
|
-
\***********************************************************************************/
|
|
7072
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7073
|
-
|
|
7074
|
-
"use strict";
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
if (false) {} else {
|
|
7078
|
-
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");
|
|
7079
|
-
}
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
5467
|
/***/ }),
|
|
7083
5468
|
|
|
7084
5469
|
/***/ "../../victory-core/es/victory-animation/util.js":
|
|
@@ -7333,11 +5718,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7333
5718
|
/* harmony export */ });
|
|
7334
5719
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7335
5720
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7336
|
-
/* 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");
|
|
7337
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7338
5721
|
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7339
5722
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7340
|
-
/* harmony import */ var
|
|
5723
|
+
/* 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");
|
|
7341
5724
|
/* 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");
|
|
7342
5725
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
|
|
7343
5726
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -7378,7 +5761,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
7378
5761
|
|
|
7379
5762
|
|
|
7380
5763
|
|
|
7381
|
-
|
|
7382
5764
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7383
5765
|
_inherits(VictoryAnimation, _React$Component);
|
|
7384
5766
|
|
|
@@ -7564,21 +5946,13 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7564
5946
|
return VictoryAnimation;
|
|
7565
5947
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
7566
5948
|
VictoryAnimation.displayName = "VictoryAnimation";
|
|
7567
|
-
VictoryAnimation.propTypes = {
|
|
7568
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
7569
|
-
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)]),
|
|
7570
|
-
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7571
|
-
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7572
|
-
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"]),
|
|
7573
|
-
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
7574
|
-
};
|
|
7575
5949
|
VictoryAnimation.defaultProps = {
|
|
7576
5950
|
data: {},
|
|
7577
5951
|
delay: 0,
|
|
7578
5952
|
duration: 1000,
|
|
7579
5953
|
easing: "quadInOut"
|
|
7580
5954
|
};
|
|
7581
|
-
VictoryAnimation.contextType =
|
|
5955
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
7582
5956
|
|
|
7583
5957
|
/***/ }),
|
|
7584
5958
|
|
|
@@ -7603,12 +5977,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7603
5977
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
7604
5978
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
7605
5979
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
7606
|
-
/* harmony import */ var
|
|
7607
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
7608
|
-
/* 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");
|
|
7609
|
-
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
5980
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7610
5981
|
/* 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");
|
|
7611
|
-
/* harmony import */ var
|
|
5982
|
+
/* 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");
|
|
7612
5983
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7613
5984
|
/* 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");
|
|
7614
5985
|
|
|
@@ -7650,8 +6021,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
7650
6021
|
|
|
7651
6022
|
|
|
7652
6023
|
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
6024
|
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
7656
6025
|
_inherits(VictoryContainer, _React$Component);
|
|
7657
6026
|
|
|
@@ -7844,44 +6213,14 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7844
6213
|
}((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
|
|
7845
6214
|
VictoryContainer.displayName = "VictoryContainer";
|
|
7846
6215
|
VictoryContainer.role = "container";
|
|
7847
|
-
VictoryContainer.propTypes = {
|
|
7848
|
-
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7849
|
-
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7850
|
-
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)]),
|
|
7851
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7852
|
-
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)]),
|
|
7853
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
7854
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7855
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7856
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
7857
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7858
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
7859
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
7860
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
7861
|
-
}),
|
|
7862
|
-
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)]),
|
|
7863
|
-
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7864
|
-
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7865
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7866
|
-
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
7867
|
-
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
|
|
7868
|
-
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7869
|
-
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7870
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7871
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7872
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
7873
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7874
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7875
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
7876
|
-
};
|
|
7877
6216
|
VictoryContainer.defaultProps = {
|
|
7878
6217
|
className: "VictoryContainer",
|
|
7879
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(
|
|
6218
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__.Portal, null),
|
|
7880
6219
|
portalZIndex: 99,
|
|
7881
6220
|
responsive: true,
|
|
7882
6221
|
role: "img"
|
|
7883
6222
|
};
|
|
7884
|
-
VictoryContainer.contextType =
|
|
6223
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
7885
6224
|
|
|
7886
6225
|
/***/ }),
|
|
7887
6226
|
|
|
@@ -7900,8 +6239,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7900
6239
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
7901
6240
|
/* 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");
|
|
7902
6241
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
7903
|
-
/* 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");
|
|
7904
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
7905
6242
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
7906
6243
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
7907
6244
|
/* 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");
|
|
@@ -7911,7 +6248,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7911
6248
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7912
6249
|
/* 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");
|
|
7913
6250
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
7914
|
-
/* 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");
|
|
7915
6251
|
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
7916
6252
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
7917
6253
|
/* 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");
|
|
@@ -7947,8 +6283,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7947
6283
|
|
|
7948
6284
|
|
|
7949
6285
|
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
6286
|
var defaultStyles = {
|
|
7953
6287
|
fill: "#252525",
|
|
7954
6288
|
fontSize: 14,
|
|
@@ -8467,55 +6801,6 @@ var VictoryLabel = function (initialProps) {
|
|
|
8467
6801
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8468
6802
|
VictoryLabel.role = "label";
|
|
8469
6803
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8470
|
-
VictoryLabel.propTypes = {
|
|
8471
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8472
|
-
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)]),
|
|
8473
|
-
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)]),
|
|
8474
|
-
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8475
|
-
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)]),
|
|
8476
|
-
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)]),
|
|
8477
|
-
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)]),
|
|
8478
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
8479
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
|
|
8480
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
|
|
8481
|
-
// @ts-expect-error "Function is not assignable to string"
|
|
8482
|
-
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)]),
|
|
8483
|
-
direction: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8484
|
-
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)]),
|
|
8485
|
-
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)]),
|
|
8486
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
8487
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8488
|
-
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)]),
|
|
8489
|
-
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)]),
|
|
8490
|
-
inline: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8491
|
-
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8492
|
-
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)]),
|
|
8493
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
8494
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired,
|
|
8495
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired
|
|
8496
|
-
}),
|
|
8497
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8498
|
-
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8499
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
8500
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale,
|
|
8501
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale
|
|
8502
|
-
}),
|
|
8503
|
-
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)]),
|
|
8504
|
-
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)]),
|
|
8505
|
-
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)]),
|
|
8506
|
-
// @ts-expect-error Function is not assignable to string"
|
|
8507
|
-
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)]),
|
|
8508
|
-
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8509
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
8510
|
-
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)]),
|
|
8511
|
-
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8512
|
-
// @ts-expect-error Function is not assignable to string"
|
|
8513
|
-
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)]),
|
|
8514
|
-
// @ts-expect-error Number is not assignable to string
|
|
8515
|
-
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)]),
|
|
8516
|
-
// @ts-expect-error Number is not assignable to string
|
|
8517
|
-
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)])
|
|
8518
|
-
};
|
|
8519
6804
|
|
|
8520
6805
|
/***/ }),
|
|
8521
6806
|
|
|
@@ -8558,9 +6843,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8558
6843
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
8559
6844
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8560
6845
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8561
|
-
/* 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");
|
|
8562
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
8563
|
-
/* 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");
|
|
8564
6846
|
|
|
8565
6847
|
|
|
8566
6848
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8584,8 +6866,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8584
6866
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8585
6867
|
|
|
8586
6868
|
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
6869
|
var Portal = /*#__PURE__*/function (_ref) {
|
|
8590
6870
|
_inherits(Portal, _ref);
|
|
8591
6871
|
|
|
@@ -8644,13 +6924,6 @@ var Portal = /*#__PURE__*/function (_ref) {
|
|
|
8644
6924
|
return Portal;
|
|
8645
6925
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8646
6926
|
Portal.displayName = "Portal";
|
|
8647
|
-
Portal.propTypes = {
|
|
8648
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8649
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8650
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8651
|
-
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8652
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8653
|
-
};
|
|
8654
6927
|
|
|
8655
6928
|
/***/ }),
|
|
8656
6929
|
|
|
@@ -8669,11 +6942,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8669
6942
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
8670
6943
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8671
6944
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8672
|
-
/* 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");
|
|
8673
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8674
6945
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8675
6946
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8676
|
-
/* harmony import */ var
|
|
6947
|
+
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
8677
6948
|
|
|
8678
6949
|
|
|
8679
6950
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8700,7 +6971,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
8700
6971
|
|
|
8701
6972
|
|
|
8702
6973
|
|
|
8703
|
-
|
|
8704
6974
|
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
8705
6975
|
_inherits(VictoryPortal, _React$Component);
|
|
8706
6976
|
|
|
@@ -8786,14 +7056,10 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8786
7056
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8787
7057
|
VictoryPortal.displayName = "VictoryPortal";
|
|
8788
7058
|
VictoryPortal.role = "portal";
|
|
8789
|
-
VictoryPortal.propTypes = {
|
|
8790
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8791
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8792
|
-
};
|
|
8793
7059
|
VictoryPortal.defaultProps = {
|
|
8794
7060
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8795
7061
|
};
|
|
8796
|
-
VictoryPortal.contextType =
|
|
7062
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_4__.PortalContext;
|
|
8797
7063
|
|
|
8798
7064
|
/***/ }),
|
|
8799
7065
|
|
|
@@ -9622,12 +7888,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9622
7888
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
9623
7889
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
9624
7890
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
9625
|
-
/* 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");
|
|
9626
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
9627
7891
|
/* 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");
|
|
9628
7892
|
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9629
7893
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9630
|
-
/* harmony import */ var
|
|
7894
|
+
/* 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");
|
|
9631
7895
|
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
9632
7896
|
/* 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");
|
|
9633
7897
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
@@ -9664,7 +7928,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9664
7928
|
|
|
9665
7929
|
|
|
9666
7930
|
|
|
9667
|
-
|
|
9668
7931
|
var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
9669
7932
|
_inherits(VictoryTransition, _React$Component);
|
|
9670
7933
|
|
|
@@ -9862,12 +8125,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9862
8125
|
return VictoryTransition;
|
|
9863
8126
|
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
9864
8127
|
VictoryTransition.displayName = "VictoryTransition";
|
|
9865
|
-
VictoryTransition.
|
|
9866
|
-
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)]),
|
|
9867
|
-
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
9868
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
9869
|
-
};
|
|
9870
|
-
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
8128
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
9871
8129
|
|
|
9872
8130
|
/***/ }),
|
|
9873
8131
|
|
|
@@ -10419,155 +8677,6 @@ function getMinValue(arr) {
|
|
|
10419
8677
|
|
|
10420
8678
|
/***/ }),
|
|
10421
8679
|
|
|
10422
|
-
/***/ "../../victory-core/es/victory-util/common-props.js":
|
|
10423
|
-
/*!**********************************************************!*\
|
|
10424
|
-
!*** ../../victory-core/es/victory-util/common-props.js ***!
|
|
10425
|
-
\**********************************************************/
|
|
10426
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10427
|
-
|
|
10428
|
-
"use strict";
|
|
10429
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10430
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10431
|
-
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
10432
|
-
/* harmony export */ });
|
|
10433
|
-
/* 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");
|
|
10434
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
10435
|
-
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
var dataProps = {
|
|
10439
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10440
|
-
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({
|
|
10441
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
10442
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
10443
|
-
})]),
|
|
10444
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10445
|
-
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)]),
|
|
10446
|
-
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10447
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10448
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10449
|
-
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)]),
|
|
10450
|
-
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10451
|
-
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))]),
|
|
10452
|
-
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
10453
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10454
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10455
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10456
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10457
|
-
}),
|
|
10458
|
-
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))]),
|
|
10459
|
-
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))]),
|
|
10460
|
-
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))])
|
|
10461
|
-
};
|
|
10462
|
-
var baseProps = {
|
|
10463
|
-
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)]),
|
|
10464
|
-
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10465
|
-
domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10466
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10467
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10468
|
-
})]),
|
|
10469
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10470
|
-
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({
|
|
10471
|
-
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)]),
|
|
10472
|
-
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)])
|
|
10473
|
-
})]),
|
|
10474
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10475
|
-
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({
|
|
10476
|
-
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)]),
|
|
10477
|
-
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)])
|
|
10478
|
-
})]),
|
|
10479
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10480
|
-
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10481
|
-
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))]),
|
|
10482
|
-
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))])
|
|
10483
|
-
}), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
10484
|
-
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)]),
|
|
10485
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10486
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
|
|
10487
|
-
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)]),
|
|
10488
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10489
|
-
})),
|
|
10490
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10491
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10492
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10493
|
-
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)]),
|
|
10494
|
-
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)]),
|
|
10495
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10496
|
-
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)])
|
|
10497
|
-
})),
|
|
10498
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10499
|
-
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10500
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10501
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10502
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10503
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10504
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10505
|
-
}),
|
|
10506
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10507
|
-
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({
|
|
10508
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10509
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10510
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10511
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10512
|
-
})]),
|
|
10513
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10514
|
-
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10515
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
10516
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
10517
|
-
})]),
|
|
10518
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10519
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
10520
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
10521
|
-
})]),
|
|
10522
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10523
|
-
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10524
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
10525
|
-
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
10526
|
-
}),
|
|
10527
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10528
|
-
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({
|
|
10529
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
10530
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
10531
|
-
})]),
|
|
10532
|
-
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10533
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10534
|
-
width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
|
|
10535
|
-
};
|
|
10536
|
-
var primitiveProps = {
|
|
10537
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10538
|
-
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)]),
|
|
10539
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10540
|
-
clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10541
|
-
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)]),
|
|
10542
|
-
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)]),
|
|
10543
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10544
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10545
|
-
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)]),
|
|
10546
|
-
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)]),
|
|
10547
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10548
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10549
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10550
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10551
|
-
}),
|
|
10552
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10553
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10554
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10555
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
10556
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
10557
|
-
})]),
|
|
10558
|
-
shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10559
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10560
|
-
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)]),
|
|
10561
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
10562
|
-
};
|
|
10563
|
-
var CommonProps = {
|
|
10564
|
-
dataProps: dataProps,
|
|
10565
|
-
baseProps: baseProps,
|
|
10566
|
-
primitiveProps: primitiveProps
|
|
10567
|
-
};
|
|
10568
|
-
|
|
10569
|
-
/***/ }),
|
|
10570
|
-
|
|
10571
8680
|
/***/ "../../victory-core/es/victory-util/data.js":
|
|
10572
8681
|
/*!**************************************************!*\
|
|
10573
8682
|
!*** ../../victory-core/es/victory-util/data.js ***!
|
|
@@ -12913,278 +11022,6 @@ function warn(message) {
|
|
|
12913
11022
|
|
|
12914
11023
|
/***/ }),
|
|
12915
11024
|
|
|
12916
|
-
/***/ "../../victory-core/es/victory-util/prop-types.js":
|
|
12917
|
-
/*!********************************************************!*\
|
|
12918
|
-
!*** ../../victory-core/es/victory-util/prop-types.js ***!
|
|
12919
|
-
\********************************************************/
|
|
12920
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12921
|
-
|
|
12922
|
-
"use strict";
|
|
12923
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12924
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12925
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
12926
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
12927
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
12928
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
12929
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
12930
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
12931
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
12932
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
12933
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
12934
|
-
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
12935
|
-
/* harmony export */ });
|
|
12936
|
-
/* 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");
|
|
12937
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
12938
|
-
/* 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");
|
|
12939
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
12940
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
12941
|
-
/* 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");
|
|
12942
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
12943
|
-
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
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; }
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
/**
|
|
12954
|
-
* Return a new validator based on `validator` but with the option to chain
|
|
12955
|
-
* `isRequired` onto the validation. This is nearly identical to how React
|
|
12956
|
-
* does it internally, but they don't expose their helper for us to use.
|
|
12957
|
-
* @param {Function} validator Validation function.
|
|
12958
|
-
* @returns {Function} Validator with `isRequired` option.
|
|
12959
|
-
*/
|
|
12960
|
-
var makeChainable = function (validator) {
|
|
12961
|
-
var createChainable = function (isRequired) {
|
|
12962
|
-
return function (props, propName, componentName) {
|
|
12963
|
-
var value = props[propName];
|
|
12964
|
-
|
|
12965
|
-
if (value === undefined || value === null) {
|
|
12966
|
-
if (isRequired) {
|
|
12967
|
-
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
12968
|
-
}
|
|
12969
|
-
|
|
12970
|
-
return null;
|
|
12971
|
-
}
|
|
12972
|
-
|
|
12973
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
12974
|
-
rest[_key - 3] = arguments[_key];
|
|
12975
|
-
}
|
|
12976
|
-
|
|
12977
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12978
|
-
};
|
|
12979
|
-
};
|
|
12980
|
-
|
|
12981
|
-
var chainable = Object.assign(createChainable(false), {
|
|
12982
|
-
isRequired: createChainable(true)
|
|
12983
|
-
});
|
|
12984
|
-
return chainable;
|
|
12985
|
-
};
|
|
12986
|
-
|
|
12987
|
-
var nullConstructor = function () {
|
|
12988
|
-
return null;
|
|
12989
|
-
};
|
|
12990
|
-
|
|
12991
|
-
var undefinedConstructor = function () {
|
|
12992
|
-
return undefined;
|
|
12993
|
-
};
|
|
12994
|
-
/**
|
|
12995
|
-
* Get the constructor of `value`. If `value` is null or undefined, return the
|
|
12996
|
-
* special singletons `nullConstructor` or `undefinedConstructor`, respectively.
|
|
12997
|
-
* @param {*} value Instance to return the constructor of.
|
|
12998
|
-
* @returns {Function} Constructor of `value`.
|
|
12999
|
-
*/
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
var getConstructor = function (value) {
|
|
13003
|
-
if (value === undefined) {
|
|
13004
|
-
return undefinedConstructor;
|
|
13005
|
-
} else if (value === null) {
|
|
13006
|
-
return nullConstructor;
|
|
13007
|
-
}
|
|
13008
|
-
|
|
13009
|
-
return value.constructor;
|
|
13010
|
-
};
|
|
13011
|
-
/**
|
|
13012
|
-
* Get the name of the constructor used to create `value`, using
|
|
13013
|
-
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
13014
|
-
* "null" or "undefined", respectively.
|
|
13015
|
-
* @param {*} value Instance to return the constructor name of.
|
|
13016
|
-
* @returns {String} Name of the constructor.
|
|
13017
|
-
*/
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
var getConstructorName = function (value) {
|
|
13021
|
-
if (value === undefined) {
|
|
13022
|
-
return "undefined";
|
|
13023
|
-
} else if (value === null) {
|
|
13024
|
-
return "null";
|
|
13025
|
-
}
|
|
13026
|
-
|
|
13027
|
-
return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
|
|
13028
|
-
};
|
|
13029
|
-
/**
|
|
13030
|
-
* Return a new validator based on `propType` but which logs a `console.error`
|
|
13031
|
-
* with `explanation` if used.
|
|
13032
|
-
* @param {Function} propType The old, deprecated propType.
|
|
13033
|
-
* @param {String} explanation The message to provide the user of the deprecated propType.
|
|
13034
|
-
* @returns {Function} Validator which logs usage of this propType
|
|
13035
|
-
*/
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
function deprecated(propType, explanation) {
|
|
13039
|
-
return function (props, propName, componentName) {
|
|
13040
|
-
var value = props[propName];
|
|
13041
|
-
|
|
13042
|
-
if (value !== null && value !== undefined) {
|
|
13043
|
-
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
13044
|
-
}
|
|
13045
|
-
|
|
13046
|
-
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
13047
|
-
return null;
|
|
13048
|
-
};
|
|
13049
|
-
}
|
|
13050
|
-
/**
|
|
13051
|
-
* Return a new validator which returns true
|
|
13052
|
-
* if and only if all validators passed as arguments return true.
|
|
13053
|
-
* Like React.propTypes.oneOfType, except "all" instead of "any"
|
|
13054
|
-
* @param {Array} validators Validation functions.
|
|
13055
|
-
* @returns {Function} Combined validator function
|
|
13056
|
-
*/
|
|
13057
|
-
|
|
13058
|
-
function allOfType(validators) {
|
|
13059
|
-
return makeChainable(function (props, propName, componentName) {
|
|
13060
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
13061
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
13062
|
-
}
|
|
13063
|
-
|
|
13064
|
-
return validators.reduce(function (result, validator) {
|
|
13065
|
-
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13066
|
-
}, null);
|
|
13067
|
-
});
|
|
13068
|
-
}
|
|
13069
|
-
/**
|
|
13070
|
-
* Check that the value is a non-negative number.
|
|
13071
|
-
*/
|
|
13072
|
-
|
|
13073
|
-
var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
13074
|
-
var value = props[propName];
|
|
13075
|
-
|
|
13076
|
-
if (typeof value !== "number" || value < 0) {
|
|
13077
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
13078
|
-
}
|
|
13079
|
-
|
|
13080
|
-
return null;
|
|
13081
|
-
});
|
|
13082
|
-
/**
|
|
13083
|
-
* Check that the value is an integer.
|
|
13084
|
-
*/
|
|
13085
|
-
|
|
13086
|
-
var integer = makeChainable(function (props, propName, componentName) {
|
|
13087
|
-
var value = props[propName];
|
|
13088
|
-
|
|
13089
|
-
if (typeof value !== "number" || value % 1 !== 0) {
|
|
13090
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
13091
|
-
}
|
|
13092
|
-
|
|
13093
|
-
return null;
|
|
13094
|
-
});
|
|
13095
|
-
/**
|
|
13096
|
-
* Check that the value is greater than zero.
|
|
13097
|
-
*/
|
|
13098
|
-
|
|
13099
|
-
var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
13100
|
-
var value = props[propName];
|
|
13101
|
-
|
|
13102
|
-
if (typeof value !== "number" || value <= 0) {
|
|
13103
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
13104
|
-
}
|
|
13105
|
-
|
|
13106
|
-
return null;
|
|
13107
|
-
});
|
|
13108
|
-
/**
|
|
13109
|
-
* Check that the value is an Array of two unique values.
|
|
13110
|
-
*/
|
|
13111
|
-
|
|
13112
|
-
var domain = makeChainable(function (props, propName, componentName) {
|
|
13113
|
-
var value = props[propName];
|
|
13114
|
-
|
|
13115
|
-
if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
|
|
13116
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
13117
|
-
}
|
|
13118
|
-
|
|
13119
|
-
return null;
|
|
13120
|
-
});
|
|
13121
|
-
/**
|
|
13122
|
-
* Check that the value looks like a d3 `scale` function.
|
|
13123
|
-
*/
|
|
13124
|
-
|
|
13125
|
-
var scale = makeChainable(function (props, propName, componentName) {
|
|
13126
|
-
var value = props[propName];
|
|
13127
|
-
|
|
13128
|
-
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
13129
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
13130
|
-
}
|
|
13131
|
-
|
|
13132
|
-
return null;
|
|
13133
|
-
});
|
|
13134
|
-
/**
|
|
13135
|
-
* Check that an array contains items of the same type.
|
|
13136
|
-
*/
|
|
13137
|
-
|
|
13138
|
-
var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
13139
|
-
var values = props[propName];
|
|
13140
|
-
|
|
13141
|
-
if (!Array.isArray(values)) {
|
|
13142
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
|
|
13143
|
-
}
|
|
13144
|
-
|
|
13145
|
-
if (values.length < 2) {
|
|
13146
|
-
return null;
|
|
13147
|
-
}
|
|
13148
|
-
|
|
13149
|
-
var comparisonConstructor = getConstructor(values[0]);
|
|
13150
|
-
|
|
13151
|
-
var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
|
|
13152
|
-
return comparisonConstructor !== getConstructor(value);
|
|
13153
|
-
});
|
|
13154
|
-
|
|
13155
|
-
if (typeMismatchedValue) {
|
|
13156
|
-
var constructorName = getConstructorName(values[0]);
|
|
13157
|
-
var otherConstructorName = getConstructorName(typeMismatchedValue);
|
|
13158
|
-
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
13159
|
-
}
|
|
13160
|
-
|
|
13161
|
-
return null;
|
|
13162
|
-
});
|
|
13163
|
-
/**
|
|
13164
|
-
* Check that array prop length matches props.data.length
|
|
13165
|
-
*/
|
|
13166
|
-
|
|
13167
|
-
var matchDataLength = makeChainable(function (props, propName) {
|
|
13168
|
-
if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
|
|
13169
|
-
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
13170
|
-
}
|
|
13171
|
-
|
|
13172
|
-
return null;
|
|
13173
|
-
});
|
|
13174
|
-
/**
|
|
13175
|
-
* Check that the value is a regular expression
|
|
13176
|
-
*/
|
|
13177
|
-
|
|
13178
|
-
var regExp = makeChainable(function (props, propName, componentName) {
|
|
13179
|
-
if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
|
|
13180
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13181
|
-
}
|
|
13182
|
-
|
|
13183
|
-
return null;
|
|
13184
|
-
});
|
|
13185
|
-
|
|
13186
|
-
/***/ }),
|
|
13187
|
-
|
|
13188
11025
|
/***/ "../../victory-core/es/victory-util/scale.js":
|
|
13189
11026
|
/*!***************************************************!*\
|
|
13190
11027
|
!*** ../../victory-core/es/victory-util/scale.js ***!
|