@pibit.ai/cure-design-system 0.6.42 → 0.6.44
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/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/_virtual/with-selector3.js +2 -0
- package/dist/_virtual/with-selector4.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +127 -125
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +846 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/max.js +9 -0
- package/dist/node_modules/d3-array/src/min.js +9 -0
- package/dist/node_modules/d3-array/src/number.js +11 -0
- package/dist/node_modules/d3-array/src/quantile.js +24 -0
- package/dist/node_modules/d3-array/src/quickselect.js +25 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/sort.js +16 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.js +51 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/diverging.js +68 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.js +32 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.js +38 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/radial.js +37 -0
- package/dist/node_modules/d3-scale/src/sequential.js +70 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
- package/dist/node_modules/d3-scale/src/symlog.js +29 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-scale/src/time.js +46 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +43 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/noop.js +5 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +9 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
- package/dist/node_modules/d3-shape/src/order/none.js +7 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/d3-shape/src/stack.js +35 -0
- package/dist/node_modules/d3-time/src/day.js +26 -0
- package/dist/node_modules/d3-time/src/duration.js +10 -0
- package/dist/node_modules/d3-time/src/hour.js +18 -0
- package/dist/node_modules/d3-time/src/interval.js +31 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/minute.js +18 -0
- package/dist/node_modules/d3-time/src/month.js +17 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.js +54 -0
- package/dist/node_modules/d3-time/src/week.js +48 -0
- package/dist/node_modules/d3-time/src/year.js +27 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
- package/dist/node_modules/d3-time-format/src/locale.js +478 -0
- package/dist/node_modules/decimal.js-light/decimal.js +472 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/baseToString.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/hasOwn.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +14 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/objectValues.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +35 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +38 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +7 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +29 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
- package/dist/node_modules/eventemitter3/index.js +5 -0
- package/dist/node_modules/eventemitter3/index2.js +111 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +9 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +575 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +98 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +81 -0
- package/dist/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +137 -0
- package/dist/node_modules/recharts/es6/animation/AnimatedItems.js +78 -0
- package/dist/node_modules/recharts/es6/animation/AnimationControllerImpl.js +21 -0
- package/dist/node_modules/recharts/es6/animation/AnimationHandle.js +179 -0
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +84 -0
- package/dist/node_modules/recharts/es6/animation/easing.js +89 -0
- package/dist/node_modules/recharts/es6/animation/matchBy.js +105 -0
- package/dist/node_modules/recharts/es6/animation/timeoutController.js +13 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationController.js +11 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationStartSnapshot.js +20 -0
- package/dist/node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js +14 -0
- package/dist/node_modules/recharts/es6/cartesian/getCartesianPosition.js +141 -0
- package/dist/node_modules/recharts/es6/chart/CategoricalChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PieChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PolarChart.js +144 -0
- package/dist/node_modules/recharts/es6/chart/RechartsWrapper.js +297 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +5 -0
- package/dist/node_modules/recharts/es6/component/Label.js +262 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +101 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +219 -0
- package/dist/node_modules/recharts/es6/component/Text.js +240 -0
- package/dist/node_modules/recharts/es6/component/responsiveContainerUtils.js +43 -0
- package/dist/node_modules/recharts/es6/container/ClipPathProvider.js +63 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +42 -0
- package/dist/node_modules/recharts/es6/container/RootSurface.js +90 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +51 -0
- package/dist/node_modules/recharts/es6/context/PanoramaContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/RegisterGraphicalItemId.js +12 -0
- package/dist/node_modules/recharts/es6/context/accessibilityContext.js +8 -0
- package/dist/node_modules/recharts/es6/context/chartDataContext.js +14 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +44 -0
- package/dist/node_modules/recharts/es6/context/legendPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/tooltipContext.js +33 -0
- package/dist/node_modules/recharts/es6/context/tooltipPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/hooks.js +6 -0
- package/dist/node_modules/recharts/es6/polar/Pie.js +486 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js +13 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js +15 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +128 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +151 -0
- package/dist/node_modules/recharts/es6/state/RechartsReduxContext.js +5 -0
- package/dist/node_modules/recharts/es6/state/RechartsStoreProvider.js +20 -0
- package/dist/node_modules/recharts/es6/state/ReportChartProps.js +12 -0
- package/dist/node_modules/recharts/es6/state/ReportEventSettings.js +13 -0
- package/dist/node_modules/recharts/es6/state/ReportMainChartProps.js +15 -0
- package/dist/node_modules/recharts/es6/state/ReportPolarOptions.js +12 -0
- package/dist/node_modules/recharts/es6/state/SetGraphicalItem.js +17 -0
- package/dist/node_modules/recharts/es6/state/SetLegendPayload.js +18 -0
- package/dist/node_modules/recharts/es6/state/SetTooltipEntrySettings.js +18 -0
- package/dist/node_modules/recharts/es6/state/brushSlice.js +27 -0
- package/dist/node_modules/recharts/es6/state/cartesianAxisSlice.js +148 -0
- package/dist/node_modules/recharts/es6/state/chartDataSlice.js +35 -0
- package/dist/node_modules/recharts/es6/state/errorBarSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/eventSettingsSlice.js +19 -0
- package/dist/node_modules/recharts/es6/state/externalEventsMiddleware.js +58 -0
- package/dist/node_modules/recharts/es6/state/graphicalItemsSlice.js +61 -0
- package/dist/node_modules/recharts/es6/state/hooks.js +19 -0
- package/dist/node_modules/recharts/es6/state/keyboardEventsMiddleware.js +119 -0
- package/dist/node_modules/recharts/es6/state/layoutSlice.js +38 -0
- package/dist/node_modules/recharts/es6/state/legendSlice.js +57 -0
- package/dist/node_modules/recharts/es6/state/mouseEventsMiddleware.js +52 -0
- package/dist/node_modules/recharts/es6/state/optionsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/polarAxisSlice.js +31 -0
- package/dist/node_modules/recharts/es6/state/polarOptionsSlice.js +12 -0
- package/dist/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js +6 -0
- package/dist/node_modules/recharts/es6/state/referenceElementsSlice.js +44 -0
- package/dist/node_modules/recharts/es6/state/renderedTicksSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/rootPropsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js +16 -0
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +925 -0
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +14 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js +41 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js +22 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js +24 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +137 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/containerSelectors.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisType.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pieSelectors.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +147 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarSelectors.js +36 -0
- package/dist/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js +10 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectAllAxes.js +6 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +123 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectPlotArea.js +15 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js +17 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipState.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +62 -0
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +107 -0
- package/dist/node_modules/recharts/es6/state/selectors/touchSelectors.js +15 -0
- package/dist/node_modules/recharts/es6/state/store.js +79 -0
- package/dist/node_modules/recharts/es6/state/tooltipSlice.js +106 -0
- package/dist/node_modules/recharts/es6/state/touchEventsMiddleware.js +72 -0
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +6 -0
- package/dist/node_modules/recharts/es6/state/zIndexSlice.js +102 -0
- package/dist/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js +183 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +71 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +185 -0
- package/dist/node_modules/recharts/es6/util/Constants.js +7 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +89 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
- package/dist/node_modules/recharts/es6/util/Events.js +7 -0
- package/dist/node_modules/recharts/es6/util/Global.js +6 -0
- package/dist/node_modules/recharts/es6/util/LRUCache.js +44 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +14 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +113 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +24 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +151 -0
- package/dist/node_modules/recharts/es6/util/createEventProxy.js +15 -0
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +10 -0
- package/dist/node_modules/recharts/es6/util/getActiveCoordinate.js +141 -0
- package/dist/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js +10 -0
- package/dist/node_modules/recharts/es6/util/getClassNameFromUnknown.js +6 -0
- package/dist/node_modules/recharts/es6/util/getRelativeCoordinate.js +31 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +6 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +131 -0
- package/dist/node_modules/recharts/es6/util/isWellBehavedNumber.js +10 -0
- package/dist/node_modules/recharts/es6/util/propsAreEqual.js +43 -0
- package/dist/node_modules/recharts/es6/util/resolveDefaultProps.js +45 -0
- package/dist/node_modules/recharts/es6/util/round.js +17 -0
- package/dist/node_modules/recharts/es6/util/scale/RechartsScale.js +44 -0
- package/dist/node_modules/recharts/es6/util/scale/createCategoricalInverse.js +29 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +119 -0
- package/dist/node_modules/recharts/es6/util/scale/util/arithmetic.js +14 -0
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +6 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesAndEvents.js +12 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +340 -0
- package/dist/node_modules/recharts/es6/util/types.js +25 -0
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +9 -0
- package/dist/node_modules/recharts/es6/util/useId.js +51 -0
- package/dist/node_modules/recharts/es6/util/usePrefersReducedMotion.js +58 -0
- package/dist/node_modules/recharts/es6/util/useReportScale.js +57 -0
- package/dist/node_modules/recharts/es6/util/useUniqueId.js +8 -0
- package/dist/node_modules/recharts/es6/zIndex/DefaultZIndexes.js +70 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexLayer.js +47 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexPortal.js +40 -0
- package/dist/node_modules/recharts/es6/zIndex/zIndexSelectors.js +21 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/reselect/dist/reselect.js +226 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +47 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts +35 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts.map +1 -0
- package/dist/primitives/donut-chart/donut-chart.js +121 -0
- package/dist/primitives/donut-chart/index.d.ts +2 -0
- package/dist/primitives/donut-chart/index.d.ts.map +1 -0
- package/dist/styles/components.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useState as m, useEffect as p } from "react";
|
|
2
|
+
import { useAppDispatch as y, useAppSelector as d } from "../state/hooks.js";
|
|
3
|
+
import { selectContainerScale as h } from "../state/selectors/containerSelectors.js";
|
|
4
|
+
import { setScale as v } from "../state/layoutSlice.js";
|
|
5
|
+
import { isWellBehavedNumber as b } from "./isWellBehavedNumber.js";
|
|
6
|
+
function S(e, r) {
|
|
7
|
+
return w(e) || _(e, r) || g(e, r) || A();
|
|
8
|
+
}
|
|
9
|
+
function A() {
|
|
10
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
12
|
+
}
|
|
13
|
+
function g(e, r) {
|
|
14
|
+
if (e) {
|
|
15
|
+
if (typeof e == "string") return f(e, r);
|
|
16
|
+
var t = {}.toString.call(e).slice(8, -1);
|
|
17
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? f(e, r) : void 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function f(e, r) {
|
|
21
|
+
(r == null || r > e.length) && (r = e.length);
|
|
22
|
+
for (var t = 0, n = Array(r); t < r; t++) n[t] = e[t];
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
function _(e, r) {
|
|
26
|
+
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
27
|
+
if (t != null) {
|
|
28
|
+
var n, i, a, l, o = [], u = !0, c = !1;
|
|
29
|
+
try {
|
|
30
|
+
if (a = (t = t.call(e)).next, r !== 0) for (; !(u = (n = a.call(t)).done) && (o.push(n.value), o.length !== r); u = !0) ;
|
|
31
|
+
} catch (s) {
|
|
32
|
+
c = !0, i = s;
|
|
33
|
+
} finally {
|
|
34
|
+
try {
|
|
35
|
+
if (!u && t.return != null && (l = t.return(), Object(l) !== l)) return;
|
|
36
|
+
} finally {
|
|
37
|
+
if (c) throw i;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return o;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function w(e) {
|
|
44
|
+
if (Array.isArray(e)) return e;
|
|
45
|
+
}
|
|
46
|
+
function W() {
|
|
47
|
+
var e = y(), r = m(null), t = S(r, 2), n = t[0], i = t[1], a = d(h);
|
|
48
|
+
return p(() => {
|
|
49
|
+
if (n != null) {
|
|
50
|
+
var l = n.getBoundingClientRect(), o = l.width / n.offsetWidth;
|
|
51
|
+
b(o) && o !== a && e(v(o));
|
|
52
|
+
}
|
|
53
|
+
}, [n, e, a]), i;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
W as useReportScale
|
|
57
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var a = {
|
|
2
|
+
/**
|
|
3
|
+
* CartesianGrid and PolarGrid
|
|
4
|
+
*/
|
|
5
|
+
grid: -100,
|
|
6
|
+
/**
|
|
7
|
+
* Background of Bar and RadialBar.
|
|
8
|
+
* This is not visible by default but can be enabled by setting background={true} on Bar or RadialBar.
|
|
9
|
+
*/
|
|
10
|
+
barBackground: -50,
|
|
11
|
+
/*
|
|
12
|
+
* other chart elements or custom elements without specific zIndex
|
|
13
|
+
* render in here, at zIndex 0
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Area, Pie, Radar, and ReferenceArea
|
|
17
|
+
*/
|
|
18
|
+
area: 100,
|
|
19
|
+
/**
|
|
20
|
+
* Cursor is embedded inside Tooltip and controlled by it.
|
|
21
|
+
* The Tooltip itself has a separate portal and is not included in the zIndex system;
|
|
22
|
+
* Cursor is the decoration inside the chart area. CursorRectangle is a rectangle box.
|
|
23
|
+
* It renders below bar so that in a stacked bar chart the cursor rectangle does not hide the other bars.
|
|
24
|
+
*/
|
|
25
|
+
cursorRectangle: 200,
|
|
26
|
+
/**
|
|
27
|
+
* Bar and RadialBar
|
|
28
|
+
*/
|
|
29
|
+
bar: 300,
|
|
30
|
+
/**
|
|
31
|
+
* Line and ReferenceLine, and ErrorBor
|
|
32
|
+
*/
|
|
33
|
+
line: 400,
|
|
34
|
+
/**
|
|
35
|
+
* XAxis and YAxis and PolarAngleAxis and PolarRadiusAxis ticks and lines and children
|
|
36
|
+
*/
|
|
37
|
+
axis: 500,
|
|
38
|
+
/**
|
|
39
|
+
* Scatter and ReferenceDot,
|
|
40
|
+
* and Dots of Line and Area and Radar if they have dot=true
|
|
41
|
+
*/
|
|
42
|
+
scatter: 600,
|
|
43
|
+
/**
|
|
44
|
+
* Hovering over a Bar or RadialBar renders a highlight rectangle
|
|
45
|
+
*/
|
|
46
|
+
activeBar: 1e3,
|
|
47
|
+
/**
|
|
48
|
+
* Cursor is embedded inside Tooltip and controlled by it.
|
|
49
|
+
* The Tooltip itself has a separate portal and is not included in the zIndex system;
|
|
50
|
+
* Cursor is the decoration inside the chart area, usually a cross or a box.
|
|
51
|
+
* CursorLine is a line cursor rendered in Line, Area, Scatter, Radar charts.
|
|
52
|
+
* It renders above the Line and Scatter so that it is always visible.
|
|
53
|
+
* It renders below active dot so that the dot is always visible and shows the current point.
|
|
54
|
+
* We're also assuming that the active dot is small enough that it does not fully cover the cursor line.
|
|
55
|
+
*
|
|
56
|
+
* This also applies to the radial cursor in RadialBarChart.
|
|
57
|
+
*/
|
|
58
|
+
cursorLine: 1100,
|
|
59
|
+
/**
|
|
60
|
+
* Hovering over a Point in Line, Area, Scatter, Radar renders a highlight dot
|
|
61
|
+
*/
|
|
62
|
+
activeDot: 1200,
|
|
63
|
+
/**
|
|
64
|
+
* LabelList and Label, including Axis labels
|
|
65
|
+
*/
|
|
66
|
+
label: 2e3
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
a as DefaultZIndexes
|
|
70
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { useRef as s, useLayoutEffect as p } from "react";
|
|
2
|
+
import { createPortal as x } from "react-dom";
|
|
3
|
+
import { useAppDispatch as h, useAppSelector as E } from "../state/hooks.js";
|
|
4
|
+
import { selectZIndexPortalElement as P } from "./zIndexSelectors.js";
|
|
5
|
+
import { unregisterZIndexPortal as f, registerZIndexPortal as Z } from "../state/zIndexSlice.js";
|
|
6
|
+
import { useIsInChartContext as C } from "../context/chartLayoutContext.js";
|
|
7
|
+
import { useIsPanorama as R } from "../context/PanoramaContext.js";
|
|
8
|
+
function D(l) {
|
|
9
|
+
var r = l.zIndex, c = l.children, I = C(), i = I && r !== void 0 && r !== 0, v = R(), d = s(void 0), a = s(/* @__PURE__ */ new Set()), t = h(), n = E((e) => P(e, r, v));
|
|
10
|
+
if (p(() => {
|
|
11
|
+
if (!i) {
|
|
12
|
+
var e = a.current;
|
|
13
|
+
e.forEach((o) => {
|
|
14
|
+
t(f({
|
|
15
|
+
zIndex: o
|
|
16
|
+
}));
|
|
17
|
+
}), e.clear(), d.current = void 0;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (a.current.has(r) || (t(Z({
|
|
21
|
+
zIndex: r
|
|
22
|
+
})), a.current.add(r)), n) {
|
|
23
|
+
d.current = n;
|
|
24
|
+
var u = a.current;
|
|
25
|
+
u.forEach((o) => {
|
|
26
|
+
o !== r && (t(f({
|
|
27
|
+
zIndex: o
|
|
28
|
+
})), u.delete(o));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}, [t, r, i, n]), p(() => {
|
|
32
|
+
var e = a.current;
|
|
33
|
+
return () => {
|
|
34
|
+
e.forEach((u) => {
|
|
35
|
+
t(f({
|
|
36
|
+
zIndex: u
|
|
37
|
+
}));
|
|
38
|
+
}), e.clear();
|
|
39
|
+
};
|
|
40
|
+
}, [t]), !i)
|
|
41
|
+
return c;
|
|
42
|
+
var m = n ?? d.current;
|
|
43
|
+
return m ? /* @__PURE__ */ x(c, m) : null;
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
D as ZIndexLayer
|
|
47
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { useRef as s, useLayoutEffect as c } from "react";
|
|
3
|
+
import { useAppSelector as d, useAppDispatch as u } from "../state/hooks.js";
|
|
4
|
+
import { registerZIndexPortalElement as f, unregisterZIndexPortalElement as p } from "../state/zIndexSlice.js";
|
|
5
|
+
import { selectAllRegisteredZIndexes as x } from "./zIndexSelectors.js";
|
|
6
|
+
function m(n) {
|
|
7
|
+
var a = n.zIndex, t = n.isPanorama, r = s(null), l = u();
|
|
8
|
+
return c(() => (r.current && l(f({
|
|
9
|
+
zIndex: a,
|
|
10
|
+
element: r.current,
|
|
11
|
+
isPanorama: t
|
|
12
|
+
})), () => {
|
|
13
|
+
l(p({
|
|
14
|
+
zIndex: a,
|
|
15
|
+
isPanorama: t
|
|
16
|
+
}));
|
|
17
|
+
}), [l, a, t]), /* @__PURE__ */ i.createElement("g", {
|
|
18
|
+
tabIndex: -1,
|
|
19
|
+
ref: r,
|
|
20
|
+
className: "recharts-zIndex-layer_".concat(a)
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function Z(n) {
|
|
24
|
+
var a = n.children, t = n.isPanorama, r = d(x);
|
|
25
|
+
if (!r || r.length === 0)
|
|
26
|
+
return a;
|
|
27
|
+
var l = r.filter((e) => e < 0), o = r.filter((e) => e > 0);
|
|
28
|
+
return /* @__PURE__ */ i.createElement(i.Fragment, null, l.map((e) => /* @__PURE__ */ i.createElement(m, {
|
|
29
|
+
key: e,
|
|
30
|
+
zIndex: e,
|
|
31
|
+
isPanorama: t
|
|
32
|
+
})), a, o.map((e) => /* @__PURE__ */ i.createElement(m, {
|
|
33
|
+
key: e,
|
|
34
|
+
zIndex: e,
|
|
35
|
+
isPanorama: t
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
Z as AllZIndexPortals
|
|
40
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createSelector as a } from "../../../reselect/dist/reselect.js";
|
|
2
|
+
import { arrayContentsAreEqualCheck as u } from "../state/selectors/arrayEqualityCheck.js";
|
|
3
|
+
import { DefaultZIndexes as m } from "./DefaultZIndexes.js";
|
|
4
|
+
var d = a((e) => e.zIndex.zIndexMap, (e, r) => r, (e, r, n) => n, (e, r, n) => {
|
|
5
|
+
if (r != null) {
|
|
6
|
+
var t = e[r];
|
|
7
|
+
if (t != null)
|
|
8
|
+
return n ? t.panoramaElement : t.element;
|
|
9
|
+
}
|
|
10
|
+
}), c = a((e) => e.zIndex.zIndexMap, (e) => {
|
|
11
|
+
var r = Object.keys(e).map((t) => parseInt(t, 10)).concat(Object.values(m)), n = Array.from(new Set(r));
|
|
12
|
+
return n.sort((t, l) => t - l);
|
|
13
|
+
}, {
|
|
14
|
+
memoizeOptions: {
|
|
15
|
+
resultEqualityCheck: u
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
c as selectAllRegisteredZIndexes,
|
|
20
|
+
d as selectZIndexPortalElement
|
|
21
|
+
};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
function i(e) {
|
|
2
|
+
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
3
|
+
}
|
|
4
|
+
var S = typeof Symbol == "function" && Symbol.observable || "@@observable", _ = S, O = () => Math.random().toString(36).substring(7).split("").join("."), k = {
|
|
5
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ O()}`,
|
|
6
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ O()}`,
|
|
7
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${O()}`
|
|
8
|
+
}, b = k;
|
|
9
|
+
function v(e) {
|
|
10
|
+
if (typeof e != "object" || e === null)
|
|
11
|
+
return !1;
|
|
12
|
+
let t = e;
|
|
13
|
+
for (; Object.getPrototypeOf(t) !== null; )
|
|
14
|
+
t = Object.getPrototypeOf(t);
|
|
15
|
+
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
16
|
+
}
|
|
17
|
+
function $(e) {
|
|
18
|
+
if (e === void 0)
|
|
19
|
+
return "undefined";
|
|
20
|
+
if (e === null)
|
|
21
|
+
return "null";
|
|
22
|
+
const t = typeof e;
|
|
23
|
+
switch (t) {
|
|
24
|
+
case "boolean":
|
|
25
|
+
case "string":
|
|
26
|
+
case "number":
|
|
27
|
+
case "symbol":
|
|
28
|
+
case "function":
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
if (Array.isArray(e))
|
|
32
|
+
return "array";
|
|
33
|
+
if (V(e))
|
|
34
|
+
return "date";
|
|
35
|
+
if (T(e))
|
|
36
|
+
return "error";
|
|
37
|
+
const r = j(e);
|
|
38
|
+
switch (r) {
|
|
39
|
+
case "Symbol":
|
|
40
|
+
case "Promise":
|
|
41
|
+
case "WeakMap":
|
|
42
|
+
case "WeakSet":
|
|
43
|
+
case "Map":
|
|
44
|
+
case "Set":
|
|
45
|
+
return r;
|
|
46
|
+
}
|
|
47
|
+
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
48
|
+
}
|
|
49
|
+
function j(e) {
|
|
50
|
+
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
51
|
+
}
|
|
52
|
+
function T(e) {
|
|
53
|
+
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
54
|
+
}
|
|
55
|
+
function V(e) {
|
|
56
|
+
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
57
|
+
}
|
|
58
|
+
function y(e) {
|
|
59
|
+
let t = typeof e;
|
|
60
|
+
return process.env.NODE_ENV !== "production" && (t = $(e)), t;
|
|
61
|
+
}
|
|
62
|
+
function A(e, t, r) {
|
|
63
|
+
if (typeof e != "function")
|
|
64
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(2) : `Expected the root reducer to be a function. Instead, received: '${y(e)}'`);
|
|
65
|
+
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
66
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
67
|
+
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
68
|
+
if (typeof r != "function")
|
|
69
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(1) : `Expected the enhancer to be a function. Instead, received: '${y(r)}'`);
|
|
70
|
+
return r(A)(e, t);
|
|
71
|
+
}
|
|
72
|
+
let a = e, d = t, u = /* @__PURE__ */ new Map(), o = u, s = 0, c = !1;
|
|
73
|
+
function f() {
|
|
74
|
+
o === u && (o = /* @__PURE__ */ new Map(), u.forEach((n, p) => {
|
|
75
|
+
o.set(p, n);
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
function w() {
|
|
79
|
+
if (c)
|
|
80
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
81
|
+
return d;
|
|
82
|
+
}
|
|
83
|
+
function l(n) {
|
|
84
|
+
if (typeof n != "function")
|
|
85
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(4) : `Expected the listener to be a function. Instead, received: '${y(n)}'`);
|
|
86
|
+
if (c)
|
|
87
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
88
|
+
let p = !0;
|
|
89
|
+
f();
|
|
90
|
+
const E = s++;
|
|
91
|
+
return o.set(E, n), function() {
|
|
92
|
+
if (p) {
|
|
93
|
+
if (c)
|
|
94
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
95
|
+
p = !1, f(), o.delete(E), u = null;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function h(n) {
|
|
100
|
+
if (!v(n))
|
|
101
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(7) : `Actions must be plain objects. Instead, the actual type was: '${y(n)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
102
|
+
if (typeof n.type > "u")
|
|
103
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
104
|
+
if (typeof n.type != "string")
|
|
105
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(17) : `Action "type" property must be a string. Instead, the actual type was: '${y(n.type)}'. Value was: '${n.type}' (stringified)`);
|
|
106
|
+
if (c)
|
|
107
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(9) : "Reducers may not dispatch actions.");
|
|
108
|
+
try {
|
|
109
|
+
c = !0, d = a(d, n);
|
|
110
|
+
} finally {
|
|
111
|
+
c = !1;
|
|
112
|
+
}
|
|
113
|
+
return (u = o).forEach((E) => {
|
|
114
|
+
E();
|
|
115
|
+
}), n;
|
|
116
|
+
}
|
|
117
|
+
function N(n) {
|
|
118
|
+
if (typeof n != "function")
|
|
119
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(10) : `Expected the nextReducer to be a function. Instead, received: '${y(n)}`);
|
|
120
|
+
a = n, h({
|
|
121
|
+
type: b.REPLACE
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function g() {
|
|
125
|
+
const n = l;
|
|
126
|
+
return {
|
|
127
|
+
/**
|
|
128
|
+
* The minimal observable subscription method.
|
|
129
|
+
* @param observer Any object that can be used as an observer.
|
|
130
|
+
* The observer object should have a `next` method.
|
|
131
|
+
* @returns An object with an `unsubscribe` method that can
|
|
132
|
+
* be used to unsubscribe the observable from the store, and prevent further
|
|
133
|
+
* emission of values from the observable.
|
|
134
|
+
*/
|
|
135
|
+
subscribe(p) {
|
|
136
|
+
if (typeof p != "object" || p === null)
|
|
137
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(11) : `Expected the observer to be an object. Instead, received: '${y(p)}'`);
|
|
138
|
+
function E() {
|
|
139
|
+
const x = p;
|
|
140
|
+
x.next && x.next(w());
|
|
141
|
+
}
|
|
142
|
+
return E(), {
|
|
143
|
+
unsubscribe: n(E)
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
[_]() {
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return h({
|
|
152
|
+
type: b.INIT
|
|
153
|
+
}), {
|
|
154
|
+
dispatch: h,
|
|
155
|
+
subscribe: l,
|
|
156
|
+
getState: w,
|
|
157
|
+
replaceReducer: N,
|
|
158
|
+
[_]: g
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function I(e) {
|
|
162
|
+
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
163
|
+
try {
|
|
164
|
+
throw new Error(e);
|
|
165
|
+
} catch {
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function P(e, t, r, a) {
|
|
169
|
+
const d = Object.keys(t), u = r && r.type === b.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
170
|
+
if (d.length === 0)
|
|
171
|
+
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
172
|
+
if (!v(e))
|
|
173
|
+
return `The ${u} has unexpected type of "${y(e)}". Expected argument to be an object with the following keys: "${d.join('", "')}"`;
|
|
174
|
+
const o = Object.keys(e).filter((s) => !t.hasOwnProperty(s) && !a[s]);
|
|
175
|
+
if (o.forEach((s) => {
|
|
176
|
+
a[s] = !0;
|
|
177
|
+
}), !(r && r.type === b.REPLACE) && o.length > 0)
|
|
178
|
+
return `Unexpected ${o.length > 1 ? "keys" : "key"} "${o.join('", "')}" found in ${u}. Expected to find one of the known reducer keys instead: "${d.join('", "')}". Unexpected keys will be ignored.`;
|
|
179
|
+
}
|
|
180
|
+
function R(e) {
|
|
181
|
+
Object.keys(e).forEach((t) => {
|
|
182
|
+
const r = e[t];
|
|
183
|
+
if (typeof r(void 0, {
|
|
184
|
+
type: b.INIT
|
|
185
|
+
}) > "u")
|
|
186
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
187
|
+
if (typeof r(void 0, {
|
|
188
|
+
type: b.PROBE_UNKNOWN_ACTION()
|
|
189
|
+
}) > "u")
|
|
190
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${b.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function C(e) {
|
|
194
|
+
const t = Object.keys(e), r = {};
|
|
195
|
+
for (let o = 0; o < t.length; o++) {
|
|
196
|
+
const s = t[o];
|
|
197
|
+
process.env.NODE_ENV !== "production" && typeof e[s] > "u" && I(`No reducer provided for key "${s}"`), typeof e[s] == "function" && (r[s] = e[s]);
|
|
198
|
+
}
|
|
199
|
+
const a = Object.keys(r);
|
|
200
|
+
let d;
|
|
201
|
+
process.env.NODE_ENV !== "production" && (d = {});
|
|
202
|
+
let u;
|
|
203
|
+
try {
|
|
204
|
+
R(r);
|
|
205
|
+
} catch (o) {
|
|
206
|
+
u = o;
|
|
207
|
+
}
|
|
208
|
+
return function(s = {}, c) {
|
|
209
|
+
if (u)
|
|
210
|
+
throw u;
|
|
211
|
+
if (process.env.NODE_ENV !== "production") {
|
|
212
|
+
const l = P(s, r, c, d);
|
|
213
|
+
l && I(l);
|
|
214
|
+
}
|
|
215
|
+
let f = !1;
|
|
216
|
+
const w = {};
|
|
217
|
+
for (let l = 0; l < a.length; l++) {
|
|
218
|
+
const h = a[l], N = r[h], g = s[h], m = N(g, c);
|
|
219
|
+
if (typeof m > "u") {
|
|
220
|
+
const n = c && c.type;
|
|
221
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(14) : `When called with an action of type ${n ? `"${String(n)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
222
|
+
}
|
|
223
|
+
w[h] = m, f = f || m !== g;
|
|
224
|
+
}
|
|
225
|
+
return f = f || a.length !== Object.keys(s).length, f ? w : s;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function M(...e) {
|
|
229
|
+
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...a) => t(r(...a)));
|
|
230
|
+
}
|
|
231
|
+
function K(...e) {
|
|
232
|
+
return (t) => (r, a) => {
|
|
233
|
+
const d = t(r, a);
|
|
234
|
+
let u = () => {
|
|
235
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
236
|
+
};
|
|
237
|
+
const o = {
|
|
238
|
+
getState: d.getState,
|
|
239
|
+
dispatch: (c, ...f) => u(c, ...f)
|
|
240
|
+
}, s = e.map((c) => c(o));
|
|
241
|
+
return u = M(...s)(d.dispatch), {
|
|
242
|
+
...d,
|
|
243
|
+
dispatch: u
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function L(e) {
|
|
248
|
+
return v(e) && "type" in e && typeof e.type == "string";
|
|
249
|
+
}
|
|
250
|
+
export {
|
|
251
|
+
b as __DO_NOT_USE__ActionTypes,
|
|
252
|
+
K as applyMiddleware,
|
|
253
|
+
C as combineReducers,
|
|
254
|
+
M as compose,
|
|
255
|
+
A as createStore,
|
|
256
|
+
L as isAction,
|
|
257
|
+
v as isPlainObject
|
|
258
|
+
};
|