@undp/data-viz 2.4.1 → 2.5.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/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.d.ts +11 -9
- package/dist/AreaChart.js +320 -322
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +15 -25
- package/dist/BarGraph.js +1694 -1694
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +13 -9
- package/dist/BasicStatCard.js +79 -81
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +11 -9
- package/dist/BeeSwarmChart.js +335 -336
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +13 -3
- package/dist/BiVariateChoroplethMap.js +247 -245
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +11 -5
- package/dist/BulletChart.js +560 -559
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +11 -9
- package/dist/ButterflyChart.js +348 -350
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +11 -3
- package/dist/ChoroplethMap.js +213 -213
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +11 -9
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +1 -1
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +4 -5
- package/dist/DataTable.js +114 -116
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
- package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
- package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
- package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +11 -9
- package/dist/DifferenceLineChart.js +502 -504
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +14 -9
- package/dist/DonutChart.js +174 -179
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.d.ts +1 -1
- package/dist/DotDensityMap.js +2 -2
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +13 -9
- package/dist/DualAxisLineChart.js +341 -351
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +11 -9
- package/dist/DumbbellChart.js +592 -593
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.d.ts +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.d.ts +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphEl-B7x5ku_y.cjs +2 -0
- package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
- package/dist/GraphEl-B8tGXqWk.js +1829 -0
- package/dist/GraphEl-B8tGXqWk.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +28 -16
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +28 -16
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +11 -9
- package/dist/HeatMap.js +203 -205
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +11 -5
- package/dist/Histogram.js +88 -89
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +11 -3
- package/dist/HybridMap.js +279 -279
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
- package/dist/LineChartWithConfidenceInterval.js +393 -395
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +28 -16
- package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +11 -9
- package/dist/MultiLineAltChart.js +411 -413
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.d.ts +11 -9
- package/dist/MultiLineChart.js +438 -440
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +13 -13
- package/dist/ParetoChart.js +347 -355
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +11 -5
- package/dist/RadarChart.js +213 -213
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +11 -9
- package/dist/SankeyChart.js +448 -450
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +13 -13
- package/dist/ScatterPlot.js +490 -498
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +28 -16
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +11 -9
- package/dist/SimpleLineChart.js +362 -364
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +28 -16
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.d.ts +1 -1
- package/dist/SlopeChart.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +1 -1
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +11 -9
- package/dist/StatCardFromData.js +113 -116
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +11 -9
- package/dist/StripChart.js +434 -435
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +11 -3
- package/dist/ThreeDGlobe.js +143 -143
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
- package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
- package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
- package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +11 -9
- package/dist/TreeMapGraph.js +369 -371
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +28 -16
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +11 -5
- package/dist/UnitChart.js +118 -119
- package/dist/UnitChart.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +11 -9
- package/dist/WaterfallChart.js +306 -308
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
- package/dist/index-BPyj_6hG.js +375 -0
- package/dist/index-BPyj_6hG.js.map +1 -0
- package/dist/index-DuLvdHo2.cjs +2 -0
- package/dist/index-DuLvdHo2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +105 -245
- package/dist/index.js +2 -2
- package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
- package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
- package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
- package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
- package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
- package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-B73N4RIA.js +0 -1906
- package/dist/GraphEl-B73N4RIA.js.map +0 -1
- package/dist/GraphEl-Lt1og0C-.cjs +0 -2
- package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
- package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
- package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
- package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
- package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
- package/dist/index-B0Awa_de.js +0 -377
- package/dist/index-B0Awa_de.js.map +0 -1
- package/dist/index-CP8cmNzt.cjs +0 -2
- package/dist/index-CP8cmNzt.cjs.map +0 -1
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
- package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
- package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/BarGraph.js
CHANGED
|
@@ -1,179 +1,180 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { g as
|
|
4
|
-
import { f as
|
|
5
|
-
import { o as
|
|
6
|
-
import { s as
|
|
7
|
-
import { i as
|
|
8
|
-
import { n as
|
|
9
|
-
import { T as
|
|
10
|
-
import { c as
|
|
11
|
-
import { Y as
|
|
12
|
-
import { A as
|
|
13
|
-
import { A as
|
|
14
|
-
import { X as
|
|
15
|
-
import { R as
|
|
16
|
-
import { Y as
|
|
17
|
-
import { X as
|
|
18
|
-
import { D as
|
|
19
|
-
import { u as
|
|
20
|
-
import { a as
|
|
21
|
-
import { b as
|
|
22
|
-
import { m as
|
|
23
|
-
import { A as
|
|
24
|
-
import { GraphHeader as
|
|
25
|
-
import { GraphFooter as
|
|
26
|
-
import { ColorLegendWithMouseOver as
|
|
27
|
-
import { Colors as
|
|
28
|
-
import { E as
|
|
29
|
-
import { P as
|
|
30
|
-
import { d as
|
|
31
|
-
import { a as
|
|
32
|
-
import { u as
|
|
33
|
-
import { g as
|
|
34
|
-
function
|
|
35
|
-
const t =
|
|
36
|
-
data:
|
|
37
|
-
leftMargin:
|
|
38
|
-
rightMargin:
|
|
39
|
-
topMargin:
|
|
40
|
-
bottomMargin:
|
|
41
|
-
barColors:
|
|
42
|
-
barPadding:
|
|
43
|
-
showTicks:
|
|
44
|
-
truncateBy:
|
|
1
|
+
import { c as Me, j as i, m as Ve } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useRef as Oe, useState as _t, useEffect as je } from "react";
|
|
3
|
+
import { g as Ze, N as Re } from "./getSliderMarks-X-_goqH9.js";
|
|
4
|
+
import { f as De, p as qe } from "./parse-Dv4of-PN.js";
|
|
5
|
+
import { o as Ye } from "./index-BZQYSqar.js";
|
|
6
|
+
import { s as fe } from "./index-CeVNqhMO.js";
|
|
7
|
+
import { i as Te } from "./index-Bwrro8-q.js";
|
|
8
|
+
import { n as $e } from "./numberFormattingFunction-BUUV_luR.js";
|
|
9
|
+
import { T as Se } from "./Tooltip-3EYDVa3w.js";
|
|
10
|
+
import { c as se } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { Y as Ue } from "./YAxesLabels-hWEUCTvs.js";
|
|
12
|
+
import { A as Be } from "./Axis-CNZYWzH0.js";
|
|
13
|
+
import { A as Fe } from "./AxisTitle-CyLCqpW6.js";
|
|
14
|
+
import { X as Je } from "./XTicksAndGridLines-CkYwVshF.js";
|
|
15
|
+
import { R as Ke, a as Qe } from "./ReferenceLine-D41VuUhE.js";
|
|
16
|
+
import { Y as _e } from "./YTicksAndGridLines-BbujwxOB.js";
|
|
17
|
+
import { X as ti } from "./XAxesLabels-B9gkjUiC.js";
|
|
18
|
+
import { D as Pe } from "./DetailsModal-GqEbGHY2.js";
|
|
19
|
+
import { u as He } from "./use-in-view-KOXq5Kmc.js";
|
|
20
|
+
import { a as We } from "./linear-DNXM5Pdl.js";
|
|
21
|
+
import { b as ze } from "./band-DYty33LD.js";
|
|
22
|
+
import { m as ee } from "./proxy-BsxtcZKa.js";
|
|
23
|
+
import { A as Xe } from "./index-Cv_5q6Rb.js";
|
|
24
|
+
import { GraphHeader as ei } from "./GraphHeader.js";
|
|
25
|
+
import { GraphFooter as ii } from "./GraphFooter.js";
|
|
26
|
+
import { ColorLegendWithMouseOver as si } from "./ColorLegendWithMouseOver.js";
|
|
27
|
+
import { Colors as ve } from "./Colors.js";
|
|
28
|
+
import { E as li } from "./EmptyState-CaxXCkiN.js";
|
|
29
|
+
import { P as ai, e as oi } from "./index-ApTBN0kp.js";
|
|
30
|
+
import { d as Ne, f as ci } from "./ensureCompleteData-CDIukSG6.js";
|
|
31
|
+
import { a as ni, G as ri } from "./GraphContainer-B8ZqOzKI.js";
|
|
32
|
+
import { u as di } from "./uniqBy-BHy4I8PK.js";
|
|
33
|
+
import { g as Ge } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
34
|
+
function ui(e) {
|
|
35
|
+
const t = Me.c(133), {
|
|
36
|
+
data: l,
|
|
37
|
+
leftMargin: X,
|
|
38
|
+
rightMargin: Rt,
|
|
39
|
+
topMargin: Ut,
|
|
40
|
+
bottomMargin: jt,
|
|
41
|
+
barColors: Mt,
|
|
42
|
+
barPadding: St,
|
|
43
|
+
showTicks: H,
|
|
44
|
+
truncateBy: U,
|
|
45
45
|
width: O,
|
|
46
|
-
height:
|
|
47
|
-
suffix:
|
|
48
|
-
prefix:
|
|
49
|
-
showValues:
|
|
50
|
-
showLabels:
|
|
51
|
-
tooltip:
|
|
52
|
-
onSeriesMouseOver:
|
|
53
|
-
refValues:
|
|
54
|
-
maxValue:
|
|
55
|
-
minValue:
|
|
56
|
-
onSeriesMouseClick:
|
|
57
|
-
selectedColor:
|
|
58
|
-
rtl:
|
|
59
|
-
labelOrder:
|
|
60
|
-
maxBarThickness:
|
|
61
|
-
resetSelectionOnDoubleClick:
|
|
62
|
-
detailsOnClick:
|
|
63
|
-
barAxisTitle:
|
|
64
|
-
valueColor:
|
|
46
|
+
height: G,
|
|
47
|
+
suffix: gt,
|
|
48
|
+
prefix: st,
|
|
49
|
+
showValues: kt,
|
|
50
|
+
showLabels: Y,
|
|
51
|
+
tooltip: nt,
|
|
52
|
+
onSeriesMouseOver: Tt,
|
|
53
|
+
refValues: Ct,
|
|
54
|
+
maxValue: Yt,
|
|
55
|
+
minValue: M,
|
|
56
|
+
onSeriesMouseClick: J,
|
|
57
|
+
selectedColor: S,
|
|
58
|
+
rtl: z,
|
|
59
|
+
labelOrder: ut,
|
|
60
|
+
maxBarThickness: K,
|
|
61
|
+
resetSelectionOnDoubleClick: yt,
|
|
62
|
+
detailsOnClick: B,
|
|
63
|
+
barAxisTitle: Q,
|
|
64
|
+
valueColor: lt,
|
|
65
65
|
noOfTicks: u,
|
|
66
|
-
styles:
|
|
66
|
+
styles: s,
|
|
67
67
|
classNames: a,
|
|
68
68
|
animate: f,
|
|
69
69
|
colorDomain: x,
|
|
70
|
-
precision:
|
|
71
|
-
customLayers:
|
|
72
|
-
naLabel:
|
|
73
|
-
hideAxisLine:
|
|
74
|
-
locale:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
precision: y,
|
|
71
|
+
customLayers: m,
|
|
72
|
+
naLabel: rt,
|
|
73
|
+
hideAxisLine: F,
|
|
74
|
+
locale: L,
|
|
75
|
+
padZeros: T
|
|
76
|
+
} = e, Et = X === void 0 ? 100 : X, Bt = Rt === void 0 ? 40 : Rt, xt = Ut === void 0 ? 25 : Ut, Ft = jt === void 0 ? 10 : jt, Gt = Oe(null);
|
|
77
|
+
let D;
|
|
78
|
+
t[0] !== f.amount || t[1] !== f.once ? (D = {
|
|
78
79
|
once: f.once,
|
|
79
80
|
amount: f.amount
|
|
80
|
-
}, t[0] = f.amount, t[1] = f.once, t[2] =
|
|
81
|
-
const
|
|
81
|
+
}, t[0] = f.amount, t[1] = f.once, t[2] = D) : D = t[2];
|
|
82
|
+
const V = He(Gt, D), Z = Q ? xt + 25 : xt;
|
|
82
83
|
let p;
|
|
83
|
-
t[3] !==
|
|
84
|
-
top:
|
|
85
|
-
bottom:
|
|
86
|
-
left:
|
|
87
|
-
right:
|
|
88
|
-
}, t[3] =
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
if (t[8] !==
|
|
92
|
-
const v = /* @__PURE__ */ new Set(),
|
|
93
|
-
const
|
|
94
|
-
return v.add(
|
|
95
|
-
...
|
|
96
|
-
id:
|
|
84
|
+
t[3] !== Ft || t[4] !== Et || t[5] !== Bt || t[6] !== Z ? (p = {
|
|
85
|
+
top: Z,
|
|
86
|
+
bottom: Ft,
|
|
87
|
+
left: Et,
|
|
88
|
+
right: Bt
|
|
89
|
+
}, t[3] = Ft, t[4] = Et, t[5] = Bt, t[6] = Z, t[7] = p) : p = t[7];
|
|
90
|
+
const b = p, [I, C] = _t(void 0), [N, mt] = _t(void 0), [Pt, Lt] = _t(void 0), [Ht, ct] = _t(void 0), Xt = O - b.left - b.right, W = G - b.top - b.bottom;
|
|
91
|
+
let _;
|
|
92
|
+
if (t[8] !== l || t[9] !== ut) {
|
|
93
|
+
const v = /* @__PURE__ */ new Set(), It = l.map((g, q) => {
|
|
94
|
+
const Zt = ut ? `${g.label}` : `${q}`;
|
|
95
|
+
return v.add(Zt), {
|
|
96
|
+
...g,
|
|
97
|
+
id: Zt
|
|
97
98
|
};
|
|
98
|
-
}),
|
|
99
|
-
let
|
|
100
|
-
t[11] !==
|
|
101
|
-
id:
|
|
102
|
-
label:
|
|
103
|
-
size: Array(
|
|
104
|
-
}), t[11] =
|
|
99
|
+
}), Ot = ut ? ut.filter((g) => !v.has(g)) : [];
|
|
100
|
+
let c;
|
|
101
|
+
t[11] !== l[0].size.length ? (c = (g) => ({
|
|
102
|
+
id: g,
|
|
103
|
+
label: g,
|
|
104
|
+
size: Array(l[0].size.length).fill(null)
|
|
105
|
+
}), t[11] = l[0].size.length, t[12] = c) : c = t[12], _ = [...It, ...Ot.map(c)], t[8] = l, t[9] = ut, t[10] = _;
|
|
105
106
|
} else
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
t[13] !==
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
if (t[16] !== f || t[17] !==
|
|
113
|
-
const v =
|
|
114
|
-
|
|
115
|
-
gridLines:
|
|
116
|
-
labels:
|
|
107
|
+
_ = t[10];
|
|
108
|
+
const k = _;
|
|
109
|
+
let tt;
|
|
110
|
+
t[13] !== k || t[14] !== ut ? (tt = ut ?? k.map(bi), t[13] = k, t[14] = ut, t[15] = tt) : tt = t[15];
|
|
111
|
+
const at = tt;
|
|
112
|
+
let bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt, ft;
|
|
113
|
+
if (t[16] !== f || t[17] !== Q || t[18] !== Mt || t[19] !== at || t[20] !== St || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== m || t[29] !== l[0].size || t[30] !== k || t[31] !== B || t[32] !== W || t[33] !== Xt || t[34] !== G || t[35] !== F || t[36] !== V || t[37] !== L || t[38] !== b.bottom || t[39] !== b.left || t[40] !== b.top || t[41] !== K || t[42] !== Yt || t[43] !== M || t[44] !== N || t[45] !== rt || t[46] !== u || t[47] !== J || t[48] !== Tt || t[49] !== T || t[50] !== y || t[51] !== st || t[52] !== Ct || t[53] !== yt || t[54] !== z || t[55] !== S || t[56] !== Y || t[57] !== H || t[58] !== kt || t[59] !== s?.graphObjectValues || t[60] !== s?.xAxis?.gridLines || t[61] !== s?.xAxis?.labels || t[62] !== s?.xAxis?.title || t[63] !== s?.yAxis?.axis || t[64] !== s?.yAxis?.labels || t[65] !== gt || t[66] !== xt || t[67] !== U || t[68] !== lt || t[69] !== O) {
|
|
114
|
+
const v = We().domain([M, Yt]).range([0, Xt]).nice(), It = ze().domain(at).range([0, K ? Math.min(W, K * at.length) : W]).paddingInner(St), Ot = ze().domain(l[0].size.map(yi)).range([0, It.bandwidth()]).paddingInner(0.1), c = v.ticks(u);
|
|
115
|
+
vt = ee.svg, zt = Gt, ht = `${O}px`, ot = `${G}px`, it = `0 0 ${O} ${G}`, wt = "ltr", Vt = `translate(${b.left},${b.top})`, et = H ? /* @__PURE__ */ i.jsx(Je, { values: c.filter(gi), x: c.filter(pi).map((h) => v(h)), y1: 0 - xt, y2: W + b.bottom, styles: {
|
|
116
|
+
gridLines: s?.xAxis?.gridLines,
|
|
117
|
+
labels: s?.xAxis?.labels
|
|
117
118
|
}, classNames: {
|
|
118
119
|
gridLines: a?.xAxis?.gridLines,
|
|
119
120
|
labels: a?.xAxis?.labels
|
|
120
|
-
}, suffix:
|
|
121
|
-
const
|
|
122
|
-
t[
|
|
121
|
+
}, suffix: gt, prefix: st, labelType: "secondary", showGridLines: !0, precision: y, locale: L, padZeros: T }) : null;
|
|
122
|
+
const g = Xt / 2, q = 0 - b.top + 15, Zt = s?.xAxis?.title, Qt = a?.xAxis?.title;
|
|
123
|
+
t[84] !== Q || t[85] !== g || t[86] !== q || t[87] !== Zt || t[88] !== Qt ? (P = /* @__PURE__ */ i.jsx(Fe, { x: g, y: q, style: Zt, className: Qt, text: Q }), t[84] = Q, t[85] = g, t[86] = q, t[87] = Zt, t[88] = Qt, t[89] = P) : P = t[89], t[90] !== m ? (j = m.filter(fi).map(hi), t[90] = m, t[91] = j) : j = t[91], bt = Xe, ft = k.map((h) => se(It(h.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
|
|
123
124
|
initial: {
|
|
124
125
|
x: 0,
|
|
125
|
-
y:
|
|
126
|
+
y: It(`${h.id}`)
|
|
126
127
|
},
|
|
127
128
|
whileInView: {
|
|
128
129
|
x: 0,
|
|
129
|
-
y:
|
|
130
|
+
y: It(`${h.id}`),
|
|
130
131
|
transition: {
|
|
131
132
|
duration: f.duration
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
}, initial: "initial", animate:
|
|
135
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
|
|
135
136
|
opacity: 0,
|
|
136
137
|
transition: {
|
|
137
138
|
duration: f.duration
|
|
138
139
|
}
|
|
139
140
|
}, children: [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
...
|
|
143
|
-
sizeIndex:
|
|
144
|
-
}),
|
|
145
|
-
...
|
|
146
|
-
sizeIndex:
|
|
141
|
+
h.size.map((d, A) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: S ? Mt[A] === S ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
|
|
142
|
+
C({
|
|
143
|
+
...h,
|
|
144
|
+
sizeIndex: A
|
|
145
|
+
}), ct(o.clientY), Lt(o.clientX), Tt?.({
|
|
146
|
+
...h,
|
|
147
|
+
sizeIndex: A
|
|
147
148
|
});
|
|
148
149
|
}, onMouseMove: (o) => {
|
|
149
|
-
|
|
150
|
-
...
|
|
151
|
-
sizeIndex:
|
|
152
|
-
}),
|
|
150
|
+
C({
|
|
151
|
+
...h,
|
|
152
|
+
sizeIndex: A
|
|
153
|
+
}), ct(o.clientY), Lt(o.clientX);
|
|
153
154
|
}, onMouseLeave: () => {
|
|
154
|
-
|
|
155
|
+
C(void 0), Lt(void 0), ct(void 0), Tt?.(void 0);
|
|
155
156
|
}, onClick: () => {
|
|
156
|
-
(
|
|
157
|
-
...
|
|
158
|
-
sizeIndex:
|
|
159
|
-
}) &&
|
|
160
|
-
...
|
|
161
|
-
sizeIndex:
|
|
162
|
-
}),
|
|
163
|
-
...
|
|
164
|
-
sizeIndex:
|
|
157
|
+
(J || B) && (Te(N, {
|
|
158
|
+
...h,
|
|
159
|
+
sizeIndex: A
|
|
160
|
+
}) && yt ? (mt(void 0), J?.(void 0)) : (mt({
|
|
161
|
+
...h,
|
|
162
|
+
sizeIndex: A
|
|
163
|
+
}), J && J({
|
|
164
|
+
...h,
|
|
165
|
+
sizeIndex: A
|
|
165
166
|
})));
|
|
166
167
|
}, children: [
|
|
167
|
-
|
|
168
|
+
se(d) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: Ot(`${A}`), variants: {
|
|
168
169
|
initial: {
|
|
169
170
|
width: 0,
|
|
170
171
|
x: v(0),
|
|
171
|
-
fill:
|
|
172
|
+
fill: Mt[A]
|
|
172
173
|
},
|
|
173
174
|
whileInView: {
|
|
174
|
-
width:
|
|
175
|
+
width: se(d) ? 0 : d >= 0 ? v(d) - v(0) : v(0) - v(d),
|
|
175
176
|
x: d >= 0 ? v(0) : v(d),
|
|
176
|
-
fill:
|
|
177
|
+
fill: Mt[A],
|
|
177
178
|
transition: {
|
|
178
179
|
duration: f.duration
|
|
179
180
|
}
|
|
@@ -184,553 +185,549 @@ function ci(e) {
|
|
|
184
185
|
transition: {
|
|
185
186
|
duration: f.duration
|
|
186
187
|
}
|
|
187
|
-
}, height:
|
|
188
|
-
|
|
188
|
+
}, height: Ot.bandwidth(), initial: "initial", animate: V ? "whileInView" : "initial" }),
|
|
189
|
+
kt ? /* @__PURE__ */ i.jsx(ee.text, { y: Ot(`${A}`) + Ot.bandwidth() / 2, style: {
|
|
189
190
|
textAnchor: d && d < 0 ? "end" : "start",
|
|
190
|
-
...
|
|
191
|
-
}, className:
|
|
191
|
+
...s?.graphObjectValues || {}
|
|
192
|
+
}, className: Ve("graph-value text-sm", a?.graphObjectValues), dx: d && d < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
192
193
|
initial: {
|
|
193
194
|
x: v(0),
|
|
194
195
|
opacity: 0,
|
|
195
|
-
fill:
|
|
196
|
+
fill: lt || Mt[A]
|
|
196
197
|
},
|
|
197
198
|
whileInView: {
|
|
198
199
|
x: v(d || 0),
|
|
199
200
|
opacity: 1,
|
|
200
|
-
fill:
|
|
201
|
+
fill: lt || Mt[A],
|
|
201
202
|
transition: {
|
|
202
203
|
duration: f.duration
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
|
-
}, initial: "initial", animate:
|
|
206
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
|
|
206
207
|
opacity: 0,
|
|
207
208
|
transition: {
|
|
208
209
|
duration: f.duration
|
|
209
210
|
}
|
|
210
|
-
}, children:
|
|
211
|
-
] }, `${
|
|
212
|
-
|
|
213
|
-
] },
|
|
214
|
-
const
|
|
215
|
-
let
|
|
216
|
-
t[
|
|
217
|
-
axis:
|
|
218
|
-
}, t[
|
|
219
|
-
const
|
|
220
|
-
let
|
|
221
|
-
t[
|
|
222
|
-
axis:
|
|
223
|
-
}, t[
|
|
211
|
+
}, children: $e(d, rt, y, st, gt, L, T) }) : null
|
|
212
|
+
] }, `${h.label}-${x[A] || A}`)),
|
|
213
|
+
Y ? /* @__PURE__ */ i.jsx(Ue, { value: `${h.label}`.length < U ? `${h.label}` : `${`${h.label}`.substring(0, U)}...`, y: 0, x: 0 - b.left, width: v(M < 0 ? 0 : M) + b.left, height: It.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: V }) : null
|
|
214
|
+
] }, h.label));
|
|
215
|
+
const qt = a?.yAxis?.axis;
|
|
216
|
+
let Jt;
|
|
217
|
+
t[92] !== qt ? (Jt = {
|
|
218
|
+
axis: qt
|
|
219
|
+
}, t[92] = qt, t[93] = Jt) : Jt = t[93];
|
|
220
|
+
const te = s?.yAxis?.axis;
|
|
221
|
+
let w;
|
|
222
|
+
t[94] !== te ? (w = {
|
|
223
|
+
axis: te
|
|
224
|
+
}, t[94] = te, t[95] = w) : w = t[95], At = /* @__PURE__ */ i.jsx(Be, { x1: v(M < 0 ? 0 : M), x2: v(M < 0 ? 0 : M), y1: -2.5, y2: W + b.bottom, classNames: Jt, styles: w, hideAxisLine: F }), dt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((h, d) => /* @__PURE__ */ i.jsx(Ke, { text: h.text, color: h.color, x: v(h.value), y1: 0 - b.top, y2: W + b.bottom, textSide: v(h.value) > Xt * 0.75 || z ? "left" : "right", classNames: h.classNames, styles: h.styles, animate: f, isInView: V }, d)) }) : null, t[16] = f, t[17] = Q, t[18] = Mt, t[19] = at, t[20] = St, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = m, t[29] = l[0].size, t[30] = k, t[31] = B, t[32] = W, t[33] = Xt, t[34] = G, t[35] = F, t[36] = V, t[37] = L, t[38] = b.bottom, t[39] = b.left, t[40] = b.top, t[41] = K, t[42] = Yt, t[43] = M, t[44] = N, t[45] = rt, t[46] = u, t[47] = J, t[48] = Tt, t[49] = T, t[50] = y, t[51] = st, t[52] = Ct, t[53] = yt, t[54] = z, t[55] = S, t[56] = Y, t[57] = H, t[58] = kt, t[59] = s?.graphObjectValues, t[60] = s?.xAxis?.gridLines, t[61] = s?.xAxis?.labels, t[62] = s?.xAxis?.title, t[63] = s?.yAxis?.axis, t[64] = s?.yAxis?.labels, t[65] = gt, t[66] = xt, t[67] = U, t[68] = lt, t[69] = O, t[70] = bt, t[71] = vt, t[72] = At, t[73] = dt, t[74] = Vt, t[75] = et, t[76] = P, t[77] = j, t[78] = zt, t[79] = ht, t[80] = ot, t[81] = it, t[82] = wt, t[83] = ft;
|
|
224
225
|
} else
|
|
225
|
-
|
|
226
|
-
let
|
|
227
|
-
t[
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
] }), t[
|
|
232
|
-
let
|
|
233
|
-
t[
|
|
234
|
-
let
|
|
235
|
-
t[
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
] }), t[
|
|
242
|
-
let
|
|
243
|
-
t[
|
|
244
|
-
let
|
|
245
|
-
t[
|
|
226
|
+
bt = t[70], vt = t[71], At = t[72], dt = t[73], Vt = t[74], et = t[75], P = t[76], j = t[77], zt = t[78], ht = t[79], ot = t[80], it = t[81], wt = t[82], ft = t[83];
|
|
227
|
+
let R;
|
|
228
|
+
t[96] !== bt || t[97] !== At || t[98] !== dt || t[99] !== ft ? (R = /* @__PURE__ */ i.jsxs(bt, { children: [
|
|
229
|
+
ft,
|
|
230
|
+
At,
|
|
231
|
+
dt
|
|
232
|
+
] }), t[96] = bt, t[97] = At, t[98] = dt, t[99] = ft, t[100] = R) : R = t[100];
|
|
233
|
+
let $t;
|
|
234
|
+
t[101] !== m ? ($t = m.filter(mi).map(xi), t[101] = m, t[102] = $t) : $t = t[102];
|
|
235
|
+
let Dt;
|
|
236
|
+
t[103] !== Vt || t[104] !== et || t[105] !== P || t[106] !== j || t[107] !== R || t[108] !== $t ? (Dt = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
|
|
237
|
+
et,
|
|
238
|
+
P,
|
|
239
|
+
j,
|
|
240
|
+
R,
|
|
241
|
+
$t
|
|
242
|
+
] }), t[103] = Vt, t[104] = et, t[105] = P, t[106] = j, t[107] = R, t[108] = $t, t[109] = Dt) : Dt = t[109];
|
|
243
|
+
let pt;
|
|
244
|
+
t[110] !== vt || t[111] !== zt || t[112] !== ht || t[113] !== ot || t[114] !== it || t[115] !== wt || t[116] !== Dt ? (pt = /* @__PURE__ */ i.jsx(vt, { ref: zt, width: ht, height: ot, viewBox: it, direction: wt, children: Dt }), t[110] = vt, t[111] = zt, t[112] = ht, t[113] = ot, t[114] = it, t[115] = wt, t[116] = Dt, t[117] = pt) : pt = t[117];
|
|
245
|
+
let $;
|
|
246
|
+
t[118] !== a?.tooltip || t[119] !== Pt || t[120] !== Ht || t[121] !== I || t[122] !== s?.tooltip || t[123] !== nt ? ($ = I && nt && Pt && Ht ? /* @__PURE__ */ i.jsx(Se, { data: I, body: nt, xPos: Pt, yPos: Ht, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[118] = a?.tooltip, t[119] = Pt, t[120] = Ht, t[121] = I, t[122] = s?.tooltip, t[123] = nt, t[124] = $) : $ = t[124];
|
|
246
247
|
let Wt;
|
|
247
|
-
t[
|
|
248
|
-
let
|
|
249
|
-
return t[
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
t[125] !== a?.modal || t[126] !== B || t[127] !== N ? (Wt = B && N !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: B, data: N, setData: mt, className: a?.modal }) : null, t[125] = a?.modal, t[126] = B, t[127] = N, t[128] = Wt) : Wt = t[128];
|
|
249
|
+
let r;
|
|
250
|
+
return t[129] !== pt || t[130] !== $ || t[131] !== Wt ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
251
|
+
pt,
|
|
252
|
+
$,
|
|
252
253
|
Wt
|
|
253
|
-
] }), t[
|
|
254
|
+
] }), t[129] = pt, t[130] = $, t[131] = Wt, t[132] = r) : r = t[132], r;
|
|
254
255
|
}
|
|
255
|
-
function
|
|
256
|
+
function xi(e) {
|
|
256
257
|
return e.layer;
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
+
function mi(e) {
|
|
259
260
|
return e.position === "after";
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function hi(e) {
|
|
262
263
|
return e.layer;
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function fi(e) {
|
|
265
266
|
return e.position === "before";
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
+
function pi(e) {
|
|
268
269
|
return e !== 0;
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
+
function gi(e) {
|
|
271
272
|
return e !== 0;
|
|
272
273
|
}
|
|
273
|
-
function
|
|
274
|
+
function yi(e, t) {
|
|
274
275
|
return `${t}`;
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
+
function bi(e) {
|
|
277
278
|
return `${e.id}`;
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
-
const t =
|
|
281
|
-
data:
|
|
282
|
-
leftMargin:
|
|
283
|
-
rightMargin:
|
|
284
|
-
topMargin:
|
|
285
|
-
bottomMargin:
|
|
286
|
-
width:
|
|
287
|
-
height:
|
|
288
|
-
barColors:
|
|
289
|
-
suffix:
|
|
280
|
+
function vi(e) {
|
|
281
|
+
const t = Me.c(144), {
|
|
282
|
+
data: l,
|
|
283
|
+
leftMargin: X,
|
|
284
|
+
rightMargin: Rt,
|
|
285
|
+
topMargin: Ut,
|
|
286
|
+
bottomMargin: jt,
|
|
287
|
+
width: Mt,
|
|
288
|
+
height: St,
|
|
289
|
+
barColors: H,
|
|
290
|
+
suffix: U,
|
|
290
291
|
prefix: O,
|
|
291
|
-
barPadding:
|
|
292
|
-
showLabels:
|
|
293
|
-
showValues:
|
|
294
|
-
showTicks:
|
|
295
|
-
truncateBy:
|
|
296
|
-
tooltip:
|
|
297
|
-
onSeriesMouseOver:
|
|
298
|
-
refValues:
|
|
299
|
-
maxValue:
|
|
300
|
-
minValue:
|
|
301
|
-
onSeriesMouseClick:
|
|
302
|
-
selectedColor:
|
|
303
|
-
labelOrder:
|
|
304
|
-
maxBarThickness:
|
|
305
|
-
resetSelectionOnDoubleClick:
|
|
306
|
-
detailsOnClick:
|
|
307
|
-
barAxisTitle:
|
|
308
|
-
valueColor:
|
|
309
|
-
noOfTicks:
|
|
292
|
+
barPadding: G,
|
|
293
|
+
showLabels: gt,
|
|
294
|
+
showValues: st,
|
|
295
|
+
showTicks: kt,
|
|
296
|
+
truncateBy: Y,
|
|
297
|
+
tooltip: nt,
|
|
298
|
+
onSeriesMouseOver: Tt,
|
|
299
|
+
refValues: Ct,
|
|
300
|
+
maxValue: Yt,
|
|
301
|
+
minValue: M,
|
|
302
|
+
onSeriesMouseClick: J,
|
|
303
|
+
selectedColor: S,
|
|
304
|
+
labelOrder: z,
|
|
305
|
+
maxBarThickness: ut,
|
|
306
|
+
resetSelectionOnDoubleClick: K,
|
|
307
|
+
detailsOnClick: yt,
|
|
308
|
+
barAxisTitle: B,
|
|
309
|
+
valueColor: Q,
|
|
310
|
+
noOfTicks: lt,
|
|
310
311
|
styles: u,
|
|
311
|
-
classNames:
|
|
312
|
+
classNames: s,
|
|
312
313
|
animate: a,
|
|
313
314
|
colorDomain: f,
|
|
314
315
|
precision: x,
|
|
315
|
-
customLayers:
|
|
316
|
-
naLabel:
|
|
317
|
-
hideAxisLine:
|
|
318
|
-
locale:
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
316
|
+
customLayers: y,
|
|
317
|
+
naLabel: m,
|
|
318
|
+
hideAxisLine: rt,
|
|
319
|
+
locale: F,
|
|
320
|
+
padZeros: L
|
|
321
|
+
} = e, T = X === void 0 ? 20 : X, Et = Rt === void 0 ? 20 : Rt, Bt = Ut === void 0 ? 20 : Ut, xt = jt === void 0 ? 25 : jt, Ft = Oe(null);
|
|
322
|
+
let Gt;
|
|
323
|
+
t[0] !== a.amount || t[1] !== a.once ? (Gt = {
|
|
322
324
|
once: a.once,
|
|
323
325
|
amount: a.amount
|
|
324
|
-
}, t[0] = a.amount, t[1] = a.once, t[2] =
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
t[3] !==
|
|
328
|
-
top:
|
|
329
|
-
bottom:
|
|
330
|
-
left:
|
|
331
|
-
right:
|
|
332
|
-
}, t[3] =
|
|
333
|
-
const p =
|
|
334
|
-
let
|
|
335
|
-
if (t[8] !==
|
|
336
|
-
const
|
|
337
|
-
const
|
|
338
|
-
return
|
|
339
|
-
...
|
|
340
|
-
id:
|
|
326
|
+
}, t[0] = a.amount, t[1] = a.once, t[2] = Gt) : Gt = t[2];
|
|
327
|
+
const D = He(Ft, Gt), V = B ? T + 30 : T;
|
|
328
|
+
let Z;
|
|
329
|
+
t[3] !== xt || t[4] !== Et || t[5] !== V || t[6] !== Bt ? (Z = {
|
|
330
|
+
top: Bt,
|
|
331
|
+
bottom: xt,
|
|
332
|
+
left: V,
|
|
333
|
+
right: Et
|
|
334
|
+
}, t[3] = xt, t[4] = Et, t[5] = V, t[6] = Bt, t[7] = Z) : Z = t[7];
|
|
335
|
+
const p = Z, [b, I] = _t(void 0), [C, N] = _t(void 0), [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), ct = Mt - p.left - p.right, Xt = St - p.top - p.bottom;
|
|
336
|
+
let W;
|
|
337
|
+
if (t[8] !== l || t[9] !== z) {
|
|
338
|
+
const r = /* @__PURE__ */ new Set(), v = l.map((c, g) => {
|
|
339
|
+
const q = z ? `${c.label}` : `${g}`;
|
|
340
|
+
return r.add(q), {
|
|
341
|
+
...c,
|
|
342
|
+
id: q
|
|
341
343
|
};
|
|
342
|
-
}),
|
|
343
|
-
let
|
|
344
|
-
t[11] !==
|
|
345
|
-
id:
|
|
346
|
-
label:
|
|
347
|
-
size: Array(
|
|
348
|
-
}), t[11] =
|
|
344
|
+
}), It = z ? z.filter((c) => !r.has(c)) : [];
|
|
345
|
+
let Ot;
|
|
346
|
+
t[11] !== l[0].size.length ? (Ot = (c) => ({
|
|
347
|
+
id: c,
|
|
348
|
+
label: c,
|
|
349
|
+
size: Array(l[0].size.length).fill(null)
|
|
350
|
+
}), t[11] = l[0].size.length, t[12] = Ot) : Ot = t[12], W = [...v, ...It.map(Ot)], t[8] = l, t[9] = z, t[10] = W;
|
|
349
351
|
} else
|
|
350
|
-
|
|
351
|
-
const
|
|
352
|
-
let
|
|
353
|
-
t[13] !==
|
|
354
|
-
const
|
|
355
|
-
let
|
|
356
|
-
if (t[16] !== a || t[17] !==
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
let
|
|
360
|
-
t[
|
|
361
|
-
const
|
|
362
|
-
let Et;
|
|
363
|
-
t[91] !== b || t[92] !== G ? (Et = {
|
|
364
|
-
axis: b,
|
|
365
|
-
label: G
|
|
366
|
-
}, t[91] = b, t[92] = G, t[93] = Et) : Et = t[93];
|
|
367
|
-
const Ut = u?.xAxis?.axis, Jt = u?.yAxis?.labels;
|
|
352
|
+
W = t[10];
|
|
353
|
+
const _ = W;
|
|
354
|
+
let k;
|
|
355
|
+
t[13] !== _ || t[14] !== z ? (k = z ?? _.map(Li), t[13] = _, t[14] = z, t[15] = k) : k = t[15];
|
|
356
|
+
const tt = k;
|
|
357
|
+
let at, bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt;
|
|
358
|
+
if (t[16] !== a || t[17] !== B || t[18] !== H || t[19] !== tt || t[20] !== G || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== f || t[28] !== y || t[29] !== l[0].size || t[30] !== _ || t[31] !== yt || t[32] !== Xt || t[33] !== ct || t[34] !== St || t[35] !== rt || t[36] !== D || t[37] !== T || t[38] !== F || t[39] !== p.bottom || t[40] !== p.left || t[41] !== p.right || t[42] !== p.top || t[43] !== ut || t[44] !== Yt || t[45] !== M || t[46] !== C || t[47] !== m || t[48] !== lt || t[49] !== J || t[50] !== Tt || t[51] !== L || t[52] !== x || t[53] !== O || t[54] !== Ct || t[55] !== K || t[56] !== S || t[57] !== gt || t[58] !== kt || t[59] !== st || t[60] !== u?.graphObjectValues || t[61] !== u?.xAxis?.axis || t[62] !== u?.xAxis?.labels || t[63] !== u?.yAxis?.gridLines || t[64] !== u?.yAxis?.labels || t[65] !== u?.yAxis?.title || t[66] !== U || t[67] !== Y || t[68] !== Q || t[69] !== Mt) {
|
|
359
|
+
const r = We().domain([M, Yt]).range([Xt, 0]).nice(), v = ze().domain(tt).range([0, ut ? Math.min(ct, ut * tt.length) : ct]).paddingInner(G), It = ze().domain(l[0].size.map(Ci)).range([0, v.bandwidth()]).paddingInner(0.1), Ot = r.ticks(lt);
|
|
360
|
+
bt = ee.svg, j = `${Mt}px`, zt = `${St}px`, ht = `0 0 ${Mt} ${St}`, ot = "ltr", it = Ft, At = `translate(${p.left},${p.top})`;
|
|
361
|
+
let c;
|
|
362
|
+
t[84] !== F || t[85] !== M || t[86] !== m || t[87] !== L || t[88] !== x || t[89] !== O || t[90] !== kt || t[91] !== U ? (c = kt ? $e(M < 0 ? 0 : M, m, x, O, U, F, L) : void 0, t[84] = F, t[85] = M, t[86] = m, t[87] = L, t[88] = x, t[89] = O, t[90] = kt, t[91] = U, t[92] = c) : c = t[92];
|
|
363
|
+
const g = s?.xAxis?.axis, q = s?.yAxis?.labels;
|
|
368
364
|
let Zt;
|
|
369
|
-
t[
|
|
370
|
-
axis:
|
|
371
|
-
label:
|
|
372
|
-
}, t[
|
|
373
|
-
|
|
365
|
+
t[93] !== g || t[94] !== q ? (Zt = {
|
|
366
|
+
axis: g,
|
|
367
|
+
label: q
|
|
368
|
+
}, t[93] = g, t[94] = q, t[95] = Zt) : Zt = t[95];
|
|
369
|
+
const Qt = u?.xAxis?.axis, qt = u?.yAxis?.labels;
|
|
370
|
+
let Jt;
|
|
371
|
+
t[96] !== Qt || t[97] !== qt ? (Jt = {
|
|
372
|
+
axis: Qt,
|
|
373
|
+
label: qt
|
|
374
|
+
}, t[96] = Qt, t[97] = qt, t[98] = Jt) : Jt = t[98], dt = /* @__PURE__ */ i.jsx(Be, { y1: r(M < 0 ? 0 : M), y2: r(M < 0 ? 0 : M), x1: 0 - T, x2: ct + p.right, label: c, hideAxisLine: rt, labelPos: {
|
|
375
|
+
x: 0 - T,
|
|
374
376
|
dx: 0,
|
|
375
|
-
dy:
|
|
376
|
-
y:
|
|
377
|
-
}, classNames:
|
|
377
|
+
dy: Yt < 0 ? "1em" : -5,
|
|
378
|
+
y: r(M < 0 ? 0 : M)
|
|
379
|
+
}, classNames: Zt, styles: Jt }), Vt = kt ? /* @__PURE__ */ i.jsx(_e, { values: Ot.filter(ki), y: Ot.filter(Mi).map((A) => r(A)), x1: 0 - T, x2: ct + p.right, styles: {
|
|
378
380
|
gridLines: u?.yAxis?.gridLines,
|
|
379
381
|
labels: u?.yAxis?.labels
|
|
380
382
|
}, classNames: {
|
|
381
|
-
gridLines:
|
|
382
|
-
labels:
|
|
383
|
-
}, suffix:
|
|
384
|
-
const
|
|
385
|
-
t[
|
|
383
|
+
gridLines: s?.yAxis?.gridLines,
|
|
384
|
+
labels: s?.yAxis?.labels
|
|
385
|
+
}, suffix: U, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: F, padZeros: L }) : null;
|
|
386
|
+
const te = 0 - T - 15, w = Xt / 2, h = u?.yAxis?.title, d = s?.yAxis?.title;
|
|
387
|
+
t[99] !== B || t[100] !== te || t[101] !== w || t[102] !== h || t[103] !== d ? (et = /* @__PURE__ */ i.jsx(Fe, { x: te, y: w, style: h, className: d, text: B, rotate90: !0 }), t[99] = B, t[100] = te, t[101] = w, t[102] = h, t[103] = d, t[104] = et) : et = t[104], t[105] !== y ? (P = y.filter(Oi).map($i), t[105] = y, t[106] = P) : P = t[106], at = Xe, wt = _.map((A) => se(v(A.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
|
|
386
388
|
initial: {
|
|
387
|
-
x: v(`${
|
|
389
|
+
x: v(`${A.id}`),
|
|
388
390
|
y: 0
|
|
389
391
|
},
|
|
390
392
|
whileInView: {
|
|
391
|
-
x: v(`${
|
|
393
|
+
x: v(`${A.id}`),
|
|
392
394
|
y: 0,
|
|
393
395
|
transition: {
|
|
394
396
|
duration: a.duration
|
|
395
397
|
}
|
|
396
398
|
}
|
|
397
|
-
}, initial: "initial", animate:
|
|
399
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
398
400
|
opacity: 0,
|
|
399
401
|
transition: {
|
|
400
402
|
duration: a.duration
|
|
401
403
|
}
|
|
402
404
|
}, children: [
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
...
|
|
406
|
-
sizeIndex:
|
|
407
|
-
}),
|
|
408
|
-
...
|
|
409
|
-
sizeIndex:
|
|
405
|
+
A.size.map((o, E) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: S ? H[E] === S ? 1 : 0.3 : 0.85, onMouseEnter: (n) => {
|
|
406
|
+
I({
|
|
407
|
+
...A,
|
|
408
|
+
sizeIndex: E
|
|
409
|
+
}), Ht(n.clientY), Pt(n.clientX), Tt?.({
|
|
410
|
+
...A,
|
|
411
|
+
sizeIndex: E
|
|
410
412
|
});
|
|
411
|
-
}, onMouseMove: (
|
|
412
|
-
|
|
413
|
-
...
|
|
414
|
-
sizeIndex:
|
|
415
|
-
}),
|
|
413
|
+
}, onMouseMove: (n) => {
|
|
414
|
+
I({
|
|
415
|
+
...A,
|
|
416
|
+
sizeIndex: E
|
|
417
|
+
}), Ht(n.clientY), Pt(n.clientX);
|
|
416
418
|
}, onMouseLeave: () => {
|
|
417
|
-
|
|
419
|
+
I(void 0), Pt(void 0), Ht(void 0), Tt?.(void 0);
|
|
418
420
|
}, onClick: () => {
|
|
419
|
-
(
|
|
420
|
-
...
|
|
421
|
-
sizeIndex:
|
|
422
|
-
}) &&
|
|
423
|
-
...
|
|
424
|
-
sizeIndex:
|
|
425
|
-
}),
|
|
426
|
-
...
|
|
427
|
-
sizeIndex:
|
|
421
|
+
(J || yt) && (Te(C, {
|
|
422
|
+
...A,
|
|
423
|
+
sizeIndex: E
|
|
424
|
+
}) && K ? (N(void 0), J?.(void 0)) : (N({
|
|
425
|
+
...A,
|
|
426
|
+
sizeIndex: E
|
|
427
|
+
}), J && J({
|
|
428
|
+
...A,
|
|
429
|
+
sizeIndex: E
|
|
428
430
|
})));
|
|
429
431
|
}, children: [
|
|
430
|
-
/* @__PURE__ */ i.jsx(
|
|
432
|
+
/* @__PURE__ */ i.jsx(ee.rect, { x: It(`${E}`), width: It.bandwidth(), variants: {
|
|
431
433
|
initial: {
|
|
432
434
|
height: 0,
|
|
433
|
-
y:
|
|
434
|
-
fill:
|
|
435
|
+
y: r(0),
|
|
436
|
+
fill: H[E]
|
|
435
437
|
},
|
|
436
438
|
whileInView: {
|
|
437
|
-
height:
|
|
438
|
-
y:
|
|
439
|
-
fill:
|
|
439
|
+
height: se(o) ? 0 : Math.abs(r(o) - r(0)),
|
|
440
|
+
y: se(o) ? r(0) : o > 0 ? r(o) : r(0),
|
|
441
|
+
fill: H[E],
|
|
440
442
|
transition: {
|
|
441
443
|
duration: a.duration
|
|
442
444
|
}
|
|
443
445
|
}
|
|
444
446
|
}, exit: {
|
|
445
447
|
height: 0,
|
|
446
|
-
y:
|
|
448
|
+
y: r(0),
|
|
447
449
|
transition: {
|
|
448
450
|
duration: a.duration
|
|
449
451
|
}
|
|
450
|
-
}, initial: "initial", animate:
|
|
451
|
-
|
|
452
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial" }),
|
|
453
|
+
st ? /* @__PURE__ */ i.jsx(ee.text, { x: It(`${E}`) + It.bandwidth() / 2, style: {
|
|
452
454
|
textAnchor: "middle",
|
|
453
455
|
...u?.graphObjectValues || {}
|
|
454
|
-
}, className:
|
|
456
|
+
}, className: Ve("graph-value text-sm", s?.graphObjectValues), dy: o ? o >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
455
457
|
initial: {
|
|
456
|
-
y:
|
|
458
|
+
y: r(0),
|
|
457
459
|
opacity: 0,
|
|
458
|
-
fill:
|
|
460
|
+
fill: Q || H[E]
|
|
459
461
|
},
|
|
460
462
|
whileInView: {
|
|
461
|
-
y:
|
|
463
|
+
y: r(o || 0),
|
|
462
464
|
opacity: 1,
|
|
463
|
-
fill:
|
|
465
|
+
fill: Q || H[E],
|
|
464
466
|
transition: {
|
|
465
467
|
duration: a.duration
|
|
466
468
|
}
|
|
467
469
|
}
|
|
468
|
-
}, initial: "initial", animate:
|
|
470
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
469
471
|
opacity: 0,
|
|
470
472
|
transition: {
|
|
471
473
|
duration: a.duration
|
|
472
474
|
}
|
|
473
|
-
}, children:
|
|
474
|
-
] }, `${
|
|
475
|
-
|
|
476
|
-
] },
|
|
475
|
+
}, children: $e(o, m, x, O, U, F, L) }) : null
|
|
476
|
+
] }, `${A.label}-${f[E] || E}`)),
|
|
477
|
+
gt ? /* @__PURE__ */ i.jsx(ti, { value: `${A.label}`.length < Y ? `${A.label}` : `${`${A.label}`.substring(0, Y)}...`, y: r(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: D }) : null
|
|
478
|
+
] }, A.label)), vt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((A, o) => /* @__PURE__ */ i.jsx(Qe, { text: A.text, color: A.color, y: r(A.value), x1: 0 - T, x2: ct + p.right, classNames: A.classNames, styles: A.styles, animate: a, isInView: D }, o)) }) : null, t[16] = a, t[17] = B, t[18] = H, t[19] = tt, t[20] = G, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = f, t[28] = y, t[29] = l[0].size, t[30] = _, t[31] = yt, t[32] = Xt, t[33] = ct, t[34] = St, t[35] = rt, t[36] = D, t[37] = T, t[38] = F, t[39] = p.bottom, t[40] = p.left, t[41] = p.right, t[42] = p.top, t[43] = ut, t[44] = Yt, t[45] = M, t[46] = C, t[47] = m, t[48] = lt, t[49] = J, t[50] = Tt, t[51] = L, t[52] = x, t[53] = O, t[54] = Ct, t[55] = K, t[56] = S, t[57] = gt, t[58] = kt, t[59] = st, t[60] = u?.graphObjectValues, t[61] = u?.xAxis?.axis, t[62] = u?.xAxis?.labels, t[63] = u?.yAxis?.gridLines, t[64] = u?.yAxis?.labels, t[65] = u?.yAxis?.title, t[66] = U, t[67] = Y, t[68] = Q, t[69] = Mt, t[70] = at, t[71] = bt, t[72] = vt, t[73] = At, t[74] = dt, t[75] = Vt, t[76] = et, t[77] = P, t[78] = j, t[79] = zt, t[80] = ht, t[81] = ot, t[82] = it, t[83] = wt;
|
|
477
479
|
} else
|
|
478
|
-
|
|
479
|
-
let
|
|
480
|
-
t[
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
] }), t[
|
|
484
|
-
let
|
|
485
|
-
t[
|
|
486
|
-
let
|
|
487
|
-
t[
|
|
488
|
-
|
|
489
|
-
Ct,
|
|
490
|
-
K,
|
|
491
|
-
F,
|
|
492
|
-
rt,
|
|
493
|
-
E
|
|
494
|
-
] }), t[111] = pt, t[112] = St, t[113] = Ct, t[114] = K, t[115] = F, t[116] = rt, t[117] = E, t[118] = vt) : vt = t[118];
|
|
495
|
-
let Vt;
|
|
496
|
-
t[119] !== ht || t[120] !== I || t[121] !== Lt || t[122] !== nt || t[123] !== lt || t[124] !== Q || t[125] !== vt ? (Vt = /* @__PURE__ */ i.jsx(ht, { width: I, height: Lt, viewBox: nt, direction: lt, ref: Q, children: vt }), t[119] = ht, t[120] = I, t[121] = Lt, t[122] = nt, t[123] = lt, t[124] = Q, t[125] = vt, t[126] = Vt) : Vt = t[126];
|
|
497
|
-
let ct;
|
|
498
|
-
t[127] !== l?.tooltip || t[128] !== Ft || t[129] !== mt || t[130] !== c || t[131] !== u?.tooltip || t[132] !== st ? (ct = c && st && Ft && mt ? /* @__PURE__ */ i.jsx(je, { data: c, body: st, xPos: Ft, yPos: mt, backgroundStyle: u?.tooltip, className: l?.tooltip }) : null, t[127] = l?.tooltip, t[128] = Ft, t[129] = mt, t[130] = c, t[131] = u?.tooltip, t[132] = st, t[133] = ct) : ct = t[133];
|
|
499
|
-
let A;
|
|
500
|
-
t[134] !== l?.modal || t[135] !== xt || t[136] !== z ? (A = xt && z !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: xt, data: z, setData: y, className: l?.modal }) : null, t[134] = l?.modal, t[135] = xt, t[136] = z, t[137] = A) : A = t[137];
|
|
501
|
-
let Wt;
|
|
502
|
-
return t[138] !== Vt || t[139] !== ct || t[140] !== A ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
480
|
+
at = t[70], bt = t[71], vt = t[72], At = t[73], dt = t[74], Vt = t[75], et = t[76], P = t[77], j = t[78], zt = t[79], ht = t[80], ot = t[81], it = t[82], wt = t[83];
|
|
481
|
+
let ft;
|
|
482
|
+
t[107] !== at || t[108] !== vt || t[109] !== wt ? (ft = /* @__PURE__ */ i.jsxs(at, { children: [
|
|
483
|
+
wt,
|
|
484
|
+
vt
|
|
485
|
+
] }), t[107] = at, t[108] = vt, t[109] = wt, t[110] = ft) : ft = t[110];
|
|
486
|
+
let R;
|
|
487
|
+
t[111] !== y ? (R = y.filter(Ai).map(wi), t[111] = y, t[112] = R) : R = t[112];
|
|
488
|
+
let $t;
|
|
489
|
+
t[113] !== At || t[114] !== dt || t[115] !== Vt || t[116] !== et || t[117] !== P || t[118] !== ft || t[119] !== R ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: At, children: [
|
|
490
|
+
dt,
|
|
503
491
|
Vt,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
492
|
+
et,
|
|
493
|
+
P,
|
|
494
|
+
ft,
|
|
495
|
+
R
|
|
496
|
+
] }), t[113] = At, t[114] = dt, t[115] = Vt, t[116] = et, t[117] = P, t[118] = ft, t[119] = R, t[120] = $t) : $t = t[120];
|
|
497
|
+
let Dt;
|
|
498
|
+
t[121] !== bt || t[122] !== j || t[123] !== zt || t[124] !== ht || t[125] !== ot || t[126] !== it || t[127] !== $t ? (Dt = /* @__PURE__ */ i.jsx(bt, { width: j, height: zt, viewBox: ht, direction: ot, ref: it, children: $t }), t[121] = bt, t[122] = j, t[123] = zt, t[124] = ht, t[125] = ot, t[126] = it, t[127] = $t, t[128] = Dt) : Dt = t[128];
|
|
499
|
+
let pt;
|
|
500
|
+
t[129] !== s?.tooltip || t[130] !== mt || t[131] !== Lt || t[132] !== b || t[133] !== u?.tooltip || t[134] !== nt ? (pt = b && nt && mt && Lt ? /* @__PURE__ */ i.jsx(Se, { data: b, body: nt, xPos: mt, yPos: Lt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[129] = s?.tooltip, t[130] = mt, t[131] = Lt, t[132] = b, t[133] = u?.tooltip, t[134] = nt, t[135] = pt) : pt = t[135];
|
|
501
|
+
let $;
|
|
502
|
+
t[136] !== s?.modal || t[137] !== yt || t[138] !== C ? ($ = yt && C !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: yt, data: C, setData: N, className: s?.modal }) : null, t[136] = s?.modal, t[137] = yt, t[138] = C, t[139] = $) : $ = t[139];
|
|
503
|
+
let Wt;
|
|
504
|
+
return t[140] !== Dt || t[141] !== pt || t[142] !== $ ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
505
|
+
Dt,
|
|
506
|
+
pt,
|
|
507
|
+
$
|
|
508
|
+
] }), t[140] = Dt, t[141] = pt, t[142] = $, t[143] = Wt) : Wt = t[143], Wt;
|
|
507
509
|
}
|
|
508
|
-
function
|
|
510
|
+
function wi(e) {
|
|
509
511
|
return e.layer;
|
|
510
512
|
}
|
|
511
|
-
function
|
|
513
|
+
function Ai(e) {
|
|
512
514
|
return e.position === "after";
|
|
513
515
|
}
|
|
514
|
-
function
|
|
516
|
+
function $i(e) {
|
|
515
517
|
return e.layer;
|
|
516
518
|
}
|
|
517
|
-
function
|
|
519
|
+
function Oi(e) {
|
|
518
520
|
return e.position === "before";
|
|
519
521
|
}
|
|
520
|
-
function
|
|
522
|
+
function Mi(e) {
|
|
521
523
|
return e !== 0;
|
|
522
524
|
}
|
|
523
|
-
function
|
|
525
|
+
function ki(e) {
|
|
524
526
|
return e !== 0;
|
|
525
527
|
}
|
|
526
|
-
function
|
|
528
|
+
function Ci(e, t) {
|
|
527
529
|
return `${t}`;
|
|
528
530
|
}
|
|
529
|
-
function
|
|
531
|
+
function Li(e) {
|
|
530
532
|
return `${e.id}`;
|
|
531
533
|
}
|
|
532
|
-
function
|
|
533
|
-
const t =
|
|
534
|
-
data:
|
|
535
|
-
graphTitle:
|
|
536
|
-
colors:
|
|
537
|
-
sources:
|
|
538
|
-
graphDescription:
|
|
539
|
-
barPadding:
|
|
540
|
-
showTicks:
|
|
541
|
-
truncateBy:
|
|
542
|
-
height:
|
|
534
|
+
function Vi(e) {
|
|
535
|
+
const t = Me.c(128), {
|
|
536
|
+
data: l,
|
|
537
|
+
graphTitle: X,
|
|
538
|
+
colors: Rt,
|
|
539
|
+
sources: Ut,
|
|
540
|
+
graphDescription: jt,
|
|
541
|
+
barPadding: Mt,
|
|
542
|
+
showTicks: St,
|
|
543
|
+
truncateBy: H,
|
|
544
|
+
height: U,
|
|
543
545
|
width: O,
|
|
544
|
-
footNote:
|
|
545
|
-
colorDomain:
|
|
546
|
-
colorLegendTitle:
|
|
547
|
-
suffix:
|
|
548
|
-
prefix:
|
|
549
|
-
showValues:
|
|
550
|
-
showColorScale:
|
|
551
|
-
padding:
|
|
552
|
-
backgroundColor:
|
|
553
|
-
leftMargin:
|
|
554
|
-
rightMargin:
|
|
555
|
-
topMargin:
|
|
556
|
-
bottomMargin:
|
|
557
|
-
showLabels:
|
|
558
|
-
relativeHeight:
|
|
559
|
-
tooltip:
|
|
560
|
-
onSeriesMouseOver:
|
|
561
|
-
refValues:
|
|
562
|
-
graphID:
|
|
546
|
+
footNote: G,
|
|
547
|
+
colorDomain: gt,
|
|
548
|
+
colorLegendTitle: st,
|
|
549
|
+
suffix: kt,
|
|
550
|
+
prefix: Y,
|
|
551
|
+
showValues: nt,
|
|
552
|
+
showColorScale: Tt,
|
|
553
|
+
padding: Ct,
|
|
554
|
+
backgroundColor: Yt,
|
|
555
|
+
leftMargin: M,
|
|
556
|
+
rightMargin: J,
|
|
557
|
+
topMargin: S,
|
|
558
|
+
bottomMargin: z,
|
|
559
|
+
showLabels: ut,
|
|
560
|
+
relativeHeight: K,
|
|
561
|
+
tooltip: yt,
|
|
562
|
+
onSeriesMouseOver: B,
|
|
563
|
+
refValues: Q,
|
|
564
|
+
graphID: lt,
|
|
563
565
|
maxValue: u,
|
|
564
|
-
minValue:
|
|
566
|
+
minValue: s,
|
|
565
567
|
onSeriesMouseClick: a,
|
|
566
568
|
graphDownload: f,
|
|
567
569
|
dataDownload: x,
|
|
568
|
-
language:
|
|
569
|
-
labelOrder:
|
|
570
|
-
minHeight:
|
|
571
|
-
theme:
|
|
572
|
-
maxBarThickness:
|
|
573
|
-
ariaLabel:
|
|
574
|
-
resetSelectionOnDoubleClick:
|
|
575
|
-
detailsOnClick:
|
|
576
|
-
barAxisTitle:
|
|
577
|
-
noOfTicks:
|
|
578
|
-
valueColor:
|
|
570
|
+
language: y,
|
|
571
|
+
labelOrder: m,
|
|
572
|
+
minHeight: rt,
|
|
573
|
+
theme: F,
|
|
574
|
+
maxBarThickness: L,
|
|
575
|
+
ariaLabel: T,
|
|
576
|
+
resetSelectionOnDoubleClick: Et,
|
|
577
|
+
detailsOnClick: Bt,
|
|
578
|
+
barAxisTitle: xt,
|
|
579
|
+
noOfTicks: Ft,
|
|
580
|
+
valueColor: Gt,
|
|
579
581
|
styles: D,
|
|
580
|
-
classNames:
|
|
581
|
-
filterNA:
|
|
582
|
-
animate:
|
|
583
|
-
precision:
|
|
584
|
-
customLayers:
|
|
585
|
-
timeline:
|
|
586
|
-
naLabel:
|
|
587
|
-
sortParameter:
|
|
588
|
-
sortData:
|
|
589
|
-
orientation:
|
|
590
|
-
hideAxisLine:
|
|
591
|
-
locale:
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
582
|
+
classNames: V,
|
|
583
|
+
filterNA: Z,
|
|
584
|
+
animate: p,
|
|
585
|
+
precision: b,
|
|
586
|
+
customLayers: I,
|
|
587
|
+
timeline: C,
|
|
588
|
+
naLabel: N,
|
|
589
|
+
sortParameter: mt,
|
|
590
|
+
sortData: Pt,
|
|
591
|
+
orientation: Lt,
|
|
592
|
+
hideAxisLine: Ht,
|
|
593
|
+
locale: ct,
|
|
594
|
+
padZeros: Xt
|
|
595
|
+
} = e, W = Rt === void 0 ? ve.light.categoricalColors.colors : Rt, _ = Mt === void 0 ? 0.25 : Mt, k = St === void 0 ? !0 : St, tt = H === void 0 ? 999 : H, at = kt === void 0 ? "" : kt, bt = Y === void 0 ? "" : Y, vt = nt === void 0 ? !0 : nt, At = Tt === void 0 ? !0 : Tt, dt = Yt === void 0 ? !1 : Yt, Vt = ut === void 0 ? !0 : ut, et = f === void 0 ? !1 : f, P = x === void 0 ? !1 : x, j = y === void 0 ? "en" : y, zt = rt === void 0 ? 0 : rt, ht = F === void 0 ? "light" : F, ot = Et === void 0 ? !0 : Et, it = Ft === void 0 ? 5 : Ft, wt = Z === void 0 ? !0 : Z, ft = p === void 0 ? !1 : p, R = b === void 0 ? 2 : b;
|
|
596
|
+
let $t;
|
|
597
|
+
t[0] !== I ? ($t = I === void 0 ? [] : I, t[0] = I, t[1] = $t) : $t = t[1];
|
|
598
|
+
const Dt = $t;
|
|
599
|
+
let pt;
|
|
600
|
+
t[2] !== C ? (pt = C === void 0 ? {
|
|
598
601
|
enabled: !1,
|
|
599
602
|
autoplay: !1,
|
|
600
603
|
showOnlyActiveDate: !0
|
|
601
|
-
} :
|
|
602
|
-
const
|
|
603
|
-
let
|
|
604
|
-
if (t[4] !==
|
|
605
|
-
let
|
|
606
|
-
t[7] !==
|
|
604
|
+
} : C, t[2] = C, t[3] = pt) : pt = t[3];
|
|
605
|
+
const $ = pt, Wt = N === void 0 ? "NA" : N, r = Lt === void 0 ? "vertical" : Lt, v = Ht === void 0 ? !1 : Ht, It = ct === void 0 ? "en" : ct, Ot = Xt === void 0 ? !1 : Xt, c = r === "horizontal" ? ui : vi, [g, q] = _t(0), [Zt, Qt] = _t(0), [qt, Jt] = _t($.autoplay);
|
|
606
|
+
let te;
|
|
607
|
+
if (t[4] !== l || t[5] !== $.dateFormat) {
|
|
608
|
+
let Kt;
|
|
609
|
+
t[7] !== $.dateFormat ? (Kt = (Nt) => qe(`${Nt.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = Kt) : Kt = t[8], te = [...new Set(l.filter(Ui).map(Kt))], te.sort(qi), t[4] = l, t[5] = $.dateFormat, t[6] = te;
|
|
607
610
|
} else
|
|
608
|
-
|
|
609
|
-
const
|
|
610
|
-
let
|
|
611
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
612
|
-
const
|
|
613
|
-
|
|
611
|
+
te = t[6];
|
|
612
|
+
const w = te, [h, d] = _t($.autoplay ? 0 : w.length - 1), [A, o] = _t(void 0), E = Oe(null), n = Oe(null);
|
|
613
|
+
let le, re;
|
|
614
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = () => {
|
|
615
|
+
const Kt = new ResizeObserver((Nt) => {
|
|
616
|
+
q(Nt[0].target.clientWidth || 620), Qt(Nt[0].target.clientHeight || 480);
|
|
614
617
|
});
|
|
615
|
-
return
|
|
616
|
-
},
|
|
617
|
-
let
|
|
618
|
-
t[11] !==
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
}, (
|
|
622
|
-
return
|
|
623
|
-
},
|
|
624
|
-
const
|
|
625
|
-
let
|
|
626
|
-
t[16] !==
|
|
627
|
-
const
|
|
628
|
-
let
|
|
629
|
-
t[21] !==
|
|
618
|
+
return E.current && Kt.observe(E.current), () => Kt.disconnect();
|
|
619
|
+
}, re = [], t[9] = le, t[10] = re) : (le = t[9], re = t[10]), je(le, re);
|
|
620
|
+
let ye, ke;
|
|
621
|
+
t[11] !== qt || t[12] !== $.speed || t[13] !== w ? (ye = () => {
|
|
622
|
+
const Kt = setInterval(() => {
|
|
623
|
+
d((Nt) => Nt < w.length - 1 ? Nt + 1 : 0);
|
|
624
|
+
}, ($.speed || 2) * 1e3);
|
|
625
|
+
return qt || clearInterval(Kt), () => clearInterval(Kt);
|
|
626
|
+
}, ke = [w, qt, $.speed], t[11] = qt, t[12] = $.speed, t[13] = w, t[14] = ye, t[15] = ke) : (ye = t[14], ke = t[15]), je(ye, ke);
|
|
627
|
+
const we = $.dateFormat || "yyyy";
|
|
628
|
+
let Ce;
|
|
629
|
+
t[16] !== h || t[17] !== we || t[18] !== $.showOnlyActiveDate || t[19] !== w ? (Ce = Ze(w, h, $.showOnlyActiveDate, we), t[16] = h, t[17] = we, t[18] = $.showOnlyActiveDate, t[19] = w, t[20] = Ce) : Ce = t[20];
|
|
630
|
+
const ge = Ce, be = V?.graphContainer, Ae = D?.graphContainer;
|
|
631
|
+
let pe;
|
|
632
|
+
t[21] !== V?.description || t[22] !== V?.title || t[23] !== l || t[24] !== P || t[25] !== jt || t[26] !== et || t[27] !== X || t[28] !== D?.description || t[29] !== D?.title || t[30] !== O ? (pe = X || jt || et || P ? /* @__PURE__ */ i.jsx(ei, { styles: {
|
|
630
633
|
title: D?.title,
|
|
631
634
|
description: D?.description
|
|
632
635
|
}, classNames: {
|
|
633
|
-
title:
|
|
634
|
-
description:
|
|
635
|
-
}, graphTitle:
|
|
636
|
-
let
|
|
637
|
-
t[32] !==
|
|
636
|
+
title: V?.title,
|
|
637
|
+
description: V?.description
|
|
638
|
+
}, graphTitle: X, graphDescription: jt, width: O, graphDownload: et ? n : void 0, dataDownload: P ? l.map(Ri).filter(Zi).length > 0 ? l.map(Gi).filter(Ei) : l.filter(Yi) : null }) : null, t[21] = V?.description, t[22] = V?.title, t[23] = l, t[24] = P, t[25] = jt, t[26] = et, t[27] = X, t[28] = D?.description, t[29] = D?.title, t[30] = O, t[31] = pe) : pe = t[31];
|
|
639
|
+
let xe;
|
|
640
|
+
t[32] !== h || t[33] !== ge || t[34] !== qt || t[35] !== $.enabled || t[36] !== w ? (xe = $.enabled && w.length > 0 && ge ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
638
641
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
639
|
-
Jt(!
|
|
640
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
641
|
-
/* @__PURE__ */ i.jsx(
|
|
642
|
-
|
|
643
|
-
}, onChange: (
|
|
644
|
-
|
|
642
|
+
Jt(!qt);
|
|
643
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": qt ? "Click to pause animation" : "Click to play animation", children: qt ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
|
|
644
|
+
/* @__PURE__ */ i.jsx(Re, { min: w[0], max: w[w.length - 1], marks: ge, step: null, defaultValue: w[w.length - 1], value: w[h], onChangeComplete: (Kt) => {
|
|
645
|
+
d(w.indexOf(Kt));
|
|
646
|
+
}, onChange: (Kt) => {
|
|
647
|
+
d(w.indexOf(Kt));
|
|
645
648
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
646
|
-
] }) : null, t[32] =
|
|
647
|
-
let
|
|
648
|
-
t[38] !==
|
|
649
|
-
let
|
|
650
|
-
t[46] !==
|
|
651
|
-
let
|
|
652
|
-
t[48] !==
|
|
649
|
+
] }) : null, t[32] = h, t[33] = ge, t[34] = qt, t[35] = $.enabled, t[36] = w, t[37] = xe) : xe = t[37];
|
|
650
|
+
let ce;
|
|
651
|
+
t[38] !== V?.colorLegend || t[39] !== gt || t[40] !== st || t[41] !== W || t[42] !== l.length || t[43] !== At || t[44] !== O ? (ce = At && l.length > 0 ? /* @__PURE__ */ i.jsx(si, { width: O, colorDomain: gt, colors: W, colorLegendTitle: st, setSelectedColor: o, showNAColor: !1, className: V?.colorLegend }) : null, t[38] = V?.colorLegend, t[39] = gt, t[40] = st, t[41] = W, t[42] = l.length, t[43] = At, t[44] = O, t[45] = ce) : ce = t[45];
|
|
652
|
+
let de;
|
|
653
|
+
t[46] !== l.length ? (de = l.length === 0 && /* @__PURE__ */ i.jsx(li, {}), t[46] = l.length, t[47] = de) : de = t[47];
|
|
654
|
+
let me;
|
|
655
|
+
t[48] !== c || t[49] !== ft || t[50] !== xt || t[51] !== _ || t[52] !== z || t[53] !== V || t[54] !== gt || t[55] !== W || t[56] !== Dt || t[57] !== l || t[58] !== Bt || t[59] !== wt || t[60] !== v || t[61] !== h || t[62] !== m || t[63] !== j || t[64] !== M || t[65] !== It || t[66] !== L || t[67] !== u || t[68] !== s || t[69] !== Wt || t[70] !== it || t[71] !== a || t[72] !== B || t[73] !== Ot || t[74] !== R || t[75] !== bt || t[76] !== Q || t[77] !== ot || t[78] !== J || t[79] !== A || t[80] !== Vt || t[81] !== k || t[82] !== vt || t[83] !== Pt || t[84] !== mt || t[85] !== D || t[86] !== at || t[87] !== Zt || t[88] !== g || t[89] !== $.dateFormat || t[90] !== $.enabled || t[91] !== yt || t[92] !== S || t[93] !== tt || t[94] !== w || t[95] !== Gt ? (me = g && Zt && l.length > 0 ? /* @__PURE__ */ i.jsx(c, { hideAxisLine: v, data: mt !== void 0 ? mt === "total" ? Ye(Ne(l, $.dateFormat || "yyyy").filter((Kt) => $.enabled ? `${Kt.date}` === De(new Date(w[h]), $.dateFormat || "yyyy") : Kt).filter((Kt) => wt ? !Kt.size.every(Xi) : Kt), Hi, [Pt || "asc"]) : Ye(Ne(l, $.dateFormat || "yyyy").filter((Kt) => $.enabled ? `${Kt.date}` === De(new Date(w[h]), $.dateFormat || "yyyy") : Kt).filter((Kt) => wt ? !Kt.size.every(Pi) : Kt), (Kt) => se(Kt.size[mt]) ? -1 / 0 : Kt.size[mt], [Pt || "asc"]) : Ne(l, $.dateFormat || "yyyy").filter((Kt) => wt ? !Kt.size.every(Fi) : Kt), barColors: W, width: g, height: Zt, suffix: at, prefix: bt, showValues: vt, barPadding: _, showTicks: k, leftMargin: M, rightMargin: J, topMargin: S, bottomMargin: z, truncateBy: tt, showLabels: Vt, tooltip: yt, onSeriesMouseOver: B, refValues: Q, maxValue: se(u) ? Math.max(...l.map(Si)) < 0 ? 0 : Math.max(...l.map(ji)) : u, minValue: se(s) ? Math.min(...l.map(Ii)) >= 0 ? 0 : Math.min(...l.map(zi)) : s, onSeriesMouseClick: a, selectedColor: A, labelOrder: m, rtl: j === "he" || j === "ar", maxBarThickness: L, resetSelectionOnDoubleClick: ot, detailsOnClick: Bt, barAxisTitle: xt, noOfTicks: it, valueColor: Gt, styles: D, classNames: V, colorDomain: gt, animate: ft === !0 ? {
|
|
653
656
|
duration: 0.5,
|
|
654
657
|
once: !0,
|
|
655
658
|
amount: 0.5
|
|
656
|
-
} :
|
|
659
|
+
} : ft || {
|
|
657
660
|
duration: 0,
|
|
658
661
|
once: !0,
|
|
659
662
|
amount: 0
|
|
660
|
-
}, precision:
|
|
661
|
-
let
|
|
662
|
-
t[
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
] }), t[
|
|
666
|
-
let
|
|
667
|
-
t[
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
] }), t[
|
|
671
|
-
let
|
|
672
|
-
t[
|
|
663
|
+
}, precision: R, customLayers: Dt, naLabel: Wt, locale: It, padZeros: Ot }) : null, t[48] = c, t[49] = ft, t[50] = xt, t[51] = _, t[52] = z, t[53] = V, t[54] = gt, t[55] = W, t[56] = Dt, t[57] = l, t[58] = Bt, t[59] = wt, t[60] = v, t[61] = h, t[62] = m, t[63] = j, t[64] = M, t[65] = It, t[66] = L, t[67] = u, t[68] = s, t[69] = Wt, t[70] = it, t[71] = a, t[72] = B, t[73] = Ot, t[74] = R, t[75] = bt, t[76] = Q, t[77] = ot, t[78] = J, t[79] = A, t[80] = Vt, t[81] = k, t[82] = vt, t[83] = Pt, t[84] = mt, t[85] = D, t[86] = at, t[87] = Zt, t[88] = g, t[89] = $.dateFormat, t[90] = $.enabled, t[91] = yt, t[92] = S, t[93] = tt, t[94] = w, t[95] = Gt, t[96] = me) : me = t[96];
|
|
664
|
+
let he;
|
|
665
|
+
t[97] !== de || t[98] !== me ? (he = /* @__PURE__ */ i.jsxs(ni, { ref: E, children: [
|
|
666
|
+
de,
|
|
667
|
+
me
|
|
668
|
+
] }), t[97] = de, t[98] = me, t[99] = he) : he = t[99];
|
|
669
|
+
let ae;
|
|
670
|
+
t[100] !== ce || t[101] !== he ? (ae = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
671
|
+
ce,
|
|
672
|
+
he
|
|
673
|
+
] }), t[100] = ce, t[101] = he, t[102] = ae) : ae = t[102];
|
|
674
|
+
let oe;
|
|
675
|
+
t[103] !== V?.footnote || t[104] !== V?.source || t[105] !== G || t[106] !== Ut || t[107] !== D?.footnote || t[108] !== D?.source || t[109] !== O ? (oe = Ut || G ? /* @__PURE__ */ i.jsx(ii, { styles: {
|
|
673
676
|
footnote: D?.footnote,
|
|
674
677
|
source: D?.source
|
|
675
678
|
}, classNames: {
|
|
676
|
-
footnote:
|
|
677
|
-
source:
|
|
678
|
-
}, sources:
|
|
679
|
-
let
|
|
680
|
-
return t[
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
] }), t[
|
|
686
|
-
}
|
|
687
|
-
function Li(e) {
|
|
688
|
-
return Math.min(...e.size.filter(Vi));
|
|
689
|
-
}
|
|
690
|
-
function Vi(e) {
|
|
691
|
-
return !ie(e);
|
|
679
|
+
footnote: V?.footnote,
|
|
680
|
+
source: V?.source
|
|
681
|
+
}, sources: Ut, footNote: G, width: O }) : null, t[103] = V?.footnote, t[104] = V?.source, t[105] = G, t[106] = Ut, t[107] = D?.footnote, t[108] = D?.source, t[109] = O, t[110] = oe) : oe = t[110];
|
|
682
|
+
let ue;
|
|
683
|
+
return t[111] !== T || t[112] !== dt || t[113] !== lt || t[114] !== U || t[115] !== j || t[116] !== zt || t[117] !== Ct || t[118] !== K || t[119] !== be || t[120] !== Ae || t[121] !== pe || t[122] !== xe || t[123] !== ae || t[124] !== oe || t[125] !== ht || t[126] !== O ? (ue = /* @__PURE__ */ i.jsxs(ri, { className: be, style: Ae, id: lt, ref: n, "aria-label": T, backgroundColor: dt, theme: ht, language: j, minHeight: zt, width: O, height: U, relativeHeight: K, padding: Ct, children: [
|
|
684
|
+
pe,
|
|
685
|
+
xe,
|
|
686
|
+
ae,
|
|
687
|
+
oe
|
|
688
|
+
] }), t[111] = T, t[112] = dt, t[113] = lt, t[114] = U, t[115] = j, t[116] = zt, t[117] = Ct, t[118] = K, t[119] = be, t[120] = Ae, t[121] = pe, t[122] = xe, t[123] = ae, t[124] = oe, t[125] = ht, t[126] = O, t[127] = ue) : ue = t[127], ue;
|
|
692
689
|
}
|
|
693
690
|
function zi(e) {
|
|
694
691
|
return Math.min(...e.size.filter(Di));
|
|
695
692
|
}
|
|
696
693
|
function Di(e) {
|
|
697
|
-
return !
|
|
694
|
+
return !se(e);
|
|
698
695
|
}
|
|
699
696
|
function Ii(e) {
|
|
700
|
-
return Math.
|
|
697
|
+
return Math.min(...e.size.filter(Ni));
|
|
701
698
|
}
|
|
702
699
|
function Ni(e) {
|
|
703
|
-
return !
|
|
700
|
+
return !se(e);
|
|
704
701
|
}
|
|
705
702
|
function ji(e) {
|
|
706
703
|
return Math.max(...e.size.filter(Ti));
|
|
707
704
|
}
|
|
708
705
|
function Ti(e) {
|
|
709
|
-
return !
|
|
706
|
+
return !se(e);
|
|
710
707
|
}
|
|
711
708
|
function Si(e) {
|
|
712
|
-
return e
|
|
709
|
+
return Math.max(...e.size.filter(Bi));
|
|
713
710
|
}
|
|
714
711
|
function Bi(e) {
|
|
715
|
-
return e
|
|
712
|
+
return !se(e);
|
|
716
713
|
}
|
|
717
714
|
function Fi(e) {
|
|
718
|
-
return
|
|
715
|
+
return e == null;
|
|
719
716
|
}
|
|
720
717
|
function Pi(e) {
|
|
721
|
-
return
|
|
718
|
+
return e == null;
|
|
722
719
|
}
|
|
723
720
|
function Hi(e) {
|
|
724
|
-
return e
|
|
721
|
+
return fe(e.size.filter(Wi));
|
|
725
722
|
}
|
|
726
723
|
function Wi(e) {
|
|
727
|
-
return e
|
|
724
|
+
return !se(e);
|
|
728
725
|
}
|
|
729
726
|
function Xi(e) {
|
|
730
|
-
return e
|
|
727
|
+
return e == null;
|
|
731
728
|
}
|
|
732
729
|
function Yi(e) {
|
|
733
|
-
return e
|
|
730
|
+
return e !== void 0;
|
|
734
731
|
}
|
|
735
732
|
function Ei(e) {
|
|
736
733
|
return e !== void 0;
|
|
@@ -738,267 +735,274 @@ function Ei(e) {
|
|
|
738
735
|
function Gi(e) {
|
|
739
736
|
return e.data;
|
|
740
737
|
}
|
|
741
|
-
function
|
|
738
|
+
function Zi(e) {
|
|
739
|
+
return e !== void 0;
|
|
740
|
+
}
|
|
741
|
+
function Ri(e) {
|
|
742
|
+
return e.data;
|
|
743
|
+
}
|
|
744
|
+
function qi(e, t) {
|
|
742
745
|
return e - t;
|
|
743
746
|
}
|
|
744
|
-
function
|
|
747
|
+
function Ui(e) {
|
|
745
748
|
return e.date;
|
|
746
749
|
}
|
|
747
|
-
function
|
|
748
|
-
const t =
|
|
749
|
-
data:
|
|
750
|
-
barColor:
|
|
751
|
-
suffix:
|
|
752
|
-
prefix:
|
|
753
|
-
barPadding:
|
|
754
|
-
showValues:
|
|
755
|
-
showTicks:
|
|
756
|
-
truncateBy:
|
|
757
|
-
width:
|
|
750
|
+
function Ji(e) {
|
|
751
|
+
const t = Me.c(135), {
|
|
752
|
+
data: l,
|
|
753
|
+
barColor: X,
|
|
754
|
+
suffix: Rt,
|
|
755
|
+
prefix: Ut,
|
|
756
|
+
barPadding: jt,
|
|
757
|
+
showValues: Mt,
|
|
758
|
+
showTicks: St,
|
|
759
|
+
truncateBy: H,
|
|
760
|
+
width: U,
|
|
758
761
|
height: O,
|
|
759
|
-
colorDomain:
|
|
760
|
-
topMargin:
|
|
761
|
-
bottomMargin:
|
|
762
|
-
leftMargin:
|
|
763
|
-
rightMargin:
|
|
764
|
-
showLabels:
|
|
765
|
-
tooltip:
|
|
766
|
-
onSeriesMouseOver:
|
|
767
|
-
refValues:
|
|
768
|
-
selectedColor:
|
|
769
|
-
highlightedDataPoints:
|
|
770
|
-
maxValue:
|
|
771
|
-
minValue:
|
|
772
|
-
onSeriesMouseClick:
|
|
773
|
-
labelOrder:
|
|
774
|
-
rtl:
|
|
775
|
-
maxBarThickness:
|
|
776
|
-
minBarThickness:
|
|
777
|
-
resetSelectionOnDoubleClick:
|
|
762
|
+
colorDomain: G,
|
|
763
|
+
topMargin: gt,
|
|
764
|
+
bottomMargin: st,
|
|
765
|
+
leftMargin: kt,
|
|
766
|
+
rightMargin: Y,
|
|
767
|
+
showLabels: nt,
|
|
768
|
+
tooltip: Tt,
|
|
769
|
+
onSeriesMouseOver: Ct,
|
|
770
|
+
refValues: Yt,
|
|
771
|
+
selectedColor: M,
|
|
772
|
+
highlightedDataPoints: J,
|
|
773
|
+
maxValue: S,
|
|
774
|
+
minValue: z,
|
|
775
|
+
onSeriesMouseClick: ut,
|
|
776
|
+
labelOrder: K,
|
|
777
|
+
rtl: yt,
|
|
778
|
+
maxBarThickness: B,
|
|
779
|
+
minBarThickness: Q,
|
|
780
|
+
resetSelectionOnDoubleClick: lt,
|
|
778
781
|
detailsOnClick: u,
|
|
779
|
-
barAxisTitle:
|
|
782
|
+
barAxisTitle: s,
|
|
780
783
|
valueColor: a,
|
|
781
784
|
noOfTicks: f,
|
|
782
785
|
styles: x,
|
|
783
|
-
classNames:
|
|
784
|
-
animate:
|
|
785
|
-
dimmedOpacity:
|
|
786
|
-
precision:
|
|
787
|
-
customLayers:
|
|
788
|
-
naLabel:
|
|
789
|
-
trackColor:
|
|
790
|
-
hideAxisLine:
|
|
791
|
-
locale:
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
786
|
+
classNames: y,
|
|
787
|
+
animate: m,
|
|
788
|
+
dimmedOpacity: rt,
|
|
789
|
+
precision: F,
|
|
790
|
+
customLayers: L,
|
|
791
|
+
naLabel: T,
|
|
792
|
+
trackColor: Et,
|
|
793
|
+
hideAxisLine: Bt,
|
|
794
|
+
locale: xt,
|
|
795
|
+
padZeros: Ft
|
|
796
|
+
} = e, Gt = gt === void 0 ? 25 : gt, D = st === void 0 ? 10 : st, V = kt === void 0 ? 100 : kt, Z = Y === void 0 ? 40 : Y, p = Oe(null);
|
|
797
|
+
let b;
|
|
798
|
+
t[0] !== m.amount || t[1] !== m.once ? (b = {
|
|
799
|
+
once: m.once,
|
|
800
|
+
amount: m.amount
|
|
801
|
+
}, t[0] = m.amount, t[1] = m.once, t[2] = b) : b = t[2];
|
|
802
|
+
const I = He(p, b), [C, N] = _t(void 0), [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), [ct, Xt] = _t(void 0), W = s ? Gt + 25 : Gt;
|
|
803
|
+
let _;
|
|
804
|
+
t[3] !== D || t[4] !== V || t[5] !== Z || t[6] !== W ? (_ = {
|
|
805
|
+
top: W,
|
|
806
|
+
bottom: D,
|
|
807
|
+
left: V,
|
|
808
|
+
right: Z
|
|
809
|
+
}, t[3] = D, t[4] = V, t[5] = Z, t[6] = W, t[7] = _) : _ = t[7];
|
|
810
|
+
const k = _, tt = U - k.left - k.right, at = O - k.top - k.bottom;
|
|
811
|
+
let bt;
|
|
812
|
+
if (t[8] !== l || t[9] !== K) {
|
|
813
|
+
const g = /* @__PURE__ */ new Set(), q = l.map((Qt, qt) => {
|
|
814
|
+
const Jt = K ? `${Qt.label}` : `${qt}`;
|
|
815
|
+
return g.add(Jt), {
|
|
816
|
+
...Qt,
|
|
817
|
+
id: Jt
|
|
814
818
|
};
|
|
815
|
-
}),
|
|
816
|
-
|
|
819
|
+
}), Zt = K ? K.filter((Qt) => !g.has(Qt)) : [];
|
|
820
|
+
bt = [...q, ...Zt.map(rs)], t[8] = l, t[9] = K, t[10] = bt;
|
|
817
821
|
} else
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
let
|
|
821
|
-
t[11] !==
|
|
822
|
-
const
|
|
823
|
-
let
|
|
824
|
-
if (t[14] !==
|
|
825
|
-
const
|
|
826
|
-
|
|
822
|
+
bt = t[10];
|
|
823
|
+
const vt = bt;
|
|
824
|
+
let At;
|
|
825
|
+
t[11] !== vt || t[12] !== K ? (At = K ?? vt.map(ns), t[11] = vt, t[12] = K, t[13] = At) : At = t[13];
|
|
826
|
+
const dt = At;
|
|
827
|
+
let Vt, et, P, j, zt, ht, ot, it, wt, ft, R, $t, Dt, pt;
|
|
828
|
+
if (t[14] !== m || t[15] !== s || t[16] !== X || t[17] !== dt || t[18] !== jt || t[19] !== y?.graphObjectValues || t[20] !== y?.xAxis?.gridLines || t[21] !== y?.xAxis?.labels || t[22] !== y?.xAxis?.title || t[23] !== y?.yAxis?.axis || t[24] !== y?.yAxis?.labels || t[25] !== G || t[26] !== L || t[27] !== l || t[28] !== vt || t[29] !== u || t[30] !== rt || t[31] !== at || t[32] !== tt || t[33] !== O || t[34] !== Bt || t[35] !== J || t[36] !== I || t[37] !== xt || t[38] !== k.bottom || t[39] !== k.left || t[40] !== k.top || t[41] !== B || t[42] !== S || t[43] !== Q || t[44] !== z || t[45] !== mt || t[46] !== T || t[47] !== f || t[48] !== ut || t[49] !== Ct || t[50] !== Ft || t[51] !== F || t[52] !== Ut || t[53] !== Yt || t[54] !== lt || t[55] !== yt || t[56] !== M || t[57] !== nt || t[58] !== St || t[59] !== Mt || t[60] !== x?.graphObjectValues || t[61] !== x?.xAxis?.gridLines || t[62] !== x?.xAxis?.labels || t[63] !== x?.xAxis?.title || t[64] !== x?.yAxis?.axis || t[65] !== x?.yAxis?.labels || t[66] !== Rt || t[67] !== Gt || t[68] !== Et || t[69] !== H || t[70] !== a || t[71] !== U) {
|
|
829
|
+
const g = We().domain([z, S]).range([0, tt]).nice(), q = ze().domain(dt).range([0, Q ? Math.max(at, Q * dt.length) : B ? Math.min(at, B * dt.length) : at]).paddingInner(jt), Zt = g.ticks(f);
|
|
830
|
+
et = ee.svg, wt = p, ft = `${U}px`, R = `${O}px`, $t = `0 0 ${U} ${O}`, Dt = "ltr", zt = `translate(${k.left},${k.top})`, ht = St ? /* @__PURE__ */ i.jsx(Je, { values: Zt.filter(os), x: Zt.filter(as).map((o) => g(o)), y1: 0 - Gt, y2: at + k.bottom, styles: {
|
|
827
831
|
gridLines: x?.xAxis?.gridLines,
|
|
828
832
|
labels: x?.xAxis?.labels
|
|
829
833
|
}, classNames: {
|
|
830
|
-
gridLines:
|
|
831
|
-
labels:
|
|
832
|
-
}, suffix:
|
|
833
|
-
const
|
|
834
|
-
t[
|
|
834
|
+
gridLines: y?.xAxis?.gridLines,
|
|
835
|
+
labels: y?.xAxis?.labels
|
|
836
|
+
}, suffix: Rt, prefix: Ut, labelType: "secondary", showGridLines: !0, precision: F, locale: xt, padZeros: Ft }) : null;
|
|
837
|
+
const Qt = tt / 2, qt = 0 - k.top + 15, Jt = x?.xAxis?.title, te = y?.xAxis?.title;
|
|
838
|
+
t[86] !== s || t[87] !== Qt || t[88] !== qt || t[89] !== Jt || t[90] !== te ? (ot = /* @__PURE__ */ i.jsx(Fe, { x: Qt, y: qt, style: Jt, className: te, text: s }), t[86] = s, t[87] = Qt, t[88] = qt, t[89] = Jt, t[90] = te, t[91] = ot) : ot = t[91], t[92] !== L ? (it = L.filter(ls).map(ss), t[92] = L, t[93] = it) : it = t[93], Vt = Xe, pt = vt.map((o) => se(q(o.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
|
|
835
839
|
initial: {
|
|
836
|
-
opacity:
|
|
840
|
+
opacity: M ? o.color && X[G.indexOf(o.color)] === M ? 1 : rt : J ? J.indexOf(o.label) !== -1 ? 0.85 : rt : 0.85
|
|
837
841
|
},
|
|
838
842
|
whileInView: {
|
|
839
|
-
opacity:
|
|
843
|
+
opacity: M ? o.color && X[G.indexOf(o.color)] === M ? 1 : rt : J ? J.indexOf(o.label) !== -1 ? 0.85 : rt : 0.85,
|
|
840
844
|
transition: {
|
|
841
|
-
duration:
|
|
845
|
+
duration: m.duration
|
|
842
846
|
}
|
|
843
847
|
}
|
|
844
|
-
}, initial: "initial", animate:
|
|
848
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
845
849
|
opacity: 0,
|
|
846
850
|
transition: {
|
|
847
|
-
duration:
|
|
851
|
+
duration: m.duration
|
|
848
852
|
}
|
|
849
|
-
}, onMouseEnter: (
|
|
850
|
-
|
|
853
|
+
}, onMouseEnter: (E) => {
|
|
854
|
+
N(o), Xt(E.clientY), Ht(E.clientX), Ct?.(o);
|
|
851
855
|
}, onClick: () => {
|
|
852
|
-
(
|
|
853
|
-
}, onMouseMove: (
|
|
854
|
-
|
|
856
|
+
(ut || u) && (Te(mt, o) && lt ? (Pt(void 0), ut?.(void 0)) : (Pt(o), ut?.(o)));
|
|
857
|
+
}, onMouseMove: (E) => {
|
|
858
|
+
N(o), Xt(E.clientY), Ht(E.clientX);
|
|
855
859
|
}, onMouseLeave: () => {
|
|
856
|
-
|
|
860
|
+
N(void 0), Ht(void 0), Xt(void 0), Ct?.(void 0);
|
|
857
861
|
}, children: [
|
|
858
|
-
|
|
862
|
+
Et && /* @__PURE__ */ i.jsx(ee.rect, { height: q.bandwidth(), variants: {
|
|
859
863
|
initial: {
|
|
860
|
-
width:
|
|
864
|
+
width: tt,
|
|
861
865
|
x: 0,
|
|
862
|
-
y:
|
|
863
|
-
fill:
|
|
866
|
+
y: q(`${o.id}`),
|
|
867
|
+
fill: Et
|
|
864
868
|
},
|
|
865
869
|
whileInView: {
|
|
866
|
-
width:
|
|
870
|
+
width: tt,
|
|
867
871
|
x: 0,
|
|
868
|
-
y:
|
|
869
|
-
fill:
|
|
872
|
+
y: q(`${o.id}`),
|
|
873
|
+
fill: Et
|
|
870
874
|
}
|
|
871
|
-
}, initial: "initial", animate:
|
|
875
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
872
876
|
opacity: 0,
|
|
873
877
|
transition: {
|
|
874
|
-
duration:
|
|
878
|
+
duration: m.duration
|
|
875
879
|
}
|
|
876
880
|
} }),
|
|
877
|
-
o.size ? /* @__PURE__ */ i.jsx(
|
|
881
|
+
o.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
|
|
878
882
|
initial: {
|
|
879
883
|
width: 0,
|
|
880
|
-
x:
|
|
881
|
-
y:
|
|
882
|
-
fill:
|
|
884
|
+
x: g(0),
|
|
885
|
+
y: q(`${o.id}`),
|
|
886
|
+
fill: l.filter(is).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray
|
|
883
887
|
},
|
|
884
888
|
whileInView: {
|
|
885
|
-
width: o.size >= 0 ?
|
|
886
|
-
x: o.size >= 0 ?
|
|
887
|
-
y:
|
|
888
|
-
fill:
|
|
889
|
+
width: o.size >= 0 ? g(o.size) - g(0) : g(0) - g(o.size),
|
|
890
|
+
x: o.size >= 0 ? g(0) : g(o.size),
|
|
891
|
+
y: q(`${o.id}`),
|
|
892
|
+
fill: l.filter(es).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray,
|
|
889
893
|
transition: {
|
|
890
|
-
duration:
|
|
894
|
+
duration: m.duration
|
|
891
895
|
}
|
|
892
896
|
}
|
|
893
|
-
}, initial: "initial", animate:
|
|
897
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
894
898
|
width: 0,
|
|
895
|
-
x:
|
|
899
|
+
x: g(0),
|
|
896
900
|
transition: {
|
|
897
|
-
duration:
|
|
901
|
+
duration: m.duration
|
|
898
902
|
}
|
|
899
|
-
}, height:
|
|
900
|
-
|
|
901
|
-
|
|
903
|
+
}, height: q.bandwidth() }) : null,
|
|
904
|
+
nt ? /* @__PURE__ */ i.jsx(Ue, { value: `${o.label}`.length < H ? `${o.label}` : `${`${o.label}`.substring(0, H)}...`, y: q(o.id) || 0, x: (o.size || 0) < 0 ? g(0) : 0 - k.left, width: (o.size || 0) < 0 ? U - g(0) : g(0) + k.left, height: q.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: x?.yAxis?.labels, className: y?.yAxis?.labels, animate: m, isInView: I }) : null,
|
|
905
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
902
906
|
textAnchor: o.size && o.size < 0 ? "end" : "start",
|
|
903
907
|
...x?.graphObjectValues || {}
|
|
904
|
-
}, className:
|
|
908
|
+
}, className: Ve("graph-value text-sm", !a && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", y?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
905
909
|
initial: {
|
|
906
|
-
x:
|
|
907
|
-
y:
|
|
910
|
+
x: g(0),
|
|
911
|
+
y: q(`${o.id}`) + q.bandwidth() / 2,
|
|
908
912
|
opacity: 0,
|
|
909
|
-
fill: a || (
|
|
913
|
+
fill: a || (l.filter(ts).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray)
|
|
910
914
|
},
|
|
911
915
|
whileInView: {
|
|
912
|
-
x: o.size ?
|
|
916
|
+
x: o.size ? g(o.size) : g(0),
|
|
913
917
|
opacity: 1,
|
|
914
|
-
y:
|
|
915
|
-
fill: a || (
|
|
918
|
+
y: q(`${o.id}`) + q.bandwidth() / 2,
|
|
919
|
+
fill: a || (l.filter(_i).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray),
|
|
916
920
|
transition: {
|
|
917
|
-
duration:
|
|
921
|
+
duration: m.duration
|
|
918
922
|
}
|
|
919
923
|
}
|
|
920
|
-
}, initial: "initial", animate:
|
|
924
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
921
925
|
opacity: 0,
|
|
922
926
|
transition: {
|
|
923
|
-
duration:
|
|
927
|
+
duration: m.duration
|
|
924
928
|
}
|
|
925
|
-
}, children:
|
|
929
|
+
}, children: $e(o.size, T, F, Ut, Rt, xt, Ft) }) : null
|
|
926
930
|
] }, o.label));
|
|
927
|
-
const
|
|
928
|
-
let
|
|
929
|
-
t[
|
|
930
|
-
axis:
|
|
931
|
-
}, t[
|
|
931
|
+
const w = y?.yAxis?.axis;
|
|
932
|
+
let h;
|
|
933
|
+
t[94] !== w ? (h = {
|
|
934
|
+
axis: w
|
|
935
|
+
}, t[94] = w, t[95] = h) : h = t[95];
|
|
932
936
|
const d = x?.yAxis?.axis;
|
|
933
|
-
let
|
|
934
|
-
t[
|
|
937
|
+
let A;
|
|
938
|
+
t[96] !== d ? (A = {
|
|
935
939
|
axis: d
|
|
936
|
-
}, t[
|
|
940
|
+
}, t[96] = d, t[97] = A) : A = t[97], P = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: Bt, x1: g(z < 0 ? 0 : z), x2: g(z < 0 ? 0 : z), y1: -2.5, y2: at + k.bottom, classNames: h, styles: A }), j = Yt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Yt.map((o, E) => /* @__PURE__ */ i.jsx(Ke, { text: o.text, color: o.color, x: g(o.value), y1: 0 - k.top, y2: at + k.bottom, textSide: g(o.value) > tt * 0.75 || yt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: m, isInView: I }, E)) }) : null, t[14] = m, t[15] = s, t[16] = X, t[17] = dt, t[18] = jt, t[19] = y?.graphObjectValues, t[20] = y?.xAxis?.gridLines, t[21] = y?.xAxis?.labels, t[22] = y?.xAxis?.title, t[23] = y?.yAxis?.axis, t[24] = y?.yAxis?.labels, t[25] = G, t[26] = L, t[27] = l, t[28] = vt, t[29] = u, t[30] = rt, t[31] = at, t[32] = tt, t[33] = O, t[34] = Bt, t[35] = J, t[36] = I, t[37] = xt, t[38] = k.bottom, t[39] = k.left, t[40] = k.top, t[41] = B, t[42] = S, t[43] = Q, t[44] = z, t[45] = mt, t[46] = T, t[47] = f, t[48] = ut, t[49] = Ct, t[50] = Ft, t[51] = F, t[52] = Ut, t[53] = Yt, t[54] = lt, t[55] = yt, t[56] = M, t[57] = nt, t[58] = St, t[59] = Mt, t[60] = x?.graphObjectValues, t[61] = x?.xAxis?.gridLines, t[62] = x?.xAxis?.labels, t[63] = x?.xAxis?.title, t[64] = x?.yAxis?.axis, t[65] = x?.yAxis?.labels, t[66] = Rt, t[67] = Gt, t[68] = Et, t[69] = H, t[70] = a, t[71] = U, t[72] = Vt, t[73] = et, t[74] = P, t[75] = j, t[76] = zt, t[77] = ht, t[78] = ot, t[79] = it, t[80] = wt, t[81] = ft, t[82] = R, t[83] = $t, t[84] = Dt, t[85] = pt;
|
|
937
941
|
} else
|
|
938
|
-
|
|
939
|
-
let
|
|
940
|
-
t[
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
] }), t[
|
|
942
|
+
Vt = t[72], et = t[73], P = t[74], j = t[75], zt = t[76], ht = t[77], ot = t[78], it = t[79], wt = t[80], ft = t[81], R = t[82], $t = t[83], Dt = t[84], pt = t[85];
|
|
943
|
+
let $;
|
|
944
|
+
t[98] !== Vt || t[99] !== P || t[100] !== j || t[101] !== pt ? ($ = /* @__PURE__ */ i.jsxs(Vt, { children: [
|
|
945
|
+
pt,
|
|
946
|
+
P,
|
|
947
|
+
j
|
|
948
|
+
] }), t[98] = Vt, t[99] = P, t[100] = j, t[101] = pt, t[102] = $) : $ = t[102];
|
|
945
949
|
let Wt;
|
|
946
|
-
t[
|
|
947
|
-
let
|
|
948
|
-
t[
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
950
|
+
t[103] !== L ? (Wt = L.filter(Qi).map(Ki), t[103] = L, t[104] = Wt) : Wt = t[104];
|
|
951
|
+
let r;
|
|
952
|
+
t[105] !== zt || t[106] !== ht || t[107] !== ot || t[108] !== it || t[109] !== $ || t[110] !== Wt ? (r = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
|
|
953
|
+
ht,
|
|
954
|
+
ot,
|
|
955
|
+
it,
|
|
956
|
+
$,
|
|
953
957
|
Wt
|
|
954
|
-
] }), t[
|
|
958
|
+
] }), t[105] = zt, t[106] = ht, t[107] = ot, t[108] = it, t[109] = $, t[110] = Wt, t[111] = r) : r = t[111];
|
|
955
959
|
let v;
|
|
956
|
-
t[
|
|
957
|
-
let
|
|
958
|
-
t[
|
|
959
|
-
let
|
|
960
|
-
t[
|
|
961
|
-
let
|
|
962
|
-
return t[
|
|
960
|
+
t[112] !== et || t[113] !== wt || t[114] !== ft || t[115] !== R || t[116] !== $t || t[117] !== Dt || t[118] !== r ? (v = /* @__PURE__ */ i.jsx(et, { ref: wt, width: ft, height: R, viewBox: $t, direction: Dt, children: r }), t[112] = et, t[113] = wt, t[114] = ft, t[115] = R, t[116] = $t, t[117] = Dt, t[118] = r, t[119] = v) : v = t[119];
|
|
961
|
+
let It;
|
|
962
|
+
t[120] !== y?.tooltip || t[121] !== Lt || t[122] !== ct || t[123] !== C || t[124] !== x?.tooltip || t[125] !== Tt ? (It = C && Tt && Lt && ct ? /* @__PURE__ */ i.jsx(Se, { data: C, body: Tt, xPos: Lt, yPos: ct, backgroundStyle: x?.tooltip, className: y?.tooltip }) : null, t[120] = y?.tooltip, t[121] = Lt, t[122] = ct, t[123] = C, t[124] = x?.tooltip, t[125] = Tt, t[126] = It) : It = t[126];
|
|
963
|
+
let Ot;
|
|
964
|
+
t[127] !== y?.modal || t[128] !== u || t[129] !== mt ? (Ot = u && mt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: u, data: mt, setData: Pt, className: y?.modal }) : null, t[127] = y?.modal, t[128] = u, t[129] = mt, t[130] = Ot) : Ot = t[130];
|
|
965
|
+
let c;
|
|
966
|
+
return t[131] !== v || t[132] !== It || t[133] !== Ot ? (c = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
963
967
|
v,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
] }), t[
|
|
968
|
+
It,
|
|
969
|
+
Ot
|
|
970
|
+
] }), t[131] = v, t[132] = It, t[133] = Ot, t[134] = c) : c = t[134], c;
|
|
967
971
|
}
|
|
968
|
-
function
|
|
972
|
+
function Ki(e) {
|
|
969
973
|
return e.layer;
|
|
970
974
|
}
|
|
971
|
-
function
|
|
975
|
+
function Qi(e) {
|
|
972
976
|
return e.position === "after";
|
|
973
977
|
}
|
|
974
|
-
function
|
|
978
|
+
function _i(e) {
|
|
975
979
|
return e.color;
|
|
976
980
|
}
|
|
977
|
-
function
|
|
981
|
+
function ts(e) {
|
|
978
982
|
return e.color;
|
|
979
983
|
}
|
|
980
|
-
function
|
|
984
|
+
function es(e) {
|
|
981
985
|
return e.color;
|
|
982
986
|
}
|
|
983
|
-
function
|
|
987
|
+
function is(e) {
|
|
984
988
|
return e.color;
|
|
985
989
|
}
|
|
986
|
-
function
|
|
990
|
+
function ss(e) {
|
|
987
991
|
return e.layer;
|
|
988
992
|
}
|
|
989
|
-
function
|
|
993
|
+
function ls(e) {
|
|
990
994
|
return e.position === "before";
|
|
991
995
|
}
|
|
992
|
-
function
|
|
996
|
+
function as(e) {
|
|
993
997
|
return e !== 0;
|
|
994
998
|
}
|
|
995
|
-
function
|
|
999
|
+
function os(e) {
|
|
996
1000
|
return e !== 0;
|
|
997
1001
|
}
|
|
998
|
-
function
|
|
1002
|
+
function ns(e) {
|
|
999
1003
|
return `${e.id}`;
|
|
1000
1004
|
}
|
|
1001
|
-
function
|
|
1005
|
+
function rs(e) {
|
|
1002
1006
|
return {
|
|
1003
1007
|
id: e,
|
|
1004
1008
|
label: e,
|
|
@@ -1006,269 +1010,270 @@ function ol(e) {
|
|
|
1006
1010
|
size: null
|
|
1007
1011
|
};
|
|
1008
1012
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const t =
|
|
1011
|
-
leftMargin:
|
|
1012
|
-
rightMargin:
|
|
1013
|
-
topMargin:
|
|
1014
|
-
bottomMargin:
|
|
1015
|
-
data:
|
|
1016
|
-
width:
|
|
1017
|
-
height:
|
|
1018
|
-
barColor:
|
|
1019
|
-
suffix:
|
|
1013
|
+
function cs(e) {
|
|
1014
|
+
const t = Me.c(146), {
|
|
1015
|
+
leftMargin: l,
|
|
1016
|
+
rightMargin: X,
|
|
1017
|
+
topMargin: Rt,
|
|
1018
|
+
bottomMargin: Ut,
|
|
1019
|
+
data: jt,
|
|
1020
|
+
width: Mt,
|
|
1021
|
+
height: St,
|
|
1022
|
+
barColor: H,
|
|
1023
|
+
suffix: U,
|
|
1020
1024
|
prefix: O,
|
|
1021
|
-
barPadding:
|
|
1022
|
-
showLabels:
|
|
1023
|
-
showValues:
|
|
1024
|
-
showTicks:
|
|
1025
|
-
colorDomain:
|
|
1026
|
-
truncateBy:
|
|
1027
|
-
tooltip:
|
|
1028
|
-
onSeriesMouseOver:
|
|
1029
|
-
refValues:
|
|
1030
|
-
selectedColor:
|
|
1031
|
-
maxValue:
|
|
1032
|
-
minValue:
|
|
1033
|
-
highlightedDataPoints:
|
|
1034
|
-
onSeriesMouseClick:
|
|
1035
|
-
labelOrder:
|
|
1036
|
-
maxBarThickness:
|
|
1037
|
-
minBarThickness:
|
|
1038
|
-
resetSelectionOnDoubleClick:
|
|
1039
|
-
detailsOnClick:
|
|
1025
|
+
barPadding: G,
|
|
1026
|
+
showLabels: gt,
|
|
1027
|
+
showValues: st,
|
|
1028
|
+
showTicks: kt,
|
|
1029
|
+
colorDomain: Y,
|
|
1030
|
+
truncateBy: nt,
|
|
1031
|
+
tooltip: Tt,
|
|
1032
|
+
onSeriesMouseOver: Ct,
|
|
1033
|
+
refValues: Yt,
|
|
1034
|
+
selectedColor: M,
|
|
1035
|
+
maxValue: J,
|
|
1036
|
+
minValue: S,
|
|
1037
|
+
highlightedDataPoints: z,
|
|
1038
|
+
onSeriesMouseClick: ut,
|
|
1039
|
+
labelOrder: K,
|
|
1040
|
+
maxBarThickness: yt,
|
|
1041
|
+
minBarThickness: B,
|
|
1042
|
+
resetSelectionOnDoubleClick: Q,
|
|
1043
|
+
detailsOnClick: lt,
|
|
1040
1044
|
barAxisTitle: u,
|
|
1041
|
-
valueColor:
|
|
1045
|
+
valueColor: s,
|
|
1042
1046
|
noOfTicks: a,
|
|
1043
1047
|
styles: f,
|
|
1044
1048
|
classNames: x,
|
|
1045
|
-
dimmedOpacity:
|
|
1046
|
-
animate:
|
|
1047
|
-
precision:
|
|
1048
|
-
customLayers:
|
|
1049
|
-
naLabel:
|
|
1050
|
-
trackColor:
|
|
1051
|
-
hideAxisLine:
|
|
1052
|
-
locale:
|
|
1053
|
-
|
|
1049
|
+
dimmedOpacity: y,
|
|
1050
|
+
animate: m,
|
|
1051
|
+
precision: rt,
|
|
1052
|
+
customLayers: F,
|
|
1053
|
+
naLabel: L,
|
|
1054
|
+
trackColor: T,
|
|
1055
|
+
hideAxisLine: Et,
|
|
1056
|
+
locale: Bt,
|
|
1057
|
+
padZeros: xt
|
|
1058
|
+
} = e, Ft = l === void 0 ? 20 : l, Gt = X === void 0 ? 20 : X, D = Rt === void 0 ? 20 : Rt, V = Ut === void 0 ? 25 : Ut, Z = Oe(null);
|
|
1054
1059
|
let p;
|
|
1055
|
-
t[0] !==
|
|
1056
|
-
once:
|
|
1057
|
-
amount:
|
|
1058
|
-
}, t[0] =
|
|
1059
|
-
const
|
|
1060
|
-
let
|
|
1061
|
-
t[3] !==
|
|
1062
|
-
top:
|
|
1063
|
-
bottom:
|
|
1064
|
-
left:
|
|
1065
|
-
right:
|
|
1066
|
-
}, t[3] =
|
|
1067
|
-
const
|
|
1068
|
-
let
|
|
1069
|
-
if (t[8] !==
|
|
1070
|
-
const
|
|
1071
|
-
const
|
|
1072
|
-
return
|
|
1073
|
-
...
|
|
1074
|
-
id:
|
|
1060
|
+
t[0] !== m.amount || t[1] !== m.once ? (p = {
|
|
1061
|
+
once: m.once,
|
|
1062
|
+
amount: m.amount
|
|
1063
|
+
}, t[0] = m.amount, t[1] = m.once, t[2] = p) : p = t[2];
|
|
1064
|
+
const b = He(Z, p), I = u ? Ft + 30 : Ft;
|
|
1065
|
+
let C;
|
|
1066
|
+
t[3] !== V || t[4] !== Gt || t[5] !== I || t[6] !== D ? (C = {
|
|
1067
|
+
top: D,
|
|
1068
|
+
bottom: V,
|
|
1069
|
+
left: I,
|
|
1070
|
+
right: Gt
|
|
1071
|
+
}, t[3] = V, t[4] = Gt, t[5] = I, t[6] = D, t[7] = C) : C = t[7];
|
|
1072
|
+
const N = C, [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), [ct, Xt] = _t(void 0), [W, _] = _t(void 0), k = Mt - N.left - N.right, tt = St - N.top - N.bottom;
|
|
1073
|
+
let at;
|
|
1074
|
+
if (t[8] !== jt || t[9] !== K) {
|
|
1075
|
+
const c = /* @__PURE__ */ new Set(), g = jt.map((Zt, Qt) => {
|
|
1076
|
+
const qt = K ? `${Zt.label}` : `${Qt}`;
|
|
1077
|
+
return c.add(qt), {
|
|
1078
|
+
...Zt,
|
|
1079
|
+
id: qt
|
|
1075
1080
|
};
|
|
1076
|
-
}),
|
|
1077
|
-
|
|
1081
|
+
}), q = K ? K.filter((Zt) => !c.has(Zt)) : [];
|
|
1082
|
+
at = [...g, ...q.map(ws)], t[8] = jt, t[9] = K, t[10] = at;
|
|
1078
1083
|
} else
|
|
1079
|
-
|
|
1080
|
-
const
|
|
1081
|
-
let
|
|
1082
|
-
t[11] !==
|
|
1083
|
-
const
|
|
1084
|
-
let
|
|
1085
|
-
if (t[14] !==
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1088
|
-
let Et;
|
|
1089
|
-
t[85] !== Mt || t[86] !== j || t[87] !== C || t[88] !== at || t[89] !== O || t[90] !== $t || t[91] !== R ? (Et = $t ? we(j < 0 ? 0 : j, C, at, O, R, Mt) : void 0, t[85] = Mt, t[86] = j, t[87] = C, t[88] = at, t[89] = O, t[90] = $t, t[91] = R, t[92] = Et) : Et = t[92];
|
|
1090
|
-
const Ut = x?.xAxis?.axis, Jt = x?.yAxis?.labels;
|
|
1084
|
+
at = t[10];
|
|
1085
|
+
const bt = at;
|
|
1086
|
+
let vt;
|
|
1087
|
+
t[11] !== bt || t[12] !== K ? (vt = K ?? bt.map(vs), t[11] = bt, t[12] = K, t[13] = vt) : vt = t[13];
|
|
1088
|
+
const At = vt;
|
|
1089
|
+
let dt, Vt, et, P, j, zt, ht, ot, it, wt, ft, R, $t, Dt;
|
|
1090
|
+
if (t[14] !== m || t[15] !== u || t[16] !== H || t[17] !== At || t[18] !== G || t[19] !== x?.graphObjectValues || t[20] !== x?.xAxis?.axis || t[21] !== x?.xAxis?.labels || t[22] !== x?.yAxis?.gridLines || t[23] !== x?.yAxis?.labels || t[24] !== x?.yAxis?.title || t[25] !== Y || t[26] !== F || t[27] !== jt || t[28] !== bt || t[29] !== lt || t[30] !== y || t[31] !== tt || t[32] !== k || t[33] !== St || t[34] !== Et || t[35] !== z || t[36] !== b || t[37] !== Ft || t[38] !== Bt || t[39] !== N.bottom || t[40] !== N.left || t[41] !== N.right || t[42] !== N.top || t[43] !== yt || t[44] !== J || t[45] !== B || t[46] !== S || t[47] !== Lt || t[48] !== L || t[49] !== a || t[50] !== ut || t[51] !== Ct || t[52] !== xt || t[53] !== rt || t[54] !== O || t[55] !== Yt || t[56] !== Q || t[57] !== M || t[58] !== gt || t[59] !== kt || t[60] !== st || t[61] !== f?.graphObjectValues || t[62] !== f?.xAxis?.axis || t[63] !== f?.xAxis?.labels || t[64] !== f?.yAxis?.gridLines || t[65] !== f?.yAxis?.labels || t[66] !== f?.yAxis?.title || t[67] !== U || t[68] !== T || t[69] !== nt || t[70] !== s || t[71] !== Mt) {
|
|
1091
|
+
const c = We().domain([S, J]).range([tt, 0]).nice(), g = ze().domain(At).range([0, B ? Math.max(k, B * At.length) : yt ? Math.min(k, yt * At.length) : k]).paddingInner(G), q = c.ticks(a);
|
|
1092
|
+
Vt = ee.svg, it = Z, wt = `${Mt}px`, ft = `${St}px`, R = `0 0 ${Mt} ${St}`, $t = "ltr", P = `translate(${N.left},${N.top})`;
|
|
1091
1093
|
let Zt;
|
|
1092
|
-
t[
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
t[96]
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1094
|
+
t[86] !== Bt || t[87] !== S || t[88] !== L || t[89] !== xt || t[90] !== rt || t[91] !== O || t[92] !== kt || t[93] !== U ? (Zt = kt ? $e(S < 0 ? 0 : S, L, rt, O, U, Bt, xt) : void 0, t[86] = Bt, t[87] = S, t[88] = L, t[89] = xt, t[90] = rt, t[91] = O, t[92] = kt, t[93] = U, t[94] = Zt) : Zt = t[94];
|
|
1095
|
+
const Qt = x?.xAxis?.axis, qt = x?.yAxis?.labels;
|
|
1096
|
+
let Jt;
|
|
1097
|
+
t[95] !== Qt || t[96] !== qt ? (Jt = {
|
|
1098
|
+
axis: Qt,
|
|
1099
|
+
label: qt
|
|
1100
|
+
}, t[95] = Qt, t[96] = qt, t[97] = Jt) : Jt = t[97];
|
|
1101
|
+
const te = f?.xAxis?.axis, w = f?.yAxis?.labels;
|
|
1102
|
+
let h;
|
|
1103
|
+
t[98] !== te || t[99] !== w ? (h = {
|
|
1104
|
+
axis: te,
|
|
1105
|
+
label: w
|
|
1106
|
+
}, t[98] = te, t[99] = w, t[100] = h) : h = t[100], j = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: Et, y1: c(S < 0 ? 0 : S), y2: c(S < 0 ? 0 : S), x1: 0 - Ft, x2: k + N.right, label: Zt, labelPos: {
|
|
1107
|
+
x: 0 - Ft,
|
|
1103
1108
|
dx: 0,
|
|
1104
|
-
dy:
|
|
1105
|
-
y:
|
|
1106
|
-
}, classNames:
|
|
1109
|
+
dy: J < 0 ? "1em" : -5,
|
|
1110
|
+
y: c(S < 0 ? 0 : S)
|
|
1111
|
+
}, classNames: Jt, styles: h }), zt = kt ? /* @__PURE__ */ i.jsx(_e, { values: q.filter(bs), y: q.filter(ys).map((n) => c(n)), x1: 0 - Ft, x2: k + N.right, styles: {
|
|
1107
1112
|
gridLines: f?.yAxis?.gridLines,
|
|
1108
1113
|
labels: f?.yAxis?.labels
|
|
1109
1114
|
}, classNames: {
|
|
1110
1115
|
gridLines: x?.yAxis?.gridLines,
|
|
1111
1116
|
labels: x?.yAxis?.labels
|
|
1112
|
-
}, suffix:
|
|
1113
|
-
const d = 0 -
|
|
1114
|
-
t[
|
|
1117
|
+
}, suffix: U, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: rt, locale: Bt, padZeros: xt }) : null;
|
|
1118
|
+
const d = 0 - Ft - 15, A = tt / 2, o = f?.yAxis?.title, E = x?.yAxis?.title;
|
|
1119
|
+
t[101] !== u || t[102] !== d || t[103] !== A || t[104] !== o || t[105] !== E ? (ht = /* @__PURE__ */ i.jsx(Fe, { x: d, y: A, style: o, className: E, text: u, rotate90: !0 }), t[101] = u, t[102] = d, t[103] = A, t[104] = o, t[105] = E, t[106] = ht) : ht = t[106], t[107] !== F ? (ot = F.filter(gs).map(ps), t[107] = F, t[108] = ot) : ot = t[108], dt = Xe, Dt = bt.map((n, le) => se(g(n.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: b ? "whileInView" : "initial", variants: {
|
|
1115
1120
|
initial: {
|
|
1116
|
-
opacity:
|
|
1121
|
+
opacity: M ? n.color && H[Y.indexOf(n.color)] === M && (!z || z.indexOf(n.id) !== -1) ? 1 : y : z ? z.indexOf(n.label) !== -1 ? 0.85 : y : 0.85
|
|
1117
1122
|
},
|
|
1118
1123
|
whileInView: {
|
|
1119
|
-
opacity:
|
|
1124
|
+
opacity: M ? n.color && H[Y.indexOf(n.color)] === M && (!z || z.indexOf(n.id) !== -1) ? 1 : y : z ? z.indexOf(n.label) !== -1 ? 0.85 : y : 0.85,
|
|
1120
1125
|
transition: {
|
|
1121
|
-
duration:
|
|
1126
|
+
duration: m.duration
|
|
1122
1127
|
}
|
|
1123
1128
|
}
|
|
1124
1129
|
}, exit: {
|
|
1125
1130
|
opacity: 0,
|
|
1126
1131
|
transition: {
|
|
1127
|
-
duration:
|
|
1132
|
+
duration: m.duration
|
|
1128
1133
|
}
|
|
1129
|
-
}, onMouseEnter: (
|
|
1130
|
-
|
|
1134
|
+
}, onMouseEnter: (re) => {
|
|
1135
|
+
Pt(n), _(re.clientY), Xt(re.clientX), Ct?.(n);
|
|
1131
1136
|
}, onClick: () => {
|
|
1132
|
-
(
|
|
1133
|
-
}, onMouseMove: (
|
|
1134
|
-
|
|
1137
|
+
(ut || lt) && (Te(Lt, n) && Q ? (Ht(void 0), ut?.(void 0)) : (Ht(n), ut?.(n)));
|
|
1138
|
+
}, onMouseMove: (re) => {
|
|
1139
|
+
Pt(n), _(re.clientY), Xt(re.clientX);
|
|
1135
1140
|
}, onMouseLeave: () => {
|
|
1136
|
-
|
|
1141
|
+
Pt(void 0), Xt(void 0), _(void 0), Ct?.(void 0);
|
|
1137
1142
|
}, children: [
|
|
1138
|
-
|
|
1143
|
+
T && /* @__PURE__ */ i.jsx(ee.rect, { width: g.bandwidth(), variants: {
|
|
1139
1144
|
initial: {
|
|
1140
|
-
height:
|
|
1145
|
+
height: tt,
|
|
1141
1146
|
y: 0,
|
|
1142
|
-
x:
|
|
1143
|
-
fill:
|
|
1147
|
+
x: g(`${n.id}`),
|
|
1148
|
+
fill: T
|
|
1144
1149
|
},
|
|
1145
1150
|
whileInView: {
|
|
1146
|
-
height:
|
|
1151
|
+
height: tt,
|
|
1147
1152
|
y: 0,
|
|
1148
|
-
x:
|
|
1149
|
-
fill:
|
|
1153
|
+
x: g(`${n.id}`),
|
|
1154
|
+
fill: T
|
|
1150
1155
|
}
|
|
1151
|
-
}, initial: "initial", animate:
|
|
1156
|
+
}, initial: "initial", animate: b ? "whileInView" : "initial", exit: {
|
|
1152
1157
|
opacity: 0,
|
|
1153
1158
|
transition: {
|
|
1154
|
-
duration:
|
|
1159
|
+
duration: m.duration
|
|
1155
1160
|
}
|
|
1156
1161
|
} }),
|
|
1157
|
-
|
|
1162
|
+
n.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: g.bandwidth(), initial: "initial", animate: b ? "whileInView" : "initial", variants: {
|
|
1158
1163
|
initial: {
|
|
1159
1164
|
height: 0,
|
|
1160
|
-
x:
|
|
1161
|
-
y:
|
|
1162
|
-
fill:
|
|
1165
|
+
x: g(`${n.id}`),
|
|
1166
|
+
y: c(0),
|
|
1167
|
+
fill: jt.filter(fs).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray
|
|
1163
1168
|
},
|
|
1164
1169
|
whileInView: {
|
|
1165
|
-
height:
|
|
1166
|
-
y:
|
|
1167
|
-
x:
|
|
1168
|
-
fill:
|
|
1170
|
+
height: n.size ? Math.abs(c(n.size) - c(0)) : 0,
|
|
1171
|
+
y: n.size && n.size > 0 ? c(n.size) : c(0),
|
|
1172
|
+
x: g(`${n.id}`),
|
|
1173
|
+
fill: jt.filter(hs).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray,
|
|
1169
1174
|
transition: {
|
|
1170
|
-
duration:
|
|
1175
|
+
duration: m.duration
|
|
1171
1176
|
}
|
|
1172
1177
|
}
|
|
1173
1178
|
}, exit: {
|
|
1174
1179
|
height: 0,
|
|
1175
|
-
y:
|
|
1180
|
+
y: c(0),
|
|
1176
1181
|
transition: {
|
|
1177
|
-
duration:
|
|
1182
|
+
duration: m.duration
|
|
1178
1183
|
}
|
|
1179
1184
|
} }) : null,
|
|
1180
|
-
|
|
1181
|
-
|
|
1185
|
+
gt ? /* @__PURE__ */ i.jsx(ti, { value: `${n.label}`.length < nt ? `${n.label}` : `${`${n.label}`.substring(0, nt)}...`, y: (n.size || 0) < 0 ? 0 : c(0) + 5, x: g(`${n.id}`), width: g.bandwidth(), height: (n.size || 0) < 0 ? c(0) - 5 : N.bottom, style: f?.xAxis?.labels, className: x?.xAxis?.labels, alignment: (n.size || 0) < 0 ? "bottom" : "top", animate: m, isInView: b }) : null,
|
|
1186
|
+
st ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
1182
1187
|
textAnchor: "middle",
|
|
1183
1188
|
...f?.graphObjectValues || {}
|
|
1184
|
-
}, className:
|
|
1189
|
+
}, className: Ve("graph-value text-sm", !s && H.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", x?.graphObjectValues), dy: n.size ? n.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
1185
1190
|
initial: {
|
|
1186
|
-
x:
|
|
1187
|
-
y:
|
|
1191
|
+
x: g(`${n.id}`) + g.bandwidth() / 2,
|
|
1192
|
+
y: c(0),
|
|
1188
1193
|
opacity: 0,
|
|
1189
|
-
fill:
|
|
1194
|
+
fill: s || (jt.filter(ms).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray)
|
|
1190
1195
|
},
|
|
1191
1196
|
whileInView: {
|
|
1192
|
-
x:
|
|
1193
|
-
y:
|
|
1194
|
-
fill:
|
|
1197
|
+
x: g(`${n.id}`) + g.bandwidth() / 2,
|
|
1198
|
+
y: c(n.size || 0),
|
|
1199
|
+
fill: s || (jt.filter(xs).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray),
|
|
1195
1200
|
opacity: 1,
|
|
1196
1201
|
transition: {
|
|
1197
|
-
duration:
|
|
1202
|
+
duration: m.duration
|
|
1198
1203
|
}
|
|
1199
1204
|
}
|
|
1200
|
-
}, initial: "initial", animate:
|
|
1205
|
+
}, initial: "initial", animate: b ? "whileInView" : "initial", exit: {
|
|
1201
1206
|
opacity: 0,
|
|
1202
1207
|
transition: {
|
|
1203
|
-
duration:
|
|
1208
|
+
duration: m.duration
|
|
1204
1209
|
}
|
|
1205
|
-
}, children:
|
|
1206
|
-
] },
|
|
1210
|
+
}, children: $e(n.size, L, rt, O, U, Bt, xt) }) : null
|
|
1211
|
+
] }, n.label)), et = Yt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Yt.map((n, le) => /* @__PURE__ */ i.jsx(Qe, { text: n.text, color: n.color, y: c(n.value), x1: 0 - Ft, x2: k + N.right, classNames: n.classNames, styles: n.styles, animate: m, isInView: b }, le)) }) : null, t[14] = m, t[15] = u, t[16] = H, t[17] = At, t[18] = G, t[19] = x?.graphObjectValues, t[20] = x?.xAxis?.axis, t[21] = x?.xAxis?.labels, t[22] = x?.yAxis?.gridLines, t[23] = x?.yAxis?.labels, t[24] = x?.yAxis?.title, t[25] = Y, t[26] = F, t[27] = jt, t[28] = bt, t[29] = lt, t[30] = y, t[31] = tt, t[32] = k, t[33] = St, t[34] = Et, t[35] = z, t[36] = b, t[37] = Ft, t[38] = Bt, t[39] = N.bottom, t[40] = N.left, t[41] = N.right, t[42] = N.top, t[43] = yt, t[44] = J, t[45] = B, t[46] = S, t[47] = Lt, t[48] = L, t[49] = a, t[50] = ut, t[51] = Ct, t[52] = xt, t[53] = rt, t[54] = O, t[55] = Yt, t[56] = Q, t[57] = M, t[58] = gt, t[59] = kt, t[60] = st, t[61] = f?.graphObjectValues, t[62] = f?.xAxis?.axis, t[63] = f?.xAxis?.labels, t[64] = f?.yAxis?.gridLines, t[65] = f?.yAxis?.labels, t[66] = f?.yAxis?.title, t[67] = U, t[68] = T, t[69] = nt, t[70] = s, t[71] = Mt, t[72] = dt, t[73] = Vt, t[74] = et, t[75] = P, t[76] = j, t[77] = zt, t[78] = ht, t[79] = ot, t[80] = it, t[81] = wt, t[82] = ft, t[83] = R, t[84] = $t, t[85] = Dt;
|
|
1207
1212
|
} else
|
|
1208
|
-
|
|
1209
|
-
let
|
|
1210
|
-
t[
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
] }), t[
|
|
1214
|
-
let
|
|
1215
|
-
t[
|
|
1213
|
+
dt = t[72], Vt = t[73], et = t[74], P = t[75], j = t[76], zt = t[77], ht = t[78], ot = t[79], it = t[80], wt = t[81], ft = t[82], R = t[83], $t = t[84], Dt = t[85];
|
|
1214
|
+
let pt;
|
|
1215
|
+
t[109] !== dt || t[110] !== et || t[111] !== Dt ? (pt = /* @__PURE__ */ i.jsxs(dt, { children: [
|
|
1216
|
+
Dt,
|
|
1217
|
+
et
|
|
1218
|
+
] }), t[109] = dt, t[110] = et, t[111] = Dt, t[112] = pt) : pt = t[112];
|
|
1219
|
+
let $;
|
|
1220
|
+
t[113] !== F ? ($ = F.filter(us).map(ds), t[113] = F, t[114] = $) : $ = t[114];
|
|
1216
1221
|
let Wt;
|
|
1217
|
-
t[
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
] }), t[
|
|
1225
|
-
let
|
|
1226
|
-
t[
|
|
1222
|
+
t[115] !== P || t[116] !== j || t[117] !== zt || t[118] !== ht || t[119] !== ot || t[120] !== pt || t[121] !== $ ? (Wt = /* @__PURE__ */ i.jsxs("g", { transform: P, children: [
|
|
1223
|
+
j,
|
|
1224
|
+
zt,
|
|
1225
|
+
ht,
|
|
1226
|
+
ot,
|
|
1227
|
+
pt,
|
|
1228
|
+
$
|
|
1229
|
+
] }), t[115] = P, t[116] = j, t[117] = zt, t[118] = ht, t[119] = ot, t[120] = pt, t[121] = $, t[122] = Wt) : Wt = t[122];
|
|
1230
|
+
let r;
|
|
1231
|
+
t[123] !== Vt || t[124] !== it || t[125] !== wt || t[126] !== ft || t[127] !== R || t[128] !== $t || t[129] !== Wt ? (r = /* @__PURE__ */ i.jsx(Vt, { ref: it, width: wt, height: ft, viewBox: R, direction: $t, children: Wt }), t[123] = Vt, t[124] = it, t[125] = wt, t[126] = ft, t[127] = R, t[128] = $t, t[129] = Wt, t[130] = r) : r = t[130];
|
|
1227
1232
|
let v;
|
|
1228
|
-
t[
|
|
1229
|
-
let
|
|
1230
|
-
t[
|
|
1231
|
-
let
|
|
1232
|
-
return t[
|
|
1233
|
-
|
|
1233
|
+
t[131] !== x?.tooltip || t[132] !== ct || t[133] !== W || t[134] !== mt || t[135] !== f?.tooltip || t[136] !== Tt ? (v = mt && Tt && ct && W ? /* @__PURE__ */ i.jsx(Se, { data: mt, body: Tt, xPos: ct, yPos: W, backgroundStyle: f?.tooltip, className: x?.tooltip }) : null, t[131] = x?.tooltip, t[132] = ct, t[133] = W, t[134] = mt, t[135] = f?.tooltip, t[136] = Tt, t[137] = v) : v = t[137];
|
|
1234
|
+
let It;
|
|
1235
|
+
t[138] !== x?.modal || t[139] !== lt || t[140] !== Lt ? (It = lt && Lt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: lt, data: Lt, setData: Ht, className: x?.modal }) : null, t[138] = x?.modal, t[139] = lt, t[140] = Lt, t[141] = It) : It = t[141];
|
|
1236
|
+
let Ot;
|
|
1237
|
+
return t[142] !== r || t[143] !== v || t[144] !== It ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1238
|
+
r,
|
|
1234
1239
|
v,
|
|
1235
|
-
|
|
1236
|
-
] }), t[
|
|
1240
|
+
It
|
|
1241
|
+
] }), t[142] = r, t[143] = v, t[144] = It, t[145] = Ot) : Ot = t[145], Ot;
|
|
1237
1242
|
}
|
|
1238
|
-
function
|
|
1243
|
+
function ds(e) {
|
|
1239
1244
|
return e.layer;
|
|
1240
1245
|
}
|
|
1241
|
-
function
|
|
1246
|
+
function us(e) {
|
|
1242
1247
|
return e.position === "after";
|
|
1243
1248
|
}
|
|
1244
|
-
function
|
|
1249
|
+
function xs(e) {
|
|
1245
1250
|
return e.color;
|
|
1246
1251
|
}
|
|
1247
|
-
function
|
|
1252
|
+
function ms(e) {
|
|
1248
1253
|
return e.color;
|
|
1249
1254
|
}
|
|
1250
|
-
function
|
|
1255
|
+
function hs(e) {
|
|
1251
1256
|
return e.color;
|
|
1252
1257
|
}
|
|
1253
|
-
function
|
|
1258
|
+
function fs(e) {
|
|
1254
1259
|
return e.color;
|
|
1255
1260
|
}
|
|
1256
|
-
function
|
|
1261
|
+
function ps(e) {
|
|
1257
1262
|
return e.layer;
|
|
1258
1263
|
}
|
|
1259
|
-
function
|
|
1264
|
+
function gs(e) {
|
|
1260
1265
|
return e.position === "before";
|
|
1261
1266
|
}
|
|
1262
|
-
function
|
|
1267
|
+
function ys(e) {
|
|
1263
1268
|
return e !== 0;
|
|
1264
1269
|
}
|
|
1265
|
-
function
|
|
1270
|
+
function bs(e) {
|
|
1266
1271
|
return e !== 0;
|
|
1267
1272
|
}
|
|
1268
|
-
function
|
|
1273
|
+
function vs(e) {
|
|
1269
1274
|
return `${e.id}`;
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1276
|
+
function ws(e) {
|
|
1272
1277
|
return {
|
|
1273
1278
|
id: e,
|
|
1274
1279
|
label: e,
|
|
@@ -1276,352 +1281,354 @@ function bl(e) {
|
|
|
1276
1281
|
size: null
|
|
1277
1282
|
};
|
|
1278
1283
|
}
|
|
1279
|
-
function
|
|
1280
|
-
const t =
|
|
1281
|
-
data:
|
|
1282
|
-
graphTitle:
|
|
1283
|
-
colors:
|
|
1284
|
-
suffix:
|
|
1285
|
-
sources:
|
|
1286
|
-
prefix:
|
|
1287
|
-
graphDescription:
|
|
1288
|
-
barPadding:
|
|
1289
|
-
showValues:
|
|
1284
|
+
function As(e) {
|
|
1285
|
+
const t = Me.c(134), {
|
|
1286
|
+
data: l,
|
|
1287
|
+
graphTitle: X,
|
|
1288
|
+
colors: Rt,
|
|
1289
|
+
suffix: Ut,
|
|
1290
|
+
sources: jt,
|
|
1291
|
+
prefix: Mt,
|
|
1292
|
+
graphDescription: St,
|
|
1293
|
+
barPadding: H,
|
|
1294
|
+
showValues: U,
|
|
1290
1295
|
showTicks: O,
|
|
1291
|
-
truncateBy:
|
|
1292
|
-
height:
|
|
1293
|
-
width:
|
|
1294
|
-
footNote:
|
|
1295
|
-
colorDomain:
|
|
1296
|
-
colorLegendTitle:
|
|
1297
|
-
highlightedDataPoints:
|
|
1298
|
-
padding:
|
|
1299
|
-
backgroundColor:
|
|
1300
|
-
topMargin:
|
|
1301
|
-
bottomMargin:
|
|
1302
|
-
leftMargin:
|
|
1303
|
-
rightMargin:
|
|
1304
|
-
showLabels:
|
|
1305
|
-
relativeHeight:
|
|
1306
|
-
tooltip:
|
|
1307
|
-
onSeriesMouseOver:
|
|
1308
|
-
refValues:
|
|
1309
|
-
showColorScale:
|
|
1296
|
+
truncateBy: G,
|
|
1297
|
+
height: gt,
|
|
1298
|
+
width: st,
|
|
1299
|
+
footNote: kt,
|
|
1300
|
+
colorDomain: Y,
|
|
1301
|
+
colorLegendTitle: nt,
|
|
1302
|
+
highlightedDataPoints: Tt,
|
|
1303
|
+
padding: Ct,
|
|
1304
|
+
backgroundColor: Yt,
|
|
1305
|
+
topMargin: M,
|
|
1306
|
+
bottomMargin: J,
|
|
1307
|
+
leftMargin: S,
|
|
1308
|
+
rightMargin: z,
|
|
1309
|
+
showLabels: ut,
|
|
1310
|
+
relativeHeight: K,
|
|
1311
|
+
tooltip: yt,
|
|
1312
|
+
onSeriesMouseOver: B,
|
|
1313
|
+
refValues: Q,
|
|
1314
|
+
showColorScale: lt,
|
|
1310
1315
|
graphID: u,
|
|
1311
|
-
maxValue:
|
|
1316
|
+
maxValue: s,
|
|
1312
1317
|
minValue: a,
|
|
1313
1318
|
onSeriesMouseClick: f,
|
|
1314
1319
|
graphDownload: x,
|
|
1315
|
-
dataDownload:
|
|
1316
|
-
sortData:
|
|
1317
|
-
labelOrder:
|
|
1318
|
-
language:
|
|
1319
|
-
showNAColor:
|
|
1320
|
-
minHeight:
|
|
1321
|
-
theme:
|
|
1322
|
-
maxBarThickness:
|
|
1323
|
-
maxNumberOfBars:
|
|
1324
|
-
minBarThickness:
|
|
1325
|
-
ariaLabel:
|
|
1320
|
+
dataDownload: y,
|
|
1321
|
+
sortData: m,
|
|
1322
|
+
labelOrder: rt,
|
|
1323
|
+
language: F,
|
|
1324
|
+
showNAColor: L,
|
|
1325
|
+
minHeight: T,
|
|
1326
|
+
theme: Et,
|
|
1327
|
+
maxBarThickness: Bt,
|
|
1328
|
+
maxNumberOfBars: xt,
|
|
1329
|
+
minBarThickness: Ft,
|
|
1330
|
+
ariaLabel: Gt,
|
|
1326
1331
|
resetSelectionOnDoubleClick: D,
|
|
1327
|
-
detailsOnClick:
|
|
1328
|
-
barAxisTitle:
|
|
1329
|
-
noOfTicks:
|
|
1330
|
-
valueColor:
|
|
1331
|
-
styles:
|
|
1332
|
-
classNames:
|
|
1333
|
-
filterNA:
|
|
1334
|
-
animate:
|
|
1335
|
-
dimmedOpacity:
|
|
1336
|
-
precision:
|
|
1337
|
-
customLayers:
|
|
1338
|
-
timeline:
|
|
1339
|
-
naLabel:
|
|
1340
|
-
orientation:
|
|
1341
|
-
trackColor:
|
|
1342
|
-
hideAxisLine:
|
|
1343
|
-
locale:
|
|
1344
|
-
|
|
1332
|
+
detailsOnClick: V,
|
|
1333
|
+
barAxisTitle: Z,
|
|
1334
|
+
noOfTicks: p,
|
|
1335
|
+
valueColor: b,
|
|
1336
|
+
styles: I,
|
|
1337
|
+
classNames: C,
|
|
1338
|
+
filterNA: N,
|
|
1339
|
+
animate: mt,
|
|
1340
|
+
dimmedOpacity: Pt,
|
|
1341
|
+
precision: Lt,
|
|
1342
|
+
customLayers: Ht,
|
|
1343
|
+
timeline: ct,
|
|
1344
|
+
naLabel: Xt,
|
|
1345
|
+
orientation: W,
|
|
1346
|
+
trackColor: _,
|
|
1347
|
+
hideAxisLine: k,
|
|
1348
|
+
locale: tt,
|
|
1349
|
+
padZeros: at
|
|
1350
|
+
} = e, bt = Ut === void 0 ? "" : Ut, vt = Mt === void 0 ? "" : Mt, At = H === void 0 ? 0.25 : H, dt = U === void 0 ? !0 : U, Vt = O === void 0 ? !0 : O, et = G === void 0 ? 999 : G, P = Yt === void 0 ? !1 : Yt, j = ut === void 0 ? !0 : ut, zt = lt === void 0 ? !0 : lt, ht = x === void 0 ? !1 : x, ot = y === void 0 ? !1 : y, it = F === void 0 ? "en" : F, wt = L === void 0 ? !0 : L, ft = T === void 0 ? 0 : T, R = Et === void 0 ? "light" : Et, $t = D === void 0 ? !0 : D, Dt = p === void 0 ? 5 : p, pt = N === void 0 ? !0 : N, $ = mt === void 0 ? !1 : mt, Wt = Pt === void 0 ? 0.3 : Pt, r = Lt === void 0 ? 2 : Lt;
|
|
1345
1351
|
let v;
|
|
1346
|
-
t[0] !==
|
|
1347
|
-
const
|
|
1348
|
-
let
|
|
1349
|
-
t[2] !==
|
|
1352
|
+
t[0] !== Ht ? (v = Ht === void 0 ? [] : Ht, t[0] = Ht, t[1] = v) : v = t[1];
|
|
1353
|
+
const It = v;
|
|
1354
|
+
let Ot;
|
|
1355
|
+
t[2] !== ct ? (Ot = ct === void 0 ? {
|
|
1350
1356
|
enabled: !1,
|
|
1351
1357
|
autoplay: !1,
|
|
1352
1358
|
showOnlyActiveDate: !0
|
|
1353
|
-
} :
|
|
1354
|
-
const
|
|
1355
|
-
let
|
|
1356
|
-
if (t[4] !==
|
|
1357
|
-
let
|
|
1358
|
-
t[7] !==
|
|
1359
|
+
} : ct, t[2] = ct, t[3] = Ot) : Ot = t[3];
|
|
1360
|
+
const c = Ot, g = Xt === void 0 ? "NA" : Xt, q = W === void 0 ? "vertical" : W, Zt = k === void 0 ? !1 : k, Qt = tt === void 0 ? "en" : tt, qt = at === void 0 ? !1 : at, Jt = q === "horizontal" ? Ji : cs, [te, w] = _t(0), [h, d] = _t(0), [A, o] = _t(c.autoplay);
|
|
1361
|
+
let E;
|
|
1362
|
+
if (t[4] !== l || t[5] !== c.dateFormat) {
|
|
1363
|
+
let ie;
|
|
1364
|
+
t[7] !== c.dateFormat ? (ie = (Le) => qe(`${Le.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = c.dateFormat, t[8] = ie) : ie = t[8], E = [...new Set(l.filter(Hs).map(ie))], E.sort(Ps), t[4] = l, t[5] = c.dateFormat, t[6] = E;
|
|
1359
1365
|
} else
|
|
1360
|
-
|
|
1361
|
-
const
|
|
1362
|
-
let
|
|
1363
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1364
|
-
const
|
|
1365
|
-
|
|
1366
|
+
E = t[6];
|
|
1367
|
+
const n = E, [le, re] = _t(c.autoplay ? 0 : n.length - 1), [ye, ke] = _t(void 0), we = Oe(null), Ce = Oe(null);
|
|
1368
|
+
let ge, be;
|
|
1369
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = () => {
|
|
1370
|
+
const ie = new ResizeObserver((Le) => {
|
|
1371
|
+
w(Le[0].target.clientWidth || 620), d(Le[0].target.clientHeight || 480);
|
|
1366
1372
|
});
|
|
1367
|
-
return
|
|
1368
|
-
},
|
|
1369
|
-
let
|
|
1370
|
-
t[11] !==
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1373
|
-
}, (
|
|
1374
|
-
return
|
|
1375
|
-
},
|
|
1376
|
-
const
|
|
1377
|
-
let
|
|
1378
|
-
t[16] !==
|
|
1379
|
-
const
|
|
1380
|
-
let
|
|
1381
|
-
t[21] !==
|
|
1382
|
-
title:
|
|
1383
|
-
description:
|
|
1373
|
+
return we.current && ie.observe(we.current), () => ie.disconnect();
|
|
1374
|
+
}, be = [], t[9] = ge, t[10] = be) : (ge = t[9], be = t[10]), je(ge, be);
|
|
1375
|
+
let Ae, pe;
|
|
1376
|
+
t[11] !== A || t[12] !== c.speed || t[13] !== n ? (Ae = () => {
|
|
1377
|
+
const ie = setInterval(() => {
|
|
1378
|
+
re((Le) => Le < n.length - 1 ? Le + 1 : 0);
|
|
1379
|
+
}, (c.speed || 2) * 1e3);
|
|
1380
|
+
return A || clearInterval(ie), () => clearInterval(ie);
|
|
1381
|
+
}, pe = [n, A, c.speed], t[11] = A, t[12] = c.speed, t[13] = n, t[14] = Ae, t[15] = pe) : (Ae = t[14], pe = t[15]), je(Ae, pe);
|
|
1382
|
+
const xe = c.dateFormat || "yyyy";
|
|
1383
|
+
let ce;
|
|
1384
|
+
t[16] !== le || t[17] !== xe || t[18] !== c.showOnlyActiveDate || t[19] !== n ? (ce = Ze(n, le, c.showOnlyActiveDate, xe), t[16] = le, t[17] = xe, t[18] = c.showOnlyActiveDate, t[19] = n, t[20] = ce) : ce = t[20];
|
|
1385
|
+
const de = ce, me = C?.graphContainer, he = I?.graphContainer;
|
|
1386
|
+
let ae;
|
|
1387
|
+
t[21] !== C?.description || t[22] !== C?.title || t[23] !== l || t[24] !== ot || t[25] !== St || t[26] !== ht || t[27] !== X || t[28] !== I?.description || t[29] !== I?.title || t[30] !== st ? (ae = X || St || ht || ot ? /* @__PURE__ */ i.jsx(ei, { styles: {
|
|
1388
|
+
title: I?.title,
|
|
1389
|
+
description: I?.description
|
|
1384
1390
|
}, classNames: {
|
|
1385
|
-
title:
|
|
1386
|
-
description:
|
|
1387
|
-
}, graphTitle:
|
|
1388
|
-
let
|
|
1389
|
-
t[32] !==
|
|
1391
|
+
title: C?.title,
|
|
1392
|
+
description: C?.description
|
|
1393
|
+
}, graphTitle: X, graphDescription: St, width: st, graphDownload: ht ? Ce : void 0, dataDownload: ot ? l.map(Fs).filter(Bs).length > 0 ? l.map(Ss).filter(Ts) : l.filter(js) : null }) : null, t[21] = C?.description, t[22] = C?.title, t[23] = l, t[24] = ot, t[25] = St, t[26] = ht, t[27] = X, t[28] = I?.description, t[29] = I?.title, t[30] = st, t[31] = ae) : ae = t[31];
|
|
1394
|
+
let oe;
|
|
1395
|
+
t[32] !== le || t[33] !== de || t[34] !== A || t[35] !== c.enabled || t[36] !== n ? (oe = c.enabled && n.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
|
|
1390
1396
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1391
|
-
|
|
1392
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
1393
|
-
/* @__PURE__ */ i.jsx(
|
|
1394
|
-
|
|
1395
|
-
}, onChange: (
|
|
1396
|
-
|
|
1397
|
+
o(!A);
|
|
1398
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
|
|
1399
|
+
/* @__PURE__ */ i.jsx(Re, { min: n[0], max: n[n.length - 1], marks: de, step: null, defaultValue: n[n.length - 1], value: n[le], onChangeComplete: (ie) => {
|
|
1400
|
+
re(n.indexOf(ie));
|
|
1401
|
+
}, onChange: (ie) => {
|
|
1402
|
+
re(n.indexOf(ie));
|
|
1397
1403
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1398
|
-
] }) : null, t[32] =
|
|
1399
|
-
let
|
|
1400
|
-
t[38] !==
|
|
1401
|
-
let
|
|
1402
|
-
t[48] !==
|
|
1403
|
-
let
|
|
1404
|
-
t[50] !== Jt || t[51] !==
|
|
1404
|
+
] }) : null, t[32] = le, t[33] = de, t[34] = A, t[35] = c.enabled, t[36] = n, t[37] = oe) : oe = t[37];
|
|
1405
|
+
let ue;
|
|
1406
|
+
t[38] !== C?.colorLegend || t[39] !== Y || t[40] !== nt || t[41] !== Rt || t[42] !== l || t[43] !== zt || t[44] !== wt || t[45] !== R || t[46] !== st ? (ue = zt && l.filter(Ns).length !== 0 && l.length > 0 ? /* @__PURE__ */ i.jsx(si, { width: st, colorLegendTitle: nt, colors: Rt || ve[R].categoricalColors.colors, colorDomain: Y || di(l, "color", !0), setSelectedColor: ke, showNAColor: wt, className: C?.colorLegend }) : null, t[38] = C?.colorLegend, t[39] = Y, t[40] = nt, t[41] = Rt, t[42] = l, t[43] = zt, t[44] = wt, t[45] = R, t[46] = st, t[47] = ue) : ue = t[47];
|
|
1407
|
+
let Kt;
|
|
1408
|
+
t[48] !== l.length ? (Kt = l.length === 0 && /* @__PURE__ */ i.jsx(li, {}), t[48] = l.length, t[49] = Kt) : Kt = t[49];
|
|
1409
|
+
let Nt;
|
|
1410
|
+
t[50] !== Jt || t[51] !== $ || t[52] !== Z || t[53] !== At || t[54] !== J || t[55] !== C || t[56] !== Y || t[57] !== Rt || t[58] !== It || t[59] !== l || t[60] !== V || t[61] !== Wt || t[62] !== pt || t[63] !== Zt || t[64] !== Tt || t[65] !== le || t[66] !== rt || t[67] !== it || t[68] !== S || t[69] !== Qt || t[70] !== Bt || t[71] !== xt || t[72] !== s || t[73] !== Ft || t[74] !== a || t[75] !== g || t[76] !== Dt || t[77] !== f || t[78] !== B || t[79] !== q || t[80] !== qt || t[81] !== r || t[82] !== vt || t[83] !== Q || t[84] !== $t || t[85] !== z || t[86] !== ye || t[87] !== j || t[88] !== Vt || t[89] !== dt || t[90] !== m || t[91] !== I || t[92] !== bt || t[93] !== h || t[94] !== te || t[95] !== R || t[96] !== c.dateFormat || t[97] !== c.enabled || t[98] !== yt || t[99] !== M || t[100] !== _ || t[101] !== et || t[102] !== n || t[103] !== b ? (Nt = te && h && l.length > 0 ? /* @__PURE__ */ i.jsx(Jt, { hideAxisLine: Zt, data: m ? Ye(ci(l, c.dateFormat || "yyyy").filter((ie) => c.enabled ? `${ie.date}` === De(new Date(n[le]), c.dateFormat || "yyyy") : ie).filter((ie) => pt ? !se(ie.size) : ie), [(ie) => ie.size === void 0 ? m === "asc" ? (q === "horizontal" ? 1 : -1) * (1 / 0) : (q === "horizontal" ? -1 : 1) * (1 / 0) : ie.size], [m]).filter((ie, Le) => xt ? Le < xt : !0) : ci(l, c.dateFormat || "yyyy").filter((ie) => c.enabled ? `${ie.date}` === De(new Date(n[le]), c.dateFormat || "yyyy") : ie).filter((ie) => pt ? !se(ie.size) : ie).filter((ie, Le) => xt ? Le < xt : !0), barColor: l.filter(Is).length === 0 ? Rt ? [Rt] : [ve.primaryColors["blue-600"]] : Rt || ve[R].categoricalColors.colors, colorDomain: l.filter(Ds).length === 0 ? [] : Y || di(l, "color", !0), selectedColor: ye, trackColor: _, width: te, height: h, suffix: bt, prefix: vt, barPadding: At, showValues: dt, showTicks: Vt, leftMargin: S, rightMargin: z, topMargin: M, bottomMargin: J, truncateBy: et, showLabels: j, tooltip: yt, onSeriesMouseOver: B, refValues: Q, maxValue: se(s) ? Math.max(...l.filter(zs).map(Vs)) < 0 ? 0 : Math.max(...l.filter(Ls).map(Cs)) : s, minValue: se(a) ? Math.min(...l.filter(ks).map(Ms)) >= 0 ? 0 : Math.min(...l.filter(Os).map($s)) : a, highlightedDataPoints: Tt, onSeriesMouseClick: f, labelOrder: rt, rtl: it === "he" || it === "ar", maxBarThickness: Bt, minBarThickness: Ft, resetSelectionOnDoubleClick: $t, detailsOnClick: V, barAxisTitle: Z, noOfTicks: Dt, valueColor: b, classNames: C, styles: I, animate: $ === !0 ? {
|
|
1405
1411
|
duration: 0.5,
|
|
1406
1412
|
once: !0,
|
|
1407
1413
|
amount: 0.5
|
|
1408
|
-
} :
|
|
1414
|
+
} : $ || {
|
|
1409
1415
|
duration: 0,
|
|
1410
1416
|
once: !0,
|
|
1411
1417
|
amount: 0
|
|
1412
|
-
}, dimmedOpacity: Wt, precision:
|
|
1413
|
-
let
|
|
1414
|
-
t[
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
] }), t[
|
|
1418
|
-
let
|
|
1419
|
-
t[
|
|
1420
|
-
footnote:
|
|
1421
|
-
source:
|
|
1418
|
+
}, dimmedOpacity: Wt, precision: r, customLayers: It, naLabel: g, locale: Qt, padZeros: qt }) : null, t[50] = Jt, t[51] = $, t[52] = Z, t[53] = At, t[54] = J, t[55] = C, t[56] = Y, t[57] = Rt, t[58] = It, t[59] = l, t[60] = V, t[61] = Wt, t[62] = pt, t[63] = Zt, t[64] = Tt, t[65] = le, t[66] = rt, t[67] = it, t[68] = S, t[69] = Qt, t[70] = Bt, t[71] = xt, t[72] = s, t[73] = Ft, t[74] = a, t[75] = g, t[76] = Dt, t[77] = f, t[78] = B, t[79] = q, t[80] = qt, t[81] = r, t[82] = vt, t[83] = Q, t[84] = $t, t[85] = z, t[86] = ye, t[87] = j, t[88] = Vt, t[89] = dt, t[90] = m, t[91] = I, t[92] = bt, t[93] = h, t[94] = te, t[95] = R, t[96] = c.dateFormat, t[97] = c.enabled, t[98] = yt, t[99] = M, t[100] = _, t[101] = et, t[102] = n, t[103] = b, t[104] = Nt) : Nt = t[104];
|
|
1419
|
+
let ne;
|
|
1420
|
+
t[105] !== Kt || t[106] !== Nt ? (ne = /* @__PURE__ */ i.jsxs(ni, { ref: we, children: [
|
|
1421
|
+
Kt,
|
|
1422
|
+
Nt
|
|
1423
|
+
] }), t[105] = Kt, t[106] = Nt, t[107] = ne) : ne = t[107];
|
|
1424
|
+
let Ie;
|
|
1425
|
+
t[108] !== C?.footnote || t[109] !== C?.source || t[110] !== kt || t[111] !== jt || t[112] !== I?.footnote || t[113] !== I?.source || t[114] !== st ? (Ie = jt || kt ? /* @__PURE__ */ i.jsx(ii, { sources: jt, footNote: kt, width: st, styles: {
|
|
1426
|
+
footnote: I?.footnote,
|
|
1427
|
+
source: I?.source
|
|
1422
1428
|
}, classNames: {
|
|
1423
|
-
footnote:
|
|
1424
|
-
source:
|
|
1425
|
-
} }) : null, t[
|
|
1426
|
-
let
|
|
1427
|
-
return t[
|
|
1428
|
-
le,
|
|
1429
|
-
se,
|
|
1430
|
-
ce,
|
|
1429
|
+
footnote: C?.footnote,
|
|
1430
|
+
source: C?.source
|
|
1431
|
+
} }) : null, t[108] = C?.footnote, t[109] = C?.source, t[110] = kt, t[111] = jt, t[112] = I?.footnote, t[113] = I?.source, t[114] = st, t[115] = Ie) : Ie = t[115];
|
|
1432
|
+
let Ee;
|
|
1433
|
+
return t[116] !== Gt || t[117] !== P || t[118] !== u || t[119] !== gt || t[120] !== it || t[121] !== ft || t[122] !== Ct || t[123] !== K || t[124] !== me || t[125] !== he || t[126] !== ae || t[127] !== oe || t[128] !== ue || t[129] !== ne || t[130] !== Ie || t[131] !== R || t[132] !== st ? (Ee = /* @__PURE__ */ i.jsxs(ri, { className: me, style: he, id: u, ref: Ce, "aria-label": Gt, backgroundColor: P, theme: R, language: it, minHeight: ft, width: st, height: gt, relativeHeight: K, padding: Ct, children: [
|
|
1431
1434
|
ae,
|
|
1432
|
-
|
|
1433
|
-
|
|
1435
|
+
oe,
|
|
1436
|
+
ue,
|
|
1437
|
+
ne,
|
|
1438
|
+
Ie
|
|
1439
|
+
] }), t[116] = Gt, t[117] = P, t[118] = u, t[119] = gt, t[120] = it, t[121] = ft, t[122] = Ct, t[123] = K, t[124] = me, t[125] = he, t[126] = ae, t[127] = oe, t[128] = ue, t[129] = ne, t[130] = Ie, t[131] = R, t[132] = st, t[133] = Ee) : Ee = t[133], Ee;
|
|
1434
1440
|
}
|
|
1435
|
-
function
|
|
1441
|
+
function $s(e) {
|
|
1436
1442
|
return e.size;
|
|
1437
1443
|
}
|
|
1438
|
-
function
|
|
1439
|
-
return !
|
|
1444
|
+
function Os(e) {
|
|
1445
|
+
return !se(e.size);
|
|
1440
1446
|
}
|
|
1441
|
-
function
|
|
1447
|
+
function Ms(e) {
|
|
1442
1448
|
return e.size;
|
|
1443
1449
|
}
|
|
1444
|
-
function
|
|
1445
|
-
return !
|
|
1450
|
+
function ks(e) {
|
|
1451
|
+
return !se(e.size);
|
|
1446
1452
|
}
|
|
1447
|
-
function
|
|
1453
|
+
function Cs(e) {
|
|
1448
1454
|
return e.size;
|
|
1449
1455
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return !
|
|
1456
|
+
function Ls(e) {
|
|
1457
|
+
return !se(e.size);
|
|
1452
1458
|
}
|
|
1453
|
-
function
|
|
1459
|
+
function Vs(e) {
|
|
1454
1460
|
return e.size;
|
|
1455
1461
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return !
|
|
1462
|
+
function zs(e) {
|
|
1463
|
+
return !se(e.size);
|
|
1458
1464
|
}
|
|
1459
|
-
function
|
|
1465
|
+
function Ds(e) {
|
|
1460
1466
|
return e.color;
|
|
1461
1467
|
}
|
|
1462
|
-
function
|
|
1468
|
+
function Is(e) {
|
|
1463
1469
|
return e.color;
|
|
1464
1470
|
}
|
|
1465
|
-
function
|
|
1471
|
+
function Ns(e) {
|
|
1466
1472
|
return e.color;
|
|
1467
1473
|
}
|
|
1468
|
-
function
|
|
1474
|
+
function js(e) {
|
|
1469
1475
|
return e !== void 0;
|
|
1470
1476
|
}
|
|
1471
|
-
function
|
|
1477
|
+
function Ts(e) {
|
|
1472
1478
|
return e !== void 0;
|
|
1473
1479
|
}
|
|
1474
|
-
function
|
|
1480
|
+
function Ss(e) {
|
|
1475
1481
|
return e.data;
|
|
1476
1482
|
}
|
|
1477
|
-
function
|
|
1483
|
+
function Bs(e) {
|
|
1478
1484
|
return e !== void 0;
|
|
1479
1485
|
}
|
|
1480
|
-
function
|
|
1486
|
+
function Fs(e) {
|
|
1481
1487
|
return e.data;
|
|
1482
1488
|
}
|
|
1483
|
-
function
|
|
1489
|
+
function Ps(e, t) {
|
|
1484
1490
|
return e - t;
|
|
1485
1491
|
}
|
|
1486
|
-
function
|
|
1492
|
+
function Hs(e) {
|
|
1487
1493
|
return e.date;
|
|
1488
1494
|
}
|
|
1489
|
-
function
|
|
1490
|
-
const t =
|
|
1491
|
-
data:
|
|
1492
|
-
barColors:
|
|
1493
|
-
barPadding:
|
|
1494
|
-
showTicks:
|
|
1495
|
-
topMargin:
|
|
1496
|
-
bottomMargin:
|
|
1497
|
-
leftMargin:
|
|
1498
|
-
rightMargin:
|
|
1499
|
-
truncateBy:
|
|
1495
|
+
function Ws(e) {
|
|
1496
|
+
const t = Me.c(132), {
|
|
1497
|
+
data: l,
|
|
1498
|
+
barColors: X,
|
|
1499
|
+
barPadding: Rt,
|
|
1500
|
+
showTicks: Ut,
|
|
1501
|
+
topMargin: jt,
|
|
1502
|
+
bottomMargin: Mt,
|
|
1503
|
+
leftMargin: St,
|
|
1504
|
+
rightMargin: H,
|
|
1505
|
+
truncateBy: U,
|
|
1500
1506
|
width: O,
|
|
1501
|
-
height:
|
|
1502
|
-
tooltip:
|
|
1503
|
-
onSeriesMouseOver:
|
|
1504
|
-
showLabels:
|
|
1505
|
-
suffix:
|
|
1506
|
-
prefix:
|
|
1507
|
-
showValues:
|
|
1508
|
-
refValues:
|
|
1509
|
-
maxValue:
|
|
1510
|
-
onSeriesMouseClick:
|
|
1511
|
-
selectedColor:
|
|
1512
|
-
rtl:
|
|
1513
|
-
labelOrder:
|
|
1514
|
-
maxBarThickness:
|
|
1515
|
-
minBarThickness:
|
|
1516
|
-
resetSelectionOnDoubleClick:
|
|
1517
|
-
detailsOnClick:
|
|
1518
|
-
barAxisTitle:
|
|
1519
|
-
valueColor:
|
|
1507
|
+
height: G,
|
|
1508
|
+
tooltip: gt,
|
|
1509
|
+
onSeriesMouseOver: st,
|
|
1510
|
+
showLabels: kt,
|
|
1511
|
+
suffix: Y,
|
|
1512
|
+
prefix: nt,
|
|
1513
|
+
showValues: Tt,
|
|
1514
|
+
refValues: Ct,
|
|
1515
|
+
maxValue: Yt,
|
|
1516
|
+
onSeriesMouseClick: M,
|
|
1517
|
+
selectedColor: J,
|
|
1518
|
+
rtl: S,
|
|
1519
|
+
labelOrder: z,
|
|
1520
|
+
maxBarThickness: ut,
|
|
1521
|
+
minBarThickness: K,
|
|
1522
|
+
resetSelectionOnDoubleClick: yt,
|
|
1523
|
+
detailsOnClick: B,
|
|
1524
|
+
barAxisTitle: Q,
|
|
1525
|
+
valueColor: lt,
|
|
1520
1526
|
noOfTicks: u,
|
|
1521
|
-
styles:
|
|
1527
|
+
styles: s,
|
|
1522
1528
|
classNames: a,
|
|
1523
1529
|
animate: f,
|
|
1524
1530
|
colorDomain: x,
|
|
1525
|
-
precision:
|
|
1526
|
-
customLayers:
|
|
1527
|
-
naLabel:
|
|
1528
|
-
hideAxisLine:
|
|
1529
|
-
locale:
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1531
|
+
precision: y,
|
|
1532
|
+
customLayers: m,
|
|
1533
|
+
naLabel: rt,
|
|
1534
|
+
hideAxisLine: F,
|
|
1535
|
+
locale: L,
|
|
1536
|
+
padZeros: T
|
|
1537
|
+
} = e, Et = jt === void 0 ? 25 : jt, Bt = Mt === void 0 ? 10 : Mt, xt = St === void 0 ? 100 : St, Ft = H === void 0 ? 40 : H, Gt = Oe(null);
|
|
1538
|
+
let D;
|
|
1539
|
+
t[0] !== f.amount || t[1] !== f.once ? (D = {
|
|
1533
1540
|
once: f.once,
|
|
1534
1541
|
amount: f.amount
|
|
1535
|
-
}, t[0] = f.amount, t[1] = f.once, t[2] =
|
|
1536
|
-
const
|
|
1542
|
+
}, t[0] = f.amount, t[1] = f.once, t[2] = D) : D = t[2];
|
|
1543
|
+
const V = He(Gt, D), Z = Q ? Et + 25 : Et;
|
|
1537
1544
|
let p;
|
|
1538
|
-
t[3] !==
|
|
1539
|
-
top:
|
|
1540
|
-
bottom:
|
|
1541
|
-
left:
|
|
1542
|
-
right:
|
|
1543
|
-
}, t[3] =
|
|
1544
|
-
const
|
|
1545
|
-
let
|
|
1546
|
-
if (t[8] !==
|
|
1547
|
-
const v = /* @__PURE__ */ new Set(),
|
|
1548
|
-
const
|
|
1549
|
-
return v.add(
|
|
1550
|
-
...
|
|
1551
|
-
id:
|
|
1545
|
+
t[3] !== Bt || t[4] !== xt || t[5] !== Ft || t[6] !== Z ? (p = {
|
|
1546
|
+
top: Z,
|
|
1547
|
+
bottom: Bt,
|
|
1548
|
+
left: xt,
|
|
1549
|
+
right: Ft
|
|
1550
|
+
}, t[3] = Bt, t[4] = xt, t[5] = Ft, t[6] = Z, t[7] = p) : p = t[7];
|
|
1551
|
+
const b = p, [I, C] = _t(void 0), [N, mt] = _t(void 0), [Pt, Lt] = _t(void 0), [Ht, ct] = _t(void 0), Xt = O - b.left - b.right, W = G - b.top - b.bottom;
|
|
1552
|
+
let _;
|
|
1553
|
+
if (t[8] !== l || t[9] !== z) {
|
|
1554
|
+
const v = /* @__PURE__ */ new Set(), It = l.map((g, q) => {
|
|
1555
|
+
const Zt = z ? `${g.label}` : `${q}`;
|
|
1556
|
+
return v.add(Zt), {
|
|
1557
|
+
...g,
|
|
1558
|
+
id: Zt
|
|
1552
1559
|
};
|
|
1553
|
-
}),
|
|
1554
|
-
let
|
|
1555
|
-
t[11] !==
|
|
1556
|
-
id:
|
|
1557
|
-
label:
|
|
1558
|
-
size: Array(
|
|
1559
|
-
}), t[11] =
|
|
1560
|
+
}), Ot = z ? z.filter((g) => !v.has(g)) : [];
|
|
1561
|
+
let c;
|
|
1562
|
+
t[11] !== l[0] ? (c = (g) => ({
|
|
1563
|
+
id: g,
|
|
1564
|
+
label: g,
|
|
1565
|
+
size: Array(l[0].size.length).fill(null)
|
|
1566
|
+
}), t[11] = l[0], t[12] = c) : c = t[12], _ = [...It, ...Ot.map(c)], t[8] = l, t[9] = z, t[10] = _;
|
|
1560
1567
|
} else
|
|
1561
|
-
|
|
1562
|
-
const
|
|
1563
|
-
let
|
|
1564
|
-
t[13] !==
|
|
1565
|
-
const
|
|
1566
|
-
let
|
|
1567
|
-
if (t[16] !== f || t[17] !==
|
|
1568
|
-
const v =
|
|
1569
|
-
|
|
1570
|
-
gridLines:
|
|
1571
|
-
labels:
|
|
1568
|
+
_ = t[10];
|
|
1569
|
+
const k = _;
|
|
1570
|
+
let tt;
|
|
1571
|
+
t[13] !== k || t[14] !== z ? (tt = z ?? k.map(Js), t[13] = k, t[14] = z, t[15] = tt) : tt = t[15];
|
|
1572
|
+
const at = tt;
|
|
1573
|
+
let bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt, ft;
|
|
1574
|
+
if (t[16] !== f || t[17] !== Q || t[18] !== X || t[19] !== at || t[20] !== Rt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== m || t[29] !== k || t[30] !== B || t[31] !== W || t[32] !== Xt || t[33] !== G || t[34] !== F || t[35] !== V || t[36] !== L || t[37] !== b.bottom || t[38] !== b.left || t[39] !== b.top || t[40] !== ut || t[41] !== Yt || t[42] !== K || t[43] !== N || t[44] !== rt || t[45] !== u || t[46] !== M || t[47] !== st || t[48] !== T || t[49] !== y || t[50] !== nt || t[51] !== Ct || t[52] !== yt || t[53] !== S || t[54] !== J || t[55] !== kt || t[56] !== Ut || t[57] !== Tt || t[58] !== s?.graphObjectValues || t[59] !== s?.xAxis?.gridLines || t[60] !== s?.xAxis?.labels || t[61] !== s?.xAxis?.title || t[62] !== s?.yAxis?.axis || t[63] !== s?.yAxis?.labels || t[64] !== Y || t[65] !== Et || t[66] !== U || t[67] !== lt || t[68] !== O) {
|
|
1575
|
+
const v = We().domain([0, Yt]).range([0, Xt]).nice(), It = ze().domain(at).range([0, K ? Math.max(W, K * at.length) : ut ? Math.min(W, ut * at.length) : W]).paddingInner(Rt), Ot = v.ticks(u);
|
|
1576
|
+
vt = ee.svg, zt = Gt, ht = `${O}px`, ot = `${G}px`, it = `0 0 ${O} ${G}`, wt = "ltr", Vt = `translate(${b.left},${b.top})`, et = Ut ? /* @__PURE__ */ i.jsx(Je, { values: Ot.filter(Us), x: Ot.filter(qs).map((w) => v(w)), y1: 0 - Et, y2: W + b.bottom, styles: {
|
|
1577
|
+
gridLines: s?.xAxis?.gridLines,
|
|
1578
|
+
labels: s?.xAxis?.labels
|
|
1572
1579
|
}, classNames: {
|
|
1573
1580
|
gridLines: a?.xAxis?.gridLines,
|
|
1574
1581
|
labels: a?.xAxis?.labels
|
|
1575
|
-
}, suffix:
|
|
1576
|
-
const
|
|
1577
|
-
t[
|
|
1582
|
+
}, suffix: Y, prefix: nt, labelType: "secondary", showGridLines: !0, precision: y, locale: L, padZeros: T }) : null;
|
|
1583
|
+
const c = Xt / 2, g = 0 - b.top + 15, q = s?.xAxis?.title, Zt = a?.xAxis?.title;
|
|
1584
|
+
t[83] !== Q || t[84] !== c || t[85] !== g || t[86] !== q || t[87] !== Zt ? (P = /* @__PURE__ */ i.jsx(Fe, { x: c, y: g, style: q, className: Zt, text: Q }), t[83] = Q, t[84] = c, t[85] = g, t[86] = q, t[87] = Zt, t[88] = P) : P = t[88], t[89] !== m ? (j = m.filter(Rs).map(Zs), t[89] = m, t[90] = j) : j = t[90], bt = Xe, ft = k.map((w) => se(It(w.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1578
1585
|
initial: {
|
|
1579
1586
|
x: 0,
|
|
1580
|
-
y:
|
|
1587
|
+
y: It(`${w.id}`)
|
|
1581
1588
|
},
|
|
1582
1589
|
whileInView: {
|
|
1583
1590
|
x: 0,
|
|
1584
|
-
y:
|
|
1591
|
+
y: It(`${w.id}`),
|
|
1585
1592
|
transition: {
|
|
1586
1593
|
duration: f.duration
|
|
1587
1594
|
}
|
|
1588
1595
|
}
|
|
1589
|
-
}, initial: "initial", animate:
|
|
1596
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
|
|
1590
1597
|
opacity: 0,
|
|
1591
1598
|
transition: {
|
|
1592
1599
|
duration: f.duration
|
|
1593
1600
|
}
|
|
1594
1601
|
}, children: [
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
...
|
|
1602
|
+
w.size.map((h, d) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? X[d] === J ? 1 : 0.3 : 1, onMouseEnter: (A) => {
|
|
1603
|
+
C({
|
|
1604
|
+
...w,
|
|
1598
1605
|
sizeIndex: d
|
|
1599
|
-
}),
|
|
1600
|
-
...
|
|
1606
|
+
}), ct(A.clientY), Lt(A.clientX), st?.({
|
|
1607
|
+
...w,
|
|
1601
1608
|
sizeIndex: d
|
|
1602
1609
|
});
|
|
1603
|
-
}, onMouseMove: (
|
|
1604
|
-
|
|
1605
|
-
...
|
|
1610
|
+
}, onMouseMove: (A) => {
|
|
1611
|
+
C({
|
|
1612
|
+
...w,
|
|
1606
1613
|
sizeIndex: d
|
|
1607
|
-
}),
|
|
1614
|
+
}), ct(A.clientY), Lt(A.clientX);
|
|
1608
1615
|
}, onMouseLeave: () => {
|
|
1609
|
-
|
|
1616
|
+
C(void 0), Lt(void 0), ct(void 0), st?.(void 0);
|
|
1610
1617
|
}, onClick: () => {
|
|
1611
|
-
(
|
|
1612
|
-
...
|
|
1618
|
+
(M || B) && (Te(N, {
|
|
1619
|
+
...w,
|
|
1613
1620
|
sizeIndex: d
|
|
1614
|
-
}) &&
|
|
1615
|
-
...
|
|
1621
|
+
}) && yt ? (mt(void 0), M?.(void 0)) : (mt({
|
|
1622
|
+
...w,
|
|
1616
1623
|
sizeIndex: d
|
|
1617
|
-
}),
|
|
1618
|
-
...
|
|
1624
|
+
}), M && M({
|
|
1625
|
+
...w,
|
|
1619
1626
|
sizeIndex: d
|
|
1620
1627
|
})));
|
|
1621
1628
|
}, children: [
|
|
1622
|
-
|
|
1623
|
-
fill:
|
|
1624
|
-
}, height:
|
|
1629
|
+
h ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
|
|
1630
|
+
fill: X[d]
|
|
1631
|
+
}, height: It.bandwidth(), exit: {
|
|
1625
1632
|
width: 0,
|
|
1626
1633
|
x: v(0),
|
|
1627
1634
|
transition: {
|
|
@@ -1631,21 +1638,21 @@ function Pl(e) {
|
|
|
1631
1638
|
initial: {
|
|
1632
1639
|
width: 0,
|
|
1633
1640
|
x: v(0),
|
|
1634
|
-
fill:
|
|
1641
|
+
fill: X[d]
|
|
1635
1642
|
},
|
|
1636
1643
|
whileInView: {
|
|
1637
|
-
width: v(
|
|
1638
|
-
x: v(d === 0 ? 0 :
|
|
1639
|
-
fill:
|
|
1644
|
+
width: v(h || 0),
|
|
1645
|
+
x: v(d === 0 ? 0 : fe(w.size.filter((A, o) => o < d && A))),
|
|
1646
|
+
fill: X[d],
|
|
1640
1647
|
transition: {
|
|
1641
1648
|
duration: f.duration
|
|
1642
1649
|
}
|
|
1643
1650
|
}
|
|
1644
|
-
}, initial: "initial", animate:
|
|
1645
|
-
|
|
1651
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial" }, d) : null,
|
|
1652
|
+
Tt ? /* @__PURE__ */ i.jsx(ee.text, { y: It.bandwidth() / 2, style: {
|
|
1646
1653
|
textAnchor: "middle",
|
|
1647
|
-
...
|
|
1648
|
-
}, dy: "0.33em", className:
|
|
1654
|
+
...s?.graphObjectValues || {}
|
|
1655
|
+
}, dy: "0.33em", className: Ve("graph-value text-sm", a?.graphObjectValues), exit: {
|
|
1649
1656
|
opacity: 0,
|
|
1650
1657
|
transition: {
|
|
1651
1658
|
duration: f.duration
|
|
@@ -1654,38 +1661,38 @@ function Pl(e) {
|
|
|
1654
1661
|
initial: {
|
|
1655
1662
|
x: v(0),
|
|
1656
1663
|
opacity: 0,
|
|
1657
|
-
fill:
|
|
1664
|
+
fill: Ge(X[d])
|
|
1658
1665
|
},
|
|
1659
1666
|
whileInView: {
|
|
1660
|
-
x: v(d === 0 ? 0 :
|
|
1661
|
-
opacity:
|
|
1662
|
-
fill:
|
|
1667
|
+
x: v(d === 0 ? 0 : fe(w.size.filter((A, o) => o < d && A))) + v(h || 0) / 2,
|
|
1668
|
+
opacity: h && v(h) / $e(h, rt, y, nt, Y, L, T).length > 12 ? 1 : 0,
|
|
1669
|
+
fill: Ge(X[d]),
|
|
1663
1670
|
transition: {
|
|
1664
1671
|
duration: f.duration
|
|
1665
1672
|
}
|
|
1666
1673
|
}
|
|
1667
|
-
}, initial: "initial", animate:
|
|
1668
|
-
] }, `${
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
...
|
|
1672
|
-
fill:
|
|
1674
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", children: $e(h, rt, y, nt, Y, L, T) }) : null
|
|
1675
|
+
] }, `${w.label}-${x[d] || d}`)),
|
|
1676
|
+
kt ? /* @__PURE__ */ i.jsx(Ue, { value: `${w.label}`.length < U ? `${w.label}` : `${`${w.label}`.substring(0, U)}...`, y: 0, x: 0 - b.left, width: 0 + b.left, height: It.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: V }) : null,
|
|
1677
|
+
Tt ? /* @__PURE__ */ i.jsx(ee.text, { className: Ve("graph-value graph-value-total text-sm", lt ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
|
|
1678
|
+
...lt ? {
|
|
1679
|
+
fill: lt
|
|
1673
1680
|
} : {},
|
|
1674
1681
|
textAnchor: "start",
|
|
1675
|
-
...
|
|
1676
|
-
}, y:
|
|
1682
|
+
...s?.graphObjectValues || {}
|
|
1683
|
+
}, y: It.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
|
|
1677
1684
|
initial: {
|
|
1678
1685
|
x: v(0),
|
|
1679
1686
|
opacity: 0,
|
|
1680
|
-
...
|
|
1681
|
-
fill:
|
|
1687
|
+
...lt ? {
|
|
1688
|
+
fill: lt
|
|
1682
1689
|
} : {}
|
|
1683
1690
|
},
|
|
1684
1691
|
whileInView: {
|
|
1685
|
-
x: v(
|
|
1692
|
+
x: v(fe(w.size.map(Gs))),
|
|
1686
1693
|
opacity: 1,
|
|
1687
|
-
...
|
|
1688
|
-
fill:
|
|
1694
|
+
...lt ? {
|
|
1695
|
+
fill: lt
|
|
1689
1696
|
} : {},
|
|
1690
1697
|
transition: {
|
|
1691
1698
|
duration: f.duration
|
|
@@ -1696,183 +1703,184 @@ function Pl(e) {
|
|
|
1696
1703
|
transition: {
|
|
1697
1704
|
duration: f.duration
|
|
1698
1705
|
}
|
|
1699
|
-
}, initial: "initial", animate:
|
|
1700
|
-
] },
|
|
1701
|
-
const
|
|
1702
|
-
let
|
|
1703
|
-
t[
|
|
1704
|
-
axis:
|
|
1705
|
-
}, t[
|
|
1706
|
-
const
|
|
1707
|
-
let
|
|
1708
|
-
t[
|
|
1709
|
-
axis:
|
|
1710
|
-
}, t[
|
|
1706
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", children: $e(fe(w.size.filter(Es)), rt, y, nt, Y, L, T) }) : null
|
|
1707
|
+
] }, w.label));
|
|
1708
|
+
const Qt = a?.yAxis?.axis;
|
|
1709
|
+
let qt;
|
|
1710
|
+
t[91] !== Qt ? (qt = {
|
|
1711
|
+
axis: Qt
|
|
1712
|
+
}, t[91] = Qt, t[92] = qt) : qt = t[92];
|
|
1713
|
+
const Jt = s?.yAxis?.axis;
|
|
1714
|
+
let te;
|
|
1715
|
+
t[93] !== Jt ? (te = {
|
|
1716
|
+
axis: Jt
|
|
1717
|
+
}, t[93] = Jt, t[94] = te) : te = t[94], At = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: F, x1: v(0), x2: v(0), y1: -2.5, y2: W + b.bottom, classNames: qt, styles: te }), dt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((w, h) => /* @__PURE__ */ i.jsx(Ke, { text: w.text, color: w.color, x: v(w.value), y1: 0 - b.top, y2: W + b.bottom, textSide: v(w.value) > Xt * 0.75 || S ? "left" : "right", classNames: w.classNames, styles: w.styles, animate: f, isInView: V }, h)) }) : null, t[16] = f, t[17] = Q, t[18] = X, t[19] = at, t[20] = Rt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = m, t[29] = k, t[30] = B, t[31] = W, t[32] = Xt, t[33] = G, t[34] = F, t[35] = V, t[36] = L, t[37] = b.bottom, t[38] = b.left, t[39] = b.top, t[40] = ut, t[41] = Yt, t[42] = K, t[43] = N, t[44] = rt, t[45] = u, t[46] = M, t[47] = st, t[48] = T, t[49] = y, t[50] = nt, t[51] = Ct, t[52] = yt, t[53] = S, t[54] = J, t[55] = kt, t[56] = Ut, t[57] = Tt, t[58] = s?.graphObjectValues, t[59] = s?.xAxis?.gridLines, t[60] = s?.xAxis?.labels, t[61] = s?.xAxis?.title, t[62] = s?.yAxis?.axis, t[63] = s?.yAxis?.labels, t[64] = Y, t[65] = Et, t[66] = U, t[67] = lt, t[68] = O, t[69] = bt, t[70] = vt, t[71] = At, t[72] = dt, t[73] = Vt, t[74] = et, t[75] = P, t[76] = j, t[77] = zt, t[78] = ht, t[79] = ot, t[80] = it, t[81] = wt, t[82] = ft;
|
|
1711
1718
|
} else
|
|
1712
|
-
|
|
1713
|
-
let
|
|
1714
|
-
t[
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
] }), t[
|
|
1719
|
-
let
|
|
1720
|
-
t[
|
|
1721
|
-
let
|
|
1722
|
-
t[
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
] }), t[
|
|
1729
|
-
let
|
|
1730
|
-
t[
|
|
1731
|
-
let
|
|
1732
|
-
t[
|
|
1719
|
+
bt = t[69], vt = t[70], At = t[71], dt = t[72], Vt = t[73], et = t[74], P = t[75], j = t[76], zt = t[77], ht = t[78], ot = t[79], it = t[80], wt = t[81], ft = t[82];
|
|
1720
|
+
let R;
|
|
1721
|
+
t[95] !== bt || t[96] !== At || t[97] !== dt || t[98] !== ft ? (R = /* @__PURE__ */ i.jsxs(bt, { children: [
|
|
1722
|
+
ft,
|
|
1723
|
+
At,
|
|
1724
|
+
dt
|
|
1725
|
+
] }), t[95] = bt, t[96] = At, t[97] = dt, t[98] = ft, t[99] = R) : R = t[99];
|
|
1726
|
+
let $t;
|
|
1727
|
+
t[100] !== m ? ($t = m.filter(Ys).map(Xs), t[100] = m, t[101] = $t) : $t = t[101];
|
|
1728
|
+
let Dt;
|
|
1729
|
+
t[102] !== Vt || t[103] !== et || t[104] !== P || t[105] !== j || t[106] !== R || t[107] !== $t ? (Dt = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
|
|
1730
|
+
et,
|
|
1731
|
+
P,
|
|
1732
|
+
j,
|
|
1733
|
+
R,
|
|
1734
|
+
$t
|
|
1735
|
+
] }), t[102] = Vt, t[103] = et, t[104] = P, t[105] = j, t[106] = R, t[107] = $t, t[108] = Dt) : Dt = t[108];
|
|
1736
|
+
let pt;
|
|
1737
|
+
t[109] !== vt || t[110] !== zt || t[111] !== ht || t[112] !== ot || t[113] !== it || t[114] !== wt || t[115] !== Dt ? (pt = /* @__PURE__ */ i.jsx(vt, { ref: zt, width: ht, height: ot, viewBox: it, direction: wt, children: Dt }), t[109] = vt, t[110] = zt, t[111] = ht, t[112] = ot, t[113] = it, t[114] = wt, t[115] = Dt, t[116] = pt) : pt = t[116];
|
|
1738
|
+
let $;
|
|
1739
|
+
t[117] !== a?.tooltip || t[118] !== Pt || t[119] !== Ht || t[120] !== I || t[121] !== s?.tooltip || t[122] !== gt ? ($ = I && gt && Pt && Ht ? /* @__PURE__ */ i.jsx(Se, { data: I, body: gt, xPos: Pt, yPos: Ht, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[117] = a?.tooltip, t[118] = Pt, t[119] = Ht, t[120] = I, t[121] = s?.tooltip, t[122] = gt, t[123] = $) : $ = t[123];
|
|
1733
1740
|
let Wt;
|
|
1734
|
-
t[
|
|
1735
|
-
let
|
|
1736
|
-
return t[
|
|
1737
|
-
|
|
1738
|
-
|
|
1741
|
+
t[124] !== a?.modal || t[125] !== B || t[126] !== N ? (Wt = B && N !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: B, data: N, setData: mt, className: a?.modal }) : null, t[124] = a?.modal, t[125] = B, t[126] = N, t[127] = Wt) : Wt = t[127];
|
|
1742
|
+
let r;
|
|
1743
|
+
return t[128] !== pt || t[129] !== $ || t[130] !== Wt ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1744
|
+
pt,
|
|
1745
|
+
$,
|
|
1739
1746
|
Wt
|
|
1740
|
-
] }), t[
|
|
1747
|
+
] }), t[128] = pt, t[129] = $, t[130] = Wt, t[131] = r) : r = t[131], r;
|
|
1741
1748
|
}
|
|
1742
|
-
function
|
|
1749
|
+
function Xs(e) {
|
|
1743
1750
|
return e.layer;
|
|
1744
1751
|
}
|
|
1745
|
-
function
|
|
1752
|
+
function Ys(e) {
|
|
1746
1753
|
return e.position === "after";
|
|
1747
1754
|
}
|
|
1748
|
-
function
|
|
1755
|
+
function Es(e) {
|
|
1749
1756
|
return e;
|
|
1750
1757
|
}
|
|
1751
|
-
function
|
|
1758
|
+
function Gs(e) {
|
|
1752
1759
|
return e || 0;
|
|
1753
1760
|
}
|
|
1754
|
-
function
|
|
1761
|
+
function Zs(e) {
|
|
1755
1762
|
return e.layer;
|
|
1756
1763
|
}
|
|
1757
|
-
function
|
|
1764
|
+
function Rs(e) {
|
|
1758
1765
|
return e.position === "before";
|
|
1759
1766
|
}
|
|
1760
|
-
function
|
|
1767
|
+
function qs(e) {
|
|
1761
1768
|
return e !== 0;
|
|
1762
1769
|
}
|
|
1763
|
-
function
|
|
1770
|
+
function Us(e) {
|
|
1764
1771
|
return e !== 0;
|
|
1765
1772
|
}
|
|
1766
|
-
function
|
|
1773
|
+
function Js(e) {
|
|
1767
1774
|
return `${e.id}`;
|
|
1768
1775
|
}
|
|
1769
|
-
function
|
|
1770
|
-
const t =
|
|
1771
|
-
data:
|
|
1772
|
-
leftMargin:
|
|
1773
|
-
rightMargin:
|
|
1774
|
-
topMargin:
|
|
1775
|
-
bottomMargin:
|
|
1776
|
-
width:
|
|
1777
|
-
height:
|
|
1778
|
-
barColors:
|
|
1779
|
-
barPadding:
|
|
1776
|
+
function Ks(e) {
|
|
1777
|
+
const t = Me.c(142), {
|
|
1778
|
+
data: l,
|
|
1779
|
+
leftMargin: X,
|
|
1780
|
+
rightMargin: Rt,
|
|
1781
|
+
topMargin: Ut,
|
|
1782
|
+
bottomMargin: jt,
|
|
1783
|
+
width: Mt,
|
|
1784
|
+
height: St,
|
|
1785
|
+
barColors: H,
|
|
1786
|
+
barPadding: U,
|
|
1780
1787
|
showLabels: O,
|
|
1781
|
-
showTicks:
|
|
1782
|
-
truncateBy:
|
|
1783
|
-
tooltip:
|
|
1784
|
-
onSeriesMouseOver:
|
|
1785
|
-
suffix:
|
|
1786
|
-
prefix:
|
|
1787
|
-
showValues:
|
|
1788
|
-
refValues:
|
|
1789
|
-
maxValue:
|
|
1790
|
-
onSeriesMouseClick:
|
|
1791
|
-
selectedColor:
|
|
1792
|
-
labelOrder:
|
|
1793
|
-
maxBarThickness:
|
|
1794
|
-
minBarThickness:
|
|
1795
|
-
resetSelectionOnDoubleClick:
|
|
1796
|
-
detailsOnClick:
|
|
1797
|
-
barAxisTitle:
|
|
1798
|
-
valueColor:
|
|
1799
|
-
noOfTicks:
|
|
1788
|
+
showTicks: G,
|
|
1789
|
+
truncateBy: gt,
|
|
1790
|
+
tooltip: st,
|
|
1791
|
+
onSeriesMouseOver: kt,
|
|
1792
|
+
suffix: Y,
|
|
1793
|
+
prefix: nt,
|
|
1794
|
+
showValues: Tt,
|
|
1795
|
+
refValues: Ct,
|
|
1796
|
+
maxValue: Yt,
|
|
1797
|
+
onSeriesMouseClick: M,
|
|
1798
|
+
selectedColor: J,
|
|
1799
|
+
labelOrder: S,
|
|
1800
|
+
maxBarThickness: z,
|
|
1801
|
+
minBarThickness: ut,
|
|
1802
|
+
resetSelectionOnDoubleClick: K,
|
|
1803
|
+
detailsOnClick: yt,
|
|
1804
|
+
barAxisTitle: B,
|
|
1805
|
+
valueColor: Q,
|
|
1806
|
+
noOfTicks: lt,
|
|
1800
1807
|
styles: u,
|
|
1801
|
-
classNames:
|
|
1808
|
+
classNames: s,
|
|
1802
1809
|
animate: a,
|
|
1803
1810
|
colorDomain: f,
|
|
1804
1811
|
precision: x,
|
|
1805
|
-
customLayers:
|
|
1806
|
-
naLabel:
|
|
1807
|
-
hideAxisLine:
|
|
1808
|
-
locale:
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
+
customLayers: y,
|
|
1813
|
+
naLabel: m,
|
|
1814
|
+
hideAxisLine: rt,
|
|
1815
|
+
locale: F,
|
|
1816
|
+
padZeros: L
|
|
1817
|
+
} = e, T = X === void 0 ? 20 : X, Et = Rt === void 0 ? 20 : Rt, Bt = Ut === void 0 ? 20 : Ut, xt = jt === void 0 ? 25 : jt, Ft = Oe(null);
|
|
1818
|
+
let Gt;
|
|
1819
|
+
t[0] !== a.amount || t[1] !== a.once ? (Gt = {
|
|
1812
1820
|
once: a.once,
|
|
1813
1821
|
amount: a.amount
|
|
1814
|
-
}, t[0] = a.amount, t[1] = a.once, t[2] =
|
|
1815
|
-
const
|
|
1816
|
-
let
|
|
1817
|
-
t[3] !==
|
|
1818
|
-
top:
|
|
1819
|
-
bottom:
|
|
1820
|
-
left:
|
|
1821
|
-
right:
|
|
1822
|
-
}, t[3] =
|
|
1823
|
-
const p =
|
|
1824
|
-
let
|
|
1825
|
-
if (t[8] !==
|
|
1826
|
-
const
|
|
1827
|
-
const
|
|
1828
|
-
return
|
|
1829
|
-
...
|
|
1830
|
-
id:
|
|
1822
|
+
}, t[0] = a.amount, t[1] = a.once, t[2] = Gt) : Gt = t[2];
|
|
1823
|
+
const D = He(Ft, Gt), V = B ? T + 30 : T;
|
|
1824
|
+
let Z;
|
|
1825
|
+
t[3] !== xt || t[4] !== Et || t[5] !== V || t[6] !== Bt ? (Z = {
|
|
1826
|
+
top: Bt,
|
|
1827
|
+
bottom: xt,
|
|
1828
|
+
left: V,
|
|
1829
|
+
right: Et
|
|
1830
|
+
}, t[3] = xt, t[4] = Et, t[5] = V, t[6] = Bt, t[7] = Z) : Z = t[7];
|
|
1831
|
+
const p = Z, [b, I] = _t(void 0), [C, N] = _t(void 0), [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), ct = Mt - p.left - p.right, Xt = St - p.top - p.bottom;
|
|
1832
|
+
let W;
|
|
1833
|
+
if (t[8] !== l || t[9] !== S) {
|
|
1834
|
+
const r = /* @__PURE__ */ new Set(), v = l.map((c, g) => {
|
|
1835
|
+
const q = S ? `${c.label}` : `${g}`;
|
|
1836
|
+
return r.add(q), {
|
|
1837
|
+
...c,
|
|
1838
|
+
id: q
|
|
1831
1839
|
};
|
|
1832
|
-
}),
|
|
1833
|
-
let
|
|
1834
|
-
t[11] !==
|
|
1835
|
-
id:
|
|
1836
|
-
label:
|
|
1837
|
-
size: Array(
|
|
1838
|
-
}), t[11] =
|
|
1840
|
+
}), It = S ? S.filter((c) => !r.has(c)) : [];
|
|
1841
|
+
let Ot;
|
|
1842
|
+
t[11] !== l[0] ? (Ot = (c) => ({
|
|
1843
|
+
id: c,
|
|
1844
|
+
label: c,
|
|
1845
|
+
size: Array(l[0].size.length).fill(null)
|
|
1846
|
+
}), t[11] = l[0], t[12] = Ot) : Ot = t[12], W = [...v, ...It.map(Ot)], t[8] = l, t[9] = S, t[10] = W;
|
|
1839
1847
|
} else
|
|
1840
|
-
|
|
1841
|
-
const
|
|
1842
|
-
let
|
|
1843
|
-
t[13] !==
|
|
1844
|
-
const
|
|
1845
|
-
let
|
|
1846
|
-
if (t[16] !== a || t[17] !==
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1849
|
-
let
|
|
1850
|
-
t[
|
|
1851
|
-
const
|
|
1852
|
-
let
|
|
1853
|
-
t[
|
|
1854
|
-
axis:
|
|
1855
|
-
label:
|
|
1856
|
-
}, t[
|
|
1857
|
-
const
|
|
1858
|
-
let
|
|
1859
|
-
t[
|
|
1860
|
-
axis:
|
|
1861
|
-
label:
|
|
1862
|
-
}, t[
|
|
1863
|
-
x: 0 -
|
|
1864
|
-
y:
|
|
1848
|
+
W = t[10];
|
|
1849
|
+
const _ = W;
|
|
1850
|
+
let k;
|
|
1851
|
+
t[13] !== _ || t[14] !== S ? (k = S ?? _.map(ol), t[13] = _, t[14] = S, t[15] = k) : k = t[15];
|
|
1852
|
+
const tt = k;
|
|
1853
|
+
let at, bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt;
|
|
1854
|
+
if (t[16] !== a || t[17] !== B || t[18] !== H || t[19] !== tt || t[20] !== U || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== f || t[28] !== y || t[29] !== _ || t[30] !== yt || t[31] !== Xt || t[32] !== ct || t[33] !== St || t[34] !== rt || t[35] !== D || t[36] !== T || t[37] !== F || t[38] !== p.bottom || t[39] !== p.left || t[40] !== p.right || t[41] !== p.top || t[42] !== z || t[43] !== Yt || t[44] !== ut || t[45] !== C || t[46] !== m || t[47] !== lt || t[48] !== M || t[49] !== kt || t[50] !== L || t[51] !== x || t[52] !== nt || t[53] !== Ct || t[54] !== K || t[55] !== J || t[56] !== O || t[57] !== G || t[58] !== Tt || t[59] !== u?.graphObjectValues || t[60] !== u?.xAxis?.axis || t[61] !== u?.xAxis?.labels || t[62] !== u?.yAxis?.gridLines || t[63] !== u?.yAxis?.labels || t[64] !== u?.yAxis?.title || t[65] !== Y || t[66] !== gt || t[67] !== Q || t[68] !== Mt) {
|
|
1855
|
+
const r = We().domain([0, Yt]).range([Xt, 0]).nice(), v = ze().domain(tt).range([0, ut ? Math.max(ct, ut * tt.length) : z ? Math.min(ct, z * tt.length) : ct]).paddingInner(U), It = r.ticks(lt);
|
|
1856
|
+
bt = ee.svg, j = `${Mt}px`, zt = `${St}px`, ht = `0 0 ${Mt} ${St}`, ot = "ltr", it = Ft, At = `translate(${p.left},${p.top})`;
|
|
1857
|
+
let Ot;
|
|
1858
|
+
t[83] !== F || t[84] !== m || t[85] !== L || t[86] !== x || t[87] !== nt || t[88] !== G || t[89] !== Y ? (Ot = G ? $e(0, m, x, nt, Y, F, L) : void 0, t[83] = F, t[84] = m, t[85] = L, t[86] = x, t[87] = nt, t[88] = G, t[89] = Y, t[90] = Ot) : Ot = t[90];
|
|
1859
|
+
const c = s?.xAxis?.axis, g = s?.yAxis?.labels;
|
|
1860
|
+
let q;
|
|
1861
|
+
t[91] !== c || t[92] !== g ? (q = {
|
|
1862
|
+
axis: c,
|
|
1863
|
+
label: g
|
|
1864
|
+
}, t[91] = c, t[92] = g, t[93] = q) : q = t[93];
|
|
1865
|
+
const Zt = u?.xAxis?.axis, Qt = u?.yAxis?.labels;
|
|
1866
|
+
let qt;
|
|
1867
|
+
t[94] !== Zt || t[95] !== Qt ? (qt = {
|
|
1868
|
+
axis: Zt,
|
|
1869
|
+
label: Qt
|
|
1870
|
+
}, t[94] = Zt, t[95] = Qt, t[96] = qt) : qt = t[96], dt = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: rt, y1: r(0), y2: r(0), x1: 0 - T, x2: ct + p.right, label: Ot, labelPos: {
|
|
1871
|
+
x: 0 - T,
|
|
1872
|
+
y: r(0),
|
|
1865
1873
|
dx: 0,
|
|
1866
1874
|
dy: -5
|
|
1867
|
-
}, classNames:
|
|
1875
|
+
}, classNames: q, styles: qt }), Vt = G ? /* @__PURE__ */ i.jsx(_e, { values: It.filter(al), y: It.filter(ll).map((d) => r(d)), x1: 0 - T, x2: ct + p.right, styles: {
|
|
1868
1876
|
gridLines: u?.yAxis?.gridLines,
|
|
1869
1877
|
labels: u?.yAxis?.labels
|
|
1870
1878
|
}, classNames: {
|
|
1871
|
-
gridLines:
|
|
1872
|
-
labels:
|
|
1873
|
-
}, suffix:
|
|
1874
|
-
const
|
|
1875
|
-
t[
|
|
1879
|
+
gridLines: s?.yAxis?.gridLines,
|
|
1880
|
+
labels: s?.yAxis?.labels
|
|
1881
|
+
}, suffix: Y, prefix: nt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: F, padZeros: L }) : null;
|
|
1882
|
+
const Jt = 0 - T - 15, te = Xt / 2, w = u?.yAxis?.title, h = s?.yAxis?.title;
|
|
1883
|
+
t[97] !== B || t[98] !== Jt || t[99] !== te || t[100] !== w || t[101] !== h ? (et = /* @__PURE__ */ i.jsx(Fe, { x: Jt, y: te, style: w, className: h, text: B, rotate90: !0 }), t[97] = B, t[98] = Jt, t[99] = te, t[100] = w, t[101] = h, t[102] = et) : et = t[102], t[103] !== y ? (P = y.filter(sl).map(il), t[103] = y, t[104] = P) : P = t[104], at = Xe, wt = _.map((d) => se(v(d.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1876
1884
|
initial: {
|
|
1877
1885
|
x: v(`${d.id}`),
|
|
1878
1886
|
y: 0
|
|
@@ -1886,101 +1894,101 @@ function Jl(e) {
|
|
|
1886
1894
|
}
|
|
1887
1895
|
}, transition: {
|
|
1888
1896
|
duration: a.duration
|
|
1889
|
-
}, initial: "initial", animate:
|
|
1897
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
1890
1898
|
opacity: 0,
|
|
1891
1899
|
transition: {
|
|
1892
1900
|
duration: a.duration
|
|
1893
1901
|
}
|
|
1894
1902
|
}, children: [
|
|
1895
|
-
d.size.map((
|
|
1896
|
-
|
|
1903
|
+
d.size.map((A, o) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? H[o] === J ? 1 : 0.3 : 1, onMouseEnter: (E) => {
|
|
1904
|
+
I({
|
|
1897
1905
|
...d,
|
|
1898
1906
|
sizeIndex: o
|
|
1899
|
-
}),
|
|
1907
|
+
}), Ht(E.clientY), Pt(E.clientX), kt?.({
|
|
1900
1908
|
...d,
|
|
1901
1909
|
sizeIndex: o
|
|
1902
1910
|
});
|
|
1903
|
-
}, onMouseMove: (
|
|
1904
|
-
|
|
1911
|
+
}, onMouseMove: (E) => {
|
|
1912
|
+
I({
|
|
1905
1913
|
...d,
|
|
1906
1914
|
sizeIndex: o
|
|
1907
|
-
}),
|
|
1915
|
+
}), Ht(E.clientY), Pt(E.clientX);
|
|
1908
1916
|
}, onMouseLeave: () => {
|
|
1909
|
-
|
|
1917
|
+
I(void 0), Pt(void 0), Ht(void 0), kt?.(void 0);
|
|
1910
1918
|
}, onClick: () => {
|
|
1911
|
-
(
|
|
1919
|
+
(M || yt) && (Te(C, {
|
|
1912
1920
|
...d,
|
|
1913
1921
|
sizeIndex: o
|
|
1914
|
-
}) &&
|
|
1922
|
+
}) && K ? (N(void 0), M?.(void 0)) : (N({
|
|
1915
1923
|
...d,
|
|
1916
1924
|
sizeIndex: o
|
|
1917
|
-
}),
|
|
1925
|
+
}), M && M({
|
|
1918
1926
|
...d,
|
|
1919
1927
|
sizeIndex: o
|
|
1920
1928
|
})));
|
|
1921
1929
|
}, children: [
|
|
1922
|
-
/* @__PURE__ */ i.jsx(
|
|
1930
|
+
/* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: v.bandwidth(), variants: {
|
|
1923
1931
|
initial: {
|
|
1924
1932
|
height: 0,
|
|
1925
|
-
fill:
|
|
1926
|
-
y:
|
|
1933
|
+
fill: H[o],
|
|
1934
|
+
y: r(0)
|
|
1927
1935
|
},
|
|
1928
1936
|
whileInView: {
|
|
1929
|
-
height: Math.abs(
|
|
1930
|
-
y:
|
|
1931
|
-
fill:
|
|
1937
|
+
height: Math.abs(r(fe(d.size.filter((E, n) => n <= o && E))) - r(fe(d.size.filter((E, n) => n < o && E)))),
|
|
1938
|
+
y: r(fe(d.size.filter((E, n) => n <= o && E))),
|
|
1939
|
+
fill: H[o],
|
|
1932
1940
|
transition: {
|
|
1933
1941
|
duration: a.duration
|
|
1934
1942
|
}
|
|
1935
1943
|
}
|
|
1936
|
-
}, initial: "initial", animate:
|
|
1944
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
1937
1945
|
height: 0,
|
|
1938
|
-
y:
|
|
1946
|
+
y: r(0),
|
|
1939
1947
|
transition: {
|
|
1940
1948
|
duration: a.duration
|
|
1941
1949
|
}
|
|
1942
1950
|
} }),
|
|
1943
|
-
|
|
1951
|
+
Tt ? /* @__PURE__ */ i.jsx(ee.text, { x: v.bandwidth() / 2, style: {
|
|
1944
1952
|
textAnchor: "middle",
|
|
1945
1953
|
...u?.graphObjectValues || {}
|
|
1946
|
-
}, className:
|
|
1954
|
+
}, className: Ve("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
|
|
1947
1955
|
initial: {
|
|
1948
|
-
y:
|
|
1956
|
+
y: r(0),
|
|
1949
1957
|
opacity: 0,
|
|
1950
|
-
fill:
|
|
1958
|
+
fill: Ge(H[o])
|
|
1951
1959
|
},
|
|
1952
1960
|
whileInView: {
|
|
1953
|
-
y:
|
|
1954
|
-
opacity:
|
|
1955
|
-
fill:
|
|
1961
|
+
y: r(fe(d.size.filter((E, n) => n <= o && E))) + Math.abs(r(fe(d.size.filter((E, n) => n <= o && E))) - r(fe(d.size.filter((E, n) => n < o && E)))) / 2,
|
|
1962
|
+
opacity: A && Math.abs(r(fe(d.size.filter((E, n) => n <= o && E))) - r(fe(d.size.filter((E, n) => n < o && E)))) > 20 ? 1 : 0,
|
|
1963
|
+
fill: Ge(H[o]),
|
|
1956
1964
|
transition: {
|
|
1957
1965
|
duration: a.duration
|
|
1958
1966
|
}
|
|
1959
1967
|
}
|
|
1960
|
-
}, initial: "initial", animate:
|
|
1968
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
1961
1969
|
opacity: 0,
|
|
1962
1970
|
transition: {
|
|
1963
1971
|
duration: a.duration
|
|
1964
1972
|
}
|
|
1965
|
-
}, children:
|
|
1973
|
+
}, children: $e(A, m, x, nt, Y, F, L) }) : null
|
|
1966
1974
|
] }, `${d.label}-${f[o] || o}`)),
|
|
1967
|
-
O ? /* @__PURE__ */ i.jsx(
|
|
1968
|
-
|
|
1975
|
+
O ? /* @__PURE__ */ i.jsx(ti, { value: `${d.label}`.length < gt ? `${d.label}` : `${`${d.label}`.substring(0, gt)}...`, y: r(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: D }) : null,
|
|
1976
|
+
Tt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
1969
1977
|
textAnchor: "middle",
|
|
1970
1978
|
...u?.graphObjectValues || {}
|
|
1971
|
-
}, x: v.bandwidth() / 2, dy: -10, className:
|
|
1979
|
+
}, x: v.bandwidth() / 2, dy: -10, className: Ve("graph-value graph-value-total", Q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
|
|
1972
1980
|
initial: {
|
|
1973
|
-
y:
|
|
1981
|
+
y: r(0),
|
|
1974
1982
|
opacity: 0,
|
|
1975
|
-
...
|
|
1976
|
-
fill:
|
|
1983
|
+
...Q && {
|
|
1984
|
+
fill: Q
|
|
1977
1985
|
}
|
|
1978
1986
|
},
|
|
1979
1987
|
whileInView: {
|
|
1980
|
-
y:
|
|
1988
|
+
y: r(fe(d.size.map(el))),
|
|
1981
1989
|
opacity: 1,
|
|
1982
|
-
...
|
|
1983
|
-
fill:
|
|
1990
|
+
...Q && {
|
|
1991
|
+
fill: Q
|
|
1984
1992
|
},
|
|
1985
1993
|
transition: {
|
|
1986
1994
|
duration: a.duration
|
|
@@ -1991,465 +1999,457 @@ function Jl(e) {
|
|
|
1991
1999
|
transition: {
|
|
1992
2000
|
duration: a.duration
|
|
1993
2001
|
}
|
|
1994
|
-
}, initial: "initial", animate:
|
|
1995
|
-
] }, d.label)),
|
|
2002
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", children: $e(fe(d.size.filter(tl)), m, x, nt, Y, F, L) }) : null
|
|
2003
|
+
] }, d.label)), vt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((d, A) => /* @__PURE__ */ i.jsx(Qe, { text: d.text, color: d.color, y: r(d.value), x1: 0 - T, x2: ct + p.right, classNames: d.classNames, styles: d.styles, animate: a, isInView: D }, A)) }) : null, t[16] = a, t[17] = B, t[18] = H, t[19] = tt, t[20] = U, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = f, t[28] = y, t[29] = _, t[30] = yt, t[31] = Xt, t[32] = ct, t[33] = St, t[34] = rt, t[35] = D, t[36] = T, t[37] = F, t[38] = p.bottom, t[39] = p.left, t[40] = p.right, t[41] = p.top, t[42] = z, t[43] = Yt, t[44] = ut, t[45] = C, t[46] = m, t[47] = lt, t[48] = M, t[49] = kt, t[50] = L, t[51] = x, t[52] = nt, t[53] = Ct, t[54] = K, t[55] = J, t[56] = O, t[57] = G, t[58] = Tt, t[59] = u?.graphObjectValues, t[60] = u?.xAxis?.axis, t[61] = u?.xAxis?.labels, t[62] = u?.yAxis?.gridLines, t[63] = u?.yAxis?.labels, t[64] = u?.yAxis?.title, t[65] = Y, t[66] = gt, t[67] = Q, t[68] = Mt, t[69] = at, t[70] = bt, t[71] = vt, t[72] = At, t[73] = dt, t[74] = Vt, t[75] = et, t[76] = P, t[77] = j, t[78] = zt, t[79] = ht, t[80] = ot, t[81] = it, t[82] = wt;
|
|
1996
2004
|
} else
|
|
1997
|
-
|
|
1998
|
-
let
|
|
1999
|
-
t[
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
] }), t[
|
|
2003
|
-
let
|
|
2004
|
-
t[
|
|
2005
|
-
let
|
|
2006
|
-
t[
|
|
2007
|
-
|
|
2008
|
-
Ct,
|
|
2009
|
-
K,
|
|
2010
|
-
F,
|
|
2011
|
-
rt,
|
|
2012
|
-
E
|
|
2013
|
-
] }), t[109] = pt, t[110] = St, t[111] = Ct, t[112] = K, t[113] = F, t[114] = rt, t[115] = E, t[116] = vt) : vt = t[116];
|
|
2014
|
-
let Vt;
|
|
2015
|
-
t[117] !== ht || t[118] !== I || t[119] !== Lt || t[120] !== nt || t[121] !== lt || t[122] !== Q || t[123] !== vt ? (Vt = /* @__PURE__ */ i.jsx(ht, { width: I, height: Lt, viewBox: nt, direction: lt, ref: Q, children: vt }), t[117] = ht, t[118] = I, t[119] = Lt, t[120] = nt, t[121] = lt, t[122] = Q, t[123] = vt, t[124] = Vt) : Vt = t[124];
|
|
2016
|
-
let ct;
|
|
2017
|
-
t[125] !== l?.tooltip || t[126] !== Ft || t[127] !== mt || t[128] !== c || t[129] !== u?.tooltip || t[130] !== Z ? (ct = c && Z && Ft && mt ? /* @__PURE__ */ i.jsx(je, { data: c, body: Z, xPos: Ft, yPos: mt, backgroundStyle: u?.tooltip, className: l?.tooltip }) : null, t[125] = l?.tooltip, t[126] = Ft, t[127] = mt, t[128] = c, t[129] = u?.tooltip, t[130] = Z, t[131] = ct) : ct = t[131];
|
|
2018
|
-
let A;
|
|
2019
|
-
t[132] !== l?.modal || t[133] !== xt || t[134] !== z ? (A = xt && z !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: xt, data: z, setData: y, className: l?.modal }) : null, t[132] = l?.modal, t[133] = xt, t[134] = z, t[135] = A) : A = t[135];
|
|
2020
|
-
let Wt;
|
|
2021
|
-
return t[136] !== Vt || t[137] !== ct || t[138] !== A ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2005
|
+
at = t[69], bt = t[70], vt = t[71], At = t[72], dt = t[73], Vt = t[74], et = t[75], P = t[76], j = t[77], zt = t[78], ht = t[79], ot = t[80], it = t[81], wt = t[82];
|
|
2006
|
+
let ft;
|
|
2007
|
+
t[105] !== at || t[106] !== vt || t[107] !== wt ? (ft = /* @__PURE__ */ i.jsxs(at, { children: [
|
|
2008
|
+
wt,
|
|
2009
|
+
vt
|
|
2010
|
+
] }), t[105] = at, t[106] = vt, t[107] = wt, t[108] = ft) : ft = t[108];
|
|
2011
|
+
let R;
|
|
2012
|
+
t[109] !== y ? (R = y.filter(_s).map(Qs), t[109] = y, t[110] = R) : R = t[110];
|
|
2013
|
+
let $t;
|
|
2014
|
+
t[111] !== At || t[112] !== dt || t[113] !== Vt || t[114] !== et || t[115] !== P || t[116] !== ft || t[117] !== R ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: At, children: [
|
|
2015
|
+
dt,
|
|
2022
2016
|
Vt,
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2017
|
+
et,
|
|
2018
|
+
P,
|
|
2019
|
+
ft,
|
|
2020
|
+
R
|
|
2021
|
+
] }), t[111] = At, t[112] = dt, t[113] = Vt, t[114] = et, t[115] = P, t[116] = ft, t[117] = R, t[118] = $t) : $t = t[118];
|
|
2022
|
+
let Dt;
|
|
2023
|
+
t[119] !== bt || t[120] !== j || t[121] !== zt || t[122] !== ht || t[123] !== ot || t[124] !== it || t[125] !== $t ? (Dt = /* @__PURE__ */ i.jsx(bt, { width: j, height: zt, viewBox: ht, direction: ot, ref: it, children: $t }), t[119] = bt, t[120] = j, t[121] = zt, t[122] = ht, t[123] = ot, t[124] = it, t[125] = $t, t[126] = Dt) : Dt = t[126];
|
|
2024
|
+
let pt;
|
|
2025
|
+
t[127] !== s?.tooltip || t[128] !== mt || t[129] !== Lt || t[130] !== b || t[131] !== u?.tooltip || t[132] !== st ? (pt = b && st && mt && Lt ? /* @__PURE__ */ i.jsx(Se, { data: b, body: st, xPos: mt, yPos: Lt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[127] = s?.tooltip, t[128] = mt, t[129] = Lt, t[130] = b, t[131] = u?.tooltip, t[132] = st, t[133] = pt) : pt = t[133];
|
|
2026
|
+
let $;
|
|
2027
|
+
t[134] !== s?.modal || t[135] !== yt || t[136] !== C ? ($ = yt && C !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: yt, data: C, setData: N, className: s?.modal }) : null, t[134] = s?.modal, t[135] = yt, t[136] = C, t[137] = $) : $ = t[137];
|
|
2028
|
+
let Wt;
|
|
2029
|
+
return t[138] !== Dt || t[139] !== pt || t[140] !== $ ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2030
|
+
Dt,
|
|
2031
|
+
pt,
|
|
2032
|
+
$
|
|
2033
|
+
] }), t[138] = Dt, t[139] = pt, t[140] = $, t[141] = Wt) : Wt = t[141], Wt;
|
|
2026
2034
|
}
|
|
2027
|
-
function
|
|
2035
|
+
function Qs(e) {
|
|
2028
2036
|
return e.layer;
|
|
2029
2037
|
}
|
|
2030
|
-
function
|
|
2038
|
+
function _s(e) {
|
|
2031
2039
|
return e.position === "after";
|
|
2032
2040
|
}
|
|
2033
|
-
function
|
|
2041
|
+
function tl(e) {
|
|
2034
2042
|
return e;
|
|
2035
2043
|
}
|
|
2036
|
-
function
|
|
2044
|
+
function el(e) {
|
|
2037
2045
|
return e || 0;
|
|
2038
2046
|
}
|
|
2039
|
-
function
|
|
2047
|
+
function il(e) {
|
|
2040
2048
|
return e.layer;
|
|
2041
2049
|
}
|
|
2042
|
-
function
|
|
2050
|
+
function sl(e) {
|
|
2043
2051
|
return e.position === "before";
|
|
2044
2052
|
}
|
|
2045
|
-
function
|
|
2053
|
+
function ll(e) {
|
|
2046
2054
|
return e !== 0;
|
|
2047
2055
|
}
|
|
2048
|
-
function
|
|
2056
|
+
function al(e) {
|
|
2049
2057
|
return e !== 0;
|
|
2050
2058
|
}
|
|
2051
|
-
function
|
|
2059
|
+
function ol(e) {
|
|
2052
2060
|
return `${e.id}`;
|
|
2053
2061
|
}
|
|
2054
|
-
function
|
|
2055
|
-
const t =
|
|
2056
|
-
data:
|
|
2057
|
-
graphTitle:
|
|
2058
|
-
colors:
|
|
2059
|
-
sources:
|
|
2060
|
-
graphDescription:
|
|
2061
|
-
barPadding:
|
|
2062
|
-
showTicks:
|
|
2063
|
-
truncateBy:
|
|
2064
|
-
height:
|
|
2062
|
+
function nl(e) {
|
|
2063
|
+
const t = Me.c(129), {
|
|
2064
|
+
data: l,
|
|
2065
|
+
graphTitle: X,
|
|
2066
|
+
colors: Rt,
|
|
2067
|
+
sources: Ut,
|
|
2068
|
+
graphDescription: jt,
|
|
2069
|
+
barPadding: Mt,
|
|
2070
|
+
showTicks: St,
|
|
2071
|
+
truncateBy: H,
|
|
2072
|
+
height: U,
|
|
2065
2073
|
width: O,
|
|
2066
|
-
footNote:
|
|
2067
|
-
colorDomain:
|
|
2068
|
-
colorLegendTitle:
|
|
2069
|
-
padding:
|
|
2070
|
-
backgroundColor:
|
|
2071
|
-
topMargin:
|
|
2072
|
-
bottomMargin:
|
|
2073
|
-
leftMargin:
|
|
2074
|
-
rightMargin:
|
|
2075
|
-
tooltip:
|
|
2076
|
-
onSeriesMouseOver:
|
|
2077
|
-
suffix:
|
|
2078
|
-
prefix:
|
|
2079
|
-
showLabels:
|
|
2080
|
-
relativeHeight:
|
|
2081
|
-
showValues:
|
|
2082
|
-
refValues:
|
|
2083
|
-
graphID:
|
|
2084
|
-
maxValue:
|
|
2074
|
+
footNote: G,
|
|
2075
|
+
colorDomain: gt,
|
|
2076
|
+
colorLegendTitle: st,
|
|
2077
|
+
padding: kt,
|
|
2078
|
+
backgroundColor: Y,
|
|
2079
|
+
topMargin: nt,
|
|
2080
|
+
bottomMargin: Tt,
|
|
2081
|
+
leftMargin: Ct,
|
|
2082
|
+
rightMargin: Yt,
|
|
2083
|
+
tooltip: M,
|
|
2084
|
+
onSeriesMouseOver: J,
|
|
2085
|
+
suffix: S,
|
|
2086
|
+
prefix: z,
|
|
2087
|
+
showLabels: ut,
|
|
2088
|
+
relativeHeight: K,
|
|
2089
|
+
showValues: yt,
|
|
2090
|
+
refValues: B,
|
|
2091
|
+
graphID: Q,
|
|
2092
|
+
maxValue: lt,
|
|
2085
2093
|
onSeriesMouseClick: u,
|
|
2086
|
-
graphDownload:
|
|
2094
|
+
graphDownload: s,
|
|
2087
2095
|
dataDownload: a,
|
|
2088
2096
|
language: f,
|
|
2089
2097
|
labelOrder: x,
|
|
2090
|
-
minHeight:
|
|
2091
|
-
theme:
|
|
2092
|
-
maxBarThickness:
|
|
2093
|
-
sortParameter:
|
|
2094
|
-
maxNumberOfBars:
|
|
2095
|
-
minBarThickness:
|
|
2096
|
-
showColorScale:
|
|
2097
|
-
ariaLabel:
|
|
2098
|
-
resetSelectionOnDoubleClick:
|
|
2099
|
-
detailsOnClick:
|
|
2100
|
-
barAxisTitle:
|
|
2098
|
+
minHeight: y,
|
|
2099
|
+
theme: m,
|
|
2100
|
+
maxBarThickness: rt,
|
|
2101
|
+
sortParameter: F,
|
|
2102
|
+
maxNumberOfBars: L,
|
|
2103
|
+
minBarThickness: T,
|
|
2104
|
+
showColorScale: Et,
|
|
2105
|
+
ariaLabel: Bt,
|
|
2106
|
+
resetSelectionOnDoubleClick: xt,
|
|
2107
|
+
detailsOnClick: Ft,
|
|
2108
|
+
barAxisTitle: Gt,
|
|
2101
2109
|
noOfTicks: D,
|
|
2102
|
-
valueColor:
|
|
2103
|
-
styles:
|
|
2104
|
-
classNames:
|
|
2105
|
-
filterNA:
|
|
2106
|
-
animate:
|
|
2107
|
-
precision:
|
|
2108
|
-
locale:
|
|
2109
|
-
customLayers:
|
|
2110
|
-
timeline:
|
|
2111
|
-
naLabel:
|
|
2112
|
-
sortData:
|
|
2113
|
-
orientation:
|
|
2114
|
-
hideAxisLine:
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2110
|
+
valueColor: V,
|
|
2111
|
+
styles: Z,
|
|
2112
|
+
classNames: p,
|
|
2113
|
+
filterNA: b,
|
|
2114
|
+
animate: I,
|
|
2115
|
+
precision: C,
|
|
2116
|
+
locale: N,
|
|
2117
|
+
customLayers: mt,
|
|
2118
|
+
timeline: Pt,
|
|
2119
|
+
naLabel: Lt,
|
|
2120
|
+
sortData: Ht,
|
|
2121
|
+
orientation: ct,
|
|
2122
|
+
hideAxisLine: Xt,
|
|
2123
|
+
padZeros: W
|
|
2124
|
+
} = e, _ = Rt === void 0 ? ve.light.categoricalColors.colors : Rt, k = Mt === void 0 ? 0.25 : Mt, tt = St === void 0 ? !0 : St, at = H === void 0 ? 999 : H, bt = Y === void 0 ? !1 : Y, vt = S === void 0 ? "" : S, At = z === void 0 ? "" : z, dt = ut === void 0 ? !0 : ut, Vt = yt === void 0 ? !0 : yt, et = s === void 0 ? !1 : s, P = a === void 0 ? !1 : a, j = f === void 0 ? "en" : f, zt = y === void 0 ? 0 : y, ht = m === void 0 ? "light" : m, ot = Et === void 0 ? !0 : Et, it = xt === void 0 ? !0 : xt, wt = D === void 0 ? 5 : D, ft = b === void 0 ? !0 : b, R = I === void 0 ? !1 : I, $t = C === void 0 ? 2 : C, Dt = N === void 0 ? "en" : N;
|
|
2125
|
+
let pt;
|
|
2126
|
+
t[0] !== mt ? (pt = mt === void 0 ? [] : mt, t[0] = mt, t[1] = pt) : pt = t[1];
|
|
2127
|
+
const $ = pt;
|
|
2119
2128
|
let Wt;
|
|
2120
|
-
t[2] !==
|
|
2129
|
+
t[2] !== Pt ? (Wt = Pt === void 0 ? {
|
|
2121
2130
|
enabled: !1,
|
|
2122
2131
|
autoplay: !1,
|
|
2123
2132
|
showOnlyActiveDate: !0
|
|
2124
|
-
} :
|
|
2125
|
-
const
|
|
2126
|
-
let
|
|
2127
|
-
if (t[4] !==
|
|
2128
|
-
let
|
|
2129
|
-
t[7] !==
|
|
2133
|
+
} : Pt, t[2] = Pt, t[3] = Wt) : Wt = t[3];
|
|
2134
|
+
const r = Wt, v = Lt === void 0 ? "NA" : Lt, It = ct === void 0 ? "vertical" : ct, Ot = Xt === void 0 ? !1 : Xt, c = W === void 0 ? !1 : W, g = It === "horizontal" ? Ws : Ks, [q, Zt] = _t(0), [Qt, qt] = _t(0), [Jt, te] = _t(r.autoplay);
|
|
2135
|
+
let w;
|
|
2136
|
+
if (t[4] !== l || t[5] !== r.dateFormat) {
|
|
2137
|
+
let Nt;
|
|
2138
|
+
t[7] !== r.dateFormat ? (Nt = (ne) => qe(`${ne.date}`, r.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = r.dateFormat, t[8] = Nt) : Nt = t[8], w = [...new Set(l.filter(wl).map(Nt))], w.sort(vl), t[4] = l, t[5] = r.dateFormat, t[6] = w;
|
|
2130
2139
|
} else
|
|
2131
|
-
|
|
2132
|
-
const
|
|
2133
|
-
let
|
|
2134
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2135
|
-
const
|
|
2136
|
-
|
|
2140
|
+
w = t[6];
|
|
2141
|
+
const h = w, [d, A] = _t(r.autoplay ? 0 : h.length - 1), [o, E] = _t(void 0), n = Oe(null), le = Oe(null);
|
|
2142
|
+
let re, ye;
|
|
2143
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = () => {
|
|
2144
|
+
const Nt = new ResizeObserver((ne) => {
|
|
2145
|
+
Zt(ne[0].target.clientWidth || 620), qt(ne[0].target.clientHeight || 480);
|
|
2137
2146
|
});
|
|
2138
|
-
return
|
|
2139
|
-
},
|
|
2140
|
-
let
|
|
2141
|
-
t[11] !== Jt || t[12] !==
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2144
|
-
}, (
|
|
2145
|
-
return Jt || clearInterval(
|
|
2146
|
-
},
|
|
2147
|
-
const
|
|
2148
|
-
let
|
|
2149
|
-
t[16] !==
|
|
2150
|
-
const
|
|
2151
|
-
let
|
|
2152
|
-
t[21] !==
|
|
2147
|
+
return n.current && Nt.observe(n.current), () => Nt.disconnect();
|
|
2148
|
+
}, ye = [], t[9] = re, t[10] = ye) : (re = t[9], ye = t[10]), je(re, ye);
|
|
2149
|
+
let ke, we;
|
|
2150
|
+
t[11] !== Jt || t[12] !== r.speed || t[13] !== h ? (ke = () => {
|
|
2151
|
+
const Nt = setInterval(() => {
|
|
2152
|
+
A((ne) => ne < h.length - 1 ? ne + 1 : 0);
|
|
2153
|
+
}, (r.speed || 2) * 1e3);
|
|
2154
|
+
return Jt || clearInterval(Nt), () => clearInterval(Nt);
|
|
2155
|
+
}, we = [h, Jt, r.speed], t[11] = Jt, t[12] = r.speed, t[13] = h, t[14] = ke, t[15] = we) : (ke = t[14], we = t[15]), je(ke, we);
|
|
2156
|
+
const Ce = r.dateFormat || "yyyy";
|
|
2157
|
+
let ge;
|
|
2158
|
+
t[16] !== d || t[17] !== Ce || t[18] !== r.showOnlyActiveDate || t[19] !== h ? (ge = Ze(h, d, r.showOnlyActiveDate, Ce), t[16] = d, t[17] = Ce, t[18] = r.showOnlyActiveDate, t[19] = h, t[20] = ge) : ge = t[20];
|
|
2159
|
+
const be = ge, Ae = p?.graphContainer, pe = Z?.graphContainer;
|
|
2160
|
+
let xe;
|
|
2161
|
+
t[21] !== p?.description || t[22] !== p?.title || t[23] !== l || t[24] !== P || t[25] !== jt || t[26] !== et || t[27] !== X || t[28] !== Z?.description || t[29] !== Z?.title || t[30] !== O ? (xe = X || jt || et || P ? /* @__PURE__ */ i.jsx(ei, { styles: {
|
|
2162
|
+
title: Z?.title,
|
|
2163
|
+
description: Z?.description
|
|
2164
|
+
}, classNames: {
|
|
2153
2165
|
title: p?.title,
|
|
2154
2166
|
description: p?.description
|
|
2155
|
-
},
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
}, graphTitle: H, graphDescription: It, width: O, graphDownload: K ? m : void 0, dataDownload: F ? s.map(gs).filter(ps).length > 0 ? s.map(fs).filter(hs) : s.filter(ms) : null }) : null, t[21] = c?.description, t[22] = c?.title, t[23] = s, t[24] = F, t[25] = It, t[26] = K, t[27] = H, t[28] = p?.description, t[29] = p?.title, t[30] = O, t[31] = de) : de = t[31];
|
|
2159
|
-
let ne;
|
|
2160
|
-
t[32] !== V || t[33] !== ge || t[34] !== Jt || t[35] !== n.enabled || t[36] !== g ? (ne = n.enabled && g.length > 0 && ge ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
2167
|
+
}, graphTitle: X, graphDescription: jt, width: O, graphDownload: et ? le : void 0, dataDownload: P ? l.map(bl).filter(yl).length > 0 ? l.map(gl).filter(pl) : l.filter(fl) : null }) : null, t[21] = p?.description, t[22] = p?.title, t[23] = l, t[24] = P, t[25] = jt, t[26] = et, t[27] = X, t[28] = Z?.description, t[29] = Z?.title, t[30] = O, t[31] = xe) : xe = t[31];
|
|
2168
|
+
let ce;
|
|
2169
|
+
t[32] !== d || t[33] !== be || t[34] !== Jt || t[35] !== r.enabled || t[36] !== h ? (ce = r.enabled && h.length > 0 && be ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
2161
2170
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
2162
|
-
|
|
2163
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(
|
|
2164
|
-
/* @__PURE__ */ i.jsx(
|
|
2165
|
-
|
|
2166
|
-
}, onChange: (
|
|
2167
|
-
|
|
2171
|
+
te(!Jt);
|
|
2172
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
|
|
2173
|
+
/* @__PURE__ */ i.jsx(Re, { min: h[0], max: h[h.length - 1], marks: be, step: null, defaultValue: h[h.length - 1], value: h[d], onChangeComplete: (Nt) => {
|
|
2174
|
+
A(h.indexOf(Nt));
|
|
2175
|
+
}, onChange: (Nt) => {
|
|
2176
|
+
A(h.indexOf(Nt));
|
|
2168
2177
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
2169
|
-
] }) : null, t[32] =
|
|
2170
|
-
let
|
|
2171
|
-
t[38] !==
|
|
2172
|
-
let
|
|
2173
|
-
t[46] !==
|
|
2174
|
-
let
|
|
2175
|
-
t[48] !==
|
|
2178
|
+
] }) : null, t[32] = d, t[33] = be, t[34] = Jt, t[35] = r.enabled, t[36] = h, t[37] = ce) : ce = t[37];
|
|
2179
|
+
let de;
|
|
2180
|
+
t[38] !== p?.colorLegend || t[39] !== gt || t[40] !== st || t[41] !== _ || t[42] !== l.length || t[43] !== ot || t[44] !== O ? (de = ot && l.length > 0 ? /* @__PURE__ */ i.jsx(si, { width: O, colorDomain: gt, colors: _, colorLegendTitle: st, setSelectedColor: E, showNAColor: !1, className: p?.colorLegend }) : null, t[38] = p?.colorLegend, t[39] = gt, t[40] = st, t[41] = _, t[42] = l.length, t[43] = ot, t[44] = O, t[45] = de) : de = t[45];
|
|
2181
|
+
let me;
|
|
2182
|
+
t[46] !== l.length ? (me = l.length === 0 && /* @__PURE__ */ i.jsx(li, {}), t[46] = l.length, t[47] = me) : me = t[47];
|
|
2183
|
+
let he;
|
|
2184
|
+
t[48] !== g || t[49] !== R || t[50] !== Gt || t[51] !== k || t[52] !== Tt || t[53] !== p || t[54] !== gt || t[55] !== _ || t[56] !== $ || t[57] !== l || t[58] !== Ft || t[59] !== ft || t[60] !== Ot || t[61] !== d || t[62] !== x || t[63] !== j || t[64] !== Ct || t[65] !== Dt || t[66] !== rt || t[67] !== L || t[68] !== lt || t[69] !== T || t[70] !== v || t[71] !== wt || t[72] !== u || t[73] !== J || t[74] !== c || t[75] !== $t || t[76] !== At || t[77] !== B || t[78] !== it || t[79] !== Yt || t[80] !== o || t[81] !== dt || t[82] !== tt || t[83] !== Vt || t[84] !== Ht || t[85] !== F || t[86] !== Z || t[87] !== vt || t[88] !== Qt || t[89] !== q || t[90] !== r.dateFormat || t[91] !== r.enabled || t[92] !== M || t[93] !== nt || t[94] !== at || t[95] !== h || t[96] !== V ? (he = q && Qt && l.length > 0 ? /* @__PURE__ */ i.jsx(g, { hideAxisLine: Ot, data: F !== void 0 ? F === "total" ? Ye(Ne(l, r.dateFormat || "yyyy").filter((Nt) => r.enabled ? `${Nt.date}` === De(new Date(h[d]), r.dateFormat || "yyyy") : Nt).filter((Nt) => ft ? !Nt.size.every(hl) : Nt), xl, [Ht || "asc"]).filter((Nt, ne) => L ? ne < L : !0) : Ye(Ne(l, r.dateFormat || "yyyy").filter((Nt) => r.enabled ? `${Nt.date}` === De(new Date(h[d]), r.dateFormat || "yyyy") : Nt).filter((Nt) => ft ? !Nt.size.every(ul) : Nt), (Nt) => se(Nt.size[F]) ? -1 / 0 : Nt.size[F], [Ht || "asc"]).filter((Nt, ne) => L ? ne < L : !0) : Ne(l, r.dateFormat || "yyyy").filter((Nt) => r.enabled ? `${Nt.date}` === De(new Date(h[d]), r.dateFormat || "yyyy") : Nt).filter((Nt) => ft ? !Nt.size.every(dl) : Nt).filter((Nt, ne) => L ? ne < L : !0), barColors: _, width: q, height: Qt, barPadding: k, showTicks: tt, leftMargin: Ct, rightMargin: Yt, topMargin: nt, bottomMargin: Tt, truncateBy: at, showLabels: dt, tooltip: M, onSeriesMouseOver: J, showValues: Vt, suffix: vt, prefix: At, refValues: B, maxValue: se(lt) ? Math.max(...l.map(rl)) : lt, onSeriesMouseClick: u, selectedColor: o, rtl: j === "he" || j === "ar", labelOrder: x, maxBarThickness: rt, minBarThickness: T, resetSelectionOnDoubleClick: it, detailsOnClick: Ft, barAxisTitle: Gt, noOfTicks: wt, valueColor: V, classNames: p, styles: Z, animate: R === !0 ? {
|
|
2176
2185
|
duration: 0.5,
|
|
2177
2186
|
once: !0,
|
|
2178
2187
|
amount: 0.5
|
|
2179
|
-
} :
|
|
2188
|
+
} : R || {
|
|
2180
2189
|
duration: 0,
|
|
2181
2190
|
once: !0,
|
|
2182
2191
|
amount: 0
|
|
2183
|
-
}, colorDomain:
|
|
2184
|
-
let
|
|
2185
|
-
t[
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
] }), t[
|
|
2189
|
-
let
|
|
2190
|
-
t[
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
] }), t[
|
|
2194
|
-
let
|
|
2195
|
-
t[
|
|
2192
|
+
}, colorDomain: gt, precision: $t, customLayers: $, naLabel: v, locale: Dt, padZeros: c }) : null, t[48] = g, t[49] = R, t[50] = Gt, t[51] = k, t[52] = Tt, t[53] = p, t[54] = gt, t[55] = _, t[56] = $, t[57] = l, t[58] = Ft, t[59] = ft, t[60] = Ot, t[61] = d, t[62] = x, t[63] = j, t[64] = Ct, t[65] = Dt, t[66] = rt, t[67] = L, t[68] = lt, t[69] = T, t[70] = v, t[71] = wt, t[72] = u, t[73] = J, t[74] = c, t[75] = $t, t[76] = At, t[77] = B, t[78] = it, t[79] = Yt, t[80] = o, t[81] = dt, t[82] = tt, t[83] = Vt, t[84] = Ht, t[85] = F, t[86] = Z, t[87] = vt, t[88] = Qt, t[89] = q, t[90] = r.dateFormat, t[91] = r.enabled, t[92] = M, t[93] = nt, t[94] = at, t[95] = h, t[96] = V, t[97] = he) : he = t[97];
|
|
2193
|
+
let ae;
|
|
2194
|
+
t[98] !== me || t[99] !== he ? (ae = /* @__PURE__ */ i.jsxs(ni, { ref: n, children: [
|
|
2195
|
+
me,
|
|
2196
|
+
he
|
|
2197
|
+
] }), t[98] = me, t[99] = he, t[100] = ae) : ae = t[100];
|
|
2198
|
+
let oe;
|
|
2199
|
+
t[101] !== de || t[102] !== ae ? (oe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
2200
|
+
de,
|
|
2201
|
+
ae
|
|
2202
|
+
] }), t[101] = de, t[102] = ae, t[103] = oe) : oe = t[103];
|
|
2203
|
+
let ue;
|
|
2204
|
+
t[104] !== p?.footnote || t[105] !== p?.source || t[106] !== G || t[107] !== Ut || t[108] !== Z?.footnote || t[109] !== Z?.source || t[110] !== O ? (ue = Ut || G ? /* @__PURE__ */ i.jsx(ii, { styles: {
|
|
2205
|
+
footnote: Z?.footnote,
|
|
2206
|
+
source: Z?.source
|
|
2207
|
+
}, classNames: {
|
|
2196
2208
|
footnote: p?.footnote,
|
|
2197
2209
|
source: p?.source
|
|
2198
|
-
},
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
se,
|
|
2207
|
-
ce
|
|
2208
|
-
] }), t[111] = Mt, t[112] = ht, t[113] = J, t[114] = R, t[115] = I, t[116] = Lt, t[117] = $t, t[118] = U, t[119] = ve, t[120] = fe, t[121] = de, t[122] = ne, t[123] = se, t[124] = ce, t[125] = nt, t[126] = O, t[127] = Qt) : Qt = t[127], Qt;
|
|
2210
|
+
}, sources: Ut, footNote: G, width: O }) : null, t[104] = p?.footnote, t[105] = p?.source, t[106] = G, t[107] = Ut, t[108] = Z?.footnote, t[109] = Z?.source, t[110] = O, t[111] = ue) : ue = t[111];
|
|
2211
|
+
let Kt;
|
|
2212
|
+
return t[112] !== Bt || t[113] !== bt || t[114] !== Q || t[115] !== U || t[116] !== j || t[117] !== zt || t[118] !== kt || t[119] !== K || t[120] !== Ae || t[121] !== pe || t[122] !== xe || t[123] !== ce || t[124] !== oe || t[125] !== ue || t[126] !== ht || t[127] !== O ? (Kt = /* @__PURE__ */ i.jsxs(ri, { className: Ae, style: pe, id: Q, ref: le, "aria-label": Bt, backgroundColor: bt, theme: ht, language: j, minHeight: zt, width: O, height: U, relativeHeight: K, padding: kt, children: [
|
|
2213
|
+
xe,
|
|
2214
|
+
ce,
|
|
2215
|
+
oe,
|
|
2216
|
+
ue
|
|
2217
|
+
] }), t[112] = Bt, t[113] = bt, t[114] = Q, t[115] = U, t[116] = j, t[117] = zt, t[118] = kt, t[119] = K, t[120] = Ae, t[121] = pe, t[122] = xe, t[123] = ce, t[124] = oe, t[125] = ue, t[126] = ht, t[127] = O, t[128] = Kt) : Kt = t[128], Kt;
|
|
2209
2218
|
}
|
|
2210
|
-
function
|
|
2211
|
-
return
|
|
2219
|
+
function rl(e) {
|
|
2220
|
+
return fe(e.size.filter(cl)) || 0;
|
|
2212
2221
|
}
|
|
2213
|
-
function
|
|
2214
|
-
return !
|
|
2222
|
+
function cl(e) {
|
|
2223
|
+
return !se(e);
|
|
2215
2224
|
}
|
|
2216
|
-
function
|
|
2225
|
+
function dl(e) {
|
|
2217
2226
|
return e == null;
|
|
2218
2227
|
}
|
|
2219
|
-
function
|
|
2228
|
+
function ul(e) {
|
|
2220
2229
|
return e == null;
|
|
2221
2230
|
}
|
|
2222
|
-
function
|
|
2223
|
-
return
|
|
2231
|
+
function xl(e) {
|
|
2232
|
+
return fe(e.size.filter(ml));
|
|
2224
2233
|
}
|
|
2225
|
-
function
|
|
2226
|
-
return !
|
|
2234
|
+
function ml(e) {
|
|
2235
|
+
return !se(e);
|
|
2227
2236
|
}
|
|
2228
|
-
function
|
|
2237
|
+
function hl(e) {
|
|
2229
2238
|
return e == null;
|
|
2230
2239
|
}
|
|
2231
|
-
function
|
|
2240
|
+
function fl(e) {
|
|
2232
2241
|
return e !== void 0;
|
|
2233
2242
|
}
|
|
2234
|
-
function
|
|
2243
|
+
function pl(e) {
|
|
2235
2244
|
return e !== void 0;
|
|
2236
2245
|
}
|
|
2237
|
-
function
|
|
2246
|
+
function gl(e) {
|
|
2238
2247
|
return e.data;
|
|
2239
2248
|
}
|
|
2240
|
-
function
|
|
2249
|
+
function yl(e) {
|
|
2241
2250
|
return e !== void 0;
|
|
2242
2251
|
}
|
|
2243
|
-
function
|
|
2252
|
+
function bl(e) {
|
|
2244
2253
|
return e.data;
|
|
2245
2254
|
}
|
|
2246
|
-
function
|
|
2255
|
+
function vl(e, t) {
|
|
2247
2256
|
return e - t;
|
|
2248
2257
|
}
|
|
2249
|
-
function
|
|
2258
|
+
function wl(e) {
|
|
2250
2259
|
return e.date;
|
|
2251
2260
|
}
|
|
2252
|
-
function
|
|
2253
|
-
const t =
|
|
2254
|
-
data:
|
|
2255
|
-
graphTitle:
|
|
2256
|
-
colors:
|
|
2257
|
-
barPadding:
|
|
2258
|
-
showTicks:
|
|
2259
|
-
leftMargin:
|
|
2260
|
-
rightMargin:
|
|
2261
|
-
topMargin:
|
|
2262
|
-
bottomMargin:
|
|
2261
|
+
function ea(e) {
|
|
2262
|
+
const t = Me.c(65), {
|
|
2263
|
+
data: l,
|
|
2264
|
+
graphTitle: X,
|
|
2265
|
+
colors: Rt,
|
|
2266
|
+
barPadding: Ut,
|
|
2267
|
+
showTicks: jt,
|
|
2268
|
+
leftMargin: Mt,
|
|
2269
|
+
rightMargin: St,
|
|
2270
|
+
topMargin: H,
|
|
2271
|
+
bottomMargin: U,
|
|
2263
2272
|
truncateBy: O,
|
|
2264
|
-
showLabels:
|
|
2265
|
-
showValues:
|
|
2266
|
-
backgroundColor:
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
highlightedDataPoints: a,
|
|
2286
|
-
onSeriesMouseClick: f,
|
|
2287
|
-
graphDownload: x,
|
|
2288
|
-
dataDownload: w,
|
|
2289
|
-
language: h,
|
|
2290
|
-
theme: at,
|
|
2291
|
-
sortData: S,
|
|
2292
|
-
labelOrder: C,
|
|
2293
|
-
showNAColor: Ht,
|
|
2294
|
-
minHeight: Rt,
|
|
2295
|
-
maxBarThickness: Mt,
|
|
2296
|
-
maxNumberOfBars: yt,
|
|
2297
|
-
minBarThickness: Yt,
|
|
2298
|
-
ariaLabel: tt,
|
|
2299
|
-
resetSelectionOnDoubleClick: D,
|
|
2300
|
-
detailsOnClick: B,
|
|
2301
|
-
barAxisTitle: p,
|
|
2302
|
-
noOfTicks: c,
|
|
2303
|
-
valueColor: jt,
|
|
2304
|
-
orientation: z,
|
|
2305
|
-
styles: y,
|
|
2306
|
-
classNames: Ft,
|
|
2307
|
-
filterNA: Tt,
|
|
2308
|
-
animate: mt,
|
|
2309
|
-
dimmedOpacity: qt,
|
|
2310
|
-
precision: et,
|
|
2311
|
-
customLayers: Pt,
|
|
2312
|
-
timeline: Y,
|
|
2313
|
-
naLabel: it,
|
|
2314
|
-
trackColor: M,
|
|
2315
|
-
hideAxisLine: bt,
|
|
2316
|
-
locale: kt
|
|
2317
|
-
} = e, ht = z === void 0 ? "vertical" : z, ft = bt === void 0 ? !1 : bt;
|
|
2318
|
-
let pt;
|
|
2319
|
-
return t[0] !== mt || t[1] !== tt || t[2] !== Z || t[3] !== p || t[4] !== Kt || t[5] !== R || t[6] !== Ft || t[7] !== q || t[8] !== j || t[9] !== Gt || t[10] !== Pt || t[11] !== s || t[12] !== w || t[13] !== B || t[14] !== qt || t[15] !== Tt || t[16] !== k || t[17] !== Nt || t[18] !== x || t[19] !== _ || t[20] !== H || t[21] !== Ot || t[22] !== ft || t[23] !== a || t[24] !== C || t[25] !== h || t[26] !== At || t[27] !== kt || t[28] !== Mt || t[29] !== yt || t[30] !== u || t[31] !== Yt || t[32] !== Rt || t[33] !== l || t[34] !== it || t[35] !== c || t[36] !== f || t[37] !== xt || t[38] !== ht || t[39] !== N || t[40] !== et || t[41] !== W || t[42] !== T || t[43] !== ot || t[44] !== D || t[45] !== Bt || t[46] !== J || t[47] !== X || t[48] !== Ht || t[49] !== It || t[50] !== ut || t[51] !== S || t[52] !== st || t[53] !== y || t[54] !== $t || t[55] !== at || t[56] !== Y || t[57] !== U || t[58] !== P || t[59] !== M || t[60] !== O || t[61] !== jt || t[62] !== Xt ? (pt = /* @__PURE__ */ i.jsx(vl, { data: s, graphTitle: H, colors: Gt, barPadding: Kt, showTicks: It, leftMargin: At, rightMargin: Bt, topMargin: P, bottomMargin: R, truncateBy: O, showLabels: X, showValues: ut, backgroundColor: Z, suffix: $t, prefix: W, sources: st, graphDescription: Nt, height: Ot, width: Xt, footNote: k, colorDomain: q, colorLegendTitle: j, padding: N, relativeHeight: ot, tooltip: U, onSeriesMouseOver: xt, refValues: T, showColorScale: J, graphID: _, maxValue: u, minValue: l, highlightedDataPoints: a, onSeriesMouseClick: f, graphDownload: x, dataDownload: w, language: h, theme: at, sortData: S, labelOrder: C, showNAColor: Ht, minHeight: Rt, maxBarThickness: Mt, maxNumberOfBars: yt, minBarThickness: Yt, ariaLabel: tt, resetSelectionOnDoubleClick: D, styles: y, detailsOnClick: B, barAxisTitle: p, noOfTicks: c, valueColor: jt, classNames: Ft, filterNA: Tt, animate: mt, dimmedOpacity: qt, precision: et, customLayers: Pt, timeline: Y, naLabel: it, orientation: ht, trackColor: M, hideAxisLine: ft, locale: kt }), t[0] = mt, t[1] = tt, t[2] = Z, t[3] = p, t[4] = Kt, t[5] = R, t[6] = Ft, t[7] = q, t[8] = j, t[9] = Gt, t[10] = Pt, t[11] = s, t[12] = w, t[13] = B, t[14] = qt, t[15] = Tt, t[16] = k, t[17] = Nt, t[18] = x, t[19] = _, t[20] = H, t[21] = Ot, t[22] = ft, t[23] = a, t[24] = C, t[25] = h, t[26] = At, t[27] = kt, t[28] = Mt, t[29] = yt, t[30] = u, t[31] = Yt, t[32] = Rt, t[33] = l, t[34] = it, t[35] = c, t[36] = f, t[37] = xt, t[38] = ht, t[39] = N, t[40] = et, t[41] = W, t[42] = T, t[43] = ot, t[44] = D, t[45] = Bt, t[46] = J, t[47] = X, t[48] = Ht, t[49] = It, t[50] = ut, t[51] = S, t[52] = st, t[53] = y, t[54] = $t, t[55] = at, t[56] = Y, t[57] = U, t[58] = P, t[59] = M, t[60] = O, t[61] = jt, t[62] = Xt, t[63] = pt) : pt = t[63], pt;
|
|
2320
|
-
}
|
|
2321
|
-
function ta(e) {
|
|
2322
|
-
const t = $e.c(59), {
|
|
2323
|
-
data: s,
|
|
2324
|
-
graphTitle: H,
|
|
2325
|
-
colors: Gt,
|
|
2326
|
-
sources: Kt,
|
|
2327
|
-
graphDescription: It,
|
|
2328
|
-
barPadding: At,
|
|
2329
|
-
showTicks: Bt,
|
|
2330
|
-
truncateBy: P,
|
|
2331
|
-
height: R,
|
|
2332
|
-
width: O,
|
|
2333
|
-
footNote: X,
|
|
2334
|
-
colorDomain: ut,
|
|
2335
|
-
colorLegendTitle: Z,
|
|
2336
|
-
suffix: $t,
|
|
2337
|
-
prefix: W,
|
|
2338
|
-
showValues: st,
|
|
2339
|
-
padding: Nt,
|
|
2340
|
-
backgroundColor: Ot,
|
|
2341
|
-
leftMargin: Xt,
|
|
2342
|
-
rightMargin: k,
|
|
2343
|
-
topMargin: q,
|
|
2344
|
-
bottomMargin: j,
|
|
2345
|
-
showLabels: N,
|
|
2346
|
-
relativeHeight: ot,
|
|
2347
|
-
tooltip: U,
|
|
2348
|
-
onSeriesMouseOver: xt,
|
|
2349
|
-
refValues: T,
|
|
2350
|
-
graphID: J,
|
|
2351
|
-
maxValue: _,
|
|
2352
|
-
minValue: u,
|
|
2353
|
-
onSeriesMouseClick: l,
|
|
2273
|
+
showLabels: G,
|
|
2274
|
+
showValues: gt,
|
|
2275
|
+
backgroundColor: st,
|
|
2276
|
+
sources: kt,
|
|
2277
|
+
graphDescription: Y,
|
|
2278
|
+
height: nt,
|
|
2279
|
+
width: Tt,
|
|
2280
|
+
footNote: Ct,
|
|
2281
|
+
colorDomain: Yt,
|
|
2282
|
+
colorLegendTitle: M,
|
|
2283
|
+
padding: J,
|
|
2284
|
+
relativeHeight: S,
|
|
2285
|
+
tooltip: z,
|
|
2286
|
+
onSeriesMouseOver: ut,
|
|
2287
|
+
refValues: K,
|
|
2288
|
+
showColorScale: yt,
|
|
2289
|
+
graphID: B,
|
|
2290
|
+
maxValue: Q,
|
|
2291
|
+
minValue: lt,
|
|
2292
|
+
highlightedDataPoints: u,
|
|
2293
|
+
onSeriesMouseClick: s,
|
|
2354
2294
|
graphDownload: a,
|
|
2355
2295
|
dataDownload: f,
|
|
2356
2296
|
language: x,
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
maxBarThickness:
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
classNames: c,
|
|
2372
|
-
filterNA: jt,
|
|
2373
|
-
animate: z,
|
|
2374
|
-
precision: y,
|
|
2375
|
-
customLayers: Ft,
|
|
2376
|
-
showColorScale: Tt,
|
|
2377
|
-
timeline: mt,
|
|
2378
|
-
naLabel: qt,
|
|
2379
|
-
hideAxisLine: et,
|
|
2380
|
-
locale: Pt
|
|
2381
|
-
} = e, Y = B === void 0 ? "vertical" : B, it = et === void 0 ? !1 : et;
|
|
2382
|
-
let M;
|
|
2383
|
-
return t[0] !== z || t[1] !== Rt || t[2] !== Ot || t[3] !== Yt || t[4] !== At || t[5] !== j || t[6] !== c || t[7] !== ut || t[8] !== Z || t[9] !== Gt || t[10] !== Ft || t[11] !== s || t[12] !== f || t[13] !== yt || t[14] !== jt || t[15] !== X || t[16] !== It || t[17] !== a || t[18] !== J || t[19] !== H || t[20] !== R || t[21] !== it || t[22] !== w || t[23] !== x || t[24] !== Xt || t[25] !== Pt || t[26] !== Ht || t[27] !== _ || t[28] !== h || t[29] !== u || t[30] !== qt || t[31] !== tt || t[32] !== l || t[33] !== xt || t[34] !== Y || t[35] !== Nt || t[36] !== y || t[37] !== W || t[38] !== T || t[39] !== ot || t[40] !== Mt || t[41] !== k || t[42] !== Tt || t[43] !== N || t[44] !== Bt || t[45] !== st || t[46] !== C || t[47] !== S || t[48] !== Kt || t[49] !== p || t[50] !== $t || t[51] !== at || t[52] !== mt || t[53] !== U || t[54] !== q || t[55] !== P || t[56] !== D || t[57] !== O ? (M = /* @__PURE__ */ i.jsx(Ci, { orientation: Y, data: s, graphTitle: H, colors: Gt, sources: Kt, graphDescription: It, barPadding: At, showTicks: Bt, truncateBy: P, height: R, width: O, footNote: X, colorDomain: ut, colorLegendTitle: Z, suffix: $t, prefix: W, showValues: st, padding: Nt, backgroundColor: Ot, leftMargin: Xt, rightMargin: k, sortParameter: S, sortData: C, topMargin: q, bottomMargin: j, showLabels: N, relativeHeight: ot, tooltip: U, onSeriesMouseOver: xt, refValues: T, graphID: J, maxValue: _, minValue: u, onSeriesMouseClick: l, graphDownload: a, dataDownload: f, language: x, labelOrder: w, minHeight: h, theme: at, maxBarThickness: Ht, ariaLabel: Rt, resetSelectionOnDoubleClick: Mt, styles: p, detailsOnClick: yt, barAxisTitle: Yt, noOfTicks: tt, valueColor: D, classNames: c, filterNA: jt, animate: z, precision: y, customLayers: Ft, showColorScale: Tt, timeline: mt, naLabel: qt, hideAxisLine: it, locale: Pt }), t[0] = z, t[1] = Rt, t[2] = Ot, t[3] = Yt, t[4] = At, t[5] = j, t[6] = c, t[7] = ut, t[8] = Z, t[9] = Gt, t[10] = Ft, t[11] = s, t[12] = f, t[13] = yt, t[14] = jt, t[15] = X, t[16] = It, t[17] = a, t[18] = J, t[19] = H, t[20] = R, t[21] = it, t[22] = w, t[23] = x, t[24] = Xt, t[25] = Pt, t[26] = Ht, t[27] = _, t[28] = h, t[29] = u, t[30] = qt, t[31] = tt, t[32] = l, t[33] = xt, t[34] = Y, t[35] = Nt, t[36] = y, t[37] = W, t[38] = T, t[39] = ot, t[40] = Mt, t[41] = k, t[42] = Tt, t[43] = N, t[44] = Bt, t[45] = st, t[46] = C, t[47] = S, t[48] = Kt, t[49] = p, t[50] = $t, t[51] = at, t[52] = mt, t[53] = U, t[54] = q, t[55] = P, t[56] = D, t[57] = O, t[58] = M) : M = t[58], M;
|
|
2384
|
-
}
|
|
2385
|
-
function ea(e) {
|
|
2386
|
-
const t = $e.c(60), {
|
|
2387
|
-
data: s,
|
|
2388
|
-
graphTitle: H,
|
|
2389
|
-
colors: Gt,
|
|
2390
|
-
sources: Kt,
|
|
2391
|
-
graphDescription: It,
|
|
2392
|
-
barPadding: At,
|
|
2393
|
-
showTicks: Bt,
|
|
2394
|
-
leftMargin: P,
|
|
2395
|
-
rightMargin: R,
|
|
2396
|
-
topMargin: O,
|
|
2397
|
-
bottomMargin: X,
|
|
2398
|
-
truncateBy: ut,
|
|
2399
|
-
showLabels: Z,
|
|
2400
|
-
showValues: $t,
|
|
2401
|
-
backgroundColor: W,
|
|
2402
|
-
suffix: st,
|
|
2403
|
-
prefix: Nt,
|
|
2404
|
-
height: Ot,
|
|
2405
|
-
width: Xt,
|
|
2406
|
-
footNote: k,
|
|
2407
|
-
colorDomain: q,
|
|
2408
|
-
colorLegendTitle: j,
|
|
2409
|
-
padding: N,
|
|
2410
|
-
tooltip: ot,
|
|
2411
|
-
onSeriesMouseOver: U,
|
|
2412
|
-
relativeHeight: xt,
|
|
2413
|
-
refValues: T,
|
|
2414
|
-
graphID: J,
|
|
2415
|
-
maxValue: _,
|
|
2416
|
-
onSeriesMouseClick: u,
|
|
2417
|
-
graphDownload: l,
|
|
2418
|
-
dataDownload: a,
|
|
2419
|
-
language: f,
|
|
2420
|
-
theme: x,
|
|
2421
|
-
labelOrder: w,
|
|
2422
|
-
minHeight: h,
|
|
2423
|
-
maxBarThickness: at,
|
|
2424
|
-
sortParameter: S,
|
|
2425
|
-
sortData: C,
|
|
2426
|
-
maxNumberOfBars: Ht,
|
|
2427
|
-
minBarThickness: Rt,
|
|
2428
|
-
ariaLabel: Mt,
|
|
2429
|
-
resetSelectionOnDoubleClick: yt,
|
|
2430
|
-
detailsOnClick: Yt,
|
|
2431
|
-
barAxisTitle: tt,
|
|
2432
|
-
noOfTicks: D,
|
|
2433
|
-
valueColor: B,
|
|
2297
|
+
theme: y,
|
|
2298
|
+
sortData: m,
|
|
2299
|
+
labelOrder: rt,
|
|
2300
|
+
showNAColor: F,
|
|
2301
|
+
minHeight: L,
|
|
2302
|
+
maxBarThickness: T,
|
|
2303
|
+
maxNumberOfBars: Et,
|
|
2304
|
+
minBarThickness: Bt,
|
|
2305
|
+
ariaLabel: xt,
|
|
2306
|
+
resetSelectionOnDoubleClick: Ft,
|
|
2307
|
+
detailsOnClick: Gt,
|
|
2308
|
+
barAxisTitle: D,
|
|
2309
|
+
noOfTicks: V,
|
|
2310
|
+
valueColor: Z,
|
|
2434
2311
|
orientation: p,
|
|
2435
|
-
styles:
|
|
2436
|
-
classNames:
|
|
2437
|
-
filterNA:
|
|
2438
|
-
animate:
|
|
2439
|
-
|
|
2440
|
-
customLayers:
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2312
|
+
styles: b,
|
|
2313
|
+
classNames: I,
|
|
2314
|
+
filterNA: C,
|
|
2315
|
+
animate: N,
|
|
2316
|
+
dimmedOpacity: mt,
|
|
2317
|
+
customLayers: Pt,
|
|
2318
|
+
timeline: Lt,
|
|
2319
|
+
naLabel: Ht,
|
|
2320
|
+
trackColor: ct,
|
|
2321
|
+
hideAxisLine: Xt,
|
|
2322
|
+
numberDisplayOptions: W
|
|
2323
|
+
} = e, _ = p === void 0 ? "vertical" : p, k = Xt === void 0 ? !1 : Xt, tt = W?.suffix, at = W?.prefix, bt = W?.precision, vt = W?.locale, At = W?.padZeros;
|
|
2324
|
+
let dt;
|
|
2325
|
+
return t[0] !== N || t[1] !== xt || t[2] !== st || t[3] !== D || t[4] !== Ut || t[5] !== U || t[6] !== I || t[7] !== Yt || t[8] !== M || t[9] !== Rt || t[10] !== Pt || t[11] !== l || t[12] !== f || t[13] !== Gt || t[14] !== mt || t[15] !== C || t[16] !== Ct || t[17] !== Y || t[18] !== a || t[19] !== B || t[20] !== X || t[21] !== nt || t[22] !== k || t[23] !== u || t[24] !== rt || t[25] !== x || t[26] !== Mt || t[27] !== T || t[28] !== Et || t[29] !== Q || t[30] !== Bt || t[31] !== L || t[32] !== lt || t[33] !== Ht || t[34] !== V || t[35] !== s || t[36] !== ut || t[37] !== _ || t[38] !== J || t[39] !== K || t[40] !== S || t[41] !== Ft || t[42] !== St || t[43] !== yt || t[44] !== G || t[45] !== F || t[46] !== jt || t[47] !== gt || t[48] !== m || t[49] !== kt || t[50] !== b || t[51] !== tt || t[52] !== at || t[53] !== bt || t[54] !== vt || t[55] !== At || t[56] !== y || t[57] !== Lt || t[58] !== z || t[59] !== H || t[60] !== ct || t[61] !== O || t[62] !== Z || t[63] !== Tt ? (dt = /* @__PURE__ */ i.jsx(As, { data: l, graphTitle: X, colors: Rt, barPadding: Ut, showTicks: jt, leftMargin: Mt, rightMargin: St, topMargin: H, bottomMargin: U, truncateBy: O, showLabels: G, showValues: gt, backgroundColor: st, suffix: tt, prefix: at, sources: kt, graphDescription: Y, height: nt, width: Tt, footNote: Ct, colorDomain: Yt, colorLegendTitle: M, padding: J, relativeHeight: S, tooltip: z, onSeriesMouseOver: ut, refValues: K, showColorScale: yt, graphID: B, maxValue: Q, minValue: lt, highlightedDataPoints: u, onSeriesMouseClick: s, graphDownload: a, dataDownload: f, language: x, theme: y, sortData: m, labelOrder: rt, showNAColor: F, minHeight: L, maxBarThickness: T, maxNumberOfBars: Et, minBarThickness: Bt, ariaLabel: xt, resetSelectionOnDoubleClick: Ft, styles: b, detailsOnClick: Gt, barAxisTitle: D, noOfTicks: V, valueColor: Z, classNames: I, filterNA: C, animate: N, dimmedOpacity: mt, precision: bt, customLayers: Pt, timeline: Lt, naLabel: Ht, orientation: _, trackColor: ct, hideAxisLine: k, locale: vt, padZeros: At }), t[0] = N, t[1] = xt, t[2] = st, t[3] = D, t[4] = Ut, t[5] = U, t[6] = I, t[7] = Yt, t[8] = M, t[9] = Rt, t[10] = Pt, t[11] = l, t[12] = f, t[13] = Gt, t[14] = mt, t[15] = C, t[16] = Ct, t[17] = Y, t[18] = a, t[19] = B, t[20] = X, t[21] = nt, t[22] = k, t[23] = u, t[24] = rt, t[25] = x, t[26] = Mt, t[27] = T, t[28] = Et, t[29] = Q, t[30] = Bt, t[31] = L, t[32] = lt, t[33] = Ht, t[34] = V, t[35] = s, t[36] = ut, t[37] = _, t[38] = J, t[39] = K, t[40] = S, t[41] = Ft, t[42] = St, t[43] = yt, t[44] = G, t[45] = F, t[46] = jt, t[47] = gt, t[48] = m, t[49] = kt, t[50] = b, t[51] = tt, t[52] = at, t[53] = bt, t[54] = vt, t[55] = At, t[56] = y, t[57] = Lt, t[58] = z, t[59] = H, t[60] = ct, t[61] = O, t[62] = Z, t[63] = Tt, t[64] = dt) : dt = t[64], dt;
|
|
2326
|
+
}
|
|
2327
|
+
function ia(e) {
|
|
2328
|
+
const t = Me.c(60), {
|
|
2329
|
+
data: l,
|
|
2330
|
+
graphTitle: X,
|
|
2331
|
+
colors: Rt,
|
|
2332
|
+
sources: Ut,
|
|
2333
|
+
graphDescription: jt,
|
|
2334
|
+
barPadding: Mt,
|
|
2335
|
+
showTicks: St,
|
|
2336
|
+
truncateBy: H,
|
|
2337
|
+
height: U,
|
|
2338
|
+
width: O,
|
|
2339
|
+
footNote: G,
|
|
2340
|
+
colorDomain: gt,
|
|
2341
|
+
colorLegendTitle: st,
|
|
2342
|
+
showValues: kt,
|
|
2343
|
+
padding: Y,
|
|
2344
|
+
backgroundColor: nt,
|
|
2345
|
+
leftMargin: Tt,
|
|
2346
|
+
rightMargin: Ct,
|
|
2347
|
+
topMargin: Yt,
|
|
2348
|
+
bottomMargin: M,
|
|
2349
|
+
showLabels: J,
|
|
2350
|
+
relativeHeight: S,
|
|
2351
|
+
tooltip: z,
|
|
2352
|
+
onSeriesMouseOver: ut,
|
|
2353
|
+
refValues: K,
|
|
2354
|
+
graphID: yt,
|
|
2355
|
+
maxValue: B,
|
|
2356
|
+
minValue: Q,
|
|
2357
|
+
onSeriesMouseClick: lt,
|
|
2358
|
+
graphDownload: u,
|
|
2359
|
+
dataDownload: s,
|
|
2360
|
+
language: a,
|
|
2361
|
+
labelOrder: f,
|
|
2362
|
+
minHeight: x,
|
|
2363
|
+
theme: y,
|
|
2364
|
+
sortParameter: m,
|
|
2365
|
+
sortData: rt,
|
|
2366
|
+
maxBarThickness: F,
|
|
2367
|
+
ariaLabel: L,
|
|
2368
|
+
resetSelectionOnDoubleClick: T,
|
|
2369
|
+
detailsOnClick: Et,
|
|
2370
|
+
barAxisTitle: Bt,
|
|
2371
|
+
noOfTicks: xt,
|
|
2372
|
+
valueColor: Ft,
|
|
2373
|
+
orientation: Gt,
|
|
2374
|
+
styles: D,
|
|
2375
|
+
classNames: V,
|
|
2376
|
+
filterNA: Z,
|
|
2377
|
+
animate: p,
|
|
2378
|
+
customLayers: b,
|
|
2379
|
+
showColorScale: I,
|
|
2380
|
+
timeline: C,
|
|
2381
|
+
naLabel: N,
|
|
2382
|
+
hideAxisLine: mt,
|
|
2383
|
+
numberDisplayOptions: Pt
|
|
2384
|
+
} = e, Lt = Gt === void 0 ? "vertical" : Gt, Ht = mt === void 0 ? !1 : mt, ct = Pt?.suffix, Xt = Pt?.prefix, W = Pt?.precision, _ = Pt?.locale, k = Pt?.padZeros;
|
|
2385
|
+
let tt;
|
|
2386
|
+
return t[0] !== p || t[1] !== L || t[2] !== nt || t[3] !== Bt || t[4] !== Mt || t[5] !== M || t[6] !== V || t[7] !== gt || t[8] !== st || t[9] !== Rt || t[10] !== b || t[11] !== l || t[12] !== s || t[13] !== Et || t[14] !== Z || t[15] !== G || t[16] !== jt || t[17] !== u || t[18] !== yt || t[19] !== X || t[20] !== U || t[21] !== Ht || t[22] !== f || t[23] !== a || t[24] !== Tt || t[25] !== F || t[26] !== B || t[27] !== x || t[28] !== Q || t[29] !== N || t[30] !== xt || t[31] !== lt || t[32] !== ut || t[33] !== Lt || t[34] !== Y || t[35] !== K || t[36] !== S || t[37] !== T || t[38] !== Ct || t[39] !== I || t[40] !== J || t[41] !== St || t[42] !== kt || t[43] !== rt || t[44] !== m || t[45] !== Ut || t[46] !== D || t[47] !== ct || t[48] !== Xt || t[49] !== W || t[50] !== _ || t[51] !== k || t[52] !== y || t[53] !== C || t[54] !== z || t[55] !== Yt || t[56] !== H || t[57] !== Ft || t[58] !== O ? (tt = /* @__PURE__ */ i.jsx(Vi, { orientation: Lt, data: l, graphTitle: X, colors: Rt, sources: Ut, graphDescription: jt, barPadding: Mt, showTicks: St, truncateBy: H, height: U, width: O, footNote: G, colorDomain: gt, colorLegendTitle: st, suffix: ct, prefix: Xt, showValues: kt, padding: Y, backgroundColor: nt, leftMargin: Tt, rightMargin: Ct, sortParameter: m, sortData: rt, topMargin: Yt, bottomMargin: M, showLabels: J, relativeHeight: S, tooltip: z, onSeriesMouseOver: ut, refValues: K, graphID: yt, maxValue: B, minValue: Q, onSeriesMouseClick: lt, graphDownload: u, dataDownload: s, language: a, labelOrder: f, minHeight: x, theme: y, maxBarThickness: F, ariaLabel: L, resetSelectionOnDoubleClick: T, styles: D, detailsOnClick: Et, barAxisTitle: Bt, noOfTicks: xt, valueColor: Ft, classNames: V, filterNA: Z, animate: p, precision: W, customLayers: b, showColorScale: I, timeline: C, naLabel: N, hideAxisLine: Ht, locale: _, padZeros: k }), t[0] = p, t[1] = L, t[2] = nt, t[3] = Bt, t[4] = Mt, t[5] = M, t[6] = V, t[7] = gt, t[8] = st, t[9] = Rt, t[10] = b, t[11] = l, t[12] = s, t[13] = Et, t[14] = Z, t[15] = G, t[16] = jt, t[17] = u, t[18] = yt, t[19] = X, t[20] = U, t[21] = Ht, t[22] = f, t[23] = a, t[24] = Tt, t[25] = F, t[26] = B, t[27] = x, t[28] = Q, t[29] = N, t[30] = xt, t[31] = lt, t[32] = ut, t[33] = Lt, t[34] = Y, t[35] = K, t[36] = S, t[37] = T, t[38] = Ct, t[39] = I, t[40] = J, t[41] = St, t[42] = kt, t[43] = rt, t[44] = m, t[45] = Ut, t[46] = D, t[47] = ct, t[48] = Xt, t[49] = W, t[50] = _, t[51] = k, t[52] = y, t[53] = C, t[54] = z, t[55] = Yt, t[56] = H, t[57] = Ft, t[58] = O, t[59] = tt) : tt = t[59], tt;
|
|
2387
|
+
}
|
|
2388
|
+
function sa(e) {
|
|
2389
|
+
const t = Me.c(61), {
|
|
2390
|
+
data: l,
|
|
2391
|
+
graphTitle: X,
|
|
2392
|
+
colors: Rt,
|
|
2393
|
+
sources: Ut,
|
|
2394
|
+
graphDescription: jt,
|
|
2395
|
+
barPadding: Mt,
|
|
2396
|
+
showTicks: St,
|
|
2397
|
+
leftMargin: H,
|
|
2398
|
+
rightMargin: U,
|
|
2399
|
+
topMargin: O,
|
|
2400
|
+
bottomMargin: G,
|
|
2401
|
+
truncateBy: gt,
|
|
2402
|
+
showLabels: st,
|
|
2403
|
+
showValues: kt,
|
|
2404
|
+
backgroundColor: Y,
|
|
2405
|
+
height: nt,
|
|
2406
|
+
width: Tt,
|
|
2407
|
+
footNote: Ct,
|
|
2408
|
+
colorDomain: Yt,
|
|
2409
|
+
colorLegendTitle: M,
|
|
2410
|
+
padding: J,
|
|
2411
|
+
tooltip: S,
|
|
2412
|
+
onSeriesMouseOver: z,
|
|
2413
|
+
relativeHeight: ut,
|
|
2414
|
+
refValues: K,
|
|
2415
|
+
graphID: yt,
|
|
2416
|
+
maxValue: B,
|
|
2417
|
+
onSeriesMouseClick: Q,
|
|
2418
|
+
graphDownload: lt,
|
|
2419
|
+
dataDownload: u,
|
|
2420
|
+
language: s,
|
|
2421
|
+
theme: a,
|
|
2422
|
+
labelOrder: f,
|
|
2423
|
+
minHeight: x,
|
|
2424
|
+
maxBarThickness: y,
|
|
2425
|
+
sortParameter: m,
|
|
2426
|
+
sortData: rt,
|
|
2427
|
+
maxNumberOfBars: F,
|
|
2428
|
+
minBarThickness: L,
|
|
2429
|
+
ariaLabel: T,
|
|
2430
|
+
resetSelectionOnDoubleClick: Et,
|
|
2431
|
+
detailsOnClick: Bt,
|
|
2432
|
+
barAxisTitle: xt,
|
|
2433
|
+
noOfTicks: Ft,
|
|
2434
|
+
valueColor: Gt,
|
|
2435
|
+
orientation: D,
|
|
2436
|
+
styles: V,
|
|
2437
|
+
classNames: Z,
|
|
2438
|
+
filterNA: p,
|
|
2439
|
+
animate: b,
|
|
2440
|
+
customLayers: I,
|
|
2441
|
+
showColorScale: C,
|
|
2442
|
+
timeline: N,
|
|
2443
|
+
naLabel: mt,
|
|
2444
2444
|
hideAxisLine: Pt,
|
|
2445
|
-
|
|
2446
|
-
} = e,
|
|
2447
|
-
let
|
|
2448
|
-
return t[0] !==
|
|
2445
|
+
numberDisplayOptions: Lt
|
|
2446
|
+
} = e, Ht = D === void 0 ? "vertical" : D, ct = Pt === void 0 ? !1 : Pt, Xt = Lt?.suffix, W = Lt?.prefix, _ = Lt?.precision, k = Lt?.locale, tt = Lt?.padZeros;
|
|
2447
|
+
let at;
|
|
2448
|
+
return t[0] !== b || t[1] !== T || t[2] !== Y || t[3] !== xt || t[4] !== Mt || t[5] !== G || t[6] !== Z || t[7] !== Yt || t[8] !== M || t[9] !== Rt || t[10] !== I || t[11] !== l || t[12] !== u || t[13] !== Bt || t[14] !== p || t[15] !== Ct || t[16] !== jt || t[17] !== lt || t[18] !== yt || t[19] !== X || t[20] !== nt || t[21] !== ct || t[22] !== f || t[23] !== s || t[24] !== H || t[25] !== y || t[26] !== F || t[27] !== B || t[28] !== L || t[29] !== x || t[30] !== mt || t[31] !== Ft || t[32] !== Q || t[33] !== z || t[34] !== Ht || t[35] !== J || t[36] !== K || t[37] !== ut || t[38] !== Et || t[39] !== U || t[40] !== C || t[41] !== st || t[42] !== St || t[43] !== kt || t[44] !== rt || t[45] !== m || t[46] !== Ut || t[47] !== V || t[48] !== Xt || t[49] !== W || t[50] !== _ || t[51] !== k || t[52] !== tt || t[53] !== a || t[54] !== N || t[55] !== S || t[56] !== O || t[57] !== gt || t[58] !== Gt || t[59] !== Tt ? (at = /* @__PURE__ */ i.jsx(nl, { data: l, graphTitle: X, colors: Rt, sources: Ut, graphDescription: jt, barPadding: Mt, showTicks: St, leftMargin: H, rightMargin: U, topMargin: O, bottomMargin: G, truncateBy: gt, showLabels: st, showValues: kt, backgroundColor: Y, suffix: Xt, prefix: W, height: nt, width: Tt, footNote: Ct, colorDomain: Yt, colorLegendTitle: M, padding: J, tooltip: S, onSeriesMouseOver: z, relativeHeight: ut, refValues: K, graphID: yt, maxValue: B, onSeriesMouseClick: Q, graphDownload: lt, dataDownload: u, language: s, theme: a, labelOrder: f, minHeight: x, maxBarThickness: y, sortParameter: m, sortData: rt, maxNumberOfBars: F, minBarThickness: L, ariaLabel: T, resetSelectionOnDoubleClick: Et, styles: V, detailsOnClick: Bt, barAxisTitle: xt, noOfTicks: Ft, valueColor: Gt, classNames: Z, filterNA: p, animate: b, precision: _, customLayers: I, showColorScale: C, timeline: N, naLabel: mt, orientation: Ht, hideAxisLine: ct, locale: k, padZeros: tt }), t[0] = b, t[1] = T, t[2] = Y, t[3] = xt, t[4] = Mt, t[5] = G, t[6] = Z, t[7] = Yt, t[8] = M, t[9] = Rt, t[10] = I, t[11] = l, t[12] = u, t[13] = Bt, t[14] = p, t[15] = Ct, t[16] = jt, t[17] = lt, t[18] = yt, t[19] = X, t[20] = nt, t[21] = ct, t[22] = f, t[23] = s, t[24] = H, t[25] = y, t[26] = F, t[27] = B, t[28] = L, t[29] = x, t[30] = mt, t[31] = Ft, t[32] = Q, t[33] = z, t[34] = Ht, t[35] = J, t[36] = K, t[37] = ut, t[38] = Et, t[39] = U, t[40] = C, t[41] = st, t[42] = St, t[43] = kt, t[44] = rt, t[45] = m, t[46] = Ut, t[47] = V, t[48] = Xt, t[49] = W, t[50] = _, t[51] = k, t[52] = tt, t[53] = a, t[54] = N, t[55] = S, t[56] = O, t[57] = gt, t[58] = Gt, t[59] = Tt, t[60] = at) : at = t[60], at;
|
|
2449
2449
|
}
|
|
2450
2450
|
export {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2451
|
+
ia as GroupedBarGraph,
|
|
2452
|
+
ea as SimpleBarGraph,
|
|
2453
|
+
sa as StackedBarGraph
|
|
2454
2454
|
};
|
|
2455
2455
|
//# sourceMappingURL=BarGraph.js.map
|