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