victory-pie 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-pie.js +62 -2276
- package/dist/victory-pie.min.js +1 -1
- package/es/slice.d.ts +1 -34
- package/es/slice.js +2 -15
- package/lib/slice.d.ts +1 -34
- package/lib/slice.js +1 -15
- package/package.json +3 -4
- package/src/slice.tsx +0 -16
package/dist/victory-pie.js
CHANGED
|
@@ -416,11 +416,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
416
416
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
417
417
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
418
418
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
419
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
420
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
421
419
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
422
420
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
423
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
424
421
|
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/es/d3-shape.js");
|
|
425
422
|
|
|
426
423
|
|
|
@@ -435,7 +432,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
435
432
|
|
|
436
433
|
|
|
437
434
|
|
|
438
|
-
|
|
439
435
|
var getPath = function (props) {
|
|
440
436
|
var slice = props.slice,
|
|
441
437
|
radius = props.radius,
|
|
@@ -522,18 +518,6 @@ var Slice = function (initialProps) {
|
|
|
522
518
|
tabIndex: props.tabIndex
|
|
523
519
|
}));
|
|
524
520
|
};
|
|
525
|
-
Slice.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.primitiveProps), {}, {
|
|
526
|
-
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
527
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
528
|
-
innerRadius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
529
|
-
padAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
530
|
-
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
531
|
-
pathFunction: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
|
|
532
|
-
radius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
533
|
-
slice: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
534
|
-
sliceEndAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
535
|
-
sliceStartAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)])
|
|
536
|
-
});
|
|
537
521
|
|
|
538
522
|
/***/ }),
|
|
539
523
|
|
|
@@ -1304,40 +1288,6 @@ function baseDifference(array, values, iteratee, comparator) {
|
|
|
1304
1288
|
module.exports = baseDifference;
|
|
1305
1289
|
|
|
1306
1290
|
|
|
1307
|
-
/***/ }),
|
|
1308
|
-
|
|
1309
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js":
|
|
1310
|
-
/*!****************************************************************************************!*\
|
|
1311
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js ***!
|
|
1312
|
-
\****************************************************************************************/
|
|
1313
|
-
/***/ ((module) => {
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
1317
|
-
* support for iteratee shorthands.
|
|
1318
|
-
*
|
|
1319
|
-
* @private
|
|
1320
|
-
* @param {Array} array The array to inspect.
|
|
1321
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1322
|
-
* @param {number} fromIndex The index to search from.
|
|
1323
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1324
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1325
|
-
*/
|
|
1326
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1327
|
-
var length = array.length,
|
|
1328
|
-
index = fromIndex + (fromRight ? 1 : -1);
|
|
1329
|
-
|
|
1330
|
-
while ((fromRight ? index-- : ++index < length)) {
|
|
1331
|
-
if (predicate(array[index], index, array)) {
|
|
1332
|
-
return index;
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
return -1;
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
module.exports = baseFindIndex;
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
1291
|
/***/ }),
|
|
1342
1292
|
|
|
1343
1293
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1711,34 +1661,6 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
1711
1661
|
module.exports = baseIsMatch;
|
|
1712
1662
|
|
|
1713
1663
|
|
|
1714
|
-
/***/ }),
|
|
1715
|
-
|
|
1716
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js":
|
|
1717
|
-
/*!***************************************************************************************!*\
|
|
1718
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js ***!
|
|
1719
|
-
\***************************************************************************************/
|
|
1720
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1721
|
-
|
|
1722
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
|
|
1723
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
1724
|
-
|
|
1725
|
-
/** `Object#toString` result references. */
|
|
1726
|
-
var regexpTag = '[object RegExp]';
|
|
1727
|
-
|
|
1728
|
-
/**
|
|
1729
|
-
* The base implementation of `_.isRegExp` without Node.js optimizations.
|
|
1730
|
-
*
|
|
1731
|
-
* @private
|
|
1732
|
-
* @param {*} value The value to check.
|
|
1733
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
1734
|
-
*/
|
|
1735
|
-
function baseIsRegExp(value) {
|
|
1736
|
-
return isObjectLike(value) && baseGetTag(value) == regexpTag;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
module.exports = baseIsRegExp;
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
1664
|
/***/ }),
|
|
1743
1665
|
|
|
1744
1666
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js":
|
|
@@ -2246,35 +2168,6 @@ function baseToString(value) {
|
|
|
2246
2168
|
module.exports = baseToString;
|
|
2247
2169
|
|
|
2248
2170
|
|
|
2249
|
-
/***/ }),
|
|
2250
|
-
|
|
2251
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js":
|
|
2252
|
-
/*!***********************************************************************************!*\
|
|
2253
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js ***!
|
|
2254
|
-
\***********************************************************************************/
|
|
2255
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2256
|
-
|
|
2257
|
-
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js");
|
|
2258
|
-
|
|
2259
|
-
/** Used to match leading whitespace. */
|
|
2260
|
-
var reTrimStart = /^\s+/;
|
|
2261
|
-
|
|
2262
|
-
/**
|
|
2263
|
-
* The base implementation of `_.trim`.
|
|
2264
|
-
*
|
|
2265
|
-
* @private
|
|
2266
|
-
* @param {string} string The string to trim.
|
|
2267
|
-
* @returns {string} Returns the trimmed string.
|
|
2268
|
-
*/
|
|
2269
|
-
function baseTrim(string) {
|
|
2270
|
-
return string
|
|
2271
|
-
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2272
|
-
: string;
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
module.exports = baseTrim;
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
2171
|
/***/ }),
|
|
2279
2172
|
|
|
2280
2173
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
|
|
@@ -2544,41 +2437,6 @@ function compareMultiple(object, other, orders) {
|
|
|
2544
2437
|
module.exports = compareMultiple;
|
|
2545
2438
|
|
|
2546
2439
|
|
|
2547
|
-
/***/ }),
|
|
2548
|
-
|
|
2549
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js":
|
|
2550
|
-
/*!*************************************************************************************!*\
|
|
2551
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js ***!
|
|
2552
|
-
\*************************************************************************************/
|
|
2553
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2554
|
-
|
|
2555
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
2556
|
-
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
2557
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
2558
|
-
|
|
2559
|
-
/**
|
|
2560
|
-
* Creates a `_.find` or `_.findLast` function.
|
|
2561
|
-
*
|
|
2562
|
-
* @private
|
|
2563
|
-
* @param {Function} findIndexFunc The function to find the collection index.
|
|
2564
|
-
* @returns {Function} Returns the new find function.
|
|
2565
|
-
*/
|
|
2566
|
-
function createFind(findIndexFunc) {
|
|
2567
|
-
return function(collection, predicate, fromIndex) {
|
|
2568
|
-
var iterable = Object(collection);
|
|
2569
|
-
if (!isArrayLike(collection)) {
|
|
2570
|
-
var iteratee = baseIteratee(predicate, 3);
|
|
2571
|
-
collection = keys(collection);
|
|
2572
|
-
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
|
2573
|
-
}
|
|
2574
|
-
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2575
|
-
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
2576
|
-
};
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
module.exports = createFind;
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
2440
|
/***/ }),
|
|
2583
2441
|
|
|
2584
2442
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
|
|
@@ -3513,47 +3371,6 @@ function identity(value) {
|
|
|
3513
3371
|
module.exports = identity;
|
|
3514
3372
|
|
|
3515
3373
|
|
|
3516
|
-
/***/ }),
|
|
3517
|
-
|
|
3518
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js":
|
|
3519
|
-
/*!***********************************************************************************!*\
|
|
3520
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js ***!
|
|
3521
|
-
\***********************************************************************************/
|
|
3522
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
3523
|
-
|
|
3524
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
3525
|
-
var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js");
|
|
3526
|
-
|
|
3527
|
-
/** Detect free variable `exports`. */
|
|
3528
|
-
var freeExports = true && exports && !exports.nodeType && exports;
|
|
3529
|
-
|
|
3530
|
-
/** Detect free variable `module`. */
|
|
3531
|
-
var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
|
|
3532
|
-
|
|
3533
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
3534
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
3535
|
-
|
|
3536
|
-
/** Detect free variable `process` from Node.js. */
|
|
3537
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
3538
|
-
|
|
3539
|
-
/** Used to access faster Node.js helpers. */
|
|
3540
|
-
var nodeUtil = (function() {
|
|
3541
|
-
try {
|
|
3542
|
-
// Use `util.types` for Node.js 10+.
|
|
3543
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
3544
|
-
|
|
3545
|
-
if (types) {
|
|
3546
|
-
return types;
|
|
3547
|
-
}
|
|
3548
|
-
|
|
3549
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
3550
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
3551
|
-
} catch (e) {}
|
|
3552
|
-
}());
|
|
3553
|
-
|
|
3554
|
-
module.exports = nodeUtil;
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
3374
|
/***/ }),
|
|
3558
3375
|
|
|
3559
3376
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js":
|
|
@@ -3776,35 +3593,6 @@ function toKey(value) {
|
|
|
3776
3593
|
module.exports = toKey;
|
|
3777
3594
|
|
|
3778
3595
|
|
|
3779
|
-
/***/ }),
|
|
3780
|
-
|
|
3781
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js":
|
|
3782
|
-
/*!******************************************************************************************!*\
|
|
3783
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js ***!
|
|
3784
|
-
\******************************************************************************************/
|
|
3785
|
-
/***/ ((module) => {
|
|
3786
|
-
|
|
3787
|
-
/** Used to match a single whitespace character. */
|
|
3788
|
-
var reWhitespace = /\s/;
|
|
3789
|
-
|
|
3790
|
-
/**
|
|
3791
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
3792
|
-
* character of `string`.
|
|
3793
|
-
*
|
|
3794
|
-
* @private
|
|
3795
|
-
* @param {string} string The string to inspect.
|
|
3796
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
3797
|
-
*/
|
|
3798
|
-
function trimmedEndIndex(string) {
|
|
3799
|
-
var index = string.length;
|
|
3800
|
-
|
|
3801
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
3802
|
-
return index;
|
|
3803
|
-
}
|
|
3804
|
-
|
|
3805
|
-
module.exports = trimmedEndIndex;
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
3596
|
/***/ }),
|
|
3809
3597
|
|
|
3810
3598
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js":
|
|
@@ -3969,123 +3757,6 @@ function eq(value, other) {
|
|
|
3969
3757
|
module.exports = eq;
|
|
3970
3758
|
|
|
3971
3759
|
|
|
3972
|
-
/***/ }),
|
|
3973
|
-
|
|
3974
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js":
|
|
3975
|
-
/*!******************************************************************************!*\
|
|
3976
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js ***!
|
|
3977
|
-
\******************************************************************************/
|
|
3978
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3979
|
-
|
|
3980
|
-
var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js"),
|
|
3981
|
-
findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js");
|
|
3982
|
-
|
|
3983
|
-
/**
|
|
3984
|
-
* Iterates over elements of `collection`, returning the first element
|
|
3985
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
3986
|
-
* arguments: (value, index|key, collection).
|
|
3987
|
-
*
|
|
3988
|
-
* @static
|
|
3989
|
-
* @memberOf _
|
|
3990
|
-
* @since 0.1.0
|
|
3991
|
-
* @category Collection
|
|
3992
|
-
* @param {Array|Object} collection The collection to inspect.
|
|
3993
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
3994
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
3995
|
-
* @returns {*} Returns the matched element, else `undefined`.
|
|
3996
|
-
* @example
|
|
3997
|
-
*
|
|
3998
|
-
* var users = [
|
|
3999
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
4000
|
-
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
4001
|
-
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
4002
|
-
* ];
|
|
4003
|
-
*
|
|
4004
|
-
* _.find(users, function(o) { return o.age < 40; });
|
|
4005
|
-
* // => object for 'barney'
|
|
4006
|
-
*
|
|
4007
|
-
* // The `_.matches` iteratee shorthand.
|
|
4008
|
-
* _.find(users, { 'age': 1, 'active': true });
|
|
4009
|
-
* // => object for 'pebbles'
|
|
4010
|
-
*
|
|
4011
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4012
|
-
* _.find(users, ['active', false]);
|
|
4013
|
-
* // => object for 'fred'
|
|
4014
|
-
*
|
|
4015
|
-
* // The `_.property` iteratee shorthand.
|
|
4016
|
-
* _.find(users, 'active');
|
|
4017
|
-
* // => object for 'barney'
|
|
4018
|
-
*/
|
|
4019
|
-
var find = createFind(findIndex);
|
|
4020
|
-
|
|
4021
|
-
module.exports = find;
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
/***/ }),
|
|
4025
|
-
|
|
4026
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js":
|
|
4027
|
-
/*!***********************************************************************************!*\
|
|
4028
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js ***!
|
|
4029
|
-
\***********************************************************************************/
|
|
4030
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4031
|
-
|
|
4032
|
-
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js"),
|
|
4033
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
4034
|
-
toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js");
|
|
4035
|
-
|
|
4036
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4037
|
-
var nativeMax = Math.max;
|
|
4038
|
-
|
|
4039
|
-
/**
|
|
4040
|
-
* This method is like `_.find` except that it returns the index of the first
|
|
4041
|
-
* element `predicate` returns truthy for instead of the element itself.
|
|
4042
|
-
*
|
|
4043
|
-
* @static
|
|
4044
|
-
* @memberOf _
|
|
4045
|
-
* @since 1.1.0
|
|
4046
|
-
* @category Array
|
|
4047
|
-
* @param {Array} array The array to inspect.
|
|
4048
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4049
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4050
|
-
* @returns {number} Returns the index of the found element, else `-1`.
|
|
4051
|
-
* @example
|
|
4052
|
-
*
|
|
4053
|
-
* var users = [
|
|
4054
|
-
* { 'user': 'barney', 'active': false },
|
|
4055
|
-
* { 'user': 'fred', 'active': false },
|
|
4056
|
-
* { 'user': 'pebbles', 'active': true }
|
|
4057
|
-
* ];
|
|
4058
|
-
*
|
|
4059
|
-
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
4060
|
-
* // => 0
|
|
4061
|
-
*
|
|
4062
|
-
* // The `_.matches` iteratee shorthand.
|
|
4063
|
-
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
4064
|
-
* // => 1
|
|
4065
|
-
*
|
|
4066
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4067
|
-
* _.findIndex(users, ['active', false]);
|
|
4068
|
-
* // => 0
|
|
4069
|
-
*
|
|
4070
|
-
* // The `_.property` iteratee shorthand.
|
|
4071
|
-
* _.findIndex(users, 'active');
|
|
4072
|
-
* // => 2
|
|
4073
|
-
*/
|
|
4074
|
-
function findIndex(array, predicate, fromIndex) {
|
|
4075
|
-
var length = array == null ? 0 : array.length;
|
|
4076
|
-
if (!length) {
|
|
4077
|
-
return -1;
|
|
4078
|
-
}
|
|
4079
|
-
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4080
|
-
if (index < 0) {
|
|
4081
|
-
index = nativeMax(length + index, 0);
|
|
4082
|
-
}
|
|
4083
|
-
return baseFindIndex(array, baseIteratee(predicate, 3), index);
|
|
4084
|
-
}
|
|
4085
|
-
|
|
4086
|
-
module.exports = findIndex;
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
3760
|
/***/ }),
|
|
4090
3761
|
|
|
4091
3762
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":
|
|
@@ -4852,43 +4523,6 @@ function isPlainObject(value) {
|
|
|
4852
4523
|
module.exports = isPlainObject;
|
|
4853
4524
|
|
|
4854
4525
|
|
|
4855
|
-
/***/ }),
|
|
4856
|
-
|
|
4857
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js":
|
|
4858
|
-
/*!**********************************************************************************!*\
|
|
4859
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js ***!
|
|
4860
|
-
\**********************************************************************************/
|
|
4861
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4862
|
-
|
|
4863
|
-
var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js"),
|
|
4864
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
4865
|
-
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js");
|
|
4866
|
-
|
|
4867
|
-
/* Node.js helper references. */
|
|
4868
|
-
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
|
4869
|
-
|
|
4870
|
-
/**
|
|
4871
|
-
* Checks if `value` is classified as a `RegExp` object.
|
|
4872
|
-
*
|
|
4873
|
-
* @static
|
|
4874
|
-
* @memberOf _
|
|
4875
|
-
* @since 0.1.0
|
|
4876
|
-
* @category Lang
|
|
4877
|
-
* @param {*} value The value to check.
|
|
4878
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
4879
|
-
* @example
|
|
4880
|
-
*
|
|
4881
|
-
* _.isRegExp(/abc/);
|
|
4882
|
-
* // => true
|
|
4883
|
-
*
|
|
4884
|
-
* _.isRegExp('/abc/');
|
|
4885
|
-
* // => false
|
|
4886
|
-
*/
|
|
4887
|
-
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
4888
|
-
|
|
4889
|
-
module.exports = isRegExp;
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
4526
|
/***/ }),
|
|
4893
4527
|
|
|
4894
4528
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":
|
|
@@ -5408,247 +5042,75 @@ module.exports = property;
|
|
|
5408
5042
|
|
|
5409
5043
|
/***/ }),
|
|
5410
5044
|
|
|
5411
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5045
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5412
5046
|
/*!**********************************************************************************!*\
|
|
5413
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5047
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5414
5048
|
\**********************************************************************************/
|
|
5415
5049
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5416
5050
|
|
|
5417
|
-
var
|
|
5418
|
-
|
|
5419
|
-
/** Used as references for various `Number` constants. */
|
|
5420
|
-
var INFINITY = 1 / 0,
|
|
5421
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
5051
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5422
5052
|
|
|
5423
5053
|
/**
|
|
5424
|
-
* Converts `value` to a
|
|
5054
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
5055
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
5425
5056
|
*
|
|
5426
5057
|
* @static
|
|
5427
5058
|
* @memberOf _
|
|
5428
|
-
* @since 4.
|
|
5059
|
+
* @since 4.0.0
|
|
5429
5060
|
* @category Lang
|
|
5430
5061
|
* @param {*} value The value to convert.
|
|
5431
|
-
* @returns {
|
|
5062
|
+
* @returns {string} Returns the converted string.
|
|
5432
5063
|
* @example
|
|
5433
5064
|
*
|
|
5434
|
-
* _.
|
|
5435
|
-
* // =>
|
|
5436
|
-
*
|
|
5437
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
5438
|
-
* // => 5e-324
|
|
5065
|
+
* _.toString(null);
|
|
5066
|
+
* // => ''
|
|
5439
5067
|
*
|
|
5440
|
-
* _.
|
|
5441
|
-
* // =>
|
|
5068
|
+
* _.toString(-0);
|
|
5069
|
+
* // => '-0'
|
|
5442
5070
|
*
|
|
5443
|
-
* _.
|
|
5444
|
-
* // => 3
|
|
5071
|
+
* _.toString([1, 2, 3]);
|
|
5072
|
+
* // => '1,2,3'
|
|
5445
5073
|
*/
|
|
5446
|
-
function
|
|
5447
|
-
|
|
5448
|
-
return value === 0 ? value : 0;
|
|
5449
|
-
}
|
|
5450
|
-
value = toNumber(value);
|
|
5451
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
5452
|
-
var sign = (value < 0 ? -1 : 1);
|
|
5453
|
-
return sign * MAX_INTEGER;
|
|
5454
|
-
}
|
|
5455
|
-
return value === value ? value : 0;
|
|
5074
|
+
function toString(value) {
|
|
5075
|
+
return value == null ? '' : baseToString(value);
|
|
5456
5076
|
}
|
|
5457
5077
|
|
|
5458
|
-
module.exports =
|
|
5078
|
+
module.exports = toString;
|
|
5459
5079
|
|
|
5460
5080
|
|
|
5461
5081
|
/***/ }),
|
|
5462
5082
|
|
|
5463
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5464
|
-
|
|
5465
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5466
|
-
|
|
5083
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5084
|
+
/*!******************************************************************************!*\
|
|
5085
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5086
|
+
\******************************************************************************/
|
|
5467
5087
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5468
5088
|
|
|
5469
|
-
var
|
|
5089
|
+
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5470
5090
|
|
|
5471
5091
|
/**
|
|
5472
|
-
*
|
|
5473
|
-
*
|
|
5474
|
-
*
|
|
5475
|
-
*
|
|
5092
|
+
* Creates a duplicate-free version of an array, using
|
|
5093
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5094
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
5095
|
+
* is kept. The order of result values is determined by the order they occur
|
|
5096
|
+
* in the array.
|
|
5476
5097
|
*
|
|
5477
5098
|
* @static
|
|
5478
5099
|
* @memberOf _
|
|
5479
|
-
* @since
|
|
5480
|
-
* @category
|
|
5481
|
-
* @param {
|
|
5482
|
-
* @returns {
|
|
5100
|
+
* @since 0.1.0
|
|
5101
|
+
* @category Array
|
|
5102
|
+
* @param {Array} array The array to inspect.
|
|
5103
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
5483
5104
|
* @example
|
|
5484
5105
|
*
|
|
5485
|
-
* _.
|
|
5486
|
-
* // =>
|
|
5487
|
-
*
|
|
5488
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
5489
|
-
* // => 0
|
|
5490
|
-
*
|
|
5491
|
-
* _.toInteger(Infinity);
|
|
5492
|
-
* // => 1.7976931348623157e+308
|
|
5493
|
-
*
|
|
5494
|
-
* _.toInteger('3.2');
|
|
5495
|
-
* // => 3
|
|
5106
|
+
* _.uniq([2, 1, 2]);
|
|
5107
|
+
* // => [2, 1]
|
|
5496
5108
|
*/
|
|
5497
|
-
function
|
|
5498
|
-
|
|
5499
|
-
remainder = result % 1;
|
|
5500
|
-
|
|
5501
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
5109
|
+
function uniq(array) {
|
|
5110
|
+
return (array && array.length) ? baseUniq(array) : [];
|
|
5502
5111
|
}
|
|
5503
5112
|
|
|
5504
|
-
module.exports =
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
/***/ }),
|
|
5508
|
-
|
|
5509
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js":
|
|
5510
|
-
/*!**********************************************************************************!*\
|
|
5511
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js ***!
|
|
5512
|
-
\**********************************************************************************/
|
|
5513
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5514
|
-
|
|
5515
|
-
var baseTrim = __webpack_require__(/*! ./_baseTrim */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js"),
|
|
5516
|
-
isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),
|
|
5517
|
-
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
5518
|
-
|
|
5519
|
-
/** Used as references for various `Number` constants. */
|
|
5520
|
-
var NAN = 0 / 0;
|
|
5521
|
-
|
|
5522
|
-
/** Used to detect bad signed hexadecimal string values. */
|
|
5523
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5524
|
-
|
|
5525
|
-
/** Used to detect binary string values. */
|
|
5526
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
5527
|
-
|
|
5528
|
-
/** Used to detect octal string values. */
|
|
5529
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
5530
|
-
|
|
5531
|
-
/** Built-in method references without a dependency on `root`. */
|
|
5532
|
-
var freeParseInt = parseInt;
|
|
5533
|
-
|
|
5534
|
-
/**
|
|
5535
|
-
* Converts `value` to a number.
|
|
5536
|
-
*
|
|
5537
|
-
* @static
|
|
5538
|
-
* @memberOf _
|
|
5539
|
-
* @since 4.0.0
|
|
5540
|
-
* @category Lang
|
|
5541
|
-
* @param {*} value The value to process.
|
|
5542
|
-
* @returns {number} Returns the number.
|
|
5543
|
-
* @example
|
|
5544
|
-
*
|
|
5545
|
-
* _.toNumber(3.2);
|
|
5546
|
-
* // => 3.2
|
|
5547
|
-
*
|
|
5548
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
5549
|
-
* // => 5e-324
|
|
5550
|
-
*
|
|
5551
|
-
* _.toNumber(Infinity);
|
|
5552
|
-
* // => Infinity
|
|
5553
|
-
*
|
|
5554
|
-
* _.toNumber('3.2');
|
|
5555
|
-
* // => 3.2
|
|
5556
|
-
*/
|
|
5557
|
-
function toNumber(value) {
|
|
5558
|
-
if (typeof value == 'number') {
|
|
5559
|
-
return value;
|
|
5560
|
-
}
|
|
5561
|
-
if (isSymbol(value)) {
|
|
5562
|
-
return NAN;
|
|
5563
|
-
}
|
|
5564
|
-
if (isObject(value)) {
|
|
5565
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
5566
|
-
value = isObject(other) ? (other + '') : other;
|
|
5567
|
-
}
|
|
5568
|
-
if (typeof value != 'string') {
|
|
5569
|
-
return value === 0 ? value : +value;
|
|
5570
|
-
}
|
|
5571
|
-
value = baseTrim(value);
|
|
5572
|
-
var isBinary = reIsBinary.test(value);
|
|
5573
|
-
return (isBinary || reIsOctal.test(value))
|
|
5574
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
5575
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
5576
|
-
}
|
|
5577
|
-
|
|
5578
|
-
module.exports = toNumber;
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
/***/ }),
|
|
5582
|
-
|
|
5583
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5584
|
-
/*!**********************************************************************************!*\
|
|
5585
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5586
|
-
\**********************************************************************************/
|
|
5587
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5588
|
-
|
|
5589
|
-
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5590
|
-
|
|
5591
|
-
/**
|
|
5592
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
5593
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
5594
|
-
*
|
|
5595
|
-
* @static
|
|
5596
|
-
* @memberOf _
|
|
5597
|
-
* @since 4.0.0
|
|
5598
|
-
* @category Lang
|
|
5599
|
-
* @param {*} value The value to convert.
|
|
5600
|
-
* @returns {string} Returns the converted string.
|
|
5601
|
-
* @example
|
|
5602
|
-
*
|
|
5603
|
-
* _.toString(null);
|
|
5604
|
-
* // => ''
|
|
5605
|
-
*
|
|
5606
|
-
* _.toString(-0);
|
|
5607
|
-
* // => '-0'
|
|
5608
|
-
*
|
|
5609
|
-
* _.toString([1, 2, 3]);
|
|
5610
|
-
* // => '1,2,3'
|
|
5611
|
-
*/
|
|
5612
|
-
function toString(value) {
|
|
5613
|
-
return value == null ? '' : baseToString(value);
|
|
5614
|
-
}
|
|
5615
|
-
|
|
5616
|
-
module.exports = toString;
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
/***/ }),
|
|
5620
|
-
|
|
5621
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5622
|
-
/*!******************************************************************************!*\
|
|
5623
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5624
|
-
\******************************************************************************/
|
|
5625
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5626
|
-
|
|
5627
|
-
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5628
|
-
|
|
5629
|
-
/**
|
|
5630
|
-
* Creates a duplicate-free version of an array, using
|
|
5631
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5632
|
-
* for equality comparisons, in which only the first occurrence of each element
|
|
5633
|
-
* is kept. The order of result values is determined by the order they occur
|
|
5634
|
-
* in the array.
|
|
5635
|
-
*
|
|
5636
|
-
* @static
|
|
5637
|
-
* @memberOf _
|
|
5638
|
-
* @since 0.1.0
|
|
5639
|
-
* @category Array
|
|
5640
|
-
* @param {Array} array The array to inspect.
|
|
5641
|
-
* @returns {Array} Returns the new duplicate free array.
|
|
5642
|
-
* @example
|
|
5643
|
-
*
|
|
5644
|
-
* _.uniq([2, 1, 2]);
|
|
5645
|
-
* // => [2, 1]
|
|
5646
|
-
*/
|
|
5647
|
-
function uniq(array) {
|
|
5648
|
-
return (array && array.length) ? baseUniq(array) : [];
|
|
5649
|
-
}
|
|
5650
|
-
|
|
5651
|
-
module.exports = uniq;
|
|
5113
|
+
module.exports = uniq;
|
|
5652
5114
|
|
|
5653
5115
|
|
|
5654
5116
|
/***/ }),
|
|
@@ -5710,919 +5172,24 @@ var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node
|
|
|
5710
5172
|
*
|
|
5711
5173
|
* @static
|
|
5712
5174
|
* @memberOf _
|
|
5713
|
-
* @since 0.1.0
|
|
5714
|
-
* @category Array
|
|
5715
|
-
* @param {Array} array The array to inspect.
|
|
5716
|
-
* @param {...*} [values] The values to exclude.
|
|
5717
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
5718
|
-
* @see _.difference, _.xor
|
|
5719
|
-
* @example
|
|
5720
|
-
*
|
|
5721
|
-
* _.without([2, 1, 2, 3], 1, 2);
|
|
5722
|
-
* // => [3]
|
|
5723
|
-
*/
|
|
5724
|
-
var without = baseRest(function(array, values) {
|
|
5725
|
-
return isArrayLikeObject(array)
|
|
5726
|
-
? baseDifference(array, values)
|
|
5727
|
-
: [];
|
|
5728
|
-
});
|
|
5729
|
-
|
|
5730
|
-
module.exports = without;
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
/***/ }),
|
|
5734
|
-
|
|
5735
|
-
/***/ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js":
|
|
5736
|
-
/*!*******************************************************************************************!*\
|
|
5737
|
-
!*** ../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js ***!
|
|
5738
|
-
\*******************************************************************************************/
|
|
5739
|
-
/***/ ((module) => {
|
|
5740
|
-
|
|
5741
|
-
"use strict";
|
|
5742
|
-
/*
|
|
5743
|
-
object-assign
|
|
5744
|
-
(c) Sindre Sorhus
|
|
5745
|
-
@license MIT
|
|
5746
|
-
*/
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
/* eslint-disable no-unused-vars */
|
|
5750
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
5751
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5752
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
5753
|
-
|
|
5754
|
-
function toObject(val) {
|
|
5755
|
-
if (val === null || val === undefined) {
|
|
5756
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
5757
|
-
}
|
|
5758
|
-
|
|
5759
|
-
return Object(val);
|
|
5760
|
-
}
|
|
5761
|
-
|
|
5762
|
-
function shouldUseNative() {
|
|
5763
|
-
try {
|
|
5764
|
-
if (!Object.assign) {
|
|
5765
|
-
return false;
|
|
5766
|
-
}
|
|
5767
|
-
|
|
5768
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
5769
|
-
|
|
5770
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
5771
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
5772
|
-
test1[5] = 'de';
|
|
5773
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
5774
|
-
return false;
|
|
5775
|
-
}
|
|
5776
|
-
|
|
5777
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
5778
|
-
var test2 = {};
|
|
5779
|
-
for (var i = 0; i < 10; i++) {
|
|
5780
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
5781
|
-
}
|
|
5782
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
5783
|
-
return test2[n];
|
|
5784
|
-
});
|
|
5785
|
-
if (order2.join('') !== '0123456789') {
|
|
5786
|
-
return false;
|
|
5787
|
-
}
|
|
5788
|
-
|
|
5789
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
5790
|
-
var test3 = {};
|
|
5791
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
5792
|
-
test3[letter] = letter;
|
|
5793
|
-
});
|
|
5794
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
5795
|
-
'abcdefghijklmnopqrst') {
|
|
5796
|
-
return false;
|
|
5797
|
-
}
|
|
5798
|
-
|
|
5799
|
-
return true;
|
|
5800
|
-
} catch (err) {
|
|
5801
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
5802
|
-
return false;
|
|
5803
|
-
}
|
|
5804
|
-
}
|
|
5805
|
-
|
|
5806
|
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
5807
|
-
var from;
|
|
5808
|
-
var to = toObject(target);
|
|
5809
|
-
var symbols;
|
|
5810
|
-
|
|
5811
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
5812
|
-
from = Object(arguments[s]);
|
|
5813
|
-
|
|
5814
|
-
for (var key in from) {
|
|
5815
|
-
if (hasOwnProperty.call(from, key)) {
|
|
5816
|
-
to[key] = from[key];
|
|
5817
|
-
}
|
|
5818
|
-
}
|
|
5819
|
-
|
|
5820
|
-
if (getOwnPropertySymbols) {
|
|
5821
|
-
symbols = getOwnPropertySymbols(from);
|
|
5822
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
5823
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
5824
|
-
to[symbols[i]] = from[symbols[i]];
|
|
5825
|
-
}
|
|
5826
|
-
}
|
|
5827
|
-
}
|
|
5828
|
-
}
|
|
5829
|
-
|
|
5830
|
-
return to;
|
|
5831
|
-
};
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
/***/ }),
|
|
5835
|
-
|
|
5836
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js":
|
|
5837
|
-
/*!***********************************************************************************************!*\
|
|
5838
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js ***!
|
|
5839
|
-
\***********************************************************************************************/
|
|
5840
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5841
|
-
|
|
5842
|
-
"use strict";
|
|
5843
|
-
/**
|
|
5844
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5845
|
-
*
|
|
5846
|
-
* This source code is licensed under the MIT license found in the
|
|
5847
|
-
* LICENSE file in the root directory of this source tree.
|
|
5848
|
-
*/
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
var printWarning = function() {};
|
|
5853
|
-
|
|
5854
|
-
if (true) {
|
|
5855
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5856
|
-
var loggedTypeFailures = {};
|
|
5857
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
5858
|
-
|
|
5859
|
-
printWarning = function(text) {
|
|
5860
|
-
var message = 'Warning: ' + text;
|
|
5861
|
-
if (typeof console !== 'undefined') {
|
|
5862
|
-
console.error(message);
|
|
5863
|
-
}
|
|
5864
|
-
try {
|
|
5865
|
-
// --- Welcome to debugging React ---
|
|
5866
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
5867
|
-
// to find the callsite that caused this warning to fire.
|
|
5868
|
-
throw new Error(message);
|
|
5869
|
-
} catch (x) { /**/ }
|
|
5870
|
-
};
|
|
5871
|
-
}
|
|
5872
|
-
|
|
5873
|
-
/**
|
|
5874
|
-
* Assert that the values match with the type specs.
|
|
5875
|
-
* Error messages are memorized and will only be shown once.
|
|
5876
|
-
*
|
|
5877
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
5878
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
5879
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
5880
|
-
* @param {string} componentName Name of the component for error messages.
|
|
5881
|
-
* @param {?Function} getStack Returns the component stack.
|
|
5882
|
-
* @private
|
|
5883
|
-
*/
|
|
5884
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
5885
|
-
if (true) {
|
|
5886
|
-
for (var typeSpecName in typeSpecs) {
|
|
5887
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
5888
|
-
var error;
|
|
5889
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
5890
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
5891
|
-
// After these have been cleaned up, we'll let them throw.
|
|
5892
|
-
try {
|
|
5893
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
5894
|
-
// behavior as without this statement except with a better message.
|
|
5895
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
5896
|
-
var err = Error(
|
|
5897
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
5898
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
5899
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
5900
|
-
);
|
|
5901
|
-
err.name = 'Invariant Violation';
|
|
5902
|
-
throw err;
|
|
5903
|
-
}
|
|
5904
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
5905
|
-
} catch (ex) {
|
|
5906
|
-
error = ex;
|
|
5907
|
-
}
|
|
5908
|
-
if (error && !(error instanceof Error)) {
|
|
5909
|
-
printWarning(
|
|
5910
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
5911
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
5912
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
5913
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
5914
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
5915
|
-
'shape all require an argument).'
|
|
5916
|
-
);
|
|
5917
|
-
}
|
|
5918
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
5919
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
5920
|
-
// same error.
|
|
5921
|
-
loggedTypeFailures[error.message] = true;
|
|
5922
|
-
|
|
5923
|
-
var stack = getStack ? getStack() : '';
|
|
5924
|
-
|
|
5925
|
-
printWarning(
|
|
5926
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
5927
|
-
);
|
|
5928
|
-
}
|
|
5929
|
-
}
|
|
5930
|
-
}
|
|
5931
|
-
}
|
|
5932
|
-
}
|
|
5933
|
-
|
|
5934
|
-
/**
|
|
5935
|
-
* Resets warning cache when testing.
|
|
5936
|
-
*
|
|
5937
|
-
* @private
|
|
5938
|
-
*/
|
|
5939
|
-
checkPropTypes.resetWarningCache = function() {
|
|
5940
|
-
if (true) {
|
|
5941
|
-
loggedTypeFailures = {};
|
|
5942
|
-
}
|
|
5943
|
-
}
|
|
5944
|
-
|
|
5945
|
-
module.exports = checkPropTypes;
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
/***/ }),
|
|
5949
|
-
|
|
5950
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
5951
|
-
/*!********************************************************************************************************!*\
|
|
5952
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
5953
|
-
\********************************************************************************************************/
|
|
5954
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5955
|
-
|
|
5956
|
-
"use strict";
|
|
5957
|
-
/**
|
|
5958
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5959
|
-
*
|
|
5960
|
-
* This source code is licensed under the MIT license found in the
|
|
5961
|
-
* LICENSE file in the root directory of this source tree.
|
|
5962
|
-
*/
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
5967
|
-
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");
|
|
5968
|
-
|
|
5969
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5970
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
5971
|
-
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js");
|
|
5972
|
-
|
|
5973
|
-
var printWarning = function() {};
|
|
5974
|
-
|
|
5975
|
-
if (true) {
|
|
5976
|
-
printWarning = function(text) {
|
|
5977
|
-
var message = 'Warning: ' + text;
|
|
5978
|
-
if (typeof console !== 'undefined') {
|
|
5979
|
-
console.error(message);
|
|
5980
|
-
}
|
|
5981
|
-
try {
|
|
5982
|
-
// --- Welcome to debugging React ---
|
|
5983
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
5984
|
-
// to find the callsite that caused this warning to fire.
|
|
5985
|
-
throw new Error(message);
|
|
5986
|
-
} catch (x) {}
|
|
5987
|
-
};
|
|
5988
|
-
}
|
|
5989
|
-
|
|
5990
|
-
function emptyFunctionThatReturnsNull() {
|
|
5991
|
-
return null;
|
|
5992
|
-
}
|
|
5993
|
-
|
|
5994
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
5995
|
-
/* global Symbol */
|
|
5996
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
5997
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
5998
|
-
|
|
5999
|
-
/**
|
|
6000
|
-
* Returns the iterator method function contained on the iterable object.
|
|
6001
|
-
*
|
|
6002
|
-
* Be sure to invoke the function with the iterable as context:
|
|
6003
|
-
*
|
|
6004
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
6005
|
-
* if (iteratorFn) {
|
|
6006
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
6007
|
-
* ...
|
|
6008
|
-
* }
|
|
6009
|
-
*
|
|
6010
|
-
* @param {?object} maybeIterable
|
|
6011
|
-
* @return {?function}
|
|
6012
|
-
*/
|
|
6013
|
-
function getIteratorFn(maybeIterable) {
|
|
6014
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
6015
|
-
if (typeof iteratorFn === 'function') {
|
|
6016
|
-
return iteratorFn;
|
|
6017
|
-
}
|
|
6018
|
-
}
|
|
6019
|
-
|
|
6020
|
-
/**
|
|
6021
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
6022
|
-
* supplied to React components. Example usage:
|
|
6023
|
-
*
|
|
6024
|
-
* var Props = require('ReactPropTypes');
|
|
6025
|
-
* var MyArticle = React.createClass({
|
|
6026
|
-
* propTypes: {
|
|
6027
|
-
* // An optional string prop named "description".
|
|
6028
|
-
* description: Props.string,
|
|
6029
|
-
*
|
|
6030
|
-
* // A required enum prop named "category".
|
|
6031
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
6032
|
-
*
|
|
6033
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
6034
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
6035
|
-
* },
|
|
6036
|
-
* render: function() { ... }
|
|
6037
|
-
* });
|
|
6038
|
-
*
|
|
6039
|
-
* A more formal specification of how these methods are used:
|
|
6040
|
-
*
|
|
6041
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
6042
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
6043
|
-
*
|
|
6044
|
-
* Each and every declaration produces a function with the same signature. This
|
|
6045
|
-
* allows the creation of custom validation functions. For example:
|
|
6046
|
-
*
|
|
6047
|
-
* var MyLink = React.createClass({
|
|
6048
|
-
* propTypes: {
|
|
6049
|
-
* // An optional string or URI prop named "href".
|
|
6050
|
-
* href: function(props, propName, componentName) {
|
|
6051
|
-
* var propValue = props[propName];
|
|
6052
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
6053
|
-
* !(propValue instanceof URI)) {
|
|
6054
|
-
* return new Error(
|
|
6055
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
6056
|
-
* componentName
|
|
6057
|
-
* );
|
|
6058
|
-
* }
|
|
6059
|
-
* }
|
|
6060
|
-
* },
|
|
6061
|
-
* render: function() {...}
|
|
6062
|
-
* });
|
|
6063
|
-
*
|
|
6064
|
-
* @internal
|
|
6065
|
-
*/
|
|
6066
|
-
|
|
6067
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
6068
|
-
|
|
6069
|
-
// Important!
|
|
6070
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6071
|
-
var ReactPropTypes = {
|
|
6072
|
-
array: createPrimitiveTypeChecker('array'),
|
|
6073
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6074
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
6075
|
-
func: createPrimitiveTypeChecker('function'),
|
|
6076
|
-
number: createPrimitiveTypeChecker('number'),
|
|
6077
|
-
object: createPrimitiveTypeChecker('object'),
|
|
6078
|
-
string: createPrimitiveTypeChecker('string'),
|
|
6079
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
6080
|
-
|
|
6081
|
-
any: createAnyTypeChecker(),
|
|
6082
|
-
arrayOf: createArrayOfTypeChecker,
|
|
6083
|
-
element: createElementTypeChecker(),
|
|
6084
|
-
elementType: createElementTypeTypeChecker(),
|
|
6085
|
-
instanceOf: createInstanceTypeChecker,
|
|
6086
|
-
node: createNodeChecker(),
|
|
6087
|
-
objectOf: createObjectOfTypeChecker,
|
|
6088
|
-
oneOf: createEnumTypeChecker,
|
|
6089
|
-
oneOfType: createUnionTypeChecker,
|
|
6090
|
-
shape: createShapeTypeChecker,
|
|
6091
|
-
exact: createStrictShapeTypeChecker,
|
|
6092
|
-
};
|
|
6093
|
-
|
|
6094
|
-
/**
|
|
6095
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
6096
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
6097
|
-
*/
|
|
6098
|
-
/*eslint-disable no-self-compare*/
|
|
6099
|
-
function is(x, y) {
|
|
6100
|
-
// SameValue algorithm
|
|
6101
|
-
if (x === y) {
|
|
6102
|
-
// Steps 1-5, 7-10
|
|
6103
|
-
// Steps 6.b-6.e: +0 != -0
|
|
6104
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
6105
|
-
} else {
|
|
6106
|
-
// Step 6.a: NaN == NaN
|
|
6107
|
-
return x !== x && y !== y;
|
|
6108
|
-
}
|
|
6109
|
-
}
|
|
6110
|
-
/*eslint-enable no-self-compare*/
|
|
6111
|
-
|
|
6112
|
-
/**
|
|
6113
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
6114
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
6115
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
6116
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
6117
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
6118
|
-
*/
|
|
6119
|
-
function PropTypeError(message, data) {
|
|
6120
|
-
this.message = message;
|
|
6121
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
6122
|
-
this.stack = '';
|
|
6123
|
-
}
|
|
6124
|
-
// Make `instanceof Error` still work for returned errors.
|
|
6125
|
-
PropTypeError.prototype = Error.prototype;
|
|
6126
|
-
|
|
6127
|
-
function createChainableTypeChecker(validate) {
|
|
6128
|
-
if (true) {
|
|
6129
|
-
var manualPropTypeCallCache = {};
|
|
6130
|
-
var manualPropTypeWarningCount = 0;
|
|
6131
|
-
}
|
|
6132
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
6133
|
-
componentName = componentName || ANONYMOUS;
|
|
6134
|
-
propFullName = propFullName || propName;
|
|
6135
|
-
|
|
6136
|
-
if (secret !== ReactPropTypesSecret) {
|
|
6137
|
-
if (throwOnDirectAccess) {
|
|
6138
|
-
// New behavior only for users of `prop-types` package
|
|
6139
|
-
var err = new Error(
|
|
6140
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
6141
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
6142
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
6143
|
-
);
|
|
6144
|
-
err.name = 'Invariant Violation';
|
|
6145
|
-
throw err;
|
|
6146
|
-
} else if ( true && typeof console !== 'undefined') {
|
|
6147
|
-
// Old behavior for people using React.PropTypes
|
|
6148
|
-
var cacheKey = componentName + ':' + propName;
|
|
6149
|
-
if (
|
|
6150
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
6151
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
6152
|
-
manualPropTypeWarningCount < 3
|
|
6153
|
-
) {
|
|
6154
|
-
printWarning(
|
|
6155
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
6156
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6157
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
6158
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6159
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6160
|
-
);
|
|
6161
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
6162
|
-
manualPropTypeWarningCount++;
|
|
6163
|
-
}
|
|
6164
|
-
}
|
|
6165
|
-
}
|
|
6166
|
-
if (props[propName] == null) {
|
|
6167
|
-
if (isRequired) {
|
|
6168
|
-
if (props[propName] === null) {
|
|
6169
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
6170
|
-
}
|
|
6171
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
6172
|
-
}
|
|
6173
|
-
return null;
|
|
6174
|
-
} else {
|
|
6175
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
6176
|
-
}
|
|
6177
|
-
}
|
|
6178
|
-
|
|
6179
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
6180
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
6181
|
-
|
|
6182
|
-
return chainedCheckType;
|
|
6183
|
-
}
|
|
6184
|
-
|
|
6185
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
6186
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
6187
|
-
var propValue = props[propName];
|
|
6188
|
-
var propType = getPropType(propValue);
|
|
6189
|
-
if (propType !== expectedType) {
|
|
6190
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
6191
|
-
// check, but we can offer a more precise error message here rather than
|
|
6192
|
-
// 'of type `object`'.
|
|
6193
|
-
var preciseType = getPreciseType(propValue);
|
|
6194
|
-
|
|
6195
|
-
return new PropTypeError(
|
|
6196
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6197
|
-
{expectedType: expectedType}
|
|
6198
|
-
);
|
|
6199
|
-
}
|
|
6200
|
-
return null;
|
|
6201
|
-
}
|
|
6202
|
-
return createChainableTypeChecker(validate);
|
|
6203
|
-
}
|
|
6204
|
-
|
|
6205
|
-
function createAnyTypeChecker() {
|
|
6206
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
6207
|
-
}
|
|
6208
|
-
|
|
6209
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
6210
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6211
|
-
if (typeof typeChecker !== 'function') {
|
|
6212
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
6213
|
-
}
|
|
6214
|
-
var propValue = props[propName];
|
|
6215
|
-
if (!Array.isArray(propValue)) {
|
|
6216
|
-
var propType = getPropType(propValue);
|
|
6217
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
6218
|
-
}
|
|
6219
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
6220
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
6221
|
-
if (error instanceof Error) {
|
|
6222
|
-
return error;
|
|
6223
|
-
}
|
|
6224
|
-
}
|
|
6225
|
-
return null;
|
|
6226
|
-
}
|
|
6227
|
-
return createChainableTypeChecker(validate);
|
|
6228
|
-
}
|
|
6229
|
-
|
|
6230
|
-
function createElementTypeChecker() {
|
|
6231
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6232
|
-
var propValue = props[propName];
|
|
6233
|
-
if (!isValidElement(propValue)) {
|
|
6234
|
-
var propType = getPropType(propValue);
|
|
6235
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
6236
|
-
}
|
|
6237
|
-
return null;
|
|
6238
|
-
}
|
|
6239
|
-
return createChainableTypeChecker(validate);
|
|
6240
|
-
}
|
|
6241
|
-
|
|
6242
|
-
function createElementTypeTypeChecker() {
|
|
6243
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6244
|
-
var propValue = props[propName];
|
|
6245
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
6246
|
-
var propType = getPropType(propValue);
|
|
6247
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
6248
|
-
}
|
|
6249
|
-
return null;
|
|
6250
|
-
}
|
|
6251
|
-
return createChainableTypeChecker(validate);
|
|
6252
|
-
}
|
|
6253
|
-
|
|
6254
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
6255
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6256
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
6257
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
6258
|
-
var actualClassName = getClassName(props[propName]);
|
|
6259
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
6260
|
-
}
|
|
6261
|
-
return null;
|
|
6262
|
-
}
|
|
6263
|
-
return createChainableTypeChecker(validate);
|
|
6264
|
-
}
|
|
6265
|
-
|
|
6266
|
-
function createEnumTypeChecker(expectedValues) {
|
|
6267
|
-
if (!Array.isArray(expectedValues)) {
|
|
6268
|
-
if (true) {
|
|
6269
|
-
if (arguments.length > 1) {
|
|
6270
|
-
printWarning(
|
|
6271
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
6272
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
6273
|
-
);
|
|
6274
|
-
} else {
|
|
6275
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
6276
|
-
}
|
|
6277
|
-
}
|
|
6278
|
-
return emptyFunctionThatReturnsNull;
|
|
6279
|
-
}
|
|
6280
|
-
|
|
6281
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6282
|
-
var propValue = props[propName];
|
|
6283
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
6284
|
-
if (is(propValue, expectedValues[i])) {
|
|
6285
|
-
return null;
|
|
6286
|
-
}
|
|
6287
|
-
}
|
|
6288
|
-
|
|
6289
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
6290
|
-
var type = getPreciseType(value);
|
|
6291
|
-
if (type === 'symbol') {
|
|
6292
|
-
return String(value);
|
|
6293
|
-
}
|
|
6294
|
-
return value;
|
|
6295
|
-
});
|
|
6296
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
6297
|
-
}
|
|
6298
|
-
return createChainableTypeChecker(validate);
|
|
6299
|
-
}
|
|
6300
|
-
|
|
6301
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
6302
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6303
|
-
if (typeof typeChecker !== 'function') {
|
|
6304
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
6305
|
-
}
|
|
6306
|
-
var propValue = props[propName];
|
|
6307
|
-
var propType = getPropType(propValue);
|
|
6308
|
-
if (propType !== 'object') {
|
|
6309
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
6310
|
-
}
|
|
6311
|
-
for (var key in propValue) {
|
|
6312
|
-
if (has(propValue, key)) {
|
|
6313
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6314
|
-
if (error instanceof Error) {
|
|
6315
|
-
return error;
|
|
6316
|
-
}
|
|
6317
|
-
}
|
|
6318
|
-
}
|
|
6319
|
-
return null;
|
|
6320
|
-
}
|
|
6321
|
-
return createChainableTypeChecker(validate);
|
|
6322
|
-
}
|
|
6323
|
-
|
|
6324
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
6325
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
6326
|
-
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
6327
|
-
return emptyFunctionThatReturnsNull;
|
|
6328
|
-
}
|
|
6329
|
-
|
|
6330
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6331
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6332
|
-
if (typeof checker !== 'function') {
|
|
6333
|
-
printWarning(
|
|
6334
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
6335
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
6336
|
-
);
|
|
6337
|
-
return emptyFunctionThatReturnsNull;
|
|
6338
|
-
}
|
|
6339
|
-
}
|
|
6340
|
-
|
|
6341
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6342
|
-
var expectedTypes = [];
|
|
6343
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6344
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6345
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6346
|
-
if (checkerResult == null) {
|
|
6347
|
-
return null;
|
|
6348
|
-
}
|
|
6349
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6350
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
6351
|
-
}
|
|
6352
|
-
}
|
|
6353
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6354
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6355
|
-
}
|
|
6356
|
-
return createChainableTypeChecker(validate);
|
|
6357
|
-
}
|
|
6358
|
-
|
|
6359
|
-
function createNodeChecker() {
|
|
6360
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6361
|
-
if (!isNode(props[propName])) {
|
|
6362
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
6363
|
-
}
|
|
6364
|
-
return null;
|
|
6365
|
-
}
|
|
6366
|
-
return createChainableTypeChecker(validate);
|
|
6367
|
-
}
|
|
6368
|
-
|
|
6369
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6370
|
-
return new PropTypeError(
|
|
6371
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6372
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6373
|
-
);
|
|
6374
|
-
}
|
|
6375
|
-
|
|
6376
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
6377
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6378
|
-
var propValue = props[propName];
|
|
6379
|
-
var propType = getPropType(propValue);
|
|
6380
|
-
if (propType !== 'object') {
|
|
6381
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6382
|
-
}
|
|
6383
|
-
for (var key in shapeTypes) {
|
|
6384
|
-
var checker = shapeTypes[key];
|
|
6385
|
-
if (typeof checker !== 'function') {
|
|
6386
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6387
|
-
}
|
|
6388
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6389
|
-
if (error) {
|
|
6390
|
-
return error;
|
|
6391
|
-
}
|
|
6392
|
-
}
|
|
6393
|
-
return null;
|
|
6394
|
-
}
|
|
6395
|
-
return createChainableTypeChecker(validate);
|
|
6396
|
-
}
|
|
6397
|
-
|
|
6398
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
6399
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6400
|
-
var propValue = props[propName];
|
|
6401
|
-
var propType = getPropType(propValue);
|
|
6402
|
-
if (propType !== 'object') {
|
|
6403
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6404
|
-
}
|
|
6405
|
-
// We need to check all keys in case some are required but missing from props.
|
|
6406
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6407
|
-
for (var key in allKeys) {
|
|
6408
|
-
var checker = shapeTypes[key];
|
|
6409
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6410
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6411
|
-
}
|
|
6412
|
-
if (!checker) {
|
|
6413
|
-
return new PropTypeError(
|
|
6414
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6415
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6416
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6417
|
-
);
|
|
6418
|
-
}
|
|
6419
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6420
|
-
if (error) {
|
|
6421
|
-
return error;
|
|
6422
|
-
}
|
|
6423
|
-
}
|
|
6424
|
-
return null;
|
|
6425
|
-
}
|
|
6426
|
-
|
|
6427
|
-
return createChainableTypeChecker(validate);
|
|
6428
|
-
}
|
|
6429
|
-
|
|
6430
|
-
function isNode(propValue) {
|
|
6431
|
-
switch (typeof propValue) {
|
|
6432
|
-
case 'number':
|
|
6433
|
-
case 'string':
|
|
6434
|
-
case 'undefined':
|
|
6435
|
-
return true;
|
|
6436
|
-
case 'boolean':
|
|
6437
|
-
return !propValue;
|
|
6438
|
-
case 'object':
|
|
6439
|
-
if (Array.isArray(propValue)) {
|
|
6440
|
-
return propValue.every(isNode);
|
|
6441
|
-
}
|
|
6442
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
6443
|
-
return true;
|
|
6444
|
-
}
|
|
6445
|
-
|
|
6446
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
6447
|
-
if (iteratorFn) {
|
|
6448
|
-
var iterator = iteratorFn.call(propValue);
|
|
6449
|
-
var step;
|
|
6450
|
-
if (iteratorFn !== propValue.entries) {
|
|
6451
|
-
while (!(step = iterator.next()).done) {
|
|
6452
|
-
if (!isNode(step.value)) {
|
|
6453
|
-
return false;
|
|
6454
|
-
}
|
|
6455
|
-
}
|
|
6456
|
-
} else {
|
|
6457
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
6458
|
-
while (!(step = iterator.next()).done) {
|
|
6459
|
-
var entry = step.value;
|
|
6460
|
-
if (entry) {
|
|
6461
|
-
if (!isNode(entry[1])) {
|
|
6462
|
-
return false;
|
|
6463
|
-
}
|
|
6464
|
-
}
|
|
6465
|
-
}
|
|
6466
|
-
}
|
|
6467
|
-
} else {
|
|
6468
|
-
return false;
|
|
6469
|
-
}
|
|
6470
|
-
|
|
6471
|
-
return true;
|
|
6472
|
-
default:
|
|
6473
|
-
return false;
|
|
6474
|
-
}
|
|
6475
|
-
}
|
|
6476
|
-
|
|
6477
|
-
function isSymbol(propType, propValue) {
|
|
6478
|
-
// Native Symbol.
|
|
6479
|
-
if (propType === 'symbol') {
|
|
6480
|
-
return true;
|
|
6481
|
-
}
|
|
6482
|
-
|
|
6483
|
-
// falsy value can't be a Symbol
|
|
6484
|
-
if (!propValue) {
|
|
6485
|
-
return false;
|
|
6486
|
-
}
|
|
6487
|
-
|
|
6488
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
6489
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
6490
|
-
return true;
|
|
6491
|
-
}
|
|
6492
|
-
|
|
6493
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
6494
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
6495
|
-
return true;
|
|
6496
|
-
}
|
|
6497
|
-
|
|
6498
|
-
return false;
|
|
6499
|
-
}
|
|
6500
|
-
|
|
6501
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
6502
|
-
function getPropType(propValue) {
|
|
6503
|
-
var propType = typeof propValue;
|
|
6504
|
-
if (Array.isArray(propValue)) {
|
|
6505
|
-
return 'array';
|
|
6506
|
-
}
|
|
6507
|
-
if (propValue instanceof RegExp) {
|
|
6508
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
6509
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
6510
|
-
// passes PropTypes.object.
|
|
6511
|
-
return 'object';
|
|
6512
|
-
}
|
|
6513
|
-
if (isSymbol(propType, propValue)) {
|
|
6514
|
-
return 'symbol';
|
|
6515
|
-
}
|
|
6516
|
-
return propType;
|
|
6517
|
-
}
|
|
6518
|
-
|
|
6519
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
6520
|
-
// See `createPrimitiveTypeChecker`.
|
|
6521
|
-
function getPreciseType(propValue) {
|
|
6522
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
6523
|
-
return '' + propValue;
|
|
6524
|
-
}
|
|
6525
|
-
var propType = getPropType(propValue);
|
|
6526
|
-
if (propType === 'object') {
|
|
6527
|
-
if (propValue instanceof Date) {
|
|
6528
|
-
return 'date';
|
|
6529
|
-
} else if (propValue instanceof RegExp) {
|
|
6530
|
-
return 'regexp';
|
|
6531
|
-
}
|
|
6532
|
-
}
|
|
6533
|
-
return propType;
|
|
6534
|
-
}
|
|
6535
|
-
|
|
6536
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
6537
|
-
// For example, "undefined" or "of type array"
|
|
6538
|
-
function getPostfixForTypeWarning(value) {
|
|
6539
|
-
var type = getPreciseType(value);
|
|
6540
|
-
switch (type) {
|
|
6541
|
-
case 'array':
|
|
6542
|
-
case 'object':
|
|
6543
|
-
return 'an ' + type;
|
|
6544
|
-
case 'boolean':
|
|
6545
|
-
case 'date':
|
|
6546
|
-
case 'regexp':
|
|
6547
|
-
return 'a ' + type;
|
|
6548
|
-
default:
|
|
6549
|
-
return type;
|
|
6550
|
-
}
|
|
6551
|
-
}
|
|
6552
|
-
|
|
6553
|
-
// Returns class name of the object, if any.
|
|
6554
|
-
function getClassName(propValue) {
|
|
6555
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
6556
|
-
return ANONYMOUS;
|
|
6557
|
-
}
|
|
6558
|
-
return propValue.constructor.name;
|
|
6559
|
-
}
|
|
6560
|
-
|
|
6561
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
6562
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
6563
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
6564
|
-
|
|
6565
|
-
return ReactPropTypes;
|
|
6566
|
-
};
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
/***/ }),
|
|
6570
|
-
|
|
6571
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":
|
|
6572
|
-
/*!**************************************************************************************!*\
|
|
6573
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js ***!
|
|
6574
|
-
\**************************************************************************************/
|
|
6575
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6576
|
-
|
|
6577
|
-
/**
|
|
6578
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6579
|
-
*
|
|
6580
|
-
* This source code is licensed under the MIT license found in the
|
|
6581
|
-
* LICENSE file in the root directory of this source tree.
|
|
6582
|
-
*/
|
|
6583
|
-
|
|
6584
|
-
if (true) {
|
|
6585
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6586
|
-
|
|
6587
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
6588
|
-
// http://fb.me/prop-types-in-prod
|
|
6589
|
-
var throwOnDirectAccess = true;
|
|
6590
|
-
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
6591
|
-
} else {}
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
/***/ }),
|
|
6595
|
-
|
|
6596
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
6597
|
-
/*!*********************************************************************************************************!*\
|
|
6598
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
6599
|
-
\*********************************************************************************************************/
|
|
6600
|
-
/***/ ((module) => {
|
|
6601
|
-
|
|
6602
|
-
"use strict";
|
|
6603
|
-
/**
|
|
6604
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5175
|
+
* @since 0.1.0
|
|
5176
|
+
* @category Array
|
|
5177
|
+
* @param {Array} array The array to inspect.
|
|
5178
|
+
* @param {...*} [values] The values to exclude.
|
|
5179
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
5180
|
+
* @see _.difference, _.xor
|
|
5181
|
+
* @example
|
|
6605
5182
|
*
|
|
6606
|
-
*
|
|
6607
|
-
*
|
|
5183
|
+
* _.without([2, 1, 2, 3], 1, 2);
|
|
5184
|
+
* // => [3]
|
|
6608
5185
|
*/
|
|
5186
|
+
var without = baseRest(function(array, values) {
|
|
5187
|
+
return isArrayLikeObject(array)
|
|
5188
|
+
? baseDifference(array, values)
|
|
5189
|
+
: [];
|
|
5190
|
+
});
|
|
6609
5191
|
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
6613
|
-
|
|
6614
|
-
module.exports = ReactPropTypesSecret;
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
/***/ }),
|
|
6618
|
-
|
|
6619
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js":
|
|
6620
|
-
/*!****************************************************************************************!*\
|
|
6621
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js ***!
|
|
6622
|
-
\****************************************************************************************/
|
|
6623
|
-
/***/ ((module) => {
|
|
6624
|
-
|
|
6625
|
-
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5192
|
+
module.exports = without;
|
|
6626
5193
|
|
|
6627
5194
|
|
|
6628
5195
|
/***/ }),
|
|
@@ -6769,214 +5336,6 @@ module.exports = function isEqual(a, b) {
|
|
|
6769
5336
|
};
|
|
6770
5337
|
|
|
6771
5338
|
|
|
6772
|
-
/***/ }),
|
|
6773
|
-
|
|
6774
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js":
|
|
6775
|
-
/*!******************************************************************************************************!*\
|
|
6776
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js ***!
|
|
6777
|
-
\******************************************************************************************************/
|
|
6778
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6779
|
-
|
|
6780
|
-
"use strict";
|
|
6781
|
-
/** @license React v16.13.1
|
|
6782
|
-
* react-is.development.js
|
|
6783
|
-
*
|
|
6784
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6785
|
-
*
|
|
6786
|
-
* This source code is licensed under the MIT license found in the
|
|
6787
|
-
* LICENSE file in the root directory of this source tree.
|
|
6788
|
-
*/
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
if (true) {
|
|
6795
|
-
(function() {
|
|
6796
|
-
'use strict';
|
|
6797
|
-
|
|
6798
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
6799
|
-
// nor polyfill, then a plain number is used for performance.
|
|
6800
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
6801
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
6802
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
6803
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
6804
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
6805
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
6806
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
6807
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
6808
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
6809
|
-
|
|
6810
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
6811
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
6812
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
6813
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
6814
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
6815
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
6816
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
6817
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
6818
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
6819
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
6820
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
6821
|
-
|
|
6822
|
-
function isValidElementType(type) {
|
|
6823
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
6824
|
-
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);
|
|
6825
|
-
}
|
|
6826
|
-
|
|
6827
|
-
function typeOf(object) {
|
|
6828
|
-
if (typeof object === 'object' && object !== null) {
|
|
6829
|
-
var $$typeof = object.$$typeof;
|
|
6830
|
-
|
|
6831
|
-
switch ($$typeof) {
|
|
6832
|
-
case REACT_ELEMENT_TYPE:
|
|
6833
|
-
var type = object.type;
|
|
6834
|
-
|
|
6835
|
-
switch (type) {
|
|
6836
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
6837
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
6838
|
-
case REACT_FRAGMENT_TYPE:
|
|
6839
|
-
case REACT_PROFILER_TYPE:
|
|
6840
|
-
case REACT_STRICT_MODE_TYPE:
|
|
6841
|
-
case REACT_SUSPENSE_TYPE:
|
|
6842
|
-
return type;
|
|
6843
|
-
|
|
6844
|
-
default:
|
|
6845
|
-
var $$typeofType = type && type.$$typeof;
|
|
6846
|
-
|
|
6847
|
-
switch ($$typeofType) {
|
|
6848
|
-
case REACT_CONTEXT_TYPE:
|
|
6849
|
-
case REACT_FORWARD_REF_TYPE:
|
|
6850
|
-
case REACT_LAZY_TYPE:
|
|
6851
|
-
case REACT_MEMO_TYPE:
|
|
6852
|
-
case REACT_PROVIDER_TYPE:
|
|
6853
|
-
return $$typeofType;
|
|
6854
|
-
|
|
6855
|
-
default:
|
|
6856
|
-
return $$typeof;
|
|
6857
|
-
}
|
|
6858
|
-
|
|
6859
|
-
}
|
|
6860
|
-
|
|
6861
|
-
case REACT_PORTAL_TYPE:
|
|
6862
|
-
return $$typeof;
|
|
6863
|
-
}
|
|
6864
|
-
}
|
|
6865
|
-
|
|
6866
|
-
return undefined;
|
|
6867
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
6868
|
-
|
|
6869
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
6870
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
6871
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
6872
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
6873
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
6874
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
6875
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
6876
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
6877
|
-
var Memo = REACT_MEMO_TYPE;
|
|
6878
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
6879
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
6880
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
6881
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
6882
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
6883
|
-
|
|
6884
|
-
function isAsyncMode(object) {
|
|
6885
|
-
{
|
|
6886
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
6887
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
6888
|
-
|
|
6889
|
-
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.');
|
|
6890
|
-
}
|
|
6891
|
-
}
|
|
6892
|
-
|
|
6893
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
6894
|
-
}
|
|
6895
|
-
function isConcurrentMode(object) {
|
|
6896
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
6897
|
-
}
|
|
6898
|
-
function isContextConsumer(object) {
|
|
6899
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
6900
|
-
}
|
|
6901
|
-
function isContextProvider(object) {
|
|
6902
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
6903
|
-
}
|
|
6904
|
-
function isElement(object) {
|
|
6905
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
6906
|
-
}
|
|
6907
|
-
function isForwardRef(object) {
|
|
6908
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
6909
|
-
}
|
|
6910
|
-
function isFragment(object) {
|
|
6911
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
6912
|
-
}
|
|
6913
|
-
function isLazy(object) {
|
|
6914
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
6915
|
-
}
|
|
6916
|
-
function isMemo(object) {
|
|
6917
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
6918
|
-
}
|
|
6919
|
-
function isPortal(object) {
|
|
6920
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
6921
|
-
}
|
|
6922
|
-
function isProfiler(object) {
|
|
6923
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
6924
|
-
}
|
|
6925
|
-
function isStrictMode(object) {
|
|
6926
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
6927
|
-
}
|
|
6928
|
-
function isSuspense(object) {
|
|
6929
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
6930
|
-
}
|
|
6931
|
-
|
|
6932
|
-
exports.AsyncMode = AsyncMode;
|
|
6933
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
6934
|
-
exports.ContextConsumer = ContextConsumer;
|
|
6935
|
-
exports.ContextProvider = ContextProvider;
|
|
6936
|
-
exports.Element = Element;
|
|
6937
|
-
exports.ForwardRef = ForwardRef;
|
|
6938
|
-
exports.Fragment = Fragment;
|
|
6939
|
-
exports.Lazy = Lazy;
|
|
6940
|
-
exports.Memo = Memo;
|
|
6941
|
-
exports.Portal = Portal;
|
|
6942
|
-
exports.Profiler = Profiler;
|
|
6943
|
-
exports.StrictMode = StrictMode;
|
|
6944
|
-
exports.Suspense = Suspense;
|
|
6945
|
-
exports.isAsyncMode = isAsyncMode;
|
|
6946
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
6947
|
-
exports.isContextConsumer = isContextConsumer;
|
|
6948
|
-
exports.isContextProvider = isContextProvider;
|
|
6949
|
-
exports.isElement = isElement;
|
|
6950
|
-
exports.isForwardRef = isForwardRef;
|
|
6951
|
-
exports.isFragment = isFragment;
|
|
6952
|
-
exports.isLazy = isLazy;
|
|
6953
|
-
exports.isMemo = isMemo;
|
|
6954
|
-
exports.isPortal = isPortal;
|
|
6955
|
-
exports.isProfiler = isProfiler;
|
|
6956
|
-
exports.isStrictMode = isStrictMode;
|
|
6957
|
-
exports.isSuspense = isSuspense;
|
|
6958
|
-
exports.isValidElementType = isValidElementType;
|
|
6959
|
-
exports.typeOf = typeOf;
|
|
6960
|
-
})();
|
|
6961
|
-
}
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
/***/ }),
|
|
6965
|
-
|
|
6966
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js":
|
|
6967
|
-
/*!***********************************************************************************!*\
|
|
6968
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js ***!
|
|
6969
|
-
\***********************************************************************************/
|
|
6970
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6971
|
-
|
|
6972
|
-
"use strict";
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
if (false) {} else {
|
|
6976
|
-
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");
|
|
6977
|
-
}
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
5339
|
/***/ }),
|
|
6981
5340
|
|
|
6982
5341
|
/***/ "../../victory-core/es/victory-animation/util.js":
|
|
@@ -7231,11 +5590,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7231
5590
|
/* harmony export */ });
|
|
7232
5591
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7233
5592
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7234
|
-
/* 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");
|
|
7235
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7236
5593
|
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7237
5594
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7238
|
-
/* harmony import */ var
|
|
5595
|
+
/* 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");
|
|
7239
5596
|
/* 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");
|
|
7240
5597
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
|
|
7241
5598
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -7276,7 +5633,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
7276
5633
|
|
|
7277
5634
|
|
|
7278
5635
|
|
|
7279
|
-
|
|
7280
5636
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7281
5637
|
_inherits(VictoryAnimation, _React$Component);
|
|
7282
5638
|
|
|
@@ -7462,21 +5818,13 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7462
5818
|
return VictoryAnimation;
|
|
7463
5819
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
7464
5820
|
VictoryAnimation.displayName = "VictoryAnimation";
|
|
7465
|
-
VictoryAnimation.propTypes = {
|
|
7466
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
7467
|
-
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)]),
|
|
7468
|
-
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7469
|
-
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7470
|
-
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"]),
|
|
7471
|
-
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
7472
|
-
};
|
|
7473
5821
|
VictoryAnimation.defaultProps = {
|
|
7474
5822
|
data: {},
|
|
7475
5823
|
delay: 0,
|
|
7476
5824
|
duration: 1000,
|
|
7477
5825
|
easing: "quadInOut"
|
|
7478
5826
|
};
|
|
7479
|
-
VictoryAnimation.contextType =
|
|
5827
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
7480
5828
|
|
|
7481
5829
|
/***/ }),
|
|
7482
5830
|
|
|
@@ -7501,12 +5849,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7501
5849
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
7502
5850
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
7503
5851
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
7504
|
-
/* harmony import */ var
|
|
7505
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
7506
|
-
/* 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");
|
|
7507
|
-
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
5852
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7508
5853
|
/* 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");
|
|
7509
|
-
/* harmony import */ var
|
|
5854
|
+
/* 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");
|
|
7510
5855
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7511
5856
|
/* 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");
|
|
7512
5857
|
|
|
@@ -7548,8 +5893,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
7548
5893
|
|
|
7549
5894
|
|
|
7550
5895
|
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
5896
|
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
7554
5897
|
_inherits(VictoryContainer, _React$Component);
|
|
7555
5898
|
|
|
@@ -7742,44 +6085,14 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7742
6085
|
}((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
|
|
7743
6086
|
VictoryContainer.displayName = "VictoryContainer";
|
|
7744
6087
|
VictoryContainer.role = "container";
|
|
7745
|
-
VictoryContainer.propTypes = {
|
|
7746
|
-
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7747
|
-
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7748
|
-
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)]),
|
|
7749
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7750
|
-
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)]),
|
|
7751
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
7752
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7753
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7754
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
7755
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7756
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
7757
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
7758
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
7759
|
-
}),
|
|
7760
|
-
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)]),
|
|
7761
|
-
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7762
|
-
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7763
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7764
|
-
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
7765
|
-
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
|
|
7766
|
-
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7767
|
-
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
7768
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7769
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7770
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
7771
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
7772
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
7773
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
7774
|
-
};
|
|
7775
6088
|
VictoryContainer.defaultProps = {
|
|
7776
6089
|
className: "VictoryContainer",
|
|
7777
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(
|
|
6090
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__.Portal, null),
|
|
7778
6091
|
portalZIndex: 99,
|
|
7779
6092
|
responsive: true,
|
|
7780
6093
|
role: "img"
|
|
7781
6094
|
};
|
|
7782
|
-
VictoryContainer.contextType =
|
|
6095
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
7783
6096
|
|
|
7784
6097
|
/***/ }),
|
|
7785
6098
|
|
|
@@ -7798,8 +6111,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7798
6111
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
7799
6112
|
/* 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");
|
|
7800
6113
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
7801
|
-
/* 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");
|
|
7802
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
7803
6114
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
7804
6115
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
7805
6116
|
/* 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");
|
|
@@ -7809,7 +6120,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7809
6120
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7810
6121
|
/* 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");
|
|
7811
6122
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
7812
|
-
/* 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");
|
|
7813
6123
|
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
7814
6124
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
7815
6125
|
/* 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");
|
|
@@ -7845,8 +6155,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7845
6155
|
|
|
7846
6156
|
|
|
7847
6157
|
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
6158
|
var defaultStyles = {
|
|
7851
6159
|
fill: "#252525",
|
|
7852
6160
|
fontSize: 14,
|
|
@@ -8365,55 +6673,6 @@ var VictoryLabel = function (initialProps) {
|
|
|
8365
6673
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8366
6674
|
VictoryLabel.role = "label";
|
|
8367
6675
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8368
|
-
VictoryLabel.propTypes = {
|
|
8369
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8370
|
-
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)]),
|
|
8371
|
-
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)]),
|
|
8372
|
-
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8373
|
-
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)]),
|
|
8374
|
-
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)]),
|
|
8375
|
-
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)]),
|
|
8376
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
8377
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
|
|
8378
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
|
|
8379
|
-
// @ts-expect-error "Function is not assignable to string"
|
|
8380
|
-
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)]),
|
|
8381
|
-
direction: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8382
|
-
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)]),
|
|
8383
|
-
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)]),
|
|
8384
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
8385
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8386
|
-
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)]),
|
|
8387
|
-
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)]),
|
|
8388
|
-
inline: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8389
|
-
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8390
|
-
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)]),
|
|
8391
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
8392
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired,
|
|
8393
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired
|
|
8394
|
-
}),
|
|
8395
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8396
|
-
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
8397
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
8398
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale,
|
|
8399
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale
|
|
8400
|
-
}),
|
|
8401
|
-
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)]),
|
|
8402
|
-
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)]),
|
|
8403
|
-
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)]),
|
|
8404
|
-
// @ts-expect-error Function is not assignable to string"
|
|
8405
|
-
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)]),
|
|
8406
|
-
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8407
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
8408
|
-
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)]),
|
|
8409
|
-
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
8410
|
-
// @ts-expect-error Function is not assignable to string"
|
|
8411
|
-
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)]),
|
|
8412
|
-
// @ts-expect-error Number is not assignable to string
|
|
8413
|
-
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)]),
|
|
8414
|
-
// @ts-expect-error Number is not assignable to string
|
|
8415
|
-
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)])
|
|
8416
|
-
};
|
|
8417
6676
|
|
|
8418
6677
|
/***/ }),
|
|
8419
6678
|
|
|
@@ -8456,9 +6715,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8456
6715
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
8457
6716
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8458
6717
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8459
|
-
/* 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");
|
|
8460
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
8461
|
-
/* 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");
|
|
8462
6718
|
|
|
8463
6719
|
|
|
8464
6720
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8482,8 +6738,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8482
6738
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8483
6739
|
|
|
8484
6740
|
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
6741
|
var Portal = /*#__PURE__*/function (_ref) {
|
|
8488
6742
|
_inherits(Portal, _ref);
|
|
8489
6743
|
|
|
@@ -8542,13 +6796,6 @@ var Portal = /*#__PURE__*/function (_ref) {
|
|
|
8542
6796
|
return Portal;
|
|
8543
6797
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8544
6798
|
Portal.displayName = "Portal";
|
|
8545
|
-
Portal.propTypes = {
|
|
8546
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8547
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8548
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8549
|
-
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8550
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8551
|
-
};
|
|
8552
6799
|
|
|
8553
6800
|
/***/ }),
|
|
8554
6801
|
|
|
@@ -8567,11 +6814,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8567
6814
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
8568
6815
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8569
6816
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8570
|
-
/* 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");
|
|
8571
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8572
6817
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8573
6818
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8574
|
-
/* harmony import */ var
|
|
6819
|
+
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
8575
6820
|
|
|
8576
6821
|
|
|
8577
6822
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8598,7 +6843,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
8598
6843
|
|
|
8599
6844
|
|
|
8600
6845
|
|
|
8601
|
-
|
|
8602
6846
|
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
8603
6847
|
_inherits(VictoryPortal, _React$Component);
|
|
8604
6848
|
|
|
@@ -8684,14 +6928,10 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8684
6928
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8685
6929
|
VictoryPortal.displayName = "VictoryPortal";
|
|
8686
6930
|
VictoryPortal.role = "portal";
|
|
8687
|
-
VictoryPortal.propTypes = {
|
|
8688
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8689
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8690
|
-
};
|
|
8691
6931
|
VictoryPortal.defaultProps = {
|
|
8692
6932
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8693
6933
|
};
|
|
8694
|
-
VictoryPortal.contextType =
|
|
6934
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_4__.PortalContext;
|
|
8695
6935
|
|
|
8696
6936
|
/***/ }),
|
|
8697
6937
|
|
|
@@ -8708,10 +6948,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8708
6948
|
/* harmony export */ });
|
|
8709
6949
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8710
6950
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8711
|
-
/* 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");
|
|
8712
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8713
6951
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8714
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
8715
6952
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
8716
6953
|
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; }
|
|
8717
6954
|
|
|
@@ -8723,8 +6960,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8723
6960
|
|
|
8724
6961
|
|
|
8725
6962
|
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
6963
|
var evaluateProps = function (props) {
|
|
8729
6964
|
/**
|
|
8730
6965
|
* Potential evaluated props are:
|
|
@@ -8773,14 +7008,6 @@ var LineSegment = function (initialProps) {
|
|
|
8773
7008
|
clipPath: props.clipPath
|
|
8774
7009
|
}));
|
|
8775
7010
|
};
|
|
8776
|
-
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
8777
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
8778
|
-
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
8779
|
-
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8780
|
-
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8781
|
-
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8782
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
8783
|
-
});
|
|
8784
7011
|
|
|
8785
7012
|
/***/ }),
|
|
8786
7013
|
|
|
@@ -9665,12 +7892,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9665
7892
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
9666
7893
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
9667
7894
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
9668
|
-
/* 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");
|
|
9669
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
9670
7895
|
/* 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");
|
|
9671
7896
|
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9672
7897
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9673
|
-
/* harmony import */ var
|
|
7898
|
+
/* 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");
|
|
9674
7899
|
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
9675
7900
|
/* 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");
|
|
9676
7901
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
@@ -9707,7 +7932,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9707
7932
|
|
|
9708
7933
|
|
|
9709
7934
|
|
|
9710
|
-
|
|
9711
7935
|
var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
9712
7936
|
_inherits(VictoryTransition, _React$Component);
|
|
9713
7937
|
|
|
@@ -9905,12 +8129,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9905
8129
|
return VictoryTransition;
|
|
9906
8130
|
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
9907
8131
|
VictoryTransition.displayName = "VictoryTransition";
|
|
9908
|
-
VictoryTransition.
|
|
9909
|
-
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)]),
|
|
9910
|
-
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
9911
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
9912
|
-
};
|
|
9913
|
-
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
8132
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
9914
8133
|
|
|
9915
8134
|
/***/ }),
|
|
9916
8135
|
|
|
@@ -10462,155 +8681,6 @@ function getMinValue(arr) {
|
|
|
10462
8681
|
|
|
10463
8682
|
/***/ }),
|
|
10464
8683
|
|
|
10465
|
-
/***/ "../../victory-core/es/victory-util/common-props.js":
|
|
10466
|
-
/*!**********************************************************!*\
|
|
10467
|
-
!*** ../../victory-core/es/victory-util/common-props.js ***!
|
|
10468
|
-
\**********************************************************/
|
|
10469
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10470
|
-
|
|
10471
|
-
"use strict";
|
|
10472
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10473
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10474
|
-
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
10475
|
-
/* harmony export */ });
|
|
10476
|
-
/* 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");
|
|
10477
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
10478
|
-
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
var dataProps = {
|
|
10482
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10483
|
-
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({
|
|
10484
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
10485
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
10486
|
-
})]),
|
|
10487
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10488
|
-
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)]),
|
|
10489
|
-
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10490
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10491
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10492
|
-
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)]),
|
|
10493
|
-
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10494
|
-
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))]),
|
|
10495
|
-
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
10496
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10497
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10498
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10499
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10500
|
-
}),
|
|
10501
|
-
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))]),
|
|
10502
|
-
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))]),
|
|
10503
|
-
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))])
|
|
10504
|
-
};
|
|
10505
|
-
var baseProps = {
|
|
10506
|
-
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)]),
|
|
10507
|
-
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10508
|
-
domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10509
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10510
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10511
|
-
})]),
|
|
10512
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10513
|
-
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({
|
|
10514
|
-
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)]),
|
|
10515
|
-
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)])
|
|
10516
|
-
})]),
|
|
10517
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10518
|
-
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({
|
|
10519
|
-
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)]),
|
|
10520
|
-
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)])
|
|
10521
|
-
})]),
|
|
10522
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10523
|
-
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10524
|
-
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))]),
|
|
10525
|
-
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))])
|
|
10526
|
-
}), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
10527
|
-
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)]),
|
|
10528
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10529
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
|
|
10530
|
-
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)]),
|
|
10531
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10532
|
-
})),
|
|
10533
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10534
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10535
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10536
|
-
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)]),
|
|
10537
|
-
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)]),
|
|
10538
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10539
|
-
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)])
|
|
10540
|
-
})),
|
|
10541
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10542
|
-
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10543
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10544
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10545
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10546
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10547
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10548
|
-
}),
|
|
10549
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10550
|
-
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({
|
|
10551
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10552
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10553
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10554
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10555
|
-
})]),
|
|
10556
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10557
|
-
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10558
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
10559
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
10560
|
-
})]),
|
|
10561
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10562
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
10563
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
10564
|
-
})]),
|
|
10565
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10566
|
-
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10567
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
10568
|
-
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
10569
|
-
}),
|
|
10570
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10571
|
-
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({
|
|
10572
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
10573
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
10574
|
-
})]),
|
|
10575
|
-
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10576
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10577
|
-
width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
|
|
10578
|
-
};
|
|
10579
|
-
var primitiveProps = {
|
|
10580
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10581
|
-
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)]),
|
|
10582
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10583
|
-
clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10584
|
-
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)]),
|
|
10585
|
-
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)]),
|
|
10586
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10587
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10588
|
-
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)]),
|
|
10589
|
-
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)]),
|
|
10590
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10591
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10592
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10593
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10594
|
-
}),
|
|
10595
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10596
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10597
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10598
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
10599
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
10600
|
-
})]),
|
|
10601
|
-
shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10602
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10603
|
-
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)]),
|
|
10604
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
10605
|
-
};
|
|
10606
|
-
var CommonProps = {
|
|
10607
|
-
dataProps: dataProps,
|
|
10608
|
-
baseProps: baseProps,
|
|
10609
|
-
primitiveProps: primitiveProps
|
|
10610
|
-
};
|
|
10611
|
-
|
|
10612
|
-
/***/ }),
|
|
10613
|
-
|
|
10614
8684
|
/***/ "../../victory-core/es/victory-util/data.js":
|
|
10615
8685
|
/*!**************************************************!*\
|
|
10616
8686
|
!*** ../../victory-core/es/victory-util/data.js ***!
|
|
@@ -12379,278 +10449,6 @@ function warn(message) {
|
|
|
12379
10449
|
|
|
12380
10450
|
/***/ }),
|
|
12381
10451
|
|
|
12382
|
-
/***/ "../../victory-core/es/victory-util/prop-types.js":
|
|
12383
|
-
/*!********************************************************!*\
|
|
12384
|
-
!*** ../../victory-core/es/victory-util/prop-types.js ***!
|
|
12385
|
-
\********************************************************/
|
|
12386
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12387
|
-
|
|
12388
|
-
"use strict";
|
|
12389
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12390
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12391
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
12392
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
12393
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
12394
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
12395
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
12396
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
12397
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
12398
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
12399
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
12400
|
-
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
12401
|
-
/* harmony export */ });
|
|
12402
|
-
/* 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");
|
|
12403
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
12404
|
-
/* 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");
|
|
12405
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
12406
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
12407
|
-
/* 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");
|
|
12408
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
12409
|
-
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
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; }
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
/**
|
|
12420
|
-
* Return a new validator based on `validator` but with the option to chain
|
|
12421
|
-
* `isRequired` onto the validation. This is nearly identical to how React
|
|
12422
|
-
* does it internally, but they don't expose their helper for us to use.
|
|
12423
|
-
* @param {Function} validator Validation function.
|
|
12424
|
-
* @returns {Function} Validator with `isRequired` option.
|
|
12425
|
-
*/
|
|
12426
|
-
var makeChainable = function (validator) {
|
|
12427
|
-
var createChainable = function (isRequired) {
|
|
12428
|
-
return function (props, propName, componentName) {
|
|
12429
|
-
var value = props[propName];
|
|
12430
|
-
|
|
12431
|
-
if (value === undefined || value === null) {
|
|
12432
|
-
if (isRequired) {
|
|
12433
|
-
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
12434
|
-
}
|
|
12435
|
-
|
|
12436
|
-
return null;
|
|
12437
|
-
}
|
|
12438
|
-
|
|
12439
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
12440
|
-
rest[_key - 3] = arguments[_key];
|
|
12441
|
-
}
|
|
12442
|
-
|
|
12443
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12444
|
-
};
|
|
12445
|
-
};
|
|
12446
|
-
|
|
12447
|
-
var chainable = Object.assign(createChainable(false), {
|
|
12448
|
-
isRequired: createChainable(true)
|
|
12449
|
-
});
|
|
12450
|
-
return chainable;
|
|
12451
|
-
};
|
|
12452
|
-
|
|
12453
|
-
var nullConstructor = function () {
|
|
12454
|
-
return null;
|
|
12455
|
-
};
|
|
12456
|
-
|
|
12457
|
-
var undefinedConstructor = function () {
|
|
12458
|
-
return undefined;
|
|
12459
|
-
};
|
|
12460
|
-
/**
|
|
12461
|
-
* Get the constructor of `value`. If `value` is null or undefined, return the
|
|
12462
|
-
* special singletons `nullConstructor` or `undefinedConstructor`, respectively.
|
|
12463
|
-
* @param {*} value Instance to return the constructor of.
|
|
12464
|
-
* @returns {Function} Constructor of `value`.
|
|
12465
|
-
*/
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
var getConstructor = function (value) {
|
|
12469
|
-
if (value === undefined) {
|
|
12470
|
-
return undefinedConstructor;
|
|
12471
|
-
} else if (value === null) {
|
|
12472
|
-
return nullConstructor;
|
|
12473
|
-
}
|
|
12474
|
-
|
|
12475
|
-
return value.constructor;
|
|
12476
|
-
};
|
|
12477
|
-
/**
|
|
12478
|
-
* Get the name of the constructor used to create `value`, using
|
|
12479
|
-
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
12480
|
-
* "null" or "undefined", respectively.
|
|
12481
|
-
* @param {*} value Instance to return the constructor name of.
|
|
12482
|
-
* @returns {String} Name of the constructor.
|
|
12483
|
-
*/
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
var getConstructorName = function (value) {
|
|
12487
|
-
if (value === undefined) {
|
|
12488
|
-
return "undefined";
|
|
12489
|
-
} else if (value === null) {
|
|
12490
|
-
return "null";
|
|
12491
|
-
}
|
|
12492
|
-
|
|
12493
|
-
return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
|
|
12494
|
-
};
|
|
12495
|
-
/**
|
|
12496
|
-
* Return a new validator based on `propType` but which logs a `console.error`
|
|
12497
|
-
* with `explanation` if used.
|
|
12498
|
-
* @param {Function} propType The old, deprecated propType.
|
|
12499
|
-
* @param {String} explanation The message to provide the user of the deprecated propType.
|
|
12500
|
-
* @returns {Function} Validator which logs usage of this propType
|
|
12501
|
-
*/
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
function deprecated(propType, explanation) {
|
|
12505
|
-
return function (props, propName, componentName) {
|
|
12506
|
-
var value = props[propName];
|
|
12507
|
-
|
|
12508
|
-
if (value !== null && value !== undefined) {
|
|
12509
|
-
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
12510
|
-
}
|
|
12511
|
-
|
|
12512
|
-
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
12513
|
-
return null;
|
|
12514
|
-
};
|
|
12515
|
-
}
|
|
12516
|
-
/**
|
|
12517
|
-
* Return a new validator which returns true
|
|
12518
|
-
* if and only if all validators passed as arguments return true.
|
|
12519
|
-
* Like React.propTypes.oneOfType, except "all" instead of "any"
|
|
12520
|
-
* @param {Array} validators Validation functions.
|
|
12521
|
-
* @returns {Function} Combined validator function
|
|
12522
|
-
*/
|
|
12523
|
-
|
|
12524
|
-
function allOfType(validators) {
|
|
12525
|
-
return makeChainable(function (props, propName, componentName) {
|
|
12526
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
12527
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
12528
|
-
}
|
|
12529
|
-
|
|
12530
|
-
return validators.reduce(function (result, validator) {
|
|
12531
|
-
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12532
|
-
}, null);
|
|
12533
|
-
});
|
|
12534
|
-
}
|
|
12535
|
-
/**
|
|
12536
|
-
* Check that the value is a non-negative number.
|
|
12537
|
-
*/
|
|
12538
|
-
|
|
12539
|
-
var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
12540
|
-
var value = props[propName];
|
|
12541
|
-
|
|
12542
|
-
if (typeof value !== "number" || value < 0) {
|
|
12543
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
12544
|
-
}
|
|
12545
|
-
|
|
12546
|
-
return null;
|
|
12547
|
-
});
|
|
12548
|
-
/**
|
|
12549
|
-
* Check that the value is an integer.
|
|
12550
|
-
*/
|
|
12551
|
-
|
|
12552
|
-
var integer = makeChainable(function (props, propName, componentName) {
|
|
12553
|
-
var value = props[propName];
|
|
12554
|
-
|
|
12555
|
-
if (typeof value !== "number" || value % 1 !== 0) {
|
|
12556
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
12557
|
-
}
|
|
12558
|
-
|
|
12559
|
-
return null;
|
|
12560
|
-
});
|
|
12561
|
-
/**
|
|
12562
|
-
* Check that the value is greater than zero.
|
|
12563
|
-
*/
|
|
12564
|
-
|
|
12565
|
-
var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
12566
|
-
var value = props[propName];
|
|
12567
|
-
|
|
12568
|
-
if (typeof value !== "number" || value <= 0) {
|
|
12569
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
12570
|
-
}
|
|
12571
|
-
|
|
12572
|
-
return null;
|
|
12573
|
-
});
|
|
12574
|
-
/**
|
|
12575
|
-
* Check that the value is an Array of two unique values.
|
|
12576
|
-
*/
|
|
12577
|
-
|
|
12578
|
-
var domain = makeChainable(function (props, propName, componentName) {
|
|
12579
|
-
var value = props[propName];
|
|
12580
|
-
|
|
12581
|
-
if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
|
|
12582
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
12583
|
-
}
|
|
12584
|
-
|
|
12585
|
-
return null;
|
|
12586
|
-
});
|
|
12587
|
-
/**
|
|
12588
|
-
* Check that the value looks like a d3 `scale` function.
|
|
12589
|
-
*/
|
|
12590
|
-
|
|
12591
|
-
var scale = makeChainable(function (props, propName, componentName) {
|
|
12592
|
-
var value = props[propName];
|
|
12593
|
-
|
|
12594
|
-
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
12595
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
12596
|
-
}
|
|
12597
|
-
|
|
12598
|
-
return null;
|
|
12599
|
-
});
|
|
12600
|
-
/**
|
|
12601
|
-
* Check that an array contains items of the same type.
|
|
12602
|
-
*/
|
|
12603
|
-
|
|
12604
|
-
var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
12605
|
-
var values = props[propName];
|
|
12606
|
-
|
|
12607
|
-
if (!Array.isArray(values)) {
|
|
12608
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
|
|
12609
|
-
}
|
|
12610
|
-
|
|
12611
|
-
if (values.length < 2) {
|
|
12612
|
-
return null;
|
|
12613
|
-
}
|
|
12614
|
-
|
|
12615
|
-
var comparisonConstructor = getConstructor(values[0]);
|
|
12616
|
-
|
|
12617
|
-
var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
|
|
12618
|
-
return comparisonConstructor !== getConstructor(value);
|
|
12619
|
-
});
|
|
12620
|
-
|
|
12621
|
-
if (typeMismatchedValue) {
|
|
12622
|
-
var constructorName = getConstructorName(values[0]);
|
|
12623
|
-
var otherConstructorName = getConstructorName(typeMismatchedValue);
|
|
12624
|
-
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
12625
|
-
}
|
|
12626
|
-
|
|
12627
|
-
return null;
|
|
12628
|
-
});
|
|
12629
|
-
/**
|
|
12630
|
-
* Check that array prop length matches props.data.length
|
|
12631
|
-
*/
|
|
12632
|
-
|
|
12633
|
-
var matchDataLength = makeChainable(function (props, propName) {
|
|
12634
|
-
if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
|
|
12635
|
-
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
12636
|
-
}
|
|
12637
|
-
|
|
12638
|
-
return null;
|
|
12639
|
-
});
|
|
12640
|
-
/**
|
|
12641
|
-
* Check that the value is a regular expression
|
|
12642
|
-
*/
|
|
12643
|
-
|
|
12644
|
-
var regExp = makeChainable(function (props, propName, componentName) {
|
|
12645
|
-
if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
|
|
12646
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
12647
|
-
}
|
|
12648
|
-
|
|
12649
|
-
return null;
|
|
12650
|
-
});
|
|
12651
|
-
|
|
12652
|
-
/***/ }),
|
|
12653
|
-
|
|
12654
10452
|
/***/ "../../victory-core/es/victory-util/scale.js":
|
|
12655
10453
|
/*!***************************************************!*\
|
|
12656
10454
|
!*** ../../victory-core/es/victory-util/scale.js ***!
|
|
@@ -24631,17 +22429,14 @@ function keyof(value) {
|
|
|
24631
22429
|
/******/ }
|
|
24632
22430
|
/******/ // Create a new module (and put it into the cache)
|
|
24633
22431
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
24634
|
-
/******/ id
|
|
24635
|
-
/******/ loaded
|
|
22432
|
+
/******/ // no module.id needed
|
|
22433
|
+
/******/ // no module.loaded needed
|
|
24636
22434
|
/******/ exports: {}
|
|
24637
22435
|
/******/ };
|
|
24638
22436
|
/******/
|
|
24639
22437
|
/******/ // Execute the module function
|
|
24640
22438
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
24641
22439
|
/******/
|
|
24642
|
-
/******/ // Flag the module as loaded
|
|
24643
|
-
/******/ module.loaded = true;
|
|
24644
|
-
/******/
|
|
24645
22440
|
/******/ // Return the exports of the module
|
|
24646
22441
|
/******/ return module.exports;
|
|
24647
22442
|
/******/ }
|
|
@@ -24699,15 +22494,6 @@ function keyof(value) {
|
|
|
24699
22494
|
/******/ };
|
|
24700
22495
|
/******/ })();
|
|
24701
22496
|
/******/
|
|
24702
|
-
/******/ /* webpack/runtime/node module decorator */
|
|
24703
|
-
/******/ (() => {
|
|
24704
|
-
/******/ __webpack_require__.nmd = (module) => {
|
|
24705
|
-
/******/ module.paths = [];
|
|
24706
|
-
/******/ if (!module.children) module.children = [];
|
|
24707
|
-
/******/ return module;
|
|
24708
|
-
/******/ };
|
|
24709
|
-
/******/ })();
|
|
24710
|
-
/******/
|
|
24711
22497
|
/************************************************************************/
|
|
24712
22498
|
var __webpack_exports__ = {};
|
|
24713
22499
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|