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