@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/ScatterPlot.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-D4pAp7u0.cjs"),oi=require("./parse-xYI9yrvL.cjs"),E=require("react"),ni=require("./getSliderMarks-BzrpHrHS.cjs"),si=require("./index-DQA8q5sC.cjs"),yi=require("./index-Cno4Q0YE.cjs"),li=require("./simple-statistics-xm8c0LQQ.cjs"),vi=require("./Tooltip-Hr46paWP.cjs"),A=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),oe=require("./Colors.cjs"),ri=require("./numberFormattingFunction-Cn9R7CM9.cjs"),ii=require("./customArea-BAcQ3pBM.cjs"),ai=require("./Axis-BTaS9oPQ.cjs"),ci=require("./AxisTitle-DP_evhbe.cjs"),bi=require("./XTicksAndGridLines-C5DuC5oY.cjs"),ui=require("./ReferenceLine-CpU4G01Y.cjs"),Ai=require("./RegressionLine-BFoBiVJk.cjs"),ji=require("./YTicksAndGridLines-DFjm8RCc.cjs"),Oi=require("./index-BuhBhuCq.cjs"),Ci=require("./DetailsModal-jmmKRMRM.cjs"),Ri=require("./pow-BnyPO-NX.cjs"),xi=require("./linear-CgUCbw9F.cjs"),ki=require("./delaunay-rcy0HhZi.cjs"),Bt=require("./proxy-CqH8m8IQ.cjs"),wi=require("./use-in-view-dnRv_qqF.cjs"),fi=require("./index-FXfr51ZM.cjs"),Li=require("./GraphFooter.cjs"),Si=require("./GraphHeader.cjs"),Ei=require("./ColorLegendWithMouseOver.cjs"),$i=require("./EmptyState-CFmiFPHz.cjs"),mi=require("./index-BhI7mBJx.cjs"),Ni=require("./ensureCompleteData-D9bQTiVS.cjs"),di=require("./uniqBy-O05lp2S5.cjs"),pi=require("./GraphContainer-Cul9b74X.cjs");function Vi(i){const e=n.compilerRuntimeExports.c(222),{data:o,width:ne,height:w,showLabels:He,colors:f,colorDomain:R,radius:Y,xAxisTitle:y,yAxisTitle:B,leftMargin:F,rightMargin:ft,topMargin:Lt,bottomMargin:Yt,tooltip:mt,onSeriesMouseOver:se,refXValues:St,refYValues:Et,highlightAreaSettings:$t,selectedColor:Le,highlightedDataPoints:z,maxRadiusValue:dt,maxXValue:pt,minXValue:k,maxYValue:Ge,minYValue:j,onSeriesMouseClick:$,rtl:We,annotations:ht,customHighlightAreaSettings:Be,regressionLine:Se,resetSelectionOnDoubleClick:Ee,detailsOnClick:N,noOfXTicks:ze,noOfYTicks:Je,labelColor:J,xSuffix:$e,ySuffix:Ne,xPrefix:Ve,yPrefix:Me,styles:s,classNames:l,animate:u,dimmedOpacity:V,precision:M,showHighlightedDataPointsLabels:Nt,customLayers:q,showVoronoiTesselation:Ke,useVoronoiInteraction:Vt,locale:D}=i,Mt=E.useRef(null);let gt;e[0]!==u.amount||e[1]!==u.once?(gt={once:u.once,amount:u.amount},e[0]=u.amount,e[1]=u.once,e[2]=gt):gt=e[2];const v=wi.useInView(Mt,gt),[I,qe]=E.useState(void 0),[U,d]=E.useState(void 0),[m,De]=E.useState(void 0),[yt,Ie]=E.useState(void 0),Qe=y?Yt+50:Yt,Ze=B?F+30:F;let vt;e[3]!==ft||e[4]!==Qe||e[5]!==Ze||e[6]!==Lt?(vt={top:Lt,bottom:Qe,left:Ze,right:ft},e[3]=ft,e[4]=Qe,e[5]=Ze,e[6]=Lt,e[7]=vt):vt=e[7];const h=vt;let Te,le,re,ae,ce,ue,H,xe,fe,me,K,de,Q,pe,Z,he,G,ge;if(e[8]!==u||e[9]!==ht||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==R||e[20]!==f||e[21]!==Be||e[22]!==q||e[23]!==o||e[24]!==N||e[25]!==V||e[26]!==w||e[27]!==$t||e[28]!==z||e[29]!==v||e[30]!==J||e[31]!==F||e[32]!==D||e[33]!==h.bottom||e[34]!==h.left||e[35]!==h.right||e[36]!==h.top||e[37]!==dt||e[38]!==pt||e[39]!==Ge||e[40]!==k||e[41]!==j||e[42]!==U||e[43]!==I||e[44]!==ze||e[45]!==Je||e[46]!==$||e[47]!==se||e[48]!==M||e[49]!==Y||e[50]!==St||e[51]!==Et||e[52]!==Se||e[53]!==Ee||e[54]!==We||e[55]!==Le||e[56]!==Nt||e[57]!==He||e[58]!==Ke||e[59]!==s?.graphObjectValues||e[60]!==s?.regLine||e[61]!==s?.xAxis?.axis||e[62]!==s?.xAxis?.gridLines||e[63]!==s?.xAxis?.labels||e[64]!==s?.xAxis?.title||e[65]!==s?.yAxis?.gridLines||e[66]!==s?.yAxis?.labels||e[67]!==s?.yAxis?.title||e[68]!==Vt||e[69]!==ne||e[70]!==y||e[71]!==Ve||e[72]!==$e||e[73]!==B||e[74]!==Me||e[75]!==Ne){const bt=o.map(to),b=ne-h.left-h.right,g=w-h.top-h.bottom,L=o.filter(eo).length!==o.length?Ri.sqrt().domain([0,dt]).range([.25,Y]).nice():void 0,Pe=bt.filter(_i).length===0?bt.filter(Zi):yi.orderBy(bt.filter(Qi),"radius","desc"),x=xi.linear().domain([k,pt]).range([0,b]).nice(),r=xi.linear().domain([j,Ge]).range([g,0]).nice(),qt=x.ticks(ze),Dt=r.ticks(Je),Ft=ki.Delaunay.from(Pe,t=>x(t.x),t=>r(t.y)).voronoi([0,0,b<0?0:b,g<0?0:g]),Ut=li.linearRegression(o.filter(Ki).map(t=>[x(t.x),r(t.y)])),At=li.linearRegressionLine(Ut);le=Bt.motion.svg,xe=`${ne}px`,fe=`${w}px`,me=`0 0 ${ne} ${w}`,K="ltr",de=Mt,re=`translate(${h.left},${h.top})`;let _e;e[94]!==u||e[95]!==Be||e[96]!==v||e[97]!==x||e[98]!==r?(_e=n.jsxRuntimeExports.jsx(ii.CustomArea,{areaSettings:Be,scaleX:x,scaleY:r,animate:u,isInView:v},"custom-area"),e[94]=u,e[95]=Be,e[96]=v,e[97]=x,e[98]=r,e[99]=_e):_e=e[99],ae=n.jsxRuntimeExports.jsxs(fi.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(Oi.HighlightAreaForScatterPlot,{areaSettings:$t,width:b,height:g,scaleX:x,scaleY:r,animate:u,isInView:v},"highlight-area"),_e]});const jt=s?.yAxis?.gridLines,et=s?.yAxis?.labels;let tt;e[100]!==jt||e[101]!==et?(tt={gridLines:jt,labels:et},e[100]=jt,e[101]=et,e[102]=tt):tt=e[102];const it=l?.yAxis?.gridLines,a=l?.yAxis?.labels;let ot;e[103]!==it||e[104]!==a?(ot={gridLines:it,labels:a},e[103]=it,e[104]=a,e[105]=ot):ot=e[105];const Ot=r(j<0?0:j),Ct=r(j<0?0:j),nt=b+h.right,Ht=j<0?0:j;let te;e[106]!==D||e[107]!==M||e[108]!==Ht||e[109]!==Me||e[110]!==Ne?(te=ri.numberFormattingFunction(Ht,void 0,M,Me,Ne,D),e[106]=D,e[107]=M,e[108]=Ht,e[109]=Me,e[110]=Ne,e[111]=te):te=e[111];const Gt=r(j<0?0:j);let O;e[112]!==Gt?(O={x:0,y:Gt,dy:"0.33em",dx:-4},e[112]=Gt,e[113]=O):O=e[113];const Wt=l?.xAxis?.axis,Xe=l?.yAxis?.labels;let c;e[114]!==Wt||e[115]!==Xe?(c={axis:Wt,label:Xe},e[114]=Wt,e[115]=Xe,e[116]=c):c=e[116];const T=s?.xAxis?.axis;let je;e[117]!==s?.yAxis?.labels?(je=s?.yAxis?.labels||{},e[117]=s?.yAxis?.labels,e[118]=je):je=e[118];let Oe;e[119]!==je?(Oe={textAnchor:"end",...je},e[119]=je,e[120]=Oe):Oe=e[120];let st;e[121]!==T||e[122]!==Oe?(st={axis:T,label:Oe},e[121]=T,e[122]=Oe,e[123]=st):st=e[123];let lt;e[124]!==Ot||e[125]!==Ct||e[126]!==nt||e[127]!==te||e[128]!==O||e[129]!==c||e[130]!==st?(lt=n.jsxRuntimeExports.jsx(ai.Axis,{y1:Ot,y2:Ct,x1:0,x2:nt,label:te,labelPos:O,classNames:c,styles:st}),e[124]=Ot,e[125]=Ct,e[126]=nt,e[127]=te,e[128]=O,e[129]=c,e[130]=st,e[131]=lt):lt=e[131];const It=0-F-15,rt=g/2,at=s?.yAxis?.title,ct=l?.yAxis?.title;let Ye;e[132]!==It||e[133]!==rt||e[134]!==at||e[135]!==ct||e[136]!==B?(Ye=n.jsxRuntimeExports.jsx(ci.AxisTitle,{x:It,y:rt,style:at,className:ct,text:B,rotate90:!0}),e[132]=It,e[133]=rt,e[134]=at,e[135]=ct,e[136]=B,e[137]=Ye):Ye=e[137],ce=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(ji.YTicksAndGridLines,{values:Dt.filter(Ji),y:Dt.filter(zi).map(t=>r(t)),x1:0,x2:b+h.right,styles:tt,classNames:ot,suffix:Ne,prefix:Me,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:M,locale:D}),lt,Ye]});const Rt=s?.xAxis?.gridLines,ut=s?.xAxis?.labels;let Fe;e[138]!==Rt||e[139]!==ut?(Fe={gridLines:Rt,labels:ut},e[138]=Rt,e[139]=ut,e[140]=Fe):Fe=e[140];const kt=l?.xAxis?.gridLines,wt=l?.xAxis?.labels;let ie;e[141]!==kt||e[142]!==wt?(ie={gridLines:kt,labels:wt},e[141]=kt,e[142]=wt,e[143]=ie):ie=e[143];const Ce=x(k<0?0:k),Re=x(k<0?0:k),ke=k<0?0:k;let P;e[144]!==D||e[145]!==M||e[146]!==ke||e[147]!==Ve||e[148]!==$e?(P=ri.numberFormattingFunction(ke,void 0,M,Ve,$e,D),e[144]=D,e[145]=M,e[146]=ke,e[147]=Ve,e[148]=$e,e[149]=P):P=e[149];const we=x(k<0?0:k);let X;e[150]!==g||e[151]!==we?(X={x:we,y:g,dy:"1em",dx:0},e[150]=g,e[151]=we,e[152]=X):X=e[152];const xt=l?.xAxis?.axis,p=l?.yAxis?.labels;let S;e[153]!==xt||e[154]!==p?(S={axis:xt,label:p},e[153]=xt,e[154]=p,e[155]=S):S=e[155];const Kt=s?.xAxis?.axis;let Tt;e[156]!==s?.yAxis?.labels?(Tt=s?.yAxis?.labels||{},e[156]=s?.yAxis?.labels,e[157]=Tt):Tt=e[157];let Pt;e[158]!==Tt?(Pt={textAnchor:"middle",...Tt},e[158]=Tt,e[159]=Pt):Pt=e[159];let Xt;e[160]!==Kt||e[161]!==Pt?(Xt={axis:Kt,label:Pt},e[160]=Kt,e[161]=Pt,e[162]=Xt):Xt=e[162];let zt;e[163]!==g||e[164]!==Ce||e[165]!==Re||e[166]!==P||e[167]!==X||e[168]!==S||e[169]!==Xt?(zt=n.jsxRuntimeExports.jsx(ai.Axis,{x1:Ce,x2:Re,y1:0,y2:g,label:P,labelPos:X,classNames:S,styles:Xt}),e[163]=g,e[164]=Ce,e[165]=Re,e[166]=P,e[167]=X,e[168]=S,e[169]=Xt,e[170]=zt):zt=e[170];const Qt=b/2,Zt=g+30,_t=s?.xAxis?.title,ei=l?.xAxis?.title;let Jt;e[171]!==Qt||e[172]!==Zt||e[173]!==_t||e[174]!==ei||e[175]!==y?(Jt=n.jsxRuntimeExports.jsx(ci.AxisTitle,{x:Qt,y:Zt,style:_t,className:ei,text:y}),e[171]=Qt,e[172]=Zt,e[173]=_t,e[174]=ei,e[175]=y,e[176]=Jt):Jt=e[176],ue=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(bi.XTicksAndGridLines,{values:qt.filter(Bi),x:qt.filter(Wi).map(t=>x(t)),y1:0,y2:g,styles:Fe,classNames:ie,suffix:$e,prefix:Ve,labelType:"primary",showGridLines:!0,precision:M,locale:D}),zt,Jt]}),e[177]!==q?(H=q.filter(Gi).map(Hi),e[177]=q,e[178]=H):H=e[178],Te=fi.AnimatePresence,Q=Vt&&Pe.map((t,Ue)=>n.jsxRuntimeExports.jsx("path",{d:Ft.renderCell(Pe.findIndex(C=>C.id===t.id)),opacity:Ke?1:0,className:"stroke-primary-gray-700 dark:stroke-primary-gray-300",style:{fillOpacity:0,strokeWidth:1},onMouseEnter:C=>{qe(t),Ie(C.clientY),De(C.clientX),se?.(t)},onMouseMove:C=>{qe(t),Ie(C.clientY),De(C.clientX)},onMouseLeave:()=>{qe(void 0),De(void 0),Ie(void 0),se?.(void 0)},onClick:()=>{($||N)&&(si.isEqual(U,t)&&Ee?(d(void 0),$?.(void 0)):(d(t),$?.(t)))}},`tesselation_${t.label||Ue}`)),pe=Pe.map((t,Ue)=>n.jsxRuntimeExports.jsxs(Bt.motion.g,{variants:{initial:{x:x(t.x),y:r(t.y),opacity:Le?t.color&&f[R.indexOf(`${t.color}`)]===Le?1:V:I?I.id===t.id?1:V:z?z.indexOf(t.label||"")!==-1?1:V:1},whileInView:{x:x(t.x),y:r(t.y),opacity:Le?t.color&&f[R.indexOf(`${t.color}`)]===Le?1:V:I?I.id===t.id?1:V:z?z.indexOf(t.label||"")!==-1?1:V:1,transition:{duration:u.duration}}},initial:"initial",animate:v?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},onMouseEnter:C=>{qe(t),Ie(C.clientY),De(C.clientX),se?.(t)},onMouseMove:C=>{qe(t),Ie(C.clientY),De(C.clientX)},onMouseLeave:()=>{qe(void 0),De(void 0),Ie(void 0),se?.(void 0)},onClick:()=>{($||N)&&(si.isEqual(U,t)&&Ee?(d(void 0),$?.(void 0)):(d(t),$?.(t)))},children:[n.jsxRuntimeExports.jsx(Bt.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:u.duration}},variants:{initial:{r:0,fill:o.filter(Ui).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray,stroke:o.filter(Fi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray},whileInView:{r:L?L(t.radius||0):Y,fill:o.filter(Yi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray,stroke:o.filter(Xi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray,transition:{duration:u.duration}}},initial:"initial",animate:v?"whileInView":"initial",style:{fillOpacity:.6}}),He&&!A.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Bt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:L?L(t.radius||0):Y,opacity:0,fill:J||(o.filter(Pi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray)},whileInView:{x:L?L(t.radius||0):Y,opacity:1,fill:J||(o.filter(Ti).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:v?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):z&&!A.checkIfNullOrUndefined(t.label)&&Nt&&z.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Bt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:L?L(t.radius||0):Y,opacity:0,fill:J||(o.filter(Ii).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray)},whileInView:{x:L?L(t.radius||0):Y,opacity:1,fill:J||(o.filter(Di).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:oe.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:v?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Ue}`)),Z=St.map((t,Ue)=>n.jsxRuntimeExports.jsx(ui.RefLineX,{text:t.text,color:t.color,x:x(t.value),y1:0,y2:g,textSide:x(t.value)>b*.75||We?"left":"right",classNames:t.classNames,styles:t.styles,animate:u,isInView:v},Ue)),he=Et.map((t,Ue)=>n.jsxRuntimeExports.jsx(ui.RefLineY,{text:t.text,color:t.color,y:r(t.value),x1:0,x2:b,classNames:t.classNames,styles:t.styles,animate:u,isInView:v},Ue));const ti=ht.map((t,Ue)=>{const C=ii.getLineEndPoint({x:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?r(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?x(t.xCoordinate):0,y:t.yCoordinate?r(t.yCoordinate):0},A.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),hi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?r(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?r(t.yCoordinate):0,cx:t.xCoordinate?x(t.xCoordinate):0,circleRadius:A.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,gi={y:t.yCoordinate?r(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:We?0:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:We?t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):b+h.right-(t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(ii.Annotation,{color:t.color,connectorsSettings:hi,labelSettings:gi,text:t.text,classNames:t.classNames,styles:t.styles,animate:u,isInView:v},Ue)});e[179]!==ti?(G=n.jsxRuntimeExports.jsx("g",{children:ti}),e[179]=ti,e[180]=G):G=e[180],ge=Se?n.jsxRuntimeExports.jsx(Ai.RegressionLine,{x1:0,x2:b,y1:At(0),y2:At(b),graphHeight:g,graphWidth:b,className:l?.regLine,style:s?.regLine,color:typeof Se=="string"?Se:void 0,animate:u,isInView:v}):null,e[8]=u,e[9]=ht,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=R,e[20]=f,e[21]=Be,e[22]=q,e[23]=o,e[24]=N,e[25]=V,e[26]=w,e[27]=$t,e[28]=z,e[29]=v,e[30]=J,e[31]=F,e[32]=D,e[33]=h.bottom,e[34]=h.left,e[35]=h.right,e[36]=h.top,e[37]=dt,e[38]=pt,e[39]=Ge,e[40]=k,e[41]=j,e[42]=U,e[43]=I,e[44]=ze,e[45]=Je,e[46]=$,e[47]=se,e[48]=M,e[49]=Y,e[50]=St,e[51]=Et,e[52]=Se,e[53]=Ee,e[54]=We,e[55]=Le,e[56]=Nt,e[57]=He,e[58]=Ke,e[59]=s?.graphObjectValues,e[60]=s?.regLine,e[61]=s?.xAxis?.axis,e[62]=s?.xAxis?.gridLines,e[63]=s?.xAxis?.labels,e[64]=s?.xAxis?.title,e[65]=s?.yAxis?.gridLines,e[66]=s?.yAxis?.labels,e[67]=s?.yAxis?.title,e[68]=Vt,e[69]=ne,e[70]=y,e[71]=Ve,e[72]=$e,e[73]=B,e[74]=Me,e[75]=Ne,e[76]=Te,e[77]=le,e[78]=re,e[79]=ae,e[80]=ce,e[81]=ue,e[82]=H,e[83]=xe,e[84]=fe,e[85]=me,e[86]=K,e[87]=de,e[88]=Q,e[89]=pe,e[90]=Z,e[91]=he,e[92]=G,e[93]=ge}else Te=e[76],le=e[77],re=e[78],ae=e[79],ce=e[80],ue=e[81],H=e[82],xe=e[83],fe=e[84],me=e[85],K=e[86],de=e[87],Q=e[88],pe=e[89],Z=e[90],he=e[91],G=e[92],ge=e[93];let ye;e[181]!==Te||e[182]!==Q||e[183]!==pe||e[184]!==Z||e[185]!==he||e[186]!==G||e[187]!==ge?(ye=n.jsxRuntimeExports.jsxs(Te,{children:[Q,pe,Z,he,G,ge]}),e[181]=Te,e[182]=Q,e[183]=pe,e[184]=Z,e[185]=he,e[186]=G,e[187]=ge,e[188]=ye):ye=e[188];let ve;e[189]!==q?(ve=q.filter(qi).map(Mi),e[189]=q,e[190]=ve):ve=e[190];let be;e[191]!==re||e[192]!==ae||e[193]!==ce||e[194]!==ue||e[195]!==H||e[196]!==ye||e[197]!==ve?(be=n.jsxRuntimeExports.jsxs("g",{transform:re,children:[ae,ce,ue,H,ye,ve]}),e[191]=re,e[192]=ae,e[193]=ce,e[194]=ue,e[195]=H,e[196]=ye,e[197]=ve,e[198]=be):be=e[198];let Ae;e[199]!==le||e[200]!==xe||e[201]!==fe||e[202]!==me||e[203]!==K||e[204]!==de||e[205]!==be?(Ae=n.jsxRuntimeExports.jsx(le,{width:xe,height:fe,viewBox:me,direction:K,ref:de,children:be}),e[199]=le,e[200]=xe,e[201]=fe,e[202]=me,e[203]=K,e[204]=de,e[205]=be,e[206]=Ae):Ae=e[206];let _;e[207]!==l?.tooltip||e[208]!==m||e[209]!==yt||e[210]!==I||e[211]!==s?.tooltip||e[212]!==mt?(_=I&&mt&&m&&yt?n.jsxRuntimeExports.jsx(vi.Tooltip,{data:I,body:mt,xPos:m,yPos:yt,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[207]=l?.tooltip,e[208]=m,e[209]=yt,e[210]=I,e[211]=s?.tooltip,e[212]=mt,e[213]=_):_=e[213];let ee;e[214]!==l?.modal||e[215]!==N||e[216]!==U?(ee=N&&U!==void 0?n.jsxRuntimeExports.jsx(Ci.DetailsModal,{body:N,data:U,setData:d,className:l?.modal}):null,e[214]=l?.modal,e[215]=N,e[216]=U,e[217]=ee):ee=e[217];let W;return e[218]!==Ae||e[219]!==_||e[220]!==ee?(W=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Ae,_,ee]}),e[218]=Ae,e[219]=_,e[220]=ee,e[221]=W):W=e[221],W}function Mi(i){return i.layer}function qi(i){return i.position==="after"}function Di(i){return i.color}function Ii(i){return i.color}function Ti(i){return i.color}function Pi(i){return i.color}function Xi(i){return i.color}function Yi(i){return i.color}function Fi(i){return i.color}function Ui(i){return i.color}function Hi(i){return i.layer}function Gi(i){return i.position==="before"}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return i!==0}function Ji(i){return i!==0}function Ki(i){return!A.checkIfNullOrUndefined(i.x)&&!A.checkIfNullOrUndefined(i.y)}function Qi(i){return!A.checkIfNullOrUndefined(i.radius)&&!A.checkIfNullOrUndefined(i.x)&&!A.checkIfNullOrUndefined(i.y)}function Zi(i){return!A.checkIfNullOrUndefined(i.x)&&!A.checkIfNullOrUndefined(i.y)}function _i(i){return!A.checkIfNullOrUndefined(i.radius)}function eo(i){return i.radius===void 0||i.radius===null}function to(i,e){return{...i,id:`${e}`}}function io(i){const e=n.compilerRuntimeExports.c(144),{data:o,graphTitle:ne,colors:w,sources:He,graphDescription:f,showLabels:R,height:Y,width:y,footNote:B,colorDomain:F,colorLegendTitle:ft,radius:Lt,xAxisTitle:Yt,yAxisTitle:mt,padding:se,backgroundColor:St,leftMargin:Et,rightMargin:$t,topMargin:Le,bottomMargin:z,tooltip:dt,relativeHeight:pt,onSeriesMouseOver:k,refXValues:Ge,refYValues:j,highlightAreaSettings:$,showColorScale:We,highlightedDataPoints:ht,showHighlightedDataPointsLabels:Be,graphID:Se,maxRadiusValue:Ee,maxXValue:N,minXValue:ze,maxYValue:Je,minYValue:J,xSuffix:$e,ySuffix:Ne,xPrefix:Ve,yPrefix:Me,onSeriesMouseClick:s,graphDownload:l,dataDownload:u,language:V,showNAColor:M,minHeight:Nt,annotations:q,customHighlightAreaSettings:Ke,theme:Vt,regressionLine:D,ariaLabel:Mt,resetSelectionOnDoubleClick:gt,detailsOnClick:v,noOfXTicks:I,noOfYTicks:qe,labelColor:U,styles:d,classNames:m,animate:De,dimmedOpacity:yt,precision:Ie,customLayers:Qe,timeline:Ze,showVoronoiTesselation:vt,useVoronoiInteraction:h,locale:Te}=i,le=R===void 0?!1:R,re=Lt===void 0?5:Lt,ae=Yt===void 0?"X Axis":Yt,ce=mt===void 0?"Y Axis":mt,ue=St===void 0?!1:St,H=Et===void 0?0:Et,xe=$t===void 0?10:$t,fe=Le===void 0?20:Le,me=z===void 0?50:z;let K;e[0]!==Ge?(K=Ge===void 0?[]:Ge,e[0]=Ge,e[1]=K):K=e[1];const de=K;let Q;e[2]!==j?(Q=j===void 0?[]:j,e[2]=j,e[3]=Q):Q=e[3];const pe=Q;let Z;e[4]!==$?(Z=$===void 0?[]:$,e[4]=$,e[5]=Z):Z=e[5];const he=Z,G=We===void 0?!0:We,ge=Be===void 0?!1:Be,ye=$e===void 0?"":$e,ve=Ne===void 0?"":Ne,be=Ve===void 0?"":Ve,Ae=Me===void 0?"":Me,_=l===void 0?!1:l,ee=u===void 0?!1:u,W=V===void 0?"en":V,bt=M===void 0?!0:M,b=Nt===void 0?0:Nt;let g;e[6]!==q?(g=q===void 0?[]:q,e[6]=q,e[7]=g):g=e[7];const L=g;let Pe;e[8]!==Ke?(Pe=Ke===void 0?[]:Ke,e[8]=Ke,e[9]=Pe):Pe=e[9];const x=Pe,r=Vt===void 0?"light":Vt,qt=D===void 0?!1:D,Dt=gt===void 0?!0:gt,Ft=I===void 0?5:I,Ut=qe===void 0?5:qe,At=De===void 0?!1:De,_e=yt===void 0?.3:yt,jt=Ie===void 0?2:Ie;let et;e[10]!==Qe?(et=Qe===void 0?[]:Qe,e[10]=Qe,e[11]=et):et=e[11];const tt=et;let it;e[12]!==Ze?(it=Ze===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:Ze,e[12]=Ze,e[13]=it):it=e[13];const a=it,ot=vt===void 0?!1:vt,Ot=h===void 0?!0:h,Ct=Te===void 0?"en":Te,[nt,Ht]=E.useState(0),[te,Gt]=E.useState(0),[O,Wt]=E.useState(a.autoplay);let Xe;if(e[14]!==o||e[15]!==a.dateFormat){let p;e[17]!==a.dateFormat?(p=S=>oi.parse(`${S.date}`,a.dateFormat||"yyyy",new Date).getTime(),e[17]=a.dateFormat,e[18]=p):p=e[18],Xe=[...new Set(o.filter(No).map(p))],Xe.sort($o),e[14]=o,e[15]=a.dateFormat,e[16]=Xe}else Xe=e[16];const c=Xe,[T,je]=E.useState(a.autoplay?0:c.length-1),[Oe,st]=E.useState(void 0),lt=E.useRef(null),It=E.useRef(null);let rt,at;e[19]===Symbol.for("react.memo_cache_sentinel")?(rt=()=>{const p=new ResizeObserver(S=>{Ht(S[0].target.clientWidth||620),Gt(S[0].target.clientHeight||480)});return lt.current&&p.observe(lt.current),()=>p.disconnect()},at=[],e[19]=rt,e[20]=at):(rt=e[19],at=e[20]),E.useEffect(rt,at);let ct,Ye;e[21]!==O||e[22]!==a.speed||e[23]!==c?(ct=()=>{const p=setInterval(()=>{je(S=>S<c.length-1?S+1:0)},(a.speed||2)*1e3);return O||clearInterval(p),()=>clearInterval(p)},Ye=[c,O,a.speed],e[21]=O,e[22]=a.speed,e[23]=c,e[24]=ct,e[25]=Ye):(ct=e[24],Ye=e[25]),E.useEffect(ct,Ye);const Rt=a.dateFormat||"yyyy";let ut;e[26]!==T||e[27]!==Rt||e[28]!==a.showOnlyActiveDate||e[29]!==c?(ut=ni.getSliderMarks(c,T,a.showOnlyActiveDate,Rt),e[26]=T,e[27]=Rt,e[28]=a.showOnlyActiveDate,e[29]=c,e[30]=ut):ut=e[30];const Fe=ut,kt=m?.graphContainer,wt=d?.graphContainer;let ie;e[31]!==m?.description||e[32]!==m?.title||e[33]!==o||e[34]!==ee||e[35]!==f||e[36]!==_||e[37]!==ne||e[38]!==d?.description||e[39]!==d?.title||e[40]!==y?(ie=ne||f||_||ee?n.jsxRuntimeExports.jsx(Si.GraphHeader,{styles:{title:d?.title,description:d?.description},classNames:{title:m?.title,description:m?.description},graphTitle:ne,graphDescription:f,width:y,graphDownload:_?It:void 0,dataDownload:ee?o.map(Eo).filter(So).length>0?o.map(Lo).filter(wo):o.filter(ko):null}):null,e[31]=m?.description,e[32]=m?.title,e[33]=o,e[34]=ee,e[35]=f,e[36]=_,e[37]=ne,e[38]=d?.description,e[39]=d?.title,e[40]=y,e[41]=ie):ie=e[41];let Ce;e[42]!==T||e[43]!==Fe||e[44]!==O||e[45]!==a.enabled||e[46]!==c?(Ce=a.enabled&&c.length>0&&Fe?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Wt(!O)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":O?"Click to pause animation":"Click to play animation",children:O?n.jsxRuntimeExports.jsx(mi.Pause,{}):n.jsxRuntimeExports.jsx(mi.Play,{})}),n.jsxRuntimeExports.jsx(ni.Nr,{min:c[0],max:c[c.length-1],marks:Fe,step:null,defaultValue:c[c.length-1],value:c[T],onChangeComplete:p=>{je(c.indexOf(p))},onChange:p=>{je(c.indexOf(p))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[42]=T,e[43]=Fe,e[44]=O,e[45]=a.enabled,e[46]=c,e[47]=Ce):Ce=e[47];let Re;e[48]!==m?.colorLegend||e[49]!==F||e[50]!==ft||e[51]!==w||e[52]!==o||e[53]!==G||e[54]!==bt||e[55]!==r||e[56]!==y?(Re=G&&o.filter(Ro).length!==0&&o.length>0?n.jsxRuntimeExports.jsx(Ei.ColorLegendWithMouseOver,{width:y,colorLegendTitle:ft,colors:w||oe.Colors[r].categoricalColors.colors,colorDomain:F||di.uniqBy(o,"color",!0),setSelectedColor:st,showNAColor:bt,className:m?.colorLegend}):null,e[48]=m?.colorLegend,e[49]=F,e[50]=ft,e[51]=w,e[52]=o,e[53]=G,e[54]=bt,e[55]=r,e[56]=y,e[57]=Re):Re=e[57];let ke;e[58]!==o.length?(ke=o.length===0&&n.jsxRuntimeExports.jsx($i.EmptyState,{}),e[58]=o.length,e[59]=ke):ke=e[59];let P;e[60]!==At||e[61]!==L||e[62]!==me||e[63]!==m||e[64]!==F||e[65]!==w||e[66]!==x||e[67]!==tt||e[68]!==o||e[69]!==v||e[70]!==_e||e[71]!==he||e[72]!==ht||e[73]!==T||e[74]!==U||e[75]!==W||e[76]!==H||e[77]!==Ct||e[78]!==Ee||e[79]!==N||e[80]!==Je||e[81]!==ze||e[82]!==J||e[83]!==Ft||e[84]!==Ut||e[85]!==s||e[86]!==k||e[87]!==jt||e[88]!==re||e[89]!==de||e[90]!==pe||e[91]!==qt||e[92]!==Dt||e[93]!==xe||e[94]!==Oe||e[95]!==ge||e[96]!==le||e[97]!==ot||e[98]!==d||e[99]!==te||e[100]!==nt||e[101]!==r||e[102]!==a.dateFormat||e[103]!==a.enabled||e[104]!==dt||e[105]!==fe||e[106]!==c||e[107]!==Ot||e[108]!==ae||e[109]!==be||e[110]!==ye||e[111]!==ce||e[112]!==Ae||e[113]!==ve?(P=nt&&te&&o.length>0?n.jsxRuntimeExports.jsx(Vi,{data:Ni.ensureCompleteDataForScatterPlot(o,a.dateFormat||"yyyy").filter(p=>a.enabled?`${p.date}`===oi.format(new Date(c[T]),a.dateFormat||"yyyy"):p),width:nt,height:te,colorDomain:o.filter(Co).length===0?[]:F||di.uniqBy(o,"color",!0),colors:o.filter(Oo).length===0?w?[w]:[oe.Colors.primaryColors["blue-600"]]:w||oe.Colors[r].categoricalColors.colors,xAxisTitle:ae,yAxisTitle:ce,refXValues:de,refYValues:pe,showLabels:le,radius:re,leftMargin:H,rightMargin:xe,topMargin:fe,bottomMargin:me,tooltip:dt,onSeriesMouseOver:k,highlightAreaSettings:he,showVoronoiTesselation:ot,highlightedDataPoints:o.filter(jo).length===0?[]:ht,showHighlightedDataPointsLabels:ge,selectedColor:Oe,maxRadiusValue:A.checkIfNullOrUndefined(Ee)?Math.max(...o.map(Ao).filter(bo)):Ee,maxXValue:A.checkIfNullOrUndefined(N)?Math.max(...o.map(vo).filter(yo))>0?Math.max(...o.map(go).filter(ho)):0:N,minXValue:A.checkIfNullOrUndefined(ze)?Math.min(...o.map(po).filter(mo))>0?0:Math.min(...o.map(fo).filter(xo)):ze,maxYValue:A.checkIfNullOrUndefined(Je)?Math.max(...o.map(uo).filter(co))>0?Math.max(...o.map(ao).filter(ro)):0:Je,minYValue:A.checkIfNullOrUndefined(J)?Math.min(...o.map(lo).filter(so))>0?0:Math.min(...o.map(no).filter(oo)):J,onSeriesMouseClick:s,rtl:W==="he"||W==="ar",annotations:L,customHighlightAreaSettings:x,regressionLine:qt,resetSelectionOnDoubleClick:Dt,detailsOnClick:v,noOfXTicks:Ft,noOfYTicks:Ut,labelColor:U,xSuffix:ye,ySuffix:ve,xPrefix:be,yPrefix:Ae,styles:d,classNames:m,animate:At===!0?{duration:.5,once:!0,amount:.5}:At||{duration:0,once:!0,amount:0},dimmedOpacity:_e,precision:jt,customLayers:tt,useVoronoiInteraction:Ot,locale:Ct}):null,e[60]=At,e[61]=L,e[62]=me,e[63]=m,e[64]=F,e[65]=w,e[66]=x,e[67]=tt,e[68]=o,e[69]=v,e[70]=_e,e[71]=he,e[72]=ht,e[73]=T,e[74]=U,e[75]=W,e[76]=H,e[77]=Ct,e[78]=Ee,e[79]=N,e[80]=Je,e[81]=ze,e[82]=J,e[83]=Ft,e[84]=Ut,e[85]=s,e[86]=k,e[87]=jt,e[88]=re,e[89]=de,e[90]=pe,e[91]=qt,e[92]=Dt,e[93]=xe,e[94]=Oe,e[95]=ge,e[96]=le,e[97]=ot,e[98]=d,e[99]=te,e[100]=nt,e[101]=r,e[102]=a.dateFormat,e[103]=a.enabled,e[104]=dt,e[105]=fe,e[106]=c,e[107]=Ot,e[108]=ae,e[109]=be,e[110]=ye,e[111]=ce,e[112]=Ae,e[113]=ve,e[114]=P):P=e[114];let we;e[115]!==ke||e[116]!==P?(we=n.jsxRuntimeExports.jsxs(pi.GraphArea,{ref:lt,children:[ke,P]}),e[115]=ke,e[116]=P,e[117]=we):we=e[117];let X;e[118]!==m?.footnote||e[119]!==m?.source||e[120]!==B||e[121]!==He||e[122]!==d?.footnote||e[123]!==d?.source||e[124]!==y?(X=He||B?n.jsxRuntimeExports.jsx(Li.GraphFooter,{styles:{footnote:d?.footnote,source:d?.source},classNames:{footnote:m?.footnote,source:m?.source},sources:He,footNote:B,width:y}):null,e[118]=m?.footnote,e[119]=m?.source,e[120]=B,e[121]=He,e[122]=d?.footnote,e[123]=d?.source,e[124]=y,e[125]=X):X=e[125];let xt;return e[126]!==Mt||e[127]!==ue||e[128]!==Se||e[129]!==Y||e[130]!==W||e[131]!==b||e[132]!==se||e[133]!==pt||e[134]!==kt||e[135]!==wt||e[136]!==ie||e[137]!==Ce||e[138]!==Re||e[139]!==we||e[140]!==X||e[141]!==r||e[142]!==y?(xt=n.jsxRuntimeExports.jsxs(pi.GraphContainer,{className:kt,style:wt,id:Se,ref:It,"aria-label":Mt,backgroundColor:ue,theme:r,language:W,minHeight:b,width:y,height:Y,relativeHeight:pt,padding:se,children:[ie,Ce,Re,we,X]}),e[126]=Mt,e[127]=ue,e[128]=Se,e[129]=Y,e[130]=W,e[131]=b,e[132]=se,e[133]=pt,e[134]=kt,e[135]=wt,e[136]=ie,e[137]=Ce,e[138]=Re,e[139]=we,e[140]=X,e[141]=r,e[142]=y,e[143]=xt):xt=e[143],xt}function oo(i){return i!=null}function no(i){return i.y}function so(i){return i!=null}function lo(i){return i.y}function ro(i){return i!=null}function ao(i){return i.y}function co(i){return i!=null}function uo(i){return i.y}function xo(i){return i!=null}function fo(i){return i.x}function mo(i){return i!=null}function po(i){return i.x}function ho(i){return i!=null}function go(i){return i.x}function yo(i){return i!=null}function vo(i){return i.x}function bo(i){return i!=null}function Ao(i){return i.radius}function jo(i){return i.label}function Oo(i){return i.color}function Co(i){return i.color}function Ro(i){return i.color}function ko(i){return i!==void 0}function wo(i){return i!==void 0}function Lo(i){return i.data}function So(i){return i!==void 0}function Eo(i){return i.data}function $o(i,e){return i-e}function No(i){return i.date}exports.ScatterPlot=io;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-D4pAp7u0.cjs"),ci=require("./parse-xYI9yrvL.cjs"),S=require("react"),ui=require("./getSliderMarks-BzrpHrHS.cjs"),xi=require("./index-DQA8q5sC.cjs"),Ci=require("./index-Cno4Q0YE.cjs"),fi=require("./simple-statistics-xm8c0LQQ.cjs"),Ri=require("./Tooltip-C9F3uYG0.cjs"),j=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ne=require("./Colors.cjs"),mi=require("./numberFormattingFunction-u2iNHL_c.cjs"),ai=require("./customArea-BAcQ3pBM.cjs"),di=require("./Axis-BTaS9oPQ.cjs"),pi=require("./AxisTitle-DP_evhbe.cjs"),ki=require("./XTicksAndGridLines-B4UhDVyU.cjs"),hi=require("./ReferenceLine-CpU4G01Y.cjs"),wi=require("./RegressionLine-BFoBiVJk.cjs"),Li=require("./YTicksAndGridLines-sT3zdCs6.cjs"),Ei=require("./index-BuhBhuCq.cjs"),Ni=require("./DetailsModal-Du8Fr1QD.cjs"),Si=require("./pow-BnyPO-NX.cjs"),gi=require("./linear-CgUCbw9F.cjs"),$i=require("./delaunay-rcy0HhZi.cjs"),Xt=require("./proxy-CqH8m8IQ.cjs"),Vi=require("./use-in-view-dnRv_qqF.cjs"),yi=require("./index-FXfr51ZM.cjs"),Di=require("./GraphFooter.cjs"),Mi=require("./GraphHeader.cjs"),qi=require("./ColorLegendWithMouseOver.cjs"),Ii=require("./EmptyState-CFmiFPHz.cjs"),vi=require("./index-BhI7mBJx.cjs"),Ti=require("./ensureCompleteData-D9bQTiVS.cjs"),bi=require("./uniqBy-O05lp2S5.cjs"),Oi=require("./GraphContainer-Cul9b74X.cjs");function Pi(i){const e=s.compilerRuntimeExports.c(228),{data:o,width:le,height:L,showLabels:Xe,colors:x,colorDomain:k,radius:T,xAxisTitle:b,yAxisTitle:U,leftMargin:P,rightMargin:st,topMargin:vt,bottomMargin:Mt,tooltip:nt,onSeriesMouseOver:re,refXValues:bt,refYValues:Ot,highlightAreaSettings:At,selectedColor:Se,highlightedDataPoints:H,maxRadiusValue:lt,maxXValue:rt,minXValue:w,maxYValue:Ye,minYValue:C,onSeriesMouseClick:$,rtl:Fe,annotations:at,customHighlightAreaSettings:Ue,regressionLine:$e,resetSelectionOnDoubleClick:Ve,detailsOnClick:V,noOfXTicks:He,noOfYTicks:Ge,labelColor:G,styles:n,classNames:l,animate:a,dimmedOpacity:D,showHighlightedDataPointsLabels:jt,customLayers:W,showVoronoiTesselation:We,useVoronoiInteraction:Ze,xNumberDisplayOptions:d,yNumberDisplayOptions:p}=i,Ct=S.useRef(null);let ct;e[0]!==a.amount||e[1]!==a.once?(ct={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=ct):ct=e[2];const O=Vi.useInView(Ct,ct),[M,De]=S.useState(void 0),[X,g]=S.useState(void 0),[m,Me]=S.useState(void 0),[ut,Z]=S.useState(void 0),Be=b?Mt+50:Mt,Rt=U?P+30:P;let xt;e[3]!==st||e[4]!==Be||e[5]!==Rt||e[6]!==vt?(xt={top:vt,bottom:Be,left:Rt,right:st},e[3]=st,e[4]=Be,e[5]=Rt,e[6]=vt,e[7]=xt):xt=e[7];const v=xt;let ae,ce,ue,xe,fe,me,Y,de,pe,he,B,ge,z,ye,J,ve,F,be;if(e[8]!==a||e[9]!==at||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==k||e[20]!==x||e[21]!==Ue||e[22]!==W||e[23]!==o||e[24]!==V||e[25]!==D||e[26]!==L||e[27]!==At||e[28]!==H||e[29]!==O||e[30]!==G||e[31]!==P||e[32]!==v.bottom||e[33]!==v.left||e[34]!==v.right||e[35]!==v.top||e[36]!==lt||e[37]!==rt||e[38]!==Ye||e[39]!==w||e[40]!==C||e[41]!==X||e[42]!==M||e[43]!==He||e[44]!==Ge||e[45]!==$||e[46]!==re||e[47]!==T||e[48]!==bt||e[49]!==Ot||e[50]!==$e||e[51]!==Ve||e[52]!==Fe||e[53]!==Se||e[54]!==jt||e[55]!==Xe||e[56]!==We||e[57]!==n?.graphObjectValues||e[58]!==n?.regLine||e[59]!==n?.xAxis?.axis||e[60]!==n?.xAxis?.gridLines||e[61]!==n?.xAxis?.labels||e[62]!==n?.xAxis?.title||e[63]!==n?.yAxis?.gridLines||e[64]!==n?.yAxis?.labels||e[65]!==n?.yAxis?.title||e[66]!==Ze||e[67]!==le||e[68]!==b||e[69]!==d?.locale||e[70]!==d?.padZeros||e[71]!==d?.precision||e[72]!==d?.prefix||e[73]!==d?.suffix||e[74]!==U||e[75]!==p?.locale||e[76]!==p?.padZeros||e[77]!==p?.precision||e[78]!==p?.prefix||e[79]!==p?.suffix){const Je=o.map(ro),A=le-v.left-v.right,f=L-v.top-v.bottom,N=o.filter(lo).length!==o.length?Si.sqrt().domain([0,lt]).range([.25,T]).nice():void 0,Ke=Je.filter(no).length===0?Je.filter(so):Ci.orderBy(Je.filter(oo),"radius","desc"),c=gi.linear().domain([w,rt]).range([0,A]).nice(),h=gi.linear().domain([C,Ye]).range([f,0]).nice(),ft=c.ticks(He),kt=h.ticks(Ge),wt=$i.Delaunay.from(Ke,t=>c(t.x),t=>h(t.y)).voronoi([0,0,A<0?0:A,f<0?0:f]),qt=fi.linearRegression(o.filter(io).map(t=>[c(t.x),h(t.y)])),mt=fi.linearRegressionLine(qt);ce=Xt.motion.svg,de=`${le}px`,pe=`${L}px`,he=`0 0 ${le} ${L}`,B="ltr",ge=Ct,ue=`translate(${v.left},${v.top})`;let r;e[98]!==a||e[99]!==Ue||e[100]!==O||e[101]!==c||e[102]!==h?(r=s.jsxRuntimeExports.jsx(ai.CustomArea,{areaSettings:Ue,scaleX:c,scaleY:h,animate:a,isInView:O},"custom-area"),e[98]=a,e[99]=Ue,e[100]=O,e[101]=c,e[102]=h,e[103]=r):r=e[103],xe=s.jsxRuntimeExports.jsxs(yi.AnimatePresence,{children:[s.jsxRuntimeExports.jsx(Ei.HighlightAreaForScatterPlot,{areaSettings:At,width:A,height:f,scaleX:c,scaleY:h,animate:a,isInView:O},"highlight-area"),r]});const dt=n?.yAxis?.gridLines,pt=n?.yAxis?.labels;let qe;e[104]!==dt||e[105]!==pt?(qe={gridLines:dt,labels:pt},e[104]=dt,e[105]=pt,e[106]=qe):qe=e[106];const It=l?.yAxis?.gridLines,Qe=l?.yAxis?.labels;let Lt;e[107]!==It||e[108]!==Qe?(Lt={gridLines:It,labels:Qe},e[107]=It,e[108]=Qe,e[109]=Lt):Lt=e[109];const q=h(C<0?0:C),Tt=h(C<0?0:C),Ie=A+v.right,u=C<0?0:C,I=p?.precision??2,ht=p?.prefix||"",gt=p?.suffix||"",Pt=p?.locale||"en",yt=p?.padZeros||!1;let Te;e[110]!==u||e[111]!==I||e[112]!==ht||e[113]!==gt||e[114]!==Pt||e[115]!==yt?(Te=mi.numberFormattingFunction(u,void 0,I,ht,gt,Pt,yt),e[110]=u,e[111]=I,e[112]=ht,e[113]=gt,e[114]=Pt,e[115]=yt,e[116]=Te):Te=e[116];const _e=h(C<0?0:C);let ee;e[117]!==_e?(ee={x:0,y:_e,dy:"0.33em",dx:-4},e[117]=_e,e[118]=ee):ee=e[118];const et=l?.xAxis?.axis,tt=l?.yAxis?.labels;let je;e[119]!==et||e[120]!==tt?(je={axis:et,label:tt},e[119]=et,e[120]=tt,e[121]=je):je=e[121];const it=n?.xAxis?.axis;let te;e[122]!==n?.yAxis?.labels?(te=n?.yAxis?.labels||{},e[122]=n?.yAxis?.labels,e[123]=te):te=e[123];let Ce;e[124]!==te?(Ce={textAnchor:"end",...te},e[124]=te,e[125]=Ce):Ce=e[125];let Re;e[126]!==it||e[127]!==Ce?(Re={axis:it,label:Ce},e[126]=it,e[127]=Ce,e[128]=Re):Re=e[128];let ie;e[129]!==q||e[130]!==Tt||e[131]!==Ie||e[132]!==Te||e[133]!==ee||e[134]!==je||e[135]!==Re?(ie=s.jsxRuntimeExports.jsx(di.Axis,{y1:q,y2:Tt,x1:0,x2:Ie,label:Te,labelPos:ee,classNames:je,styles:Re}),e[129]=q,e[130]=Tt,e[131]=Ie,e[132]=Te,e[133]=ee,e[134]=je,e[135]=Re,e[136]=ie):ie=e[136];const ke=0-P-15,we=f/2,Le=n?.yAxis?.title,Ee=l?.yAxis?.title;let oe;e[137]!==ke||e[138]!==we||e[139]!==Le||e[140]!==Ee||e[141]!==U?(oe=s.jsxRuntimeExports.jsx(pi.AxisTitle,{x:ke,y:we,style:Le,className:Ee,text:U,rotate90:!0}),e[137]=ke,e[138]=we,e[139]=Le,e[140]=Ee,e[141]=U,e[142]=oe):oe=e[142],fe=s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(Li.YTicksAndGridLines,{values:kt.filter(to),y:kt.filter(eo).map(t=>h(t)),x1:0,x2:A+v.right,styles:qe,classNames:Lt,labelType:"secondary",showGridLines:!0,labelPos:"side",suffix:p?.suffix||"",prefix:p?.prefix||"",precision:p?.precision??2,locale:p?.locale||"en",padZeros:p?.padZeros||!1}),ie,oe]});const Ne=n?.xAxis?.gridLines,ot=n?.xAxis?.labels;let y;e[143]!==Ne||e[144]!==ot?(y={gridLines:Ne,labels:ot},e[143]=Ne,e[144]=ot,e[145]=y):y=e[145];const se=l?.xAxis?.gridLines,Ht=l?.xAxis?.labels;let Yt;e[146]!==se||e[147]!==Ht?(Yt={gridLines:se,labels:Ht},e[146]=se,e[147]=Ht,e[148]=Yt):Yt=e[148];const Gt=c(w<0?0:w),Wt=c(w<0?0:w),Zt=w<0?0:w,Bt=d?.precision??2,zt=d?.prefix||"",Jt=d?.suffix||"",Kt=d?.locale||"en",Qt=d?.padZeros||!1;let Et;e[149]!==Zt||e[150]!==Bt||e[151]!==zt||e[152]!==Jt||e[153]!==Kt||e[154]!==Qt?(Et=mi.numberFormattingFunction(Zt,void 0,Bt,zt,Jt,Kt,Qt),e[149]=Zt,e[150]=Bt,e[151]=zt,e[152]=Jt,e[153]=Kt,e[154]=Qt,e[155]=Et):Et=e[155];const _t=c(w<0?0:w);let Nt;e[156]!==f||e[157]!==_t?(Nt={x:_t,y:f,dy:"1em",dx:0},e[156]=f,e[157]=_t,e[158]=Nt):Nt=e[158];const ei=l?.xAxis?.axis,ti=l?.yAxis?.labels;let St;e[159]!==ei||e[160]!==ti?(St={axis:ei,label:ti},e[159]=ei,e[160]=ti,e[161]=St):St=e[161];const ii=n?.xAxis?.axis;let $t;e[162]!==n?.yAxis?.labels?($t=n?.yAxis?.labels||{},e[162]=n?.yAxis?.labels,e[163]=$t):$t=e[163];let Vt;e[164]!==$t?(Vt={textAnchor:"middle",...$t},e[164]=$t,e[165]=Vt):Vt=e[165];let Dt;e[166]!==ii||e[167]!==Vt?(Dt={axis:ii,label:Vt},e[166]=ii,e[167]=Vt,e[168]=Dt):Dt=e[168];let Ft;e[169]!==f||e[170]!==Gt||e[171]!==Wt||e[172]!==Et||e[173]!==Nt||e[174]!==St||e[175]!==Dt?(Ft=s.jsxRuntimeExports.jsx(di.Axis,{x1:Gt,x2:Wt,y1:0,y2:f,label:Et,labelPos:Nt,classNames:St,styles:Dt}),e[169]=f,e[170]=Gt,e[171]=Wt,e[172]=Et,e[173]=Nt,e[174]=St,e[175]=Dt,e[176]=Ft):Ft=e[176];const oi=A/2,si=f+30,ni=n?.xAxis?.title,li=l?.xAxis?.title;let Ut;e[177]!==oi||e[178]!==si||e[179]!==ni||e[180]!==li||e[181]!==b?(Ut=s.jsxRuntimeExports.jsx(pi.AxisTitle,{x:oi,y:si,style:ni,className:li,text:b}),e[177]=oi,e[178]=si,e[179]=ni,e[180]=li,e[181]=b,e[182]=Ut):Ut=e[182],me=s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(ki.XTicksAndGridLines,{values:ft.filter(_i),x:ft.filter(Qi).map(t=>c(t)),y1:0,y2:f,styles:y,classNames:Yt,labelType:"primary",showGridLines:!0,suffix:d?.suffix||"",prefix:d?.prefix||"",precision:d?.precision??2,locale:d?.locale||"en",padZeros:d?.padZeros||!1}),Ft,Ut]}),e[183]!==W?(Y=W.filter(Ki).map(Ji),e[183]=W,e[184]=Y):Y=e[184],ae=yi.AnimatePresence,z=Ze&&Ke.map((t,Pe)=>s.jsxRuntimeExports.jsx("path",{d:wt.renderCell(Ke.findIndex(R=>R.id===t.id)),opacity:We?1:0,className:"stroke-primary-gray-700 dark:stroke-primary-gray-300",style:{fillOpacity:0,strokeWidth:1},onMouseEnter:R=>{De(t),Z(R.clientY),Me(R.clientX),re?.(t)},onMouseMove:R=>{De(t),Z(R.clientY),Me(R.clientX)},onMouseLeave:()=>{De(void 0),Me(void 0),Z(void 0),re?.(void 0)},onClick:()=>{($||V)&&(xi.isEqual(X,t)&&Ve?(g(void 0),$?.(void 0)):(g(t),$?.(t)))}},`tesselation_${t.label||Pe}`)),ye=Ke.map((t,Pe)=>s.jsxRuntimeExports.jsxs(Xt.motion.g,{variants:{initial:{x:c(t.x),y:h(t.y),opacity:Se?t.color&&x[k.indexOf(`${t.color}`)]===Se?1:D:M?M.id===t.id?1:D:H?H.indexOf(t.label||"")!==-1?1:D:1},whileInView:{x:c(t.x),y:h(t.y),opacity:Se?t.color&&x[k.indexOf(`${t.color}`)]===Se?1:D:M?M.id===t.id?1:D:H?H.indexOf(t.label||"")!==-1?1:D:1,transition:{duration:a.duration}}},initial:"initial",animate:O?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:R=>{De(t),Z(R.clientY),Me(R.clientX),re?.(t)},onMouseMove:R=>{De(t),Z(R.clientY),Me(R.clientX)},onMouseLeave:()=>{De(void 0),Me(void 0),Z(void 0),re?.(void 0)},onClick:()=>{($||V)&&(xi.isEqual(X,t)&&Ve?(g(void 0),$?.(void 0)):(g(t),$?.(t)))},children:[s.jsxRuntimeExports.jsx(Xt.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:o.filter(zi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray,stroke:o.filter(Bi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray},whileInView:{r:N?N(t.radius||0):T,fill:o.filter(Zi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray,stroke:o.filter(Wi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:O?"whileInView":"initial",style:{fillOpacity:.6}}),Xe&&!j.checkIfNullOrUndefined(t.label)?s.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...n?.graphObjectValues||{}},className:s.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:N?N(t.radius||0):T,opacity:0,fill:G||(o.filter(Gi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray)},whileInView:{x:N?N(t.radius||0):T,opacity:1,fill:G||(o.filter(Hi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:O?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):H&&!j.checkIfNullOrUndefined(t.label)&&jt&&H.indexOf(t.label)!==-1?s.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...n?.graphObjectValues||{}},className:s.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:N?N(t.radius||0):T,opacity:0,fill:G||(o.filter(Ui).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray)},whileInView:{x:N?N(t.radius||0):T,opacity:1,fill:G||(o.filter(Fi).length===0?x[0]:t.color?x[k.indexOf(`${t.color}`)]:ne.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:O?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Pe}`)),J=bt.map((t,Pe)=>s.jsxRuntimeExports.jsx(hi.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:f,textSide:c(t.value)>A*.75||Fe?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:O},Pe)),ve=Ot.map((t,Pe)=>s.jsxRuntimeExports.jsx(hi.RefLineY,{text:t.text,color:t.color,y:h(t.value),x1:0,x2:A,classNames:t.classNames,styles:t.styles,animate:a,isInView:O},Pe));const ri=at.map((t,Pe)=>{const R=ai.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?h(t.yCoordinate):0},j.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),Ai=t.showConnector?{y1:R.y,x1:R.x,y2:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?h(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:j.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,ji={y:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:Fe?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:Fe?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):A+v.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return s.jsxRuntimeExports.jsx(ai.Annotation,{color:t.color,connectorsSettings:Ai,labelSettings:ji,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:O},Pe)});e[185]!==ri?(F=s.jsxRuntimeExports.jsx("g",{children:ri}),e[185]=ri,e[186]=F):F=e[186],be=$e?s.jsxRuntimeExports.jsx(wi.RegressionLine,{x1:0,x2:A,y1:mt(0),y2:mt(A),graphHeight:f,graphWidth:A,className:l?.regLine,style:n?.regLine,color:typeof $e=="string"?$e:void 0,animate:a,isInView:O}):null,e[8]=a,e[9]=at,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=k,e[20]=x,e[21]=Ue,e[22]=W,e[23]=o,e[24]=V,e[25]=D,e[26]=L,e[27]=At,e[28]=H,e[29]=O,e[30]=G,e[31]=P,e[32]=v.bottom,e[33]=v.left,e[34]=v.right,e[35]=v.top,e[36]=lt,e[37]=rt,e[38]=Ye,e[39]=w,e[40]=C,e[41]=X,e[42]=M,e[43]=He,e[44]=Ge,e[45]=$,e[46]=re,e[47]=T,e[48]=bt,e[49]=Ot,e[50]=$e,e[51]=Ve,e[52]=Fe,e[53]=Se,e[54]=jt,e[55]=Xe,e[56]=We,e[57]=n?.graphObjectValues,e[58]=n?.regLine,e[59]=n?.xAxis?.axis,e[60]=n?.xAxis?.gridLines,e[61]=n?.xAxis?.labels,e[62]=n?.xAxis?.title,e[63]=n?.yAxis?.gridLines,e[64]=n?.yAxis?.labels,e[65]=n?.yAxis?.title,e[66]=Ze,e[67]=le,e[68]=b,e[69]=d?.locale,e[70]=d?.padZeros,e[71]=d?.precision,e[72]=d?.prefix,e[73]=d?.suffix,e[74]=U,e[75]=p?.locale,e[76]=p?.padZeros,e[77]=p?.precision,e[78]=p?.prefix,e[79]=p?.suffix,e[80]=ae,e[81]=ce,e[82]=ue,e[83]=xe,e[84]=fe,e[85]=me,e[86]=Y,e[87]=de,e[88]=pe,e[89]=he,e[90]=B,e[91]=ge,e[92]=z,e[93]=ye,e[94]=J,e[95]=ve,e[96]=F,e[97]=be}else ae=e[80],ce=e[81],ue=e[82],xe=e[83],fe=e[84],me=e[85],Y=e[86],de=e[87],pe=e[88],he=e[89],B=e[90],ge=e[91],z=e[92],ye=e[93],J=e[94],ve=e[95],F=e[96],be=e[97];let K;e[187]!==ae||e[188]!==z||e[189]!==ye||e[190]!==J||e[191]!==ve||e[192]!==F||e[193]!==be?(K=s.jsxRuntimeExports.jsxs(ae,{children:[z,ye,J,ve,F,be]}),e[187]=ae,e[188]=z,e[189]=ye,e[190]=J,e[191]=ve,e[192]=F,e[193]=be,e[194]=K):K=e[194];let Q;e[195]!==W?(Q=W.filter(Yi).map(Xi),e[195]=W,e[196]=Q):Q=e[196];let E;e[197]!==ue||e[198]!==xe||e[199]!==fe||e[200]!==me||e[201]!==Y||e[202]!==K||e[203]!==Q?(E=s.jsxRuntimeExports.jsxs("g",{transform:ue,children:[xe,fe,me,Y,K,Q]}),e[197]=ue,e[198]=xe,e[199]=fe,e[200]=me,e[201]=Y,e[202]=K,e[203]=Q,e[204]=E):E=e[204];let Oe;e[205]!==ce||e[206]!==de||e[207]!==pe||e[208]!==he||e[209]!==B||e[210]!==ge||e[211]!==E?(Oe=s.jsxRuntimeExports.jsx(ce,{width:de,height:pe,viewBox:he,direction:B,ref:ge,children:E}),e[205]=ce,e[206]=de,e[207]=pe,e[208]=he,e[209]=B,e[210]=ge,e[211]=E,e[212]=Oe):Oe=e[212];let Ae;e[213]!==l?.tooltip||e[214]!==m||e[215]!==ut||e[216]!==M||e[217]!==n?.tooltip||e[218]!==nt?(Ae=M&&nt&&m&&ut?s.jsxRuntimeExports.jsx(Ri.Tooltip,{data:M,body:nt,xPos:m,yPos:ut,backgroundStyle:n?.tooltip,className:l?.tooltip}):null,e[213]=l?.tooltip,e[214]=m,e[215]=ut,e[216]=M,e[217]=n?.tooltip,e[218]=nt,e[219]=Ae):Ae=e[219];let _;e[220]!==l?.modal||e[221]!==V||e[222]!==X?(_=V&&X!==void 0?s.jsxRuntimeExports.jsx(Ni.DetailsModal,{body:V,data:X,setData:g,className:l?.modal}):null,e[220]=l?.modal,e[221]=V,e[222]=X,e[223]=_):_=e[223];let ze;return e[224]!==Oe||e[225]!==Ae||e[226]!==_?(ze=s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[Oe,Ae,_]}),e[224]=Oe,e[225]=Ae,e[226]=_,e[227]=ze):ze=e[227],ze}function Xi(i){return i.layer}function Yi(i){return i.position==="after"}function Fi(i){return i.color}function Ui(i){return i.color}function Hi(i){return i.color}function Gi(i){return i.color}function Wi(i){return i.color}function Zi(i){return i.color}function Bi(i){return i.color}function zi(i){return i.color}function Ji(i){return i.layer}function Ki(i){return i.position==="before"}function Qi(i){return i!==0}function _i(i){return i!==0}function eo(i){return i!==0}function to(i){return i!==0}function io(i){return!j.checkIfNullOrUndefined(i.x)&&!j.checkIfNullOrUndefined(i.y)}function oo(i){return!j.checkIfNullOrUndefined(i.radius)&&!j.checkIfNullOrUndefined(i.x)&&!j.checkIfNullOrUndefined(i.y)}function so(i){return!j.checkIfNullOrUndefined(i.x)&&!j.checkIfNullOrUndefined(i.y)}function no(i){return!j.checkIfNullOrUndefined(i.radius)}function lo(i){return i.radius===void 0||i.radius===null}function ro(i,e){return{...i,id:`${e}`}}function ao(i){const e=s.compilerRuntimeExports.c(140),{data:o,graphTitle:le,colors:L,sources:Xe,graphDescription:x,showLabels:k,height:T,width:b,footNote:U,colorDomain:P,colorLegendTitle:st,radius:vt,xAxisTitle:Mt,yAxisTitle:nt,padding:re,backgroundColor:bt,leftMargin:Ot,rightMargin:At,topMargin:Se,bottomMargin:H,tooltip:lt,relativeHeight:rt,onSeriesMouseOver:w,refXValues:Ye,refYValues:C,highlightAreaSettings:$,showColorScale:Fe,highlightedDataPoints:at,showHighlightedDataPointsLabels:Ue,graphID:$e,maxRadiusValue:Ve,maxXValue:V,minXValue:He,maxYValue:Ge,minYValue:G,onSeriesMouseClick:n,graphDownload:l,dataDownload:a,language:D,showNAColor:jt,minHeight:W,annotations:We,customHighlightAreaSettings:Ze,theme:d,regressionLine:p,ariaLabel:Ct,resetSelectionOnDoubleClick:ct,detailsOnClick:O,noOfXTicks:M,noOfYTicks:De,labelColor:X,styles:g,classNames:m,animate:Me,dimmedOpacity:ut,customLayers:Z,timeline:Be,showVoronoiTesselation:Rt,useVoronoiInteraction:xt,xNumberDisplayOptions:v,yNumberDisplayOptions:ae}=i,ce=k===void 0?!1:k,ue=vt===void 0?5:vt,xe=Mt===void 0?"X Axis":Mt,fe=nt===void 0?"Y Axis":nt,me=bt===void 0?!1:bt,Y=Ot===void 0?0:Ot,de=At===void 0?10:At,pe=Se===void 0?20:Se,he=H===void 0?50:H;let B;e[0]!==Ye?(B=Ye===void 0?[]:Ye,e[0]=Ye,e[1]=B):B=e[1];const ge=B;let z;e[2]!==C?(z=C===void 0?[]:C,e[2]=C,e[3]=z):z=e[3];const ye=z;let J;e[4]!==$?(J=$===void 0?[]:$,e[4]=$,e[5]=J):J=e[5];const ve=J,F=Fe===void 0?!0:Fe,be=Ue===void 0?!1:Ue,K=l===void 0?!1:l,Q=a===void 0?!1:a,E=D===void 0?"en":D,Oe=jt===void 0?!0:jt,Ae=W===void 0?0:W;let _;e[6]!==We?(_=We===void 0?[]:We,e[6]=We,e[7]=_):_=e[7];const ze=_;let Je;e[8]!==Ze?(Je=Ze===void 0?[]:Ze,e[8]=Ze,e[9]=Je):Je=e[9];const A=Je,f=d===void 0?"light":d,N=p===void 0?!1:p,Ke=ct===void 0?!0:ct,c=M===void 0?5:M,h=De===void 0?5:De,ft=Me===void 0?!1:Me,kt=ut===void 0?.3:ut;let wt;e[10]!==Z?(wt=Z===void 0?[]:Z,e[10]=Z,e[11]=wt):wt=e[11];const qt=wt;let mt;e[12]!==Be?(mt=Be===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:Be,e[12]=Be,e[13]=mt):mt=e[13];const r=mt,dt=Rt===void 0?!1:Rt,pt=xt===void 0?!0:xt,[qe,It]=S.useState(0),[Qe,Lt]=S.useState(0),[q,Tt]=S.useState(r.autoplay);let Ie;if(e[14]!==o||e[15]!==r.dateFormat){let y;e[17]!==r.dateFormat?(y=se=>ci.parse(`${se.date}`,r.dateFormat||"yyyy",new Date).getTime(),e[17]=r.dateFormat,e[18]=y):y=e[18],Ie=[...new Set(o.filter(To).map(y))],Ie.sort(Io),e[14]=o,e[15]=r.dateFormat,e[16]=Ie}else Ie=e[16];const u=Ie,[I,ht]=S.useState(r.autoplay?0:u.length-1),[gt,Pt]=S.useState(void 0),yt=S.useRef(null),Te=S.useRef(null);let _e,ee;e[19]===Symbol.for("react.memo_cache_sentinel")?(_e=()=>{const y=new ResizeObserver(se=>{It(se[0].target.clientWidth||620),Lt(se[0].target.clientHeight||480)});return yt.current&&y.observe(yt.current),()=>y.disconnect()},ee=[],e[19]=_e,e[20]=ee):(_e=e[19],ee=e[20]),S.useEffect(_e,ee);let et,tt;e[21]!==q||e[22]!==r.speed||e[23]!==u?(et=()=>{const y=setInterval(()=>{ht(se=>se<u.length-1?se+1:0)},(r.speed||2)*1e3);return q||clearInterval(y),()=>clearInterval(y)},tt=[u,q,r.speed],e[21]=q,e[22]=r.speed,e[23]=u,e[24]=et,e[25]=tt):(et=e[24],tt=e[25]),S.useEffect(et,tt);const je=r.dateFormat||"yyyy";let it;e[26]!==I||e[27]!==je||e[28]!==r.showOnlyActiveDate||e[29]!==u?(it=ui.getSliderMarks(u,I,r.showOnlyActiveDate,je),e[26]=I,e[27]=je,e[28]=r.showOnlyActiveDate,e[29]=u,e[30]=it):it=e[30];const te=it,Ce=m?.graphContainer,Re=g?.graphContainer;let ie;e[31]!==m?.description||e[32]!==m?.title||e[33]!==o||e[34]!==Q||e[35]!==x||e[36]!==K||e[37]!==le||e[38]!==g?.description||e[39]!==g?.title||e[40]!==b?(ie=le||x||K||Q?s.jsxRuntimeExports.jsx(Mi.GraphHeader,{styles:{title:g?.title,description:g?.description},classNames:{title:m?.title,description:m?.description},graphTitle:le,graphDescription:x,width:b,graphDownload:K?Te:void 0,dataDownload:Q?o.map(qo).filter(Mo).length>0?o.map(Do).filter(Vo):o.filter($o):null}):null,e[31]=m?.description,e[32]=m?.title,e[33]=o,e[34]=Q,e[35]=x,e[36]=K,e[37]=le,e[38]=g?.description,e[39]=g?.title,e[40]=b,e[41]=ie):ie=e[41];let ke;e[42]!==I||e[43]!==te||e[44]!==q||e[45]!==r.enabled||e[46]!==u?(ke=r.enabled&&u.length>0&&te?s.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[s.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Tt(!q)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":q?"Click to pause animation":"Click to play animation",children:q?s.jsxRuntimeExports.jsx(vi.Pause,{}):s.jsxRuntimeExports.jsx(vi.Play,{})}),s.jsxRuntimeExports.jsx(ui.Nr,{min:u[0],max:u[u.length-1],marks:te,step:null,defaultValue:u[u.length-1],value:u[I],onChangeComplete:y=>{ht(u.indexOf(y))},onChange:y=>{ht(u.indexOf(y))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[42]=I,e[43]=te,e[44]=q,e[45]=r.enabled,e[46]=u,e[47]=ke):ke=e[47];let we;e[48]!==m?.colorLegend||e[49]!==P||e[50]!==st||e[51]!==L||e[52]!==o||e[53]!==F||e[54]!==Oe||e[55]!==f||e[56]!==b?(we=F&&o.filter(So).length!==0&&o.length>0?s.jsxRuntimeExports.jsx(qi.ColorLegendWithMouseOver,{width:b,colorLegendTitle:st,colors:L||ne.Colors[f].categoricalColors.colors,colorDomain:P||bi.uniqBy(o,"color",!0),setSelectedColor:Pt,showNAColor:Oe,className:m?.colorLegend}):null,e[48]=m?.colorLegend,e[49]=P,e[50]=st,e[51]=L,e[52]=o,e[53]=F,e[54]=Oe,e[55]=f,e[56]=b,e[57]=we):we=e[57];let Le;e[58]!==o.length?(Le=o.length===0&&s.jsxRuntimeExports.jsx(Ii.EmptyState,{}),e[58]=o.length,e[59]=Le):Le=e[59];let Ee;e[60]!==ft||e[61]!==ze||e[62]!==he||e[63]!==m||e[64]!==P||e[65]!==L||e[66]!==A||e[67]!==qt||e[68]!==o||e[69]!==O||e[70]!==kt||e[71]!==ve||e[72]!==at||e[73]!==I||e[74]!==X||e[75]!==E||e[76]!==Y||e[77]!==Ve||e[78]!==V||e[79]!==Ge||e[80]!==He||e[81]!==G||e[82]!==c||e[83]!==h||e[84]!==n||e[85]!==w||e[86]!==ue||e[87]!==ge||e[88]!==ye||e[89]!==N||e[90]!==Ke||e[91]!==de||e[92]!==gt||e[93]!==be||e[94]!==ce||e[95]!==dt||e[96]!==g||e[97]!==Qe||e[98]!==qe||e[99]!==f||e[100]!==r.dateFormat||e[101]!==r.enabled||e[102]!==lt||e[103]!==pe||e[104]!==u||e[105]!==pt||e[106]!==xe||e[107]!==v||e[108]!==fe||e[109]!==ae?(Ee=qe&&Qe&&o.length>0?s.jsxRuntimeExports.jsx(Pi,{data:Ti.ensureCompleteDataForScatterPlot(o,r.dateFormat||"yyyy").filter(y=>r.enabled?`${y.date}`===ci.format(new Date(u[I]),r.dateFormat||"yyyy"):y),width:qe,height:Qe,colorDomain:o.filter(No).length===0?[]:P||bi.uniqBy(o,"color",!0),colors:o.filter(Eo).length===0?L?[L]:[ne.Colors.primaryColors["blue-600"]]:L||ne.Colors[f].categoricalColors.colors,xAxisTitle:xe,yAxisTitle:fe,refXValues:ge,refYValues:ye,showLabels:ce,radius:ue,leftMargin:Y,rightMargin:de,topMargin:pe,bottomMargin:he,tooltip:lt,onSeriesMouseOver:w,highlightAreaSettings:ve,showVoronoiTesselation:dt,highlightedDataPoints:o.filter(Lo).length===0?[]:at,showHighlightedDataPointsLabels:be,selectedColor:gt,maxRadiusValue:j.checkIfNullOrUndefined(Ve)?Math.max(...o.map(wo).filter(ko)):Ve,maxXValue:j.checkIfNullOrUndefined(V)?Math.max(...o.map(Ro).filter(Co))>0?Math.max(...o.map(jo).filter(Ao)):0:V,minXValue:j.checkIfNullOrUndefined(He)?Math.min(...o.map(Oo).filter(bo))>0?0:Math.min(...o.map(vo).filter(yo)):He,maxYValue:j.checkIfNullOrUndefined(Ge)?Math.max(...o.map(go).filter(ho))>0?Math.max(...o.map(po).filter(mo)):0:Ge,minYValue:j.checkIfNullOrUndefined(G)?Math.min(...o.map(fo).filter(xo))>0?0:Math.min(...o.map(uo).filter(co)):G,onSeriesMouseClick:n,rtl:E==="he"||E==="ar",annotations:ze,customHighlightAreaSettings:A,regressionLine:N,resetSelectionOnDoubleClick:Ke,detailsOnClick:O,noOfXTicks:c,noOfYTicks:h,labelColor:X,styles:g,classNames:m,animate:ft===!0?{duration:.5,once:!0,amount:.5}:ft||{duration:0,once:!0,amount:0},dimmedOpacity:kt,customLayers:qt,useVoronoiInteraction:pt,xNumberDisplayOptions:v,yNumberDisplayOptions:ae}):null,e[60]=ft,e[61]=ze,e[62]=he,e[63]=m,e[64]=P,e[65]=L,e[66]=A,e[67]=qt,e[68]=o,e[69]=O,e[70]=kt,e[71]=ve,e[72]=at,e[73]=I,e[74]=X,e[75]=E,e[76]=Y,e[77]=Ve,e[78]=V,e[79]=Ge,e[80]=He,e[81]=G,e[82]=c,e[83]=h,e[84]=n,e[85]=w,e[86]=ue,e[87]=ge,e[88]=ye,e[89]=N,e[90]=Ke,e[91]=de,e[92]=gt,e[93]=be,e[94]=ce,e[95]=dt,e[96]=g,e[97]=Qe,e[98]=qe,e[99]=f,e[100]=r.dateFormat,e[101]=r.enabled,e[102]=lt,e[103]=pe,e[104]=u,e[105]=pt,e[106]=xe,e[107]=v,e[108]=fe,e[109]=ae,e[110]=Ee):Ee=e[110];let oe;e[111]!==Le||e[112]!==Ee?(oe=s.jsxRuntimeExports.jsxs(Oi.GraphArea,{ref:yt,children:[Le,Ee]}),e[111]=Le,e[112]=Ee,e[113]=oe):oe=e[113];let Ne;e[114]!==m?.footnote||e[115]!==m?.source||e[116]!==U||e[117]!==Xe||e[118]!==g?.footnote||e[119]!==g?.source||e[120]!==b?(Ne=Xe||U?s.jsxRuntimeExports.jsx(Di.GraphFooter,{styles:{footnote:g?.footnote,source:g?.source},classNames:{footnote:m?.footnote,source:m?.source},sources:Xe,footNote:U,width:b}):null,e[114]=m?.footnote,e[115]=m?.source,e[116]=U,e[117]=Xe,e[118]=g?.footnote,e[119]=g?.source,e[120]=b,e[121]=Ne):Ne=e[121];let ot;return e[122]!==Ct||e[123]!==me||e[124]!==$e||e[125]!==T||e[126]!==E||e[127]!==Ae||e[128]!==re||e[129]!==rt||e[130]!==Ce||e[131]!==Re||e[132]!==ie||e[133]!==ke||e[134]!==we||e[135]!==oe||e[136]!==Ne||e[137]!==f||e[138]!==b?(ot=s.jsxRuntimeExports.jsxs(Oi.GraphContainer,{className:Ce,style:Re,id:$e,ref:Te,"aria-label":Ct,backgroundColor:me,theme:f,language:E,minHeight:Ae,width:b,height:T,relativeHeight:rt,padding:re,children:[ie,ke,we,oe,Ne]}),e[122]=Ct,e[123]=me,e[124]=$e,e[125]=T,e[126]=E,e[127]=Ae,e[128]=re,e[129]=rt,e[130]=Ce,e[131]=Re,e[132]=ie,e[133]=ke,e[134]=we,e[135]=oe,e[136]=Ne,e[137]=f,e[138]=b,e[139]=ot):ot=e[139],ot}function co(i){return i!=null}function uo(i){return i.y}function xo(i){return i!=null}function fo(i){return i.y}function mo(i){return i!=null}function po(i){return i.y}function ho(i){return i!=null}function go(i){return i.y}function yo(i){return i!=null}function vo(i){return i.x}function bo(i){return i!=null}function Oo(i){return i.x}function Ao(i){return i!=null}function jo(i){return i.x}function Co(i){return i!=null}function Ro(i){return i.x}function ko(i){return i!=null}function wo(i){return i.radius}function Lo(i){return i.label}function Eo(i){return i.color}function No(i){return i.color}function So(i){return i.color}function $o(i){return i!==void 0}function Vo(i){return i!==void 0}function Do(i){return i.data}function Mo(i){return i!==void 0}function qo(i){return i.data}function Io(i,e){return i-e}function To(i){return i.date}exports.ScatterPlot=ao;
|
|
2
2
|
//# sourceMappingURL=ScatterPlot.cjs.map
|