@undp/data-viz 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +1 -1
- package/dist/Axis-D56Gy0se.js +31 -0
- package/dist/Axis-D56Gy0se.js.map +1 -0
- package/dist/Axis-Jt_tmhxS.cjs +2 -0
- package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +6 -0
- package/dist/BarGraph.js +1759 -1750
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +270 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +4 -0
- package/dist/BiVariateChoroplethMap.js +328 -401
- 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 +2 -0
- package/dist/BulletChart.js +544 -542
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +332 -330
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +4 -0
- package/dist/ChoroplethMap.js +341 -416
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/Data/01.json +4042 -0
- package/dist/Data/mapData.json +4543 -0
- package/dist/Data/testMap.json +361 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +4 -0
- package/dist/DotDensityMap.js +297 -311
- 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.d.ts +2 -0
- package/dist/DumbbellChart.js +537 -536
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{GraphEl-DcNr5JzH.js → GraphEl-L5hNe7wJ.js} +84 -67
- package/dist/GraphEl-L5hNe7wJ.js.map +1 -0
- package/dist/GraphEl-ic8C5Ksc.cjs +2 -0
- package/dist/GraphEl-ic8C5Ksc.cjs.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +3 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +3 -0
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +50 -49
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +4 -0
- package/dist/HybridMap.js +368 -418
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +3 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +3 -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 +3 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +3 -0
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +1 -1
- package/dist/ScrollStory.d.ts +3 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +3 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/Types.d.ts +3 -0
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +2 -0
- package/dist/WaterfallChart.js +263 -261
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/index-DLFt97gy.cjs +2 -0
- package/dist/index-DLFt97gy.cjs.map +1 -0
- package/dist/index-Dp_SfsUA.js +2344 -0
- package/dist/index-Dp_SfsUA.js.map +1 -0
- package/dist/index.d.ts +37 -0
- package/package.json +2 -1
- package/readme.md +0 -7
- package/dist/Axis-DoOqnt6g.js +0 -32
- package/dist/Axis-DoOqnt6g.js.map +0 -1
- package/dist/Axis-Dtjn-EgM.cjs +0 -2
- package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
- package/dist/GraphEl-CAjJLOGk.cjs +0 -2
- package/dist/GraphEl-CAjJLOGk.cjs.map +0 -1
- package/dist/GraphEl-DcNr5JzH.js.map +0 -1
- package/dist/zoom-5AkJSuWO.js +0 -1864
- package/dist/zoom-5AkJSuWO.js.map +0 -1
- package/dist/zoom-ChcvXFIz.cjs +0 -2
- package/dist/zoom-ChcvXFIz.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),b=require("./parse-xYI9yrvL.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Ie=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Se=require("./customArea-B1LWQBmM.cjs"),Xe=require("./AxisTitle-DV4n0RxE.cjs"),Fe=require("./Axis-Dtjn-EgM.cjs"),Pe=require("./XTicksAndGridLines-CekrPykD.cjs"),Be=require("./ReferenceLine-M9aP3dj-.cjs"),ze=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Je=require("./index-D69M6klB.cjs"),B=require("./Colors.cjs"),Ee=require("./uniqBy-O05lp2S5.cjs"),ke=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CkcKbhwe.cjs"),Qe=require("./linear-CgUCbw9F.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),$e=require("./line-DaEMhXmx.cjs"),Ae=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-C3o_ntMv.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-CGeBqbmR.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),Ve=require("./GraphContainer-B1EDxJ0S.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,i=>e[i])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[i]=t;if(i&&i.length!==2||t.length>1){const O=Uint32Array.from(e,(E,c)=>c);return t.length>1?(t=t.map(E=>e.map(E)),O.sort((E,c)=>{for(const r of t){const wt=Me(r[E],r[c]);if(wt)return wt}})):(i=e.map(i),O.sort((E,c)=>Me(i[E],i[c]))),an(e,O)}return e.sort(un(i))}function un(e=ke.ascending){if(e===ke.ascending)return Me;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,i)=>{const O=e(t,i);return O||O===0?O:(e(i,i)===0)-(e(t,t)===0)}}function Me(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=s.compilerRuntimeExports.c(128),{data:i,width:O,height:E,lineColors:c,dateFormat:r,noOfXTicks:wt,rightMargin:st,topMargin:Pt,bottomMargin:lt,suffix:U,prefix:g,leftMargin:C,tooltip:bt,onSeriesMouseOver:at,refValues:ct,highlightAreaSettings:Bt,minValue:z,maxValue:Ct,highlightedLines:H,animate:l,rtl:J,strokeWidth:T,showDots:se,annotations:Rt,customHighlightAreaSettings:zt,yAxisTitle:K,noOfYTicks:Jt,minDate:Kt,maxDate:Qt,curveType:ut,styles:j,colorDomain:L,selectedColor:At,classNames:R,showLabels:he,dimmedOpacity:q,precision:Q,naLabel:ge,customLayers:Z}=e,Et=A.useRef(null);let _;t[0]!==l.amount||t[1]!==l.once?(_={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=_):_=t[2];const m=en.useInView(Et,_),[S,le]=A.useState(!1);let kt,ft;t[3]!==l.duration||t[4]!==S||t[5]!==m?(kt=()=>{if(m&&!S){const n=setTimeout(()=>{le(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},ft=[m,S,l.duration],t[3]=l.duration,t[4]=S,t[5]=m,t[6]=kt,t[7]=ft):(kt=t[6],ft=t[7]),A.useEffect(kt,ft);const ae=ut==="linear"?$e.curveLinear:ut==="step"?Ae.curveStep:ut==="stepAfter"?Ae.stepAfter:ut==="stepBefore"?Ae.stepBefore:Ae.monotoneX;let Nt;t[8]!==r?(Nt=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=Nt):Nt=t[9];const a=Te.orderBy(i.map(Nt),["date"],["asc"]).filter(Wn),d=Ee.uniqBy(a,"label",!0);let Dt;t[10]!==r?(Dt=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Dt):Dt=t[11];const Zt=cn(Ee.uniqBy(i,"date",!0).map(Dt),Gn),[x,mt]=A.useState(void 0),[xt,tt]=A.useState(void 0),[pt,et]=A.useState(void 0),Lt=K?C+30:C;let dt;t[12]!==lt||t[13]!==st||t[14]!==Lt||t[15]!==Pt?(dt={top:Pt,bottom:lt,left:Lt,right:st},t[12]=lt,t[13]=st,t[14]=Lt,t[15]=Pt,t[16]=dt):dt=t[16];const h=dt,ce=A.useRef(null),ue=d.map(n=>Te.orderBy(a.filter(o=>o.label==n),["date"],["asc"]));let ht;if(t[17]!==r||t[18]!==Bt){let n;t[20]!==r?(n=o=>({...o,coordinates:[o.coordinates[0]===null?null:b.parse(`${o.coordinates[0]}`,r,new Date),o.coordinates[1]===null?null:b.parse(`${o.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],ht=Bt.map(n),t[17]=r,t[18]=Bt,t[19]=ht}else ht=t[19];const qt=ht;let gt;if(t[22]!==zt||t[23]!==r){let n;t[25]!==r?(n=o=>({...o,coordinates:o.coordinates.map((y,Xt)=>Xt%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],gt=zt.map(n),t[22]=zt,t[23]=r,t[24]=gt}else gt=t[24];const _t=gt,p=O-h.left-h.right,k=E-h.top-h.bottom,fe=Kt?b.parse(`${Kt}`,r,new Date):Zt[0],te=Qt?b.parse(`${Qt}`,r,new Date):Zt[Zt.length-1],w=v.checkIfNullOrUndefined(z)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:z,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,u=Ke.time().domain([fe,te]).range([0,p]);let nt;t[27]!==w||t[28]!==z?(nt=v.checkIfNullOrUndefined(z)?w:z,t[27]=w,t[28]=z,t[29]=nt):nt=t[29];let M;t[30]!==G||t[31]!==Ct?(M=v.checkIfNullOrUndefined(Ct)?G>0?G:0:Ct,t[30]=G,t[31]=Ct,t[32]=M):M=t[32];const f=Qe.linear().domain([nt,M]).range([k,0]).nice(),me=Ze.Delaunay.from(a.filter(Dn),n=>u(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),St=$e.line().x(n=>u(n.date)).y(n=>f(n.y)).curve(ae),Mt=f.ticks(Jt),ee=u.ticks(wt);A.useEffect(()=>{const n=y=>{const Xt=a[ke.bisectCenter(a.map(Nn),u.invert(tn.pointer(y)[0]),0)];mt(Xt||a[a.length-1]),et(y.clientY),tt(y.clientX),at?.(Xt||a[a.length-1])},o=()=>{mt(void 0),tt(void 0),et(void 0)};_e.select(ce.current).on("mousemove",n).on("mouseout",o),at?.(void 0)},[u,a,at]);let ot;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==qt||t[37]!==m||t[38]!==u?(ot=s.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:qt,width:p,height:k,scale:u,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=qt,t[37]=m,t[38]=u,t[39]=ot):ot=t[39];const Tt=j?.yAxis?.gridLines,N=j?.yAxis?.labels;let yt;t[40]!==Tt||t[41]!==N?(yt={gridLines:Tt,labels:N},t[40]=Tt,t[41]=N,t[42]=yt):yt=t[42];const It=R?.yAxis?.gridLines,$t=R?.yAxis?.labels;let vt;t[43]!==It||t[44]!==$t?(vt={gridLines:It,labels:$t},t[43]=It,t[44]=$t,t[45]=vt):vt=t[45];const Ot=f(w<0?0:w),Vt=f(w<0?0:w),Ut=0-C,it=p+h.right,xe=w<0?0:w;let I;t[46]!==Q||t[47]!==g||t[48]!==U||t[49]!==xe?(I=Ie.numberFormattingFunction(xe,"NA",Q,g,U),t[46]=Q,t[47]=g,t[48]=U,t[49]=xe,t[50]=I):I=t[50];const pe=0-C,Ht=f(w<0?0:w),de=G<0?"1em":-5;let W;t[51]!==pe||t[52]!==Ht||t[53]!==de?(W={x:pe,y:Ht,dx:0,dy:de},t[51]=pe,t[52]=Ht,t[53]=de,t[54]=W):W=t[54];const ne=R?.xAxis?.axis,jt=R?.yAxis?.labels;let $;t[55]!==ne||t[56]!==jt?($={axis:ne,label:jt},t[55]=ne,t[56]=jt,t[57]=$):$=t[57];const Gt=j?.xAxis?.axis,Wt=j?.yAxis?.labels;let D;t[58]!==Gt||t[59]!==Wt?(D={axis:Gt,label:Wt},t[58]=Gt,t[59]=Wt,t[60]=D):D=t[60];let V;t[61]!==Ot||t[62]!==Vt||t[63]!==Ut||t[64]!==it||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==D?(V=s.jsxRuntimeExports.jsx(Fe.Axis,{y1:Ot,y2:Vt,x1:Ut,x2:it,label:I,labelPos:W,classNames:$,styles:D}),t[61]=Ot,t[62]=Vt,t[63]=Ut,t[64]=it,t[65]=I,t[66]=W,t[67]=$,t[68]=D,t[69]=V):V=t[69];const Y=0-C-15,X=k/2,F=j?.yAxis?.title,P=R?.yAxis?.title;let rt;t[70]!==Y||t[71]!==X||t[72]!==F||t[73]!==P||t[74]!==K?(rt=s.jsxRuntimeExports.jsx(Xe.AxisTitle,{x:Y,y:X,style:F,className:P,text:K,rotate90:!0}),t[70]=Y,t[71]=X,t[72]=F,t[73]=P,t[74]=K,t[75]=rt):rt=t[75];let Yt;t[76]!==r?(Yt=n=>b.format(n,r),t[76]=r,t[77]=Yt):Yt=t[77];const ye=ee.map(Yt),Ue=ee.map(n=>u(n)),Ne=j?.xAxis?.gridLines,De=j?.xAxis?.labels;let ve;t[78]!==Ne||t[79]!==De?(ve={gridLines:Ne,labels:De},t[78]=Ne,t[79]=De,t[80]=ve):ve=t[80];const Le=R?.xAxis?.gridLines;let oe;t[81]!==Le?(oe=s.mo("opacity-0",Le),t[81]=Le,t[82]=oe):oe=t[82];const qe=R?.xAxis?.labels;let ie;t[83]!==qe?(ie=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",qe),t[83]=qe,t[84]=ie):ie=t[84];let Oe;t[85]!==oe||t[86]!==ie?(Oe={gridLines:oe,labels:ie},t[85]=oe,t[86]=ie,t[87]=Oe):Oe=t[87];let je;t[88]!==Z?(je=Z.filter(An).map(Rn),t[88]=Z,t[89]=je):je=t[89];const He=a.filter(pn).map((n,o)=>s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx("path",{d:me.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{mt(n),et(y.clientY),tt(y.clientX),at?.(n)},onMouseMove:y=>{mt(n),et(y.clientY),tt(y.clientX)},onMouseLeave:()=>{mt(void 0),tt(void 0),et(void 0),at?.(void 0)}})},o));let we;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==h.right||t[95]!==ct||t[96]!==f?(we=ct?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:ct.map((n,o)=>s.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+h.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},o))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=h.right,t[95]=ct,t[96]=f,t[97]=we):we=t[97];let re;if(t[98]!==l||t[99]!==Rt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==h.right||t[104]!==J||t[105]!==u||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==h.right||t[113]!==J||t[114]!==u||t[115]!==f?(n=(o,y)=>{const Xt=Se.getLineEndPoint({x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8},{x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,y:o.yCoordinate?f(o.yCoordinate):0},v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius),Ge=o.showConnector?{y1:Xt.y,x1:Xt.x,y2:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0):0+(o.yOffset||0),x2:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),cy:o.yCoordinate?f(o.yCoordinate):0,cx:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius,strokeWidth:o.showConnector===!0?2:Math.min(o.showConnector||0,1)}:void 0,We={y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8,x:J?0:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),width:J?o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0):p+h.right-(o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0)),maxWidth:o.maxWidth,fontWeight:o.fontWeight,align:o.align};return s.jsxRuntimeExports.jsx(Se.Annotation,{color:o.color,connectorsSettings:Ge,labelSettings:We,text:o.text,classNames:o.classNames,styles:o.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=h.right,t[113]=J,t[114]=u,t[115]=f,t[116]=n):n=t[116],re=Rt.map(n),t[98]=l,t[99]=Rt,t[100]=r,t[101]=p,t[102]=m,t[103]=h.right,t[104]=J,t[105]=u,t[106]=f,t[107]=re}else re=t[107];let be;t[117]!==re?(be=s.jsxRuntimeExports.jsx("g",{children:re}),t[117]=re,t[118]=be):be=t[118];let Ce;t[119]!==Z?(Ce=Z.filter(xn).map(mn),t[119]=Z,t[120]=Ce):Ce=t[120];let Re;return t[121]!==R?.tooltip||t[122]!==xt||t[123]!==pt||t[124]!==x||t[125]!==j?.tooltip||t[126]!==bt?(Re=x&&bt&&xt&&pt?s.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:bt,xPos:xt,yPos:pt,backgroundStyle:j?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=xt,t[123]=pt,t[124]=x,t[125]=j?.tooltip,t[126]=bt,t[127]=Re):Re=t[127],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Ft.motion.svg,{width:`${O}px`,height:`${E}px`,viewBox:`0 0 ${O} ${E}`,direction:"ltr",ref:Et,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[ot,s.jsxRuntimeExports.jsx(Se.CustomArea,{areaSettings:_t,scaleX:u,scaleY:f,animate:l,isInView:m}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Mt.filter(kn),y:Mt.filter(En).map(n=>f(n)),x1:0-C,x2:p+h.right,styles:yt,classNames:vt,suffix:U,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Q}),V,rt]}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:ye,x:Ue,y1:0,y2:k,styles:ve,classNames:Oe,suffix:U,prefix:g,labelType:"primary",showGridLines:!0,precision:Q})}),je,s.jsxRuntimeExports.jsxs(Ft.motion.g,{children:[ue.map(n=>s.jsxRuntimeExports.jsxs(Ft.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1},whileInView:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[s.jsxRuntimeExports.jsx(Ft.motion.path,{d:St(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?T+Math.max(2,.5*T):T:H.length!==0&&H.indexOf(n[0].label)!==-1?T+Math.max(2,.5*T):T},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:St(n.filter(bn))||"",opacity:1,stroke:i.filter(wn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray},whileInView:{pathLength:1,d:St(n.filter(jn))||"",opacity:1,stroke:i.filter(On).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((o,y)=>s.jsxRuntimeExports.jsx(Ft.motion.g,{children:v.checkIfNullOrUndefined(o.y)?null:s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:se?s.jsxRuntimeExports.jsx(Ft.motion.circle,{r:p/n.length<5?0:p/n.length<20?2:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(vn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,cx:u(o.date),cy:f(o.y)},whileInView:{opacity:1,fill:i.filter(yn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:S?l.duration:.5,delay:S?0:l.duration},cx:u(o.date),cy:f(o.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&he?s.jsxRuntimeExports.jsx(Ft.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(gn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:i.filter(hn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:S?l.duration:.5,delay:S?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?s.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:u(x.date),className:s.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:i.filter(dn).length===0?c[0]:x.color?c[L.indexOf(x.color)]:B.Colors.gray,textAnchor:"middle",...j?.graphObjectValues||{}},children:Ie.numberFormattingFunction(x.y,ge,Q,g,U)}):null]}),He,we,be,Ce]})}),Re]})}function mn(e){return e.layer}function xn(e){return e.position==="after"}function pn(e){return!v.checkIfNullOrUndefined(e.y)}function dn(e){return e.color}function hn(e){return e.color}function gn(e){return e.color}function yn(e){return e.color}function vn(e){return e.color}function On(e){return e.color}function jn(e){return!v.checkIfNullOrUndefined(e.y)}function wn(e){return e.color}function bn(e){return!v.checkIfNullOrUndefined(e.y)}function Cn(e){return!v.checkIfNullOrUndefined(e.y)}function Rn(e){return e.layer}function An(e){return e.position==="before"}function En(e){return e!==0}function kn(e){return e!==0}function Nn(e){return e.date}function Dn(e){return!v.checkIfNullOrUndefined(e.date)&&!v.checkIfNullOrUndefined(e.y)}function Ln(e){return!v.checkIfNullOrUndefined(e)}function qn(e){return e.y}function Sn(e){return!v.checkIfNullOrUndefined(e)}function Mn(e){return e.y}function Tn(e){return!v.checkIfNullOrUndefined(e)}function In(e){return e.y}function $n(e){return!v.checkIfNullOrUndefined(e)}function Vn(e){return e.y}function Un(e){return!v.checkIfNullOrUndefined(e)}function Hn(e){return e.y}function Gn(e,t){return ke.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=s.compilerRuntimeExports.c(106),{data:i,graphTitle:O,showNAColor:E,colors:c,colorDomain:r,suffix:wt,sources:st,prefix:Pt,graphDescription:lt,height:U,width:g,footNote:C,noOfXTicks:bt,dateFormat:at,padding:ct,backgroundColor:Bt,leftMargin:z,rightMargin:Ct,topMargin:H,bottomMargin:l,showColorScale:J,tooltip:T,relativeHeight:se,onSeriesMouseOver:Rt,showLabels:zt,refValues:K,highlightAreaSettings:Jt,graphID:Kt,minValue:Qt,maxValue:ut,highlightedLines:j,graphDownload:L,dataDownload:At,animate:R,language:he,colorLegendTitle:q,minHeight:Q,strokeWidth:ge,showDots:Z,annotations:Et,customHighlightAreaSettings:_,theme:m,ariaLabel:S,yAxisTitle:le,noOfYTicks:kt,minDate:ft,maxDate:ae,curveType:Nt,styles:a,classNames:d,dimmedOpacity:Dt,precision:Zt,customLayers:x,naLabel:mt}=e,xt=E===void 0?!0:E,tt=wt===void 0?"":wt,pt=Pt===void 0?"":Pt,et=bt===void 0?10:bt,Lt=at===void 0?"yyyy":at,dt=Bt===void 0?!1:Bt,h=z===void 0?30:z,ce=Ct===void 0?50:Ct,ue=H===void 0?20:H,ht=l===void 0?25:l,qt=J===void 0?!0:J,gt=zt===void 0?!0:zt;let _t;t[0]!==K?(_t=K===void 0?[]:K,t[0]=K,t[1]=_t):_t=t[1];const p=_t;let k;t[2]!==Jt?(k=Jt===void 0?[]:Jt,t[2]=Jt,t[3]=k):k=t[3];const fe=k;let te;t[4]!==j?(te=j===void 0?[]:j,t[4]=j,t[5]=te):te=t[5];const w=te,G=L===void 0?!1:L,u=At===void 0?!1:At,nt=R===void 0?!1:R,M=he===void 0?"en":he,f=Q===void 0?0:Q,me=ge===void 0?2:ge,St=Z===void 0?!0:Z;let Mt;t[6]!==Et?(Mt=Et===void 0?[]:Et,t[6]=Et,t[7]=Mt):Mt=t[7];const ee=Mt;let ot;t[8]!==_?(ot=_===void 0?[]:_,t[8]=_,t[9]=ot):ot=t[9];const Tt=ot,N=m===void 0?"light":m,yt=kt===void 0?5:kt,It=Nt===void 0?"curve":Nt,$t=Dt===void 0?.3:Dt,vt=Zt===void 0?2:Zt;let Ot;t[10]!==x?(Ot=x===void 0?[]:x,t[10]=x,t[11]=Ot):Ot=t[11];const Vt=Ot,Ut=mt===void 0?"NA":mt,[it,xe]=A.useState(0),[I,pe]=A.useState(0),[Ht,de]=A.useState(void 0),W=A.useRef(null),ne=A.useRef(null);let jt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(jt=()=>{const Yt=new ResizeObserver(ye=>{xe(ye[0].target.clientWidth||620),pe(ye[0].target.clientHeight||480)});return W.current&&Yt.observe(W.current),()=>Yt.disconnect()},$=[],t[12]=jt,t[13]=$):(jt=t[12],$=t[13]),A.useEffect(jt,$);const Gt=d?.graphContainer,Wt=a?.graphContainer;let D;t[14]!==d?.description||t[15]!==d?.title||t[16]!==i||t[17]!==u||t[18]!==lt||t[19]!==G||t[20]!==O||t[21]!==a?.description||t[22]!==a?.title||t[23]!==g?(D=O||lt||G||u?s.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:d?.title,description:d?.description},graphTitle:O,graphDescription:lt,width:g,graphDownload:G?ne:void 0,dataDownload:u?i.map(Qn).filter(Kn).length>0?i.map(Jn).filter(zn):i.filter(Bn):null}):null,t[14]=d?.description,t[15]=d?.title,t[16]=i,t[17]=u,t[18]=lt,t[19]=G,t[20]=O,t[21]=a?.description,t[22]=a?.title,t[23]=g,t[24]=D):D=t[24];let V;t[25]!==d?.colorLegend||t[26]!==r||t[27]!==q||t[28]!==c||t[29]!==i||t[30]!==qt||t[31]!==xt||t[32]!==N||t[33]!==g?(V=qt&&i.filter(Pn).length!==0&&i.length>0?s.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:g,colorLegendTitle:q,colors:c||B.Colors[N].categoricalColors.colors,colorDomain:r||Ee.uniqBy(i,"color",!0),setSelectedColor:de,showNAColor:xt,className:d?.colorLegend}):null,t[25]=d?.colorLegend,t[26]=r,t[27]=q,t[28]=c,t[29]=i,t[30]=qt,t[31]=xt,t[32]=N,t[33]=g,t[34]=V):V=t[34];let Y;t[35]!==i.length?(Y=i.length===0&&s.jsxRuntimeExports.jsx(rn.EmptyState,{}),t[35]=i.length,t[36]=Y):Y=t[36];let X;t[37]!==nt||t[38]!==ee||t[39]!==ht||t[40]!==d||t[41]!==r||t[42]!==c||t[43]!==It||t[44]!==Tt||t[45]!==Vt||t[46]!==i||t[47]!==Lt||t[48]!==$t||t[49]!==fe||t[50]!==w||t[51]!==M||t[52]!==h||t[53]!==ae||t[54]!==ut||t[55]!==ft||t[56]!==Qt||t[57]!==Ut||t[58]!==et||t[59]!==yt||t[60]!==Rt||t[61]!==vt||t[62]!==pt||t[63]!==p||t[64]!==ce||t[65]!==Ht||t[66]!==St||t[67]!==gt||t[68]!==me||t[69]!==a||t[70]!==tt||t[71]!==I||t[72]!==it||t[73]!==N||t[74]!==T||t[75]!==ue||t[76]!==le?(X=it&&I&&i.length>0?s.jsxRuntimeExports.jsx(fn,{data:i,lineColors:i.filter(Fn).length===0?c?[c]:[B.Colors.primaryColors["blue-600"]]:c||B.Colors[N].categoricalColors.colors,width:it,height:I,dateFormat:Lt,noOfXTicks:et??ln.getNoOfTicks(it),leftMargin:h,rightMargin:ce,topMargin:ue,bottomMargin:ht,tooltip:T,onSeriesMouseOver:Rt,suffix:tt,prefix:pt,highlightAreaSettings:fe,refValues:p,minValue:Qt,maxValue:ut,highlightedLines:w,animate:nt===!0?{duration:.5,once:!0,amount:.5}:nt||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:me,showDots:St,annotations:ee,customHighlightAreaSettings:Tt,yAxisTitle:le,noOfYTicks:yt,minDate:ft,maxDate:ae,curveType:It,styles:a,classNames:d,selectedColor:Ht,showLabels:gt,colorDomain:i.filter(Xn).length===0?[]:r||Ee.uniqBy(i,"color",!0),dimmedOpacity:$t,precision:vt,customLayers:Vt,naLabel:Ut}):null,t[37]=nt,t[38]=ee,t[39]=ht,t[40]=d,t[41]=r,t[42]=c,t[43]=It,t[44]=Tt,t[45]=Vt,t[46]=i,t[47]=Lt,t[48]=$t,t[49]=fe,t[50]=w,t[51]=M,t[52]=h,t[53]=ae,t[54]=ut,t[55]=ft,t[56]=Qt,t[57]=Ut,t[58]=et,t[59]=yt,t[60]=Rt,t[61]=vt,t[62]=pt,t[63]=p,t[64]=ce,t[65]=Ht,t[66]=St,t[67]=gt,t[68]=me,t[69]=a,t[70]=tt,t[71]=I,t[72]=it,t[73]=N,t[74]=T,t[75]=ue,t[76]=le,t[77]=X):X=t[77];let F;t[78]!==Y||t[79]!==X?(F=s.jsxRuntimeExports.jsxs(Ve.GraphArea,{ref:W,children:[Y,X]}),t[78]=Y,t[79]=X,t[80]=F):F=t[80];let P;t[81]!==d?.footnote||t[82]!==d?.source||t[83]!==C||t[84]!==st||t[85]!==a?.footnote||t[86]!==a?.source||t[87]!==g?(P=st||C?s.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:st,footNote:C,width:g}):null,t[81]=d?.footnote,t[82]=d?.source,t[83]=C,t[84]=st,t[85]=a?.footnote,t[86]=a?.source,t[87]=g,t[88]=P):P=t[88];let rt;return t[89]!==S||t[90]!==dt||t[91]!==Kt||t[92]!==U||t[93]!==M||t[94]!==f||t[95]!==ct||t[96]!==se||t[97]!==Gt||t[98]!==Wt||t[99]!==D||t[100]!==V||t[101]!==F||t[102]!==P||t[103]!==N||t[104]!==g?(rt=s.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:Gt,style:Wt,id:Kt,ref:ne,"aria-label":S,backgroundColor:dt,theme:N,language:M,minHeight:f,width:g,height:U,relativeHeight:se,padding:ct,children:[D,V,F,P]}),t[89]=S,t[90]=dt,t[91]=Kt,t[92]=U,t[93]=M,t[94]=f,t[95]=ct,t[96]=se,t[97]=Gt,t[98]=Wt,t[99]=D,t[100]=V,t[101]=F,t[102]=P,t[103]=N,t[104]=g,t[105]=rt):rt=t[105],rt}function Xn(e){return e.color}function Fn(e){return e.color}function Pn(e){return e.color}function Bn(e){return e!==void 0}function zn(e){return e!==void 0}function Jn(e){return e.data}function Kn(e){return e!==void 0}function Qn(e){return e.data}exports.MultiLineAltChart=Yn;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),b=require("./parse-xYI9yrvL.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Ie=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Se=require("./customArea-B1LWQBmM.cjs"),Xe=require("./AxisTitle-DV4n0RxE.cjs"),Fe=require("./Axis-Jt_tmhxS.cjs"),Pe=require("./XTicksAndGridLines-CekrPykD.cjs"),Be=require("./ReferenceLine-M9aP3dj-.cjs"),ze=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Je=require("./index-D69M6klB.cjs"),B=require("./Colors.cjs"),Ee=require("./uniqBy-O05lp2S5.cjs"),ke=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CkcKbhwe.cjs"),Qe=require("./linear-CgUCbw9F.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),$e=require("./line-DaEMhXmx.cjs"),Ae=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-C3o_ntMv.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-CGeBqbmR.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),Ve=require("./GraphContainer-B1EDxJ0S.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,i=>e[i])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[i]=t;if(i&&i.length!==2||t.length>1){const O=Uint32Array.from(e,(E,c)=>c);return t.length>1?(t=t.map(E=>e.map(E)),O.sort((E,c)=>{for(const r of t){const wt=Me(r[E],r[c]);if(wt)return wt}})):(i=e.map(i),O.sort((E,c)=>Me(i[E],i[c]))),an(e,O)}return e.sort(un(i))}function un(e=ke.ascending){if(e===ke.ascending)return Me;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,i)=>{const O=e(t,i);return O||O===0?O:(e(i,i)===0)-(e(t,t)===0)}}function Me(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=s.compilerRuntimeExports.c(128),{data:i,width:O,height:E,lineColors:c,dateFormat:r,noOfXTicks:wt,rightMargin:st,topMargin:Pt,bottomMargin:lt,suffix:U,prefix:g,leftMargin:C,tooltip:bt,onSeriesMouseOver:at,refValues:ct,highlightAreaSettings:Bt,minValue:z,maxValue:Ct,highlightedLines:H,animate:l,rtl:J,strokeWidth:T,showDots:se,annotations:Rt,customHighlightAreaSettings:zt,yAxisTitle:K,noOfYTicks:Jt,minDate:Kt,maxDate:Qt,curveType:ut,styles:j,colorDomain:L,selectedColor:At,classNames:R,showLabels:he,dimmedOpacity:q,precision:Q,naLabel:ge,customLayers:Z}=e,Et=A.useRef(null);let _;t[0]!==l.amount||t[1]!==l.once?(_={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=_):_=t[2];const m=en.useInView(Et,_),[S,le]=A.useState(!1);let kt,ft;t[3]!==l.duration||t[4]!==S||t[5]!==m?(kt=()=>{if(m&&!S){const n=setTimeout(()=>{le(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},ft=[m,S,l.duration],t[3]=l.duration,t[4]=S,t[5]=m,t[6]=kt,t[7]=ft):(kt=t[6],ft=t[7]),A.useEffect(kt,ft);const ae=ut==="linear"?$e.curveLinear:ut==="step"?Ae.curveStep:ut==="stepAfter"?Ae.stepAfter:ut==="stepBefore"?Ae.stepBefore:Ae.monotoneX;let Nt;t[8]!==r?(Nt=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=Nt):Nt=t[9];const a=Te.orderBy(i.map(Nt),["date"],["asc"]).filter(Wn),d=Ee.uniqBy(a,"label",!0);let Dt;t[10]!==r?(Dt=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Dt):Dt=t[11];const Zt=cn(Ee.uniqBy(i,"date",!0).map(Dt),Gn),[x,mt]=A.useState(void 0),[xt,tt]=A.useState(void 0),[pt,et]=A.useState(void 0),Lt=K?C+30:C;let dt;t[12]!==lt||t[13]!==st||t[14]!==Lt||t[15]!==Pt?(dt={top:Pt,bottom:lt,left:Lt,right:st},t[12]=lt,t[13]=st,t[14]=Lt,t[15]=Pt,t[16]=dt):dt=t[16];const h=dt,ce=A.useRef(null),ue=d.map(n=>Te.orderBy(a.filter(o=>o.label==n),["date"],["asc"]));let ht;if(t[17]!==r||t[18]!==Bt){let n;t[20]!==r?(n=o=>({...o,coordinates:[o.coordinates[0]===null?null:b.parse(`${o.coordinates[0]}`,r,new Date),o.coordinates[1]===null?null:b.parse(`${o.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],ht=Bt.map(n),t[17]=r,t[18]=Bt,t[19]=ht}else ht=t[19];const qt=ht;let gt;if(t[22]!==zt||t[23]!==r){let n;t[25]!==r?(n=o=>({...o,coordinates:o.coordinates.map((y,Xt)=>Xt%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],gt=zt.map(n),t[22]=zt,t[23]=r,t[24]=gt}else gt=t[24];const _t=gt,p=O-h.left-h.right,k=E-h.top-h.bottom,fe=Kt?b.parse(`${Kt}`,r,new Date):Zt[0],te=Qt?b.parse(`${Qt}`,r,new Date):Zt[Zt.length-1],w=v.checkIfNullOrUndefined(z)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:z,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,u=Ke.time().domain([fe,te]).range([0,p]);let nt;t[27]!==w||t[28]!==z?(nt=v.checkIfNullOrUndefined(z)?w:z,t[27]=w,t[28]=z,t[29]=nt):nt=t[29];let M;t[30]!==G||t[31]!==Ct?(M=v.checkIfNullOrUndefined(Ct)?G>0?G:0:Ct,t[30]=G,t[31]=Ct,t[32]=M):M=t[32];const f=Qe.linear().domain([nt,M]).range([k,0]).nice(),me=Ze.Delaunay.from(a.filter(Dn),n=>u(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),St=$e.line().x(n=>u(n.date)).y(n=>f(n.y)).curve(ae),Mt=f.ticks(Jt),ee=u.ticks(wt);A.useEffect(()=>{const n=y=>{const Xt=a[ke.bisectCenter(a.map(Nn),u.invert(tn.pointer(y)[0]),0)];mt(Xt||a[a.length-1]),et(y.clientY),tt(y.clientX),at?.(Xt||a[a.length-1])},o=()=>{mt(void 0),tt(void 0),et(void 0)};_e.select(ce.current).on("mousemove",n).on("mouseout",o),at?.(void 0)},[u,a,at]);let ot;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==qt||t[37]!==m||t[38]!==u?(ot=s.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:qt,width:p,height:k,scale:u,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=qt,t[37]=m,t[38]=u,t[39]=ot):ot=t[39];const Tt=j?.yAxis?.gridLines,N=j?.yAxis?.labels;let yt;t[40]!==Tt||t[41]!==N?(yt={gridLines:Tt,labels:N},t[40]=Tt,t[41]=N,t[42]=yt):yt=t[42];const It=R?.yAxis?.gridLines,$t=R?.yAxis?.labels;let vt;t[43]!==It||t[44]!==$t?(vt={gridLines:It,labels:$t},t[43]=It,t[44]=$t,t[45]=vt):vt=t[45];const Ot=f(w<0?0:w),Vt=f(w<0?0:w),Ut=0-C,it=p+h.right,xe=w<0?0:w;let I;t[46]!==Q||t[47]!==g||t[48]!==U||t[49]!==xe?(I=Ie.numberFormattingFunction(xe,"NA",Q,g,U),t[46]=Q,t[47]=g,t[48]=U,t[49]=xe,t[50]=I):I=t[50];const pe=0-C,Ht=f(w<0?0:w),de=G<0?"1em":-5;let W;t[51]!==pe||t[52]!==Ht||t[53]!==de?(W={x:pe,y:Ht,dx:0,dy:de},t[51]=pe,t[52]=Ht,t[53]=de,t[54]=W):W=t[54];const ne=R?.xAxis?.axis,jt=R?.yAxis?.labels;let $;t[55]!==ne||t[56]!==jt?($={axis:ne,label:jt},t[55]=ne,t[56]=jt,t[57]=$):$=t[57];const Gt=j?.xAxis?.axis,Wt=j?.yAxis?.labels;let D;t[58]!==Gt||t[59]!==Wt?(D={axis:Gt,label:Wt},t[58]=Gt,t[59]=Wt,t[60]=D):D=t[60];let V;t[61]!==Ot||t[62]!==Vt||t[63]!==Ut||t[64]!==it||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==D?(V=s.jsxRuntimeExports.jsx(Fe.Axis,{y1:Ot,y2:Vt,x1:Ut,x2:it,label:I,labelPos:W,classNames:$,styles:D}),t[61]=Ot,t[62]=Vt,t[63]=Ut,t[64]=it,t[65]=I,t[66]=W,t[67]=$,t[68]=D,t[69]=V):V=t[69];const Y=0-C-15,X=k/2,F=j?.yAxis?.title,P=R?.yAxis?.title;let rt;t[70]!==Y||t[71]!==X||t[72]!==F||t[73]!==P||t[74]!==K?(rt=s.jsxRuntimeExports.jsx(Xe.AxisTitle,{x:Y,y:X,style:F,className:P,text:K,rotate90:!0}),t[70]=Y,t[71]=X,t[72]=F,t[73]=P,t[74]=K,t[75]=rt):rt=t[75];let Yt;t[76]!==r?(Yt=n=>b.format(n,r),t[76]=r,t[77]=Yt):Yt=t[77];const ye=ee.map(Yt),Ue=ee.map(n=>u(n)),Ne=j?.xAxis?.gridLines,De=j?.xAxis?.labels;let ve;t[78]!==Ne||t[79]!==De?(ve={gridLines:Ne,labels:De},t[78]=Ne,t[79]=De,t[80]=ve):ve=t[80];const Le=R?.xAxis?.gridLines;let oe;t[81]!==Le?(oe=s.mo("opacity-0",Le),t[81]=Le,t[82]=oe):oe=t[82];const qe=R?.xAxis?.labels;let ie;t[83]!==qe?(ie=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",qe),t[83]=qe,t[84]=ie):ie=t[84];let Oe;t[85]!==oe||t[86]!==ie?(Oe={gridLines:oe,labels:ie},t[85]=oe,t[86]=ie,t[87]=Oe):Oe=t[87];let je;t[88]!==Z?(je=Z.filter(An).map(Rn),t[88]=Z,t[89]=je):je=t[89];const He=a.filter(pn).map((n,o)=>s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx("path",{d:me.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{mt(n),et(y.clientY),tt(y.clientX),at?.(n)},onMouseMove:y=>{mt(n),et(y.clientY),tt(y.clientX)},onMouseLeave:()=>{mt(void 0),tt(void 0),et(void 0),at?.(void 0)}})},o));let we;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==h.right||t[95]!==ct||t[96]!==f?(we=ct?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:ct.map((n,o)=>s.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+h.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},o))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=h.right,t[95]=ct,t[96]=f,t[97]=we):we=t[97];let re;if(t[98]!==l||t[99]!==Rt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==h.right||t[104]!==J||t[105]!==u||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==h.right||t[113]!==J||t[114]!==u||t[115]!==f?(n=(o,y)=>{const Xt=Se.getLineEndPoint({x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8},{x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,y:o.yCoordinate?f(o.yCoordinate):0},v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius),Ge=o.showConnector?{y1:Xt.y,x1:Xt.x,y2:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0):0+(o.yOffset||0),x2:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),cy:o.yCoordinate?f(o.yCoordinate):0,cx:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius,strokeWidth:o.showConnector===!0?2:Math.min(o.showConnector||0,1)}:void 0,We={y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8,x:J?0:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),width:J?o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0):p+h.right-(o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0)),maxWidth:o.maxWidth,fontWeight:o.fontWeight,align:o.align};return s.jsxRuntimeExports.jsx(Se.Annotation,{color:o.color,connectorsSettings:Ge,labelSettings:We,text:o.text,classNames:o.classNames,styles:o.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=h.right,t[113]=J,t[114]=u,t[115]=f,t[116]=n):n=t[116],re=Rt.map(n),t[98]=l,t[99]=Rt,t[100]=r,t[101]=p,t[102]=m,t[103]=h.right,t[104]=J,t[105]=u,t[106]=f,t[107]=re}else re=t[107];let be;t[117]!==re?(be=s.jsxRuntimeExports.jsx("g",{children:re}),t[117]=re,t[118]=be):be=t[118];let Ce;t[119]!==Z?(Ce=Z.filter(xn).map(mn),t[119]=Z,t[120]=Ce):Ce=t[120];let Re;return t[121]!==R?.tooltip||t[122]!==xt||t[123]!==pt||t[124]!==x||t[125]!==j?.tooltip||t[126]!==bt?(Re=x&&bt&&xt&&pt?s.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:bt,xPos:xt,yPos:pt,backgroundStyle:j?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=xt,t[123]=pt,t[124]=x,t[125]=j?.tooltip,t[126]=bt,t[127]=Re):Re=t[127],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Ft.motion.svg,{width:`${O}px`,height:`${E}px`,viewBox:`0 0 ${O} ${E}`,direction:"ltr",ref:Et,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[ot,s.jsxRuntimeExports.jsx(Se.CustomArea,{areaSettings:_t,scaleX:u,scaleY:f,animate:l,isInView:m}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Mt.filter(kn),y:Mt.filter(En).map(n=>f(n)),x1:0-C,x2:p+h.right,styles:yt,classNames:vt,suffix:U,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Q}),V,rt]}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:ye,x:Ue,y1:0,y2:k,styles:ve,classNames:Oe,suffix:U,prefix:g,labelType:"primary",showGridLines:!0,precision:Q})}),je,s.jsxRuntimeExports.jsxs(Ft.motion.g,{children:[ue.map(n=>s.jsxRuntimeExports.jsxs(Ft.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1},whileInView:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[s.jsxRuntimeExports.jsx(Ft.motion.path,{d:St(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?T+Math.max(2,.5*T):T:H.length!==0&&H.indexOf(n[0].label)!==-1?T+Math.max(2,.5*T):T},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:St(n.filter(bn))||"",opacity:1,stroke:i.filter(wn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray},whileInView:{pathLength:1,d:St(n.filter(jn))||"",opacity:1,stroke:i.filter(On).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((o,y)=>s.jsxRuntimeExports.jsx(Ft.motion.g,{children:v.checkIfNullOrUndefined(o.y)?null:s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:se?s.jsxRuntimeExports.jsx(Ft.motion.circle,{r:p/n.length<5?0:p/n.length<20?2:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(vn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,cx:u(o.date),cy:f(o.y)},whileInView:{opacity:1,fill:i.filter(yn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:S?l.duration:.5,delay:S?0:l.duration},cx:u(o.date),cy:f(o.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&he?s.jsxRuntimeExports.jsx(Ft.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(gn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:i.filter(hn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:S?l.duration:.5,delay:S?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?s.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:u(x.date),className:s.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:i.filter(dn).length===0?c[0]:x.color?c[L.indexOf(x.color)]:B.Colors.gray,textAnchor:"middle",...j?.graphObjectValues||{}},children:Ie.numberFormattingFunction(x.y,ge,Q,g,U)}):null]}),He,we,be,Ce]})}),Re]})}function mn(e){return e.layer}function xn(e){return e.position==="after"}function pn(e){return!v.checkIfNullOrUndefined(e.y)}function dn(e){return e.color}function hn(e){return e.color}function gn(e){return e.color}function yn(e){return e.color}function vn(e){return e.color}function On(e){return e.color}function jn(e){return!v.checkIfNullOrUndefined(e.y)}function wn(e){return e.color}function bn(e){return!v.checkIfNullOrUndefined(e.y)}function Cn(e){return!v.checkIfNullOrUndefined(e.y)}function Rn(e){return e.layer}function An(e){return e.position==="before"}function En(e){return e!==0}function kn(e){return e!==0}function Nn(e){return e.date}function Dn(e){return!v.checkIfNullOrUndefined(e.date)&&!v.checkIfNullOrUndefined(e.y)}function Ln(e){return!v.checkIfNullOrUndefined(e)}function qn(e){return e.y}function Sn(e){return!v.checkIfNullOrUndefined(e)}function Mn(e){return e.y}function Tn(e){return!v.checkIfNullOrUndefined(e)}function In(e){return e.y}function $n(e){return!v.checkIfNullOrUndefined(e)}function Vn(e){return e.y}function Un(e){return!v.checkIfNullOrUndefined(e)}function Hn(e){return e.y}function Gn(e,t){return ke.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=s.compilerRuntimeExports.c(106),{data:i,graphTitle:O,showNAColor:E,colors:c,colorDomain:r,suffix:wt,sources:st,prefix:Pt,graphDescription:lt,height:U,width:g,footNote:C,noOfXTicks:bt,dateFormat:at,padding:ct,backgroundColor:Bt,leftMargin:z,rightMargin:Ct,topMargin:H,bottomMargin:l,showColorScale:J,tooltip:T,relativeHeight:se,onSeriesMouseOver:Rt,showLabels:zt,refValues:K,highlightAreaSettings:Jt,graphID:Kt,minValue:Qt,maxValue:ut,highlightedLines:j,graphDownload:L,dataDownload:At,animate:R,language:he,colorLegendTitle:q,minHeight:Q,strokeWidth:ge,showDots:Z,annotations:Et,customHighlightAreaSettings:_,theme:m,ariaLabel:S,yAxisTitle:le,noOfYTicks:kt,minDate:ft,maxDate:ae,curveType:Nt,styles:a,classNames:d,dimmedOpacity:Dt,precision:Zt,customLayers:x,naLabel:mt}=e,xt=E===void 0?!0:E,tt=wt===void 0?"":wt,pt=Pt===void 0?"":Pt,et=bt===void 0?10:bt,Lt=at===void 0?"yyyy":at,dt=Bt===void 0?!1:Bt,h=z===void 0?30:z,ce=Ct===void 0?50:Ct,ue=H===void 0?20:H,ht=l===void 0?25:l,qt=J===void 0?!0:J,gt=zt===void 0?!0:zt;let _t;t[0]!==K?(_t=K===void 0?[]:K,t[0]=K,t[1]=_t):_t=t[1];const p=_t;let k;t[2]!==Jt?(k=Jt===void 0?[]:Jt,t[2]=Jt,t[3]=k):k=t[3];const fe=k;let te;t[4]!==j?(te=j===void 0?[]:j,t[4]=j,t[5]=te):te=t[5];const w=te,G=L===void 0?!1:L,u=At===void 0?!1:At,nt=R===void 0?!1:R,M=he===void 0?"en":he,f=Q===void 0?0:Q,me=ge===void 0?2:ge,St=Z===void 0?!0:Z;let Mt;t[6]!==Et?(Mt=Et===void 0?[]:Et,t[6]=Et,t[7]=Mt):Mt=t[7];const ee=Mt;let ot;t[8]!==_?(ot=_===void 0?[]:_,t[8]=_,t[9]=ot):ot=t[9];const Tt=ot,N=m===void 0?"light":m,yt=kt===void 0?5:kt,It=Nt===void 0?"curve":Nt,$t=Dt===void 0?.3:Dt,vt=Zt===void 0?2:Zt;let Ot;t[10]!==x?(Ot=x===void 0?[]:x,t[10]=x,t[11]=Ot):Ot=t[11];const Vt=Ot,Ut=mt===void 0?"NA":mt,[it,xe]=A.useState(0),[I,pe]=A.useState(0),[Ht,de]=A.useState(void 0),W=A.useRef(null),ne=A.useRef(null);let jt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(jt=()=>{const Yt=new ResizeObserver(ye=>{xe(ye[0].target.clientWidth||620),pe(ye[0].target.clientHeight||480)});return W.current&&Yt.observe(W.current),()=>Yt.disconnect()},$=[],t[12]=jt,t[13]=$):(jt=t[12],$=t[13]),A.useEffect(jt,$);const Gt=d?.graphContainer,Wt=a?.graphContainer;let D;t[14]!==d?.description||t[15]!==d?.title||t[16]!==i||t[17]!==u||t[18]!==lt||t[19]!==G||t[20]!==O||t[21]!==a?.description||t[22]!==a?.title||t[23]!==g?(D=O||lt||G||u?s.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:d?.title,description:d?.description},graphTitle:O,graphDescription:lt,width:g,graphDownload:G?ne:void 0,dataDownload:u?i.map(Qn).filter(Kn).length>0?i.map(Jn).filter(zn):i.filter(Bn):null}):null,t[14]=d?.description,t[15]=d?.title,t[16]=i,t[17]=u,t[18]=lt,t[19]=G,t[20]=O,t[21]=a?.description,t[22]=a?.title,t[23]=g,t[24]=D):D=t[24];let V;t[25]!==d?.colorLegend||t[26]!==r||t[27]!==q||t[28]!==c||t[29]!==i||t[30]!==qt||t[31]!==xt||t[32]!==N||t[33]!==g?(V=qt&&i.filter(Pn).length!==0&&i.length>0?s.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:g,colorLegendTitle:q,colors:c||B.Colors[N].categoricalColors.colors,colorDomain:r||Ee.uniqBy(i,"color",!0),setSelectedColor:de,showNAColor:xt,className:d?.colorLegend}):null,t[25]=d?.colorLegend,t[26]=r,t[27]=q,t[28]=c,t[29]=i,t[30]=qt,t[31]=xt,t[32]=N,t[33]=g,t[34]=V):V=t[34];let Y;t[35]!==i.length?(Y=i.length===0&&s.jsxRuntimeExports.jsx(rn.EmptyState,{}),t[35]=i.length,t[36]=Y):Y=t[36];let X;t[37]!==nt||t[38]!==ee||t[39]!==ht||t[40]!==d||t[41]!==r||t[42]!==c||t[43]!==It||t[44]!==Tt||t[45]!==Vt||t[46]!==i||t[47]!==Lt||t[48]!==$t||t[49]!==fe||t[50]!==w||t[51]!==M||t[52]!==h||t[53]!==ae||t[54]!==ut||t[55]!==ft||t[56]!==Qt||t[57]!==Ut||t[58]!==et||t[59]!==yt||t[60]!==Rt||t[61]!==vt||t[62]!==pt||t[63]!==p||t[64]!==ce||t[65]!==Ht||t[66]!==St||t[67]!==gt||t[68]!==me||t[69]!==a||t[70]!==tt||t[71]!==I||t[72]!==it||t[73]!==N||t[74]!==T||t[75]!==ue||t[76]!==le?(X=it&&I&&i.length>0?s.jsxRuntimeExports.jsx(fn,{data:i,lineColors:i.filter(Fn).length===0?c?[c]:[B.Colors.primaryColors["blue-600"]]:c||B.Colors[N].categoricalColors.colors,width:it,height:I,dateFormat:Lt,noOfXTicks:et??ln.getNoOfTicks(it),leftMargin:h,rightMargin:ce,topMargin:ue,bottomMargin:ht,tooltip:T,onSeriesMouseOver:Rt,suffix:tt,prefix:pt,highlightAreaSettings:fe,refValues:p,minValue:Qt,maxValue:ut,highlightedLines:w,animate:nt===!0?{duration:.5,once:!0,amount:.5}:nt||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:me,showDots:St,annotations:ee,customHighlightAreaSettings:Tt,yAxisTitle:le,noOfYTicks:yt,minDate:ft,maxDate:ae,curveType:It,styles:a,classNames:d,selectedColor:Ht,showLabels:gt,colorDomain:i.filter(Xn).length===0?[]:r||Ee.uniqBy(i,"color",!0),dimmedOpacity:$t,precision:vt,customLayers:Vt,naLabel:Ut}):null,t[37]=nt,t[38]=ee,t[39]=ht,t[40]=d,t[41]=r,t[42]=c,t[43]=It,t[44]=Tt,t[45]=Vt,t[46]=i,t[47]=Lt,t[48]=$t,t[49]=fe,t[50]=w,t[51]=M,t[52]=h,t[53]=ae,t[54]=ut,t[55]=ft,t[56]=Qt,t[57]=Ut,t[58]=et,t[59]=yt,t[60]=Rt,t[61]=vt,t[62]=pt,t[63]=p,t[64]=ce,t[65]=Ht,t[66]=St,t[67]=gt,t[68]=me,t[69]=a,t[70]=tt,t[71]=I,t[72]=it,t[73]=N,t[74]=T,t[75]=ue,t[76]=le,t[77]=X):X=t[77];let F;t[78]!==Y||t[79]!==X?(F=s.jsxRuntimeExports.jsxs(Ve.GraphArea,{ref:W,children:[Y,X]}),t[78]=Y,t[79]=X,t[80]=F):F=t[80];let P;t[81]!==d?.footnote||t[82]!==d?.source||t[83]!==C||t[84]!==st||t[85]!==a?.footnote||t[86]!==a?.source||t[87]!==g?(P=st||C?s.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:st,footNote:C,width:g}):null,t[81]=d?.footnote,t[82]=d?.source,t[83]=C,t[84]=st,t[85]=a?.footnote,t[86]=a?.source,t[87]=g,t[88]=P):P=t[88];let rt;return t[89]!==S||t[90]!==dt||t[91]!==Kt||t[92]!==U||t[93]!==M||t[94]!==f||t[95]!==ct||t[96]!==se||t[97]!==Gt||t[98]!==Wt||t[99]!==D||t[100]!==V||t[101]!==F||t[102]!==P||t[103]!==N||t[104]!==g?(rt=s.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:Gt,style:Wt,id:Kt,ref:ne,"aria-label":S,backgroundColor:dt,theme:N,language:M,minHeight:f,width:g,height:U,relativeHeight:se,padding:ct,children:[D,V,F,P]}),t[89]=S,t[90]=dt,t[91]=Kt,t[92]=U,t[93]=M,t[94]=f,t[95]=ct,t[96]=se,t[97]=Gt,t[98]=Wt,t[99]=D,t[100]=V,t[101]=F,t[102]=P,t[103]=N,t[104]=g,t[105]=rt):rt=t[105],rt}function Xn(e){return e.color}function Fn(e){return e.color}function Pn(e){return e.color}function Bn(e){return e!==void 0}function zn(e){return e!==void 0}function Jn(e){return e.data}function Kn(e){return e!==void 0}function Qn(e){return e.data}exports.MultiLineAltChart=Yn;
|
|
2
2
|
//# sourceMappingURL=MultiLineAltChart.cjs.map
|
|
@@ -7,7 +7,7 @@ import { T as Fe } from "./Tooltip-BRnAz2Gv.js";
|
|
|
7
7
|
import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
8
|
import { C as Be, g as ze, A as Ue } from "./customArea-ASDaSE4u.js";
|
|
9
9
|
import { A as qe } from "./AxisTitle-VFq89Olw.js";
|
|
10
|
-
import { A as Je } from "./Axis-
|
|
10
|
+
import { A as Je } from "./Axis-D56Gy0se.js";
|
|
11
11
|
import { X as Ke } from "./XTicksAndGridLines-CVZkZkpS.js";
|
|
12
12
|
import { a as Qe } from "./ReferenceLine-DgtoRgw0.js";
|
|
13
13
|
import { Y as Ze } from "./YTicksAndGridLines-GnXnSRF2.js";
|
package/dist/MultiLineChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),R=require("./parse-xYI9yrvL.cjs"),Be=require("./index-Cno4Q0YE.cjs"),Ue=require("./numberFormattingFunction-02t-wJta.cjs"),ze=require("./Tooltip-BLa2EfMs.cjs"),C=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ge=require("./customArea-B1LWQBmM.cjs"),Je=require("./AxisTitle-DV4n0RxE.cjs"),Ke=require("./Axis-Dtjn-EgM.cjs"),Qe=require("./XTicksAndGridLines-CekrPykD.cjs"),Ze=require("./ReferenceLine-M9aP3dj-.cjs"),_e=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ti=require("./index-D69M6klB.cjs"),ei=require("./time-CkcKbhwe.cjs"),ii=require("./linear-CgUCbw9F.cjs"),Pe=require("./line-DaEMhXmx.cjs"),qe=require("./step-BZ3C8QFW.cjs"),ni=require("./select-Bnfk0lJx.cjs"),Bt=require("./proxy-C4-uo6nS.cjs"),oi=require("./init-DU0ybBc_.cjs"),si=require("./pointer-Dkq5NV1q.cjs"),ri=require("./use-in-view-C3o_ntMv.cjs"),ai=require("./GraphFooter.cjs"),li=require("./GraphHeader.cjs"),ci=require("./ColorLegend.cjs"),ui=require("./Colors.cjs"),di=require("./EmptyState-CGeBqbmR.cjs"),xi=require("./generateRandomString-B5zBiJzS.cjs"),We=require("./GraphContainer-B1EDxJ0S.cjs"),fi=require("./getNoOfTicks-C_1CFXv_.cjs");function mi(i){const t=o.compilerRuntimeExports.c(153),{data:y,width:rt,height:zt,lineColors:k,dateFormat:r,noOfXTicks:ge,labels:S,rightMargin:St,topMargin:E,bottomMargin:at,suffix:X,prefix:B,leftMargin:j,tooltip:lt,onSeriesMouseOver:Jt,showValues:ye,showColorLegendAtTop:ve,refValues:Nt,highlightAreaSettings:Kt,minValue:z,maxValue:ct,highlightedLines:ut,animate:s,rtl:J,strokeWidth:Qt,showDots:Zt,annotations:Tt,customHighlightAreaSettings:Dt,yAxisTitle:dt,noOfYTicks:_t,minDate:ce,maxDate:ue,curveType:It,styles:v,classNames:g,dimmedOpacity:de,precision:K,customLayers:Q,dashedLines:xt,dashSettings:qt,labelsToBeHidden:je,revealClipId:ft}=i,te=A.useRef(null);let Mt;t[0]!==s.amount||t[1]!==s.once?(Mt={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=Mt):Mt=t[2];const u=ri.useInView(te,Mt),[O,we]=A.useState(!1);let m,d;t[3]!==s.duration||t[4]!==O||t[5]!==u?(m=()=>{if(u&&!O){const n=setTimeout(()=>{we(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(n)}},d=[u,O,s.duration],t[3]=s.duration,t[4]=O,t[5]=u,t[6]=m,t[7]=d):(m=t[6],d=t[7]),A.useEffect(m,d);const Oe=It==="linear"?Pe.curveLinear:It==="step"?qe.curveStep:It==="stepAfter"?qe.stepAfter:It==="stepBefore"?qe.stepBefore:qe.monotoneX,[L,Vt]=A.useState(void 0),[Z,$t]=A.useState(void 0),[_,xe]=A.useState(void 0),q=dt?j+30:j;let mt;t[8]!==at||t[9]!==St||t[10]!==q||t[11]!==E?(mt={top:E,bottom:at,left:q,right:St},t[8]=at,t[9]=St,t[10]=q,t[11]=E,t[12]=mt):mt=t[12];const h=mt,ht=A.useRef(null);let pt;t[13]!==r?(pt=n=>({...n,date:R.parse(`${n.date}`,r,new Date)}),t[13]=r,t[14]=pt):pt=t[14];const x=Be.orderBy(y.map(pt),["date"],["asc"]),fe=x[0].y.map((n,e)=>x.map(f=>({...f,y:f.y[e]})).filter(Ii));let gt;if(t[15]!==r||t[16]!==Kt){let n;t[18]!==r?(n=e=>({...e,coordinates:[e.coordinates[0]===null?null:R.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:R.parse(`${e.coordinates[1]}`,r,new Date)]}),t[18]=r,t[19]=n):n=t[19],gt=Kt.map(n),t[15]=r,t[16]=Kt,t[17]=gt}else gt=t[17];const Ht=gt;let yt;if(t[20]!==Dt||t[21]!==r){let n;t[23]!==r?(n=e=>({...e,coordinates:e.coordinates.map((f,st)=>st%2===0?R.parse(`${f}`,r,new Date):f)}),t[23]=r,t[24]=n):n=t[24],yt=Dt.map(n),t[20]=Dt,t[21]=r,t[22]=yt}else yt=t[22];const me=yt,c=rt-h.left-h.right,p=zt-h.top-h.bottom,he=ce?R.parse(`${ce}`,r,new Date):x[0].date,ee=ue?R.parse(`${ue}`,r,new Date):x[x.length-1].date,w=C.checkIfNullOrUndefined(z)?Math.min(...x.map(Ti))?Math.min(...x.map(Si))>0?0:Math.min(...x.map(Li)):0:z,M=Math.max(...x.map(bi))?Math.max(...x.map(Ci)):0,a=ei.time().domain([he,ee]).range([0,c]);let tt;t[25]!==w||t[26]!==z?(tt=C.checkIfNullOrUndefined(z)?w:z,t[25]=w,t[26]=z,t[27]=tt):tt=t[27];let et;t[28]!==M||t[29]!==ct?(et=C.checkIfNullOrUndefined(ct)?M>0?M:0:ct,t[28]=M,t[29]=ct,t[30]=et):et=t[30];const l=ii.linear().domain([tt,et]).range([p,0]).nice(),V=Pe.line().x(n=>a(n.date)).y(n=>l(n.y)).curve(Oe),ie=l.ticks(_t),ne=a.ticks(ge);A.useEffect(()=>{const n=f=>{const st=x[oi.bisectCenter(x.map(Ri),a.invert(si.pointer(f)[0]),0)];Vt(st||x[x.length-1]),xe(f.clientY),$t(f.clientX),Jt?.(st||x[x.length-1])},e=()=>{Vt(void 0),$t(void 0),xe(void 0)};ni.select(ht.current).on("mousemove",n).on("mouseout",e),Jt?.(void 0)},[a,x,Jt]);let vt;t[31]===Symbol.for("react.memo_cache_sentinel")?(vt={width:0},t[31]=vt):vt=t[31];let N;t[32]!==s.duration?(N={duration:s.duration},t[32]=s.duration,t[33]=N):N=t[33];let $;t[34]!==c||t[35]!==N?($={initial:vt,whileInView:{width:c,transition:N}},t[34]=c,t[35]=N,t[36]=$):$=t[36];const jt=u?"whileInView":"initial";let H;t[37]!==p||t[38]!==$||t[39]!==jt?(H=o.jsxRuntimeExports.jsx(Bt.motion.rect,{x:0,y:0,height:p,variants:$,initial:"initial",animate:jt}),t[37]=p,t[38]=$,t[39]=jt,t[40]=H):H=t[40];let wt;t[41]!==ft||t[42]!==H?(wt=o.jsxRuntimeExports.jsx("defs",{children:o.jsxRuntimeExports.jsx("clipPath",{id:ft,children:H})}),t[41]=ft,t[42]=H,t[43]=wt):wt=t[43];let Ot;t[44]!==s||t[45]!==p||t[46]!==c||t[47]!==Ht||t[48]!==u||t[49]!==a?(Ot=o.jsxRuntimeExports.jsx(ti.HighlightArea,{areaSettings:Ht,width:c,height:p,scale:a,animate:s,isInView:u}),t[44]=s,t[45]=p,t[46]=c,t[47]=Ht,t[48]=u,t[49]=a,t[50]=Ot):Ot=t[50];const Ft=v?.yAxis?.gridLines,Gt=v?.yAxis?.labels;let Rt;t[51]!==Ft||t[52]!==Gt?(Rt={gridLines:Ft,labels:Gt},t[51]=Ft,t[52]=Gt,t[53]=Rt):Rt=t[53];const Ct=g?.yAxis?.gridLines,Ut=g?.yAxis?.labels;let it;t[54]!==Ct||t[55]!==Ut?(it={gridLines:Ct,labels:Ut},t[54]=Ct,t[55]=Ut,t[56]=it):it=t[56];const Pt=l(w<0?0:w),Et=l(w<0?0:w),Wt=0-j,bt=c+h.right,F=w<0?0:w;let b;t[57]!==K||t[58]!==B||t[59]!==X||t[60]!==F?(b=Ue.numberFormattingFunction(F,"NA",K,B,X),t[57]=K,t[58]=B,t[59]=X,t[60]=F,t[61]=b):b=t[61];const nt=0-j,pe=l(w<0?0:w),At=M<0?"1em":-5;let Lt;t[62]!==nt||t[63]!==pe||t[64]!==At?(Lt={x:nt,y:pe,dx:0,dy:At},t[62]=nt,t[63]=pe,t[64]=At,t[65]=Lt):Lt=t[65];const Yt=g?.xAxis?.axis,oe=g?.yAxis?.labels;let T;t[66]!==Yt||t[67]!==oe?(T={axis:Yt,label:oe},t[66]=Yt,t[67]=oe,t[68]=T):T=t[68];const kt=v?.xAxis?.axis,Xt=v?.yAxis?.labels;let G;t[69]!==kt||t[70]!==Xt?(G={axis:kt,label:Xt},t[69]=kt,t[70]=Xt,t[71]=G):G=t[71];let D;t[72]!==Pt||t[73]!==Et||t[74]!==Wt||t[75]!==bt||t[76]!==b||t[77]!==Lt||t[78]!==T||t[79]!==G?(D=o.jsxRuntimeExports.jsx(Ke.Axis,{y1:Pt,y2:Et,x1:Wt,x2:bt,label:b,labelPos:Lt,classNames:T,styles:G}),t[72]=Pt,t[73]=Et,t[74]=Wt,t[75]=bt,t[76]=b,t[77]=Lt,t[78]=T,t[79]=G,t[80]=D):D=t[80];const U=0-j-15,P=p/2,W=v?.yAxis?.title,Y=g?.yAxis?.title;let I;t[81]!==U||t[82]!==P||t[83]!==W||t[84]!==Y||t[85]!==dt?(I=o.jsxRuntimeExports.jsx(Je.AxisTitle,{x:U,y:P,style:W,className:Y,text:dt,rotate90:!0}),t[81]=U,t[82]=P,t[83]=W,t[84]=Y,t[85]=dt,t[86]=I):I=t[86];let ot;t[87]!==r?(ot=n=>R.format(n,r),t[87]=r,t[88]=ot):ot=t[88];const Re=ne.map(ot),Ce=ne.map(n=>a(n)),Me=v?.xAxis?.gridLines,Ve=v?.xAxis?.labels;let Ee;t[89]!==Me||t[90]!==Ve?(Ee={gridLines:Me,labels:Ve},t[89]=Me,t[90]=Ve,t[91]=Ee):Ee=t[91];const $e=g?.xAxis?.gridLines;let se;t[92]!==$e?(se=o.mo("opacity-0",$e),t[92]=$e,t[93]=se):se=t[93];const He=g?.xAxis?.labels;let re;t[94]!==He?(re=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",He),t[94]=He,t[95]=re):re=t[95];let be;t[96]!==se||t[97]!==re?(be={gridLines:se,labels:re},t[96]=se,t[97]=re,t[98]=be):be=t[98];let Ae;t[99]!==Q?(Ae=Q.filter(ji).map(vi),t[99]=Q,t[100]=Ae):Ae=t[100];const Fe=fe.map((n,e)=>o.jsxRuntimeExports.jsxs(Bt.motion.g,{exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1},whileInView:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1,transition:{duration:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Bt.motion.path,{style:{fill:"none",strokeWidth:Qt},clipPath:`url(#${ft})`,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{...xt.length===0?{pathLength:0}:{},d:V(n.filter(yi))||"",opacity:1,stroke:k[e]},whileInView:{...xt.length===0?{pathLength:1}:{},d:V(n.filter(gi))||"",opacity:1,stroke:k[e],transition:{duration:s.duration}}},strokeDasharray:xt.includes(S[e])?qt[e%qt.length]:void 0,initial:"initial",animate:u?"whileInView":"initial"}),n.map((f,st)=>o.jsxRuntimeExports.jsx("g",{children:C.checkIfNullOrUndefined(f.y)?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Zt?o.jsxRuntimeExports.jsx(Bt.motion.circle,{r:c/x.length<5?0:c/x.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],cx:a(f.date),cy:l(f.y)},whileInView:{opacity:1,fill:k[e],transition:{duration:O?s.duration:.5,delay:O?0:s.duration},cx:a(f.date),cy:l(f.y)}},initial:"initial",animate:u?"whileInView":"initial"}):null,ye?o.jsxRuntimeExports.jsx(Bt.motion.text,{dy:-8,style:{textAnchor:"middle",...v?.graphObjectValues||{}},className:o.mo("graph-value text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(f.date),y:l(f.y)},whileInView:{opacity:1,fill:k[e],x:a(f.date),y:l(f.y),transition:{duration:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:Ue.numberFormattingFunction(f.y,"NA",K,B,X)}):null]})},st)),ve||je.includes(S[e])?null:o.jsxRuntimeExports.jsx(Bt.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y)},whileInView:{opacity:1,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y),transition:{duration:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:S[e]})]},S[e]));let ae;t[101]!==g?.mouseOverLine||t[102]!==p||t[103]!==L||t[104]!==v?.mouseOverLine||t[105]!==a?(ae=L?o.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:a(L.date),x2:a(L.date),className:o.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:v?.mouseOverLine}):null,t[101]=g?.mouseOverLine,t[102]=p,t[103]=L,t[104]=v?.mouseOverLine,t[105]=a,t[106]=ae):ae=t[106];let Le;t[107]!==Fe||t[108]!==ae?(Le=o.jsxRuntimeExports.jsxs("g",{children:[Fe,ae]}),t[107]=Fe,t[108]=ae,t[109]=Le):Le=t[109];let ke;t[110]!==s||t[111]!==c||t[112]!==u||t[113]!==j||t[114]!==h.right||t[115]!==Nt||t[116]!==l?(ke=Nt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:Nt.map((n,e)=>o.jsxRuntimeExports.jsx(Ze.RefLineY,{text:n.text,color:n.color,y:l(n.value),x1:0-j,x2:c+h.right,classNames:n.classNames,styles:n.styles,animate:s,isInView:u},e))}):null,t[110]=s,t[111]=c,t[112]=u,t[113]=j,t[114]=h.right,t[115]=Nt,t[116]=l,t[117]=ke):ke=t[117];let le;if(t[118]!==s||t[119]!==Tt||t[120]!==r||t[121]!==c||t[122]!==u||t[123]!==h.right||t[124]!==J||t[125]!==a||t[126]!==l){let n;t[128]!==s||t[129]!==r||t[130]!==c||t[131]!==u||t[132]!==h.right||t[133]!==J||t[134]!==a||t[135]!==l?(n=(e,f)=>{const st=Ge.getLineEndPoint({x:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},C.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Ye=e.showConnector?{y1:st.y,x1:st.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:C.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Xe={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:J?0:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:J?e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):c+h.right-(e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return o.jsxRuntimeExports.jsx(Ge.Annotation,{color:e.color,connectorsSettings:Ye,labelSettings:Xe,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:u},f)},t[128]=s,t[129]=r,t[130]=c,t[131]=u,t[132]=h.right,t[133]=J,t[134]=a,t[135]=l,t[136]=n):n=t[136],le=Tt.map(n),t[118]=s,t[119]=Tt,t[120]=r,t[121]=c,t[122]=u,t[123]=h.right,t[124]=J,t[125]=a,t[126]=l,t[127]=le}else le=t[127];let Se;t[137]!==le?(Se=o.jsxRuntimeExports.jsx("g",{children:le}),t[137]=le,t[138]=Se):Se=t[138];let Ne;t[139]!==Q?(Ne=Q.filter(pi).map(hi),t[139]=Q,t[140]=Ne):Ne=t[140];let Te;t[141]===Symbol.for("react.memo_cache_sentinel")?(Te={fill:"none",pointerEvents:"all"},t[141]=Te):Te=t[141];let De;t[142]!==ht||t[143]!==p||t[144]!==c?(De=o.jsxRuntimeExports.jsx("rect",{ref:ht,style:Te,width:c,height:p}),t[142]=ht,t[143]=p,t[144]=c,t[145]=De):De=t[145];let Ie;return t[146]!==g?.tooltip||t[147]!==Z||t[148]!==_||t[149]!==L||t[150]!==v?.tooltip||t[151]!==lt?(Ie=L&<&&Z&&_?o.jsxRuntimeExports.jsx(ze.Tooltip,{data:L,body:lt,xPos:Z,yPos:_,backgroundStyle:v?.tooltip,className:g?.tooltip}):null,t[146]=g?.tooltip,t[147]=Z,t[148]=_,t[149]=L,t[150]=v?.tooltip,t[151]=lt,t[152]=Ie):Ie=t[152],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Bt.motion.svg,{width:`${rt}px`,height:`${zt}px`,viewBox:`0 0 ${rt} ${zt}`,direction:"ltr",ref:te,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[wt,Ot,o.jsxRuntimeExports.jsx(Ge.CustomArea,{areaSettings:me,scaleX:a,scaleY:l,animate:s,isInView:u}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(_e.YTicksAndGridLines,{values:ie.filter(Oi),y:ie.filter(wi).map(n=>l(n)),x1:0-j,x2:c+h.right,styles:Rt,classNames:it,suffix:X,prefix:B,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),D,I]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Qe.XTicksAndGridLines,{values:Re,x:Ce,y1:0,y2:p,styles:Ee,classNames:be,suffix:X,prefix:B,labelType:"primary",showGridLines:!0,precision:K})}),Ae,Le,ke,Se,Ne,De]})}),Ie]})}function hi(i){return i.layer}function pi(i){return i.position==="after"}function gi(i){return!C.checkIfNullOrUndefined(i.y)}function yi(i){return!C.checkIfNullOrUndefined(i.y)}function vi(i){return i.layer}function ji(i){return i.position==="before"}function wi(i){return i!==0}function Oi(i){return i!==0}function Ri(i){return i.date}function Ci(i){return Math.max(...i.y.filter(Ei))}function Ei(i){return!C.checkIfNullOrUndefined(i)}function bi(i){return Math.max(...i.y.filter(Ai))}function Ai(i){return!C.checkIfNullOrUndefined(i)}function Li(i){return Math.min(...i.y.filter(ki))}function ki(i){return!C.checkIfNullOrUndefined(i)}function Si(i){return Math.min(...i.y.filter(Ni))}function Ni(i){return!C.checkIfNullOrUndefined(i)}function Ti(i){return Math.min(...i.y.filter(Di))}function Di(i){return!C.checkIfNullOrUndefined(i)}function Ii(i){return!C.checkIfNullOrUndefined(i.y)}function qi(i){const t=o.compilerRuntimeExports.c(113),{data:y,graphTitle:rt,lineColors:zt,suffix:k,sources:r,prefix:ge,graphDescription:S,height:St,width:E,footNote:at,noOfXTicks:X,dateFormat:B,labels:j,padding:lt,showValues:Jt,backgroundColor:ye,leftMargin:ve,rightMargin:Nt,topMargin:Kt,bottomMargin:z,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:s,showColorLegendAtTop:J,refValues:Qt,highlightAreaSettings:Zt,graphID:Tt,minValue:Dt,maxValue:dt,highlightedLines:_t,graphDownload:ce,dataDownload:ue,animate:It,language:v,colorLegendTitle:g,minHeight:de,strokeWidth:K,showDots:Q,annotations:xt,customHighlightAreaSettings:qt,theme:je,ariaLabel:ft,yAxisTitle:te,noOfYTicks:Mt,minDate:u,maxDate:O,curveType:we,styles:m,classNames:d,dimmedOpacity:Oe,precision:L,customLayers:Vt,dashedLines:Z,dashSettings:$t,labelsToBeHidden:_,showColorScale:xe}=i,q=zt===void 0?ui.Colors.light.categoricalColors.colors:zt,mt=k===void 0?"":k,h=ge===void 0?"":ge,ht=X===void 0?10:X,pt=B===void 0?"yyyy":B,x=Jt===void 0?!1:Jt,fe=ye===void 0?!1:ye,gt=ve===void 0?30:ve,Ht=Nt===void 0?50:Nt,yt=Kt===void 0?20:Kt,me=z===void 0?25:z,c=J===void 0?!1:J;let p;t[0]!==Qt?(p=Qt===void 0?[]:Qt,t[0]=Qt,t[1]=p):p=t[1];const he=p;let ee;t[2]!==Zt?(ee=Zt===void 0?[]:Zt,t[2]=Zt,t[3]=ee):ee=t[3];const w=ee;let M;t[4]!==_t?(M=_t===void 0?[]:_t,t[4]=_t,t[5]=M):M=t[5];const a=M,tt=ce===void 0?!1:ce,et=ue===void 0?!1:ue,l=It===void 0?!1:It,V=v===void 0?"en":v,ie=de===void 0?0:de,ne=K===void 0?2:K,vt=Q===void 0?!0:Q;let N;t[6]!==xt?(N=xt===void 0?[]:xt,t[6]=xt,t[7]=N):N=t[7];const $=N;let jt;t[8]!==qt?(jt=qt===void 0?[]:qt,t[8]=qt,t[9]=jt):jt=t[9];const H=jt,wt=je===void 0?"light":je,Ot=Mt===void 0?5:Mt,Ft=we===void 0?"curve":we,Gt=Oe===void 0?.3:Oe,Rt=L===void 0?2:L;let Ct;t[10]!==Vt?(Ct=Vt===void 0?[]:Vt,t[10]=Vt,t[11]=Ct):Ct=t[11];const Ut=Ct;let it;t[12]!==Z?(it=Z===void 0?[]:Z,t[12]=Z,t[13]=it):it=t[13];const Pt=it;let Et;t[14]!==$t?(Et=$t===void 0?["5 5"]:$t,t[14]=$t,t[15]=Et):Et=t[15];const Wt=Et;let bt;t[16]!==_?(bt=_===void 0?[]:_,t[16]=_,t[17]=bt):bt=t[17];const F=bt,b=xe===void 0?!0:xe,[nt,pe]=A.useState(0),[At,Lt]=A.useState(0),Yt=A.useRef(null),oe=A.useRef(null);let T,kt;t[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Re=new ResizeObserver(Ce=>{pe(Ce[0].target.clientWidth||620),Lt(Ce[0].target.clientHeight||480)});return Yt.current&&Re.observe(Yt.current),()=>Re.disconnect()},kt=[],t[18]=T,t[19]=kt):(T=t[18],kt=t[19]),A.useEffect(T,kt);const Xt=d?.graphContainer,G=m?.graphContainer;let D;t[20]!==d?.description||t[21]!==d?.title||t[22]!==y||t[23]!==et||t[24]!==S||t[25]!==tt||t[26]!==rt||t[27]!==m?.description||t[28]!==m?.title||t[29]!==E?(D=rt||S||tt||et?o.jsxRuntimeExports.jsx(li.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:d?.title,description:d?.description},graphTitle:rt,graphDescription:S,width:E,graphDownload:tt?oe:void 0,dataDownload:et?y.map(Fi).filter(Hi).length>0?y.map($i).filter(Vi):y.filter(Mi):null}):null,t[20]=d?.description,t[21]=d?.title,t[22]=y,t[23]=et,t[24]=S,t[25]=tt,t[26]=rt,t[27]=m?.description,t[28]=m?.title,t[29]=E,t[30]=D):D=t[30];let U;t[31]!==d?.colorLegend||t[32]!==g||t[33]!==y.length||t[34]!==j||t[35]!==F||t[36]!==q||t[37]!==c||t[38]!==b?(U=c&&b&&y.length>0?o.jsxRuntimeExports.jsx(ci.ColorLegend,{colorDomain:j,colorLegendTitle:g,labelsToBeHidden:F,colors:q,showNAColor:!1,className:d?.colorLegend}):null,t[31]=d?.colorLegend,t[32]=g,t[33]=y.length,t[34]=j,t[35]=F,t[36]=q,t[37]=c,t[38]=b,t[39]=U):U=t[39];let P;t[40]!==y.length?(P=y.length===0&&o.jsxRuntimeExports.jsx(di.EmptyState,{}),t[40]=y.length,t[41]=P):P=t[41];let W;t[42]!==l||t[43]!==$||t[44]!==me||t[45]!==d||t[46]!==Ft||t[47]!==H||t[48]!==Ut||t[49]!==Wt||t[50]!==Pt||t[51]!==y||t[52]!==pt||t[53]!==Gt||t[54]!==w||t[55]!==a||t[56]!==j||t[57]!==F||t[58]!==V||t[59]!==gt||t[60]!==q||t[61]!==O||t[62]!==dt||t[63]!==u||t[64]!==Dt||t[65]!==ht||t[66]!==Ot||t[67]!==s||t[68]!==Rt||t[69]!==h||t[70]!==he||t[71]!==Ht||t[72]!==c||t[73]!==b||t[74]!==vt||t[75]!==x||t[76]!==ne||t[77]!==m||t[78]!==mt||t[79]!==At||t[80]!==nt||t[81]!==ct||t[82]!==yt||t[83]!==te?(W=nt&&At&&y.length>0?o.jsxRuntimeExports.jsx(mi,{data:y,lineColors:q,width:nt,height:At,dateFormat:pt,noOfXTicks:ht??fi.getNoOfTicks(nt),leftMargin:gt,rightMargin:Ht,topMargin:yt,bottomMargin:me,labels:j,tooltip:ct,onSeriesMouseOver:s,showColorLegendAtTop:b?c:!0,showValues:x,suffix:mt,prefix:h,highlightAreaSettings:w,refValues:he,minValue:Dt,maxValue:dt,highlightedLines:a,animate:l===!0?{duration:.5,once:!0,amount:.5}:l||{duration:0,once:!0,amount:0},rtl:V==="he"||V==="ar",strokeWidth:ne,showDots:vt,annotations:$,customHighlightAreaSettings:H,yAxisTitle:te,noOfYTicks:Ot,minDate:u,maxDate:O,curveType:Ft,styles:m,classNames:d,dimmedOpacity:Gt,precision:Rt,customLayers:Ut,labelsToBeHidden:F,dashedLines:Pt,dashSettings:Wt,revealClipId:xi.generateRandomString(8)}):null,t[42]=l,t[43]=$,t[44]=me,t[45]=d,t[46]=Ft,t[47]=H,t[48]=Ut,t[49]=Wt,t[50]=Pt,t[51]=y,t[52]=pt,t[53]=Gt,t[54]=w,t[55]=a,t[56]=j,t[57]=F,t[58]=V,t[59]=gt,t[60]=q,t[61]=O,t[62]=dt,t[63]=u,t[64]=Dt,t[65]=ht,t[66]=Ot,t[67]=s,t[68]=Rt,t[69]=h,t[70]=he,t[71]=Ht,t[72]=c,t[73]=b,t[74]=vt,t[75]=x,t[76]=ne,t[77]=m,t[78]=mt,t[79]=At,t[80]=nt,t[81]=ct,t[82]=yt,t[83]=te,t[84]=W):W=t[84];let Y;t[85]!==P||t[86]!==W?(Y=o.jsxRuntimeExports.jsxs(We.GraphArea,{ref:Yt,children:[P,W]}),t[85]=P,t[86]=W,t[87]=Y):Y=t[87];let I;t[88]!==d?.footnote||t[89]!==d?.source||t[90]!==at||t[91]!==r||t[92]!==m?.footnote||t[93]!==m?.source||t[94]!==E?(I=r||at?o.jsxRuntimeExports.jsx(ai.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:r,footNote:at,width:E}):null,t[88]=d?.footnote,t[89]=d?.source,t[90]=at,t[91]=r,t[92]=m?.footnote,t[93]=m?.source,t[94]=E,t[95]=I):I=t[95];let ot;return t[96]!==ft||t[97]!==fe||t[98]!==Tt||t[99]!==St||t[100]!==V||t[101]!==ie||t[102]!==lt||t[103]!==ut||t[104]!==Xt||t[105]!==G||t[106]!==D||t[107]!==U||t[108]!==Y||t[109]!==I||t[110]!==wt||t[111]!==E?(ot=o.jsxRuntimeExports.jsxs(We.GraphContainer,{className:Xt,style:G,id:Tt,ref:oe,"aria-label":ft,backgroundColor:fe,theme:wt,language:V,minHeight:ie,width:E,height:St,relativeHeight:ut,padding:lt,children:[D,U,Y,I]}),t[96]=ft,t[97]=fe,t[98]=Tt,t[99]=St,t[100]=V,t[101]=ie,t[102]=lt,t[103]=ut,t[104]=Xt,t[105]=G,t[106]=D,t[107]=U,t[108]=Y,t[109]=I,t[110]=wt,t[111]=E,t[112]=ot):ot=t[112],ot}function Mi(i){return i!==void 0}function Vi(i){return i!==void 0}function $i(i){return i.data}function Hi(i){return i!==void 0}function Fi(i){return i.data}exports.MultiLineChart=qi;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),R=require("./parse-xYI9yrvL.cjs"),Be=require("./index-Cno4Q0YE.cjs"),Ue=require("./numberFormattingFunction-02t-wJta.cjs"),ze=require("./Tooltip-BLa2EfMs.cjs"),C=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ge=require("./customArea-B1LWQBmM.cjs"),Je=require("./AxisTitle-DV4n0RxE.cjs"),Ke=require("./Axis-Jt_tmhxS.cjs"),Qe=require("./XTicksAndGridLines-CekrPykD.cjs"),Ze=require("./ReferenceLine-M9aP3dj-.cjs"),_e=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ti=require("./index-D69M6klB.cjs"),ei=require("./time-CkcKbhwe.cjs"),ii=require("./linear-CgUCbw9F.cjs"),Pe=require("./line-DaEMhXmx.cjs"),qe=require("./step-BZ3C8QFW.cjs"),ni=require("./select-Bnfk0lJx.cjs"),Bt=require("./proxy-C4-uo6nS.cjs"),oi=require("./init-DU0ybBc_.cjs"),si=require("./pointer-Dkq5NV1q.cjs"),ri=require("./use-in-view-C3o_ntMv.cjs"),ai=require("./GraphFooter.cjs"),li=require("./GraphHeader.cjs"),ci=require("./ColorLegend.cjs"),ui=require("./Colors.cjs"),di=require("./EmptyState-CGeBqbmR.cjs"),xi=require("./generateRandomString-B5zBiJzS.cjs"),We=require("./GraphContainer-B1EDxJ0S.cjs"),fi=require("./getNoOfTicks-C_1CFXv_.cjs");function mi(i){const t=o.compilerRuntimeExports.c(153),{data:y,width:rt,height:zt,lineColors:k,dateFormat:r,noOfXTicks:ge,labels:S,rightMargin:St,topMargin:E,bottomMargin:at,suffix:X,prefix:B,leftMargin:j,tooltip:lt,onSeriesMouseOver:Jt,showValues:ye,showColorLegendAtTop:ve,refValues:Nt,highlightAreaSettings:Kt,minValue:z,maxValue:ct,highlightedLines:ut,animate:s,rtl:J,strokeWidth:Qt,showDots:Zt,annotations:Tt,customHighlightAreaSettings:Dt,yAxisTitle:dt,noOfYTicks:_t,minDate:ce,maxDate:ue,curveType:It,styles:v,classNames:g,dimmedOpacity:de,precision:K,customLayers:Q,dashedLines:xt,dashSettings:qt,labelsToBeHidden:je,revealClipId:ft}=i,te=A.useRef(null);let Mt;t[0]!==s.amount||t[1]!==s.once?(Mt={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=Mt):Mt=t[2];const u=ri.useInView(te,Mt),[O,we]=A.useState(!1);let m,d;t[3]!==s.duration||t[4]!==O||t[5]!==u?(m=()=>{if(u&&!O){const n=setTimeout(()=>{we(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(n)}},d=[u,O,s.duration],t[3]=s.duration,t[4]=O,t[5]=u,t[6]=m,t[7]=d):(m=t[6],d=t[7]),A.useEffect(m,d);const Oe=It==="linear"?Pe.curveLinear:It==="step"?qe.curveStep:It==="stepAfter"?qe.stepAfter:It==="stepBefore"?qe.stepBefore:qe.monotoneX,[L,Vt]=A.useState(void 0),[Z,$t]=A.useState(void 0),[_,xe]=A.useState(void 0),q=dt?j+30:j;let mt;t[8]!==at||t[9]!==St||t[10]!==q||t[11]!==E?(mt={top:E,bottom:at,left:q,right:St},t[8]=at,t[9]=St,t[10]=q,t[11]=E,t[12]=mt):mt=t[12];const h=mt,ht=A.useRef(null);let pt;t[13]!==r?(pt=n=>({...n,date:R.parse(`${n.date}`,r,new Date)}),t[13]=r,t[14]=pt):pt=t[14];const x=Be.orderBy(y.map(pt),["date"],["asc"]),fe=x[0].y.map((n,e)=>x.map(f=>({...f,y:f.y[e]})).filter(Ii));let gt;if(t[15]!==r||t[16]!==Kt){let n;t[18]!==r?(n=e=>({...e,coordinates:[e.coordinates[0]===null?null:R.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:R.parse(`${e.coordinates[1]}`,r,new Date)]}),t[18]=r,t[19]=n):n=t[19],gt=Kt.map(n),t[15]=r,t[16]=Kt,t[17]=gt}else gt=t[17];const Ht=gt;let yt;if(t[20]!==Dt||t[21]!==r){let n;t[23]!==r?(n=e=>({...e,coordinates:e.coordinates.map((f,st)=>st%2===0?R.parse(`${f}`,r,new Date):f)}),t[23]=r,t[24]=n):n=t[24],yt=Dt.map(n),t[20]=Dt,t[21]=r,t[22]=yt}else yt=t[22];const me=yt,c=rt-h.left-h.right,p=zt-h.top-h.bottom,he=ce?R.parse(`${ce}`,r,new Date):x[0].date,ee=ue?R.parse(`${ue}`,r,new Date):x[x.length-1].date,w=C.checkIfNullOrUndefined(z)?Math.min(...x.map(Ti))?Math.min(...x.map(Si))>0?0:Math.min(...x.map(Li)):0:z,M=Math.max(...x.map(bi))?Math.max(...x.map(Ci)):0,a=ei.time().domain([he,ee]).range([0,c]);let tt;t[25]!==w||t[26]!==z?(tt=C.checkIfNullOrUndefined(z)?w:z,t[25]=w,t[26]=z,t[27]=tt):tt=t[27];let et;t[28]!==M||t[29]!==ct?(et=C.checkIfNullOrUndefined(ct)?M>0?M:0:ct,t[28]=M,t[29]=ct,t[30]=et):et=t[30];const l=ii.linear().domain([tt,et]).range([p,0]).nice(),V=Pe.line().x(n=>a(n.date)).y(n=>l(n.y)).curve(Oe),ie=l.ticks(_t),ne=a.ticks(ge);A.useEffect(()=>{const n=f=>{const st=x[oi.bisectCenter(x.map(Ri),a.invert(si.pointer(f)[0]),0)];Vt(st||x[x.length-1]),xe(f.clientY),$t(f.clientX),Jt?.(st||x[x.length-1])},e=()=>{Vt(void 0),$t(void 0),xe(void 0)};ni.select(ht.current).on("mousemove",n).on("mouseout",e),Jt?.(void 0)},[a,x,Jt]);let vt;t[31]===Symbol.for("react.memo_cache_sentinel")?(vt={width:0},t[31]=vt):vt=t[31];let N;t[32]!==s.duration?(N={duration:s.duration},t[32]=s.duration,t[33]=N):N=t[33];let $;t[34]!==c||t[35]!==N?($={initial:vt,whileInView:{width:c,transition:N}},t[34]=c,t[35]=N,t[36]=$):$=t[36];const jt=u?"whileInView":"initial";let H;t[37]!==p||t[38]!==$||t[39]!==jt?(H=o.jsxRuntimeExports.jsx(Bt.motion.rect,{x:0,y:0,height:p,variants:$,initial:"initial",animate:jt}),t[37]=p,t[38]=$,t[39]=jt,t[40]=H):H=t[40];let wt;t[41]!==ft||t[42]!==H?(wt=o.jsxRuntimeExports.jsx("defs",{children:o.jsxRuntimeExports.jsx("clipPath",{id:ft,children:H})}),t[41]=ft,t[42]=H,t[43]=wt):wt=t[43];let Ot;t[44]!==s||t[45]!==p||t[46]!==c||t[47]!==Ht||t[48]!==u||t[49]!==a?(Ot=o.jsxRuntimeExports.jsx(ti.HighlightArea,{areaSettings:Ht,width:c,height:p,scale:a,animate:s,isInView:u}),t[44]=s,t[45]=p,t[46]=c,t[47]=Ht,t[48]=u,t[49]=a,t[50]=Ot):Ot=t[50];const Ft=v?.yAxis?.gridLines,Gt=v?.yAxis?.labels;let Rt;t[51]!==Ft||t[52]!==Gt?(Rt={gridLines:Ft,labels:Gt},t[51]=Ft,t[52]=Gt,t[53]=Rt):Rt=t[53];const Ct=g?.yAxis?.gridLines,Ut=g?.yAxis?.labels;let it;t[54]!==Ct||t[55]!==Ut?(it={gridLines:Ct,labels:Ut},t[54]=Ct,t[55]=Ut,t[56]=it):it=t[56];const Pt=l(w<0?0:w),Et=l(w<0?0:w),Wt=0-j,bt=c+h.right,F=w<0?0:w;let b;t[57]!==K||t[58]!==B||t[59]!==X||t[60]!==F?(b=Ue.numberFormattingFunction(F,"NA",K,B,X),t[57]=K,t[58]=B,t[59]=X,t[60]=F,t[61]=b):b=t[61];const nt=0-j,pe=l(w<0?0:w),At=M<0?"1em":-5;let Lt;t[62]!==nt||t[63]!==pe||t[64]!==At?(Lt={x:nt,y:pe,dx:0,dy:At},t[62]=nt,t[63]=pe,t[64]=At,t[65]=Lt):Lt=t[65];const Yt=g?.xAxis?.axis,oe=g?.yAxis?.labels;let T;t[66]!==Yt||t[67]!==oe?(T={axis:Yt,label:oe},t[66]=Yt,t[67]=oe,t[68]=T):T=t[68];const kt=v?.xAxis?.axis,Xt=v?.yAxis?.labels;let G;t[69]!==kt||t[70]!==Xt?(G={axis:kt,label:Xt},t[69]=kt,t[70]=Xt,t[71]=G):G=t[71];let D;t[72]!==Pt||t[73]!==Et||t[74]!==Wt||t[75]!==bt||t[76]!==b||t[77]!==Lt||t[78]!==T||t[79]!==G?(D=o.jsxRuntimeExports.jsx(Ke.Axis,{y1:Pt,y2:Et,x1:Wt,x2:bt,label:b,labelPos:Lt,classNames:T,styles:G}),t[72]=Pt,t[73]=Et,t[74]=Wt,t[75]=bt,t[76]=b,t[77]=Lt,t[78]=T,t[79]=G,t[80]=D):D=t[80];const U=0-j-15,P=p/2,W=v?.yAxis?.title,Y=g?.yAxis?.title;let I;t[81]!==U||t[82]!==P||t[83]!==W||t[84]!==Y||t[85]!==dt?(I=o.jsxRuntimeExports.jsx(Je.AxisTitle,{x:U,y:P,style:W,className:Y,text:dt,rotate90:!0}),t[81]=U,t[82]=P,t[83]=W,t[84]=Y,t[85]=dt,t[86]=I):I=t[86];let ot;t[87]!==r?(ot=n=>R.format(n,r),t[87]=r,t[88]=ot):ot=t[88];const Re=ne.map(ot),Ce=ne.map(n=>a(n)),Me=v?.xAxis?.gridLines,Ve=v?.xAxis?.labels;let Ee;t[89]!==Me||t[90]!==Ve?(Ee={gridLines:Me,labels:Ve},t[89]=Me,t[90]=Ve,t[91]=Ee):Ee=t[91];const $e=g?.xAxis?.gridLines;let se;t[92]!==$e?(se=o.mo("opacity-0",$e),t[92]=$e,t[93]=se):se=t[93];const He=g?.xAxis?.labels;let re;t[94]!==He?(re=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",He),t[94]=He,t[95]=re):re=t[95];let be;t[96]!==se||t[97]!==re?(be={gridLines:se,labels:re},t[96]=se,t[97]=re,t[98]=be):be=t[98];let Ae;t[99]!==Q?(Ae=Q.filter(ji).map(vi),t[99]=Q,t[100]=Ae):Ae=t[100];const Fe=fe.map((n,e)=>o.jsxRuntimeExports.jsxs(Bt.motion.g,{exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1},whileInView:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1,transition:{duration:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Bt.motion.path,{style:{fill:"none",strokeWidth:Qt},clipPath:`url(#${ft})`,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{...xt.length===0?{pathLength:0}:{},d:V(n.filter(yi))||"",opacity:1,stroke:k[e]},whileInView:{...xt.length===0?{pathLength:1}:{},d:V(n.filter(gi))||"",opacity:1,stroke:k[e],transition:{duration:s.duration}}},strokeDasharray:xt.includes(S[e])?qt[e%qt.length]:void 0,initial:"initial",animate:u?"whileInView":"initial"}),n.map((f,st)=>o.jsxRuntimeExports.jsx("g",{children:C.checkIfNullOrUndefined(f.y)?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Zt?o.jsxRuntimeExports.jsx(Bt.motion.circle,{r:c/x.length<5?0:c/x.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],cx:a(f.date),cy:l(f.y)},whileInView:{opacity:1,fill:k[e],transition:{duration:O?s.duration:.5,delay:O?0:s.duration},cx:a(f.date),cy:l(f.y)}},initial:"initial",animate:u?"whileInView":"initial"}):null,ye?o.jsxRuntimeExports.jsx(Bt.motion.text,{dy:-8,style:{textAnchor:"middle",...v?.graphObjectValues||{}},className:o.mo("graph-value text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(f.date),y:l(f.y)},whileInView:{opacity:1,fill:k[e],x:a(f.date),y:l(f.y),transition:{duration:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:Ue.numberFormattingFunction(f.y,"NA",K,B,X)}):null]})},st)),ve||je.includes(S[e])?null:o.jsxRuntimeExports.jsx(Bt.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y)},whileInView:{opacity:1,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y),transition:{duration:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:S[e]})]},S[e]));let ae;t[101]!==g?.mouseOverLine||t[102]!==p||t[103]!==L||t[104]!==v?.mouseOverLine||t[105]!==a?(ae=L?o.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:a(L.date),x2:a(L.date),className:o.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:v?.mouseOverLine}):null,t[101]=g?.mouseOverLine,t[102]=p,t[103]=L,t[104]=v?.mouseOverLine,t[105]=a,t[106]=ae):ae=t[106];let Le;t[107]!==Fe||t[108]!==ae?(Le=o.jsxRuntimeExports.jsxs("g",{children:[Fe,ae]}),t[107]=Fe,t[108]=ae,t[109]=Le):Le=t[109];let ke;t[110]!==s||t[111]!==c||t[112]!==u||t[113]!==j||t[114]!==h.right||t[115]!==Nt||t[116]!==l?(ke=Nt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:Nt.map((n,e)=>o.jsxRuntimeExports.jsx(Ze.RefLineY,{text:n.text,color:n.color,y:l(n.value),x1:0-j,x2:c+h.right,classNames:n.classNames,styles:n.styles,animate:s,isInView:u},e))}):null,t[110]=s,t[111]=c,t[112]=u,t[113]=j,t[114]=h.right,t[115]=Nt,t[116]=l,t[117]=ke):ke=t[117];let le;if(t[118]!==s||t[119]!==Tt||t[120]!==r||t[121]!==c||t[122]!==u||t[123]!==h.right||t[124]!==J||t[125]!==a||t[126]!==l){let n;t[128]!==s||t[129]!==r||t[130]!==c||t[131]!==u||t[132]!==h.right||t[133]!==J||t[134]!==a||t[135]!==l?(n=(e,f)=>{const st=Ge.getLineEndPoint({x:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},C.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Ye=e.showConnector?{y1:st.y,x1:st.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:C.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Xe={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:J?0:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:J?e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):c+h.right-(e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return o.jsxRuntimeExports.jsx(Ge.Annotation,{color:e.color,connectorsSettings:Ye,labelSettings:Xe,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:u},f)},t[128]=s,t[129]=r,t[130]=c,t[131]=u,t[132]=h.right,t[133]=J,t[134]=a,t[135]=l,t[136]=n):n=t[136],le=Tt.map(n),t[118]=s,t[119]=Tt,t[120]=r,t[121]=c,t[122]=u,t[123]=h.right,t[124]=J,t[125]=a,t[126]=l,t[127]=le}else le=t[127];let Se;t[137]!==le?(Se=o.jsxRuntimeExports.jsx("g",{children:le}),t[137]=le,t[138]=Se):Se=t[138];let Ne;t[139]!==Q?(Ne=Q.filter(pi).map(hi),t[139]=Q,t[140]=Ne):Ne=t[140];let Te;t[141]===Symbol.for("react.memo_cache_sentinel")?(Te={fill:"none",pointerEvents:"all"},t[141]=Te):Te=t[141];let De;t[142]!==ht||t[143]!==p||t[144]!==c?(De=o.jsxRuntimeExports.jsx("rect",{ref:ht,style:Te,width:c,height:p}),t[142]=ht,t[143]=p,t[144]=c,t[145]=De):De=t[145];let Ie;return t[146]!==g?.tooltip||t[147]!==Z||t[148]!==_||t[149]!==L||t[150]!==v?.tooltip||t[151]!==lt?(Ie=L&<&&Z&&_?o.jsxRuntimeExports.jsx(ze.Tooltip,{data:L,body:lt,xPos:Z,yPos:_,backgroundStyle:v?.tooltip,className:g?.tooltip}):null,t[146]=g?.tooltip,t[147]=Z,t[148]=_,t[149]=L,t[150]=v?.tooltip,t[151]=lt,t[152]=Ie):Ie=t[152],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Bt.motion.svg,{width:`${rt}px`,height:`${zt}px`,viewBox:`0 0 ${rt} ${zt}`,direction:"ltr",ref:te,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[wt,Ot,o.jsxRuntimeExports.jsx(Ge.CustomArea,{areaSettings:me,scaleX:a,scaleY:l,animate:s,isInView:u}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(_e.YTicksAndGridLines,{values:ie.filter(Oi),y:ie.filter(wi).map(n=>l(n)),x1:0-j,x2:c+h.right,styles:Rt,classNames:it,suffix:X,prefix:B,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),D,I]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Qe.XTicksAndGridLines,{values:Re,x:Ce,y1:0,y2:p,styles:Ee,classNames:be,suffix:X,prefix:B,labelType:"primary",showGridLines:!0,precision:K})}),Ae,Le,ke,Se,Ne,De]})}),Ie]})}function hi(i){return i.layer}function pi(i){return i.position==="after"}function gi(i){return!C.checkIfNullOrUndefined(i.y)}function yi(i){return!C.checkIfNullOrUndefined(i.y)}function vi(i){return i.layer}function ji(i){return i.position==="before"}function wi(i){return i!==0}function Oi(i){return i!==0}function Ri(i){return i.date}function Ci(i){return Math.max(...i.y.filter(Ei))}function Ei(i){return!C.checkIfNullOrUndefined(i)}function bi(i){return Math.max(...i.y.filter(Ai))}function Ai(i){return!C.checkIfNullOrUndefined(i)}function Li(i){return Math.min(...i.y.filter(ki))}function ki(i){return!C.checkIfNullOrUndefined(i)}function Si(i){return Math.min(...i.y.filter(Ni))}function Ni(i){return!C.checkIfNullOrUndefined(i)}function Ti(i){return Math.min(...i.y.filter(Di))}function Di(i){return!C.checkIfNullOrUndefined(i)}function Ii(i){return!C.checkIfNullOrUndefined(i.y)}function qi(i){const t=o.compilerRuntimeExports.c(113),{data:y,graphTitle:rt,lineColors:zt,suffix:k,sources:r,prefix:ge,graphDescription:S,height:St,width:E,footNote:at,noOfXTicks:X,dateFormat:B,labels:j,padding:lt,showValues:Jt,backgroundColor:ye,leftMargin:ve,rightMargin:Nt,topMargin:Kt,bottomMargin:z,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:s,showColorLegendAtTop:J,refValues:Qt,highlightAreaSettings:Zt,graphID:Tt,minValue:Dt,maxValue:dt,highlightedLines:_t,graphDownload:ce,dataDownload:ue,animate:It,language:v,colorLegendTitle:g,minHeight:de,strokeWidth:K,showDots:Q,annotations:xt,customHighlightAreaSettings:qt,theme:je,ariaLabel:ft,yAxisTitle:te,noOfYTicks:Mt,minDate:u,maxDate:O,curveType:we,styles:m,classNames:d,dimmedOpacity:Oe,precision:L,customLayers:Vt,dashedLines:Z,dashSettings:$t,labelsToBeHidden:_,showColorScale:xe}=i,q=zt===void 0?ui.Colors.light.categoricalColors.colors:zt,mt=k===void 0?"":k,h=ge===void 0?"":ge,ht=X===void 0?10:X,pt=B===void 0?"yyyy":B,x=Jt===void 0?!1:Jt,fe=ye===void 0?!1:ye,gt=ve===void 0?30:ve,Ht=Nt===void 0?50:Nt,yt=Kt===void 0?20:Kt,me=z===void 0?25:z,c=J===void 0?!1:J;let p;t[0]!==Qt?(p=Qt===void 0?[]:Qt,t[0]=Qt,t[1]=p):p=t[1];const he=p;let ee;t[2]!==Zt?(ee=Zt===void 0?[]:Zt,t[2]=Zt,t[3]=ee):ee=t[3];const w=ee;let M;t[4]!==_t?(M=_t===void 0?[]:_t,t[4]=_t,t[5]=M):M=t[5];const a=M,tt=ce===void 0?!1:ce,et=ue===void 0?!1:ue,l=It===void 0?!1:It,V=v===void 0?"en":v,ie=de===void 0?0:de,ne=K===void 0?2:K,vt=Q===void 0?!0:Q;let N;t[6]!==xt?(N=xt===void 0?[]:xt,t[6]=xt,t[7]=N):N=t[7];const $=N;let jt;t[8]!==qt?(jt=qt===void 0?[]:qt,t[8]=qt,t[9]=jt):jt=t[9];const H=jt,wt=je===void 0?"light":je,Ot=Mt===void 0?5:Mt,Ft=we===void 0?"curve":we,Gt=Oe===void 0?.3:Oe,Rt=L===void 0?2:L;let Ct;t[10]!==Vt?(Ct=Vt===void 0?[]:Vt,t[10]=Vt,t[11]=Ct):Ct=t[11];const Ut=Ct;let it;t[12]!==Z?(it=Z===void 0?[]:Z,t[12]=Z,t[13]=it):it=t[13];const Pt=it;let Et;t[14]!==$t?(Et=$t===void 0?["5 5"]:$t,t[14]=$t,t[15]=Et):Et=t[15];const Wt=Et;let bt;t[16]!==_?(bt=_===void 0?[]:_,t[16]=_,t[17]=bt):bt=t[17];const F=bt,b=xe===void 0?!0:xe,[nt,pe]=A.useState(0),[At,Lt]=A.useState(0),Yt=A.useRef(null),oe=A.useRef(null);let T,kt;t[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Re=new ResizeObserver(Ce=>{pe(Ce[0].target.clientWidth||620),Lt(Ce[0].target.clientHeight||480)});return Yt.current&&Re.observe(Yt.current),()=>Re.disconnect()},kt=[],t[18]=T,t[19]=kt):(T=t[18],kt=t[19]),A.useEffect(T,kt);const Xt=d?.graphContainer,G=m?.graphContainer;let D;t[20]!==d?.description||t[21]!==d?.title||t[22]!==y||t[23]!==et||t[24]!==S||t[25]!==tt||t[26]!==rt||t[27]!==m?.description||t[28]!==m?.title||t[29]!==E?(D=rt||S||tt||et?o.jsxRuntimeExports.jsx(li.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:d?.title,description:d?.description},graphTitle:rt,graphDescription:S,width:E,graphDownload:tt?oe:void 0,dataDownload:et?y.map(Fi).filter(Hi).length>0?y.map($i).filter(Vi):y.filter(Mi):null}):null,t[20]=d?.description,t[21]=d?.title,t[22]=y,t[23]=et,t[24]=S,t[25]=tt,t[26]=rt,t[27]=m?.description,t[28]=m?.title,t[29]=E,t[30]=D):D=t[30];let U;t[31]!==d?.colorLegend||t[32]!==g||t[33]!==y.length||t[34]!==j||t[35]!==F||t[36]!==q||t[37]!==c||t[38]!==b?(U=c&&b&&y.length>0?o.jsxRuntimeExports.jsx(ci.ColorLegend,{colorDomain:j,colorLegendTitle:g,labelsToBeHidden:F,colors:q,showNAColor:!1,className:d?.colorLegend}):null,t[31]=d?.colorLegend,t[32]=g,t[33]=y.length,t[34]=j,t[35]=F,t[36]=q,t[37]=c,t[38]=b,t[39]=U):U=t[39];let P;t[40]!==y.length?(P=y.length===0&&o.jsxRuntimeExports.jsx(di.EmptyState,{}),t[40]=y.length,t[41]=P):P=t[41];let W;t[42]!==l||t[43]!==$||t[44]!==me||t[45]!==d||t[46]!==Ft||t[47]!==H||t[48]!==Ut||t[49]!==Wt||t[50]!==Pt||t[51]!==y||t[52]!==pt||t[53]!==Gt||t[54]!==w||t[55]!==a||t[56]!==j||t[57]!==F||t[58]!==V||t[59]!==gt||t[60]!==q||t[61]!==O||t[62]!==dt||t[63]!==u||t[64]!==Dt||t[65]!==ht||t[66]!==Ot||t[67]!==s||t[68]!==Rt||t[69]!==h||t[70]!==he||t[71]!==Ht||t[72]!==c||t[73]!==b||t[74]!==vt||t[75]!==x||t[76]!==ne||t[77]!==m||t[78]!==mt||t[79]!==At||t[80]!==nt||t[81]!==ct||t[82]!==yt||t[83]!==te?(W=nt&&At&&y.length>0?o.jsxRuntimeExports.jsx(mi,{data:y,lineColors:q,width:nt,height:At,dateFormat:pt,noOfXTicks:ht??fi.getNoOfTicks(nt),leftMargin:gt,rightMargin:Ht,topMargin:yt,bottomMargin:me,labels:j,tooltip:ct,onSeriesMouseOver:s,showColorLegendAtTop:b?c:!0,showValues:x,suffix:mt,prefix:h,highlightAreaSettings:w,refValues:he,minValue:Dt,maxValue:dt,highlightedLines:a,animate:l===!0?{duration:.5,once:!0,amount:.5}:l||{duration:0,once:!0,amount:0},rtl:V==="he"||V==="ar",strokeWidth:ne,showDots:vt,annotations:$,customHighlightAreaSettings:H,yAxisTitle:te,noOfYTicks:Ot,minDate:u,maxDate:O,curveType:Ft,styles:m,classNames:d,dimmedOpacity:Gt,precision:Rt,customLayers:Ut,labelsToBeHidden:F,dashedLines:Pt,dashSettings:Wt,revealClipId:xi.generateRandomString(8)}):null,t[42]=l,t[43]=$,t[44]=me,t[45]=d,t[46]=Ft,t[47]=H,t[48]=Ut,t[49]=Wt,t[50]=Pt,t[51]=y,t[52]=pt,t[53]=Gt,t[54]=w,t[55]=a,t[56]=j,t[57]=F,t[58]=V,t[59]=gt,t[60]=q,t[61]=O,t[62]=dt,t[63]=u,t[64]=Dt,t[65]=ht,t[66]=Ot,t[67]=s,t[68]=Rt,t[69]=h,t[70]=he,t[71]=Ht,t[72]=c,t[73]=b,t[74]=vt,t[75]=x,t[76]=ne,t[77]=m,t[78]=mt,t[79]=At,t[80]=nt,t[81]=ct,t[82]=yt,t[83]=te,t[84]=W):W=t[84];let Y;t[85]!==P||t[86]!==W?(Y=o.jsxRuntimeExports.jsxs(We.GraphArea,{ref:Yt,children:[P,W]}),t[85]=P,t[86]=W,t[87]=Y):Y=t[87];let I;t[88]!==d?.footnote||t[89]!==d?.source||t[90]!==at||t[91]!==r||t[92]!==m?.footnote||t[93]!==m?.source||t[94]!==E?(I=r||at?o.jsxRuntimeExports.jsx(ai.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:r,footNote:at,width:E}):null,t[88]=d?.footnote,t[89]=d?.source,t[90]=at,t[91]=r,t[92]=m?.footnote,t[93]=m?.source,t[94]=E,t[95]=I):I=t[95];let ot;return t[96]!==ft||t[97]!==fe||t[98]!==Tt||t[99]!==St||t[100]!==V||t[101]!==ie||t[102]!==lt||t[103]!==ut||t[104]!==Xt||t[105]!==G||t[106]!==D||t[107]!==U||t[108]!==Y||t[109]!==I||t[110]!==wt||t[111]!==E?(ot=o.jsxRuntimeExports.jsxs(We.GraphContainer,{className:Xt,style:G,id:Tt,ref:oe,"aria-label":ft,backgroundColor:fe,theme:wt,language:V,minHeight:ie,width:E,height:St,relativeHeight:ut,padding:lt,children:[D,U,Y,I]}),t[96]=ft,t[97]=fe,t[98]=Tt,t[99]=St,t[100]=V,t[101]=ie,t[102]=lt,t[103]=ut,t[104]=Xt,t[105]=G,t[106]=D,t[107]=U,t[108]=Y,t[109]=I,t[110]=wt,t[111]=E,t[112]=ot):ot=t[112],ot}function Mi(i){return i!==void 0}function Vi(i){return i!==void 0}function $i(i){return i.data}function Hi(i){return i!==void 0}function Fi(i){return i.data}exports.MultiLineChart=qi;
|
|
2
2
|
//# sourceMappingURL=MultiLineChart.cjs.map
|
package/dist/MultiLineChart.js
CHANGED
|
@@ -7,7 +7,7 @@ import { T as Je } from "./Tooltip-BRnAz2Gv.js";
|
|
|
7
7
|
import { c as b } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
8
|
import { C as Ke, g as Qe, A as Ze } from "./customArea-ASDaSE4u.js";
|
|
9
9
|
import { A as _e } from "./AxisTitle-VFq89Olw.js";
|
|
10
|
-
import { A as ti } from "./Axis-
|
|
10
|
+
import { A as ti } from "./Axis-D56Gy0se.js";
|
|
11
11
|
import { X as ei } from "./XTicksAndGridLines-CVZkZkpS.js";
|
|
12
12
|
import { a as ii } from "./ReferenceLine-DgtoRgw0.js";
|
|
13
13
|
import { Y as oi } from "./YTicksAndGridLines-GnXnSRF2.js";
|
package/dist/ParetoChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),lt=require("react"),xe=require("./index-DQA8q5sC.cjs"),se=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-Dtjn-EgM.cjs"),me=require("./AxisTitle-DV4n0RxE.cjs"),ge=require("./XAxesLabels-C6o9jJal.cjs"),ye=require("./DetailsModal-DHttOA80.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-CgUCbw9F.cjs"),de=require("./line-DaEMhXmx.cjs"),oe=require("./step-BZ3C8QFW.cjs"),Yt=require("./proxy-C4-uo6nS.cjs"),ve=require("./use-in-view-C3o_ntMv.cjs"),Ae=require("./index-CoobIWNj.cjs"),je=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),le=require("./Colors.cjs"),Re=require("./EmptyState-CGeBqbmR.cjs"),fe=require("./GraphContainer-B1EDxJ0S.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:d,width:F,height:Y,barColor:f,lineColor:p,axisTitles:x,sameAxes:A,rightMargin:Qt,leftMargin:te,topMargin:Ht,bottomMargin:Gt,tooltip:Ct,showValues:Mt,onSeriesMouseOver:rt,barPadding:Xt,truncateBy:kt,showLabels:Wt,onSeriesMouseClick:N,resetSelectionOnDoubleClick:ft,detailsOnClick:k,noOfTicks:ht,lineSuffix:gt,barSuffix:Lt,linePrefix:St,barPrefix:Nt,curveType:Ot,styles:s,classNames:o,animate:r,precision:H,customLayers:O,naLabel:at,showAxisLabels:L}=e,Zt=lt.useRef(null);let yt;t[0]!==r.amount||t[1]!==r.once?(yt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=yt):yt=t[2];const $=ve.useInView(Zt,yt),Bt=Ot==="linear"?de.curveLinear:Ot==="step"?oe.curveStep:Ot==="stepAfter"?oe.stepAfter:Ot==="stepBefore"?oe.stepBefore:oe.monotoneX,[$t,ct]=lt.useState(void 0),[q,bt]=lt.useState(void 0),[qt,u]=lt.useState(void 0),[a,ut]=lt.useState(void 0),Ut=te+50,vt=Qt+65;let Vt;t[3]!==Gt||t[4]!==Ut||t[5]!==vt||t[6]!==Ht?(Vt={top:Ht,bottom:Gt,left:Ut,right:vt},t[3]=Gt,t[4]=Ut,t[5]=vt,t[6]=Ht,t[7]=Vt):Vt=t[7];const c=Vt,g=F-c.left-c.right,l=Y-c.top-c.bottom;let j,G,X,S,W,B,U,w,E,V,I,z,J,K,Q;if(t[8]!==r||t[9]!==x||t[10]!==f||t[11]!==Xt||t[12]!==Nt||t[13]!==Lt||t[14]!==o?.graphObjectValues||t[15]!==o?.xAxis?.axis||t[16]!==o?.xAxis?.labels||t[17]!==o?.yAxis?.gridLines||t[18]!==o?.yAxis?.labels||t[19]!==o?.yAxis?.title||t[20]!==Bt||t[21]!==O||t[22]!==d||t[23]!==k||t[24]!==l||t[25]!==g||t[26]!==Y||t[27]!==$||t[28]!==p||t[29]!==St||t[30]!==gt||t[31]!==c.bottom||t[32]!==c.left||t[33]!==c.right||t[34]!==c.top||t[35]!==q||t[36]!==at||t[37]!==ht||t[38]!==N||t[39]!==rt||t[40]!==H||t[41]!==ft||t[42]!==A||t[43]!==L||t[44]!==Wt||t[45]!==Mt||t[46]!==s?.graphObjectValues||t[47]!==s?.xAxis?.axis||t[48]!==s?.xAxis?.labels||t[49]!==s?.yAxis?.gridLines||t[50]!==s?.yAxis?.labels||t[51]!==s?.yAxis?.title||t[52]!==kt||t[53]!==F){const m=d.map(ti),y=be.band().domain(m.map(_e)).range([0,g]).paddingInner(Xt),It=Math.min(...m.map(Ze).filter(Qe))!==1/0?Math.min(...m.map(Ke).filter(Je))>0?0:Math.min(...m.map(ze).filter(Ue)):0,jt=Math.min(...m.map(Be).filter(We))!==1/0?Math.min(...m.map(Xe).filter(Ge))>0?0:Math.min(...m.map(He).filter(Ye)):0,wt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,xt=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,zt=It<jt?It:jt,Et=wt>xt?wt:xt,h=pe.linear().domain([A?zt:It,A?Et>0?Et:0:wt>0?wt:0]).range([l,0]).nice(),b=pe.linear().domain([A?zt:jt,A?Et>0?Et:0:xt>0?xt:0]).range([l,0]).nice(),Tt=de.line().defined(Oe).x(i=>y(`${i.id}`)+y.bandwidth()/2).y(i=>b(i.line)).curve(Bt),re=h.ticks(ht),Jt=b.ticks(ht);G=Yt.motion.svg,W=`${F}px`,B=`${Y}px`,U=`0 0 ${F} ${Y}`,w="ltr",E=Zt,J=`translate(${c.left},${c.top})`;const _t=o?.xAxis?.axis;let nt;t[69]!==_t?(nt={axis:_t},t[69]=_t,t[70]=nt):nt=t[70];let mt;t[71]!==s?.xAxis?.axis?(mt=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=mt):mt=t[72];let T;t[73]!==f||t[74]!==mt?(T={axis:{stroke:f,...mt}},t[73]=f,t[74]=mt,t[75]=T):T=t[75];let pt;t[76]!==l||t[77]!==nt||t[78]!==T?(pt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:-15,x2:-15,classNames:nt,styles:T}),t[76]=l,t[77]=nt,t[78]=T,t[79]=pt):pt=t[79];let Rt;t[80]!==x||t[81]!==f||t[82]!==o?.yAxis?.title||t[83]!==l||t[84]!==c.left||t[85]!==L||t[86]!==s?.yAxis?.title?(Rt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-c.left,y:l/2,style:{fill:f,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[0].length>100?`${x[0].substring(0,100)}...`:x[0],rotate90:!0}):null,t[80]=x,t[81]=f,t[82]=o?.yAxis?.title,t[83]=l,t[84]=c.left,t[85]=L,t[86]=s?.yAxis?.title,t[87]=Rt):Rt=t[87],K=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:h(i),y2:h(i),x1:-15,x2:-20,style:{stroke:f,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:h(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:f,...s?.yAxis?.labels||{}},children:se.numberFormattingFunction(i,at,H,Nt,Lt)})]},Ft)),pt,Rt]});const Pt=g+15,st=g+15,ot=o?.xAxis?.axis;let R;t[88]!==ot?(R={axis:ot},t[88]=ot,t[89]=R):R=t[89];let C;t[90]!==s?.xAxis?.axis?(C=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=C):C=t[91];let M;t[92]!==p||t[93]!==C?(M={axis:{stroke:p,...C}},t[92]=p,t[93]=C,t[94]=M):M=t[94];let P;t[95]!==l||t[96]!==Pt||t[97]!==st||t[98]!==R||t[99]!==M?(P=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:Pt,x2:st,classNames:R,styles:M}),t[95]=l,t[96]=Pt,t[97]=st,t[98]=R,t[99]=M,t[100]=P):P=t[100];let dt;t[101]!==x||t[102]!==o?.yAxis?.title||t[103]!==l||t[104]!==g||t[105]!==p||t[106]!==c.right||t[107]!==L||t[108]!==s?.yAxis?.title?(dt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:g+c.right-15,y:l/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[1].length>100?`${x[1].substring(0,100)}...`:x[1],rotate90:!0}):null,t[101]=x,t[102]=o?.yAxis?.title,t[103]=l,t[104]=g,t[105]=p,t[106]=c.right,t[107]=L,t[108]=s?.yAxis?.title,t[109]=dt):dt=t[109],Q=n.jsxRuntimeExports.jsxs("g",{children:[Jt.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:b(i),y2:b(i),x1:g+15,x2:g+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:g+25,y:b(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:se.numberFormattingFunction(i,at,H,St,gt)})]},Ft)),P,dt]});const Kt=o?.xAxis?.axis;let Dt;t[110]!==Kt?(Dt={axis:Kt},t[110]=Kt,t[111]=Dt):Dt=t[111];const ae=s?.xAxis?.axis;let ee;t[112]!==ae?(ee={axis:ae},t[112]=ae,t[113]=ee):ee=t[113],X=n.jsxRuntimeExports.jsx(ce.Axis,{y1:A?h(0):l,y2:A?h(0):l,x1:-15,x2:g+15,classNames:Dt,styles:ee}),t[114]!==O?(S=O.filter(Ne).map(Se),t[114]=O,t[115]=S):S=t[115],j=Ae.AnimatePresence,V=m.map((i,Ft)=>n.jsxRuntimeExports.jsxs(Yt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.rect,{variants:{initial:{attrY:h(0),height:0,opacity:1,fill:f},whileInView:{attrY:i.bar?i.bar>0?h(i.bar):h(0):0,height:i.bar?Math.abs(h(i.bar)-h(0)):0,opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{attrY:h(0),height:0,opacity:0,transition:{duration:r.duration}},x:y(`${Ft}`),width:y.bandwidth()}),Mt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{attrY:h(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:h(0),opacity:0,fill:f},whileInView:{attrY:h(i.bar||0),opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:{textAnchor:"middle",...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:i.bar?i.bar>=0?"-5px":"1em":"-5px",children:se.numberFormattingFunction(i.bar,at,H,Nt,Lt)}):null,Wt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<kt?`${i.label}`:`${`${i.label}`.substring(0,kt)}...`,y:l+5,x:y(`${i.id}`),width:y.bandwidth(),height:c.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:$}):null]},i.label));let ie;t[116]!==r.duration?(ie={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ie):ie=t[117];let ne;t[118]===Symbol.for("react.memo_cache_sentinel")?(ne={fill:"none",strokeWidth:2},t[118]=ne):ne=t[118],I=n.jsxRuntimeExports.jsx(Yt.motion.path,{exit:ie,variants:{initial:{d:Tt(m.map(Le)),opacity:0,stroke:p},whileInView:{d:Tt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:ne}),z=m.map((i,Ft)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.circle,{exit:{cy:b(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:b(0),opacity:0,fill:p},whileInView:{cy:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",cx:y(i.id)+y.bandwidth()/2,r:g/m.length<5?0:g/m.length<20?2:4}),Mt?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{y:b(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:b(0),opacity:0,fill:p},whileInView:{y:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:se.numberFormattingFunction(i.line,at,H,St,gt)}):null]})},Ft)),t[8]=r,t[9]=x,t[10]=f,t[11]=Xt,t[12]=Nt,t[13]=Lt,t[14]=o?.graphObjectValues,t[15]=o?.xAxis?.axis,t[16]=o?.xAxis?.labels,t[17]=o?.yAxis?.gridLines,t[18]=o?.yAxis?.labels,t[19]=o?.yAxis?.title,t[20]=Bt,t[21]=O,t[22]=d,t[23]=k,t[24]=l,t[25]=g,t[26]=Y,t[27]=$,t[28]=p,t[29]=St,t[30]=gt,t[31]=c.bottom,t[32]=c.left,t[33]=c.right,t[34]=c.top,t[35]=q,t[36]=at,t[37]=ht,t[38]=N,t[39]=rt,t[40]=H,t[41]=ft,t[42]=A,t[43]=L,t[44]=Wt,t[45]=Mt,t[46]=s?.graphObjectValues,t[47]=s?.xAxis?.axis,t[48]=s?.xAxis?.labels,t[49]=s?.yAxis?.gridLines,t[50]=s?.yAxis?.labels,t[51]=s?.yAxis?.title,t[52]=kt,t[53]=F,t[54]=j,t[55]=G,t[56]=X,t[57]=S,t[58]=W,t[59]=B,t[60]=U,t[61]=w,t[62]=E,t[63]=V,t[64]=I,t[65]=z,t[66]=J,t[67]=K,t[68]=Q}else j=t[54],G=t[55],X=t[56],S=t[57],W=t[58],B=t[59],U=t[60],w=t[61],E=t[62],V=t[63],I=t[64],z=t[65],J=t[66],K=t[67],Q=t[68];let Z;t[119]!==j||t[120]!==V||t[121]!==I||t[122]!==z?(Z=n.jsxRuntimeExports.jsxs(j,{children:[V,I,z]}),t[119]=j,t[120]=V,t[121]=I,t[122]=z,t[123]=Z):Z=t[123];let v;t[124]!==O?(v=O.filter(ke).map(Me),t[124]=O,t[125]=v):v=t[125];let _;t[126]!==X||t[127]!==S||t[128]!==Z||t[129]!==v||t[130]!==J||t[131]!==K||t[132]!==Q?(_=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[K,Q,X,S,Z,v]}),t[126]=X,t[127]=S,t[128]=Z,t[129]=v,t[130]=J,t[131]=K,t[132]=Q,t[133]=_):_=t[133];let tt;t[134]!==G||t[135]!==W||t[136]!==B||t[137]!==U||t[138]!==w||t[139]!==E||t[140]!==_?(tt=n.jsxRuntimeExports.jsx(G,{width:W,height:B,viewBox:U,direction:w,ref:E,children:_}),t[134]=G,t[135]=W,t[136]=B,t[137]=U,t[138]=w,t[139]=E,t[140]=_,t[141]=tt):tt=t[141];let et;t[142]!==o?.tooltip||t[143]!==qt||t[144]!==a||t[145]!==$t||t[146]!==s?.tooltip||t[147]!==Ct?(et=$t&&Ct&&qt&&a?n.jsxRuntimeExports.jsx(he.Tooltip,{data:$t,body:Ct,xPos:qt,yPos:a,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=qt,t[144]=a,t[145]=$t,t[146]=s?.tooltip,t[147]=Ct,t[148]=et):et=t[148];let it;t[149]!==o?.modal||t[150]!==k||t[151]!==q?(it=k&&q!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:k,data:q,setData:bt,className:o?.modal}):null,t[149]=o?.modal,t[150]=k,t[151]=q,t[152]=it):it=t[152];let At;return t[153]!==tt||t[154]!==et||t[155]!==it?(At=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[tt,et,it]}),t[153]=tt,t[154]=et,t[155]=it,t[156]=At):At=t[156],At}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Le(e){return{...e,line:0}}function Se(e){return e.layer}function Ne(e){return e.position==="before"}function Oe(e){return!ue.checkIfNullOrUndefined(e.line)}function $e(e){return e!=null}function qe(e){return e.line}function Ve(e){return e!=null}function Ie(e){return e.line}function Te(e){return e!=null}function Pe(e){return e.bar}function De(e){return e!=null}function Fe(e){return e.bar}function Ye(e){return e!=null}function He(e){return e.line}function Ge(e){return e!=null}function Xe(e){return e.line}function We(e){return e!=null}function Be(e){return e.line}function Ue(e){return e!=null}function ze(e){return e.bar}function Je(e){return e!=null}function Ke(e){return e.bar}function Qe(e){return e!=null}function Ze(e){return e.bar}function _e(e){return`${e.id}`}function ti(e,t){return{...e,id:`${t}`}}function ei(e){const t=n.compilerRuntimeExports.c(90),{data:d,graphTitle:F,sources:Y,graphDescription:f,height:p,width:x,footNote:A,padding:Qt,lineColor:te,barColor:Ht,sameAxes:Gt,backgroundColor:Ct,leftMargin:Mt,rightMargin:rt,topMargin:Xt,bottomMargin:kt,lineAxisTitle:Wt,barAxisTitle:N,tooltip:ft,relativeHeight:k,onSeriesMouseOver:ht,graphID:gt,graphDownload:Lt,dataDownload:St,barPadding:Nt,truncateBy:Ot,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:H,minHeight:O,theme:at,ariaLabel:L,resetSelectionOnDoubleClick:Zt,detailsOnClick:yt,showValues:$,noOfTicks:Bt,lineSuffix:$t,barSuffix:ct,linePrefix:q,barPrefix:bt,curveType:qt,styles:u,classNames:a,animate:ut,precision:Ut,customLayers:vt,naLabel:Vt,showColorScale:c,showAxisLabels:g}=e,l=te===void 0?le.Colors.light.categoricalColors.colors[1]:te,j=Ht===void 0?le.Colors.light.categoricalColors.colors[0]:Ht,G=Gt===void 0?!1:Gt,X=Ct===void 0?!1:Ct,S=Mt===void 0?80:Mt,W=rt===void 0?80:rt,B=Xt===void 0?20:Xt,U=kt===void 0?25:kt,w=Wt===void 0?"Line chart":Wt,E=N===void 0?"Bar graph":N,V=Lt===void 0?!1:Lt,I=St===void 0?!1:St,z=Nt===void 0?.25:Nt,J=Ot===void 0?999:Ot,K=s===void 0?!0:s,Q=r===void 0?"en":r,Z=O===void 0?0:O,v=at===void 0?"light":at,_=Zt===void 0?!0:Zt,tt=$===void 0?!0:$,et=Bt===void 0?5:Bt,it=$t===void 0?"":$t,At=ct===void 0?"":ct,m=q===void 0?"":q,y=bt===void 0?"":bt,It=qt===void 0?"curve":qt,jt=ut===void 0?!1:ut,wt=Ut===void 0?2:Ut;let xt;t[0]!==vt?(xt=vt===void 0?[]:vt,t[0]=vt,t[1]=xt):xt=t[1];const zt=xt,Et=Vt===void 0?"NA":Vt,h=c===void 0?!0:c,b=g===void 0?!0:g,[Tt,re]=lt.useState(0),[Jt,_t]=lt.useState(0),nt=lt.useRef(null),mt=lt.useRef(null);let T,pt;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Kt=new ResizeObserver(Dt=>{re(Dt[0].target.clientWidth||620),_t(Dt[0].target.clientHeight||480)});return nt.current&&Kt.observe(nt.current),()=>Kt.disconnect()},pt=[],t[2]=T,t[3]=pt):(T=t[2],pt=t[3]),lt.useEffect(T,pt);const Rt=a?.graphContainer,Pt=u?.graphContainer;let st;t[4]!==a?.description||t[5]!==a?.title||t[6]!==d||t[7]!==I||t[8]!==f||t[9]!==V||t[10]!==F||t[11]!==u?.description||t[12]!==u?.title||t[13]!==x?(st=F||f||V||I?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:a?.title,description:a?.description},graphTitle:F,graphDescription:f,width:x,graphDownload:V?mt:void 0,dataDownload:I?d.map(li).filter(oi).length>0?d.map(si).filter(ni):d.filter(ii):null}):null,t[4]=a?.description,t[5]=a?.title,t[6]=d,t[7]=I,t[8]=f,t[9]=V,t[10]=F,t[11]=u?.description,t[12]=u?.title,t[13]=x,t[14]=st):st=t[14];let ot;t[15]!==E||t[16]!==j||t[17]!==a?.colorLegend||t[18]!==H||t[19]!==d.length||t[20]!==w||t[21]!==l||t[22]!==h||t[23]!==v?(ot=!h&&d.length>0?null:n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[E,w],colors:[j||le.Colors[v].categoricalColors.colors[0],l||le.Colors[v].categoricalColors.colors[1]],colorLegendTitle:H,showNAColor:!1,className:a?.colorLegend}),t[15]=E,t[16]=j,t[17]=a?.colorLegend,t[18]=H,t[19]=d.length,t[20]=w,t[21]=l,t[22]=h,t[23]=v,t[24]=ot):ot=t[24];let R;t[25]!==d.length?(R=d.length===0&&n.jsxRuntimeExports.jsx(Re.EmptyState,{}),t[25]=d.length,t[26]=R):R=t[26];let C;t[27]!==jt||t[28]!==E||t[29]!==j||t[30]!==z||t[31]!==y||t[32]!==At||t[33]!==U||t[34]!==a||t[35]!==It||t[36]!==zt||t[37]!==d||t[38]!==yt||t[39]!==S||t[40]!==w||t[41]!==l||t[42]!==m||t[43]!==it||t[44]!==Et||t[45]!==et||t[46]!==o||t[47]!==ht||t[48]!==wt||t[49]!==_||t[50]!==W||t[51]!==G||t[52]!==b||t[53]!==K||t[54]!==tt||t[55]!==u||t[56]!==Jt||t[57]!==Tt||t[58]!==ft||t[59]!==B||t[60]!==J?(C=Tt&&Jt&&d.length>0?n.jsxRuntimeExports.jsx(Ce,{data:d,sameAxes:G,lineColor:l,barColor:j,width:Tt,height:Jt,truncateBy:J,leftMargin:S,rightMargin:W,topMargin:B,bottomMargin:U,axisTitles:[E,w],tooltip:ft,onSeriesMouseOver:ht,barPadding:z,showLabels:K,onSeriesMouseClick:o,resetSelectionOnDoubleClick:_,detailsOnClick:yt,noOfTicks:et,lineSuffix:it,barSuffix:At,linePrefix:m,barPrefix:y,curveType:It,showValues:tt,styles:u,classNames:a,animate:jt===!0?{duration:.5,once:!0,amount:.5}:jt||{duration:0,once:!0,amount:0},precision:wt,customLayers:zt,naLabel:Et,showAxisLabels:b}):null,t[27]=jt,t[28]=E,t[29]=j,t[30]=z,t[31]=y,t[32]=At,t[33]=U,t[34]=a,t[35]=It,t[36]=zt,t[37]=d,t[38]=yt,t[39]=S,t[40]=w,t[41]=l,t[42]=m,t[43]=it,t[44]=Et,t[45]=et,t[46]=o,t[47]=ht,t[48]=wt,t[49]=_,t[50]=W,t[51]=G,t[52]=b,t[53]=K,t[54]=tt,t[55]=u,t[56]=Jt,t[57]=Tt,t[58]=ft,t[59]=B,t[60]=J,t[61]=C):C=t[61];let M;t[62]!==R||t[63]!==C?(M=n.jsxRuntimeExports.jsxs(fe.GraphArea,{ref:nt,children:[R,C]}),t[62]=R,t[63]=C,t[64]=M):M=t[64];let P;t[65]!==a?.footnote||t[66]!==a?.source||t[67]!==A||t[68]!==Y||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==x?(P=Y||A?n.jsxRuntimeExports.jsx(je.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:Y,footNote:A,width:x}):null,t[65]=a?.footnote,t[66]=a?.source,t[67]=A,t[68]=Y,t[69]=u?.footnote,t[70]=u?.source,t[71]=x,t[72]=P):P=t[72];let dt;return t[73]!==L||t[74]!==X||t[75]!==gt||t[76]!==p||t[77]!==Q||t[78]!==Z||t[79]!==Qt||t[80]!==k||t[81]!==Rt||t[82]!==Pt||t[83]!==st||t[84]!==ot||t[85]!==M||t[86]!==P||t[87]!==v||t[88]!==x?(dt=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:Rt,style:Pt,id:gt,ref:mt,"aria-label":L,backgroundColor:X,theme:v,language:Q,minHeight:Z,width:x,height:p,relativeHeight:k,padding:Qt,children:[st,ot,M,P]}),t[73]=L,t[74]=X,t[75]=gt,t[76]=p,t[77]=Q,t[78]=Z,t[79]=Qt,t[80]=k,t[81]=Rt,t[82]=Pt,t[83]=st,t[84]=ot,t[85]=M,t[86]=P,t[87]=v,t[88]=x,t[89]=dt):dt=t[89],dt}function ii(e){return e!==void 0}function ni(e){return e!==void 0}function si(e){return e.data}function oi(e){return e!==void 0}function li(e){return e.data}exports.ParetoChart=ei;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),lt=require("react"),xe=require("./index-DQA8q5sC.cjs"),se=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-Jt_tmhxS.cjs"),me=require("./AxisTitle-DV4n0RxE.cjs"),ge=require("./XAxesLabels-C6o9jJal.cjs"),ye=require("./DetailsModal-DHttOA80.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-CgUCbw9F.cjs"),de=require("./line-DaEMhXmx.cjs"),oe=require("./step-BZ3C8QFW.cjs"),Yt=require("./proxy-C4-uo6nS.cjs"),ve=require("./use-in-view-C3o_ntMv.cjs"),Ae=require("./index-CoobIWNj.cjs"),je=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),le=require("./Colors.cjs"),Re=require("./EmptyState-CGeBqbmR.cjs"),fe=require("./GraphContainer-B1EDxJ0S.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:d,width:F,height:Y,barColor:f,lineColor:p,axisTitles:x,sameAxes:A,rightMargin:Qt,leftMargin:te,topMargin:Ht,bottomMargin:Gt,tooltip:Ct,showValues:Mt,onSeriesMouseOver:rt,barPadding:Xt,truncateBy:kt,showLabels:Wt,onSeriesMouseClick:N,resetSelectionOnDoubleClick:ft,detailsOnClick:k,noOfTicks:ht,lineSuffix:gt,barSuffix:Lt,linePrefix:St,barPrefix:Nt,curveType:Ot,styles:s,classNames:o,animate:r,precision:H,customLayers:O,naLabel:at,showAxisLabels:L}=e,Zt=lt.useRef(null);let yt;t[0]!==r.amount||t[1]!==r.once?(yt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=yt):yt=t[2];const $=ve.useInView(Zt,yt),Bt=Ot==="linear"?de.curveLinear:Ot==="step"?oe.curveStep:Ot==="stepAfter"?oe.stepAfter:Ot==="stepBefore"?oe.stepBefore:oe.monotoneX,[$t,ct]=lt.useState(void 0),[q,bt]=lt.useState(void 0),[qt,u]=lt.useState(void 0),[a,ut]=lt.useState(void 0),Ut=te+50,vt=Qt+65;let Vt;t[3]!==Gt||t[4]!==Ut||t[5]!==vt||t[6]!==Ht?(Vt={top:Ht,bottom:Gt,left:Ut,right:vt},t[3]=Gt,t[4]=Ut,t[5]=vt,t[6]=Ht,t[7]=Vt):Vt=t[7];const c=Vt,g=F-c.left-c.right,l=Y-c.top-c.bottom;let j,G,X,S,W,B,U,w,E,V,I,z,J,K,Q;if(t[8]!==r||t[9]!==x||t[10]!==f||t[11]!==Xt||t[12]!==Nt||t[13]!==Lt||t[14]!==o?.graphObjectValues||t[15]!==o?.xAxis?.axis||t[16]!==o?.xAxis?.labels||t[17]!==o?.yAxis?.gridLines||t[18]!==o?.yAxis?.labels||t[19]!==o?.yAxis?.title||t[20]!==Bt||t[21]!==O||t[22]!==d||t[23]!==k||t[24]!==l||t[25]!==g||t[26]!==Y||t[27]!==$||t[28]!==p||t[29]!==St||t[30]!==gt||t[31]!==c.bottom||t[32]!==c.left||t[33]!==c.right||t[34]!==c.top||t[35]!==q||t[36]!==at||t[37]!==ht||t[38]!==N||t[39]!==rt||t[40]!==H||t[41]!==ft||t[42]!==A||t[43]!==L||t[44]!==Wt||t[45]!==Mt||t[46]!==s?.graphObjectValues||t[47]!==s?.xAxis?.axis||t[48]!==s?.xAxis?.labels||t[49]!==s?.yAxis?.gridLines||t[50]!==s?.yAxis?.labels||t[51]!==s?.yAxis?.title||t[52]!==kt||t[53]!==F){const m=d.map(ti),y=be.band().domain(m.map(_e)).range([0,g]).paddingInner(Xt),It=Math.min(...m.map(Ze).filter(Qe))!==1/0?Math.min(...m.map(Ke).filter(Je))>0?0:Math.min(...m.map(ze).filter(Ue)):0,jt=Math.min(...m.map(Be).filter(We))!==1/0?Math.min(...m.map(Xe).filter(Ge))>0?0:Math.min(...m.map(He).filter(Ye)):0,wt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,xt=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,zt=It<jt?It:jt,Et=wt>xt?wt:xt,h=pe.linear().domain([A?zt:It,A?Et>0?Et:0:wt>0?wt:0]).range([l,0]).nice(),b=pe.linear().domain([A?zt:jt,A?Et>0?Et:0:xt>0?xt:0]).range([l,0]).nice(),Tt=de.line().defined(Oe).x(i=>y(`${i.id}`)+y.bandwidth()/2).y(i=>b(i.line)).curve(Bt),re=h.ticks(ht),Jt=b.ticks(ht);G=Yt.motion.svg,W=`${F}px`,B=`${Y}px`,U=`0 0 ${F} ${Y}`,w="ltr",E=Zt,J=`translate(${c.left},${c.top})`;const _t=o?.xAxis?.axis;let nt;t[69]!==_t?(nt={axis:_t},t[69]=_t,t[70]=nt):nt=t[70];let mt;t[71]!==s?.xAxis?.axis?(mt=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=mt):mt=t[72];let T;t[73]!==f||t[74]!==mt?(T={axis:{stroke:f,...mt}},t[73]=f,t[74]=mt,t[75]=T):T=t[75];let pt;t[76]!==l||t[77]!==nt||t[78]!==T?(pt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:-15,x2:-15,classNames:nt,styles:T}),t[76]=l,t[77]=nt,t[78]=T,t[79]=pt):pt=t[79];let Rt;t[80]!==x||t[81]!==f||t[82]!==o?.yAxis?.title||t[83]!==l||t[84]!==c.left||t[85]!==L||t[86]!==s?.yAxis?.title?(Rt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-c.left,y:l/2,style:{fill:f,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[0].length>100?`${x[0].substring(0,100)}...`:x[0],rotate90:!0}):null,t[80]=x,t[81]=f,t[82]=o?.yAxis?.title,t[83]=l,t[84]=c.left,t[85]=L,t[86]=s?.yAxis?.title,t[87]=Rt):Rt=t[87],K=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:h(i),y2:h(i),x1:-15,x2:-20,style:{stroke:f,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:h(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:f,...s?.yAxis?.labels||{}},children:se.numberFormattingFunction(i,at,H,Nt,Lt)})]},Ft)),pt,Rt]});const Pt=g+15,st=g+15,ot=o?.xAxis?.axis;let R;t[88]!==ot?(R={axis:ot},t[88]=ot,t[89]=R):R=t[89];let C;t[90]!==s?.xAxis?.axis?(C=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=C):C=t[91];let M;t[92]!==p||t[93]!==C?(M={axis:{stroke:p,...C}},t[92]=p,t[93]=C,t[94]=M):M=t[94];let P;t[95]!==l||t[96]!==Pt||t[97]!==st||t[98]!==R||t[99]!==M?(P=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:Pt,x2:st,classNames:R,styles:M}),t[95]=l,t[96]=Pt,t[97]=st,t[98]=R,t[99]=M,t[100]=P):P=t[100];let dt;t[101]!==x||t[102]!==o?.yAxis?.title||t[103]!==l||t[104]!==g||t[105]!==p||t[106]!==c.right||t[107]!==L||t[108]!==s?.yAxis?.title?(dt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:g+c.right-15,y:l/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[1].length>100?`${x[1].substring(0,100)}...`:x[1],rotate90:!0}):null,t[101]=x,t[102]=o?.yAxis?.title,t[103]=l,t[104]=g,t[105]=p,t[106]=c.right,t[107]=L,t[108]=s?.yAxis?.title,t[109]=dt):dt=t[109],Q=n.jsxRuntimeExports.jsxs("g",{children:[Jt.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:b(i),y2:b(i),x1:g+15,x2:g+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:g+25,y:b(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:se.numberFormattingFunction(i,at,H,St,gt)})]},Ft)),P,dt]});const Kt=o?.xAxis?.axis;let Dt;t[110]!==Kt?(Dt={axis:Kt},t[110]=Kt,t[111]=Dt):Dt=t[111];const ae=s?.xAxis?.axis;let ee;t[112]!==ae?(ee={axis:ae},t[112]=ae,t[113]=ee):ee=t[113],X=n.jsxRuntimeExports.jsx(ce.Axis,{y1:A?h(0):l,y2:A?h(0):l,x1:-15,x2:g+15,classNames:Dt,styles:ee}),t[114]!==O?(S=O.filter(Ne).map(Se),t[114]=O,t[115]=S):S=t[115],j=Ae.AnimatePresence,V=m.map((i,Ft)=>n.jsxRuntimeExports.jsxs(Yt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.rect,{variants:{initial:{attrY:h(0),height:0,opacity:1,fill:f},whileInView:{attrY:i.bar?i.bar>0?h(i.bar):h(0):0,height:i.bar?Math.abs(h(i.bar)-h(0)):0,opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{attrY:h(0),height:0,opacity:0,transition:{duration:r.duration}},x:y(`${Ft}`),width:y.bandwidth()}),Mt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{attrY:h(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:h(0),opacity:0,fill:f},whileInView:{attrY:h(i.bar||0),opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:{textAnchor:"middle",...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:i.bar?i.bar>=0?"-5px":"1em":"-5px",children:se.numberFormattingFunction(i.bar,at,H,Nt,Lt)}):null,Wt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<kt?`${i.label}`:`${`${i.label}`.substring(0,kt)}...`,y:l+5,x:y(`${i.id}`),width:y.bandwidth(),height:c.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:$}):null]},i.label));let ie;t[116]!==r.duration?(ie={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ie):ie=t[117];let ne;t[118]===Symbol.for("react.memo_cache_sentinel")?(ne={fill:"none",strokeWidth:2},t[118]=ne):ne=t[118],I=n.jsxRuntimeExports.jsx(Yt.motion.path,{exit:ie,variants:{initial:{d:Tt(m.map(Le)),opacity:0,stroke:p},whileInView:{d:Tt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:ne}),z=m.map((i,Ft)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.circle,{exit:{cy:b(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:b(0),opacity:0,fill:p},whileInView:{cy:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",cx:y(i.id)+y.bandwidth()/2,r:g/m.length<5?0:g/m.length<20?2:4}),Mt?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{y:b(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:b(0),opacity:0,fill:p},whileInView:{y:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:se.numberFormattingFunction(i.line,at,H,St,gt)}):null]})},Ft)),t[8]=r,t[9]=x,t[10]=f,t[11]=Xt,t[12]=Nt,t[13]=Lt,t[14]=o?.graphObjectValues,t[15]=o?.xAxis?.axis,t[16]=o?.xAxis?.labels,t[17]=o?.yAxis?.gridLines,t[18]=o?.yAxis?.labels,t[19]=o?.yAxis?.title,t[20]=Bt,t[21]=O,t[22]=d,t[23]=k,t[24]=l,t[25]=g,t[26]=Y,t[27]=$,t[28]=p,t[29]=St,t[30]=gt,t[31]=c.bottom,t[32]=c.left,t[33]=c.right,t[34]=c.top,t[35]=q,t[36]=at,t[37]=ht,t[38]=N,t[39]=rt,t[40]=H,t[41]=ft,t[42]=A,t[43]=L,t[44]=Wt,t[45]=Mt,t[46]=s?.graphObjectValues,t[47]=s?.xAxis?.axis,t[48]=s?.xAxis?.labels,t[49]=s?.yAxis?.gridLines,t[50]=s?.yAxis?.labels,t[51]=s?.yAxis?.title,t[52]=kt,t[53]=F,t[54]=j,t[55]=G,t[56]=X,t[57]=S,t[58]=W,t[59]=B,t[60]=U,t[61]=w,t[62]=E,t[63]=V,t[64]=I,t[65]=z,t[66]=J,t[67]=K,t[68]=Q}else j=t[54],G=t[55],X=t[56],S=t[57],W=t[58],B=t[59],U=t[60],w=t[61],E=t[62],V=t[63],I=t[64],z=t[65],J=t[66],K=t[67],Q=t[68];let Z;t[119]!==j||t[120]!==V||t[121]!==I||t[122]!==z?(Z=n.jsxRuntimeExports.jsxs(j,{children:[V,I,z]}),t[119]=j,t[120]=V,t[121]=I,t[122]=z,t[123]=Z):Z=t[123];let v;t[124]!==O?(v=O.filter(ke).map(Me),t[124]=O,t[125]=v):v=t[125];let _;t[126]!==X||t[127]!==S||t[128]!==Z||t[129]!==v||t[130]!==J||t[131]!==K||t[132]!==Q?(_=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[K,Q,X,S,Z,v]}),t[126]=X,t[127]=S,t[128]=Z,t[129]=v,t[130]=J,t[131]=K,t[132]=Q,t[133]=_):_=t[133];let tt;t[134]!==G||t[135]!==W||t[136]!==B||t[137]!==U||t[138]!==w||t[139]!==E||t[140]!==_?(tt=n.jsxRuntimeExports.jsx(G,{width:W,height:B,viewBox:U,direction:w,ref:E,children:_}),t[134]=G,t[135]=W,t[136]=B,t[137]=U,t[138]=w,t[139]=E,t[140]=_,t[141]=tt):tt=t[141];let et;t[142]!==o?.tooltip||t[143]!==qt||t[144]!==a||t[145]!==$t||t[146]!==s?.tooltip||t[147]!==Ct?(et=$t&&Ct&&qt&&a?n.jsxRuntimeExports.jsx(he.Tooltip,{data:$t,body:Ct,xPos:qt,yPos:a,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=qt,t[144]=a,t[145]=$t,t[146]=s?.tooltip,t[147]=Ct,t[148]=et):et=t[148];let it;t[149]!==o?.modal||t[150]!==k||t[151]!==q?(it=k&&q!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:k,data:q,setData:bt,className:o?.modal}):null,t[149]=o?.modal,t[150]=k,t[151]=q,t[152]=it):it=t[152];let At;return t[153]!==tt||t[154]!==et||t[155]!==it?(At=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[tt,et,it]}),t[153]=tt,t[154]=et,t[155]=it,t[156]=At):At=t[156],At}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Le(e){return{...e,line:0}}function Se(e){return e.layer}function Ne(e){return e.position==="before"}function Oe(e){return!ue.checkIfNullOrUndefined(e.line)}function $e(e){return e!=null}function qe(e){return e.line}function Ve(e){return e!=null}function Ie(e){return e.line}function Te(e){return e!=null}function Pe(e){return e.bar}function De(e){return e!=null}function Fe(e){return e.bar}function Ye(e){return e!=null}function He(e){return e.line}function Ge(e){return e!=null}function Xe(e){return e.line}function We(e){return e!=null}function Be(e){return e.line}function Ue(e){return e!=null}function ze(e){return e.bar}function Je(e){return e!=null}function Ke(e){return e.bar}function Qe(e){return e!=null}function Ze(e){return e.bar}function _e(e){return`${e.id}`}function ti(e,t){return{...e,id:`${t}`}}function ei(e){const t=n.compilerRuntimeExports.c(90),{data:d,graphTitle:F,sources:Y,graphDescription:f,height:p,width:x,footNote:A,padding:Qt,lineColor:te,barColor:Ht,sameAxes:Gt,backgroundColor:Ct,leftMargin:Mt,rightMargin:rt,topMargin:Xt,bottomMargin:kt,lineAxisTitle:Wt,barAxisTitle:N,tooltip:ft,relativeHeight:k,onSeriesMouseOver:ht,graphID:gt,graphDownload:Lt,dataDownload:St,barPadding:Nt,truncateBy:Ot,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:H,minHeight:O,theme:at,ariaLabel:L,resetSelectionOnDoubleClick:Zt,detailsOnClick:yt,showValues:$,noOfTicks:Bt,lineSuffix:$t,barSuffix:ct,linePrefix:q,barPrefix:bt,curveType:qt,styles:u,classNames:a,animate:ut,precision:Ut,customLayers:vt,naLabel:Vt,showColorScale:c,showAxisLabels:g}=e,l=te===void 0?le.Colors.light.categoricalColors.colors[1]:te,j=Ht===void 0?le.Colors.light.categoricalColors.colors[0]:Ht,G=Gt===void 0?!1:Gt,X=Ct===void 0?!1:Ct,S=Mt===void 0?80:Mt,W=rt===void 0?80:rt,B=Xt===void 0?20:Xt,U=kt===void 0?25:kt,w=Wt===void 0?"Line chart":Wt,E=N===void 0?"Bar graph":N,V=Lt===void 0?!1:Lt,I=St===void 0?!1:St,z=Nt===void 0?.25:Nt,J=Ot===void 0?999:Ot,K=s===void 0?!0:s,Q=r===void 0?"en":r,Z=O===void 0?0:O,v=at===void 0?"light":at,_=Zt===void 0?!0:Zt,tt=$===void 0?!0:$,et=Bt===void 0?5:Bt,it=$t===void 0?"":$t,At=ct===void 0?"":ct,m=q===void 0?"":q,y=bt===void 0?"":bt,It=qt===void 0?"curve":qt,jt=ut===void 0?!1:ut,wt=Ut===void 0?2:Ut;let xt;t[0]!==vt?(xt=vt===void 0?[]:vt,t[0]=vt,t[1]=xt):xt=t[1];const zt=xt,Et=Vt===void 0?"NA":Vt,h=c===void 0?!0:c,b=g===void 0?!0:g,[Tt,re]=lt.useState(0),[Jt,_t]=lt.useState(0),nt=lt.useRef(null),mt=lt.useRef(null);let T,pt;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Kt=new ResizeObserver(Dt=>{re(Dt[0].target.clientWidth||620),_t(Dt[0].target.clientHeight||480)});return nt.current&&Kt.observe(nt.current),()=>Kt.disconnect()},pt=[],t[2]=T,t[3]=pt):(T=t[2],pt=t[3]),lt.useEffect(T,pt);const Rt=a?.graphContainer,Pt=u?.graphContainer;let st;t[4]!==a?.description||t[5]!==a?.title||t[6]!==d||t[7]!==I||t[8]!==f||t[9]!==V||t[10]!==F||t[11]!==u?.description||t[12]!==u?.title||t[13]!==x?(st=F||f||V||I?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:a?.title,description:a?.description},graphTitle:F,graphDescription:f,width:x,graphDownload:V?mt:void 0,dataDownload:I?d.map(li).filter(oi).length>0?d.map(si).filter(ni):d.filter(ii):null}):null,t[4]=a?.description,t[5]=a?.title,t[6]=d,t[7]=I,t[8]=f,t[9]=V,t[10]=F,t[11]=u?.description,t[12]=u?.title,t[13]=x,t[14]=st):st=t[14];let ot;t[15]!==E||t[16]!==j||t[17]!==a?.colorLegend||t[18]!==H||t[19]!==d.length||t[20]!==w||t[21]!==l||t[22]!==h||t[23]!==v?(ot=!h&&d.length>0?null:n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[E,w],colors:[j||le.Colors[v].categoricalColors.colors[0],l||le.Colors[v].categoricalColors.colors[1]],colorLegendTitle:H,showNAColor:!1,className:a?.colorLegend}),t[15]=E,t[16]=j,t[17]=a?.colorLegend,t[18]=H,t[19]=d.length,t[20]=w,t[21]=l,t[22]=h,t[23]=v,t[24]=ot):ot=t[24];let R;t[25]!==d.length?(R=d.length===0&&n.jsxRuntimeExports.jsx(Re.EmptyState,{}),t[25]=d.length,t[26]=R):R=t[26];let C;t[27]!==jt||t[28]!==E||t[29]!==j||t[30]!==z||t[31]!==y||t[32]!==At||t[33]!==U||t[34]!==a||t[35]!==It||t[36]!==zt||t[37]!==d||t[38]!==yt||t[39]!==S||t[40]!==w||t[41]!==l||t[42]!==m||t[43]!==it||t[44]!==Et||t[45]!==et||t[46]!==o||t[47]!==ht||t[48]!==wt||t[49]!==_||t[50]!==W||t[51]!==G||t[52]!==b||t[53]!==K||t[54]!==tt||t[55]!==u||t[56]!==Jt||t[57]!==Tt||t[58]!==ft||t[59]!==B||t[60]!==J?(C=Tt&&Jt&&d.length>0?n.jsxRuntimeExports.jsx(Ce,{data:d,sameAxes:G,lineColor:l,barColor:j,width:Tt,height:Jt,truncateBy:J,leftMargin:S,rightMargin:W,topMargin:B,bottomMargin:U,axisTitles:[E,w],tooltip:ft,onSeriesMouseOver:ht,barPadding:z,showLabels:K,onSeriesMouseClick:o,resetSelectionOnDoubleClick:_,detailsOnClick:yt,noOfTicks:et,lineSuffix:it,barSuffix:At,linePrefix:m,barPrefix:y,curveType:It,showValues:tt,styles:u,classNames:a,animate:jt===!0?{duration:.5,once:!0,amount:.5}:jt||{duration:0,once:!0,amount:0},precision:wt,customLayers:zt,naLabel:Et,showAxisLabels:b}):null,t[27]=jt,t[28]=E,t[29]=j,t[30]=z,t[31]=y,t[32]=At,t[33]=U,t[34]=a,t[35]=It,t[36]=zt,t[37]=d,t[38]=yt,t[39]=S,t[40]=w,t[41]=l,t[42]=m,t[43]=it,t[44]=Et,t[45]=et,t[46]=o,t[47]=ht,t[48]=wt,t[49]=_,t[50]=W,t[51]=G,t[52]=b,t[53]=K,t[54]=tt,t[55]=u,t[56]=Jt,t[57]=Tt,t[58]=ft,t[59]=B,t[60]=J,t[61]=C):C=t[61];let M;t[62]!==R||t[63]!==C?(M=n.jsxRuntimeExports.jsxs(fe.GraphArea,{ref:nt,children:[R,C]}),t[62]=R,t[63]=C,t[64]=M):M=t[64];let P;t[65]!==a?.footnote||t[66]!==a?.source||t[67]!==A||t[68]!==Y||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==x?(P=Y||A?n.jsxRuntimeExports.jsx(je.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:Y,footNote:A,width:x}):null,t[65]=a?.footnote,t[66]=a?.source,t[67]=A,t[68]=Y,t[69]=u?.footnote,t[70]=u?.source,t[71]=x,t[72]=P):P=t[72];let dt;return t[73]!==L||t[74]!==X||t[75]!==gt||t[76]!==p||t[77]!==Q||t[78]!==Z||t[79]!==Qt||t[80]!==k||t[81]!==Rt||t[82]!==Pt||t[83]!==st||t[84]!==ot||t[85]!==M||t[86]!==P||t[87]!==v||t[88]!==x?(dt=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:Rt,style:Pt,id:gt,ref:mt,"aria-label":L,backgroundColor:X,theme:v,language:Q,minHeight:Z,width:x,height:p,relativeHeight:k,padding:Qt,children:[st,ot,M,P]}),t[73]=L,t[74]=X,t[75]=gt,t[76]=p,t[77]=Q,t[78]=Z,t[79]=Qt,t[80]=k,t[81]=Rt,t[82]=Pt,t[83]=st,t[84]=ot,t[85]=M,t[86]=P,t[87]=v,t[88]=x,t[89]=dt):dt=t[89],dt}function ii(e){return e!==void 0}function ni(e){return e!==void 0}function si(e){return e.data}function oi(e){return e!==void 0}function li(e){return e.data}exports.ParetoChart=ei;
|
|
2
2
|
//# sourceMappingURL=ParetoChart.cjs.map
|
package/dist/ParetoChart.js
CHANGED
|
@@ -4,7 +4,7 @@ import { i as xe } from "./index-Bwrro8-q.js";
|
|
|
4
4
|
import { n as se } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
5
|
import { T as ge } from "./Tooltip-BRnAz2Gv.js";
|
|
6
6
|
import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
-
import { A as ce } from "./Axis-
|
|
7
|
+
import { A as ce } from "./Axis-D56Gy0se.js";
|
|
8
8
|
import { A as fe } from "./AxisTitle-VFq89Olw.js";
|
|
9
9
|
import { X as ye } from "./XAxesLabels-rhK7lRjO.js";
|
|
10
10
|
import { D as be } from "./DetailsModal-BMCTgVsk.js";
|
|
@@ -486,6 +486,9 @@ declare interface GraphSettingsDataType {
|
|
|
486
486
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
487
487
|
trackColor?: string;
|
|
488
488
|
zoomAndCenterByHighlightedIds?: boolean;
|
|
489
|
+
hideAxisLine?: boolean;
|
|
490
|
+
projectionRotate?: [number, number] | [number, number, number];
|
|
491
|
+
rewindCoordinatesInMapData?: boolean;
|
|
489
492
|
}
|
|
490
493
|
|
|
491
494
|
declare type GraphType = GraphTypeForGriddedGraph;
|
|
@@ -505,6 +505,9 @@ declare interface GraphSettingsDataType {
|
|
|
505
505
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
506
506
|
trackColor?: string;
|
|
507
507
|
zoomAndCenterByHighlightedIds?: boolean;
|
|
508
|
+
hideAxisLine?: boolean;
|
|
509
|
+
projectionRotate?: [number, number] | [number, number, number];
|
|
510
|
+
rewindCoordinatesInMapData?: boolean;
|
|
508
511
|
}
|
|
509
512
|
|
|
510
513
|
declare type GraphType = GraphTypeForGriddedGraph;
|
|
@@ -407,6 +407,9 @@ declare interface GraphSettingsDataType {
|
|
|
407
407
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
408
408
|
trackColor?: string;
|
|
409
409
|
zoomAndCenterByHighlightedIds?: boolean;
|
|
410
|
+
hideAxisLine?: boolean;
|
|
411
|
+
projectionRotate?: [number, number] | [number, number, number];
|
|
412
|
+
rewindCoordinatesInMapData?: boolean;
|
|
410
413
|
}
|
|
411
414
|
|
|
412
415
|
declare type GraphType = GraphTypeForGriddedGraph;
|
package/dist/ScatterPlot.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),_t=require("./parse-xYI9yrvL.cjs"),L=require("react"),ei=require("./getSliderMarks-CIuSoedo.cjs"),ti=require("./index-DQA8q5sC.cjs"),di=require("./index-Cno4Q0YE.cjs"),ii=require("./simple-statistics-xm8c0LQQ.cjs"),pi=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ie=require("./Colors.cjs"),ni=require("./numberFormattingFunction-02t-wJta.cjs"),Zt=require("./customArea-B1LWQBmM.cjs"),oi=require("./Axis-Dtjn-EgM.cjs"),si=require("./AxisTitle-DV4n0RxE.cjs"),hi=require("./XTicksAndGridLines-CekrPykD.cjs"),li=require("./ReferenceLine-M9aP3dj-.cjs"),gi=require("./RegressionLine-Ci-Dh0w0.cjs"),yi=require("./YTicksAndGridLines-UzVC5eBM.cjs"),vi=require("./index-D69M6klB.cjs"),bi=require("./DetailsModal-DHttOA80.cjs"),Ai=require("./pow-BnyPO-NX.cjs"),ri=require("./linear-CgUCbw9F.cjs"),ji=require("./delaunay-rcy0HhZi.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),Oi=require("./use-in-view-C3o_ntMv.cjs"),ai=require("./index-CoobIWNj.cjs"),Ci=require("./GraphFooter.cjs"),Ri=require("./GraphHeader.cjs"),ki=require("./ColorLegendWithMouseOver.cjs"),wi=require("./EmptyState-CGeBqbmR.cjs"),ci=require("./index-C6er0ety.cjs"),Si=require("./ensureCompleteData-D9bQTiVS.cjs"),ui=require("./uniqBy-O05lp2S5.cjs"),xi=require("./GraphContainer-B1EDxJ0S.cjs");function Ei(i){const e=o.compilerRuntimeExports.c(216),{data:n,width:ne,height:S,showLabels:We,colors:f,colorDomain:R,radius:T,xAxisTitle:g,yAxisTitle:H,leftMargin:P,rightMargin:ut,topMargin:Ct,bottomMargin:Dt,tooltip:xt,onSeriesMouseOver:oe,refXValues:Rt,refYValues:kt,highlightAreaSettings:wt,selectedColor:Ne,highlightedDataPoints:W,maxRadiusValue:ft,maxXValue:mt,minXValue:k,maxYValue:Be,minYValue:j,onSeriesMouseClick:N,rtl:ze,annotations:Je,customHighlightAreaSettings:$e,regressionLine:se,resetSelectionOnDoubleClick:Me,detailsOnClick:$,noOfXTicks:Ke,noOfYTicks:Qe,labelColor:Ve,xSuffix:qe,ySuffix:De,xPrefix:Ie,yPrefix:le,styles:s,classNames:l,animate:a,dimmedOpacity:M,precision:V,customLayers:q}=i,dt=L.useRef(null);let pt;e[0]!==a.amount||e[1]!==a.once?(pt={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=pt):pt=e[2];const b=Oi.useInView(dt,pt),[E,Te]=L.useState(void 0),[X,Ze]=L.useState(void 0),[ht,re]=L.useState(void 0),[h,u]=L.useState(void 0),St=g?Dt+50:Dt,Et=H?P+30:P;let gt;e[3]!==ut||e[4]!==St||e[5]!==Et||e[6]!==Ct?(gt={top:Ct,bottom:St,left:Et,right:ut},e[3]=ut,e[4]=St,e[5]=Et,e[6]=Ct,e[7]=gt):gt=e[7];const p=gt;let B,ae,ce,ue,xe,fe,Y,me,de,pe,z,he,J,ge,K,ye,F,Q;if(e[8]!==a||e[9]!==Je||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==R||e[20]!==f||e[21]!==$e||e[22]!==q||e[23]!==n||e[24]!==$||e[25]!==M||e[26]!==S||e[27]!==wt||e[28]!==W||e[29]!==b||e[30]!==Ve||e[31]!==P||e[32]!==p.bottom||e[33]!==p.left||e[34]!==p.right||e[35]!==p.top||e[36]!==ft||e[37]!==mt||e[38]!==Be||e[39]!==k||e[40]!==j||e[41]!==X||e[42]!==E||e[43]!==Ke||e[44]!==Qe||e[45]!==N||e[46]!==oe||e[47]!==V||e[48]!==T||e[49]!==Rt||e[50]!==kt||e[51]!==se||e[52]!==Me||e[53]!==ze||e[54]!==Ne||e[55]!==We||e[56]!==s?.graphObjectValues||e[57]!==s?.regLine||e[58]!==s?.xAxis?.axis||e[59]!==s?.xAxis?.gridLines||e[60]!==s?.xAxis?.labels||e[61]!==s?.xAxis?.title||e[62]!==s?.yAxis?.gridLines||e[63]!==s?.yAxis?.labels||e[64]!==s?.yAxis?.title||e[65]!==ne||e[66]!==g||e[67]!==Ie||e[68]!==qe||e[69]!==H||e[70]!==le||e[71]!==De){const _=n.map(_i),A=ne-p.left-p.right,y=S-p.top-p.bottom,w=n.filter(Zi).length!==n.length?Ai.sqrt().domain([0,ft]).range([.25,T]).nice():void 0,_e=_.filter(Qi).length===0?_:di.orderBy(_.filter(Ki),"radius","desc"),c=ri.linear().domain([k,mt]).range([0,A]).nice(),d=ri.linear().domain([j,Be]).range([y,0]).nice(),U=c.ticks(Ke),Lt=d.ticks(Qe),It=ji.Delaunay.from(_e.filter(Ji),t=>c(t.x),t=>d(t.y)).voronoi([0,0,A<0?0:A,y<0?0:y]),Tt=ii.linearRegression(n.filter(zi).map(t=>[c(t.x),d(t.y)])),Nt=ii.linearRegressionLine(Tt);ae=Ft.motion.svg,me=`${ne}px`,de=`${S}px`,pe=`0 0 ${ne} ${S}`,z="ltr",he=dt,ce=`translate(${p.left},${p.top})`;let Xe;e[90]!==a||e[91]!==$e||e[92]!==b||e[93]!==c||e[94]!==d?(Xe=o.jsxRuntimeExports.jsx(Zt.CustomArea,{areaSettings:$e,scaleX:c,scaleY:d,animate:a,isInView:b},"custom-area"),e[90]=a,e[91]=$e,e[92]=b,e[93]=c,e[94]=d,e[95]=Xe):Xe=e[95],ue=o.jsxRuntimeExports.jsxs(ai.AnimatePresence,{children:[o.jsxRuntimeExports.jsx(vi.HighlightAreaForScatterPlot,{areaSettings:wt,width:A,height:y,scaleX:c,scaleY:d,animate:a,isInView:b},"highlight-area"),Xe]});const yt=s?.yAxis?.gridLines,vt=s?.yAxis?.labels;let Ye;e[96]!==yt||e[97]!==vt?(Ye={gridLines:yt,labels:vt},e[96]=yt,e[97]=vt,e[98]=Ye):Ye=e[98];const bt=l?.yAxis?.gridLines,et=l?.yAxis?.labels;let r;e[99]!==bt||e[100]!==et?(r={gridLines:bt,labels:et},e[99]=bt,e[100]=et,e[101]=r):r=e[101];const tt=d(j<0?0:j),Pt=d(j<0?0:j),it=A+p.right,Xt=j<0?0:j;let O;e[102]!==V||e[103]!==Xt||e[104]!==le||e[105]!==De?(O=ni.numberFormattingFunction(Xt,"NA",V,le,De),e[102]=V,e[103]=Xt,e[104]=le,e[105]=De,e[106]=O):O=e[106];const Yt=d(j<0?0:j);let G;e[107]!==Yt?(G={x:0,y:Yt,dy:"0.33em",dx:-4},e[107]=Yt,e[108]=G):G=e[108];const x=l?.xAxis?.axis,D=l?.yAxis?.labels;let Ce;e[109]!==x||e[110]!==D?(Ce={axis:x,label:D},e[109]=x,e[110]=D,e[111]=Ce):Ce=e[111];const At=s?.xAxis?.axis;let nt;e[112]!==s?.yAxis?.labels?(nt=s?.yAxis?.labels||{},e[112]=s?.yAxis?.labels,e[113]=nt):nt=e[113];let Re;e[114]!==nt?(Re={textAnchor:"end",...nt},e[114]=nt,e[115]=Re):Re=e[115];let Fe;e[116]!==At||e[117]!==Re?(Fe={axis:At,label:Re},e[116]=At,e[117]=Re,e[118]=Fe):Fe=e[118];let Ue;e[119]!==tt||e[120]!==Pt||e[121]!==it||e[122]!==O||e[123]!==G||e[124]!==Ce||e[125]!==Fe?(Ue=o.jsxRuntimeExports.jsx(oi.Axis,{y1:tt,y2:Pt,x1:0,x2:it,label:O,labelPos:G,classNames:Ce,styles:Fe}),e[119]=tt,e[120]=Pt,e[121]=it,e[122]=O,e[123]=G,e[124]=Ce,e[125]=Fe,e[126]=Ue):Ue=e[126];const ot=0-P-15,st=y/2,lt=s?.yAxis?.title,jt=l?.yAxis?.title;let Ge;e[127]!==ot||e[128]!==st||e[129]!==lt||e[130]!==jt||e[131]!==H?(Ge=o.jsxRuntimeExports.jsx(si.AxisTitle,{x:ot,y:st,style:lt,className:jt,text:H,rotate90:!0}),e[127]=ot,e[128]=st,e[129]=lt,e[130]=jt,e[131]=H,e[132]=Ge):Ge=e[132],xe=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Lt.filter(Bi),y:Lt.filter(Wi).map(t=>d(t)),x1:0,x2:A+p.right,styles:Ye,classNames:r,suffix:De,prefix:le,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:V}),Ue,Ge]});const rt=s?.xAxis?.gridLines,Ot=s?.xAxis?.labels;let at;e[133]!==rt||e[134]!==Ot?(at={gridLines:rt,labels:Ot},e[133]=rt,e[134]=Ot,e[135]=at):at=e[135];const ke=l?.xAxis?.gridLines,we=l?.xAxis?.labels;let ee;e[136]!==ke||e[137]!==we?(ee={gridLines:ke,labels:we},e[136]=ke,e[137]=we,e[138]=ee):ee=e[138];const Se=c(k<0?0:k),Ee=c(k<0?0:k),Le=k<0?0:k;let I;e[139]!==V||e[140]!==Le||e[141]!==Ie||e[142]!==qe?(I=ni.numberFormattingFunction(Le,"NA",V,Ie,qe),e[139]=V,e[140]=Le,e[141]=Ie,e[142]=qe,e[143]=I):I=e[143];const ct=c(k<0?0:k);let m;e[144]!==y||e[145]!==ct?(m={x:ct,y,dy:"1em",dx:0},e[144]=y,e[145]=ct,e[146]=m):m=e[146];const te=l?.xAxis?.axis,Ht=l?.yAxis?.labels;let $t;e[147]!==te||e[148]!==Ht?($t={axis:te,label:Ht},e[147]=te,e[148]=Ht,e[149]=$t):$t=e[149];const Wt=s?.xAxis?.axis;let Mt;e[150]!==s?.yAxis?.labels?(Mt=s?.yAxis?.labels||{},e[150]=s?.yAxis?.labels,e[151]=Mt):Mt=e[151];let Vt;e[152]!==Mt?(Vt={textAnchor:"middle",...Mt},e[152]=Mt,e[153]=Vt):Vt=e[153];let qt;e[154]!==Wt||e[155]!==Vt?(qt={axis:Wt,label:Vt},e[154]=Wt,e[155]=Vt,e[156]=qt):qt=e[156];let Ut;e[157]!==y||e[158]!==Se||e[159]!==Ee||e[160]!==I||e[161]!==m||e[162]!==$t||e[163]!==qt?(Ut=o.jsxRuntimeExports.jsx(oi.Axis,{x1:Se,x2:Ee,y1:0,y2:y,label:I,labelPos:m,classNames:$t,styles:qt}),e[157]=y,e[158]=Se,e[159]=Ee,e[160]=I,e[161]=m,e[162]=$t,e[163]=qt,e[164]=Ut):Ut=e[164];const Bt=A/2,zt=y+30,Jt=s?.xAxis?.title,Kt=l?.xAxis?.title;let Gt;e[165]!==Bt||e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==g?(Gt=o.jsxRuntimeExports.jsx(si.AxisTitle,{x:Bt,y:zt,style:Jt,className:Kt,text:g}),e[165]=Bt,e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=g,e[170]=Gt):Gt=e[170],fe=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(hi.XTicksAndGridLines,{values:U.filter(Hi),x:U.filter(Gi).map(t=>c(t)),y1:0,y2:y,styles:at,classNames:ee,suffix:qe,prefix:Ie,labelType:"primary",showGridLines:!0,precision:V}),Ut,Gt]}),e[171]!==q?(Y=q.filter(Ui).map(Fi),e[171]=q,e[172]=Y):Y=e[172],B=ai.AnimatePresence,J=_e.filter(Yi).map((t,He)=>o.jsxRuntimeExports.jsx("path",{d:It.renderCell(_e.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{Te(t),u(C.clientY),re(C.clientX),oe?.(t)},onMouseMove:C=>{Te(t),u(C.clientY),re(C.clientX)},onMouseLeave:()=>{Te(void 0),re(void 0),u(void 0),oe?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(X,t)&&Me?(Ze(void 0),N?.(void 0)):(Ze(t),N?.(t)))}},`tesselation_${t.label||He}`)),ge=_e.filter(Xi).map((t,He)=>o.jsxRuntimeExports.jsxs(Ft.motion.g,{variants:{initial:{x:c(t.x),y:d(t.y),opacity:Ne?t.color&&f[R.indexOf(`${t.color}`)]===Ne?1:M:E?E.id===t.id?1:M:W.length!==0?W.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:c(t.x),y:d(t.y),opacity:Ne?t.color&&f[R.indexOf(`${t.color}`)]===Ne?1:M:E?E.id===t.id?1:M:W.length!==0?W.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{Te(t),u(C.clientY),re(C.clientX),oe?.(t)},onMouseMove:C=>{Te(t),u(C.clientY),re(C.clientX)},onMouseLeave:()=>{Te(void 0),re(void 0),u(void 0),oe?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(X,t)&&Me?(Ze(void 0),N?.(void 0)):(Ze(t),N?.(t)))},children:[o.jsxRuntimeExports.jsx(Ft.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:n.filter(Pi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,stroke:n.filter(Ti).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray},whileInView:{r:w?w(t.radius||0):T,fill:n.filter(Ii).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,stroke:n.filter(Di).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),We&&!v.checkIfNullOrUndefined(t.label)?o.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:w?w(t.radius||0):T,opacity:0,fill:Ve||(n.filter(qi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray)},whileInView:{x:w?w(t.radius||0):T,opacity:1,fill:Ve||(n.filter(Vi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):W.length!==0&&!v.checkIfNullOrUndefined(t.label)&&W.indexOf(t.label)!==-1?o.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:w?w(t.radius||0):T,opacity:0,fill:Ve||(n.filter(Mi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray)},whileInView:{x:w?w(t.radius||0):T,opacity:1,fill:Ve||(n.filter($i).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||He}`)),K=Rt.map((t,He)=>o.jsxRuntimeExports.jsx(li.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:y,textSide:c(t.value)>A*.75||ze?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)),ye=kt.map((t,He)=>o.jsxRuntimeExports.jsx(li.RefLineY,{text:t.text,color:t.color,y:d(t.value),x1:0,x2:A,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He));const Qt=Je.map((t,He)=>{const C=Zt.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?d(t.yCoordinate):0},v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),fi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?d(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,mi={y:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:ze?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:ze?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):A+p.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return o.jsxRuntimeExports.jsx(Zt.Annotation,{color:t.color,connectorsSettings:fi,labelSettings:mi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)});e[173]!==Qt?(F=o.jsxRuntimeExports.jsx("g",{children:Qt}),e[173]=Qt,e[174]=F):F=e[174],Q=se?o.jsxRuntimeExports.jsx(gi.RegressionLine,{x1:0,x2:A,y1:Nt(0),y2:Nt(A),graphHeight:y,graphWidth:A,className:l?.regLine,style:s?.regLine,color:typeof se=="string"?se:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=Je,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=R,e[20]=f,e[21]=$e,e[22]=q,e[23]=n,e[24]=$,e[25]=M,e[26]=S,e[27]=wt,e[28]=W,e[29]=b,e[30]=Ve,e[31]=P,e[32]=p.bottom,e[33]=p.left,e[34]=p.right,e[35]=p.top,e[36]=ft,e[37]=mt,e[38]=Be,e[39]=k,e[40]=j,e[41]=X,e[42]=E,e[43]=Ke,e[44]=Qe,e[45]=N,e[46]=oe,e[47]=V,e[48]=T,e[49]=Rt,e[50]=kt,e[51]=se,e[52]=Me,e[53]=ze,e[54]=Ne,e[55]=We,e[56]=s?.graphObjectValues,e[57]=s?.regLine,e[58]=s?.xAxis?.axis,e[59]=s?.xAxis?.gridLines,e[60]=s?.xAxis?.labels,e[61]=s?.xAxis?.title,e[62]=s?.yAxis?.gridLines,e[63]=s?.yAxis?.labels,e[64]=s?.yAxis?.title,e[65]=ne,e[66]=g,e[67]=Ie,e[68]=qe,e[69]=H,e[70]=le,e[71]=De,e[72]=B,e[73]=ae,e[74]=ce,e[75]=ue,e[76]=xe,e[77]=fe,e[78]=Y,e[79]=me,e[80]=de,e[81]=pe,e[82]=z,e[83]=he,e[84]=J,e[85]=ge,e[86]=K,e[87]=ye,e[88]=F,e[89]=Q}else B=e[72],ae=e[73],ce=e[74],ue=e[75],xe=e[76],fe=e[77],Y=e[78],me=e[79],de=e[80],pe=e[81],z=e[82],he=e[83],J=e[84],ge=e[85],K=e[86],ye=e[87],F=e[88],Q=e[89];let ve;e[175]!==B||e[176]!==J||e[177]!==ge||e[178]!==K||e[179]!==ye||e[180]!==F||e[181]!==Q?(ve=o.jsxRuntimeExports.jsxs(B,{children:[J,ge,K,ye,F,Q]}),e[175]=B,e[176]=J,e[177]=ge,e[178]=K,e[179]=ye,e[180]=F,e[181]=Q,e[182]=ve):ve=e[182];let be;e[183]!==q?(be=q.filter(Ni).map(Li),e[183]=q,e[184]=be):be=e[184];let Ae;e[185]!==ce||e[186]!==ue||e[187]!==xe||e[188]!==fe||e[189]!==Y||e[190]!==ve||e[191]!==be?(Ae=o.jsxRuntimeExports.jsxs("g",{transform:ce,children:[ue,xe,fe,Y,ve,be]}),e[185]=ce,e[186]=ue,e[187]=xe,e[188]=fe,e[189]=Y,e[190]=ve,e[191]=be,e[192]=Ae):Ae=e[192];let je;e[193]!==ae||e[194]!==me||e[195]!==de||e[196]!==pe||e[197]!==z||e[198]!==he||e[199]!==Ae?(je=o.jsxRuntimeExports.jsx(ae,{width:me,height:de,viewBox:pe,direction:z,ref:he,children:Ae}),e[193]=ae,e[194]=me,e[195]=de,e[196]=pe,e[197]=z,e[198]=he,e[199]=Ae,e[200]=je):je=e[200];let Oe;e[201]!==l?.tooltip||e[202]!==ht||e[203]!==h||e[204]!==E||e[205]!==s?.tooltip||e[206]!==xt?(Oe=E&&xt&&ht&&h?o.jsxRuntimeExports.jsx(pi.Tooltip,{data:E,body:xt,xPos:ht,yPos:h,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[201]=l?.tooltip,e[202]=ht,e[203]=h,e[204]=E,e[205]=s?.tooltip,e[206]=xt,e[207]=Oe):Oe=e[207];let Z;e[208]!==l?.modal||e[209]!==$||e[210]!==X?(Z=$&&X!==void 0?o.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:X,setData:Ze,className:l?.modal}):null,e[208]=l?.modal,e[209]=$,e[210]=X,e[211]=Z):Z=e[211];let Pe;return e[212]!==je||e[213]!==Oe||e[214]!==Z?(Pe=o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[je,Oe,Z]}),e[212]=je,e[213]=Oe,e[214]=Z,e[215]=Pe):Pe=e[215],Pe}function Li(i){return i.layer}function Ni(i){return i.position==="after"}function $i(i){return i.color}function Mi(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}function Di(i){return i.color}function Ii(i){return i.color}function Ti(i){return i.color}function Pi(i){return i.color}function Xi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Yi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Fi(i){return i.layer}function Ui(i){return i.position==="before"}function Gi(i){return i!==0}function Hi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ji(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ki(i){return!v.checkIfNullOrUndefined(i.radius)}function Qi(i){return!v.checkIfNullOrUndefined(i.radius)}function Zi(i){return i.radius===void 0||i.radius===null}function _i(i,e){return{...i,id:`${e}`}}function en(i){const e=o.compilerRuntimeExports.c(142),{data:n,graphTitle:ne,colors:S,sources:We,graphDescription:f,showLabels:R,height:T,width:g,footNote:H,colorDomain:P,colorLegendTitle:ut,radius:Ct,xAxisTitle:Dt,yAxisTitle:xt,padding:oe,backgroundColor:Rt,leftMargin:kt,rightMargin:wt,topMargin:Ne,bottomMargin:W,tooltip:ft,relativeHeight:mt,onSeriesMouseOver:k,refXValues:Be,refYValues:j,highlightAreaSettings:N,showColorScale:ze,highlightedDataPoints:Je,graphID:$e,maxRadiusValue:se,maxXValue:Me,minXValue:$,maxYValue:Ke,minYValue:Qe,xSuffix:Ve,ySuffix:qe,xPrefix:De,yPrefix:Ie,onSeriesMouseClick:le,graphDownload:s,dataDownload:l,language:a,showNAColor:M,minHeight:V,annotations:q,customHighlightAreaSettings:dt,theme:pt,regressionLine:b,ariaLabel:E,resetSelectionOnDoubleClick:Te,detailsOnClick:X,noOfXTicks:Ze,noOfYTicks:ht,labelColor:re,styles:h,classNames:u,animate:St,dimmedOpacity:Et,precision:gt,customLayers:p,timeline:B}=i,ae=R===void 0?!1:R,ce=Ct===void 0?5:Ct,ue=Dt===void 0?"X Axis":Dt,xe=xt===void 0?"Y Axis":xt,fe=Rt===void 0?!1:Rt,Y=kt===void 0?0:kt,me=wt===void 0?10:wt,de=Ne===void 0?20:Ne,pe=W===void 0?50:W;let z;e[0]!==Be?(z=Be===void 0?[]:Be,e[0]=Be,e[1]=z):z=e[1];const he=z;let J;e[2]!==j?(J=j===void 0?[]:j,e[2]=j,e[3]=J):J=e[3];const ge=J;let K;e[4]!==N?(K=N===void 0?[]:N,e[4]=N,e[5]=K):K=e[5];const ye=K,F=ze===void 0?!0:ze;let Q;e[6]!==Je?(Q=Je===void 0?[]:Je,e[6]=Je,e[7]=Q):Q=e[7];const ve=Q,be=Ve===void 0?"":Ve,Ae=qe===void 0?"":qe,je=De===void 0?"":De,Oe=Ie===void 0?"":Ie,Z=s===void 0?!1:s,Pe=l===void 0?!1:l,_=a===void 0?"en":a,A=M===void 0?!0:M,y=V===void 0?0:V;let w;e[8]!==q?(w=q===void 0?[]:q,e[8]=q,e[9]=w):w=e[9];const _e=w;let c;e[10]!==dt?(c=dt===void 0?[]:dt,e[10]=dt,e[11]=c):c=e[11];const d=c,U=pt===void 0?"light":pt,Lt=b===void 0?!1:b,It=Te===void 0?!0:Te,Tt=Ze===void 0?5:Ze,Nt=ht===void 0?5:ht,Xe=St===void 0?!1:St,yt=Et===void 0?.3:Et,vt=gt===void 0?2:gt;let Ye;e[12]!==p?(Ye=p===void 0?[]:p,e[12]=p,e[13]=Ye):Ye=e[13];const bt=Ye;let et;e[14]!==B?(et=B===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:B,e[14]=B,e[15]=et):et=e[15];const r=et,[tt,Pt]=L.useState(0),[it,Xt]=L.useState(0),[O,Yt]=L.useState(r.autoplay);let G;if(e[16]!==n||e[17]!==r.dateFormat){let m;e[19]!==r.dateFormat?(m=te=>_t.parse(`${te.date}`,r.dateFormat||"yyyy",new Date).getTime(),e[19]=r.dateFormat,e[20]=m):m=e[20],G=[...new Set(n.filter(Ln).map(m))],G.sort(En),e[16]=n,e[17]=r.dateFormat,e[18]=G}else G=e[18];const x=G,[D,Ce]=L.useState(r.autoplay?0:x.length-1),[At,nt]=L.useState(void 0),Re=L.useRef(null),Fe=L.useRef(null);let Ue,ot;e[21]===Symbol.for("react.memo_cache_sentinel")?(Ue=()=>{const m=new ResizeObserver(te=>{Pt(te[0].target.clientWidth||620),Xt(te[0].target.clientHeight||480)});return Re.current&&m.observe(Re.current),()=>m.disconnect()},ot=[],e[21]=Ue,e[22]=ot):(Ue=e[21],ot=e[22]),L.useEffect(Ue,ot);let st,lt;e[23]!==O||e[24]!==r.speed||e[25]!==x?(st=()=>{const m=setInterval(()=>{Ce(te=>te<x.length-1?te+1:0)},(r.speed||2)*1e3);return O||clearInterval(m),()=>clearInterval(m)},lt=[x,O,r.speed],e[23]=O,e[24]=r.speed,e[25]=x,e[26]=st,e[27]=lt):(st=e[26],lt=e[27]),L.useEffect(st,lt);const jt=r.dateFormat||"yyyy";let Ge;e[28]!==D||e[29]!==jt||e[30]!==r.showOnlyActiveDate||e[31]!==x?(Ge=ei.getSliderMarks(x,D,r.showOnlyActiveDate,jt),e[28]=D,e[29]=jt,e[30]=r.showOnlyActiveDate,e[31]=x,e[32]=Ge):Ge=e[32];const rt=Ge,Ot=u?.graphContainer,at=h?.graphContainer;let ke;e[33]!==u?.description||e[34]!==u?.title||e[35]!==n||e[36]!==Pe||e[37]!==f||e[38]!==Z||e[39]!==ne||e[40]!==h?.description||e[41]!==h?.title||e[42]!==g?(ke=ne||f||Z||Pe?o.jsxRuntimeExports.jsx(Ri.GraphHeader,{styles:{title:h?.title,description:h?.description},classNames:{title:u?.title,description:u?.description},graphTitle:ne,graphDescription:f,width:g,graphDownload:Z?Fe:void 0,dataDownload:Pe?n.map(Sn).filter(wn).length>0?n.map(kn).filter(Rn):n.filter(Cn):null}):null,e[33]=u?.description,e[34]=u?.title,e[35]=n,e[36]=Pe,e[37]=f,e[38]=Z,e[39]=ne,e[40]=h?.description,e[41]=h?.title,e[42]=g,e[43]=ke):ke=e[43];let we;e[44]!==D||e[45]!==rt||e[46]!==O||e[47]!==r.enabled||e[48]!==x?(we=r.enabled&&x.length>0&&rt?o.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[o.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Yt(!O)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":O?"Click to pause animation":"Click to play animation",children:O?o.jsxRuntimeExports.jsx(ci.Pause,{}):o.jsxRuntimeExports.jsx(ci.Play,{})}),o.jsxRuntimeExports.jsx(ei.Nr,{min:x[0],max:x[x.length-1],marks:rt,step:null,defaultValue:x[x.length-1],value:x[D],onChangeComplete:m=>{Ce(x.indexOf(m))},onChange:m=>{Ce(x.indexOf(m))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=D,e[45]=rt,e[46]=O,e[47]=r.enabled,e[48]=x,e[49]=we):we=e[49];let ee;e[50]!==u?.colorLegend||e[51]!==P||e[52]!==ut||e[53]!==S||e[54]!==n||e[55]!==F||e[56]!==A||e[57]!==U||e[58]!==g?(ee=F&&n.filter(On).length!==0&&n.length>0?o.jsxRuntimeExports.jsx(ki.ColorLegendWithMouseOver,{width:g,colorLegendTitle:ut,colors:S||ie.Colors[U].categoricalColors.colors,colorDomain:P||ui.uniqBy(n,"color",!0),setSelectedColor:nt,showNAColor:A,className:u?.colorLegend}):null,e[50]=u?.colorLegend,e[51]=P,e[52]=ut,e[53]=S,e[54]=n,e[55]=F,e[56]=A,e[57]=U,e[58]=g,e[59]=ee):ee=e[59];let Se;e[60]!==n.length?(Se=n.length===0&&o.jsxRuntimeExports.jsx(wi.EmptyState,{}),e[60]=n.length,e[61]=Se):Se=e[61];let Ee;e[62]!==Xe||e[63]!==_e||e[64]!==pe||e[65]!==u||e[66]!==P||e[67]!==S||e[68]!==d||e[69]!==bt||e[70]!==n||e[71]!==X||e[72]!==yt||e[73]!==ye||e[74]!==ve||e[75]!==D||e[76]!==re||e[77]!==_||e[78]!==Y||e[79]!==se||e[80]!==Me||e[81]!==Ke||e[82]!==$||e[83]!==Qe||e[84]!==Tt||e[85]!==Nt||e[86]!==le||e[87]!==k||e[88]!==vt||e[89]!==ce||e[90]!==he||e[91]!==ge||e[92]!==Lt||e[93]!==It||e[94]!==me||e[95]!==At||e[96]!==ae||e[97]!==h||e[98]!==it||e[99]!==tt||e[100]!==U||e[101]!==r.dateFormat||e[102]!==r.enabled||e[103]!==ft||e[104]!==de||e[105]!==x||e[106]!==ue||e[107]!==je||e[108]!==be||e[109]!==xe||e[110]!==Oe||e[111]!==Ae?(Ee=tt&&it&&n.length>0?o.jsxRuntimeExports.jsx(Ei,{data:Si.ensureCompleteDataForScatterPlot(n,r.dateFormat||"yyyy").filter(m=>r.enabled?m.date===_t.format(new Date(x[D]),r.dateFormat||"yyyy"):m),width:tt,height:it,colorDomain:n.filter(jn).length===0?[]:P||ui.uniqBy(n,"color",!0),colors:n.filter(An).length===0?S?[S]:[ie.Colors.primaryColors["blue-600"]]:S||ie.Colors[U].categoricalColors.colors,xAxisTitle:ue,yAxisTitle:xe,refXValues:he,refYValues:ge,showLabels:ae,radius:ce,leftMargin:Y,rightMargin:me,topMargin:de,bottomMargin:pe,tooltip:ft,onSeriesMouseOver:k,highlightAreaSettings:ye,highlightedDataPoints:n.filter(bn).length===0?[]:ve,selectedColor:At,maxRadiusValue:v.checkIfNullOrUndefined(se)?Math.max(...n.map(vn).filter(yn)):se,maxXValue:v.checkIfNullOrUndefined(Me)?Math.max(...n.map(gn).filter(hn))>0?Math.max(...n.map(pn).filter(dn)):0:Me,minXValue:v.checkIfNullOrUndefined($)?Math.min(...n.map(mn).filter(fn))>0?0:Math.min(...n.map(xn).filter(un)):$,maxYValue:v.checkIfNullOrUndefined(Ke)?Math.max(...n.map(cn).filter(an))>0?Math.max(...n.map(rn).filter(ln)):0:Ke,minYValue:v.checkIfNullOrUndefined(Qe)?Math.min(...n.map(sn).filter(on))>0?0:Math.min(...n.map(nn).filter(tn)):Qe,onSeriesMouseClick:le,rtl:_==="he"||_==="ar",annotations:_e,customHighlightAreaSettings:d,regressionLine:Lt,resetSelectionOnDoubleClick:It,detailsOnClick:X,noOfXTicks:Tt,noOfYTicks:Nt,labelColor:re,xSuffix:be,ySuffix:Ae,xPrefix:je,yPrefix:Oe,styles:h,classNames:u,animate:Xe===!0?{duration:.5,once:!0,amount:.5}:Xe||{duration:0,once:!0,amount:0},dimmedOpacity:yt,precision:vt,customLayers:bt}):null,e[62]=Xe,e[63]=_e,e[64]=pe,e[65]=u,e[66]=P,e[67]=S,e[68]=d,e[69]=bt,e[70]=n,e[71]=X,e[72]=yt,e[73]=ye,e[74]=ve,e[75]=D,e[76]=re,e[77]=_,e[78]=Y,e[79]=se,e[80]=Me,e[81]=Ke,e[82]=$,e[83]=Qe,e[84]=Tt,e[85]=Nt,e[86]=le,e[87]=k,e[88]=vt,e[89]=ce,e[90]=he,e[91]=ge,e[92]=Lt,e[93]=It,e[94]=me,e[95]=At,e[96]=ae,e[97]=h,e[98]=it,e[99]=tt,e[100]=U,e[101]=r.dateFormat,e[102]=r.enabled,e[103]=ft,e[104]=de,e[105]=x,e[106]=ue,e[107]=je,e[108]=be,e[109]=xe,e[110]=Oe,e[111]=Ae,e[112]=Ee):Ee=e[112];let Le;e[113]!==Se||e[114]!==Ee?(Le=o.jsxRuntimeExports.jsxs(xi.GraphArea,{ref:Re,children:[Se,Ee]}),e[113]=Se,e[114]=Ee,e[115]=Le):Le=e[115];let I;e[116]!==u?.footnote||e[117]!==u?.source||e[118]!==H||e[119]!==We||e[120]!==h?.footnote||e[121]!==h?.source||e[122]!==g?(I=We||H?o.jsxRuntimeExports.jsx(Ci.GraphFooter,{styles:{footnote:h?.footnote,source:h?.source},classNames:{footnote:u?.footnote,source:u?.source},sources:We,footNote:H,width:g}):null,e[116]=u?.footnote,e[117]=u?.source,e[118]=H,e[119]=We,e[120]=h?.footnote,e[121]=h?.source,e[122]=g,e[123]=I):I=e[123];let ct;return e[124]!==E||e[125]!==fe||e[126]!==$e||e[127]!==T||e[128]!==_||e[129]!==y||e[130]!==oe||e[131]!==mt||e[132]!==Ot||e[133]!==at||e[134]!==ke||e[135]!==we||e[136]!==ee||e[137]!==Le||e[138]!==I||e[139]!==U||e[140]!==g?(ct=o.jsxRuntimeExports.jsxs(xi.GraphContainer,{className:Ot,style:at,id:$e,ref:Fe,"aria-label":E,backgroundColor:fe,theme:U,language:_,minHeight:y,width:g,height:T,relativeHeight:mt,padding:oe,children:[ke,we,ee,Le,I]}),e[124]=E,e[125]=fe,e[126]=$e,e[127]=T,e[128]=_,e[129]=y,e[130]=oe,e[131]=mt,e[132]=Ot,e[133]=at,e[134]=ke,e[135]=we,e[136]=ee,e[137]=Le,e[138]=I,e[139]=U,e[140]=g,e[141]=ct):ct=e[141],ct}function tn(i){return i!=null}function nn(i){return i.y}function on(i){return i!=null}function sn(i){return i.y}function ln(i){return i!=null}function rn(i){return i.y}function an(i){return i!=null}function cn(i){return i.y}function un(i){return i!=null}function xn(i){return i.x}function fn(i){return i!=null}function mn(i){return i.x}function dn(i){return i!=null}function pn(i){return i.x}function hn(i){return i!=null}function gn(i){return i.x}function yn(i){return i!=null}function vn(i){return i.radius}function bn(i){return i.label}function An(i){return i.color}function jn(i){return i.color}function On(i){return i.color}function Cn(i){return i!==void 0}function Rn(i){return i!==void 0}function kn(i){return i.data}function wn(i){return i!==void 0}function Sn(i){return i.data}function En(i,e){return i-e}function Ln(i){return i.date}exports.ScatterPlot=en;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),_t=require("./parse-xYI9yrvL.cjs"),L=require("react"),ei=require("./getSliderMarks-CIuSoedo.cjs"),ti=require("./index-DQA8q5sC.cjs"),di=require("./index-Cno4Q0YE.cjs"),ii=require("./simple-statistics-xm8c0LQQ.cjs"),pi=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ie=require("./Colors.cjs"),ni=require("./numberFormattingFunction-02t-wJta.cjs"),Zt=require("./customArea-B1LWQBmM.cjs"),oi=require("./Axis-Jt_tmhxS.cjs"),si=require("./AxisTitle-DV4n0RxE.cjs"),hi=require("./XTicksAndGridLines-CekrPykD.cjs"),li=require("./ReferenceLine-M9aP3dj-.cjs"),gi=require("./RegressionLine-Ci-Dh0w0.cjs"),yi=require("./YTicksAndGridLines-UzVC5eBM.cjs"),vi=require("./index-D69M6klB.cjs"),bi=require("./DetailsModal-DHttOA80.cjs"),Ai=require("./pow-BnyPO-NX.cjs"),ri=require("./linear-CgUCbw9F.cjs"),ji=require("./delaunay-rcy0HhZi.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),Oi=require("./use-in-view-C3o_ntMv.cjs"),ai=require("./index-CoobIWNj.cjs"),Ci=require("./GraphFooter.cjs"),Ri=require("./GraphHeader.cjs"),ki=require("./ColorLegendWithMouseOver.cjs"),wi=require("./EmptyState-CGeBqbmR.cjs"),ci=require("./index-C6er0ety.cjs"),Si=require("./ensureCompleteData-D9bQTiVS.cjs"),ui=require("./uniqBy-O05lp2S5.cjs"),xi=require("./GraphContainer-B1EDxJ0S.cjs");function Ei(i){const e=o.compilerRuntimeExports.c(216),{data:n,width:ne,height:S,showLabels:We,colors:f,colorDomain:R,radius:T,xAxisTitle:g,yAxisTitle:H,leftMargin:P,rightMargin:ut,topMargin:Ct,bottomMargin:Dt,tooltip:xt,onSeriesMouseOver:oe,refXValues:Rt,refYValues:kt,highlightAreaSettings:wt,selectedColor:Ne,highlightedDataPoints:W,maxRadiusValue:ft,maxXValue:mt,minXValue:k,maxYValue:Be,minYValue:j,onSeriesMouseClick:N,rtl:ze,annotations:Je,customHighlightAreaSettings:$e,regressionLine:se,resetSelectionOnDoubleClick:Me,detailsOnClick:$,noOfXTicks:Ke,noOfYTicks:Qe,labelColor:Ve,xSuffix:qe,ySuffix:De,xPrefix:Ie,yPrefix:le,styles:s,classNames:l,animate:a,dimmedOpacity:M,precision:V,customLayers:q}=i,dt=L.useRef(null);let pt;e[0]!==a.amount||e[1]!==a.once?(pt={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=pt):pt=e[2];const b=Oi.useInView(dt,pt),[E,Te]=L.useState(void 0),[X,Ze]=L.useState(void 0),[ht,re]=L.useState(void 0),[h,u]=L.useState(void 0),St=g?Dt+50:Dt,Et=H?P+30:P;let gt;e[3]!==ut||e[4]!==St||e[5]!==Et||e[6]!==Ct?(gt={top:Ct,bottom:St,left:Et,right:ut},e[3]=ut,e[4]=St,e[5]=Et,e[6]=Ct,e[7]=gt):gt=e[7];const p=gt;let B,ae,ce,ue,xe,fe,Y,me,de,pe,z,he,J,ge,K,ye,F,Q;if(e[8]!==a||e[9]!==Je||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==R||e[20]!==f||e[21]!==$e||e[22]!==q||e[23]!==n||e[24]!==$||e[25]!==M||e[26]!==S||e[27]!==wt||e[28]!==W||e[29]!==b||e[30]!==Ve||e[31]!==P||e[32]!==p.bottom||e[33]!==p.left||e[34]!==p.right||e[35]!==p.top||e[36]!==ft||e[37]!==mt||e[38]!==Be||e[39]!==k||e[40]!==j||e[41]!==X||e[42]!==E||e[43]!==Ke||e[44]!==Qe||e[45]!==N||e[46]!==oe||e[47]!==V||e[48]!==T||e[49]!==Rt||e[50]!==kt||e[51]!==se||e[52]!==Me||e[53]!==ze||e[54]!==Ne||e[55]!==We||e[56]!==s?.graphObjectValues||e[57]!==s?.regLine||e[58]!==s?.xAxis?.axis||e[59]!==s?.xAxis?.gridLines||e[60]!==s?.xAxis?.labels||e[61]!==s?.xAxis?.title||e[62]!==s?.yAxis?.gridLines||e[63]!==s?.yAxis?.labels||e[64]!==s?.yAxis?.title||e[65]!==ne||e[66]!==g||e[67]!==Ie||e[68]!==qe||e[69]!==H||e[70]!==le||e[71]!==De){const _=n.map(_i),A=ne-p.left-p.right,y=S-p.top-p.bottom,w=n.filter(Zi).length!==n.length?Ai.sqrt().domain([0,ft]).range([.25,T]).nice():void 0,_e=_.filter(Qi).length===0?_:di.orderBy(_.filter(Ki),"radius","desc"),c=ri.linear().domain([k,mt]).range([0,A]).nice(),d=ri.linear().domain([j,Be]).range([y,0]).nice(),U=c.ticks(Ke),Lt=d.ticks(Qe),It=ji.Delaunay.from(_e.filter(Ji),t=>c(t.x),t=>d(t.y)).voronoi([0,0,A<0?0:A,y<0?0:y]),Tt=ii.linearRegression(n.filter(zi).map(t=>[c(t.x),d(t.y)])),Nt=ii.linearRegressionLine(Tt);ae=Ft.motion.svg,me=`${ne}px`,de=`${S}px`,pe=`0 0 ${ne} ${S}`,z="ltr",he=dt,ce=`translate(${p.left},${p.top})`;let Xe;e[90]!==a||e[91]!==$e||e[92]!==b||e[93]!==c||e[94]!==d?(Xe=o.jsxRuntimeExports.jsx(Zt.CustomArea,{areaSettings:$e,scaleX:c,scaleY:d,animate:a,isInView:b},"custom-area"),e[90]=a,e[91]=$e,e[92]=b,e[93]=c,e[94]=d,e[95]=Xe):Xe=e[95],ue=o.jsxRuntimeExports.jsxs(ai.AnimatePresence,{children:[o.jsxRuntimeExports.jsx(vi.HighlightAreaForScatterPlot,{areaSettings:wt,width:A,height:y,scaleX:c,scaleY:d,animate:a,isInView:b},"highlight-area"),Xe]});const yt=s?.yAxis?.gridLines,vt=s?.yAxis?.labels;let Ye;e[96]!==yt||e[97]!==vt?(Ye={gridLines:yt,labels:vt},e[96]=yt,e[97]=vt,e[98]=Ye):Ye=e[98];const bt=l?.yAxis?.gridLines,et=l?.yAxis?.labels;let r;e[99]!==bt||e[100]!==et?(r={gridLines:bt,labels:et},e[99]=bt,e[100]=et,e[101]=r):r=e[101];const tt=d(j<0?0:j),Pt=d(j<0?0:j),it=A+p.right,Xt=j<0?0:j;let O;e[102]!==V||e[103]!==Xt||e[104]!==le||e[105]!==De?(O=ni.numberFormattingFunction(Xt,"NA",V,le,De),e[102]=V,e[103]=Xt,e[104]=le,e[105]=De,e[106]=O):O=e[106];const Yt=d(j<0?0:j);let G;e[107]!==Yt?(G={x:0,y:Yt,dy:"0.33em",dx:-4},e[107]=Yt,e[108]=G):G=e[108];const x=l?.xAxis?.axis,D=l?.yAxis?.labels;let Ce;e[109]!==x||e[110]!==D?(Ce={axis:x,label:D},e[109]=x,e[110]=D,e[111]=Ce):Ce=e[111];const At=s?.xAxis?.axis;let nt;e[112]!==s?.yAxis?.labels?(nt=s?.yAxis?.labels||{},e[112]=s?.yAxis?.labels,e[113]=nt):nt=e[113];let Re;e[114]!==nt?(Re={textAnchor:"end",...nt},e[114]=nt,e[115]=Re):Re=e[115];let Fe;e[116]!==At||e[117]!==Re?(Fe={axis:At,label:Re},e[116]=At,e[117]=Re,e[118]=Fe):Fe=e[118];let Ue;e[119]!==tt||e[120]!==Pt||e[121]!==it||e[122]!==O||e[123]!==G||e[124]!==Ce||e[125]!==Fe?(Ue=o.jsxRuntimeExports.jsx(oi.Axis,{y1:tt,y2:Pt,x1:0,x2:it,label:O,labelPos:G,classNames:Ce,styles:Fe}),e[119]=tt,e[120]=Pt,e[121]=it,e[122]=O,e[123]=G,e[124]=Ce,e[125]=Fe,e[126]=Ue):Ue=e[126];const ot=0-P-15,st=y/2,lt=s?.yAxis?.title,jt=l?.yAxis?.title;let Ge;e[127]!==ot||e[128]!==st||e[129]!==lt||e[130]!==jt||e[131]!==H?(Ge=o.jsxRuntimeExports.jsx(si.AxisTitle,{x:ot,y:st,style:lt,className:jt,text:H,rotate90:!0}),e[127]=ot,e[128]=st,e[129]=lt,e[130]=jt,e[131]=H,e[132]=Ge):Ge=e[132],xe=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Lt.filter(Bi),y:Lt.filter(Wi).map(t=>d(t)),x1:0,x2:A+p.right,styles:Ye,classNames:r,suffix:De,prefix:le,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:V}),Ue,Ge]});const rt=s?.xAxis?.gridLines,Ot=s?.xAxis?.labels;let at;e[133]!==rt||e[134]!==Ot?(at={gridLines:rt,labels:Ot},e[133]=rt,e[134]=Ot,e[135]=at):at=e[135];const ke=l?.xAxis?.gridLines,we=l?.xAxis?.labels;let ee;e[136]!==ke||e[137]!==we?(ee={gridLines:ke,labels:we},e[136]=ke,e[137]=we,e[138]=ee):ee=e[138];const Se=c(k<0?0:k),Ee=c(k<0?0:k),Le=k<0?0:k;let I;e[139]!==V||e[140]!==Le||e[141]!==Ie||e[142]!==qe?(I=ni.numberFormattingFunction(Le,"NA",V,Ie,qe),e[139]=V,e[140]=Le,e[141]=Ie,e[142]=qe,e[143]=I):I=e[143];const ct=c(k<0?0:k);let m;e[144]!==y||e[145]!==ct?(m={x:ct,y,dy:"1em",dx:0},e[144]=y,e[145]=ct,e[146]=m):m=e[146];const te=l?.xAxis?.axis,Ht=l?.yAxis?.labels;let $t;e[147]!==te||e[148]!==Ht?($t={axis:te,label:Ht},e[147]=te,e[148]=Ht,e[149]=$t):$t=e[149];const Wt=s?.xAxis?.axis;let Mt;e[150]!==s?.yAxis?.labels?(Mt=s?.yAxis?.labels||{},e[150]=s?.yAxis?.labels,e[151]=Mt):Mt=e[151];let Vt;e[152]!==Mt?(Vt={textAnchor:"middle",...Mt},e[152]=Mt,e[153]=Vt):Vt=e[153];let qt;e[154]!==Wt||e[155]!==Vt?(qt={axis:Wt,label:Vt},e[154]=Wt,e[155]=Vt,e[156]=qt):qt=e[156];let Ut;e[157]!==y||e[158]!==Se||e[159]!==Ee||e[160]!==I||e[161]!==m||e[162]!==$t||e[163]!==qt?(Ut=o.jsxRuntimeExports.jsx(oi.Axis,{x1:Se,x2:Ee,y1:0,y2:y,label:I,labelPos:m,classNames:$t,styles:qt}),e[157]=y,e[158]=Se,e[159]=Ee,e[160]=I,e[161]=m,e[162]=$t,e[163]=qt,e[164]=Ut):Ut=e[164];const Bt=A/2,zt=y+30,Jt=s?.xAxis?.title,Kt=l?.xAxis?.title;let Gt;e[165]!==Bt||e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==g?(Gt=o.jsxRuntimeExports.jsx(si.AxisTitle,{x:Bt,y:zt,style:Jt,className:Kt,text:g}),e[165]=Bt,e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=g,e[170]=Gt):Gt=e[170],fe=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(hi.XTicksAndGridLines,{values:U.filter(Hi),x:U.filter(Gi).map(t=>c(t)),y1:0,y2:y,styles:at,classNames:ee,suffix:qe,prefix:Ie,labelType:"primary",showGridLines:!0,precision:V}),Ut,Gt]}),e[171]!==q?(Y=q.filter(Ui).map(Fi),e[171]=q,e[172]=Y):Y=e[172],B=ai.AnimatePresence,J=_e.filter(Yi).map((t,He)=>o.jsxRuntimeExports.jsx("path",{d:It.renderCell(_e.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{Te(t),u(C.clientY),re(C.clientX),oe?.(t)},onMouseMove:C=>{Te(t),u(C.clientY),re(C.clientX)},onMouseLeave:()=>{Te(void 0),re(void 0),u(void 0),oe?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(X,t)&&Me?(Ze(void 0),N?.(void 0)):(Ze(t),N?.(t)))}},`tesselation_${t.label||He}`)),ge=_e.filter(Xi).map((t,He)=>o.jsxRuntimeExports.jsxs(Ft.motion.g,{variants:{initial:{x:c(t.x),y:d(t.y),opacity:Ne?t.color&&f[R.indexOf(`${t.color}`)]===Ne?1:M:E?E.id===t.id?1:M:W.length!==0?W.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:c(t.x),y:d(t.y),opacity:Ne?t.color&&f[R.indexOf(`${t.color}`)]===Ne?1:M:E?E.id===t.id?1:M:W.length!==0?W.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{Te(t),u(C.clientY),re(C.clientX),oe?.(t)},onMouseMove:C=>{Te(t),u(C.clientY),re(C.clientX)},onMouseLeave:()=>{Te(void 0),re(void 0),u(void 0),oe?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(X,t)&&Me?(Ze(void 0),N?.(void 0)):(Ze(t),N?.(t)))},children:[o.jsxRuntimeExports.jsx(Ft.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:n.filter(Pi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,stroke:n.filter(Ti).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray},whileInView:{r:w?w(t.radius||0):T,fill:n.filter(Ii).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,stroke:n.filter(Di).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),We&&!v.checkIfNullOrUndefined(t.label)?o.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:w?w(t.radius||0):T,opacity:0,fill:Ve||(n.filter(qi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray)},whileInView:{x:w?w(t.radius||0):T,opacity:1,fill:Ve||(n.filter(Vi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):W.length!==0&&!v.checkIfNullOrUndefined(t.label)&&W.indexOf(t.label)!==-1?o.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:w?w(t.radius||0):T,opacity:0,fill:Ve||(n.filter(Mi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray)},whileInView:{x:w?w(t.radius||0):T,opacity:1,fill:Ve||(n.filter($i).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ie.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||He}`)),K=Rt.map((t,He)=>o.jsxRuntimeExports.jsx(li.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:y,textSide:c(t.value)>A*.75||ze?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)),ye=kt.map((t,He)=>o.jsxRuntimeExports.jsx(li.RefLineY,{text:t.text,color:t.color,y:d(t.value),x1:0,x2:A,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He));const Qt=Je.map((t,He)=>{const C=Zt.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?d(t.yCoordinate):0},v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),fi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?d(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,mi={y:t.yCoordinate?d(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:ze?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:ze?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):A+p.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return o.jsxRuntimeExports.jsx(Zt.Annotation,{color:t.color,connectorsSettings:fi,labelSettings:mi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)});e[173]!==Qt?(F=o.jsxRuntimeExports.jsx("g",{children:Qt}),e[173]=Qt,e[174]=F):F=e[174],Q=se?o.jsxRuntimeExports.jsx(gi.RegressionLine,{x1:0,x2:A,y1:Nt(0),y2:Nt(A),graphHeight:y,graphWidth:A,className:l?.regLine,style:s?.regLine,color:typeof se=="string"?se:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=Je,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=R,e[20]=f,e[21]=$e,e[22]=q,e[23]=n,e[24]=$,e[25]=M,e[26]=S,e[27]=wt,e[28]=W,e[29]=b,e[30]=Ve,e[31]=P,e[32]=p.bottom,e[33]=p.left,e[34]=p.right,e[35]=p.top,e[36]=ft,e[37]=mt,e[38]=Be,e[39]=k,e[40]=j,e[41]=X,e[42]=E,e[43]=Ke,e[44]=Qe,e[45]=N,e[46]=oe,e[47]=V,e[48]=T,e[49]=Rt,e[50]=kt,e[51]=se,e[52]=Me,e[53]=ze,e[54]=Ne,e[55]=We,e[56]=s?.graphObjectValues,e[57]=s?.regLine,e[58]=s?.xAxis?.axis,e[59]=s?.xAxis?.gridLines,e[60]=s?.xAxis?.labels,e[61]=s?.xAxis?.title,e[62]=s?.yAxis?.gridLines,e[63]=s?.yAxis?.labels,e[64]=s?.yAxis?.title,e[65]=ne,e[66]=g,e[67]=Ie,e[68]=qe,e[69]=H,e[70]=le,e[71]=De,e[72]=B,e[73]=ae,e[74]=ce,e[75]=ue,e[76]=xe,e[77]=fe,e[78]=Y,e[79]=me,e[80]=de,e[81]=pe,e[82]=z,e[83]=he,e[84]=J,e[85]=ge,e[86]=K,e[87]=ye,e[88]=F,e[89]=Q}else B=e[72],ae=e[73],ce=e[74],ue=e[75],xe=e[76],fe=e[77],Y=e[78],me=e[79],de=e[80],pe=e[81],z=e[82],he=e[83],J=e[84],ge=e[85],K=e[86],ye=e[87],F=e[88],Q=e[89];let ve;e[175]!==B||e[176]!==J||e[177]!==ge||e[178]!==K||e[179]!==ye||e[180]!==F||e[181]!==Q?(ve=o.jsxRuntimeExports.jsxs(B,{children:[J,ge,K,ye,F,Q]}),e[175]=B,e[176]=J,e[177]=ge,e[178]=K,e[179]=ye,e[180]=F,e[181]=Q,e[182]=ve):ve=e[182];let be;e[183]!==q?(be=q.filter(Ni).map(Li),e[183]=q,e[184]=be):be=e[184];let Ae;e[185]!==ce||e[186]!==ue||e[187]!==xe||e[188]!==fe||e[189]!==Y||e[190]!==ve||e[191]!==be?(Ae=o.jsxRuntimeExports.jsxs("g",{transform:ce,children:[ue,xe,fe,Y,ve,be]}),e[185]=ce,e[186]=ue,e[187]=xe,e[188]=fe,e[189]=Y,e[190]=ve,e[191]=be,e[192]=Ae):Ae=e[192];let je;e[193]!==ae||e[194]!==me||e[195]!==de||e[196]!==pe||e[197]!==z||e[198]!==he||e[199]!==Ae?(je=o.jsxRuntimeExports.jsx(ae,{width:me,height:de,viewBox:pe,direction:z,ref:he,children:Ae}),e[193]=ae,e[194]=me,e[195]=de,e[196]=pe,e[197]=z,e[198]=he,e[199]=Ae,e[200]=je):je=e[200];let Oe;e[201]!==l?.tooltip||e[202]!==ht||e[203]!==h||e[204]!==E||e[205]!==s?.tooltip||e[206]!==xt?(Oe=E&&xt&&ht&&h?o.jsxRuntimeExports.jsx(pi.Tooltip,{data:E,body:xt,xPos:ht,yPos:h,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[201]=l?.tooltip,e[202]=ht,e[203]=h,e[204]=E,e[205]=s?.tooltip,e[206]=xt,e[207]=Oe):Oe=e[207];let Z;e[208]!==l?.modal||e[209]!==$||e[210]!==X?(Z=$&&X!==void 0?o.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:X,setData:Ze,className:l?.modal}):null,e[208]=l?.modal,e[209]=$,e[210]=X,e[211]=Z):Z=e[211];let Pe;return e[212]!==je||e[213]!==Oe||e[214]!==Z?(Pe=o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[je,Oe,Z]}),e[212]=je,e[213]=Oe,e[214]=Z,e[215]=Pe):Pe=e[215],Pe}function Li(i){return i.layer}function Ni(i){return i.position==="after"}function $i(i){return i.color}function Mi(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}function Di(i){return i.color}function Ii(i){return i.color}function Ti(i){return i.color}function Pi(i){return i.color}function Xi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Yi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Fi(i){return i.layer}function Ui(i){return i.position==="before"}function Gi(i){return i!==0}function Hi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ji(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ki(i){return!v.checkIfNullOrUndefined(i.radius)}function Qi(i){return!v.checkIfNullOrUndefined(i.radius)}function Zi(i){return i.radius===void 0||i.radius===null}function _i(i,e){return{...i,id:`${e}`}}function en(i){const e=o.compilerRuntimeExports.c(142),{data:n,graphTitle:ne,colors:S,sources:We,graphDescription:f,showLabels:R,height:T,width:g,footNote:H,colorDomain:P,colorLegendTitle:ut,radius:Ct,xAxisTitle:Dt,yAxisTitle:xt,padding:oe,backgroundColor:Rt,leftMargin:kt,rightMargin:wt,topMargin:Ne,bottomMargin:W,tooltip:ft,relativeHeight:mt,onSeriesMouseOver:k,refXValues:Be,refYValues:j,highlightAreaSettings:N,showColorScale:ze,highlightedDataPoints:Je,graphID:$e,maxRadiusValue:se,maxXValue:Me,minXValue:$,maxYValue:Ke,minYValue:Qe,xSuffix:Ve,ySuffix:qe,xPrefix:De,yPrefix:Ie,onSeriesMouseClick:le,graphDownload:s,dataDownload:l,language:a,showNAColor:M,minHeight:V,annotations:q,customHighlightAreaSettings:dt,theme:pt,regressionLine:b,ariaLabel:E,resetSelectionOnDoubleClick:Te,detailsOnClick:X,noOfXTicks:Ze,noOfYTicks:ht,labelColor:re,styles:h,classNames:u,animate:St,dimmedOpacity:Et,precision:gt,customLayers:p,timeline:B}=i,ae=R===void 0?!1:R,ce=Ct===void 0?5:Ct,ue=Dt===void 0?"X Axis":Dt,xe=xt===void 0?"Y Axis":xt,fe=Rt===void 0?!1:Rt,Y=kt===void 0?0:kt,me=wt===void 0?10:wt,de=Ne===void 0?20:Ne,pe=W===void 0?50:W;let z;e[0]!==Be?(z=Be===void 0?[]:Be,e[0]=Be,e[1]=z):z=e[1];const he=z;let J;e[2]!==j?(J=j===void 0?[]:j,e[2]=j,e[3]=J):J=e[3];const ge=J;let K;e[4]!==N?(K=N===void 0?[]:N,e[4]=N,e[5]=K):K=e[5];const ye=K,F=ze===void 0?!0:ze;let Q;e[6]!==Je?(Q=Je===void 0?[]:Je,e[6]=Je,e[7]=Q):Q=e[7];const ve=Q,be=Ve===void 0?"":Ve,Ae=qe===void 0?"":qe,je=De===void 0?"":De,Oe=Ie===void 0?"":Ie,Z=s===void 0?!1:s,Pe=l===void 0?!1:l,_=a===void 0?"en":a,A=M===void 0?!0:M,y=V===void 0?0:V;let w;e[8]!==q?(w=q===void 0?[]:q,e[8]=q,e[9]=w):w=e[9];const _e=w;let c;e[10]!==dt?(c=dt===void 0?[]:dt,e[10]=dt,e[11]=c):c=e[11];const d=c,U=pt===void 0?"light":pt,Lt=b===void 0?!1:b,It=Te===void 0?!0:Te,Tt=Ze===void 0?5:Ze,Nt=ht===void 0?5:ht,Xe=St===void 0?!1:St,yt=Et===void 0?.3:Et,vt=gt===void 0?2:gt;let Ye;e[12]!==p?(Ye=p===void 0?[]:p,e[12]=p,e[13]=Ye):Ye=e[13];const bt=Ye;let et;e[14]!==B?(et=B===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:B,e[14]=B,e[15]=et):et=e[15];const r=et,[tt,Pt]=L.useState(0),[it,Xt]=L.useState(0),[O,Yt]=L.useState(r.autoplay);let G;if(e[16]!==n||e[17]!==r.dateFormat){let m;e[19]!==r.dateFormat?(m=te=>_t.parse(`${te.date}`,r.dateFormat||"yyyy",new Date).getTime(),e[19]=r.dateFormat,e[20]=m):m=e[20],G=[...new Set(n.filter(Ln).map(m))],G.sort(En),e[16]=n,e[17]=r.dateFormat,e[18]=G}else G=e[18];const x=G,[D,Ce]=L.useState(r.autoplay?0:x.length-1),[At,nt]=L.useState(void 0),Re=L.useRef(null),Fe=L.useRef(null);let Ue,ot;e[21]===Symbol.for("react.memo_cache_sentinel")?(Ue=()=>{const m=new ResizeObserver(te=>{Pt(te[0].target.clientWidth||620),Xt(te[0].target.clientHeight||480)});return Re.current&&m.observe(Re.current),()=>m.disconnect()},ot=[],e[21]=Ue,e[22]=ot):(Ue=e[21],ot=e[22]),L.useEffect(Ue,ot);let st,lt;e[23]!==O||e[24]!==r.speed||e[25]!==x?(st=()=>{const m=setInterval(()=>{Ce(te=>te<x.length-1?te+1:0)},(r.speed||2)*1e3);return O||clearInterval(m),()=>clearInterval(m)},lt=[x,O,r.speed],e[23]=O,e[24]=r.speed,e[25]=x,e[26]=st,e[27]=lt):(st=e[26],lt=e[27]),L.useEffect(st,lt);const jt=r.dateFormat||"yyyy";let Ge;e[28]!==D||e[29]!==jt||e[30]!==r.showOnlyActiveDate||e[31]!==x?(Ge=ei.getSliderMarks(x,D,r.showOnlyActiveDate,jt),e[28]=D,e[29]=jt,e[30]=r.showOnlyActiveDate,e[31]=x,e[32]=Ge):Ge=e[32];const rt=Ge,Ot=u?.graphContainer,at=h?.graphContainer;let ke;e[33]!==u?.description||e[34]!==u?.title||e[35]!==n||e[36]!==Pe||e[37]!==f||e[38]!==Z||e[39]!==ne||e[40]!==h?.description||e[41]!==h?.title||e[42]!==g?(ke=ne||f||Z||Pe?o.jsxRuntimeExports.jsx(Ri.GraphHeader,{styles:{title:h?.title,description:h?.description},classNames:{title:u?.title,description:u?.description},graphTitle:ne,graphDescription:f,width:g,graphDownload:Z?Fe:void 0,dataDownload:Pe?n.map(Sn).filter(wn).length>0?n.map(kn).filter(Rn):n.filter(Cn):null}):null,e[33]=u?.description,e[34]=u?.title,e[35]=n,e[36]=Pe,e[37]=f,e[38]=Z,e[39]=ne,e[40]=h?.description,e[41]=h?.title,e[42]=g,e[43]=ke):ke=e[43];let we;e[44]!==D||e[45]!==rt||e[46]!==O||e[47]!==r.enabled||e[48]!==x?(we=r.enabled&&x.length>0&&rt?o.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[o.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Yt(!O)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":O?"Click to pause animation":"Click to play animation",children:O?o.jsxRuntimeExports.jsx(ci.Pause,{}):o.jsxRuntimeExports.jsx(ci.Play,{})}),o.jsxRuntimeExports.jsx(ei.Nr,{min:x[0],max:x[x.length-1],marks:rt,step:null,defaultValue:x[x.length-1],value:x[D],onChangeComplete:m=>{Ce(x.indexOf(m))},onChange:m=>{Ce(x.indexOf(m))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=D,e[45]=rt,e[46]=O,e[47]=r.enabled,e[48]=x,e[49]=we):we=e[49];let ee;e[50]!==u?.colorLegend||e[51]!==P||e[52]!==ut||e[53]!==S||e[54]!==n||e[55]!==F||e[56]!==A||e[57]!==U||e[58]!==g?(ee=F&&n.filter(On).length!==0&&n.length>0?o.jsxRuntimeExports.jsx(ki.ColorLegendWithMouseOver,{width:g,colorLegendTitle:ut,colors:S||ie.Colors[U].categoricalColors.colors,colorDomain:P||ui.uniqBy(n,"color",!0),setSelectedColor:nt,showNAColor:A,className:u?.colorLegend}):null,e[50]=u?.colorLegend,e[51]=P,e[52]=ut,e[53]=S,e[54]=n,e[55]=F,e[56]=A,e[57]=U,e[58]=g,e[59]=ee):ee=e[59];let Se;e[60]!==n.length?(Se=n.length===0&&o.jsxRuntimeExports.jsx(wi.EmptyState,{}),e[60]=n.length,e[61]=Se):Se=e[61];let Ee;e[62]!==Xe||e[63]!==_e||e[64]!==pe||e[65]!==u||e[66]!==P||e[67]!==S||e[68]!==d||e[69]!==bt||e[70]!==n||e[71]!==X||e[72]!==yt||e[73]!==ye||e[74]!==ve||e[75]!==D||e[76]!==re||e[77]!==_||e[78]!==Y||e[79]!==se||e[80]!==Me||e[81]!==Ke||e[82]!==$||e[83]!==Qe||e[84]!==Tt||e[85]!==Nt||e[86]!==le||e[87]!==k||e[88]!==vt||e[89]!==ce||e[90]!==he||e[91]!==ge||e[92]!==Lt||e[93]!==It||e[94]!==me||e[95]!==At||e[96]!==ae||e[97]!==h||e[98]!==it||e[99]!==tt||e[100]!==U||e[101]!==r.dateFormat||e[102]!==r.enabled||e[103]!==ft||e[104]!==de||e[105]!==x||e[106]!==ue||e[107]!==je||e[108]!==be||e[109]!==xe||e[110]!==Oe||e[111]!==Ae?(Ee=tt&&it&&n.length>0?o.jsxRuntimeExports.jsx(Ei,{data:Si.ensureCompleteDataForScatterPlot(n,r.dateFormat||"yyyy").filter(m=>r.enabled?m.date===_t.format(new Date(x[D]),r.dateFormat||"yyyy"):m),width:tt,height:it,colorDomain:n.filter(jn).length===0?[]:P||ui.uniqBy(n,"color",!0),colors:n.filter(An).length===0?S?[S]:[ie.Colors.primaryColors["blue-600"]]:S||ie.Colors[U].categoricalColors.colors,xAxisTitle:ue,yAxisTitle:xe,refXValues:he,refYValues:ge,showLabels:ae,radius:ce,leftMargin:Y,rightMargin:me,topMargin:de,bottomMargin:pe,tooltip:ft,onSeriesMouseOver:k,highlightAreaSettings:ye,highlightedDataPoints:n.filter(bn).length===0?[]:ve,selectedColor:At,maxRadiusValue:v.checkIfNullOrUndefined(se)?Math.max(...n.map(vn).filter(yn)):se,maxXValue:v.checkIfNullOrUndefined(Me)?Math.max(...n.map(gn).filter(hn))>0?Math.max(...n.map(pn).filter(dn)):0:Me,minXValue:v.checkIfNullOrUndefined($)?Math.min(...n.map(mn).filter(fn))>0?0:Math.min(...n.map(xn).filter(un)):$,maxYValue:v.checkIfNullOrUndefined(Ke)?Math.max(...n.map(cn).filter(an))>0?Math.max(...n.map(rn).filter(ln)):0:Ke,minYValue:v.checkIfNullOrUndefined(Qe)?Math.min(...n.map(sn).filter(on))>0?0:Math.min(...n.map(nn).filter(tn)):Qe,onSeriesMouseClick:le,rtl:_==="he"||_==="ar",annotations:_e,customHighlightAreaSettings:d,regressionLine:Lt,resetSelectionOnDoubleClick:It,detailsOnClick:X,noOfXTicks:Tt,noOfYTicks:Nt,labelColor:re,xSuffix:be,ySuffix:Ae,xPrefix:je,yPrefix:Oe,styles:h,classNames:u,animate:Xe===!0?{duration:.5,once:!0,amount:.5}:Xe||{duration:0,once:!0,amount:0},dimmedOpacity:yt,precision:vt,customLayers:bt}):null,e[62]=Xe,e[63]=_e,e[64]=pe,e[65]=u,e[66]=P,e[67]=S,e[68]=d,e[69]=bt,e[70]=n,e[71]=X,e[72]=yt,e[73]=ye,e[74]=ve,e[75]=D,e[76]=re,e[77]=_,e[78]=Y,e[79]=se,e[80]=Me,e[81]=Ke,e[82]=$,e[83]=Qe,e[84]=Tt,e[85]=Nt,e[86]=le,e[87]=k,e[88]=vt,e[89]=ce,e[90]=he,e[91]=ge,e[92]=Lt,e[93]=It,e[94]=me,e[95]=At,e[96]=ae,e[97]=h,e[98]=it,e[99]=tt,e[100]=U,e[101]=r.dateFormat,e[102]=r.enabled,e[103]=ft,e[104]=de,e[105]=x,e[106]=ue,e[107]=je,e[108]=be,e[109]=xe,e[110]=Oe,e[111]=Ae,e[112]=Ee):Ee=e[112];let Le;e[113]!==Se||e[114]!==Ee?(Le=o.jsxRuntimeExports.jsxs(xi.GraphArea,{ref:Re,children:[Se,Ee]}),e[113]=Se,e[114]=Ee,e[115]=Le):Le=e[115];let I;e[116]!==u?.footnote||e[117]!==u?.source||e[118]!==H||e[119]!==We||e[120]!==h?.footnote||e[121]!==h?.source||e[122]!==g?(I=We||H?o.jsxRuntimeExports.jsx(Ci.GraphFooter,{styles:{footnote:h?.footnote,source:h?.source},classNames:{footnote:u?.footnote,source:u?.source},sources:We,footNote:H,width:g}):null,e[116]=u?.footnote,e[117]=u?.source,e[118]=H,e[119]=We,e[120]=h?.footnote,e[121]=h?.source,e[122]=g,e[123]=I):I=e[123];let ct;return e[124]!==E||e[125]!==fe||e[126]!==$e||e[127]!==T||e[128]!==_||e[129]!==y||e[130]!==oe||e[131]!==mt||e[132]!==Ot||e[133]!==at||e[134]!==ke||e[135]!==we||e[136]!==ee||e[137]!==Le||e[138]!==I||e[139]!==U||e[140]!==g?(ct=o.jsxRuntimeExports.jsxs(xi.GraphContainer,{className:Ot,style:at,id:$e,ref:Fe,"aria-label":E,backgroundColor:fe,theme:U,language:_,minHeight:y,width:g,height:T,relativeHeight:mt,padding:oe,children:[ke,we,ee,Le,I]}),e[124]=E,e[125]=fe,e[126]=$e,e[127]=T,e[128]=_,e[129]=y,e[130]=oe,e[131]=mt,e[132]=Ot,e[133]=at,e[134]=ke,e[135]=we,e[136]=ee,e[137]=Le,e[138]=I,e[139]=U,e[140]=g,e[141]=ct):ct=e[141],ct}function tn(i){return i!=null}function nn(i){return i.y}function on(i){return i!=null}function sn(i){return i.y}function ln(i){return i!=null}function rn(i){return i.y}function an(i){return i!=null}function cn(i){return i.y}function un(i){return i!=null}function xn(i){return i.x}function fn(i){return i!=null}function mn(i){return i.x}function dn(i){return i!=null}function pn(i){return i.x}function hn(i){return i!=null}function gn(i){return i.x}function yn(i){return i!=null}function vn(i){return i.radius}function bn(i){return i.label}function An(i){return i.color}function jn(i){return i.color}function On(i){return i.color}function Cn(i){return i!==void 0}function Rn(i){return i!==void 0}function kn(i){return i.data}function wn(i){return i!==void 0}function Sn(i){return i.data}function En(i,e){return i-e}function Ln(i){return i.date}exports.ScatterPlot=en;
|
|
2
2
|
//# sourceMappingURL=ScatterPlot.cjs.map
|
package/dist/ScatterPlot.js
CHANGED
|
@@ -10,7 +10,7 @@ import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
|
10
10
|
import { Colors as et } from "./Colors.js";
|
|
11
11
|
import { n as ii } from "./numberFormattingFunction-14YCbkN2.js";
|
|
12
12
|
import { g as vi, A as bi, C as Ai } from "./customArea-ASDaSE4u.js";
|
|
13
|
-
import { A as oi } from "./Axis-
|
|
13
|
+
import { A as oi } from "./Axis-D56Gy0se.js";
|
|
14
14
|
import { A as ni } from "./AxisTitle-VFq89Olw.js";
|
|
15
15
|
import { X as Oi } from "./XTicksAndGridLines-CVZkZkpS.js";
|
|
16
16
|
import { R as Ci, a as wi } from "./ReferenceLine-DgtoRgw0.js";
|
package/dist/ScrollStory.d.ts
CHANGED
|
@@ -413,6 +413,9 @@ declare interface GraphSettingsDataType {
|
|
|
413
413
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
414
414
|
trackColor?: string;
|
|
415
415
|
zoomAndCenterByHighlightedIds?: boolean;
|
|
416
|
+
hideAxisLine?: boolean;
|
|
417
|
+
projectionRotate?: [number, number] | [number, number, number];
|
|
418
|
+
rewindCoordinatesInMapData?: boolean;
|
|
416
419
|
}
|
|
417
420
|
|
|
418
421
|
declare type GraphType = GraphTypeForGriddedGraph;
|