@undp/data-viz 2.5.1 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/BiVariateChoroplethMap.cjs +1 -1
  2. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  3. package/dist/BiVariateChoroplethMap.js +297 -289
  4. package/dist/BiVariateChoroplethMap.js.map +1 -1
  5. package/dist/ChoroplethMap.cjs +1 -1
  6. package/dist/ChoroplethMap.cjs.map +1 -1
  7. package/dist/ChoroplethMap.js +307 -299
  8. package/dist/ChoroplethMap.js.map +1 -1
  9. package/dist/CopyTextButton.cjs +1 -1
  10. package/dist/CopyTextButton.cjs.map +1 -1
  11. package/dist/CopyTextButton.js +281 -279
  12. package/dist/CopyTextButton.js.map +1 -1
  13. package/dist/CsvDownloadButton.cjs +4 -4
  14. package/dist/CsvDownloadButton.cjs.map +1 -1
  15. package/dist/CsvDownloadButton.js +268 -266
  16. package/dist/CsvDownloadButton.js.map +1 -1
  17. package/dist/DotDensityMap.cjs +1 -1
  18. package/dist/DotDensityMap.cjs.map +1 -1
  19. package/dist/DotDensityMap.js +277 -269
  20. package/dist/DotDensityMap.js.map +1 -1
  21. package/dist/ExcelDownloadButton.cjs +1 -1
  22. package/dist/ExcelDownloadButton.cjs.map +1 -1
  23. package/dist/ExcelDownloadButton.js +21 -19
  24. package/dist/ExcelDownloadButton.js.map +1 -1
  25. package/dist/HybridMap.cjs +1 -1
  26. package/dist/HybridMap.cjs.map +1 -1
  27. package/dist/HybridMap.js +299 -291
  28. package/dist/HybridMap.js.map +1 -1
  29. package/dist/ImageDownloadButton.cjs +1 -1
  30. package/dist/ImageDownloadButton.cjs.map +1 -1
  31. package/dist/ImageDownloadButton.js +19 -17
  32. package/dist/ImageDownloadButton.js.map +1 -1
  33. package/dist/SVGDownloadButton.cjs +1 -1
  34. package/dist/SVGDownloadButton.cjs.map +1 -1
  35. package/dist/SVGDownloadButton.js +20 -18
  36. package/dist/SVGDownloadButton.js.map +1 -1
  37. package/dist/ScatterPlot.cjs +1 -1
  38. package/dist/ScatterPlot.cjs.map +1 -1
  39. package/dist/ScatterPlot.d.ts +1 -1
  40. package/dist/ScatterPlot.js +107 -107
  41. package/dist/ScatterPlot.js.map +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SVGDownloadButton.cjs","sources":["../src/Components/Actions/SVGDownloadButton.tsx"],"sourcesContent":["import { Button } from '@undp/design-system-react/Button';\r\nimport { JSX } from 'react';\r\n\r\nimport { svgDownload } from '@/Utils/svgDownload';\r\nimport { ImageDown } from '@/Components/Icons';\r\n\r\ninterface Props {\r\n buttonContent?: string | JSX.Element;\r\n buttonType?:\r\n | 'primary'\r\n | 'primary-without-icon'\r\n | 'secondary'\r\n | 'secondary-without-icon'\r\n | 'tertiary';\r\n nodeID: string | HTMLElement;\r\n filename?: string;\r\n buttonSmall?: boolean;\r\n className?: string;\r\n}\r\n\r\nexport function SVGDownloadButton(props: Props) {\r\n const {\r\n nodeID,\r\n filename = 'image',\r\n buttonContent,\r\n buttonType = 'tertiary',\r\n buttonSmall,\r\n className = '',\r\n } = props;\r\n return (\r\n <Button\r\n variant={buttonType}\r\n className={`undp-viz-download-button ${buttonSmall ? 'p-2' : 'py-4 px-6'} ${className}`}\r\n onClick={() => {\r\n if (typeof nodeID === 'string') {\r\n if (document.getElementById(nodeID)) {\r\n svgDownload(document.getElementById(nodeID) as HTMLElement, filename);\r\n } else {\r\n console.error('Cannot find the html element');\r\n }\r\n } else {\r\n svgDownload(nodeID as HTMLElement, filename);\r\n }\r\n }}\r\n aria-label='Click to download the graph as svg'\r\n >\r\n {buttonContent || <ImageDown />}\r\n </Button>\r\n );\r\n}\r\n"],"names":["SVGDownloadButton","props","$","_c","nodeID","filename","t0","buttonContent","buttonType","t1","buttonSmall","className","t2","undefined","t3","t4","document","getElementById","svgDownload","console","error","t5","ImageDown","t6","jsx","Button"],"mappings":"2MAoBO,SAAAA,EAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,OAAAA,EAAAC,SAAAC,EAAAC,cAAAA,EAAAC,WAAAC,EAAAC,YAAAA,EAAAC,UAAAC,CAAAA,EAOIX,EALFI,EAAAC,IAAAO,OAAA,QAAAP,EAEAE,EAAAC,IAAAI,OAAA,WAAAJ,EAOaK,8BAA4BJ,EAAA,MAAA,WAAiC,IAL1EE,IAAAC,OAAA,GAAAD,CAKuF,GAAE,IAAAG,EAAAb,EAAA,CAAA,IAAAG,GAAAH,OAAAE,GAC9EW,EAAAA,IAAA,CACH,OAAOX,GAAW,SAChBY,SAAQC,eAAgBb,CAAM,EAChCc,EAAAA,YAAYF,SAAQC,eAAgBb,CAAM,EAAkBC,CAAQ,EAEpEc,QAAOC,MAAO,8BAA8B,EAG9CF,EAAAA,YAAYd,EAAuBC,CAAQ,CAC5C,EACFH,KAAAG,EAAAH,KAAAE,EAAAF,KAAAa,GAAAA,EAAAb,EAAA,CAAA,EAAA,IAAAmB,EAAAnB,OAAAK,GAGAc,EAAAd,2BAAkBe,EAAAA,UAAA,CAAA,CAAS,EAAGpB,KAAAK,EAAAL,KAAAmB,GAAAA,EAAAnB,EAAA,CAAA,EAAA,IAAAqB,EAAA,OAAArB,EAAA,CAAA,IAAAM,GAAAN,EAAA,CAAA,IAAAY,GAAAZ,EAAA,CAAA,IAAAa,GAAAb,OAAAmB,GAhBjCE,EAAAC,EAAAA,kBAAAA,IAACC,EAAAA,EAAA,CACUjB,QAAAA,EACE,UAAAM,EACF,QAAAC,EAWE,aAAA,qCAEVM,SAAAA,CAAAA,CACH,EAASnB,KAAAM,EAAAN,KAAAY,EAAAZ,KAAAa,EAAAb,KAAAmB,EAAAnB,KAAAqB,GAAAA,EAAArB,EAAA,CAAA,EAjBTqB,CAiBS"}
1
+ {"version":3,"file":"SVGDownloadButton.cjs","sources":["../src/Components/Actions/SVGDownloadButton.tsx"],"sourcesContent":["import { Button } from '@undp/design-system-react/Button';\r\nimport { JSX } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\n\r\nimport { svgDownload } from '@/Utils/svgDownload';\r\nimport { ImageDown } from '@/Components/Icons';\r\n\r\ninterface Props {\r\n buttonContent?: string | JSX.Element;\r\n buttonType?:\r\n | 'primary'\r\n | 'primary-without-icon'\r\n | 'secondary'\r\n | 'secondary-without-icon'\r\n | 'tertiary';\r\n nodeID: string | HTMLElement;\r\n filename?: string;\r\n buttonSmall?: boolean;\r\n className?: string;\r\n}\r\n\r\nexport function SVGDownloadButton(props: Props) {\r\n const {\r\n nodeID,\r\n filename = 'image',\r\n buttonContent,\r\n buttonType = 'tertiary',\r\n buttonSmall,\r\n className = '',\r\n } = props;\r\n return (\r\n <Button\r\n variant={buttonType}\r\n className={cn('undp-viz-download-button', buttonSmall ? 'p-2' : 'py-4 px-6', className)}\r\n onClick={() => {\r\n if (typeof nodeID === 'string') {\r\n if (document.getElementById(nodeID)) {\r\n svgDownload(document.getElementById(nodeID) as HTMLElement, filename);\r\n } else {\r\n console.error('Cannot find the html element');\r\n }\r\n } else {\r\n svgDownload(nodeID as HTMLElement, filename);\r\n }\r\n }}\r\n aria-label='Click to download the graph as svg'\r\n >\r\n {buttonContent || <ImageDown />}\r\n </Button>\r\n );\r\n}\r\n"],"names":["SVGDownloadButton","props","$","_c","nodeID","filename","t0","buttonContent","buttonType","t1","buttonSmall","className","t2","undefined","t3","t4","cn","t5","document","getElementById","svgDownload","console","error","t6","ImageDown","t7","jsx","Button"],"mappings":"2MAqBO,SAAAA,EAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,OAAAA,EAAAC,SAAAC,EAAAC,cAAAA,EAAAC,WAAAC,EAAAC,YAAAA,EAAAC,UAAAC,CAAAA,EAOIX,EALFI,EAAAC,IAAAO,OAAA,QAAAP,EAEAE,EAAAC,IAAAI,OAAA,WAAAJ,EAEAE,EAAAC,IAAAC,OAAA,GAAAD,EAK4CE,EAAAJ,EAAA,MAAA,YAAiC,IAAAK,EAAAb,EAAA,CAAA,IAAAS,GAAAT,OAAAY,GAAhEC,EAAAC,EAAAA,GAAG,2BAA4BF,EAAmCH,CAAS,EAACT,KAAAS,EAAAT,KAAAY,EAAAZ,KAAAa,GAAAA,EAAAb,EAAA,CAAA,EAAA,IAAAe,EAAAf,EAAA,CAAA,IAAAG,GAAAH,OAAAE,GAC9Ea,EAAAA,IAAA,CACH,OAAOb,GAAW,SAChBc,SAAQC,eAAgBf,CAAM,EAChCgB,EAAAA,YAAYF,SAAQC,eAAgBf,CAAM,EAAkBC,CAAQ,EAEpEgB,QAAOC,MAAO,8BAA8B,EAG9CF,EAAAA,YAAYhB,EAAuBC,CAAQ,CAC5C,EACFH,KAAAG,EAAAH,KAAAE,EAAAF,KAAAe,GAAAA,EAAAf,EAAA,CAAA,EAAA,IAAAqB,EAAArB,OAAAK,GAGAgB,EAAAhB,2BAAkBiB,EAAAA,UAAA,CAAA,CAAS,EAAGtB,KAAAK,EAAAL,KAAAqB,GAAAA,EAAArB,EAAA,CAAA,EAAA,IAAAuB,EAAA,OAAAvB,EAAA,CAAA,IAAAM,GAAAN,EAAA,CAAA,IAAAa,GAAAb,EAAA,EAAA,IAAAe,GAAAf,QAAAqB,GAhBjCE,EAAAC,EAAAA,kBAAAA,IAACC,EAAAA,EAAA,CACUnB,QAAAA,EACE,UAAAO,EACF,QAAAE,EAWE,aAAA,qCAEVM,SAAAA,CAAAA,CACH,EAASrB,KAAAM,EAAAN,KAAAa,EAAAb,MAAAe,EAAAf,MAAAqB,EAAArB,MAAAuB,GAAAA,EAAAvB,EAAA,EAAA,EAjBTuB,CAiBS"}
@@ -1,25 +1,27 @@
1
- import { c as v, j as p } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { I as x, u as y } from "./index-ApTBN0kp.js";
3
- import { s as u } from "./svgDownload-BAoarWNt.js";
4
- function j(f) {
5
- const t = v.c(10), {
1
+ import { c as y, m as b, j as u } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { I as h, u as w } from "./index-ApTBN0kp.js";
3
+ import { s as g } from "./svgDownload-BAoarWNt.js";
4
+ function D(v) {
5
+ const t = y.c(13), {
6
6
  nodeID: e,
7
- filename: r,
8
- buttonContent: a,
9
- buttonType: c,
10
- buttonSmall: g,
11
- className: d
12
- } = f, s = r === void 0 ? "image" : r, i = c === void 0 ? "tertiary" : c, m = `undp-viz-download-button ${g ? "p-2" : "py-4 px-6"} ${d === void 0 ? "" : d}`;
7
+ filename: d,
8
+ buttonContent: i,
9
+ buttonType: p,
10
+ buttonSmall: x,
11
+ className: f
12
+ } = v, l = d === void 0 ? "image" : d, m = p === void 0 ? "tertiary" : p, r = f === void 0 ? "" : f, c = x ? "p-2" : "py-4 px-6";
13
13
  let o;
14
- t[0] !== s || t[1] !== e ? (o = () => {
15
- typeof e == "string" ? document.getElementById(e) ? u(document.getElementById(e), s) : console.error("Cannot find the html element") : u(e, s);
16
- }, t[0] = s, t[1] = e, t[2] = o) : o = t[2];
14
+ t[0] !== r || t[1] !== c ? (o = b("undp-viz-download-button", c, r), t[0] = r, t[1] = c, t[2] = o) : o = t[2];
17
15
  let n;
18
- t[3] !== a ? (n = a || /* @__PURE__ */ p.jsx(x, {}), t[3] = a, t[4] = n) : n = t[4];
19
- let l;
20
- return t[5] !== i || t[6] !== m || t[7] !== o || t[8] !== n ? (l = /* @__PURE__ */ p.jsx(y, { variant: i, className: m, onClick: o, "aria-label": "Click to download the graph as svg", children: n }), t[5] = i, t[6] = m, t[7] = o, t[8] = n, t[9] = l) : l = t[9], l;
16
+ t[3] !== l || t[4] !== e ? (n = () => {
17
+ typeof e == "string" ? document.getElementById(e) ? g(document.getElementById(e), l) : console.error("Cannot find the html element") : g(e, l);
18
+ }, t[3] = l, t[4] = e, t[5] = n) : n = t[5];
19
+ let s;
20
+ t[6] !== i ? (s = i || /* @__PURE__ */ u.jsx(h, {}), t[6] = i, t[7] = s) : s = t[7];
21
+ let a;
22
+ return t[8] !== m || t[9] !== o || t[10] !== n || t[11] !== s ? (a = /* @__PURE__ */ u.jsx(w, { variant: m, className: o, onClick: n, "aria-label": "Click to download the graph as svg", children: s }), t[8] = m, t[9] = o, t[10] = n, t[11] = s, t[12] = a) : a = t[12], a;
21
23
  }
22
24
  export {
23
- j as SVGDownloadButton
25
+ D as SVGDownloadButton
24
26
  };
25
27
  //# sourceMappingURL=SVGDownloadButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SVGDownloadButton.js","sources":["../src/Components/Actions/SVGDownloadButton.tsx"],"sourcesContent":["import { Button } from '@undp/design-system-react/Button';\r\nimport { JSX } from 'react';\r\n\r\nimport { svgDownload } from '@/Utils/svgDownload';\r\nimport { ImageDown } from '@/Components/Icons';\r\n\r\ninterface Props {\r\n buttonContent?: string | JSX.Element;\r\n buttonType?:\r\n | 'primary'\r\n | 'primary-without-icon'\r\n | 'secondary'\r\n | 'secondary-without-icon'\r\n | 'tertiary';\r\n nodeID: string | HTMLElement;\r\n filename?: string;\r\n buttonSmall?: boolean;\r\n className?: string;\r\n}\r\n\r\nexport function SVGDownloadButton(props: Props) {\r\n const {\r\n nodeID,\r\n filename = 'image',\r\n buttonContent,\r\n buttonType = 'tertiary',\r\n buttonSmall,\r\n className = '',\r\n } = props;\r\n return (\r\n <Button\r\n variant={buttonType}\r\n className={`undp-viz-download-button ${buttonSmall ? 'p-2' : 'py-4 px-6'} ${className}`}\r\n onClick={() => {\r\n if (typeof nodeID === 'string') {\r\n if (document.getElementById(nodeID)) {\r\n svgDownload(document.getElementById(nodeID) as HTMLElement, filename);\r\n } else {\r\n console.error('Cannot find the html element');\r\n }\r\n } else {\r\n svgDownload(nodeID as HTMLElement, filename);\r\n }\r\n }}\r\n aria-label='Click to download the graph as svg'\r\n >\r\n {buttonContent || <ImageDown />}\r\n </Button>\r\n );\r\n}\r\n"],"names":["SVGDownloadButton","props","$","_c","nodeID","filename","t0","buttonContent","buttonType","t1","buttonSmall","className","t2","undefined","t3","t4","document","getElementById","svgDownload","console","error","t5","ImageDown","t6","jsx","Button"],"mappings":";;;AAoBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,QAAAA;AAAAA,IAAAC,UAAAC;AAAAA,IAAAC,eAAAA;AAAAA,IAAAC,YAAAC;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,WAAAC;AAAAA,EAAAA,IAOIX,GALFI,IAAAC,MAAAO,SAAA,UAAAP,GAEAE,IAAAC,MAAAI,SAAA,aAAAJ,GAOaK,gCAA4BJ,IAAA,QAAA,WAAiC,IAL1EE,MAAAC,SAAA,KAAAD,CAKuF;AAAE,MAAAG;AAAA,EAAAb,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAC9EW,IAAAA,MAAA;AACP,IAAI,OAAOX,KAAW,WAChBY,SAAQC,eAAgBb,CAAM,IAChCc,EAAYF,SAAQC,eAAgBb,CAAM,GAAkBC,CAAQ,IAEpEc,QAAOC,MAAO,8BAA8B,IAG9CF,EAAYd,GAAuBC,CAAQ;AAAA,EAC5C,GACFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAa,KAAAA,IAAAb,EAAA,CAAA;AAAA,MAAAmB;AAAA,EAAAnB,SAAAK,KAGAc,IAAAd,2BAAkBe,GAAA,CAAA,CAAS,GAAGpB,OAAAK,GAAAL,OAAAmB,KAAAA,IAAAnB,EAAA,CAAA;AAAA,MAAAqB;AAAA,SAAArB,EAAA,CAAA,MAAAM,KAAAN,EAAA,CAAA,MAAAY,KAAAZ,EAAA,CAAA,MAAAa,KAAAb,SAAAmB,KAhBjCE,IAAAC,gBAAAA,EAAAA,IAACC,GAAA,EACUjB,SAAAA,GACE,WAAAM,GACF,SAAAC,GAWE,cAAA,sCAEVM,UAAAA,EAAAA,CACH,GAASnB,OAAAM,GAAAN,OAAAY,GAAAZ,OAAAa,GAAAb,OAAAmB,GAAAnB,OAAAqB,KAAAA,IAAArB,EAAA,CAAA,GAjBTqB;AAiBS;"}
1
+ {"version":3,"file":"SVGDownloadButton.js","sources":["../src/Components/Actions/SVGDownloadButton.tsx"],"sourcesContent":["import { Button } from '@undp/design-system-react/Button';\r\nimport { JSX } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\n\r\nimport { svgDownload } from '@/Utils/svgDownload';\r\nimport { ImageDown } from '@/Components/Icons';\r\n\r\ninterface Props {\r\n buttonContent?: string | JSX.Element;\r\n buttonType?:\r\n | 'primary'\r\n | 'primary-without-icon'\r\n | 'secondary'\r\n | 'secondary-without-icon'\r\n | 'tertiary';\r\n nodeID: string | HTMLElement;\r\n filename?: string;\r\n buttonSmall?: boolean;\r\n className?: string;\r\n}\r\n\r\nexport function SVGDownloadButton(props: Props) {\r\n const {\r\n nodeID,\r\n filename = 'image',\r\n buttonContent,\r\n buttonType = 'tertiary',\r\n buttonSmall,\r\n className = '',\r\n } = props;\r\n return (\r\n <Button\r\n variant={buttonType}\r\n className={cn('undp-viz-download-button', buttonSmall ? 'p-2' : 'py-4 px-6', className)}\r\n onClick={() => {\r\n if (typeof nodeID === 'string') {\r\n if (document.getElementById(nodeID)) {\r\n svgDownload(document.getElementById(nodeID) as HTMLElement, filename);\r\n } else {\r\n console.error('Cannot find the html element');\r\n }\r\n } else {\r\n svgDownload(nodeID as HTMLElement, filename);\r\n }\r\n }}\r\n aria-label='Click to download the graph as svg'\r\n >\r\n {buttonContent || <ImageDown />}\r\n </Button>\r\n );\r\n}\r\n"],"names":["SVGDownloadButton","props","$","_c","nodeID","filename","t0","buttonContent","buttonType","t1","buttonSmall","className","t2","undefined","t3","t4","cn","t5","document","getElementById","svgDownload","console","error","t6","ImageDown","t7","jsx","Button"],"mappings":";;;AAqBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,QAAAA;AAAAA,IAAAC,UAAAC;AAAAA,IAAAC,eAAAA;AAAAA,IAAAC,YAAAC;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,WAAAC;AAAAA,EAAAA,IAOIX,GALFI,IAAAC,MAAAO,SAAA,UAAAP,GAEAE,IAAAC,MAAAI,SAAA,aAAAJ,GAEAE,IAAAC,MAAAC,SAAA,KAAAD,GAK4CE,IAAAJ,IAAA,QAAA;AAAiC,MAAAK;AAAA,EAAAb,EAAA,CAAA,MAAAS,KAAAT,SAAAY,KAAhEC,IAAAC,EAAG,4BAA4BF,GAAmCH,CAAS,GAACT,OAAAS,GAAAT,OAAAY,GAAAZ,OAAAa,KAAAA,IAAAb,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAC9Ea,IAAAA,MAAA;AACP,IAAI,OAAOb,KAAW,WAChBc,SAAQC,eAAgBf,CAAM,IAChCgB,EAAYF,SAAQC,eAAgBf,CAAM,GAAkBC,CAAQ,IAEpEgB,QAAOC,MAAO,8BAA8B,IAG9CF,EAAYhB,GAAuBC,CAAQ;AAAA,EAC5C,GACFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAe,KAAAA,IAAAf,EAAA,CAAA;AAAA,MAAAqB;AAAA,EAAArB,SAAAK,KAGAgB,IAAAhB,2BAAkBiB,GAAA,CAAA,CAAS,GAAGtB,OAAAK,GAAAL,OAAAqB,KAAAA,IAAArB,EAAA,CAAA;AAAA,MAAAuB;AAAA,SAAAvB,EAAA,CAAA,MAAAM,KAAAN,EAAA,CAAA,MAAAa,KAAAb,EAAA,EAAA,MAAAe,KAAAf,UAAAqB,KAhBjCE,IAAAC,gBAAAA,EAAAA,IAACC,GAAA,EACUnB,SAAAA,GACE,WAAAO,GACF,SAAAE,GAWE,cAAA,sCAEVM,UAAAA,EAAAA,CACH,GAASrB,OAAAM,GAAAN,OAAAa,GAAAb,QAAAe,GAAAf,QAAAqB,GAAArB,QAAAuB,KAAAA,IAAAvB,EAAA,EAAA,GAjBTuB;AAiBS;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-D4pAp7u0.cjs"),ui=require("./parse-xYI9yrvL.cjs"),N=require("react"),xi=require("./getSliderMarks-BzrpHrHS.cjs"),fi=require("./index-DQA8q5sC.cjs"),$i=require("./index-Cno4Q0YE.cjs"),mi=require("./simple-statistics-xm8c0LQQ.cjs"),Ri=require("./Tooltip-C9F3uYG0.cjs"),$=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),H=require("./Colors.cjs"),di=require("./numberFormattingFunction-u2iNHL_c.cjs"),ci=require("./customArea-BAcQ3pBM.cjs"),pi=require("./Axis-BTaS9oPQ.cjs"),hi=require("./AxisTitle-DP_evhbe.cjs"),ki=require("./XTicksAndGridLines-B4UhDVyU.cjs"),gi=require("./ReferenceLine-CpU4G01Y.cjs"),wi=require("./RegressionLine-BFoBiVJk.cjs"),Li=require("./YTicksAndGridLines-sT3zdCs6.cjs"),Ei=require("./index-BuhBhuCq.cjs"),Ni=require("./DetailsModal-Du8Fr1QD.cjs"),Si=require("./pow-BnyPO-NX.cjs"),yi=require("./linear-CgUCbw9F.cjs"),Vi=require("./delaunay-rcy0HhZi.cjs"),Ft=require("./proxy-CqH8m8IQ.cjs"),Di=require("./use-in-view-dnRv_qqF.cjs"),vi=require("./index-FXfr51ZM.cjs"),Mi=require("./GraphFooter.cjs"),qi=require("./GraphHeader.cjs"),Ii=require("./ColorLegendWithMouseOver.cjs"),Ti=require("./EmptyState-CFmiFPHz.cjs"),bi=require("./index-BhI7mBJx.cjs"),Pi=require("./ensureCompleteData-D9bQTiVS.cjs"),Oi=require("./uniqBy-O05lp2S5.cjs"),Ai=require("./GraphContainer-Cul9b74X.cjs");function Xi(i){const e=n.compilerRuntimeExports.c(229),{data:o,width:ae,height:R,showLabels:He,colors:r,colorDomain:a,radius:P,xAxisTitle:O,yAxisTitle:G,leftMargin:X,rightMargin:gt,topMargin:ot,bottomMargin:qt,tooltip:nt,onSeriesMouseOver:Ve,refXValues:st,refYValues:yt,highlightAreaSettings:vt,selectedColor:De,highlightedDataPoints:W,maxRadiusValue:bt,maxXValue:lt,minXValue:L,maxYValue:rt,minYValue:k,onSeriesMouseClick:S,rtl:ce,annotations:Ot,customHighlightAreaSettings:Me,regressionLine:Ge,resetSelectionOnDoubleClick:We,detailsOnClick:V,noOfXTicks:Ze,noOfYTicks:Be,labelColor:Z,styles:s,classNames:l,animate:u,dimmedOpacity:D,showHighlightedDataPointsLabels:At,customLayers:B,showVoronoiTesselation:jt,useVoronoiInteraction:ze,xNumberDisplayOptions:m,yNumberDisplayOptions:p,defaultColor:M}=i,Ct=N.useRef(null);let at;e[0]!==u.amount||e[1]!==u.once?(at={once:u.once,amount:u.amount},e[0]=u.amount,e[1]=u.once,e[2]=at):at=e[2];const j=Di.useInView(Ct,at),[q,qe]=N.useState(void 0),[Y,g]=N.useState(void 0),[d,Ie]=N.useState(void 0),[ct,z]=N.useState(void 0),Je=O?qt+50:qt,$t=G?X+30:X;let ut;e[3]!==gt||e[4]!==Je||e[5]!==$t||e[6]!==ot?(ut={top:ot,bottom:Je,left:$t,right:gt},e[3]=gt,e[4]=Je,e[5]=$t,e[6]=ot,e[7]=ut):ut=e[7];const y=ut;let ue,xe,J,fe,me,de,F,pe,he,ge,ye,K,ve,Q,be,_,U,Oe;if(e[8]!==u||e[9]!==Ot||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==a||e[20]!==r||e[21]!==Me||e[22]!==B||e[23]!==o||e[24]!==M||e[25]!==V||e[26]!==D||e[27]!==R||e[28]!==vt||e[29]!==W||e[30]!==j||e[31]!==Z||e[32]!==X||e[33]!==y.bottom||e[34]!==y.left||e[35]!==y.right||e[36]!==y.top||e[37]!==bt||e[38]!==lt||e[39]!==rt||e[40]!==L||e[41]!==k||e[42]!==Y||e[43]!==q||e[44]!==Ze||e[45]!==Be||e[46]!==S||e[47]!==Ve||e[48]!==P||e[49]!==st||e[50]!==yt||e[51]!==Ge||e[52]!==We||e[53]!==ce||e[54]!==De||e[55]!==At||e[56]!==He||e[57]!==jt||e[58]!==s?.graphObjectValues||e[59]!==s?.regLine||e[60]!==s?.xAxis?.axis||e[61]!==s?.xAxis?.gridLines||e[62]!==s?.xAxis?.labels||e[63]!==s?.xAxis?.title||e[64]!==s?.yAxis?.gridLines||e[65]!==s?.yAxis?.labels||e[66]!==s?.yAxis?.title||e[67]!==ze||e[68]!==ae||e[69]!==O||e[70]!==m?.locale||e[71]!==m?.padZeros||e[72]!==m?.precision||e[73]!==m?.prefix||e[74]!==m?.suffix||e[75]!==G||e[76]!==p?.locale||e[77]!==p?.padZeros||e[78]!==p?.precision||e[79]!==p?.prefix||e[80]!==p?.suffix){const xt=o.map(ao),C=ae-y.left-y.right,A=R-y.top-y.bottom,b=o.filter(ro).length!==o.length?Si.sqrt().domain([0,bt]).range([.25,P]).nice():void 0,Ke=xt.filter(lo).length===0?xt.filter(so):$i.orderBy(xt.filter(no),"radius","desc"),x=yi.linear().domain([L,lt]).range([0,C]).nice(),h=yi.linear().domain([k,rt]).range([A,0]).nice(),Rt=x.ticks(Ze),ft=h.ticks(Be),It=Vi.Delaunay.from(Ke,t=>x(t.x),t=>h(t.y)).voronoi([0,0,C<0?0:C,A<0?0:A]),kt=mi.linearRegression(o.filter(oo).map(t=>[x(t.x),h(t.y)])),wt=mi.linearRegressionLine(kt);xe=Ft.motion.svg,pe=`${ae}px`,he=`${R}px`,ge=`0 0 ${ae} ${R}`,ye="ltr",K=Ct,J=`translate(${y.left},${y.top})`;let Pe;e[99]!==u||e[100]!==Me||e[101]!==j||e[102]!==x||e[103]!==h?(Pe=n.jsxRuntimeExports.jsx(ci.CustomArea,{areaSettings:Me,scaleX:x,scaleY:h,animate:u,isInView:j},"custom-area"),e[99]=u,e[100]=Me,e[101]=j,e[102]=x,e[103]=h,e[104]=Pe):Pe=e[104],fe=n.jsxRuntimeExports.jsxs(vi.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(Ei.HighlightAreaForScatterPlot,{areaSettings:vt,width:C,height:A,scaleX:x,scaleY:h,animate:u,isInView:j},"highlight-area"),Pe]});const c=s?.yAxis?.gridLines,mt=s?.yAxis?.labels;let Qe;e[105]!==c||e[106]!==mt?(Qe={gridLines:c,labels:mt},e[105]=c,e[106]=mt,e[107]=Qe):Qe=e[107];const _e=l?.yAxis?.gridLines,Tt=l?.yAxis?.labels;let Xe;e[108]!==_e||e[109]!==Tt?(Xe={gridLines:_e,labels:Tt},e[108]=_e,e[109]=Tt,e[110]=Xe):Xe=e[110];const Pt=h(k<0?0:k),I=h(k<0?0:k),Xt=C+y.right,Ye=k<0?0:k,f=p?.precision??2,T=p?.prefix||"",dt=p?.suffix||"",pt=p?.locale||"en",Yt=p?.padZeros||!1;let $e;e[111]!==Ye||e[112]!==f||e[113]!==T||e[114]!==dt||e[115]!==pt||e[116]!==Yt?($e=di.numberFormattingFunction(Ye,void 0,f,T,dt,pt,Yt),e[111]=Ye,e[112]=f,e[113]=T,e[114]=dt,e[115]=pt,e[116]=Yt,e[117]=$e):$e=e[117];const Lt=h(k<0?0:k);let ie;e[118]!==Lt?(ie={x:0,y:Lt,dy:"0.33em",dx:-4},e[118]=Lt,e[119]=ie):ie=e[119];const et=l?.xAxis?.axis,tt=l?.yAxis?.labels;let oe;e[120]!==et||e[121]!==tt?(oe={axis:et,label:tt},e[120]=et,e[121]=tt,e[122]=oe):oe=e[122];const ht=s?.xAxis?.axis;let ne;e[123]!==s?.yAxis?.labels?(ne=s?.yAxis?.labels||{},e[123]=s?.yAxis?.labels,e[124]=ne):ne=e[124];let se;e[125]!==ne?(se={textAnchor:"end",...ne},e[125]=ne,e[126]=se):se=e[126];let Re;e[127]!==ht||e[128]!==se?(Re={axis:ht,label:se},e[127]=ht,e[128]=se,e[129]=Re):Re=e[129];let it;e[130]!==Pt||e[131]!==I||e[132]!==Xt||e[133]!==$e||e[134]!==ie||e[135]!==oe||e[136]!==Re?(it=n.jsxRuntimeExports.jsx(pi.Axis,{y1:Pt,y2:I,x1:0,x2:Xt,label:$e,labelPos:ie,classNames:oe,styles:Re}),e[130]=Pt,e[131]=I,e[132]=Xt,e[133]=$e,e[134]=ie,e[135]=oe,e[136]=Re,e[137]=it):it=e[137];const ke=0-X-15,we=A/2,Le=s?.yAxis?.title,Ee=l?.yAxis?.title;let le;e[138]!==ke||e[139]!==we||e[140]!==Le||e[141]!==Ee||e[142]!==G?(le=n.jsxRuntimeExports.jsx(hi.AxisTitle,{x:ke,y:we,style:Le,className:Ee,text:G,rotate90:!0}),e[138]=ke,e[139]=we,e[140]=Le,e[141]=Ee,e[142]=G,e[143]=le):le=e[143],me=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(Li.YTicksAndGridLines,{values:ft.filter(io),y:ft.filter(to).map(t=>h(t)),x1:0,x2:C+y.right,styles:Qe,classNames:Xe,labelType:"secondary",showGridLines:!0,labelPos:"side",suffix:p?.suffix||"",prefix:p?.prefix||"",precision:p?.precision??2,locale:p?.locale||"en",padZeros:p?.padZeros||!1}),it,le]});const Ne=s?.xAxis?.gridLines,Se=s?.xAxis?.labels;let Fe;e[144]!==Ne||e[145]!==Se?(Fe={gridLines:Ne,labels:Se},e[144]=Ne,e[145]=Se,e[146]=Fe):Fe=e[146];const v=l?.xAxis?.gridLines,re=l?.xAxis?.labels;let Ut;e[147]!==v||e[148]!==re?(Ut={gridLines:v,labels:re},e[147]=v,e[148]=re,e[149]=Ut):Ut=e[149];const Wt=x(L<0?0:L),Zt=x(L<0?0:L),Bt=L<0?0:L,zt=m?.precision??2,Jt=m?.prefix||"",Kt=m?.suffix||"",Qt=m?.locale||"en",_t=m?.padZeros||!1;let Et;e[150]!==Bt||e[151]!==zt||e[152]!==Jt||e[153]!==Kt||e[154]!==Qt||e[155]!==_t?(Et=di.numberFormattingFunction(Bt,void 0,zt,Jt,Kt,Qt,_t),e[150]=Bt,e[151]=zt,e[152]=Jt,e[153]=Kt,e[154]=Qt,e[155]=_t,e[156]=Et):Et=e[156];const ei=x(L<0?0:L);let Nt;e[157]!==A||e[158]!==ei?(Nt={x:ei,y:A,dy:"1em",dx:0},e[157]=A,e[158]=ei,e[159]=Nt):Nt=e[159];const ti=l?.xAxis?.axis,ii=l?.yAxis?.labels;let St;e[160]!==ti||e[161]!==ii?(St={axis:ti,label:ii},e[160]=ti,e[161]=ii,e[162]=St):St=e[162];const oi=s?.xAxis?.axis;let Vt;e[163]!==s?.yAxis?.labels?(Vt=s?.yAxis?.labels||{},e[163]=s?.yAxis?.labels,e[164]=Vt):Vt=e[164];let Dt;e[165]!==Vt?(Dt={textAnchor:"middle",...Vt},e[165]=Vt,e[166]=Dt):Dt=e[166];let Mt;e[167]!==oi||e[168]!==Dt?(Mt={axis:oi,label:Dt},e[167]=oi,e[168]=Dt,e[169]=Mt):Mt=e[169];let Ht;e[170]!==A||e[171]!==Wt||e[172]!==Zt||e[173]!==Et||e[174]!==Nt||e[175]!==St||e[176]!==Mt?(Ht=n.jsxRuntimeExports.jsx(pi.Axis,{x1:Wt,x2:Zt,y1:0,y2:A,label:Et,labelPos:Nt,classNames:St,styles:Mt}),e[170]=A,e[171]=Wt,e[172]=Zt,e[173]=Et,e[174]=Nt,e[175]=St,e[176]=Mt,e[177]=Ht):Ht=e[177];const ni=C/2,si=A+30,li=s?.xAxis?.title,ri=l?.xAxis?.title;let Gt;e[178]!==ni||e[179]!==si||e[180]!==li||e[181]!==ri||e[182]!==O?(Gt=n.jsxRuntimeExports.jsx(hi.AxisTitle,{x:ni,y:si,style:li,className:ri,text:O}),e[178]=ni,e[179]=si,e[180]=li,e[181]=ri,e[182]=O,e[183]=Gt):Gt=e[183],de=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(ki.XTicksAndGridLines,{values:Rt.filter(eo),x:Rt.filter(_i).map(t=>x(t)),y1:0,y2:A,styles:Fe,classNames:Ut,labelType:"primary",showGridLines:!0,suffix:m?.suffix||"",prefix:m?.prefix||"",precision:m?.precision??2,locale:m?.locale||"en",padZeros:m?.padZeros||!1}),Ht,Gt]}),e[184]!==B?(F=B.filter(Qi).map(Ki),e[184]=B,e[185]=F):F=e[185],ue=vi.AnimatePresence,ve=ze&&Ke.map((t,Ue)=>n.jsxRuntimeExports.jsx("path",{d:It.renderCell(Ke.findIndex(w=>w.id===t.id)),opacity:jt?1:0,className:"stroke-primary-gray-700 dark:stroke-primary-gray-300",style:{fillOpacity:0,strokeWidth:1},onMouseEnter:w=>{qe(t),z(w.clientY),Ie(w.clientX),Ve?.(t)},onMouseMove:w=>{qe(t),z(w.clientY),Ie(w.clientX)},onMouseLeave:()=>{qe(void 0),Ie(void 0),z(void 0),Ve?.(void 0)},onClick:()=>{(S||V)&&(fi.isEqual(Y,t)&&We?(g(void 0),S?.(void 0)):(g(t),S?.(t)))}},`tesselation_${t.label||Ue}`)),Q=Ke.map((t,Ue)=>n.jsxRuntimeExports.jsxs(Ft.motion.g,{variants:{initial:{x:x(t.x),y:h(t.y),opacity:De?t.color&&r[a.indexOf(`${t.color}`)]===De?1:D:q?q.id===t.id?1:D:W?W.indexOf(t.label||"")!==-1?1:D:1},whileInView:{x:x(t.x),y:h(t.y),opacity:De?t.color&&r[a.indexOf(`${t.color}`)]===De?1:D:q?q.id===t.id?1:D:W?W.indexOf(t.label||"")!==-1?1:D:1,transition:{duration:u.duration}}},initial:"initial",animate:j?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},onMouseEnter:w=>{qe(t),z(w.clientY),Ie(w.clientX),Ve?.(t)},onMouseMove:w=>{qe(t),z(w.clientY),Ie(w.clientX)},onMouseLeave:()=>{qe(void 0),Ie(void 0),z(void 0),Ve?.(void 0)},onClick:()=>{(S||V)&&(fi.isEqual(Y,t)&&We?(g(void 0),S?.(void 0)):(g(t),S?.(t)))},children:[n.jsxRuntimeExports.jsx(Ft.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:u.duration}},variants:{initial:{r:0,fill:o.filter(Ji).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray,stroke:o.filter(zi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray},whileInView:{r:b?b(t.radius||0):P,fill:o.filter(Bi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray,stroke:o.filter(Zi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray,transition:{duration:u.duration}}},initial:"initial",animate:j?"whileInView":"initial",style:{fillOpacity:.6}}),He&&!$.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:b?b(t.radius||0):P,opacity:0,fill:Z||(o.filter(Wi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray)},whileInView:{x:b?b(t.radius||0):P,opacity:1,fill:Z||(o.filter(Gi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:j?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):W&&!$.checkIfNullOrUndefined(t.label)&&At&&W.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:b?b(t.radius||0):P,opacity:0,fill:Z||(o.filter(Hi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray)},whileInView:{x:b?b(t.radius||0):P,opacity:1,fill:Z||(o.filter(Ui).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:j?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Ue}`)),be=st.map((t,Ue)=>n.jsxRuntimeExports.jsx(gi.RefLineX,{text:t.text,color:t.color,x:x(t.value),y1:0,y2:A,textSide:x(t.value)>C*.75||ce?"left":"right",classNames:t.classNames,styles:t.styles,animate:u,isInView:j},Ue)),_=yt.map((t,Ue)=>n.jsxRuntimeExports.jsx(gi.RefLineY,{text:t.text,color:t.color,y:h(t.value),x1:0,x2:C,classNames:t.classNames,styles:t.styles,animate:u,isInView:j},Ue));const ai=Ot.map((t,Ue)=>{const w=ci.getLineEndPoint({x:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?x(t.xCoordinate):0,y:t.yCoordinate?h(t.yCoordinate):0},$.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),ji=t.showConnector?{y1:w.y,x1:w.x,y2:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?h(t.yCoordinate):0,cx:t.xCoordinate?x(t.xCoordinate):0,circleRadius:$.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,Ci={y:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:ce?0:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:ce?t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):C+y.right-(t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(ci.Annotation,{color:t.color,connectorsSettings:ji,labelSettings:Ci,text:t.text,classNames:t.classNames,styles:t.styles,animate:u,isInView:j},Ue)});e[186]!==ai?(U=n.jsxRuntimeExports.jsx("g",{children:ai}),e[186]=ai,e[187]=U):U=e[187],Oe=Ge?n.jsxRuntimeExports.jsx(wi.RegressionLine,{x1:0,x2:C,y1:wt(0),y2:wt(C),graphHeight:A,graphWidth:C,className:l?.regLine,style:s?.regLine,color:typeof Ge=="string"?Ge:void 0,animate:u,isInView:j}):null,e[8]=u,e[9]=Ot,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=a,e[20]=r,e[21]=Me,e[22]=B,e[23]=o,e[24]=M,e[25]=V,e[26]=D,e[27]=R,e[28]=vt,e[29]=W,e[30]=j,e[31]=Z,e[32]=X,e[33]=y.bottom,e[34]=y.left,e[35]=y.right,e[36]=y.top,e[37]=bt,e[38]=lt,e[39]=rt,e[40]=L,e[41]=k,e[42]=Y,e[43]=q,e[44]=Ze,e[45]=Be,e[46]=S,e[47]=Ve,e[48]=P,e[49]=st,e[50]=yt,e[51]=Ge,e[52]=We,e[53]=ce,e[54]=De,e[55]=At,e[56]=He,e[57]=jt,e[58]=s?.graphObjectValues,e[59]=s?.regLine,e[60]=s?.xAxis?.axis,e[61]=s?.xAxis?.gridLines,e[62]=s?.xAxis?.labels,e[63]=s?.xAxis?.title,e[64]=s?.yAxis?.gridLines,e[65]=s?.yAxis?.labels,e[66]=s?.yAxis?.title,e[67]=ze,e[68]=ae,e[69]=O,e[70]=m?.locale,e[71]=m?.padZeros,e[72]=m?.precision,e[73]=m?.prefix,e[74]=m?.suffix,e[75]=G,e[76]=p?.locale,e[77]=p?.padZeros,e[78]=p?.precision,e[79]=p?.prefix,e[80]=p?.suffix,e[81]=ue,e[82]=xe,e[83]=J,e[84]=fe,e[85]=me,e[86]=de,e[87]=F,e[88]=pe,e[89]=he,e[90]=ge,e[91]=ye,e[92]=K,e[93]=ve,e[94]=Q,e[95]=be,e[96]=_,e[97]=U,e[98]=Oe}else ue=e[81],xe=e[82],J=e[83],fe=e[84],me=e[85],de=e[86],F=e[87],pe=e[88],he=e[89],ge=e[90],ye=e[91],K=e[92],ve=e[93],Q=e[94],be=e[95],_=e[96],U=e[97],Oe=e[98];let Ae;e[188]!==ue||e[189]!==ve||e[190]!==Q||e[191]!==be||e[192]!==_||e[193]!==U||e[194]!==Oe?(Ae=n.jsxRuntimeExports.jsxs(ue,{children:[ve,Q,be,_,U,Oe]}),e[188]=ue,e[189]=ve,e[190]=Q,e[191]=be,e[192]=_,e[193]=U,e[194]=Oe,e[195]=Ae):Ae=e[195];let ee;e[196]!==B?(ee=B.filter(Fi).map(Yi),e[196]=B,e[197]=ee):ee=e[197];let te;e[198]!==J||e[199]!==fe||e[200]!==me||e[201]!==de||e[202]!==F||e[203]!==Ae||e[204]!==ee?(te=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[fe,me,de,F,Ae,ee]}),e[198]=J,e[199]=fe,e[200]=me,e[201]=de,e[202]=F,e[203]=Ae,e[204]=ee,e[205]=te):te=e[205];let E;e[206]!==xe||e[207]!==pe||e[208]!==he||e[209]!==ge||e[210]!==ye||e[211]!==K||e[212]!==te?(E=n.jsxRuntimeExports.jsx(xe,{width:pe,height:he,viewBox:ge,direction:ye,ref:K,children:te}),e[206]=xe,e[207]=pe,e[208]=he,e[209]=ge,e[210]=ye,e[211]=K,e[212]=te,e[213]=E):E=e[213];let je;e[214]!==l?.tooltip||e[215]!==d||e[216]!==ct||e[217]!==q||e[218]!==s?.tooltip||e[219]!==nt?(je=q&&nt&&d&&ct?n.jsxRuntimeExports.jsx(Ri.Tooltip,{data:q,body:nt,xPos:d,yPos:ct,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[214]=l?.tooltip,e[215]=d,e[216]=ct,e[217]=q,e[218]=s?.tooltip,e[219]=nt,e[220]=je):je=e[220];let Ce;e[221]!==l?.modal||e[222]!==V||e[223]!==Y?(Ce=V&&Y!==void 0?n.jsxRuntimeExports.jsx(Ni.DetailsModal,{body:V,data:Y,setData:g,className:l?.modal}):null,e[221]=l?.modal,e[222]=V,e[223]=Y,e[224]=Ce):Ce=e[224];let Te;return e[225]!==E||e[226]!==je||e[227]!==Ce?(Te=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[E,je,Ce]}),e[225]=E,e[226]=je,e[227]=Ce,e[228]=Te):Te=e[228],Te}function Yi(i){return i.layer}function Fi(i){return i.position==="after"}function Ui(i){return i.color}function Hi(i){return i.color}function Gi(i){return i.color}function Wi(i){return i.color}function Zi(i){return i.color}function Bi(i){return i.color}function zi(i){return i.color}function Ji(i){return i.color}function Ki(i){return i.layer}function Qi(i){return i.position==="before"}function _i(i){return i!==0}function eo(i){return i!==0}function to(i){return i!==0}function io(i){return i!==0}function oo(i){return!$.checkIfNullOrUndefined(i.x)&&!$.checkIfNullOrUndefined(i.y)}function no(i){return!$.checkIfNullOrUndefined(i.radius)&&!$.checkIfNullOrUndefined(i.x)&&!$.checkIfNullOrUndefined(i.y)}function so(i){return!$.checkIfNullOrUndefined(i.x)&&!$.checkIfNullOrUndefined(i.y)}function lo(i){return!$.checkIfNullOrUndefined(i.radius)}function ro(i){return i.radius===void 0||i.radius===null}function ao(i,e){return{...i,id:`${e}`}}function co(i){const e=n.compilerRuntimeExports.c(141),{data:o,graphTitle:ae,colors:R,sources:He,graphDescription:r,showLabels:a,height:P,width:O,footNote:G,colorDomain:X,defaultColor:gt,colorLegendTitle:ot,radius:qt,xAxisTitle:nt,yAxisTitle:Ve,padding:st,backgroundColor:yt,leftMargin:vt,rightMargin:De,topMargin:W,bottomMargin:bt,tooltip:lt,relativeHeight:L,onSeriesMouseOver:rt,refXValues:k,refYValues:S,highlightAreaSettings:ce,showColorScale:Ot,highlightedDataPoints:Me,showHighlightedDataPointsLabels:Ge,graphID:We,maxRadiusValue:V,maxXValue:Ze,minXValue:Be,maxYValue:Z,minYValue:s,onSeriesMouseClick:l,graphDownload:u,dataDownload:D,language:At,showNAColor:B,minHeight:jt,annotations:ze,customHighlightAreaSettings:m,theme:p,regressionLine:M,ariaLabel:Ct,resetSelectionOnDoubleClick:at,detailsOnClick:j,noOfXTicks:q,noOfYTicks:qe,labelColor:Y,styles:g,classNames:d,animate:Ie,dimmedOpacity:ct,customLayers:z,timeline:Je,showVoronoiTesselation:$t,useVoronoiInteraction:ut,xNumberDisplayOptions:y,yNumberDisplayOptions:ue}=i,xe=a===void 0?!1:a,J=gt===void 0?H.Colors.gray:gt,fe=qt===void 0?5:qt,me=nt===void 0?"X Axis":nt,de=Ve===void 0?"Y Axis":Ve,F=yt===void 0?!1:yt,pe=vt===void 0?0:vt,he=De===void 0?10:De,ge=W===void 0?20:W,ye=bt===void 0?50:bt;let K;e[0]!==k?(K=k===void 0?[]:k,e[0]=k,e[1]=K):K=e[1];const ve=K;let Q;e[2]!==S?(Q=S===void 0?[]:S,e[2]=S,e[3]=Q):Q=e[3];const be=Q;let _;e[4]!==ce?(_=ce===void 0?[]:ce,e[4]=ce,e[5]=_):_=e[5];const U=_,Oe=Ot===void 0?!0:Ot,Ae=Ge===void 0?!1:Ge,ee=u===void 0?!1:u,te=D===void 0?!1:D,E=At===void 0?"en":At,je=B===void 0?!0:B,Ce=jt===void 0?0:jt;let Te;e[6]!==ze?(Te=ze===void 0?[]:ze,e[6]=ze,e[7]=Te):Te=e[7];const xt=Te;let C;e[8]!==m?(C=m===void 0?[]:m,e[8]=m,e[9]=C):C=e[9];const A=C,b=p===void 0?"light":p,Ke=M===void 0?!1:M,x=at===void 0?!0:at,h=q===void 0?5:q,Rt=qe===void 0?5:qe,ft=Ie===void 0?!1:Ie,It=ct===void 0?.3:ct;let kt;e[10]!==z?(kt=z===void 0?[]:z,e[10]=z,e[11]=kt):kt=e[11];const wt=kt;let Pe;e[12]!==Je?(Pe=Je===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:Je,e[12]=Je,e[13]=Pe):Pe=e[13];const c=Pe,mt=$t===void 0?!1:$t,Qe=ut===void 0?!0:ut,[_e,Tt]=N.useState(0),[Xe,Pt]=N.useState(0),[I,Xt]=N.useState(c.autoplay);let Ye;if(e[14]!==o||e[15]!==c.dateFormat){let v;e[17]!==c.dateFormat?(v=re=>ui.parse(`${re.date}`,c.dateFormat||"yyyy",new Date).getTime(),e[17]=c.dateFormat,e[18]=v):v=e[18],Ye=[...new Set(o.filter(Po).map(v))],Ye.sort(To),e[14]=o,e[15]=c.dateFormat,e[16]=Ye}else Ye=e[16];const f=Ye,[T,dt]=N.useState(c.autoplay?0:f.length-1),[pt,Yt]=N.useState(void 0),$e=N.useRef(null),Lt=N.useRef(null);let ie,et;e[19]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>{const v=new ResizeObserver(re=>{Tt(re[0].target.clientWidth||620),Pt(re[0].target.clientHeight||480)});return $e.current&&v.observe($e.current),()=>v.disconnect()},et=[],e[19]=ie,e[20]=et):(ie=e[19],et=e[20]),N.useEffect(ie,et);let tt,oe;e[21]!==I||e[22]!==c.speed||e[23]!==f?(tt=()=>{const v=setInterval(()=>{dt(re=>re<f.length-1?re+1:0)},(c.speed||2)*1e3);return I||clearInterval(v),()=>clearInterval(v)},oe=[f,I,c.speed],e[21]=I,e[22]=c.speed,e[23]=f,e[24]=tt,e[25]=oe):(tt=e[24],oe=e[25]),N.useEffect(tt,oe);const ht=c.dateFormat||"yyyy";let ne;e[26]!==T||e[27]!==ht||e[28]!==c.showOnlyActiveDate||e[29]!==f?(ne=xi.getSliderMarks(f,T,c.showOnlyActiveDate,ht),e[26]=T,e[27]=ht,e[28]=c.showOnlyActiveDate,e[29]=f,e[30]=ne):ne=e[30];const se=ne,Re=d?.graphContainer,it=g?.graphContainer;let ke;e[31]!==d?.description||e[32]!==d?.title||e[33]!==o||e[34]!==te||e[35]!==r||e[36]!==ee||e[37]!==ae||e[38]!==g?.description||e[39]!==g?.title||e[40]!==O?(ke=ae||r||ee||te?n.jsxRuntimeExports.jsx(qi.GraphHeader,{styles:{title:g?.title,description:g?.description},classNames:{title:d?.title,description:d?.description},graphTitle:ae,graphDescription:r,width:O,graphDownload:ee?Lt:void 0,dataDownload:te?o.map(Io).filter(qo).length>0?o.map(Mo).filter(Do):o.filter(Vo):null}):null,e[31]=d?.description,e[32]=d?.title,e[33]=o,e[34]=te,e[35]=r,e[36]=ee,e[37]=ae,e[38]=g?.description,e[39]=g?.title,e[40]=O,e[41]=ke):ke=e[41];let we;e[42]!==T||e[43]!==se||e[44]!==I||e[45]!==c.enabled||e[46]!==f?(we=c.enabled&&f.length>0&&se?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Xt(!I)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":I?"Click to pause animation":"Click to play animation",children:I?n.jsxRuntimeExports.jsx(bi.Pause,{}):n.jsxRuntimeExports.jsx(bi.Play,{})}),n.jsxRuntimeExports.jsx(xi.Nr,{min:f[0],max:f[f.length-1],marks:se,step:null,defaultValue:f[f.length-1],value:f[T],onChangeComplete:v=>{dt(f.indexOf(v))},onChange:v=>{dt(f.indexOf(v))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[42]=T,e[43]=se,e[44]=I,e[45]=c.enabled,e[46]=f,e[47]=we):we=e[47];let Le;e[48]!==d?.colorLegend||e[49]!==X||e[50]!==ot||e[51]!==R||e[52]!==o||e[53]!==Oe||e[54]!==je||e[55]!==b||e[56]!==O?(Le=Oe&&o.filter(So).length!==0&&o.length>0?n.jsxRuntimeExports.jsx(Ii.ColorLegendWithMouseOver,{width:O,colorLegendTitle:ot,colors:R||H.Colors[b].categoricalColors.colors,colorDomain:X||Oi.uniqBy(o,"color",!0),setSelectedColor:Yt,showNAColor:je,className:d?.colorLegend}):null,e[48]=d?.colorLegend,e[49]=X,e[50]=ot,e[51]=R,e[52]=o,e[53]=Oe,e[54]=je,e[55]=b,e[56]=O,e[57]=Le):Le=e[57];let Ee;e[58]!==o.length?(Ee=o.length===0&&n.jsxRuntimeExports.jsx(Ti.EmptyState,{}),e[58]=o.length,e[59]=Ee):Ee=e[59];let le;e[60]!==ft||e[61]!==xt||e[62]!==ye||e[63]!==d||e[64]!==X||e[65]!==R||e[66]!==A||e[67]!==wt||e[68]!==o||e[69]!==J||e[70]!==j||e[71]!==It||e[72]!==U||e[73]!==Me||e[74]!==T||e[75]!==Y||e[76]!==E||e[77]!==pe||e[78]!==V||e[79]!==Ze||e[80]!==Z||e[81]!==Be||e[82]!==s||e[83]!==h||e[84]!==Rt||e[85]!==l||e[86]!==rt||e[87]!==fe||e[88]!==ve||e[89]!==be||e[90]!==Ke||e[91]!==x||e[92]!==he||e[93]!==pt||e[94]!==Ae||e[95]!==xe||e[96]!==mt||e[97]!==g||e[98]!==Xe||e[99]!==_e||e[100]!==b||e[101]!==c.dateFormat||e[102]!==c.enabled||e[103]!==lt||e[104]!==ge||e[105]!==f||e[106]!==Qe||e[107]!==me||e[108]!==y||e[109]!==de||e[110]!==ue?(le=_e&&Xe&&o.length>0?n.jsxRuntimeExports.jsx(Xi,{data:Pi.ensureCompleteDataForScatterPlot(o,c.dateFormat||"yyyy").filter(v=>c.enabled?`${v.date}`===ui.format(new Date(f[T]),c.dateFormat||"yyyy"):v),width:_e,height:Xe,colorDomain:o.filter(No).length===0?[]:X||Oi.uniqBy(o,"color",!0),colors:o.filter(Eo).length===0?R?typeof R=="string"?[R]:[R[0]]:[J||H.Colors.primaryColors["blue-600"]]:R||H.Colors[b].categoricalColors.colors,xAxisTitle:me,yAxisTitle:de,refXValues:ve,refYValues:be,showLabels:xe,radius:fe,leftMargin:pe,rightMargin:he,topMargin:ge,bottomMargin:ye,tooltip:lt,onSeriesMouseOver:rt,highlightAreaSettings:U,showVoronoiTesselation:mt,highlightedDataPoints:o.filter(Lo).length===0?[]:Me,showHighlightedDataPointsLabels:Ae,selectedColor:pt,maxRadiusValue:$.checkIfNullOrUndefined(V)?Math.max(...o.map(wo).filter(ko)):V,maxXValue:$.checkIfNullOrUndefined(Ze)?Math.max(...o.map(Ro).filter($o))>0?Math.max(...o.map(Co).filter(jo)):0:Ze,minXValue:$.checkIfNullOrUndefined(Be)?Math.min(...o.map(Ao).filter(Oo))>0?0:Math.min(...o.map(bo).filter(vo)):Be,maxYValue:$.checkIfNullOrUndefined(Z)?Math.max(...o.map(yo).filter(go))>0?Math.max(...o.map(ho).filter(po)):0:Z,minYValue:$.checkIfNullOrUndefined(s)?Math.min(...o.map(mo).filter(fo))>0?0:Math.min(...o.map(xo).filter(uo)):s,onSeriesMouseClick:l,rtl:E==="he"||E==="ar",annotations:xt,customHighlightAreaSettings:A,regressionLine:Ke,resetSelectionOnDoubleClick:x,detailsOnClick:j,noOfXTicks:h,noOfYTicks:Rt,labelColor:Y,styles:g,classNames:d,animate:ft===!0?{duration:.5,once:!0,amount:.5}:ft||{duration:0,once:!0,amount:0},dimmedOpacity:It,customLayers:wt,useVoronoiInteraction:Qe,xNumberDisplayOptions:y,yNumberDisplayOptions:ue,defaultColor:J}):null,e[60]=ft,e[61]=xt,e[62]=ye,e[63]=d,e[64]=X,e[65]=R,e[66]=A,e[67]=wt,e[68]=o,e[69]=J,e[70]=j,e[71]=It,e[72]=U,e[73]=Me,e[74]=T,e[75]=Y,e[76]=E,e[77]=pe,e[78]=V,e[79]=Ze,e[80]=Z,e[81]=Be,e[82]=s,e[83]=h,e[84]=Rt,e[85]=l,e[86]=rt,e[87]=fe,e[88]=ve,e[89]=be,e[90]=Ke,e[91]=x,e[92]=he,e[93]=pt,e[94]=Ae,e[95]=xe,e[96]=mt,e[97]=g,e[98]=Xe,e[99]=_e,e[100]=b,e[101]=c.dateFormat,e[102]=c.enabled,e[103]=lt,e[104]=ge,e[105]=f,e[106]=Qe,e[107]=me,e[108]=y,e[109]=de,e[110]=ue,e[111]=le):le=e[111];let Ne;e[112]!==Ee||e[113]!==le?(Ne=n.jsxRuntimeExports.jsxs(Ai.GraphArea,{ref:$e,children:[Ee,le]}),e[112]=Ee,e[113]=le,e[114]=Ne):Ne=e[114];let Se;e[115]!==d?.footnote||e[116]!==d?.source||e[117]!==G||e[118]!==He||e[119]!==g?.footnote||e[120]!==g?.source||e[121]!==O?(Se=He||G?n.jsxRuntimeExports.jsx(Mi.GraphFooter,{styles:{footnote:g?.footnote,source:g?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:He,footNote:G,width:O}):null,e[115]=d?.footnote,e[116]=d?.source,e[117]=G,e[118]=He,e[119]=g?.footnote,e[120]=g?.source,e[121]=O,e[122]=Se):Se=e[122];let Fe;return e[123]!==Ct||e[124]!==F||e[125]!==We||e[126]!==P||e[127]!==E||e[128]!==Ce||e[129]!==st||e[130]!==L||e[131]!==Re||e[132]!==it||e[133]!==ke||e[134]!==we||e[135]!==Le||e[136]!==Ne||e[137]!==Se||e[138]!==b||e[139]!==O?(Fe=n.jsxRuntimeExports.jsxs(Ai.GraphContainer,{className:Re,style:it,id:We,ref:Lt,"aria-label":Ct,backgroundColor:F,theme:b,language:E,minHeight:Ce,width:O,height:P,relativeHeight:L,padding:st,children:[ke,we,Le,Ne,Se]}),e[123]=Ct,e[124]=F,e[125]=We,e[126]=P,e[127]=E,e[128]=Ce,e[129]=st,e[130]=L,e[131]=Re,e[132]=it,e[133]=ke,e[134]=we,e[135]=Le,e[136]=Ne,e[137]=Se,e[138]=b,e[139]=O,e[140]=Fe):Fe=e[140],Fe}function uo(i){return i!=null}function xo(i){return i.y}function fo(i){return i!=null}function mo(i){return i.y}function po(i){return i!=null}function ho(i){return i.y}function go(i){return i!=null}function yo(i){return i.y}function vo(i){return i!=null}function bo(i){return i.x}function Oo(i){return i!=null}function Ao(i){return i.x}function jo(i){return i!=null}function Co(i){return i.x}function $o(i){return i!=null}function Ro(i){return i.x}function ko(i){return i!=null}function wo(i){return i.radius}function Lo(i){return i.label}function Eo(i){return i.color}function No(i){return i.color}function So(i){return i.color}function Vo(i){return i!==void 0}function Do(i){return i!==void 0}function Mo(i){return i.data}function qo(i){return i!==void 0}function Io(i){return i.data}function To(i,e){return i-e}function Po(i){return i.date}exports.ScatterPlot=co;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-D4pAp7u0.cjs"),ui=require("./parse-xYI9yrvL.cjs"),N=require("react"),xi=require("./getSliderMarks-BzrpHrHS.cjs"),fi=require("./index-DQA8q5sC.cjs"),$i=require("./index-Cno4Q0YE.cjs"),mi=require("./simple-statistics-xm8c0LQQ.cjs"),ki=require("./Tooltip-C9F3uYG0.cjs"),k=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),H=require("./Colors.cjs"),di=require("./numberFormattingFunction-u2iNHL_c.cjs"),ci=require("./customArea-BAcQ3pBM.cjs"),pi=require("./Axis-BTaS9oPQ.cjs"),hi=require("./AxisTitle-DP_evhbe.cjs"),Ri=require("./XTicksAndGridLines-B4UhDVyU.cjs"),gi=require("./ReferenceLine-CpU4G01Y.cjs"),wi=require("./RegressionLine-BFoBiVJk.cjs"),Li=require("./YTicksAndGridLines-sT3zdCs6.cjs"),Ei=require("./index-BuhBhuCq.cjs"),Ni=require("./DetailsModal-Du8Fr1QD.cjs"),Si=require("./pow-BnyPO-NX.cjs"),yi=require("./linear-CgUCbw9F.cjs"),Vi=require("./delaunay-rcy0HhZi.cjs"),Ft=require("./proxy-CqH8m8IQ.cjs"),Di=require("./use-in-view-dnRv_qqF.cjs"),vi=require("./index-FXfr51ZM.cjs"),Mi=require("./GraphFooter.cjs"),qi=require("./GraphHeader.cjs"),Ii=require("./ColorLegendWithMouseOver.cjs"),Ti=require("./EmptyState-CFmiFPHz.cjs"),bi=require("./index-BhI7mBJx.cjs"),Pi=require("./ensureCompleteData-D9bQTiVS.cjs"),Oi=require("./uniqBy-O05lp2S5.cjs"),Ai=require("./GraphContainer-Cul9b74X.cjs");function Xi(i){const e=n.compilerRuntimeExports.c(229),{data:o,width:re,height:j,showLabels:He,colors:r,colorDomain:a,radius:P,xAxisTitle:O,yAxisTitle:G,leftMargin:X,rightMargin:gt,topMargin:ot,bottomMargin:qt,tooltip:nt,onSeriesMouseOver:Ve,refXValues:st,refYValues:yt,highlightAreaSettings:vt,selectedColor:De,highlightedDataPoints:W,maxRadiusValue:bt,maxXValue:lt,minXValue:L,maxYValue:rt,minYValue:R,onSeriesMouseClick:S,rtl:ae,annotations:Ot,customHighlightAreaSettings:Me,regressionLine:Ge,resetSelectionOnDoubleClick:We,detailsOnClick:V,noOfXTicks:Ze,noOfYTicks:Be,labelColor:Z,styles:s,classNames:l,animate:u,dimmedOpacity:D,showHighlightedDataPointsLabels:At,customLayers:B,showVoronoiTesselation:jt,useVoronoiInteraction:ze,xNumberDisplayOptions:m,yNumberDisplayOptions:p,fallbackColor:M}=i,Ct=N.useRef(null);let at;e[0]!==u.amount||e[1]!==u.once?(at={once:u.once,amount:u.amount},e[0]=u.amount,e[1]=u.once,e[2]=at):at=e[2];const C=Di.useInView(Ct,at),[q,qe]=N.useState(void 0),[Y,g]=N.useState(void 0),[d,Ie]=N.useState(void 0),[ct,z]=N.useState(void 0),Je=O?qt+50:qt,$t=G?X+30:X;let ut;e[3]!==gt||e[4]!==Je||e[5]!==$t||e[6]!==ot?(ut={top:ot,bottom:Je,left:$t,right:gt},e[3]=gt,e[4]=Je,e[5]=$t,e[6]=ot,e[7]=ut):ut=e[7];const y=ut;let ce,ue,xe,fe,me,de,F,pe,he,ge,ye,J,ve,K,be,Q,U,Oe;if(e[8]!==u||e[9]!==Ot||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==a||e[20]!==r||e[21]!==Me||e[22]!==B||e[23]!==o||e[24]!==V||e[25]!==D||e[26]!==M||e[27]!==j||e[28]!==vt||e[29]!==W||e[30]!==C||e[31]!==Z||e[32]!==X||e[33]!==y.bottom||e[34]!==y.left||e[35]!==y.right||e[36]!==y.top||e[37]!==bt||e[38]!==lt||e[39]!==rt||e[40]!==L||e[41]!==R||e[42]!==Y||e[43]!==q||e[44]!==Ze||e[45]!==Be||e[46]!==S||e[47]!==Ve||e[48]!==P||e[49]!==st||e[50]!==yt||e[51]!==Ge||e[52]!==We||e[53]!==ae||e[54]!==De||e[55]!==At||e[56]!==He||e[57]!==jt||e[58]!==s?.graphObjectValues||e[59]!==s?.regLine||e[60]!==s?.xAxis?.axis||e[61]!==s?.xAxis?.gridLines||e[62]!==s?.xAxis?.labels||e[63]!==s?.xAxis?.title||e[64]!==s?.yAxis?.gridLines||e[65]!==s?.yAxis?.labels||e[66]!==s?.yAxis?.title||e[67]!==ze||e[68]!==re||e[69]!==O||e[70]!==m?.locale||e[71]!==m?.padZeros||e[72]!==m?.precision||e[73]!==m?.prefix||e[74]!==m?.suffix||e[75]!==G||e[76]!==p?.locale||e[77]!==p?.padZeros||e[78]!==p?.precision||e[79]!==p?.prefix||e[80]!==p?.suffix){const xt=o.map(ao),$=re-y.left-y.right,A=j-y.top-y.bottom,b=o.filter(ro).length!==o.length?Si.sqrt().domain([0,bt]).range([.25,P]).nice():void 0,Ke=xt.filter(lo).length===0?xt.filter(so):$i.orderBy(xt.filter(no),"radius","desc"),x=yi.linear().domain([L,lt]).range([0,$]).nice(),h=yi.linear().domain([R,rt]).range([A,0]).nice(),kt=x.ticks(Ze),ft=h.ticks(Be),It=Vi.Delaunay.from(Ke,t=>x(t.x),t=>h(t.y)).voronoi([0,0,$<0?0:$,A<0?0:A]),Rt=mi.linearRegression(o.filter(oo).map(t=>[x(t.x),h(t.y)])),wt=mi.linearRegressionLine(Rt);ue=Ft.motion.svg,pe=`${re}px`,he=`${j}px`,ge=`0 0 ${re} ${j}`,ye="ltr",J=Ct,xe=`translate(${y.left},${y.top})`;let Pe;e[99]!==u||e[100]!==Me||e[101]!==C||e[102]!==x||e[103]!==h?(Pe=n.jsxRuntimeExports.jsx(ci.CustomArea,{areaSettings:Me,scaleX:x,scaleY:h,animate:u,isInView:C},"custom-area"),e[99]=u,e[100]=Me,e[101]=C,e[102]=x,e[103]=h,e[104]=Pe):Pe=e[104],fe=n.jsxRuntimeExports.jsxs(vi.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(Ei.HighlightAreaForScatterPlot,{areaSettings:vt,width:$,height:A,scaleX:x,scaleY:h,animate:u,isInView:C},"highlight-area"),Pe]});const c=s?.yAxis?.gridLines,mt=s?.yAxis?.labels;let Qe;e[105]!==c||e[106]!==mt?(Qe={gridLines:c,labels:mt},e[105]=c,e[106]=mt,e[107]=Qe):Qe=e[107];const _e=l?.yAxis?.gridLines,Tt=l?.yAxis?.labels;let Xe;e[108]!==_e||e[109]!==Tt?(Xe={gridLines:_e,labels:Tt},e[108]=_e,e[109]=Tt,e[110]=Xe):Xe=e[110];const Pt=h(R<0?0:R),I=h(R<0?0:R),Xt=$+y.right,Ye=R<0?0:R,f=p?.precision??2,T=p?.prefix||"",dt=p?.suffix||"",pt=p?.locale||"en",Yt=p?.padZeros||!1;let $e;e[111]!==Ye||e[112]!==f||e[113]!==T||e[114]!==dt||e[115]!==pt||e[116]!==Yt?($e=di.numberFormattingFunction(Ye,void 0,f,T,dt,pt,Yt),e[111]=Ye,e[112]=f,e[113]=T,e[114]=dt,e[115]=pt,e[116]=Yt,e[117]=$e):$e=e[117];const Lt=h(R<0?0:R);let te;e[118]!==Lt?(te={x:0,y:Lt,dy:"0.33em",dx:-4},e[118]=Lt,e[119]=te):te=e[119];const et=l?.xAxis?.axis,tt=l?.yAxis?.labels;let ie;e[120]!==et||e[121]!==tt?(ie={axis:et,label:tt},e[120]=et,e[121]=tt,e[122]=ie):ie=e[122];const ht=s?.xAxis?.axis;let oe;e[123]!==s?.yAxis?.labels?(oe=s?.yAxis?.labels||{},e[123]=s?.yAxis?.labels,e[124]=oe):oe=e[124];let ne;e[125]!==oe?(ne={textAnchor:"end",...oe},e[125]=oe,e[126]=ne):ne=e[126];let ke;e[127]!==ht||e[128]!==ne?(ke={axis:ht,label:ne},e[127]=ht,e[128]=ne,e[129]=ke):ke=e[129];let it;e[130]!==Pt||e[131]!==I||e[132]!==Xt||e[133]!==$e||e[134]!==te||e[135]!==ie||e[136]!==ke?(it=n.jsxRuntimeExports.jsx(pi.Axis,{y1:Pt,y2:I,x1:0,x2:Xt,label:$e,labelPos:te,classNames:ie,styles:ke}),e[130]=Pt,e[131]=I,e[132]=Xt,e[133]=$e,e[134]=te,e[135]=ie,e[136]=ke,e[137]=it):it=e[137];const Re=0-X-15,we=A/2,Le=s?.yAxis?.title,Ee=l?.yAxis?.title;let se;e[138]!==Re||e[139]!==we||e[140]!==Le||e[141]!==Ee||e[142]!==G?(se=n.jsxRuntimeExports.jsx(hi.AxisTitle,{x:Re,y:we,style:Le,className:Ee,text:G,rotate90:!0}),e[138]=Re,e[139]=we,e[140]=Le,e[141]=Ee,e[142]=G,e[143]=se):se=e[143],me=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(Li.YTicksAndGridLines,{values:ft.filter(io),y:ft.filter(to).map(t=>h(t)),x1:0,x2:$+y.right,styles:Qe,classNames:Xe,labelType:"secondary",showGridLines:!0,labelPos:"side",suffix:p?.suffix||"",prefix:p?.prefix||"",precision:p?.precision??2,locale:p?.locale||"en",padZeros:p?.padZeros||!1}),it,se]});const Ne=s?.xAxis?.gridLines,Se=s?.xAxis?.labels;let Fe;e[144]!==Ne||e[145]!==Se?(Fe={gridLines:Ne,labels:Se},e[144]=Ne,e[145]=Se,e[146]=Fe):Fe=e[146];const v=l?.xAxis?.gridLines,le=l?.xAxis?.labels;let Ut;e[147]!==v||e[148]!==le?(Ut={gridLines:v,labels:le},e[147]=v,e[148]=le,e[149]=Ut):Ut=e[149];const Wt=x(L<0?0:L),Zt=x(L<0?0:L),Bt=L<0?0:L,zt=m?.precision??2,Jt=m?.prefix||"",Kt=m?.suffix||"",Qt=m?.locale||"en",_t=m?.padZeros||!1;let Et;e[150]!==Bt||e[151]!==zt||e[152]!==Jt||e[153]!==Kt||e[154]!==Qt||e[155]!==_t?(Et=di.numberFormattingFunction(Bt,void 0,zt,Jt,Kt,Qt,_t),e[150]=Bt,e[151]=zt,e[152]=Jt,e[153]=Kt,e[154]=Qt,e[155]=_t,e[156]=Et):Et=e[156];const ei=x(L<0?0:L);let Nt;e[157]!==A||e[158]!==ei?(Nt={x:ei,y:A,dy:"1em",dx:0},e[157]=A,e[158]=ei,e[159]=Nt):Nt=e[159];const ti=l?.xAxis?.axis,ii=l?.yAxis?.labels;let St;e[160]!==ti||e[161]!==ii?(St={axis:ti,label:ii},e[160]=ti,e[161]=ii,e[162]=St):St=e[162];const oi=s?.xAxis?.axis;let Vt;e[163]!==s?.yAxis?.labels?(Vt=s?.yAxis?.labels||{},e[163]=s?.yAxis?.labels,e[164]=Vt):Vt=e[164];let Dt;e[165]!==Vt?(Dt={textAnchor:"middle",...Vt},e[165]=Vt,e[166]=Dt):Dt=e[166];let Mt;e[167]!==oi||e[168]!==Dt?(Mt={axis:oi,label:Dt},e[167]=oi,e[168]=Dt,e[169]=Mt):Mt=e[169];let Ht;e[170]!==A||e[171]!==Wt||e[172]!==Zt||e[173]!==Et||e[174]!==Nt||e[175]!==St||e[176]!==Mt?(Ht=n.jsxRuntimeExports.jsx(pi.Axis,{x1:Wt,x2:Zt,y1:0,y2:A,label:Et,labelPos:Nt,classNames:St,styles:Mt}),e[170]=A,e[171]=Wt,e[172]=Zt,e[173]=Et,e[174]=Nt,e[175]=St,e[176]=Mt,e[177]=Ht):Ht=e[177];const ni=$/2,si=A+30,li=s?.xAxis?.title,ri=l?.xAxis?.title;let Gt;e[178]!==ni||e[179]!==si||e[180]!==li||e[181]!==ri||e[182]!==O?(Gt=n.jsxRuntimeExports.jsx(hi.AxisTitle,{x:ni,y:si,style:li,className:ri,text:O}),e[178]=ni,e[179]=si,e[180]=li,e[181]=ri,e[182]=O,e[183]=Gt):Gt=e[183],de=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(Ri.XTicksAndGridLines,{values:kt.filter(eo),x:kt.filter(_i).map(t=>x(t)),y1:0,y2:A,styles:Fe,classNames:Ut,labelType:"primary",showGridLines:!0,suffix:m?.suffix||"",prefix:m?.prefix||"",precision:m?.precision??2,locale:m?.locale||"en",padZeros:m?.padZeros||!1}),Ht,Gt]}),e[184]!==B?(F=B.filter(Qi).map(Ki),e[184]=B,e[185]=F):F=e[185],ce=vi.AnimatePresence,ve=ze&&Ke.map((t,Ue)=>n.jsxRuntimeExports.jsx("path",{d:It.renderCell(Ke.findIndex(w=>w.id===t.id)),opacity:jt?1:0,className:"stroke-primary-gray-700 dark:stroke-primary-gray-300",style:{fillOpacity:0,strokeWidth:1},onMouseEnter:w=>{qe(t),z(w.clientY),Ie(w.clientX),Ve?.(t)},onMouseMove:w=>{qe(t),z(w.clientY),Ie(w.clientX)},onMouseLeave:()=>{qe(void 0),Ie(void 0),z(void 0),Ve?.(void 0)},onClick:()=>{(S||V)&&(fi.isEqual(Y,t)&&We?(g(void 0),S?.(void 0)):(g(t),S?.(t)))}},`tesselation_${t.label||Ue}`)),K=Ke.map((t,Ue)=>n.jsxRuntimeExports.jsxs(Ft.motion.g,{variants:{initial:{x:x(t.x),y:h(t.y),opacity:De?t.color&&r[a.indexOf(`${t.color}`)]===De?1:D:q?q.id===t.id?1:D:W?W.indexOf(t.label||"")!==-1?1:D:1},whileInView:{x:x(t.x),y:h(t.y),opacity:De?t.color&&r[a.indexOf(`${t.color}`)]===De?1:D:q?q.id===t.id?1:D:W?W.indexOf(t.label||"")!==-1?1:D:1,transition:{duration:u.duration}}},initial:"initial",animate:C?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},onMouseEnter:w=>{qe(t),z(w.clientY),Ie(w.clientX),Ve?.(t)},onMouseMove:w=>{qe(t),z(w.clientY),Ie(w.clientX)},onMouseLeave:()=>{qe(void 0),Ie(void 0),z(void 0),Ve?.(void 0)},onClick:()=>{(S||V)&&(fi.isEqual(Y,t)&&We?(g(void 0),S?.(void 0)):(g(t),S?.(t)))},children:[n.jsxRuntimeExports.jsx(Ft.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:u.duration}},variants:{initial:{r:0,fill:o.filter(Ji).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray,stroke:o.filter(zi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray},whileInView:{r:b?b(t.radius||0):P,fill:o.filter(Bi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray,stroke:o.filter(Zi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray,transition:{duration:u.duration}}},initial:"initial",animate:C?"whileInView":"initial",style:{fillOpacity:.6}}),He&&!k.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:b?b(t.radius||0):P,opacity:0,fill:Z||(o.filter(Wi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray)},whileInView:{x:b?b(t.radius||0):P,opacity:1,fill:Z||(o.filter(Gi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:C?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):W&&!k.checkIfNullOrUndefined(t.label)&&At&&W.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Ft.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:b?b(t.radius||0):P,opacity:0,fill:Z||(o.filter(Hi).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray)},whileInView:{x:b?b(t.radius||0):P,opacity:1,fill:Z||(o.filter(Ui).length===0?r[0]:t.color?a.indexOf(`${t.color}`)===-1||a.indexOf(`${t.color}`)>r.length-1?M:r[a.indexOf(`${t.color}`)]:H.Colors.gray),transition:{duration:u.duration}}},initial:"initial",animate:C?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Ue}`)),be=st.map((t,Ue)=>n.jsxRuntimeExports.jsx(gi.RefLineX,{text:t.text,color:t.color,x:x(t.value),y1:0,y2:A,textSide:x(t.value)>$*.75||ae?"left":"right",classNames:t.classNames,styles:t.styles,animate:u,isInView:C},Ue)),Q=yt.map((t,Ue)=>n.jsxRuntimeExports.jsx(gi.RefLineY,{text:t.text,color:t.color,y:h(t.value),x1:0,x2:$,classNames:t.classNames,styles:t.styles,animate:u,isInView:C},Ue));const ai=Ot.map((t,Ue)=>{const w=ci.getLineEndPoint({x:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?x(t.xCoordinate):0,y:t.yCoordinate?h(t.yCoordinate):0},k.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),ji=t.showConnector?{y1:w.y,x1:w.x,y2:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?h(t.yCoordinate):0,cx:t.xCoordinate?x(t.xCoordinate):0,circleRadius:k.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,Ci={y:t.yCoordinate?h(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:ae?0:t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:ae?t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):$+y.right-(t.xCoordinate?x(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(ci.Annotation,{color:t.color,connectorsSettings:ji,labelSettings:Ci,text:t.text,classNames:t.classNames,styles:t.styles,animate:u,isInView:C},Ue)});e[186]!==ai?(U=n.jsxRuntimeExports.jsx("g",{children:ai}),e[186]=ai,e[187]=U):U=e[187],Oe=Ge?n.jsxRuntimeExports.jsx(wi.RegressionLine,{x1:0,x2:$,y1:wt(0),y2:wt($),graphHeight:A,graphWidth:$,className:l?.regLine,style:s?.regLine,color:typeof Ge=="string"?Ge:void 0,animate:u,isInView:C}):null,e[8]=u,e[9]=Ot,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=a,e[20]=r,e[21]=Me,e[22]=B,e[23]=o,e[24]=V,e[25]=D,e[26]=M,e[27]=j,e[28]=vt,e[29]=W,e[30]=C,e[31]=Z,e[32]=X,e[33]=y.bottom,e[34]=y.left,e[35]=y.right,e[36]=y.top,e[37]=bt,e[38]=lt,e[39]=rt,e[40]=L,e[41]=R,e[42]=Y,e[43]=q,e[44]=Ze,e[45]=Be,e[46]=S,e[47]=Ve,e[48]=P,e[49]=st,e[50]=yt,e[51]=Ge,e[52]=We,e[53]=ae,e[54]=De,e[55]=At,e[56]=He,e[57]=jt,e[58]=s?.graphObjectValues,e[59]=s?.regLine,e[60]=s?.xAxis?.axis,e[61]=s?.xAxis?.gridLines,e[62]=s?.xAxis?.labels,e[63]=s?.xAxis?.title,e[64]=s?.yAxis?.gridLines,e[65]=s?.yAxis?.labels,e[66]=s?.yAxis?.title,e[67]=ze,e[68]=re,e[69]=O,e[70]=m?.locale,e[71]=m?.padZeros,e[72]=m?.precision,e[73]=m?.prefix,e[74]=m?.suffix,e[75]=G,e[76]=p?.locale,e[77]=p?.padZeros,e[78]=p?.precision,e[79]=p?.prefix,e[80]=p?.suffix,e[81]=ce,e[82]=ue,e[83]=xe,e[84]=fe,e[85]=me,e[86]=de,e[87]=F,e[88]=pe,e[89]=he,e[90]=ge,e[91]=ye,e[92]=J,e[93]=ve,e[94]=K,e[95]=be,e[96]=Q,e[97]=U,e[98]=Oe}else ce=e[81],ue=e[82],xe=e[83],fe=e[84],me=e[85],de=e[86],F=e[87],pe=e[88],he=e[89],ge=e[90],ye=e[91],J=e[92],ve=e[93],K=e[94],be=e[95],Q=e[96],U=e[97],Oe=e[98];let Ae;e[188]!==ce||e[189]!==ve||e[190]!==K||e[191]!==be||e[192]!==Q||e[193]!==U||e[194]!==Oe?(Ae=n.jsxRuntimeExports.jsxs(ce,{children:[ve,K,be,Q,U,Oe]}),e[188]=ce,e[189]=ve,e[190]=K,e[191]=be,e[192]=Q,e[193]=U,e[194]=Oe,e[195]=Ae):Ae=e[195];let _;e[196]!==B?(_=B.filter(Fi).map(Yi),e[196]=B,e[197]=_):_=e[197];let ee;e[198]!==xe||e[199]!==fe||e[200]!==me||e[201]!==de||e[202]!==F||e[203]!==Ae||e[204]!==_?(ee=n.jsxRuntimeExports.jsxs("g",{transform:xe,children:[fe,me,de,F,Ae,_]}),e[198]=xe,e[199]=fe,e[200]=me,e[201]=de,e[202]=F,e[203]=Ae,e[204]=_,e[205]=ee):ee=e[205];let E;e[206]!==ue||e[207]!==pe||e[208]!==he||e[209]!==ge||e[210]!==ye||e[211]!==J||e[212]!==ee?(E=n.jsxRuntimeExports.jsx(ue,{width:pe,height:he,viewBox:ge,direction:ye,ref:J,children:ee}),e[206]=ue,e[207]=pe,e[208]=he,e[209]=ge,e[210]=ye,e[211]=J,e[212]=ee,e[213]=E):E=e[213];let je;e[214]!==l?.tooltip||e[215]!==d||e[216]!==ct||e[217]!==q||e[218]!==s?.tooltip||e[219]!==nt?(je=q&&nt&&d&&ct?n.jsxRuntimeExports.jsx(ki.Tooltip,{data:q,body:nt,xPos:d,yPos:ct,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[214]=l?.tooltip,e[215]=d,e[216]=ct,e[217]=q,e[218]=s?.tooltip,e[219]=nt,e[220]=je):je=e[220];let Ce;e[221]!==l?.modal||e[222]!==V||e[223]!==Y?(Ce=V&&Y!==void 0?n.jsxRuntimeExports.jsx(Ni.DetailsModal,{body:V,data:Y,setData:g,className:l?.modal}):null,e[221]=l?.modal,e[222]=V,e[223]=Y,e[224]=Ce):Ce=e[224];let Te;return e[225]!==E||e[226]!==je||e[227]!==Ce?(Te=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[E,je,Ce]}),e[225]=E,e[226]=je,e[227]=Ce,e[228]=Te):Te=e[228],Te}function Yi(i){return i.layer}function Fi(i){return i.position==="after"}function Ui(i){return i.color}function Hi(i){return i.color}function Gi(i){return i.color}function Wi(i){return i.color}function Zi(i){return i.color}function Bi(i){return i.color}function zi(i){return i.color}function Ji(i){return i.color}function Ki(i){return i.layer}function Qi(i){return i.position==="before"}function _i(i){return i!==0}function eo(i){return i!==0}function to(i){return i!==0}function io(i){return i!==0}function oo(i){return!k.checkIfNullOrUndefined(i.x)&&!k.checkIfNullOrUndefined(i.y)}function no(i){return!k.checkIfNullOrUndefined(i.radius)&&!k.checkIfNullOrUndefined(i.x)&&!k.checkIfNullOrUndefined(i.y)}function so(i){return!k.checkIfNullOrUndefined(i.x)&&!k.checkIfNullOrUndefined(i.y)}function lo(i){return!k.checkIfNullOrUndefined(i.radius)}function ro(i){return i.radius===void 0||i.radius===null}function ao(i,e){return{...i,id:`${e}`}}function co(i){const e=n.compilerRuntimeExports.c(141),{data:o,graphTitle:re,colors:j,sources:He,graphDescription:r,showLabels:a,height:P,width:O,footNote:G,colorDomain:X,fallbackColor:gt,colorLegendTitle:ot,radius:qt,xAxisTitle:nt,yAxisTitle:Ve,padding:st,backgroundColor:yt,leftMargin:vt,rightMargin:De,topMargin:W,bottomMargin:bt,tooltip:lt,relativeHeight:L,onSeriesMouseOver:rt,refXValues:R,refYValues:S,highlightAreaSettings:ae,showColorScale:Ot,highlightedDataPoints:Me,showHighlightedDataPointsLabels:Ge,graphID:We,maxRadiusValue:V,maxXValue:Ze,minXValue:Be,maxYValue:Z,minYValue:s,onSeriesMouseClick:l,graphDownload:u,dataDownload:D,language:At,showNAColor:B,minHeight:jt,annotations:ze,customHighlightAreaSettings:m,theme:p,regressionLine:M,ariaLabel:Ct,resetSelectionOnDoubleClick:at,detailsOnClick:C,noOfXTicks:q,noOfYTicks:qe,labelColor:Y,styles:g,classNames:d,animate:Ie,dimmedOpacity:ct,customLayers:z,timeline:Je,showVoronoiTesselation:$t,useVoronoiInteraction:ut,xNumberDisplayOptions:y,yNumberDisplayOptions:ce}=i,ue=a===void 0?!1:a,xe=gt===void 0?H.Colors.gray:gt,fe=qt===void 0?5:qt,me=nt===void 0?"X Axis":nt,de=Ve===void 0?"Y Axis":Ve,F=yt===void 0?!1:yt,pe=vt===void 0?0:vt,he=De===void 0?10:De,ge=W===void 0?20:W,ye=bt===void 0?50:bt;let J;e[0]!==R?(J=R===void 0?[]:R,e[0]=R,e[1]=J):J=e[1];const ve=J;let K;e[2]!==S?(K=S===void 0?[]:S,e[2]=S,e[3]=K):K=e[3];const be=K;let Q;e[4]!==ae?(Q=ae===void 0?[]:ae,e[4]=ae,e[5]=Q):Q=e[5];const U=Q,Oe=Ot===void 0?!0:Ot,Ae=Ge===void 0?!1:Ge,_=u===void 0?!1:u,ee=D===void 0?!1:D,E=At===void 0?"en":At,je=B===void 0?!0:B,Ce=jt===void 0?0:jt;let Te;e[6]!==ze?(Te=ze===void 0?[]:ze,e[6]=ze,e[7]=Te):Te=e[7];const xt=Te;let $;e[8]!==m?($=m===void 0?[]:m,e[8]=m,e[9]=$):$=e[9];const A=$,b=p===void 0?"light":p,Ke=M===void 0?!1:M,x=at===void 0?!0:at,h=q===void 0?5:q,kt=qe===void 0?5:qe,ft=Ie===void 0?!1:Ie,It=ct===void 0?.3:ct;let Rt;e[10]!==z?(Rt=z===void 0?[]:z,e[10]=z,e[11]=Rt):Rt=e[11];const wt=Rt;let Pe;e[12]!==Je?(Pe=Je===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:Je,e[12]=Je,e[13]=Pe):Pe=e[13];const c=Pe,mt=$t===void 0?!1:$t,Qe=ut===void 0?!0:ut,[_e,Tt]=N.useState(0),[Xe,Pt]=N.useState(0),[I,Xt]=N.useState(c.autoplay);let Ye;if(e[14]!==o||e[15]!==c.dateFormat){let v;e[17]!==c.dateFormat?(v=le=>ui.parse(`${le.date}`,c.dateFormat||"yyyy",new Date).getTime(),e[17]=c.dateFormat,e[18]=v):v=e[18],Ye=[...new Set(o.filter(Po).map(v))],Ye.sort(To),e[14]=o,e[15]=c.dateFormat,e[16]=Ye}else Ye=e[16];const f=Ye,[T,dt]=N.useState(c.autoplay?0:f.length-1),[pt,Yt]=N.useState(void 0),$e=N.useRef(null),Lt=N.useRef(null);let te,et;e[19]===Symbol.for("react.memo_cache_sentinel")?(te=()=>{const v=new ResizeObserver(le=>{Tt(le[0].target.clientWidth||620),Pt(le[0].target.clientHeight||480)});return $e.current&&v.observe($e.current),()=>v.disconnect()},et=[],e[19]=te,e[20]=et):(te=e[19],et=e[20]),N.useEffect(te,et);let tt,ie;e[21]!==I||e[22]!==c.speed||e[23]!==f?(tt=()=>{const v=setInterval(()=>{dt(le=>le<f.length-1?le+1:0)},(c.speed||2)*1e3);return I||clearInterval(v),()=>clearInterval(v)},ie=[f,I,c.speed],e[21]=I,e[22]=c.speed,e[23]=f,e[24]=tt,e[25]=ie):(tt=e[24],ie=e[25]),N.useEffect(tt,ie);const ht=c.dateFormat||"yyyy";let oe;e[26]!==T||e[27]!==ht||e[28]!==c.showOnlyActiveDate||e[29]!==f?(oe=xi.getSliderMarks(f,T,c.showOnlyActiveDate,ht),e[26]=T,e[27]=ht,e[28]=c.showOnlyActiveDate,e[29]=f,e[30]=oe):oe=e[30];const ne=oe,ke=d?.graphContainer,it=g?.graphContainer;let Re;e[31]!==d?.description||e[32]!==d?.title||e[33]!==o||e[34]!==ee||e[35]!==r||e[36]!==_||e[37]!==re||e[38]!==g?.description||e[39]!==g?.title||e[40]!==O?(Re=re||r||_||ee?n.jsxRuntimeExports.jsx(qi.GraphHeader,{styles:{title:g?.title,description:g?.description},classNames:{title:d?.title,description:d?.description},graphTitle:re,graphDescription:r,width:O,graphDownload:_?Lt:void 0,dataDownload:ee?o.map(Io).filter(qo).length>0?o.map(Mo).filter(Do):o.filter(Vo):null}):null,e[31]=d?.description,e[32]=d?.title,e[33]=o,e[34]=ee,e[35]=r,e[36]=_,e[37]=re,e[38]=g?.description,e[39]=g?.title,e[40]=O,e[41]=Re):Re=e[41];let we;e[42]!==T||e[43]!==ne||e[44]!==I||e[45]!==c.enabled||e[46]!==f?(we=c.enabled&&f.length>0&&ne?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Xt(!I)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":I?"Click to pause animation":"Click to play animation",children:I?n.jsxRuntimeExports.jsx(bi.Pause,{}):n.jsxRuntimeExports.jsx(bi.Play,{})}),n.jsxRuntimeExports.jsx(xi.Nr,{min:f[0],max:f[f.length-1],marks:ne,step:null,defaultValue:f[f.length-1],value:f[T],onChangeComplete:v=>{dt(f.indexOf(v))},onChange:v=>{dt(f.indexOf(v))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[42]=T,e[43]=ne,e[44]=I,e[45]=c.enabled,e[46]=f,e[47]=we):we=e[47];let Le;e[48]!==d?.colorLegend||e[49]!==X||e[50]!==ot||e[51]!==j||e[52]!==o||e[53]!==Oe||e[54]!==je||e[55]!==b||e[56]!==O?(Le=Oe&&o.filter(So).length!==0&&o.length>0?n.jsxRuntimeExports.jsx(Ii.ColorLegendWithMouseOver,{width:O,colorLegendTitle:ot,colors:j||H.Colors[b].categoricalColors.colors,colorDomain:X||Oi.uniqBy(o,"color",!0),setSelectedColor:Yt,showNAColor:je,className:d?.colorLegend}):null,e[48]=d?.colorLegend,e[49]=X,e[50]=ot,e[51]=j,e[52]=o,e[53]=Oe,e[54]=je,e[55]=b,e[56]=O,e[57]=Le):Le=e[57];let Ee;e[58]!==o.length?(Ee=o.length===0&&n.jsxRuntimeExports.jsx(Ti.EmptyState,{}),e[58]=o.length,e[59]=Ee):Ee=e[59];let se;e[60]!==ft||e[61]!==xt||e[62]!==ye||e[63]!==d||e[64]!==X||e[65]!==j||e[66]!==A||e[67]!==wt||e[68]!==o||e[69]!==C||e[70]!==It||e[71]!==xe||e[72]!==U||e[73]!==Me||e[74]!==T||e[75]!==Y||e[76]!==E||e[77]!==pe||e[78]!==V||e[79]!==Ze||e[80]!==Z||e[81]!==Be||e[82]!==s||e[83]!==h||e[84]!==kt||e[85]!==l||e[86]!==rt||e[87]!==fe||e[88]!==ve||e[89]!==be||e[90]!==Ke||e[91]!==x||e[92]!==he||e[93]!==pt||e[94]!==Ae||e[95]!==ue||e[96]!==mt||e[97]!==g||e[98]!==Xe||e[99]!==_e||e[100]!==b||e[101]!==c.dateFormat||e[102]!==c.enabled||e[103]!==lt||e[104]!==ge||e[105]!==f||e[106]!==Qe||e[107]!==me||e[108]!==y||e[109]!==de||e[110]!==ce?(se=_e&&Xe&&o.length>0?n.jsxRuntimeExports.jsx(Xi,{data:Pi.ensureCompleteDataForScatterPlot(o,c.dateFormat||"yyyy").filter(v=>c.enabled?`${v.date}`===ui.format(new Date(f[T]),c.dateFormat||"yyyy"):v),width:_e,height:Xe,colorDomain:o.filter(No).length===0?[]:X||Oi.uniqBy(o,"color",!0),colors:o.filter(Eo).length===0?j?typeof j=="string"?[j]:[j[0]]:[H.Colors.primaryColors["blue-600"]]:typeof j=="string"?[j]:j||H.Colors[b].categoricalColors.colors,xAxisTitle:me,yAxisTitle:de,refXValues:ve,refYValues:be,showLabels:ue,radius:fe,leftMargin:pe,rightMargin:he,topMargin:ge,bottomMargin:ye,tooltip:lt,onSeriesMouseOver:rt,highlightAreaSettings:U,showVoronoiTesselation:mt,highlightedDataPoints:o.filter(Lo).length===0?[]:Me,showHighlightedDataPointsLabels:Ae,selectedColor:pt,maxRadiusValue:k.checkIfNullOrUndefined(V)?Math.max(...o.map(wo).filter(Ro)):V,maxXValue:k.checkIfNullOrUndefined(Ze)?Math.max(...o.map(ko).filter($o))>0?Math.max(...o.map(Co).filter(jo)):0:Ze,minXValue:k.checkIfNullOrUndefined(Be)?Math.min(...o.map(Ao).filter(Oo))>0?0:Math.min(...o.map(bo).filter(vo)):Be,maxYValue:k.checkIfNullOrUndefined(Z)?Math.max(...o.map(yo).filter(go))>0?Math.max(...o.map(ho).filter(po)):0:Z,minYValue:k.checkIfNullOrUndefined(s)?Math.min(...o.map(mo).filter(fo))>0?0:Math.min(...o.map(xo).filter(uo)):s,onSeriesMouseClick:l,rtl:E==="he"||E==="ar",annotations:xt,customHighlightAreaSettings:A,regressionLine:Ke,resetSelectionOnDoubleClick:x,detailsOnClick:C,noOfXTicks:h,noOfYTicks:kt,labelColor:Y,styles:g,classNames:d,animate:ft===!0?{duration:.5,once:!0,amount:.5}:ft||{duration:0,once:!0,amount:0},dimmedOpacity:It,customLayers:wt,useVoronoiInteraction:Qe,xNumberDisplayOptions:y,yNumberDisplayOptions:ce,fallbackColor:xe}):null,e[60]=ft,e[61]=xt,e[62]=ye,e[63]=d,e[64]=X,e[65]=j,e[66]=A,e[67]=wt,e[68]=o,e[69]=C,e[70]=It,e[71]=xe,e[72]=U,e[73]=Me,e[74]=T,e[75]=Y,e[76]=E,e[77]=pe,e[78]=V,e[79]=Ze,e[80]=Z,e[81]=Be,e[82]=s,e[83]=h,e[84]=kt,e[85]=l,e[86]=rt,e[87]=fe,e[88]=ve,e[89]=be,e[90]=Ke,e[91]=x,e[92]=he,e[93]=pt,e[94]=Ae,e[95]=ue,e[96]=mt,e[97]=g,e[98]=Xe,e[99]=_e,e[100]=b,e[101]=c.dateFormat,e[102]=c.enabled,e[103]=lt,e[104]=ge,e[105]=f,e[106]=Qe,e[107]=me,e[108]=y,e[109]=de,e[110]=ce,e[111]=se):se=e[111];let Ne;e[112]!==Ee||e[113]!==se?(Ne=n.jsxRuntimeExports.jsxs(Ai.GraphArea,{ref:$e,children:[Ee,se]}),e[112]=Ee,e[113]=se,e[114]=Ne):Ne=e[114];let Se;e[115]!==d?.footnote||e[116]!==d?.source||e[117]!==G||e[118]!==He||e[119]!==g?.footnote||e[120]!==g?.source||e[121]!==O?(Se=He||G?n.jsxRuntimeExports.jsx(Mi.GraphFooter,{styles:{footnote:g?.footnote,source:g?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:He,footNote:G,width:O}):null,e[115]=d?.footnote,e[116]=d?.source,e[117]=G,e[118]=He,e[119]=g?.footnote,e[120]=g?.source,e[121]=O,e[122]=Se):Se=e[122];let Fe;return e[123]!==Ct||e[124]!==F||e[125]!==We||e[126]!==P||e[127]!==E||e[128]!==Ce||e[129]!==st||e[130]!==L||e[131]!==ke||e[132]!==it||e[133]!==Re||e[134]!==we||e[135]!==Le||e[136]!==Ne||e[137]!==Se||e[138]!==b||e[139]!==O?(Fe=n.jsxRuntimeExports.jsxs(Ai.GraphContainer,{className:ke,style:it,id:We,ref:Lt,"aria-label":Ct,backgroundColor:F,theme:b,language:E,minHeight:Ce,width:O,height:P,relativeHeight:L,padding:st,children:[Re,we,Le,Ne,Se]}),e[123]=Ct,e[124]=F,e[125]=We,e[126]=P,e[127]=E,e[128]=Ce,e[129]=st,e[130]=L,e[131]=ke,e[132]=it,e[133]=Re,e[134]=we,e[135]=Le,e[136]=Ne,e[137]=Se,e[138]=b,e[139]=O,e[140]=Fe):Fe=e[140],Fe}function uo(i){return i!=null}function xo(i){return i.y}function fo(i){return i!=null}function mo(i){return i.y}function po(i){return i!=null}function ho(i){return i.y}function go(i){return i!=null}function yo(i){return i.y}function vo(i){return i!=null}function bo(i){return i.x}function Oo(i){return i!=null}function Ao(i){return i.x}function jo(i){return i!=null}function Co(i){return i.x}function $o(i){return i!=null}function ko(i){return i.x}function Ro(i){return i!=null}function wo(i){return i.radius}function Lo(i){return i.label}function Eo(i){return i.color}function No(i){return i.color}function So(i){return i.color}function Vo(i){return i!==void 0}function Do(i){return i!==void 0}function Mo(i){return i.data}function qo(i){return i!==void 0}function Io(i){return i.data}function To(i,e){return i-e}function Po(i){return i.date}exports.ScatterPlot=co;
2
2
  //# sourceMappingURL=ScatterPlot.cjs.map