@undp/data-viz 2.1.2 → 2.1.4
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.js +281 -274
- 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 +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +367 -356
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +406 -399
- 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 +10 -0
- package/dist/DonutChart.js +232 -263
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +370 -363
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +328 -321
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +375 -368
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +35 -34
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +367 -360
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +286 -279
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-YKUlz-37.cjs +0 -2
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.cjs.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.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-CTPQjnHt.cjs"),_t=require("./parse-hMnG_lRV.cjs"),L=require("react"),ei=require("./getSliderMarks-BmADcPQt.cjs"),ti=require("./index-DQA8q5sC.cjs"),di=require("./index-Cno4Q0YE.cjs"),ii=require("./simple-statistics-xm8c0LQQ.cjs"),pi=require("./Tooltip-uUdw6wJL.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),_=require("./Colors.cjs"),ni=require("./numberFormattingFunction-02t-wJta.cjs"),Zt=require("./customArea-CMF5g-C3.cjs"),oi=require("./Axis-DxRV2yMi.cjs"),si=require("./AxisTitle-sS5bLLR7.cjs"),hi=require("./XTicksAndGridLines-B6CELS7q.cjs"),ri=require("./ReferenceLine-BH0qdf4R.cjs"),gi=require("./RegressionLine-BOTTNSrr.cjs"),yi=require("./YTicksAndGridLines-4pxTRlRK.cjs"),vi=require("./index-B_sAFsEV.cjs"),bi=require("./DetailsModal-BN0HDFlV.cjs"),ji=require("./pow-DgrUorRi.cjs"),li=require("./linear-BwPAspcq.cjs"),Ai=require("./delaunay-rcy0HhZi.cjs"),Oi=require("./use-in-view-QcfiW0w3.cjs"),Xt=require("./proxy-BxvUI_9l.cjs"),ai=require("./index-DG2bgAva.cjs"),Ci=require("./GraphFooter.cjs"),Ri=require("./GraphHeader.cjs"),ki=require("./ColorLegendWithMouseOver.cjs"),Ei=require("./EmptyState-sAEZ_5rU.cjs"),ci=require("./index-DRXx7m-C.cjs"),wi=require("./ensureCompleteData-Oib-vGb0.cjs"),ui=require("./uniqBy-O05lp2S5.cjs"),xi=require("./GraphContainer-d8A46BK2.cjs");function Si(i){const e=n.compilerRuntimeExports.c(216),{data:o,width:ee,height:I,showLabels:Ue,colors:x,colorDomain:R,radius:T,xAxisTitle:g,yAxisTitle:U,leftMargin:te,rightMargin:lt,topMargin:jt,bottomMargin:Vt,tooltip:at,onSeriesMouseOver:ie,refXValues:At,refYValues:Ot,highlightAreaSettings:Ct,selectedColor:we,highlightedDataPoints:G,maxRadiusValue:ct,maxXValue:ut,minXValue:k,maxYValue:Ge,minYValue:A,onSeriesMouseClick:N,rtl:He,annotations:We,customHighlightAreaSettings:Se,regressionLine:ne,resetSelectionOnDoubleClick:Le,detailsOnClick:$,noOfXTicks:Be,noOfYTicks:ze,labelColor:Ne,xSuffix:$e,ySuffix:Me,xPrefix:Ve,yPrefix:oe,styles:s,classNames:r,animate:a,dimmedOpacity:M,precision:V,customLayers:q}=i,xt=L.useRef(null);let ft;e[0]!==a.amount||e[1]!==a.once?(ft={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=ft):ft=e[2];const b=Oi.useInView(xt,ft),[w,qe]=L.useState(void 0),[P,Je]=L.useState(void 0),[mt,se]=L.useState(void 0),[p,f]=L.useState(void 0),Rt=g?Vt+50:Vt,kt=U?te+30:te;let dt;e[3]!==lt||e[4]!==Rt||e[5]!==kt||e[6]!==jt?(dt={top:jt,bottom:Rt,left:kt,right:lt},e[3]=lt,e[4]=Rt,e[5]=kt,e[6]=jt,e[7]=dt):dt=e[7];const d=dt;let H,re,le,ae,ce,ue,X,xe,fe,me,W,de,B,pe,z,he,Y,J;if(e[8]!==a||e[9]!==We||e[10]!==r?.graphObjectValues||e[11]!==r?.regLine||e[12]!==r?.xAxis?.axis||e[13]!==r?.xAxis?.gridLines||e[14]!==r?.xAxis?.labels||e[15]!==r?.xAxis?.title||e[16]!==r?.yAxis?.gridLines||e[17]!==r?.yAxis?.labels||e[18]!==r?.yAxis?.title||e[19]!==R||e[20]!==x||e[21]!==Se||e[22]!==q||e[23]!==o||e[24]!==$||e[25]!==M||e[26]!==I||e[27]!==Ct||e[28]!==G||e[29]!==b||e[30]!==Ne||e[31]!==te||e[32]!==d.bottom||e[33]!==d.left||e[34]!==d.right||e[35]!==d.top||e[36]!==ct||e[37]!==ut||e[38]!==Ge||e[39]!==k||e[40]!==A||e[41]!==P||e[42]!==w||e[43]!==Be||e[44]!==ze||e[45]!==N||e[46]!==ie||e[47]!==V||e[48]!==T||e[49]!==At||e[50]!==Ot||e[51]!==ne||e[52]!==Le||e[53]!==He||e[54]!==we||e[55]!==Ue||e[56]!==s?.graphObjectValues||e[57]!==s?.regLine||e[58]!==s?.xAxis?.axis||e[59]!==s?.xAxis?.gridLines||e[60]!==s?.xAxis?.labels||e[61]!==s?.xAxis?.title||e[62]!==s?.yAxis?.gridLines||e[63]!==s?.yAxis?.labels||e[64]!==s?.yAxis?.title||e[65]!==ee||e[66]!==g||e[67]!==Ve||e[68]!==$e||e[69]!==U||e[70]!==oe||e[71]!==Me){const Q=o.map(_i),j=ee-d.left-d.right,y=I-d.top-d.bottom,E=o.filter(Zi).length!==o.length?ji.sqrt().domain([0,ct]).range([.25,T]).nice():void 0,Ke=Q.filter(Qi).length===0?Q:di.orderBy(Q.filter(Ki),"radius","desc"),c=li.linear().domain([k,ut]).range([0,j]).nice(),m=li.linear().domain([A,Ge]).range([y,0]).nice(),Ae=c.ticks(Be),Et=m.ticks(ze),qt=Ai.Delaunay.from(Ke.filter(Ji),t=>c(t.x),t=>m(t.y)).voronoi([0,0,j<0?0:j,y<0?0:y]),Dt=ii.linearRegression(o.filter(zi).map(t=>[c(t.x),m(t.y)])),wt=ii.linearRegressionLine(Dt);re=Xt.motion.svg,xe=`${ee}px`,fe=`${I}px`,me=`0 0 ${ee} ${I}`,W="ltr",de=xt,le=`translate(${d.left},${d.top})`;let Ie;e[90]!==a||e[91]!==Se||e[92]!==b||e[93]!==c||e[94]!==m?(Ie=n.jsxRuntimeExports.jsx(Zt.CustomArea,{areaSettings:Se,scaleX:c,scaleY:m,animate:a,isInView:b},"custom-area"),e[90]=a,e[91]=Se,e[92]=b,e[93]=c,e[94]=m,e[95]=Ie):Ie=e[95],ae=n.jsxRuntimeExports.jsxs(ai.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(vi.HighlightAreaForScatterPlot,{areaSettings:Ct,width:j,height:y,scaleX:c,scaleY:m,animate:a,isInView:b},"highlight-area"),Ie]});const pt=s?.yAxis?.gridLines,ht=s?.yAxis?.labels;let Te;e[96]!==pt||e[97]!==ht?(Te={gridLines:pt,labels:ht},e[96]=pt,e[97]=ht,e[98]=Te):Te=e[98];const gt=r?.yAxis?.gridLines,Qe=r?.yAxis?.labels;let l;e[99]!==gt||e[100]!==Qe?(l={gridLines:gt,labels:Qe},e[99]=gt,e[100]=Qe,e[101]=l):l=e[101];const Ze=m(A<0?0:A),It=m(A<0?0:A),_e=j+d.right,Tt=A<0?0:A;let O;e[102]!==V||e[103]!==Tt||e[104]!==oe||e[105]!==Me?(O=ni.numberFormattingFunction(Tt,"NA",V,oe,Me),e[102]=V,e[103]=Tt,e[104]=oe,e[105]=Me,e[106]=O):O=e[106];const Pt=m(A<0?0:A);let F;e[107]!==Pt?(F={x:0,y:Pt,dy:"0.33em",dx:-4},e[107]=Pt,e[108]=F):F=e[108];const u=r?.xAxis?.axis,D=r?.yAxis?.labels;let Oe;e[109]!==u||e[110]!==D?(Oe={axis:u,label:D},e[109]=u,e[110]=D,e[111]=Oe):Oe=e[111];const yt=s?.xAxis?.axis;let et;e[112]!==s?.yAxis?.labels?(et=s?.yAxis?.labels||{},e[112]=s?.yAxis?.labels,e[113]=et):et=e[113];let Ce;e[114]!==et?(Ce={textAnchor:"end",...et},e[114]=et,e[115]=Ce):Ce=e[115];let Pe;e[116]!==yt||e[117]!==Ce?(Pe={axis:yt,label:Ce},e[116]=yt,e[117]=Ce,e[118]=Pe):Pe=e[118];let Xe;e[119]!==Ze||e[120]!==It||e[121]!==_e||e[122]!==O||e[123]!==F||e[124]!==Oe||e[125]!==Pe?(Xe=n.jsxRuntimeExports.jsx(oi.Axis,{y1:Ze,y2:It,x1:0,x2:_e,label:O,labelPos:F,classNames:Oe,styles:Pe}),e[119]=Ze,e[120]=It,e[121]=_e,e[122]=O,e[123]=F,e[124]=Oe,e[125]=Pe,e[126]=Xe):Xe=e[126];const tt=0-te-15,it=y/2,nt=s?.yAxis?.title,vt=r?.yAxis?.title;let Ye;e[127]!==tt||e[128]!==it||e[129]!==nt||e[130]!==vt||e[131]!==U?(Ye=n.jsxRuntimeExports.jsx(si.AxisTitle,{x:tt,y:it,style:nt,className:vt,text:U,rotate90:!0}),e[127]=tt,e[128]=it,e[129]=nt,e[130]=vt,e[131]=U,e[132]=Ye):Ye=e[132],ce=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Et.filter(Bi),y:Et.filter(Wi).map(t=>m(t)),x1:0,x2:j+d.right,styles:Te,classNames:l,suffix:Me,prefix:oe,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:V}),Xe,Ye]});const ot=s?.xAxis?.gridLines,bt=s?.xAxis?.labels;let st;e[133]!==ot||e[134]!==bt?(st={gridLines:ot,labels:bt},e[133]=ot,e[134]=bt,e[135]=st):st=e[135];const Re=r?.xAxis?.gridLines,ke=r?.xAxis?.labels;let Z;e[136]!==Re||e[137]!==ke?(Z={gridLines:Re,labels:ke},e[136]=Re,e[137]=ke,e[138]=Z):Z=e[138];const Ee=c(k<0?0:k),rt=c(k<0?0:k),h=k<0?0:k;let S;e[139]!==V||e[140]!==h||e[141]!==Ve||e[142]!==$e?(S=ni.numberFormattingFunction(h,"NA",V,Ve,$e),e[139]=V,e[140]=h,e[141]=Ve,e[142]=$e,e[143]=S):S=e[143];const Ut=c(k<0?0:k);let St;e[144]!==y||e[145]!==Ut?(St={x:Ut,y,dy:"1em",dx:0},e[144]=y,e[145]=Ut,e[146]=St):St=e[146];const Gt=r?.xAxis?.axis,Ht=r?.yAxis?.labels;let Lt;e[147]!==Gt||e[148]!==Ht?(Lt={axis:Gt,label:Ht},e[147]=Gt,e[148]=Ht,e[149]=Lt):Lt=e[149];const Wt=s?.xAxis?.axis;let Nt;e[150]!==s?.yAxis?.labels?(Nt=s?.yAxis?.labels||{},e[150]=s?.yAxis?.labels,e[151]=Nt):Nt=e[151];let $t;e[152]!==Nt?($t={textAnchor:"middle",...Nt},e[152]=Nt,e[153]=$t):$t=e[153];let Mt;e[154]!==Wt||e[155]!==$t?(Mt={axis:Wt,label:$t},e[154]=Wt,e[155]=$t,e[156]=Mt):Mt=e[156];let Yt;e[157]!==y||e[158]!==Ee||e[159]!==rt||e[160]!==S||e[161]!==St||e[162]!==Lt||e[163]!==Mt?(Yt=n.jsxRuntimeExports.jsx(oi.Axis,{x1:Ee,x2:rt,y1:0,y2:y,label:S,labelPos:St,classNames:Lt,styles:Mt}),e[157]=y,e[158]=Ee,e[159]=rt,e[160]=S,e[161]=St,e[162]=Lt,e[163]=Mt,e[164]=Yt):Yt=e[164];const Bt=j/2,zt=y+30,Jt=s?.xAxis?.title,Kt=r?.xAxis?.title;let Ft;e[165]!==Bt||e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==g?(Ft=n.jsxRuntimeExports.jsx(si.AxisTitle,{x:Bt,y:zt,style:Jt,className:Kt,text:g}),e[165]=Bt,e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=g,e[170]=Ft):Ft=e[170],ue=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(hi.XTicksAndGridLines,{values:Ae.filter(Hi),x:Ae.filter(Gi).map(t=>c(t)),y1:0,y2:y,styles:st,classNames:Z,suffix:$e,prefix:Ve,labelType:"primary",showGridLines:!0,precision:V}),Yt,Ft]}),e[171]!==q?(X=q.filter(Ui).map(Fi),e[171]=q,e[172]=X):X=e[172],H=ai.AnimatePresence,B=Ke.filter(Yi).map((t,Fe)=>n.jsxRuntimeExports.jsx("path",{d:qt.renderCell(Ke.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{qe(t),f(C.clientY),se(C.clientX),ie?.(t)},onMouseMove:C=>{qe(t),f(C.clientY),se(C.clientX)},onMouseLeave:()=>{qe(void 0),se(void 0),f(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(P,t)&&Le?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))}},`tesselation_${t.label||Fe}`)),pe=Ke.filter(Xi).map((t,Fe)=>n.jsxRuntimeExports.jsxs(Xt.motion.g,{variants:{initial:{x:c(t.x),y:m(t.y),opacity:we?t.color&&x[R.indexOf(`${t.color}`)]===we?1:M:w?w.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:c(t.x),y:m(t.y),opacity:we?t.color&&x[R.indexOf(`${t.color}`)]===we?1:M:w?w.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{qe(t),f(C.clientY),se(C.clientX),ie?.(t)},onMouseMove:C=>{qe(t),f(C.clientY),se(C.clientX)},onMouseLeave:()=>{qe(void 0),se(void 0),f(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(P,t)&&Le?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))},children:[n.jsxRuntimeExports.jsx(Xt.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:o.filter(Pi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,stroke:o.filter(Ti).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray},whileInView:{r:E?E(t.radius||0):T,fill:o.filter(Ii).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,stroke:o.filter(Di).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),Ue&&!v.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",r?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:E?E(t.radius||0):T,opacity:0,fill:Ne||(o.filter(qi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray)},whileInView:{x:E?E(t.radius||0):T,opacity:1,fill:Ne||(o.filter(Vi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):G.length!==0&&!v.checkIfNullOrUndefined(t.label)&&G.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",r?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:E?E(t.radius||0):T,opacity:0,fill:Ne||(o.filter(Mi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray)},whileInView:{x:E?E(t.radius||0):T,opacity:1,fill:Ne||(o.filter($i).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Fe}`)),z=At.map((t,Fe)=>n.jsxRuntimeExports.jsx(ri.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:y,textSide:c(t.value)>j*.75||He?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe)),he=Ot.map((t,Fe)=>n.jsxRuntimeExports.jsx(ri.RefLineY,{text:t.text,color:t.color,y:m(t.value),x1:0,x2:j,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe));const Qt=We.map((t,Fe)=>{const C=Zt.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?m(t.yCoordinate):0},v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),fi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?m(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?m(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,mi={y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:He?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:He?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):j+d.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(Zt.Annotation,{color:t.color,connectorsSettings:fi,labelSettings:mi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe)});e[173]!==Qt?(Y=n.jsxRuntimeExports.jsx("g",{children:Qt}),e[173]=Qt,e[174]=Y):Y=e[174],J=ne?n.jsxRuntimeExports.jsx(gi.RegressionLine,{x1:0,x2:j,y1:wt(0),y2:wt(j),graphHeight:y,graphWidth:j,className:r?.regLine,style:s?.regLine,color:typeof ne=="string"?ne:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=We,e[10]=r?.graphObjectValues,e[11]=r?.regLine,e[12]=r?.xAxis?.axis,e[13]=r?.xAxis?.gridLines,e[14]=r?.xAxis?.labels,e[15]=r?.xAxis?.title,e[16]=r?.yAxis?.gridLines,e[17]=r?.yAxis?.labels,e[18]=r?.yAxis?.title,e[19]=R,e[20]=x,e[21]=Se,e[22]=q,e[23]=o,e[24]=$,e[25]=M,e[26]=I,e[27]=Ct,e[28]=G,e[29]=b,e[30]=Ne,e[31]=te,e[32]=d.bottom,e[33]=d.left,e[34]=d.right,e[35]=d.top,e[36]=ct,e[37]=ut,e[38]=Ge,e[39]=k,e[40]=A,e[41]=P,e[42]=w,e[43]=Be,e[44]=ze,e[45]=N,e[46]=ie,e[47]=V,e[48]=T,e[49]=At,e[50]=Ot,e[51]=ne,e[52]=Le,e[53]=He,e[54]=we,e[55]=Ue,e[56]=s?.graphObjectValues,e[57]=s?.regLine,e[58]=s?.xAxis?.axis,e[59]=s?.xAxis?.gridLines,e[60]=s?.xAxis?.labels,e[61]=s?.xAxis?.title,e[62]=s?.yAxis?.gridLines,e[63]=s?.yAxis?.labels,e[64]=s?.yAxis?.title,e[65]=ee,e[66]=g,e[67]=Ve,e[68]=$e,e[69]=U,e[70]=oe,e[71]=Me,e[72]=H,e[73]=re,e[74]=le,e[75]=ae,e[76]=ce,e[77]=ue,e[78]=X,e[79]=xe,e[80]=fe,e[81]=me,e[82]=W,e[83]=de,e[84]=B,e[85]=pe,e[86]=z,e[87]=he,e[88]=Y,e[89]=J}else H=e[72],re=e[73],le=e[74],ae=e[75],ce=e[76],ue=e[77],X=e[78],xe=e[79],fe=e[80],me=e[81],W=e[82],de=e[83],B=e[84],pe=e[85],z=e[86],he=e[87],Y=e[88],J=e[89];let ge;e[175]!==H||e[176]!==B||e[177]!==pe||e[178]!==z||e[179]!==he||e[180]!==Y||e[181]!==J?(ge=n.jsxRuntimeExports.jsxs(H,{children:[B,pe,z,he,Y,J]}),e[175]=H,e[176]=B,e[177]=pe,e[178]=z,e[179]=he,e[180]=Y,e[181]=J,e[182]=ge):ge=e[182];let ye;e[183]!==q?(ye=q.filter(Ni).map(Li),e[183]=q,e[184]=ye):ye=e[184];let ve;e[185]!==le||e[186]!==ae||e[187]!==ce||e[188]!==ue||e[189]!==X||e[190]!==ge||e[191]!==ye?(ve=n.jsxRuntimeExports.jsxs("g",{transform:le,children:[ae,ce,ue,X,ge,ye]}),e[185]=le,e[186]=ae,e[187]=ce,e[188]=ue,e[189]=X,e[190]=ge,e[191]=ye,e[192]=ve):ve=e[192];let be;e[193]!==re||e[194]!==xe||e[195]!==fe||e[196]!==me||e[197]!==W||e[198]!==de||e[199]!==ve?(be=n.jsxRuntimeExports.jsx(re,{width:xe,height:fe,viewBox:me,direction:W,ref:de,children:ve}),e[193]=re,e[194]=xe,e[195]=fe,e[196]=me,e[197]=W,e[198]=de,e[199]=ve,e[200]=be):be=e[200];let je;e[201]!==r?.tooltip||e[202]!==mt||e[203]!==p||e[204]!==w||e[205]!==s?.tooltip||e[206]!==at?(je=w&&at&&mt&&p?n.jsxRuntimeExports.jsx(pi.Tooltip,{data:w,body:at,xPos:mt,yPos:p,backgroundStyle:s?.tooltip,className:r?.tooltip}):null,e[201]=r?.tooltip,e[202]=mt,e[203]=p,e[204]=w,e[205]=s?.tooltip,e[206]=at,e[207]=je):je=e[207];let K;e[208]!==r?.modal||e[209]!==$||e[210]!==P?(K=$&&P!==void 0?n.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:P,setData:Je,className:r?.modal}):null,e[208]=r?.modal,e[209]=$,e[210]=P,e[211]=K):K=e[211];let De;return e[212]!==be||e[213]!==je||e[214]!==K?(De=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[be,je,K]}),e[212]=be,e[213]=je,e[214]=K,e[215]=De):De=e[215],De}function Li(i){return i.layer}function Ni(i){return i.position==="after"}function $i(i){return i.color}function Mi(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}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!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Yi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Fi(i){return i.layer}function Ui(i){return i.position==="before"}function Gi(i){return i!==0}function Hi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ji(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ki(i){return!v.checkIfNullOrUndefined(i.radius)}function Qi(i){return!v.checkIfNullOrUndefined(i.radius)}function Zi(i){return i.radius===void 0||i.radius===null}function _i(i,e){return{...i,id:`${e}`}}function en(i){const e=n.compilerRuntimeExports.c(130),{data:o,graphTitle:ee,colors:I,sources:Ue,graphDescription:x,showLabels:R,height:T,width:g,footNote:U,colorDomain:te,colorLegendTitle:lt,radius:jt,xAxisTitle:Vt,yAxisTitle:at,padding:ie,backgroundColor:At,leftMargin:Ot,rightMargin:Ct,topMargin:we,bottomMargin:G,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:k,refXValues:Ge,refYValues:A,highlightAreaSettings:N,showColorScale:He,highlightedDataPoints:We,graphID:Se,maxRadiusValue:ne,maxXValue:Le,minXValue:$,maxYValue:Be,minYValue:ze,xSuffix:Ne,ySuffix:$e,xPrefix:Me,yPrefix:Ve,onSeriesMouseClick:oe,graphDownload:s,dataDownload:r,language:a,showNAColor:M,minHeight:V,annotations:q,customHighlightAreaSettings:xt,theme:ft,regressionLine:b,ariaLabel:w,resetSelectionOnDoubleClick:qe,detailsOnClick:P,noOfXTicks:Je,noOfYTicks:mt,labelColor:se,styles:p,classNames:f,animate:Rt,dimmedOpacity:kt,precision:dt,customLayers:d,timeline:H}=i,re=R===void 0?!1:R,le=jt===void 0?5:jt,ae=Vt===void 0?"X Axis":Vt,ce=at===void 0?"Y Axis":at,ue=At===void 0?!1:At,X=Ot===void 0?0:Ot,xe=Ct===void 0?10:Ct,fe=we===void 0?20:we,me=G===void 0?50:G;let W;e[0]!==Ge?(W=Ge===void 0?[]:Ge,e[0]=Ge,e[1]=W):W=e[1];const de=W;let B;e[2]!==A?(B=A===void 0?[]:A,e[2]=A,e[3]=B):B=e[3];const pe=B;let z;e[4]!==N?(z=N===void 0?[]:N,e[4]=N,e[5]=z):z=e[5];const he=z,Y=He===void 0?!0:He;let J;e[6]!==We?(J=We===void 0?[]:We,e[6]=We,e[7]=J):J=e[7];const ge=J,ye=Ne===void 0?"":Ne,ve=$e===void 0?"":$e,be=Me===void 0?"":Me,je=Ve===void 0?"":Ve,K=s===void 0?!1:s,De=r===void 0?!1:r,Q=a===void 0?"en":a,j=M===void 0?!0:M,y=V===void 0?0:V;let E;e[8]!==q?(E=q===void 0?[]:q,e[8]=q,e[9]=E):E=e[9];const Ke=E;let c;e[10]!==xt?(c=xt===void 0?[]:xt,e[10]=xt,e[11]=c):c=e[11];const m=c,Ae=ft===void 0?"light":ft,Et=b===void 0?!1:b,qt=qe===void 0?!0:qe,Dt=Je===void 0?5:Je,wt=mt===void 0?5:mt,Ie=Rt===void 0?!1:Rt,pt=kt===void 0?.3:kt,ht=dt===void 0?2:dt;let Te;e[12]!==d?(Te=d===void 0?[]:d,e[12]=d,e[13]=Te):Te=e[13];const gt=Te;let Qe;e[14]!==H?(Qe=H===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:H,e[14]=H,e[15]=Qe):Qe=e[15];const l=Qe,[Ze,It]=L.useState(0),[_e,Tt]=L.useState(0),[O,Pt]=L.useState(l.autoplay);let F;if(e[16]!==o||e[17]!==l.dateFormat){let h;e[19]!==l.dateFormat?(h=S=>_t.parse(`${S.date}`,l.dateFormat||"yyyy",new Date).getTime(),e[19]=l.dateFormat,e[20]=h):h=e[20],F=[...new Set(o.filter(Ln).map(h))],F.sort(Sn),e[16]=o,e[17]=l.dateFormat,e[18]=F}else F=e[18];const u=F,[D,Oe]=L.useState(l.autoplay?0:u.length-1),[yt,et]=L.useState(void 0),Ce=L.useRef(null),Pe=L.useRef(null);let Xe,tt;e[21]===Symbol.for("react.memo_cache_sentinel")?(Xe=()=>{const h=new ResizeObserver(S=>{It(S[0].target.clientWidth||620),Tt(S[0].target.clientHeight||480)});return Ce.current&&h.observe(Ce.current),()=>h.disconnect()},tt=[],e[21]=Xe,e[22]=tt):(Xe=e[21],tt=e[22]),L.useEffect(Xe,tt);let it,nt;e[23]!==O||e[24]!==l.speed||e[25]!==u?(it=()=>{const h=setInterval(()=>{Oe(S=>S<u.length-1?S+1:0)},(l.speed||2)*1e3);return O||clearInterval(h),()=>clearInterval(h)},nt=[u,O,l.speed],e[23]=O,e[24]=l.speed,e[25]=u,e[26]=it,e[27]=nt):(it=e[26],nt=e[27]),L.useEffect(it,nt);const vt=l.dateFormat||"yyyy";let Ye;e[28]!==D||e[29]!==vt||e[30]!==l.showOnlyActiveDate||e[31]!==u?(Ye=ei.getSliderMarks(u,D,l.showOnlyActiveDate,vt),e[28]=D,e[29]=vt,e[30]=l.showOnlyActiveDate,e[31]=u,e[32]=Ye):Ye=e[32];const ot=Ye,bt=f?.graphContainer,st=p?.graphContainer;let Re;e[33]!==f?.description||e[34]!==f?.title||e[35]!==o||e[36]!==De||e[37]!==x||e[38]!==K||e[39]!==ee||e[40]!==p?.description||e[41]!==p?.title||e[42]!==g?(Re=ee||x||K||De?n.jsxRuntimeExports.jsx(Ri.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:f?.title,description:f?.description},graphTitle:ee,graphDescription:x,width:g,graphDownload:K?Pe:void 0,dataDownload:De?o.map(wn).filter(En).length>0?o.map(kn).filter(Rn):o.filter(Cn):null}):null,e[33]=f?.description,e[34]=f?.title,e[35]=o,e[36]=De,e[37]=x,e[38]=K,e[39]=ee,e[40]=p?.description,e[41]=p?.title,e[42]=g,e[43]=Re):Re=e[43];let ke;e[44]!==D||e[45]!==ot||e[46]!==O||e[47]!==l.enabled||e[48]!==u?(ke=l.enabled&&u.length>0&&ot?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Pt(!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(ci.Pause,{}):n.jsxRuntimeExports.jsx(ci.Play,{})}),n.jsxRuntimeExports.jsx(ei.Nr,{min:u[0],max:u[u.length-1],marks:ot,step:null,defaultValue:u[u.length-1],value:u[D],onChangeComplete:h=>{Oe(u.indexOf(h))},onChange:h=>{Oe(u.indexOf(h))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=D,e[45]=ot,e[46]=O,e[47]=l.enabled,e[48]=u,e[49]=ke):ke=e[49];let Z;e[50]!==Ie||e[51]!==Ke||e[52]!==me||e[53]!==f||e[54]!==te||e[55]!==lt||e[56]!==I||e[57]!==m||e[58]!==gt||e[59]!==o||e[60]!==P||e[61]!==pt||e[62]!==he||e[63]!==ge||e[64]!==D||e[65]!==se||e[66]!==Q||e[67]!==X||e[68]!==ne||e[69]!==Le||e[70]!==Be||e[71]!==$||e[72]!==ze||e[73]!==Dt||e[74]!==wt||e[75]!==oe||e[76]!==k||e[77]!==ht||e[78]!==le||e[79]!==de||e[80]!==pe||e[81]!==Et||e[82]!==qt||e[83]!==xe||e[84]!==yt||e[85]!==Y||e[86]!==re||e[87]!==j||e[88]!==p||e[89]!==_e||e[90]!==Ze||e[91]!==Ae||e[92]!==l.dateFormat||e[93]!==l.enabled||e[94]!==ct||e[95]!==fe||e[96]!==u||e[97]!==g||e[98]!==ae||e[99]!==be||e[100]!==ye||e[101]!==ce||e[102]!==je||e[103]!==ve?(Z=o.length===0?n.jsxRuntimeExports.jsx(Ei.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Y&&o.filter(On).length!==0?n.jsxRuntimeExports.jsx(ki.ColorLegendWithMouseOver,{width:g,colorLegendTitle:lt,colors:I||_.Colors[Ae].categoricalColors.colors,colorDomain:te||ui.uniqBy(o,"color",!0),setSelectedColor:et,showNAColor:j,className:f?.colorLegend}):null,n.jsxRuntimeExports.jsx(xi.GraphArea,{ref:Ce,children:Ze&&_e?n.jsxRuntimeExports.jsx(Si,{data:wi.ensureCompleteDataForScatterPlot(o,l.dateFormat||"yyyy").filter(h=>l.enabled?h.date===_t.format(new Date(u[D]),l.dateFormat||"yyyy"):h),width:Ze,height:_e,colorDomain:o.filter(An).length===0?[]:te||ui.uniqBy(o,"color",!0),colors:o.filter(jn).length===0?I?[I]:[_.Colors.primaryColors["blue-600"]]:I||_.Colors[Ae].categoricalColors.colors,xAxisTitle:ae,yAxisTitle:ce,refXValues:de,refYValues:pe,showLabels:re,radius:le,leftMargin:X,rightMargin:xe,topMargin:fe,bottomMargin:me,tooltip:ct,onSeriesMouseOver:k,highlightAreaSettings:he,highlightedDataPoints:o.filter(bn).length===0?[]:ge,selectedColor:yt,maxRadiusValue:v.checkIfNullOrUndefined(ne)?Math.max(...o.map(vn).filter(yn)):ne,maxXValue:v.checkIfNullOrUndefined(Le)?Math.max(...o.map(gn).filter(hn))>0?Math.max(...o.map(pn).filter(dn)):0:Le,minXValue:v.checkIfNullOrUndefined($)?Math.min(...o.map(mn).filter(fn))>0?0:Math.min(...o.map(xn).filter(un)):$,maxYValue:v.checkIfNullOrUndefined(Be)?Math.max(...o.map(cn).filter(an))>0?Math.max(...o.map(ln).filter(rn)):0:Be,minYValue:v.checkIfNullOrUndefined(ze)?Math.min(...o.map(sn).filter(on))>0?0:Math.min(...o.map(nn).filter(tn)):ze,onSeriesMouseClick:oe,rtl:Q==="he"||Q==="ar",annotations:Ke,customHighlightAreaSettings:m,regressionLine:Et,resetSelectionOnDoubleClick:qt,detailsOnClick:P,noOfXTicks:Dt,noOfYTicks:wt,labelColor:se,xSuffix:ye,ySuffix:ve,xPrefix:be,yPrefix:je,styles:p,classNames:f,animate:Ie===!0?{duration:.5,once:!0,amount:.5}:Ie||{duration:0,once:!0,amount:0},dimmedOpacity:pt,precision:ht,customLayers:gt}):null})]}),e[50]=Ie,e[51]=Ke,e[52]=me,e[53]=f,e[54]=te,e[55]=lt,e[56]=I,e[57]=m,e[58]=gt,e[59]=o,e[60]=P,e[61]=pt,e[62]=he,e[63]=ge,e[64]=D,e[65]=se,e[66]=Q,e[67]=X,e[68]=ne,e[69]=Le,e[70]=Be,e[71]=$,e[72]=ze,e[73]=Dt,e[74]=wt,e[75]=oe,e[76]=k,e[77]=ht,e[78]=le,e[79]=de,e[80]=pe,e[81]=Et,e[82]=qt,e[83]=xe,e[84]=yt,e[85]=Y,e[86]=re,e[87]=j,e[88]=p,e[89]=_e,e[90]=Ze,e[91]=Ae,e[92]=l.dateFormat,e[93]=l.enabled,e[94]=ct,e[95]=fe,e[96]=u,e[97]=g,e[98]=ae,e[99]=be,e[100]=ye,e[101]=ce,e[102]=je,e[103]=ve,e[104]=Z):Z=e[104];let Ee;e[105]!==f?.footnote||e[106]!==f?.source||e[107]!==U||e[108]!==Ue||e[109]!==p?.footnote||e[110]!==p?.source||e[111]!==g?(Ee=Ue||U?n.jsxRuntimeExports.jsx(Ci.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:Ue,footNote:U,width:g}):null,e[105]=f?.footnote,e[106]=f?.source,e[107]=U,e[108]=Ue,e[109]=p?.footnote,e[110]=p?.source,e[111]=g,e[112]=Ee):Ee=e[112];let rt;return e[113]!==w||e[114]!==ue||e[115]!==Se||e[116]!==T||e[117]!==Q||e[118]!==y||e[119]!==ie||e[120]!==ut||e[121]!==bt||e[122]!==st||e[123]!==Re||e[124]!==ke||e[125]!==Z||e[126]!==Ee||e[127]!==Ae||e[128]!==g?(rt=n.jsxRuntimeExports.jsxs(xi.GraphContainer,{className:bt,style:st,id:Se,ref:Pe,"aria-label":w,backgroundColor:ue,theme:Ae,language:Q,minHeight:y,width:g,height:T,relativeHeight:ut,padding:ie,children:[Re,ke,Z,Ee]}),e[113]=w,e[114]=ue,e[115]=Se,e[116]=T,e[117]=Q,e[118]=y,e[119]=ie,e[120]=ut,e[121]=bt,e[122]=st,e[123]=Re,e[124]=ke,e[125]=Z,e[126]=Ee,e[127]=Ae,e[128]=g,e[129]=rt):rt=e[129],rt}function tn(i){return i!=null}function nn(i){return i.y}function on(i){return i!=null}function sn(i){return i.y}function rn(i){return i!=null}function ln(i){return i.y}function an(i){return i!=null}function cn(i){return i.y}function un(i){return i!=null}function xn(i){return i.x}function fn(i){return i!=null}function mn(i){return i.x}function dn(i){return i!=null}function pn(i){return i.x}function hn(i){return i!=null}function gn(i){return i.x}function yn(i){return i!=null}function vn(i){return i.radius}function bn(i){return i.label}function jn(i){return i.color}function An(i){return i.color}function On(i){return i.color}function Cn(i){return i!==void 0}function Rn(i){return i!==void 0}function kn(i){return i.data}function En(i){return i!==void 0}function wn(i){return i.data}function Sn(i,e){return i-e}function Ln(i){return i.date}exports.ScatterPlot=en;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),_t=require("./parse-hMnG_lRV.cjs"),L=require("react"),ei=require("./getSliderMarks-BmADcPQt.cjs"),ti=require("./index-DQA8q5sC.cjs"),di=require("./index-Cno4Q0YE.cjs"),ii=require("./simple-statistics-xm8c0LQQ.cjs"),pi=require("./Tooltip-uUdw6wJL.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ie=require("./Colors.cjs"),ni=require("./numberFormattingFunction-02t-wJta.cjs"),Zt=require("./customArea-CMF5g-C3.cjs"),oi=require("./Axis-DxRV2yMi.cjs"),si=require("./AxisTitle-sS5bLLR7.cjs"),hi=require("./XTicksAndGridLines-B6CELS7q.cjs"),li=require("./ReferenceLine-BH0qdf4R.cjs"),gi=require("./RegressionLine-BOTTNSrr.cjs"),yi=require("./YTicksAndGridLines-4pxTRlRK.cjs"),vi=require("./index-B_sAFsEV.cjs"),bi=require("./DetailsModal-BN0HDFlV.cjs"),Ai=require("./pow-DgrUorRi.cjs"),ri=require("./linear-BwPAspcq.cjs"),ji=require("./delaunay-rcy0HhZi.cjs"),Oi=require("./use-in-view-QcfiW0w3.cjs"),Ft=require("./proxy-BxvUI_9l.cjs"),ai=require("./index-DG2bgAva.cjs"),Ci=require("./GraphFooter.cjs"),Ri=require("./GraphHeader.cjs"),ki=require("./ColorLegendWithMouseOver.cjs"),wi=require("./EmptyState-gLDRXBHm.cjs"),ci=require("./index-DRXx7m-C.cjs"),Si=require("./ensureCompleteData-pZ9QO6kB.cjs"),ui=require("./uniqBy-O05lp2S5.cjs"),xi=require("./GraphContainer-d8A46BK2.cjs");function Ei(i){const e=o.compilerRuntimeExports.c(216),{data:n,width:ne,height:S,showLabels:We,colors:f,colorDomain:R,radius:T,xAxisTitle:g,yAxisTitle:H,leftMargin:P,rightMargin:ut,topMargin:Ct,bottomMargin:Dt,tooltip:xt,onSeriesMouseOver:oe,refXValues:Rt,refYValues:kt,highlightAreaSettings:wt,selectedColor:Ne,highlightedDataPoints:W,maxRadiusValue:ft,maxXValue:mt,minXValue:k,maxYValue:Be,minYValue:j,onSeriesMouseClick:N,rtl:ze,annotations:Je,customHighlightAreaSettings:$e,regressionLine:se,resetSelectionOnDoubleClick:Me,detailsOnClick:$,noOfXTicks:Ke,noOfYTicks:Qe,labelColor:Ve,xSuffix:qe,ySuffix:De,xPrefix:Ie,yPrefix:le,styles:s,classNames:l,animate:a,dimmedOpacity:M,precision:V,customLayers:q}=i,dt=L.useRef(null);let pt;e[0]!==a.amount||e[1]!==a.once?(pt={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=pt):pt=e[2];const b=Oi.useInView(dt,pt),[E,Te]=L.useState(void 0),[X,Ze]=L.useState(void 0),[ht,re]=L.useState(void 0),[h,u]=L.useState(void 0),St=g?Dt+50:Dt,Et=H?P+30:P;let gt;e[3]!==ut||e[4]!==St||e[5]!==Et||e[6]!==Ct?(gt={top:Ct,bottom:St,left:Et,right:ut},e[3]=ut,e[4]=St,e[5]=Et,e[6]=Ct,e[7]=gt):gt=e[7];const p=gt;let B,ae,ce,ue,xe,fe,Y,me,de,pe,z,he,J,ge,K,ye,F,Q;if(e[8]!==a||e[9]!==Je||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]!==$e||e[22]!==q||e[23]!==n||e[24]!==$||e[25]!==M||e[26]!==S||e[27]!==wt||e[28]!==W||e[29]!==b||e[30]!==Ve||e[31]!==P||e[32]!==p.bottom||e[33]!==p.left||e[34]!==p.right||e[35]!==p.top||e[36]!==ft||e[37]!==mt||e[38]!==Be||e[39]!==k||e[40]!==j||e[41]!==X||e[42]!==E||e[43]!==Ke||e[44]!==Qe||e[45]!==N||e[46]!==oe||e[47]!==V||e[48]!==T||e[49]!==Rt||e[50]!==kt||e[51]!==se||e[52]!==Me||e[53]!==ze||e[54]!==Ne||e[55]!==We||e[56]!==s?.graphObjectValues||e[57]!==s?.regLine||e[58]!==s?.xAxis?.axis||e[59]!==s?.xAxis?.gridLines||e[60]!==s?.xAxis?.labels||e[61]!==s?.xAxis?.title||e[62]!==s?.yAxis?.gridLines||e[63]!==s?.yAxis?.labels||e[64]!==s?.yAxis?.title||e[65]!==ne||e[66]!==g||e[67]!==Ie||e[68]!==qe||e[69]!==H||e[70]!==le||e[71]!==De){const _=n.map(_i),A=ne-p.left-p.right,y=S-p.top-p.bottom,w=n.filter(Zi).length!==n.length?Ai.sqrt().domain([0,ft]).range([.25,T]).nice():void 0,_e=_.filter(Qi).length===0?_:di.orderBy(_.filter(Ki),"radius","desc"),c=ri.linear().domain([k,mt]).range([0,A]).nice(),d=ri.linear().domain([j,Be]).range([y,0]).nice(),U=c.ticks(Ke),Lt=d.ticks(Qe),It=ji.Delaunay.from(_e.filter(Ji),t=>c(t.x),t=>d(t.y)).voronoi([0,0,A<0?0:A,y<0?0:y]),Tt=ii.linearRegression(n.filter(zi).map(t=>[c(t.x),d(t.y)])),Nt=ii.linearRegressionLine(Tt);ae=Ft.motion.svg,me=`${ne}px`,de=`${S}px`,pe=`0 0 ${ne} ${S}`,z="ltr",he=dt,ce=`translate(${p.left},${p.top})`;let Xe;e[90]!==a||e[91]!==$e||e[92]!==b||e[93]!==c||e[94]!==d?(Xe=o.jsxRuntimeExports.jsx(Zt.CustomArea,{areaSettings:$e,scaleX:c,scaleY:d,animate:a,isInView:b},"custom-area"),e[90]=a,e[91]=$e,e[92]=b,e[93]=c,e[94]=d,e[95]=Xe):Xe=e[95],ue=o.jsxRuntimeExports.jsxs(ai.AnimatePresence,{children:[o.jsxRuntimeExports.jsx(vi.HighlightAreaForScatterPlot,{areaSettings:wt,width:A,height:y,scaleX:c,scaleY:d,animate:a,isInView:b},"highlight-area"),Xe]});const yt=s?.yAxis?.gridLines,vt=s?.yAxis?.labels;let Ye;e[96]!==yt||e[97]!==vt?(Ye={gridLines:yt,labels:vt},e[96]=yt,e[97]=vt,e[98]=Ye):Ye=e[98];const bt=l?.yAxis?.gridLines,et=l?.yAxis?.labels;let r;e[99]!==bt||e[100]!==et?(r={gridLines:bt,labels:et},e[99]=bt,e[100]=et,e[101]=r):r=e[101];const tt=d(j<0?0:j),Pt=d(j<0?0:j),it=A+p.right,Xt=j<0?0:j;let O;e[102]!==V||e[103]!==Xt||e[104]!==le||e[105]!==De?(O=ni.numberFormattingFunction(Xt,"NA",V,le,De),e[102]=V,e[103]=Xt,e[104]=le,e[105]=De,e[106]=O):O=e[106];const Yt=d(j<0?0:j);let G;e[107]!==Yt?(G={x:0,y:Yt,dy:"0.33em",dx:-4},e[107]=Yt,e[108]=G):G=e[108];const x=l?.xAxis?.axis,D=l?.yAxis?.labels;let Ce;e[109]!==x||e[110]!==D?(Ce={axis:x,label:D},e[109]=x,e[110]=D,e[111]=Ce):Ce=e[111];const At=s?.xAxis?.axis;let nt;e[112]!==s?.yAxis?.labels?(nt=s?.yAxis?.labels||{},e[112]=s?.yAxis?.labels,e[113]=nt):nt=e[113];let Re;e[114]!==nt?(Re={textAnchor:"end",...nt},e[114]=nt,e[115]=Re):Re=e[115];let Fe;e[116]!==At||e[117]!==Re?(Fe={axis:At,label:Re},e[116]=At,e[117]=Re,e[118]=Fe):Fe=e[118];let Ue;e[119]!==tt||e[120]!==Pt||e[121]!==it||e[122]!==O||e[123]!==G||e[124]!==Ce||e[125]!==Fe?(Ue=o.jsxRuntimeExports.jsx(oi.Axis,{y1:tt,y2:Pt,x1:0,x2:it,label:O,labelPos:G,classNames:Ce,styles:Fe}),e[119]=tt,e[120]=Pt,e[121]=it,e[122]=O,e[123]=G,e[124]=Ce,e[125]=Fe,e[126]=Ue):Ue=e[126];const ot=0-P-15,st=y/2,lt=s?.yAxis?.title,jt=l?.yAxis?.title;let Ge;e[127]!==ot||e[128]!==st||e[129]!==lt||e[130]!==jt||e[131]!==H?(Ge=o.jsxRuntimeExports.jsx(si.AxisTitle,{x:ot,y:st,style:lt,className:jt,text:H,rotate90:!0}),e[127]=ot,e[128]=st,e[129]=lt,e[130]=jt,e[131]=H,e[132]=Ge):Ge=e[132],xe=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Lt.filter(Bi),y:Lt.filter(Wi).map(t=>d(t)),x1:0,x2:A+p.right,styles:Ye,classNames:r,suffix:De,prefix:le,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:V}),Ue,Ge]});const rt=s?.xAxis?.gridLines,Ot=s?.xAxis?.labels;let at;e[133]!==rt||e[134]!==Ot?(at={gridLines:rt,labels:Ot},e[133]=rt,e[134]=Ot,e[135]=at):at=e[135];const ke=l?.xAxis?.gridLines,we=l?.xAxis?.labels;let ee;e[136]!==ke||e[137]!==we?(ee={gridLines:ke,labels:we},e[136]=ke,e[137]=we,e[138]=ee):ee=e[138];const Se=c(k<0?0:k),Ee=c(k<0?0:k),Le=k<0?0:k;let I;e[139]!==V||e[140]!==Le||e[141]!==Ie||e[142]!==qe?(I=ni.numberFormattingFunction(Le,"NA",V,Ie,qe),e[139]=V,e[140]=Le,e[141]=Ie,e[142]=qe,e[143]=I):I=e[143];const ct=c(k<0?0:k);let m;e[144]!==y||e[145]!==ct?(m={x:ct,y,dy:"1em",dx:0},e[144]=y,e[145]=ct,e[146]=m):m=e[146];const te=l?.xAxis?.axis,Ht=l?.yAxis?.labels;let $t;e[147]!==te||e[148]!==Ht?($t={axis:te,label:Ht},e[147]=te,e[148]=Ht,e[149]=$t):$t=e[149];const Wt=s?.xAxis?.axis;let Mt;e[150]!==s?.yAxis?.labels?(Mt=s?.yAxis?.labels||{},e[150]=s?.yAxis?.labels,e[151]=Mt):Mt=e[151];let Vt;e[152]!==Mt?(Vt={textAnchor:"middle",...Mt},e[152]=Mt,e[153]=Vt):Vt=e[153];let qt;e[154]!==Wt||e[155]!==Vt?(qt={axis:Wt,label:Vt},e[154]=Wt,e[155]=Vt,e[156]=qt):qt=e[156];let Ut;e[157]!==y||e[158]!==Se||e[159]!==Ee||e[160]!==I||e[161]!==m||e[162]!==$t||e[163]!==qt?(Ut=o.jsxRuntimeExports.jsx(oi.Axis,{x1:Se,x2:Ee,y1:0,y2:y,label:I,labelPos:m,classNames:$t,styles:qt}),e[157]=y,e[158]=Se,e[159]=Ee,e[160]=I,e[161]=m,e[162]=$t,e[163]=qt,e[164]=Ut):Ut=e[164];const Bt=A/2,zt=y+30,Jt=s?.xAxis?.title,Kt=l?.xAxis?.title;let Gt;e[165]!==Bt||e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==g?(Gt=o.jsxRuntimeExports.jsx(si.AxisTitle,{x:Bt,y:zt,style:Jt,className:Kt,text:g}),e[165]=Bt,e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=g,e[170]=Gt):Gt=e[170],fe=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(hi.XTicksAndGridLines,{values:U.filter(Hi),x:U.filter(Gi).map(t=>c(t)),y1:0,y2:y,styles:at,classNames:ee,suffix:qe,prefix:Ie,labelType:"primary",showGridLines:!0,precision:V}),Ut,Gt]}),e[171]!==q?(Y=q.filter(Ui).map(Fi),e[171]=q,e[172]=Y):Y=e[172],B=ai.AnimatePresence,J=_e.filter(Yi).map((t,He)=>o.jsxRuntimeExports.jsx("path",{d:It.renderCell(_e.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{Te(t),u(C.clientY),re(C.clientX),oe?.(t)},onMouseMove:C=>{Te(t),u(C.clientY),re(C.clientX)},onMouseLeave:()=>{Te(void 0),re(void 0),u(void 0),oe?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(X,t)&&Me?(Ze(void 0),N?.(void 0)):(Ze(t),N?.(t)))}},`tesselation_${t.label||He}`)),ge=_e.filter(Xi).map((t,He)=>o.jsxRuntimeExports.jsxs(Ft.motion.g,{variants:{initial:{x:c(t.x),y:d(t.y),opacity:Ne?t.color&&f[R.indexOf(`${t.color}`)]===Ne?1:M:E?E.id===t.id?1:M:W.length!==0?W.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:c(t.x),y:d(t.y),opacity:Ne?t.color&&f[R.indexOf(`${t.color}`)]===Ne?1:M:E?E.id===t.id?1:M:W.length!==0?W.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{Te(t),u(C.clientY),re(C.clientX),oe?.(t)},onMouseMove:C=>{Te(t),u(C.clientY),re(C.clientX)},onMouseLeave:()=>{Te(void 0),re(void 0),u(void 0),oe?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(X,t)&&Me?(Ze(void 0),N?.(void 0)):(Ze(t),N?.(t)))},children:[o.jsxRuntimeExports.jsx(Ft.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:n.filter(Pi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,stroke:n.filter(Ti).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray},whileInView:{r:w?w(t.radius||0):T,fill:n.filter(Ii).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,stroke:n.filter(Di).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),We&&!v.checkIfNullOrUndefined(t.label)?o.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:w?w(t.radius||0):T,opacity:0,fill:Ve||(n.filter(qi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray)},whileInView:{x:w?w(t.radius||0):T,opacity:1,fill:Ve||(n.filter(Vi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):W.length!==0&&!v.checkIfNullOrUndefined(t.label)&&W.indexOf(t.label)!==-1?o.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:w?w(t.radius||0):T,opacity:0,fill:Ve||(n.filter(Mi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray)},whileInView:{x:w?w(t.radius||0):T,opacity:1,fill:Ve||(n.filter($i).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||He}`)),K=Rt.map((t,He)=>o.jsxRuntimeExports.jsx(li.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:y,textSide:c(t.value)>A*.75||ze?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)),ye=kt.map((t,He)=>o.jsxRuntimeExports.jsx(li.RefLineY,{text:t.text,color:t.color,y:d(t.value),x1:0,x2:A,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He));const Qt=Je.map((t,He)=>{const C=Zt.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?d(t.yCoordinate):0},v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),fi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?d(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?d(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,mi={y:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:ze?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:ze?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):A+p.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return o.jsxRuntimeExports.jsx(Zt.Annotation,{color:t.color,connectorsSettings:fi,labelSettings:mi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)});e[173]!==Qt?(F=o.jsxRuntimeExports.jsx("g",{children:Qt}),e[173]=Qt,e[174]=F):F=e[174],Q=se?o.jsxRuntimeExports.jsx(gi.RegressionLine,{x1:0,x2:A,y1:Nt(0),y2:Nt(A),graphHeight:y,graphWidth:A,className:l?.regLine,style:s?.regLine,color:typeof se=="string"?se:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=Je,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]=$e,e[22]=q,e[23]=n,e[24]=$,e[25]=M,e[26]=S,e[27]=wt,e[28]=W,e[29]=b,e[30]=Ve,e[31]=P,e[32]=p.bottom,e[33]=p.left,e[34]=p.right,e[35]=p.top,e[36]=ft,e[37]=mt,e[38]=Be,e[39]=k,e[40]=j,e[41]=X,e[42]=E,e[43]=Ke,e[44]=Qe,e[45]=N,e[46]=oe,e[47]=V,e[48]=T,e[49]=Rt,e[50]=kt,e[51]=se,e[52]=Me,e[53]=ze,e[54]=Ne,e[55]=We,e[56]=s?.graphObjectValues,e[57]=s?.regLine,e[58]=s?.xAxis?.axis,e[59]=s?.xAxis?.gridLines,e[60]=s?.xAxis?.labels,e[61]=s?.xAxis?.title,e[62]=s?.yAxis?.gridLines,e[63]=s?.yAxis?.labels,e[64]=s?.yAxis?.title,e[65]=ne,e[66]=g,e[67]=Ie,e[68]=qe,e[69]=H,e[70]=le,e[71]=De,e[72]=B,e[73]=ae,e[74]=ce,e[75]=ue,e[76]=xe,e[77]=fe,e[78]=Y,e[79]=me,e[80]=de,e[81]=pe,e[82]=z,e[83]=he,e[84]=J,e[85]=ge,e[86]=K,e[87]=ye,e[88]=F,e[89]=Q}else B=e[72],ae=e[73],ce=e[74],ue=e[75],xe=e[76],fe=e[77],Y=e[78],me=e[79],de=e[80],pe=e[81],z=e[82],he=e[83],J=e[84],ge=e[85],K=e[86],ye=e[87],F=e[88],Q=e[89];let ve;e[175]!==B||e[176]!==J||e[177]!==ge||e[178]!==K||e[179]!==ye||e[180]!==F||e[181]!==Q?(ve=o.jsxRuntimeExports.jsxs(B,{children:[J,ge,K,ye,F,Q]}),e[175]=B,e[176]=J,e[177]=ge,e[178]=K,e[179]=ye,e[180]=F,e[181]=Q,e[182]=ve):ve=e[182];let be;e[183]!==q?(be=q.filter(Ni).map(Li),e[183]=q,e[184]=be):be=e[184];let Ae;e[185]!==ce||e[186]!==ue||e[187]!==xe||e[188]!==fe||e[189]!==Y||e[190]!==ve||e[191]!==be?(Ae=o.jsxRuntimeExports.jsxs("g",{transform:ce,children:[ue,xe,fe,Y,ve,be]}),e[185]=ce,e[186]=ue,e[187]=xe,e[188]=fe,e[189]=Y,e[190]=ve,e[191]=be,e[192]=Ae):Ae=e[192];let je;e[193]!==ae||e[194]!==me||e[195]!==de||e[196]!==pe||e[197]!==z||e[198]!==he||e[199]!==Ae?(je=o.jsxRuntimeExports.jsx(ae,{width:me,height:de,viewBox:pe,direction:z,ref:he,children:Ae}),e[193]=ae,e[194]=me,e[195]=de,e[196]=pe,e[197]=z,e[198]=he,e[199]=Ae,e[200]=je):je=e[200];let Oe;e[201]!==l?.tooltip||e[202]!==ht||e[203]!==h||e[204]!==E||e[205]!==s?.tooltip||e[206]!==xt?(Oe=E&&xt&&ht&&h?o.jsxRuntimeExports.jsx(pi.Tooltip,{data:E,body:xt,xPos:ht,yPos:h,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[201]=l?.tooltip,e[202]=ht,e[203]=h,e[204]=E,e[205]=s?.tooltip,e[206]=xt,e[207]=Oe):Oe=e[207];let Z;e[208]!==l?.modal||e[209]!==$||e[210]!==X?(Z=$&&X!==void 0?o.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:X,setData:Ze,className:l?.modal}):null,e[208]=l?.modal,e[209]=$,e[210]=X,e[211]=Z):Z=e[211];let Pe;return e[212]!==je||e[213]!==Oe||e[214]!==Z?(Pe=o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[je,Oe,Z]}),e[212]=je,e[213]=Oe,e[214]=Z,e[215]=Pe):Pe=e[215],Pe}function Li(i){return i.layer}function Ni(i){return i.position==="after"}function $i(i){return i.color}function Mi(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}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!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Yi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Fi(i){return i.layer}function Ui(i){return i.position==="before"}function Gi(i){return i!==0}function Hi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ji(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ki(i){return!v.checkIfNullOrUndefined(i.radius)}function Qi(i){return!v.checkIfNullOrUndefined(i.radius)}function Zi(i){return i.radius===void 0||i.radius===null}function _i(i,e){return{...i,id:`${e}`}}function en(i){const e=o.compilerRuntimeExports.c(142),{data:n,graphTitle:ne,colors:S,sources:We,graphDescription:f,showLabels:R,height:T,width:g,footNote:H,colorDomain:P,colorLegendTitle:ut,radius:Ct,xAxisTitle:Dt,yAxisTitle:xt,padding:oe,backgroundColor:Rt,leftMargin:kt,rightMargin:wt,topMargin:Ne,bottomMargin:W,tooltip:ft,relativeHeight:mt,onSeriesMouseOver:k,refXValues:Be,refYValues:j,highlightAreaSettings:N,showColorScale:ze,highlightedDataPoints:Je,graphID:$e,maxRadiusValue:se,maxXValue:Me,minXValue:$,maxYValue:Ke,minYValue:Qe,xSuffix:Ve,ySuffix:qe,xPrefix:De,yPrefix:Ie,onSeriesMouseClick:le,graphDownload:s,dataDownload:l,language:a,showNAColor:M,minHeight:V,annotations:q,customHighlightAreaSettings:dt,theme:pt,regressionLine:b,ariaLabel:E,resetSelectionOnDoubleClick:Te,detailsOnClick:X,noOfXTicks:Ze,noOfYTicks:ht,labelColor:re,styles:h,classNames:u,animate:St,dimmedOpacity:Et,precision:gt,customLayers:p,timeline:B}=i,ae=R===void 0?!1:R,ce=Ct===void 0?5:Ct,ue=Dt===void 0?"X Axis":Dt,xe=xt===void 0?"Y Axis":xt,fe=Rt===void 0?!1:Rt,Y=kt===void 0?0:kt,me=wt===void 0?10:wt,de=Ne===void 0?20:Ne,pe=W===void 0?50:W;let z;e[0]!==Be?(z=Be===void 0?[]:Be,e[0]=Be,e[1]=z):z=e[1];const he=z;let J;e[2]!==j?(J=j===void 0?[]:j,e[2]=j,e[3]=J):J=e[3];const ge=J;let K;e[4]!==N?(K=N===void 0?[]:N,e[4]=N,e[5]=K):K=e[5];const ye=K,F=ze===void 0?!0:ze;let Q;e[6]!==Je?(Q=Je===void 0?[]:Je,e[6]=Je,e[7]=Q):Q=e[7];const ve=Q,be=Ve===void 0?"":Ve,Ae=qe===void 0?"":qe,je=De===void 0?"":De,Oe=Ie===void 0?"":Ie,Z=s===void 0?!1:s,Pe=l===void 0?!1:l,_=a===void 0?"en":a,A=M===void 0?!0:M,y=V===void 0?0:V;let w;e[8]!==q?(w=q===void 0?[]:q,e[8]=q,e[9]=w):w=e[9];const _e=w;let c;e[10]!==dt?(c=dt===void 0?[]:dt,e[10]=dt,e[11]=c):c=e[11];const d=c,U=pt===void 0?"light":pt,Lt=b===void 0?!1:b,It=Te===void 0?!0:Te,Tt=Ze===void 0?5:Ze,Nt=ht===void 0?5:ht,Xe=St===void 0?!1:St,yt=Et===void 0?.3:Et,vt=gt===void 0?2:gt;let Ye;e[12]!==p?(Ye=p===void 0?[]:p,e[12]=p,e[13]=Ye):Ye=e[13];const bt=Ye;let et;e[14]!==B?(et=B===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:B,e[14]=B,e[15]=et):et=e[15];const r=et,[tt,Pt]=L.useState(0),[it,Xt]=L.useState(0),[O,Yt]=L.useState(r.autoplay);let G;if(e[16]!==n||e[17]!==r.dateFormat){let m;e[19]!==r.dateFormat?(m=te=>_t.parse(`${te.date}`,r.dateFormat||"yyyy",new Date).getTime(),e[19]=r.dateFormat,e[20]=m):m=e[20],G=[...new Set(n.filter(Ln).map(m))],G.sort(En),e[16]=n,e[17]=r.dateFormat,e[18]=G}else G=e[18];const x=G,[D,Ce]=L.useState(r.autoplay?0:x.length-1),[At,nt]=L.useState(void 0),Re=L.useRef(null),Fe=L.useRef(null);let Ue,ot;e[21]===Symbol.for("react.memo_cache_sentinel")?(Ue=()=>{const m=new ResizeObserver(te=>{Pt(te[0].target.clientWidth||620),Xt(te[0].target.clientHeight||480)});return Re.current&&m.observe(Re.current),()=>m.disconnect()},ot=[],e[21]=Ue,e[22]=ot):(Ue=e[21],ot=e[22]),L.useEffect(Ue,ot);let st,lt;e[23]!==O||e[24]!==r.speed||e[25]!==x?(st=()=>{const m=setInterval(()=>{Ce(te=>te<x.length-1?te+1:0)},(r.speed||2)*1e3);return O||clearInterval(m),()=>clearInterval(m)},lt=[x,O,r.speed],e[23]=O,e[24]=r.speed,e[25]=x,e[26]=st,e[27]=lt):(st=e[26],lt=e[27]),L.useEffect(st,lt);const jt=r.dateFormat||"yyyy";let Ge;e[28]!==D||e[29]!==jt||e[30]!==r.showOnlyActiveDate||e[31]!==x?(Ge=ei.getSliderMarks(x,D,r.showOnlyActiveDate,jt),e[28]=D,e[29]=jt,e[30]=r.showOnlyActiveDate,e[31]=x,e[32]=Ge):Ge=e[32];const rt=Ge,Ot=u?.graphContainer,at=h?.graphContainer;let ke;e[33]!==u?.description||e[34]!==u?.title||e[35]!==n||e[36]!==Pe||e[37]!==f||e[38]!==Z||e[39]!==ne||e[40]!==h?.description||e[41]!==h?.title||e[42]!==g?(ke=ne||f||Z||Pe?o.jsxRuntimeExports.jsx(Ri.GraphHeader,{styles:{title:h?.title,description:h?.description},classNames:{title:u?.title,description:u?.description},graphTitle:ne,graphDescription:f,width:g,graphDownload:Z?Fe:void 0,dataDownload:Pe?n.map(Sn).filter(wn).length>0?n.map(kn).filter(Rn):n.filter(Cn):null}):null,e[33]=u?.description,e[34]=u?.title,e[35]=n,e[36]=Pe,e[37]=f,e[38]=Z,e[39]=ne,e[40]=h?.description,e[41]=h?.title,e[42]=g,e[43]=ke):ke=e[43];let we;e[44]!==D||e[45]!==rt||e[46]!==O||e[47]!==r.enabled||e[48]!==x?(we=r.enabled&&x.length>0&&rt?o.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[o.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Yt(!O)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":O?"Click to pause animation":"Click to play animation",children:O?o.jsxRuntimeExports.jsx(ci.Pause,{}):o.jsxRuntimeExports.jsx(ci.Play,{})}),o.jsxRuntimeExports.jsx(ei.Nr,{min:x[0],max:x[x.length-1],marks:rt,step:null,defaultValue:x[x.length-1],value:x[D],onChangeComplete:m=>{Ce(x.indexOf(m))},onChange:m=>{Ce(x.indexOf(m))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=D,e[45]=rt,e[46]=O,e[47]=r.enabled,e[48]=x,e[49]=we):we=e[49];let ee;e[50]!==u?.colorLegend||e[51]!==P||e[52]!==ut||e[53]!==S||e[54]!==n||e[55]!==F||e[56]!==A||e[57]!==U||e[58]!==g?(ee=F&&n.filter(On).length!==0&&n.length>0?o.jsxRuntimeExports.jsx(ki.ColorLegendWithMouseOver,{width:g,colorLegendTitle:ut,colors:S||ie.Colors[U].categoricalColors.colors,colorDomain:P||ui.uniqBy(n,"color",!0),setSelectedColor:nt,showNAColor:A,className:u?.colorLegend}):null,e[50]=u?.colorLegend,e[51]=P,e[52]=ut,e[53]=S,e[54]=n,e[55]=F,e[56]=A,e[57]=U,e[58]=g,e[59]=ee):ee=e[59];let Se;e[60]!==n.length?(Se=n.length===0&&o.jsxRuntimeExports.jsx(wi.EmptyState,{}),e[60]=n.length,e[61]=Se):Se=e[61];let Ee;e[62]!==Xe||e[63]!==_e||e[64]!==pe||e[65]!==u||e[66]!==P||e[67]!==S||e[68]!==d||e[69]!==bt||e[70]!==n||e[71]!==X||e[72]!==yt||e[73]!==ye||e[74]!==ve||e[75]!==D||e[76]!==re||e[77]!==_||e[78]!==Y||e[79]!==se||e[80]!==Me||e[81]!==Ke||e[82]!==$||e[83]!==Qe||e[84]!==Tt||e[85]!==Nt||e[86]!==le||e[87]!==k||e[88]!==vt||e[89]!==ce||e[90]!==he||e[91]!==ge||e[92]!==Lt||e[93]!==It||e[94]!==me||e[95]!==At||e[96]!==ae||e[97]!==h||e[98]!==it||e[99]!==tt||e[100]!==U||e[101]!==r.dateFormat||e[102]!==r.enabled||e[103]!==ft||e[104]!==de||e[105]!==x||e[106]!==ue||e[107]!==je||e[108]!==be||e[109]!==xe||e[110]!==Oe||e[111]!==Ae?(Ee=tt&&it&&n.length>0?o.jsxRuntimeExports.jsx(Ei,{data:Si.ensureCompleteDataForScatterPlot(n,r.dateFormat||"yyyy").filter(m=>r.enabled?m.date===_t.format(new Date(x[D]),r.dateFormat||"yyyy"):m),width:tt,height:it,colorDomain:n.filter(jn).length===0?[]:P||ui.uniqBy(n,"color",!0),colors:n.filter(An).length===0?S?[S]:[ie.Colors.primaryColors["blue-600"]]:S||ie.Colors[U].categoricalColors.colors,xAxisTitle:ue,yAxisTitle:xe,refXValues:he,refYValues:ge,showLabels:ae,radius:ce,leftMargin:Y,rightMargin:me,topMargin:de,bottomMargin:pe,tooltip:ft,onSeriesMouseOver:k,highlightAreaSettings:ye,highlightedDataPoints:n.filter(bn).length===0?[]:ve,selectedColor:At,maxRadiusValue:v.checkIfNullOrUndefined(se)?Math.max(...n.map(vn).filter(yn)):se,maxXValue:v.checkIfNullOrUndefined(Me)?Math.max(...n.map(gn).filter(hn))>0?Math.max(...n.map(pn).filter(dn)):0:Me,minXValue:v.checkIfNullOrUndefined($)?Math.min(...n.map(mn).filter(fn))>0?0:Math.min(...n.map(xn).filter(un)):$,maxYValue:v.checkIfNullOrUndefined(Ke)?Math.max(...n.map(cn).filter(an))>0?Math.max(...n.map(rn).filter(ln)):0:Ke,minYValue:v.checkIfNullOrUndefined(Qe)?Math.min(...n.map(sn).filter(on))>0?0:Math.min(...n.map(nn).filter(tn)):Qe,onSeriesMouseClick:le,rtl:_==="he"||_==="ar",annotations:_e,customHighlightAreaSettings:d,regressionLine:Lt,resetSelectionOnDoubleClick:It,detailsOnClick:X,noOfXTicks:Tt,noOfYTicks:Nt,labelColor:re,xSuffix:be,ySuffix:Ae,xPrefix:je,yPrefix:Oe,styles:h,classNames:u,animate:Xe===!0?{duration:.5,once:!0,amount:.5}:Xe||{duration:0,once:!0,amount:0},dimmedOpacity:yt,precision:vt,customLayers:bt}):null,e[62]=Xe,e[63]=_e,e[64]=pe,e[65]=u,e[66]=P,e[67]=S,e[68]=d,e[69]=bt,e[70]=n,e[71]=X,e[72]=yt,e[73]=ye,e[74]=ve,e[75]=D,e[76]=re,e[77]=_,e[78]=Y,e[79]=se,e[80]=Me,e[81]=Ke,e[82]=$,e[83]=Qe,e[84]=Tt,e[85]=Nt,e[86]=le,e[87]=k,e[88]=vt,e[89]=ce,e[90]=he,e[91]=ge,e[92]=Lt,e[93]=It,e[94]=me,e[95]=At,e[96]=ae,e[97]=h,e[98]=it,e[99]=tt,e[100]=U,e[101]=r.dateFormat,e[102]=r.enabled,e[103]=ft,e[104]=de,e[105]=x,e[106]=ue,e[107]=je,e[108]=be,e[109]=xe,e[110]=Oe,e[111]=Ae,e[112]=Ee):Ee=e[112];let Le;e[113]!==Se||e[114]!==Ee?(Le=o.jsxRuntimeExports.jsxs(xi.GraphArea,{ref:Re,children:[Se,Ee]}),e[113]=Se,e[114]=Ee,e[115]=Le):Le=e[115];let I;e[116]!==u?.footnote||e[117]!==u?.source||e[118]!==H||e[119]!==We||e[120]!==h?.footnote||e[121]!==h?.source||e[122]!==g?(I=We||H?o.jsxRuntimeExports.jsx(Ci.GraphFooter,{styles:{footnote:h?.footnote,source:h?.source},classNames:{footnote:u?.footnote,source:u?.source},sources:We,footNote:H,width:g}):null,e[116]=u?.footnote,e[117]=u?.source,e[118]=H,e[119]=We,e[120]=h?.footnote,e[121]=h?.source,e[122]=g,e[123]=I):I=e[123];let ct;return e[124]!==E||e[125]!==fe||e[126]!==$e||e[127]!==T||e[128]!==_||e[129]!==y||e[130]!==oe||e[131]!==mt||e[132]!==Ot||e[133]!==at||e[134]!==ke||e[135]!==we||e[136]!==ee||e[137]!==Le||e[138]!==I||e[139]!==U||e[140]!==g?(ct=o.jsxRuntimeExports.jsxs(xi.GraphContainer,{className:Ot,style:at,id:$e,ref:Fe,"aria-label":E,backgroundColor:fe,theme:U,language:_,minHeight:y,width:g,height:T,relativeHeight:mt,padding:oe,children:[ke,we,ee,Le,I]}),e[124]=E,e[125]=fe,e[126]=$e,e[127]=T,e[128]=_,e[129]=y,e[130]=oe,e[131]=mt,e[132]=Ot,e[133]=at,e[134]=ke,e[135]=we,e[136]=ee,e[137]=Le,e[138]=I,e[139]=U,e[140]=g,e[141]=ct):ct=e[141],ct}function tn(i){return i!=null}function nn(i){return i.y}function on(i){return i!=null}function sn(i){return i.y}function ln(i){return i!=null}function rn(i){return i.y}function an(i){return i!=null}function cn(i){return i.y}function un(i){return i!=null}function xn(i){return i.x}function fn(i){return i!=null}function mn(i){return i.x}function dn(i){return i!=null}function pn(i){return i.x}function hn(i){return i!=null}function gn(i){return i.x}function yn(i){return i!=null}function vn(i){return i.radius}function bn(i){return i.label}function An(i){return i.color}function jn(i){return i.color}function On(i){return i.color}function Cn(i){return i!==void 0}function Rn(i){return i!==void 0}function kn(i){return i.data}function wn(i){return i!==void 0}function Sn(i){return i.data}function En(i,e){return i-e}function Ln(i){return i.date}exports.ScatterPlot=en;
|
|
2
2
|
//# sourceMappingURL=ScatterPlot.cjs.map
|