@undp/data-viz 2.1.1 → 2.1.3
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.js +2 -2
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +129 -120
- package/dist/BarGraph.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +49 -46
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +11 -0
- package/dist/BulletChart.js +758 -711
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +7 -4
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +52 -49
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +2 -2
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +230 -264
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +37 -34
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +41 -38
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GraphEl-BLMih7RN.cjs +2 -0
- package/dist/GraphEl-BLMih7RN.cjs.map +1 -0
- package/dist/{GraphEl-DEzobeOM.js → GraphEl-CRrAlbcr.js} +5 -2
- package/dist/GraphEl-CRrAlbcr.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +2 -2
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +62 -59
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +2 -2
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +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.js +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +7 -4
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/Types.d.ts +2 -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-DH5c52Ub.js +122 -0
- package/dist/ensureCompleteData-DH5c52Ub.js.map +1 -0
- package/dist/ensureCompleteData-pZ9QO6kB.cjs +2 -0
- package/dist/ensureCompleteData-pZ9QO6kB.cjs.map +1 -0
- package/dist/getSchema.cjs +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.js +15 -15
- package/dist/getSchema.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -2
- 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/dist/transformData.cjs +1 -1
- package/dist/transformData.js +2 -2
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
- package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
- package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
- package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
- package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
- package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
- package/package.json +1 -1
- package/dist/GraphEl-B16EYkko.cjs +0 -2
- package/dist/GraphEl-B16EYkko.cjs.map +0 -1
- package/dist/GraphEl-DEzobeOM.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/ensureCompleteData-DNKEGRiP.js +0 -102
- package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
- package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
- package/dist/ensureCompleteData-I6nYmT8E.cjs.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/transformDataForAggregation-DEU__LUl.js.map +0 -1
- package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
- package/dist/transformDataForAggregation-XNg0OGYE.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"),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"),ji=require("./pow-DgrUorRi.cjs"),ri=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-I6nYmT8E.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:rt,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:l,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]!==rt||e[4]!==Rt||e[5]!==kt||e[6]!==jt?(dt={top:jt,bottom:Rt,left:kt,right:rt},e[3]=rt,e[4]=Rt,e[5]=kt,e[6]=jt,e[7]=dt):dt=e[7];const d=dt;let H,le,re,ae,ce,ue,X,xe,fe,me,W,de,B,pe,z,he,Y,J;if(e[8]!==a||e[9]!==We||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]!==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=ri.linear().domain([k,ut]).range([0,j]).nice(),m=ri.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);le=Xt.motion.svg,xe=`${ee}px`,fe=`${I}px`,me=`0 0 ${ee} ${I}`,W="ltr",de=xt,re=`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=l?.yAxis?.gridLines,Qe=l?.yAxis?.labels;let r;e[99]!==gt||e[100]!==Qe?(r={gridLines:gt,labels:Qe},e[99]=gt,e[100]=Qe,e[101]=r):r=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=l?.xAxis?.axis,D=l?.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=l?.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:r,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=l?.xAxis?.gridLines,ke=l?.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),lt=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=l?.xAxis?.axis,Ht=l?.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]!==lt||e[160]!==S||e[161]!==St||e[162]!==Lt||e[163]!==Mt?(Yt=n.jsxRuntimeExports.jsx(oi.Axis,{x1:Ee,x2:lt,y1:0,y2:y,label:S,labelPos:St,classNames:Lt,styles:Mt}),e[157]=y,e[158]=Ee,e[159]=lt,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=l?.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",l?.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",l?.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(li.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(li.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:l?.regLine,style:s?.regLine,color:typeof ne=="string"?ne:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=We,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]=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]=le,e[74]=re,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],le=e[73],re=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]!==re||e[186]!==ae||e[187]!==ce||e[188]!==ue||e[189]!==X||e[190]!==ge||e[191]!==ye?(ve=n.jsxRuntimeExports.jsxs("g",{transform:re,children:[ae,ce,ue,X,ge,ye]}),e[185]=re,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]!==le||e[194]!==xe||e[195]!==fe||e[196]!==me||e[197]!==W||e[198]!==de||e[199]!==ve?(be=n.jsxRuntimeExports.jsx(le,{width:xe,height:fe,viewBox:me,direction:W,ref:de,children:ve}),e[193]=le,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]!==l?.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:l?.tooltip}):null,e[201]=l?.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]!==l?.modal||e[209]!==$||e[210]!==P?(K=$&&P!==void 0?n.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:P,setData:Je,className:l?.modal}):null,e[208]=l?.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:rt,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:l,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,le=R===void 0?!1:R,re=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=l===void 0?!1:l,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 r=Qe,[Ze,It]=L.useState(0),[_e,Tt]=L.useState(0),[O,Pt]=L.useState(r.autoplay);let F;if(e[16]!==o||e[17]!==r.dateFormat){let h;e[19]!==r.dateFormat?(h=S=>_t.parse(`${S}`,r.dateFormat||"yyyy",new Date).getTime(),e[19]=r.dateFormat,e[20]=h):h=e[20],F=[...new Set(o.map(h))],F.sort(Sn),e[16]=o,e[17]=r.dateFormat,e[18]=F}else F=e[18];const u=F,[D,Oe]=L.useState(r.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]!==r.speed||e[25]!==u?(it=()=>{const h=setInterval(()=>{Oe(S=>S<u.length-1?S+1:0)},(r.speed||2)*1e3);return O||clearInterval(h),()=>clearInterval(h)},nt=[u,O,r.speed],e[23]=O,e[24]=r.speed,e[25]=u,e[26]=it,e[27]=nt):(it=e[26],nt=e[27]),L.useEffect(it,nt);const vt=r.dateFormat||"yyyy";let Ye;e[28]!==D||e[29]!==vt||e[30]!==r.showOnlyActiveDate||e[31]!==u?(Ye=ei.getSliderMarks(u,D,r.showOnlyActiveDate,vt),e[28]=D,e[29]=vt,e[30]=r.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]!==r.enabled||e[48]!==u?(ke=r.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]=r.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]!==rt||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]!==re||e[79]!==de||e[80]!==pe||e[81]!==Et||e[82]!==qt||e[83]!==xe||e[84]!==yt||e[85]!==Y||e[86]!==le||e[87]!==j||e[88]!==p||e[89]!==_e||e[90]!==Ze||e[91]!==Ae||e[92]!==r.dateFormat||e[93]!==r.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:rt,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,r.dateFormat||"yyyy").filter(h=>r.enabled?h.date===_t.format(new Date(u[D]),r.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:le,radius:re,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(rn).filter(ln)):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]=rt,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]=re,e[79]=de,e[80]=pe,e[81]=Et,e[82]=qt,e[83]=xe,e[84]=yt,e[85]=Y,e[86]=le,e[87]=j,e[88]=p,e[89]=_e,e[90]=Ze,e[91]=Ae,e[92]=r.dateFormat,e[93]=r.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 lt;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?(lt=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]=lt):lt=e[129],lt}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 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}exports.ScatterPlot=en;
|
|
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-pZ9QO6kB.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;
|
|
2
2
|
//# sourceMappingURL=ScatterPlot.cjs.map
|