victory-legend 37.1.2 → 37.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # victory-legend
2
2
 
3
+ ## 37.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Minor updates for clean theme ([#2909](https://github.com/FormidableLabs/victory/pull/2909))
8
+
3
9
  ## 37.1.2
4
10
 
5
11
  ### Patch Changes
@@ -38,9 +38,10 @@ __webpack_require__.r(__webpack_exports__);
38
38
 
39
39
  const getColorScale = props => {
40
40
  const {
41
- colorScale
41
+ colorScale,
42
+ theme
42
43
  } = props;
43
- return typeof colorScale === "string" ? victory_core__WEBPACK_IMPORTED_MODULE_3__.getColorScale(colorScale) : colorScale || [];
44
+ return typeof colorScale === "string" ? victory_core__WEBPACK_IMPORTED_MODULE_3__.getColorScale(colorScale, theme) : colorScale || [];
44
45
  };
45
46
  const getLabelStyles = props => {
46
47
  const {
@@ -6178,31 +6179,34 @@ __webpack_require__.r(__webpack_exports__);
6178
6179
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6179
6180
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
6180
6181
  /* harmony export */ });
6181
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6182
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6183
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6184
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6185
- /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
6186
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6187
- /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
6182
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
6183
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
6184
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6185
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6186
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6187
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6188
+ /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
6189
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6190
+ /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
6191
+
6188
6192
 
6189
6193
 
6190
6194
 
6191
6195
 
6192
6196
 
6193
6197
  const defaultProps = {
6194
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
6198
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
6195
6199
  };
6196
6200
  const VictoryPortal = initialProps => {
6197
6201
  const props = {
6198
6202
  ...defaultProps,
6199
6203
  ...initialProps
6200
6204
  };
6201
- const id = react__WEBPACK_IMPORTED_MODULE_1___default().useId();
6202
- const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_2__.usePortalContext)();
6205
+ const id = lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()();
6206
+ const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
6203
6207
  if (!portalContext) {
6204
6208
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
6205
- _victory_util_log__WEBPACK_IMPORTED_MODULE_3__.warn(msg);
6209
+ _victory_util_log__WEBPACK_IMPORTED_MODULE_4__.warn(msg);
6206
6210
  }
6207
6211
  const children = Array.isArray(props.children) ? props.children[0] : props.children;
6208
6212
  const {
@@ -6213,15 +6217,15 @@ const VictoryPortal = initialProps => {
6213
6217
  groupComponent,
6214
6218
  standalone: false
6215
6219
  } : {};
6216
- const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.omit(props, ["children", "groupComponent"]), {
6220
+ const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
6217
6221
  key: childProps.key ?? id
6218
6222
  });
6219
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
6220
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
6223
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
6224
+ react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6221
6225
  portalContext?.addChild(id, child);
6222
6226
  // eslint-disable-next-line react-hooks/exhaustive-deps
6223
6227
  }, [props.children]);
6224
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
6228
+ react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6225
6229
  return () => portalContext?.removeChild(id);
6226
6230
  // eslint-disable-next-line react-hooks/exhaustive-deps
6227
6231
  }, []);
@@ -6640,7 +6644,26 @@ const green = {
6640
6644
  "500": "#20C933",
6641
6645
  "900": "#338A17"
6642
6646
  };
6643
- const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6647
+ const colors = {
6648
+ blue: blue["500"],
6649
+ pink: pink["500"],
6650
+ teal: teal["500"],
6651
+ purple: purple["500"],
6652
+ green: green["500"],
6653
+ orange: orange["500"],
6654
+ cyan: cyan["500"],
6655
+ red: red["500"],
6656
+ yellow: yellow["500"]
6657
+ };
6658
+ const colorScale = Object.values(colors);
6659
+ const grayscale = [gray["200"], gray["400"], gray["600"], gray["900"]];
6660
+ const warm = [yellow["500"], orange["500"], red["500"], pink["500"]];
6661
+ const cool = [cyan["500"], teal["500"], blue["500"], purple["500"]];
6662
+ const heatmap = [green["500"], yellow["500"], red["500"]];
6663
+ const redPalette = [red["500"], red["300"], red["100"]];
6664
+ const greenPalette = [green["500"], green["300"], green["100"]];
6665
+ const bluePalette = [blue["500"], blue["300"], blue["100"]];
6666
+
6644
6667
  // *
6645
6668
  // * Typography
6646
6669
  // *
@@ -6655,7 +6678,7 @@ const baseProps = {
6655
6678
  width: 450,
6656
6679
  height: 300,
6657
6680
  padding: 50,
6658
- colorScale: colors
6681
+ colorScale
6659
6682
  };
6660
6683
  // *
6661
6684
  // * Labels
@@ -6684,10 +6707,23 @@ const borderRadius = 1;
6684
6707
  // * Theme
6685
6708
  // *
6686
6709
  const clean = {
6710
+ palette: {
6711
+ colors,
6712
+ grayscale,
6713
+ qualitative: colorScale,
6714
+ heatmap,
6715
+ warm,
6716
+ cool,
6717
+ red: redPalette,
6718
+ green: greenPalette,
6719
+ blue: bluePalette
6720
+ },
6687
6721
  area: Object.assign({
6688
6722
  style: {
6689
6723
  data: {
6690
- fill: cyan["500"]
6724
+ fill: blue["500"],
6725
+ strokeWidth: 2,
6726
+ fillOpacity: 0.5
6691
6727
  },
6692
6728
  labels: baseLabelStyles
6693
6729
  }
@@ -6696,7 +6732,7 @@ const clean = {
6696
6732
  style: {
6697
6733
  axis: {
6698
6734
  fill: "transparent",
6699
- stroke: gray["300"],
6735
+ stroke: gray["500"],
6700
6736
  strokeWidth: 1,
6701
6737
  strokeLinecap,
6702
6738
  strokeLinejoin
@@ -6721,10 +6757,10 @@ const clean = {
6721
6757
  polarAxis: Object.assign({
6722
6758
  style: {
6723
6759
  axis: {
6724
- stroke: gray["300"]
6760
+ stroke: gray["500"]
6725
6761
  },
6726
6762
  grid: {
6727
- stroke: gray["200"],
6763
+ stroke: gray["400"],
6728
6764
  strokeDasharray,
6729
6765
  strokeLinecap,
6730
6766
  strokeLinejoin,
@@ -6733,7 +6769,7 @@ const clean = {
6733
6769
  ticks: {
6734
6770
  fill: "transparent",
6735
6771
  size: 5,
6736
- stroke: gray["200"],
6772
+ stroke: gray["400"],
6737
6773
  strokeWidth: 1,
6738
6774
  strokeLinecap,
6739
6775
  strokeLinejoin
@@ -6744,10 +6780,10 @@ const clean = {
6744
6780
  polarDependentAxis: Object.assign({
6745
6781
  style: {
6746
6782
  axis: {
6747
- stroke: gray["300"]
6783
+ stroke: gray["500"]
6748
6784
  },
6749
6785
  grid: {
6750
- stroke: gray["200"],
6786
+ stroke: gray["400"],
6751
6787
  strokeDasharray,
6752
6788
  strokeLinecap,
6753
6789
  strokeLinejoin,
@@ -6756,7 +6792,7 @@ const clean = {
6756
6792
  ticks: {
6757
6793
  fill: "transparent",
6758
6794
  size: 5,
6759
- stroke: gray["200"],
6795
+ stroke: gray["300"],
6760
6796
  strokeWidth: 1,
6761
6797
  strokeLinecap,
6762
6798
  strokeLinejoin
@@ -6769,7 +6805,8 @@ const clean = {
6769
6805
  data: {
6770
6806
  fill: blue["500"],
6771
6807
  padding,
6772
- strokeWidth: 0
6808
+ strokeWidth: 1,
6809
+ fillOpacity: 0.5
6773
6810
  },
6774
6811
  labels: baseLabelStyles
6775
6812
  },
@@ -6806,14 +6843,15 @@ const clean = {
6806
6843
  q1: {
6807
6844
  padding,
6808
6845
  fill: teal["500"],
6809
- rx: borderRadius
6846
+ rx: borderRadius,
6847
+ strokeWidth: 2
6810
6848
  },
6811
6849
  q1Labels: Object.assign({}, baseLabelStyles, {
6812
6850
  padding: 3
6813
6851
  }),
6814
6852
  q3: {
6815
6853
  padding,
6816
- fill: teal["500"],
6854
+ fill: cyan["500"],
6817
6855
  rx: borderRadius
6818
6856
  },
6819
6857
  q3Labels: Object.assign({}, baseLabelStyles, {
@@ -6854,14 +6892,13 @@ const clean = {
6854
6892
  }
6855
6893
  }, baseProps),
6856
6894
  group: Object.assign({
6857
- colorScale: colors
6895
+ colorScale
6858
6896
  }, baseProps),
6859
6897
  histogram: Object.assign({
6860
6898
  style: {
6861
6899
  data: {
6862
6900
  fill: cyan["500"],
6863
- stroke: "transparent",
6864
- strokeWidth: 0
6901
+ fillOpacity: 0.5
6865
6902
  },
6866
6903
  labels: baseLabelStyles
6867
6904
  },
@@ -6872,21 +6909,23 @@ const clean = {
6872
6909
  }, baseProps),
6873
6910
  label: baseLabelStyles,
6874
6911
  legend: {
6875
- colorScale: colors,
6876
- gutter: 10,
6877
- orientation: "vertical",
6912
+ colorScale,
6913
+ gutter: 24,
6914
+ borderPadding: 10,
6915
+ orientation: "horizontal",
6878
6916
  titleOrientation: "top",
6917
+ centerTitle: true,
6879
6918
  style: {
6880
6919
  data: {
6881
6920
  type: "circle"
6882
6921
  },
6883
6922
  labels: {
6884
6923
  ...baseLabelStyles,
6885
- fontSize: 14
6924
+ fontSize: 12
6886
6925
  },
6887
6926
  title: Object.assign({}, baseLabelStyles, {
6888
6927
  padding,
6889
- fontSize: 20
6928
+ fontSize: 16
6890
6929
  }),
6891
6930
  border: {
6892
6931
  stroke: gray["200"],
@@ -6900,7 +6939,7 @@ const clean = {
6900
6939
  data: {
6901
6940
  fill: "transparent",
6902
6941
  opacity: 1,
6903
- stroke: pink["500"],
6942
+ stroke: blue["500"],
6904
6943
  strokeWidth: 2,
6905
6944
  strokeLinecap,
6906
6945
  strokeLinejoin
@@ -6910,16 +6949,22 @@ const clean = {
6910
6949
  }, baseProps),
6911
6950
  pie: Object.assign({
6912
6951
  style: {
6952
+ parent: {
6953
+ backgroundColor: gray.white
6954
+ },
6913
6955
  data: {
6914
6956
  padding,
6915
6957
  stroke: gray.white,
6916
6958
  strokeWidth: 1
6917
6959
  },
6918
- labels: Object.assign({}, baseLabelStyles, {
6919
- padding: 20
6920
- })
6960
+ labels: {
6961
+ ...baseLabelStyles,
6962
+ padding: 20,
6963
+ fill: gray["600"],
6964
+ fontSize: 10
6965
+ }
6921
6966
  },
6922
- colorScale: colors,
6967
+ colorScale,
6923
6968
  cornerRadius: borderRadius
6924
6969
  }, baseProps),
6925
6970
  scatter: Object.assign({
@@ -6930,11 +6975,14 @@ const clean = {
6930
6975
  stroke: "transparent",
6931
6976
  strokeWidth: 0
6932
6977
  },
6933
- labels: baseLabelStyles
6978
+ labels: {
6979
+ ...baseLabelStyles,
6980
+ padding: 20
6981
+ }
6934
6982
  }
6935
6983
  }, baseProps),
6936
6984
  stack: Object.assign({
6937
- colorScale: colors
6985
+ colorScale
6938
6986
  }, baseProps),
6939
6987
  tooltip: {
6940
6988
  style: Object.assign({}, baseLabelStyles, {
@@ -6942,7 +6990,7 @@ const clean = {
6942
6990
  pointerEvents: "none"
6943
6991
  }),
6944
6992
  flyoutStyle: {
6945
- stroke: gray["500"],
6993
+ stroke: gray["300"],
6946
6994
  strokeWidth: 2,
6947
6995
  fill: gray.white,
6948
6996
  pointerEvents: "none"
@@ -6959,9 +7007,10 @@ const clean = {
6959
7007
  voronoi: Object.assign({
6960
7008
  style: {
6961
7009
  data: {
6962
- fill: red["100"],
6963
- stroke: red["500"],
6964
- strokeWidth: 2
7010
+ fill: blue["100"],
7011
+ stroke: blue["500"],
7012
+ strokeWidth: 2,
7013
+ opacity: 0.4
6965
7014
  },
6966
7015
  labels: Object.assign({}, baseLabelStyles, {
6967
7016
  padding: 5,
@@ -6997,9 +7046,28 @@ __webpack_require__.r(__webpack_exports__);
6997
7046
  // *
6998
7047
  // * Colors
6999
7048
  // *
7000
- const colors = ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0"];
7049
+ const colors = {
7050
+ blue: "#4F7DA1",
7051
+ pink: "#E2A37F",
7052
+ teal: "#00796B",
7053
+ purple: "#DF948A",
7054
+ green: "#8BC34A",
7055
+ orange: "#F4511E",
7056
+ cyan: "#006064",
7057
+ red: "#DF5A49",
7058
+ yellow: "#FFF59D"
7059
+ };
7060
+ const colorScale = ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0"];
7001
7061
  const charcoal = "#252525";
7002
7062
  const grey = "#969696";
7063
+ const qualitative = ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"];
7064
+ const heatmap = ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"];
7065
+ const warm = ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"];
7066
+ const cool = ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"];
7067
+ const red = ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"];
7068
+ const green = ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"];
7069
+ const blue = ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"];
7070
+
7003
7071
  // *
7004
7072
  // * Typography
7005
7073
  // *
@@ -7013,7 +7081,7 @@ const baseProps = {
7013
7081
  width: 450,
7014
7082
  height: 300,
7015
7083
  padding: 50,
7016
- colorScale: colors
7084
+ colorScale
7017
7085
  };
7018
7086
  // *
7019
7087
  // * Labels
@@ -7035,6 +7103,17 @@ const centeredLabelStyles = Object.assign({
7035
7103
  const strokeLinecap = "round";
7036
7104
  const strokeLinejoin = "round";
7037
7105
  const grayscale = {
7106
+ palette: {
7107
+ colors,
7108
+ grayscale: colorScale,
7109
+ qualitative,
7110
+ heatmap,
7111
+ warm,
7112
+ cool,
7113
+ red,
7114
+ green,
7115
+ blue
7116
+ },
7038
7117
  area: Object.assign({
7039
7118
  style: {
7040
7119
  data: {
@@ -7149,7 +7228,7 @@ const grayscale = {
7149
7228
  }
7150
7229
  }, baseProps),
7151
7230
  group: Object.assign({
7152
- colorScale: colors
7231
+ colorScale
7153
7232
  }, baseProps),
7154
7233
  histogram: Object.assign({
7155
7234
  style: {
@@ -7162,7 +7241,7 @@ const grayscale = {
7162
7241
  }
7163
7242
  }, baseProps),
7164
7243
  legend: {
7165
- colorScale: colors,
7244
+ colorScale,
7166
7245
  gutter: 10,
7167
7246
  orientation: "vertical",
7168
7247
  titleOrientation: "top",
@@ -7197,7 +7276,7 @@ const grayscale = {
7197
7276
  padding: 20
7198
7277
  })
7199
7278
  },
7200
- colorScale: colors,
7279
+ colorScale,
7201
7280
  width: 400,
7202
7281
  height: 400,
7203
7282
  padding: 50
@@ -7213,7 +7292,7 @@ const grayscale = {
7213
7292
  }
7214
7293
  }, baseProps),
7215
7294
  stack: Object.assign({
7216
- colorScale: colors
7295
+ colorScale
7217
7296
  }, baseProps),
7218
7297
  tooltip: {
7219
7298
  style: Object.assign({}, baseLabelStyles, {
@@ -7273,11 +7352,31 @@ const lime300 = "#DCE775";
7273
7352
  const lightGreen500 = "#8BC34A";
7274
7353
  const teal700 = "#00796B";
7275
7354
  const cyan900 = "#006064";
7276
- const colors = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900];
7355
+ const colorScale = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900];
7277
7356
  const blueGrey50 = "#ECEFF1";
7278
7357
  const blueGrey300 = "#90A4AE";
7279
7358
  const blueGrey700 = "#455A64";
7280
7359
  const grey900 = "#212121";
7360
+ const colors = {
7361
+ blue: "#4F7DA1",
7362
+ pink: "#E2A37F",
7363
+ teal: teal700,
7364
+ purple: "#DF948A",
7365
+ green: lightGreen500,
7366
+ orange: deepOrange600,
7367
+ cyan: cyan900,
7368
+ red: "#DF5A49",
7369
+ yellow: yellow200
7370
+ };
7371
+ const grayscale = [blueGrey50, blueGrey300, blueGrey700, grey900];
7372
+ const qualitative = ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"];
7373
+ const heatmap = ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"];
7374
+ const warm = ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"];
7375
+ const cool = ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"];
7376
+ const red = ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"];
7377
+ const green = ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"];
7378
+ const blue = ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"];
7379
+
7281
7380
  // *
7282
7381
  // * Typography
7283
7382
  // *
@@ -7315,6 +7414,17 @@ const strokeDasharray = "10, 5";
7315
7414
  const strokeLinecap = "round";
7316
7415
  const strokeLinejoin = "round";
7317
7416
  const material = {
7417
+ palette: {
7418
+ colors,
7419
+ grayscale,
7420
+ qualitative,
7421
+ heatmap,
7422
+ warm,
7423
+ cool,
7424
+ red,
7425
+ green,
7426
+ blue
7427
+ },
7318
7428
  area: Object.assign({
7319
7429
  style: {
7320
7430
  data: {
@@ -7447,7 +7557,7 @@ const material = {
7447
7557
  }
7448
7558
  }, baseProps),
7449
7559
  group: Object.assign({
7450
- colorScale: colors
7560
+ colorScale
7451
7561
  }, baseProps),
7452
7562
  histogram: Object.assign({
7453
7563
  style: {
@@ -7460,7 +7570,7 @@ const material = {
7460
7570
  }
7461
7571
  }, baseProps),
7462
7572
  legend: {
7463
- colorScale: colors,
7573
+ colorScale,
7464
7574
  gutter: 10,
7465
7575
  orientation: "vertical",
7466
7576
  titleOrientation: "top",
@@ -7486,7 +7596,7 @@ const material = {
7486
7596
  }
7487
7597
  }, baseProps),
7488
7598
  pie: Object.assign({
7489
- colorScale: colors,
7599
+ colorScale,
7490
7600
  style: {
7491
7601
  data: {
7492
7602
  padding,
@@ -7510,7 +7620,7 @@ const material = {
7510
7620
  }
7511
7621
  }, baseProps),
7512
7622
  stack: Object.assign({
7513
- colorScale: colors
7623
+ colorScale
7514
7624
  }, baseProps),
7515
7625
  tooltip: {
7516
7626
  style: Object.assign({}, baseLabelStyles, {
@@ -9467,6 +9577,9 @@ __webpack_require__.r(__webpack_exports__);
9467
9577
  /* harmony export */ "getColorScale": function() { return /* binding */ getColorScale; },
9468
9578
  /* harmony export */ "toTransformString": function() { return /* binding */ toTransformString; }
9469
9579
  /* harmony export */ });
9580
+ /* harmony import */ var _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../victory-theme/victory-theme */ "../../victory-core/es/victory-theme/victory-theme.js");
9581
+
9582
+
9470
9583
  /**
9471
9584
  * Given an object with CSS/SVG transform definitions, return the string value
9472
9585
  * for use with the `transform` CSS property or SVG attribute. Note that we
@@ -9503,20 +9616,37 @@ const toTransformString = function (obj) {
9503
9616
  * of 5 hex string values in that color scale. If no 'name' parameter
9504
9617
  * is given, it will return the Victory default grayscale.
9505
9618
  * @param {String} name The name of the color scale to return (optional).
9619
+ * @param {Object} theme The theme object to retrieve the color scale from (optional).
9506
9620
  * @returns {Array} An array of 5 hex string values composing a color scale.
9507
9621
  */
9508
- function getColorScale(name) {
9622
+ function getColorScale(name, theme) {
9623
+ if (theme === void 0) {
9624
+ theme = _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_0__.VictoryTheme.material;
9625
+ }
9626
+ const {
9627
+ palette: {
9628
+ grayscale = ["#cccccc", "#969696", "#636363", "#252525"],
9629
+ qualitative = [],
9630
+ heatmap = [],
9631
+ warm = [],
9632
+ cool = [],
9633
+ red = [],
9634
+ blue = [],
9635
+ green = []
9636
+ } = {}
9637
+ } = theme;
9509
9638
  const scales = {
9510
- grayscale: ["#cccccc", "#969696", "#636363", "#252525"],
9511
- qualitative: ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"],
9512
- heatmap: ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"],
9513
- warm: ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"],
9514
- cool: ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"],
9515
- red: ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"],
9516
- blue: ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"],
9517
- green: ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"]
9639
+ grayscale,
9640
+ qualitative,
9641
+ heatmap,
9642
+ warm,
9643
+ cool,
9644
+ red,
9645
+ blue,
9646
+ green
9518
9647
  };
9519
- return name ? scales[name] : scales.grayscale;
9648
+ const selectedScale = name && scales[name]?.length ? scales[name] : scales.grayscale;
9649
+ return selectedScale;
9520
9650
  }
9521
9651
 
9522
9652
  /***/ }),
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryLegend=e(require("react")):t.VictoryLegend=e(t.React)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3273:function(t,e,n){var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6649:function(t){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},5510:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9955:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},1634:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:function(t,e,n){var r=n(8347),i=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4508:function(t){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),i=n(3608);t.exports=function t(e,n,o,a,s){var c=-1,u=e.length;for(o||(o=i),s||(s=[]);++c<u;){var l=e[c];n>0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},4432:function(t,e,n){var r=n(9026),i=n(3110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),i=n(3474);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},7028:function(t,e,n){var r=n(8708),i=n(8705),o=n(2813),a=n(6682),s=n(9667),c=n(163),u=n(4801),l=n(4289),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,y,b){var m=c(t),v=c(e),x=m?f:s(t),w=v?f:s(e),k=(x=x==d?p:x)==p,E=(w=w==d?p:w)==p,j=x==w;if(j&&u(t)){if(!u(e))return!1;m=!0,k=!1}if(j&&!k)return b||(b=new r),m||l(t)?i(t,e,n,g,y,b):o(t,e,x,n,g,y,b);if(!(1&n)){var O=k&&h.call(t,"__wrapped__"),S=E&&h.call(e,"__wrapped__");if(O||S){var A=O?t.value():t,C=S?e.value():e;return b||(b=new r),y(A,C,n,g,b)}}return!!j&&(b||(b=new r),a(t,e,n,g,y,b))}},9548:function(t,e,n){var r=n(8708),i=n(9070);t.exports=function(t,e,n,o){var a=n.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=n[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var l=(u=n[a])[0],d=t[l],f=u[1];if(c&&u[2]){if(void 0===d&&!(l in t))return!1}else{var p=new r;if(o)var h=o(d,f,l,t,e,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},3472:function(t,e,n){var r=n(758),i=n(5223),o=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},758:function(t,e,n){var r=n(9548),i=n(597),o=n(6878);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),i=n(9201),o=n(5066),a=n(726),s=n(5385),c=n(6878),u=n(3110);t.exports=function(t,e){return a(t)&&s(e)?c(u(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),i=n(4432),o=n(3472),a=n(383),s=n(9521),c=n(9110),u=n(9409),l=n(5346),d=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var f=-1;e=r(e,c(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return u(t,e,n)}))}},5436:function(t,e,n){var r=n(6371),i=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},6371:function(t,e,n){var r=n(4432),i=n(6539),o=n(9026);t.exports=function(t,e,n){for(var a=-1,s=e.length,c={};++a<s;){var u=e[a],l=r(t,u);n(l,u)&&i(c,o(u,t),l)}return c}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},7805:function(t){var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=n(e((r-t)/(i||1)),0),c=Array(s);s--;)c[o?s:++a]=t,t+=i;return c}},6317:function(t,e,n){var r=n(5346),i=n(4280),o=n(201);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),i=n(9026),o=n(9099),a=n(7709),s=n(3110);t.exports=function(t,e,n,c){if(!a(t))return t;for(var u=-1,l=(e=i(e,t)).length,d=l-1,f=t;null!=f&&++u<l;){var p=s(e[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(u!=d){var g=f[p];void 0===(h=c?c(g,p,f):void 0)&&(h=a(g)?g:o(e[u+1])?[]:{})}r(f,p,h),f=f[p]}return t}},9521:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},6316:function(t,e,n){var r=n(2596),i=n(8644),o=n(163),a=n(1995),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},946:function(t,e,n){var r=n(3273),i=n(5510),o=n(9955),a=n(9914),s=n(6602),c=n(6226);t.exports=function(t,e,n){var u=-1,l=i,d=t.length,f=!0,p=[],h=p;if(n)f=!1,l=o;else if(d>=200){var g=e?null:s(t);if(g)return c(g);f=!1,l=a,h=new r}else h=e?[]:p;t:for(;++u<d;){var y=t[u],b=e?e(y):y;if(y=n||0!==y?y:0,f&&b==b){for(var m=h.length;m--;)if(h[m]===b)continue t;e&&h.push(b),p.push(y)}else l(h,b,n)||(h!==p&&h.push(b),p.push(y))}return p}},9914:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:function(t,e,n){var r=n(163),i=n(726),o=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,c=null===e,u=e==e,l=r(e);if(!c&&!l&&!a&&t>e||a&&s&&u&&!c&&!l||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!u)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,c=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=c?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},5659:function(t,e,n){var r=n(6649),i=n(4508),o=n(3472),a=n(163);t.exports=function(t,e){return function(n,s){var c=a(n)?r:i,u=e?e():{};return c(n,t,o(s,2),u)}}},2507:function(t,e,n){var r=n(7805),i=n(8286),o=n(9139);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},6602:function(t){t.exports=function(){}},5525:function(t,e,n){var r=n(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,e,n){var r=n(3273),i=n(1634),o=n(9914);t.exports=function(t,e,n,a,s,c){var u=1&n,l=t.length,d=e.length;if(l!=d&&!(u&&d>l))return!1;var f=c.get(t),p=c.get(e);if(f&&p)return f==e&&p==t;var h=-1,g=!0,y=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++h<l;){var b=t[h],m=e[h];if(a)var v=u?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==v){if(v)continue;g=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||s(b,t,n,a,c)))return y.push(e)}))){g=!1;break}}else if(b!==m&&!s(b,m,n,a,c)){g=!1;break}}return c.delete(t),c.delete(e),g}},2813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:function(t,e,n){var r=n(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var c=1&n,u=r(t),l=u.length;if(l!=r(e).length&&!c)return!1;for(var d=l;d--;){var f=u[d];if(!(c?f in e:i.call(e,f)))return!1}var p=s.get(t),h=s.get(e);if(p&&h)return p==e&&h==t;var g=!0;s.set(t,e),s.set(e,t);for(var y=c;++d<l;){var b=t[f=u[d]],m=e[f];if(o)var v=c?o(m,b,f,e,t,s):o(b,m,f,t,e,s);if(!(void 0===v?b===m||a(b,m,n,o,s):v)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(t),s.delete(e),g}},5557:function(t,e,n){var r=n(2645),i=n(4280),o=n(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},597:function(t,e,n){var r=n(5385),i=n(7747);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9817:function(t,e,n){var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),i=n(5075),o=n(163),a=n(9099),s=n(8454),c=n(3110);t.exports=function(t,e,n){for(var u=-1,l=(e=r(e,t)).length,d=!1;++u<l;){var f=c(e[u]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++u!=l?d:!!(l=null==t?0:t.length)&&s(l)&&a(f,l)&&(o(t)||i(t))}},3608:function(t,e,n){var r=n(2596),i=n(5075),o=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),i=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,e,n){var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},6878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),c=Array(s);++a<s;)c[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(c),r(t,this,u)}}},2373:function(t,e,n){var r=n(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:function(t,e,n){var r=n(6317),i=n(788),o=n(8286),a=n(8855),s=Object.prototype,c=s.hasOwnProperty,u=r((function(t,e){t=Object(t);var n=-1,r=e.length,u=r>2?e[2]:void 0;for(u&&o(e[0],e[1],u)&&(r=1);++n<r;)for(var l=e[n],d=a(l),f=-1,p=d.length;++f<p;){var h=d[f],g=t[h];(void 0===g||i(g,s[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=u},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,e,n){var r=n(4432);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},9056:function(t,e,n){var r=n(8347),i=n(5659),o=Object.prototype.hasOwnProperty,a=i((function(t,e,n){o.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=a},5066:function(t,e,n){var r=n(6776),i=n(3096);t.exports=function(t,e){return null!=t&&i(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),i=n(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),i=n(9667),o=n(5075),a=n(163),s=n(981),c=n(4801),u=n(5782),l=n(4289),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(u(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),i=n(7709);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var r=n(563),i=n(9817),o=n(3474),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},7747:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1616:function(t,e,n){var r=n(3472),i=n(6051),o=n(4912);t.exports=function(t,e){return o(t,i(r(e)))}},4143:function(t,e,n){var r=n(8245),i=n(163);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),i=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},4912:function(t,e,n){var r=n(8644),i=n(3472),o=n(6371),a=n(7271);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=i(e),o(t,n,(function(t,n){return e(t,n[0])}))}},8532:function(t,e,n){var r=n(1600),i=n(3301),o=n(726),a=n(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8825:function(t,e,n){var r=n(2507)();t.exports=r},9139:function(t){t.exports=function(t){return t}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,e,n){var r=n(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:function(t,e,n){var r=n(7010),i=0;t.exports=function(t){var e=++i;return r(t)+e}},7491:function(t){var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(u=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(e&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!o(t[u[c]],a[u[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return o(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.r(i),r.d(i,{VictoryLegend:function(){return hi}});var t={};r.r(t),r.d(t,{circle:function(){return ht},cross:function(){return xt},diamond:function(){return yt},minus:function(){return wt},plus:function(){return vt},square:function(){return gt},star:function(){return kt},triangleDown:function(){return bt},triangleUp:function(){return mt}});var e={};r.r(e),r.d(e,{easeBack:function(){return sn},easeBackIn:function(){return on},easeBackInOut:function(){return sn},easeBackOut:function(){return an},easeBounce:function(){return en},easeBounceIn:function(){return tn},easeBounceInOut:function(){return nn},easeBounceOut:function(){return en},easeCircle:function(){return Xe},easeCircleIn:function(){return Ze},easeCircleInOut:function(){return Xe},easeCircleOut:function(){return Ye},easeCubic:function(){return Ne},easeCubicIn:function(){return Ie},easeCubicInOut:function(){return Ne},easeCubicOut:function(){return _e},easeElastic:function(){return ln},easeElasticIn:function(){return un},easeElasticInOut:function(){return dn},easeElasticOut:function(){return ln},easeExp:function(){return Qe},easeExpIn:function(){return Ve},easeExpInOut:function(){return Qe},easeExpOut:function(){return Ue},easeLinear:function(){return Pe},easePoly:function(){return Be},easePolyIn:function(){return Fe},easePolyInOut:function(){return Be},easePolyOut:function(){return De},easeQuad:function(){return We},easeQuadIn:function(){return Le},easeQuadInOut:function(){return We},easeQuadOut:function(){return ze},easeSin:function(){return Ge},easeSinIn:function(){return Re},easeSinInOut:function(){return Ge},easeSinOut:function(){return qe}});var n=r(9787),o=r.n(n),a=r(8825),s=r.n(a),c=r(9056),u=r.n(c),l=r(1893),d=r.n(l);const f=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(((t,e)=>[t,f(e)].join(" ")),f(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];i.push(`${e}(${n})`)}return i.join(" ").trim()};var p=r(9082),h=r.n(p);function g(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function y(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:c,_voronoiY:u}=t,l=e(r)?r:n,f=e(s)?s:a,p={x:e(o)?o:l,x0:e(i)?i:n,y:e(u)?u:f,y0:e(c)?c:a};return d()({},p,t)}function b(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,i="object"==typeof n?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function m(t,e){return E(t)?t(e):t}function v(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>E(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=m(t[r],e),n)),{}):t}function x(t){return"number"==typeof t?t*(Math.PI/180):t}function w(t){const{left:e,right:n,top:r,bottom:i}=b(t),{width:o,height:a}=t;return Math.min(o-e-n,a-r-i)/2}function k(t){return null==t}function E(t){return"function"==typeof t}function j(t,e,n){const r=g(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const e=t=>t.reduce(((t,n)=>{const r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(o().Children.toArray(r.children))}),!1);return e(o().Children.toArray(t.children))}(t),a=void 0===i?{}:{horizontal:i};return d()(a,t,r,e)}r(8532);var O=r(1594),S=r.n(O);const A={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},C={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},$={em:1,ex:.5},M={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},P=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),L=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},z=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=n?C.hasOwnProperty(n)?r*C[n]:$.hasOwnProperty(n)?(e?r*e:r*M.fontSize)*$[n]:r:r||0,i},W=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=d()({},n,M);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:z(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:z(String(r.fontSize))})},I=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:P(t).reduce(((t,n,r)=>{const i=W(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,e),i=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=P(t).map(((t,n)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=W(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>A[t]))||"Helvetica";return A[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,e)=>e+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?L(i,r,n):i,height:1.05*(n?L(r,i,n):r)}},_=S()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),N=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",F=S()(((t,e)=>{let n=_();n.isConnected||(_.cache.clear?.(),n=_());const r=P(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=W(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),n.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?L(o,i,e?.angle):o,height:e?.angle?L(i,o,e?.angle):i}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(N).join():N(e)}`)),D=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?I(t,e):F(t,e)}(t,e),B=t=>{const{data:e,style:n}=t;return e.map(((t,r)=>v(d()({},t.labels,n.labels),{datum:t,index:r,data:e})))},T=t=>{const{orientation:e,theme:n}=t,r=function(t,e){void 0===e&&(e={});const n=t.style||{};return{parent:d()(n.parent,e.parent,{height:"100%",width:"100%"}),data:d()({},n.data,e.data),labels:d()({},n.labels,e.labels),border:d()({},n.border,e.border),title:d()({},n.title,e.title)}}(t,n&&n.legend&&n.legend.style?n.legend.style:{}),i=(t=>{const{colorScale:e}=t;return"string"==typeof e?function(t){const e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}(e):e||[]})(t),o="horizontal"===e,a=b({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:o,colorScale:i,borderPadding:a})},H=(t,e)=>{const{itemsPerRow:n,isHorizontal:r}=t;return n?r?e%n:Math.floor(e/n):r?e:0},R=(t,e)=>{const{itemsPerRow:n,isHorizontal:r}=t;return n?r?Math.floor(e/n):e%n:r?0:e},q=t=>{const{data:e}=t,n=t.style&&t.style.data||{},r=B(t);return e.map(((e,i)=>{const o=e.symbol||{},{fontSize:a}=r[i],s=o.size||n.size||a/2.5,c=t.symbolSpacer||Math.max(s,a);return{...e,size:s,symbolSpacer:c,fontSize:a,textSize:D(e.name,r[i]),column:H(t,i),row:R(t,i)}}))},G=(t,e)=>{const n=t.gutter||{},r="object"==typeof n?(n.left||0)+(n.right||0):n||0,i=u()(e,"column");return Object.keys(i).reduce(((t,e,n)=>{const o=i[e].map((t=>t.textSize.width+t.size+t.symbolSpacer+r));return t[n]=Math.max(...o),t}),[])},K=(t,e)=>{const n=t.rowGutter||{},r="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,i=u()(e,"row");return Object.keys(i).reduce(((t,e,n)=>{const o=i[e].map((t=>t.textSize.height+t.symbolSpacer+r));return t[n]=Math.max(...o),t}),[])},V=t=>{const e=t.style&&t.style.title||{},n=D(t.title,e),r=e.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},U=(t,e)=>{const n=j(t,e,"legend"),r=Object.assign({},n,T(n)),{title:i,titleOrientation:o}=r,a=q(r),s=G(r,a),c=K(r,a),u=i?V(r):{height:0,width:0};return{height:"left"===o||"right"===o?Math.max(Z(c),u.height):Z(c)+u.height,width:"left"===o||"right"===o?Z(s)+u.width:Math.max(Z(s),u.width)}},Q=(t,e)=>{const n=j(t,e,"legend"),r=Object.assign({},n,T(n)),{data:i,standalone:o,theme:a,padding:c,style:u,colorScale:l,gutter:f,rowGutter:p,borderPadding:h,title:g,titleOrientation:y,name:b,x:m=0,y:v=0}=r,x=q(r),w=G(r,x),E=K(r,x),O=B(r),S=g?V(r):{height:0,width:0},A="left"===y?S.width:0,C="top"===y?S.height:0,$=f&&"object"==typeof f&&f.left||0,M=p&&"object"==typeof p&&p.top||0,{height:P,width:L}=U(r,e),z=((t,e,n)=>{const{x:r,y:i,borderPadding:o,style:a}=t;return{x:r,y:i,height:(e||0)+o.top+o.bottom,width:(n||0)+o.left+o.right,style:Object.assign({fill:"none"},a.border)}})(r,P,L),W=((t,e)=>{const{title:n,titleOrientation:r,centerTitle:i,borderPadding:o}=t,{height:a,width:s}=e,c=(t=>{const{titleOrientation:e,centerTitle:n,titleComponent:r}=t,i=t.style&&t.style.title||{},o=r.props&&r.props.style||{},a=((t,e)=>{const n={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(e){const e="top"===t||"bottom"===t;return{textAnchor:e?"middle":n.textAnchor,verticalAnchor:e?n.verticalAnchor:"middle"}}return n})(e,n);return Array.isArray(o)?o.map((t=>d()({},t,i,a))):d()({},o,i,a)})(t),u=Array.isArray(c)?c[0].padding:c.padding,l="top"===r||"bottom"===r,f="right"===r?"right":"left",p={x:i?s/2:o["bottom"===r?"bottom":"top"]+(u||0),y:i?a/2:o[f]+(u||0)},h=()=>o[r]+(u||0),g=l?p.x:h(),y=l?h():p.y;return{x:"right"===r?t.x+s-g:t.x+g,y:"bottom"===r?t.y+a-y:t.y+y,style:c,text:n}})(r,z),I={parent:{data:i,standalone:o,theme:a,padding:c,name:b,height:r.height,width:r.width,style:u.parent},all:{border:z,title:W}};return x.reduce(((t,e,n)=>{const r=l[n%l.length],o=d()({},e.symbol,u.data,{fill:r}),a=k(e.eventKey)?n:e.eventKey,c=((t,e,n)=>{const{column:r,row:i}=t;return{x:s()(r).reduce(((t,e)=>t+n[e]),0),y:s()(i).reduce(((t,n)=>t+e[n]),0)}})(e,E,w),f=v+h.top+e.symbolSpacer,p=m+h.left+e.symbolSpacer,g={index:n,data:i,datum:e,symbol:o.type||o.symbol||"circle",size:e.size,style:o,y:f+c.y+C+M,x:p+c.x+A+$},y={datum:e,data:i,text:e.name,style:O[n],y:g.y,x:g.x+e.symbolSpacer+e.size/2};return t[a]={data:g,labels:y},t}),I)};function Z(t){if(t&&t.length){let e=0;for(let n=0;n<t.length;n++)e+=t[n];return e}return 0}function Y(){return Y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Y.apply(this,arguments)}const X=(0,n.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:a,...s}=t,c={vectorEffect:"non-scaling-stroke",id:m(r,t)?.toString(),tabIndex:m(i,t),...s};return n?o().createElement("rect",Y({},c,{ref:e}),o().createElement("desc",null,n)):o().createElement("rect",Y({},c,{ref:e}))})),J={rectComponent:o().createElement(X,null),role:"presentation",shapeRendering:"auto"},tt=t=>{const e=(t=>{const e=m(t.ariaLabel,t),n=m(t.desc,t),r=m(t.id,t),i=v(Object.assign({fill:"none"},t.style),t),o=m(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:i,tabIndex:o})})(d()({},t,J));return o().cloneElement(e.rectComponent,{...e.events,"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath})};var et=r(660),nt=r.n(et);function rt(){return rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rt.apply(this,arguments)}const it=o().forwardRef(((t,e)=>o().createElement("svg",rt({ref:e},t)))),ot={startsWith:["data-","aria-"],exactMatch:[]},at=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return ot.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>ot.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,m(r,t)]})))},st=o().createContext(void 0);st.displayName="PortalContext";const ct=()=>o().useContext(st),ut=t=>{let{children:e}=t;const[n,r]=o().useState(new Map),i=o().useCallback(((t,e)=>{r((n=>{const r=new Map(n);return r.set(t,e),r}))}),[r]),a=o().useCallback((t=>{r((e=>{const n=new Map(e);return n.delete(t),n}))}),[r]),s=o().useMemo((()=>({addChild:i,removeChild:a,children:n})),[i,a,n]);return o().createElement(st.Provider,{value:s},e)},lt=t=>{let{as:e,...n}=t;const r=ct();if(!r)return null;const i=Array.from(r.children.values());return o().cloneElement(e,n,i)};function dt(){return dt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},dt.apply(this,arguments)}const ft={className:"VictoryContainer",portalComponent:o().createElement(it,null),portalZIndex:99,responsive:!0,role:"img"},pt=t=>{const{role:e,title:r,desc:i,children:a,className:s,portalZIndex:c,portalComponent:u,width:l,height:d,style:f,tabIndex:p,responsive:h,events:g,ouiaId:y,ouiaSafe:b,ouiaType:m,dimensions:v,ariaDescribedBy:x,ariaLabelledBy:w,viewBox:k,preserveAspectRatio:j,userProps:O,titleId:S,descId:A,containerRef:C,localContainerRef:$}=function(t){const e={...ft,...t},{title:r,desc:i,width:o,height:a,responsive:s}=e,c=(0,n.useRef)(null),u=(0,n.useRef)(nt()("victory-container-")),l=e.containerId??u.current,d=t=>`${l}-${t}`,f=at(e),p=s?{width:"100%",height:"100%"}:{width:o,height:a},h=s?`0 0 ${o} ${a}`:void 0,g=s?e.preserveAspectRatio:void 0,y=[r&&d("title"),e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,b=[i&&d("desc"),e["aria-describedby"]].filter(Boolean).join(" ")||void 0,m=d("title"),v=d("desc");return{...e,titleId:m,descId:v,dimensions:p,viewBox:h,preserveAspectRatio:g,ariaLabelledBy:y,ariaDescribedBy:b,userProps:f,localContainerRef:c}}(t);return o().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),e=$?.current;return e?.addEventListener("wheel",t),()=>{e?.removeEventListener("wheel",t)}}),[]),o().createElement("div",{className:s,style:{...f,width:h?f?.width:v.width,height:h?f?.height:v.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":y,"data-ouia-component-type":m,"data-ouia-safe":b,ref:(M=[$,C],t=>{M.forEach((e=>{E(e)?e(t):null!=e&&(e.current=t)}))})},o().createElement(ut,null,o().createElement("svg",dt({width:l,height:d,tabIndex:p,role:e,"aria-labelledby":w,"aria-describedby":x,viewBox:k,preserveAspectRatio:j,style:{...v,pointerEvents:"all"}},O,g),r?o().createElement("title",{id:S},r):null,i?o().createElement("desc",{id:A},i):null,a),o().createElement("div",{style:{...v,zIndex:c,position:"absolute",top:0,left:0}},o().createElement(lt,{as:u,width:l,height:d,viewBox:k,preserveAspectRatio:j,style:{...v,overflow:"visible"}}))));var M};function ht(t,e,n){return`M ${t}, ${e}\n m ${-n}, 0\n a ${n}, ${n} 0 1,0 ${2*n},0\n a ${n}, ${n} 0 1,0 ${2*-n},0`}function gt(t,e,n){const r=.87*n,i=t-r,o=t+r-i;return`M ${i}, ${e+r}\n h${o}\n v-${o}\n h-${o}\n z`}function yt(t,e,n){const r=.87*n,i=Math.sqrt(r*r*2);return`M ${t}, ${e+i}\n l ${i}, -${i}\n l -${i}, -${i}\n l -${i}, ${i}\n l ${i}, ${i}\n z`}function bt(t,e,n){const r=e-n;return`M ${t-n}, ${r}\n L ${t+n}, ${r}\n L ${t}, ${e+n/2*Math.sqrt(3)}\n z`}function mt(t,e,n){const r=e+n;return`M ${t-n}, ${r}\n L ${t+n}, ${r}\n L ${t}, ${e-n/2*Math.sqrt(3)}\n z`}function vt(t,e,n){const r=1.1*n,i=r/1.5;return`\n M ${t-i/2}, ${e+r}\n v-${i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${i}\n z`}function xt(t,e,n){const r=.8*n,i=r/1.5;return`\n M ${t-i/2}, ${e+r+i}\n v-${2*i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${2*i}\n z`}function wt(t,e,n){const r=1.1*n,i=r-.3*r,o=t-r,a=t+r-o;return`M ${o}, ${e+i/2}\n h${a}\n v-${i}\n h-${a}\n z`}function kt(t,e,n){const r=1.35*n,i=Math.PI/5;return`M ${function(t,e,n){let r=10;r||(r=0);const i=r-0,o=Math.abs(i),a=i/o||1,s=Math.max(Math.ceil(o/1),0);return Array.from(Array(s),((t,e)=>0+e*a*1))}().map((n=>{const o=n%2==0?r:r/2;return`${o*Math.sin(i*(n+1))+t},\n ${o*Math.cos(i*(n+1))+e}`})).join("L")} z`}function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Et.apply(this,arguments)}pt.role="container";const jt=(0,n.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:a,...s}=t,c={id:m(r,t)?.toString(),tabIndex:m(i,t),...s};return n?o().createElement("path",Et({},c,{ref:e}),o().createElement("desc",null,n)):o().createElement("path",Et({},c,{ref:e}))})),Ot=e=>{const{x:n,y:r,size:i,symbol:o}=e;return e.getPath?e.getPath(n,r,i):("function"==typeof t[o]?t[o]:t.circle)(n,r,i)},St={pathComponent:o().createElement(jt,null),role:"presentation",shapeRendering:"auto"},At=t=>{const e=(t=>{const e=m(t.ariaLabel,t),n=m(t.desc,t),r=m(t.id,t),i=m(t.size,t),o=v(t.style,t),a=m(t.symbol,t),s=m(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,size:i,style:o,symbol:a,tabIndex:s})})(d()({},t,St)),n=at(e);return o().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,d:Ot(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,role:e.role,shapeRendering:e.shapeRendering,className:e.className,transform:e.transform,clipPath:e.clipPath,...n})};var Ct=r(4155),$t=r.n(Ct);const Mt={groupComponent:o().createElement("g",null)},Pt=t=>{const e={...Mt,...t},n=o().useId(),r=ct(),i=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:a}=e,s=i&&i.props||{},c=s.groupComponent?{groupComponent:a,standalone:!1}:{},u=d()(c,s,g(e,["children","groupComponent"]),{key:s.key??n}),l=i&&o().cloneElement(i,u);return o().useEffect((()=>{r?.addChild(n,l)}),[e.children]),o().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:l};Pt.role="portal";const Lt=t=>{const{children:e,desc:n,id:r,origin:i,tabIndex:a,title:s,...c}=t,u={id:m(r,t)?.toString(),tabIndex:m(a,t),...c};return o().createElement("text",u,s&&o().createElement("title",null,s),n&&o().createElement("desc",null,n),e)},zt=t=>{const{desc:e,id:n,tabIndex:r,origin:i,...a}=t,s={id:m(n,t)?.toString(),tabIndex:m(r,t),...a};return o().createElement("tspan",s)};const Wt={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},It=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:i}=t,o=y(e),a=t.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),c=i?n.y(o.y0):n.x(o.x0),u=i?n.x(o.x):n.y(o.y),l=i?n.x(o.x0):n.y(o.y0);return{x:r?u*Math.cos(s)+a.x:s,x0:r?l*Math.cos(c)+a.x:c,y:r?-u*Math.sin(s)+a.y:u,y0:r?-l*Math.sin(c)+a.x:l}}(t,t.datum);return n[e]},_t=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Wt.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?Wt.fontSize:t}return Wt.fontSize},Nt=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},Ft=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!$t()(e)||Array.isArray(n)&&!$t()(n)},Dt=(t,e,n)=>{const{polar:r}=t,i=Nt(t.style),o=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const i=function(t,e){const{x:n}=y(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===i.angle?m(t.angle,t):i.angle,s=void 0===a?o:a,c=t.transform||i.transform,u=c&&m(c,t);return u||s?f(u,s&&{rotate:[s,e,n]}):void 0},Bt=(t,e)=>{const{direction:n,textAnchor:r,x:i,dx:o}=t;if("rtl"===n)return i-e;switch(r){case"middle":return Math.round(i-e/2);case"end":return Math.round(i-e);default:return i+(o||0)}},Tt=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=t,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-e);default:return Math.floor(o-e/2)}},Ht=(t,e)=>Ft(t)?((t,e)=>{const{dy:n,dx:r,transform:i,backgroundStyle:a,backgroundPadding:s,backgroundComponent:c,inline:u,y:l}=t,f=e.map(((t,i)=>{const o=Nt(e,i-1),a=t.textSize,c=t.fontSize*t.lineHeight,d=Math.ceil(c),f=Nt(s,i),p=Nt(s,i-1),h=u&&r||0,g=i&&!u?o.fontSize*o.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:d,labelSize:a,heightWithPadding:d+f.top+f.bottom,widthWithPadding:a.width+f.left+f.right+h,y:l,fontSize:t.fontSize,dy:g}}));return f.map(((e,n)=>{const r=Bt(t,e.labelSize.width),p=f.slice(0,n+1).reduce(((t,e)=>t+e.dy),l),h=Nt(s,n),g=e.heightWithPadding,y=u?((t,e,n)=>{const{textAnchor:r}=t,i=e.map((t=>t.widthWithPadding)),o=-i.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return i.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return i.reduce(((t,e,r)=>r>n?t-e:t),0);default:return i.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),o)}})(t,f,n)+r-h.left:r,b=u?Tt(t,g)-h.top:p,m={key:`tspan-background-${n}`,height:g,style:Nt(a,n),width:e.widthWithPadding,transform:i,x:y-h.left,y:b};return o().cloneElement(c,d()({},c.props,m))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:a,inline:s,backgroundPadding:c,capHeight:u}=t,l=e.map((t=>t.textSize)),f=s?Math.max(...l.map((t=>t.height))):l.reduce(((t,n,r)=>{const i=r?0:u/2;return t+n.height*(e[r].lineHeight-i)}),0),p=s?l.reduce(((t,e,r)=>{const i=r?n:0;return t+e.width+i}),0):Math.max(...l.map((t=>t.width))),h=Bt(t,p),g=Tt(t,f),y={key:"background",height:f+c.top+c.bottom,style:a,transform:r,width:p+c.left+c.right,x:s?h-c.left:h+n-c.left,y:g};return o().cloneElement(i,d()({},i.props,y))})(t,e),Rt=(t,e,n)=>{const{inline:r}=e,i=Nt(t,n);return n&&!r?((t,e,n)=>{const r=Nt(t,e),i=Nt(t,e-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,c=r.fontSize-r.capHeight,u=o-i.fontSize/2+r.fontSize/2-o/2+a/2-c/2+s/2;return Ft(n)?u+r.backgroundPadding.top+i.backgroundPadding.bottom:u})(t,n,e):r?0===n?i.backgroundPadding.top:void 0:i.backgroundPadding.top},qt={backgroundComponent:o().createElement(X,null),groupComponent:o().createElement("g",null),direction:"inherit",textComponent:o().createElement(Lt,null),tspanComponent:o().createElement(zt,null),capHeight:.71,lineHeight:1},Gt=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>m(t,e)));const n=m(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=v(t,e);return{fontSize:_t(n)}}const n=t=>{const n=v(t?d()({},t,Wt):Wt,e);return Object.assign({},n,{fontSize:_t(n)})};return Array.isArray(t)&&!$t()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!$t()(t)?t.map((t=>v(t,e))):v(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>b({padding:m(e,t)}))):b({padding:m(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),o=m(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:n,text:e,id:o})})(d()({},t,qt));if(null===e.text||void 0===e.text)return null;const n=(t=>{const e=m(t.ariaLabel,t),n=Nt(t.style),r=(t=>{const e=m(t.lineHeight,t);return Array.isArray(e)&&$t()(e)?[1]:e})(t),i=t.direction?m(t.direction,t):"inherit",o=t.textAnchor?m(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?m(t.verticalAnchor,t):n.verticalAnchor||"middle",s=t.dx?m(t.dx,t):0,c=((t,e,n)=>{const r=t.dy?m(t.dy,t):0,i=t.inline?1:t.text.length,o=m(t.capHeight,t),a=e?m(e,t):"middle",s=[...Array(i).keys()].map((e=>Nt(t.style,e).fontSize)),c=[...Array(i).keys()].map((t=>Nt(n,t)));if("start"===a)return r+(o/2+c[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-c[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*c[0])*s[0]:r+(o/2+(.5-i/2)*c[0])*s[0];const u=[...Array(i).keys()].reduce(((t,e)=>t+(o/2+(.5-i)*c[e])*s[e]/i),0);return"end"===a?r+u:r+u/2+o/2*c[i-1]*s[i-1]})(t,a,r),u=void 0!==t.x?t.x:It(t,"x"),l=void 0!==t.y?t.y:It(t,"y"),d=Dt(t,u,l);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:c,originalDy:m(t.dy,t),transform:d,x:u,y:l})})(e),{text:r,style:i,capHeight:a,backgroundPadding:s,lineHeight:c}=n,u=r.map(((t,e)=>{const n=Nt(i,e),r=z(`${a}em`,n.fontSize),o=Nt(c,e);return{style:n,fontSize:n.fontSize||Wt.fontSize,capHeight:r,text:t,textSize:D(t,n),lineHeight:o,backgroundPadding:Nt(s,e)}})),l=((t,e)=>{const{ariaLabel:n,inline:r,className:i,title:a,events:s,direction:c,text:u,textAnchor:l,dx:d,dy:f,transform:p,x:h,y:g,desc:y,id:b,tabIndex:v,tspanComponent:x,textComponent:w}=t,k=at(t),E={"aria-label":n,key:"text",...s,direction:c,dx:d,x:h,y:g+f,transform:p,className:i,title:a,desc:m(y,t),tabIndex:m(v,t),id:b,...k},j=u.map(((n,i)=>{const a=e[i].style,s={key:`${b}-key-${i}`,x:r?void 0:h,dx:r?d+e[i].backgroundPadding.left:d,dy:Rt(e,t,i),textAnchor:a.textAnchor||l,style:a,children:n};return o().cloneElement(x,s)}));return o().cloneElement(w,E,j)})(n,u);if(e.backgroundStyle){const t=[Ht(n,u),l],r=o().cloneElement(e.groupComponent,{},t);return e.renderInPortal?o().createElement(Pt,null,r):r}return e.renderInPortal?o().createElement(Pt,null,l):l};Gt.displayName="VictoryLabel",Gt.role="label",Gt.defaultStyles=Wt;const Kt=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Vt="#252525",Ut="#969696",Qt={width:450,height:300,padding:50,colorScale:Kt},Zt={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Vt,stroke:"transparent"},Yt=Object.assign({textAnchor:"middle"},Zt),Xt={area:Object.assign({style:{data:{fill:Vt},labels:Zt}},Qt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Vt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Yt,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Zt}},Qt),bar:Object.assign({style:{data:{fill:Vt,padding:8,strokeWidth:0},labels:Zt}},Qt),boxplot:Object.assign({style:{max:{padding:8,stroke:Vt,strokeWidth:1},maxLabels:Object.assign({},Zt,{padding:3}),median:{padding:8,stroke:Vt,strokeWidth:1},medianLabels:Object.assign({},Zt,{padding:3}),min:{padding:8,stroke:Vt,strokeWidth:1},minLabels:Object.assign({},Zt,{padding:3}),q1:{padding:8,fill:Ut},q1Labels:Object.assign({},Zt,{padding:3}),q3:{padding:8,fill:Ut},q3Labels:Object.assign({},Zt,{padding:3})},boxWidth:20},Qt),candlestick:Object.assign({style:{data:{stroke:Vt,strokeWidth:1},labels:Object.assign({},Zt,{padding:5})},candleColors:{positive:"#ffffff",negative:Vt}},Qt),chart:Qt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Vt,strokeWidth:2},labels:Zt}},Qt),group:Object.assign({colorScale:Kt},Qt),histogram:Object.assign({style:{data:{fill:Ut,stroke:Vt,strokeWidth:2},labels:Zt}},Qt),legend:{colorScale:Kt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Zt,title:Object.assign({},Zt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Vt,strokeWidth:2},labels:Zt}},Qt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Zt,{padding:20})},colorScale:Kt,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Vt,stroke:"transparent",strokeWidth:0},labels:Zt}},Qt),stack:Object.assign({colorScale:Kt},Qt),tooltip:{style:Object.assign({},Zt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Vt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Zt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Vt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Qt)},Jt=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],te="#ECEFF1",ee="#90A4AE",ne="#455A64",re="#212121",ie={width:350,height:350,padding:50},oe={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:ne,stroke:"transparent",strokeWidth:0},ae=Object.assign({textAnchor:"middle"},oe),se="round",ce="round",ue=(Object.assign({style:{data:{fill:re},labels:oe}},ie),Object.assign({style:{axis:{fill:"transparent",stroke:ee,strokeWidth:2,strokeLinecap:se,strokeLinejoin:ce},axisLabel:Object.assign({},ae,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:te,strokeDasharray:"10, 5",strokeLinecap:se,strokeLinejoin:ce,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ee,strokeWidth:1,strokeLinecap:se,strokeLinejoin:ce},tickLabels:Object.assign({},oe,{fill:ne})}},ie),Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),Object.assign({style:{data:{fill:ne,padding:8,strokeWidth:0},labels:oe}},ie),Object.assign({style:{max:{padding:8,stroke:ne,strokeWidth:1},maxLabels:Object.assign({},oe,{padding:3}),median:{padding:8,stroke:ne,strokeWidth:1},medianLabels:Object.assign({},oe,{padding:3}),min:{padding:8,stroke:ne,strokeWidth:1},minLabels:Object.assign({},oe,{padding:3}),q1:{padding:8,fill:ne},q1Labels:Object.assign({},oe,{padding:3}),q3:{padding:8,fill:ne},q3Labels:Object.assign({},oe,{padding:3})},boxWidth:20},ie),Object.assign({style:{data:{stroke:ne},labels:Object.assign({},oe,{padding:5})},candleColors:{positive:"#ffffff",negative:ne}},ie),Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ne,strokeWidth:2},labels:oe}},ie),Object.assign({colorScale:Jt},ie),Object.assign({style:{data:{fill:ne,stroke:re,strokeWidth:2},labels:oe}},ie),Object.assign({},oe,{padding:5}),Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ne,strokeWidth:2},labels:oe}},ie),Object.assign({colorScale:Jt,style:{data:{padding:8,stroke:te,strokeWidth:1},labels:Object.assign({},oe,{padding:20})}},ie),Object.assign({style:{data:{fill:ne,opacity:1,stroke:"transparent",strokeWidth:0},labels:oe}},ie),Object.assign({colorScale:Jt},ie),Object.assign({},oe,{padding:0,pointerEvents:"none"}),Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},oe,{padding:5,pointerEvents:"none"}),flyout:{stroke:re,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},ie),"#FFFFFF"),le="#E8E8E8",de="#E0E0E0",fe="#D1D1D1",pe="#292929",he="#FF6F2C",ge="#F82B60",ye="#FF08C2",be="#8B46FF",me="#2D7FF9",ve="#18BFFF",xe="#20D9D2",we=[me,ye,xe,be,"#20C933",he,ve,ge,"#FCB400"],ke={width:450,height:300,padding:50,colorScale:we},Ee={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:pe,stroke:"transparent"},je=Object.assign({textAnchor:"middle"},Ee),Oe="10, 5",Se="round",Ae="round",Ce=(Object.assign({style:{data:{fill:ve},labels:Ee}},ke),Object.assign({style:{axis:{fill:"transparent",stroke:de,strokeWidth:1,strokeLinecap:Se,strokeLinejoin:Ae},axisLabel:Object.assign({},je,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:Ee}},ke),Object.assign({style:{axis:{stroke:de},grid:{stroke:le,strokeDasharray:Oe,strokeLinecap:Se,strokeLinejoin:Ae,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:le,strokeWidth:1,strokeLinecap:Se,strokeLinejoin:Ae},tickLabels:Ee}}),Object.assign({style:{axis:{stroke:de},grid:{stroke:le,strokeDasharray:Oe,strokeLinecap:Se,strokeLinejoin:Ae,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:le,strokeWidth:1,strokeLinecap:Se,strokeLinejoin:Ae},tickLabels:Ee}}),Object.assign({style:{data:{fill:me,padding:8,strokeWidth:0},labels:Ee},cornerRadius:{top:1}},ke),Object.assign({style:{max:{padding:8,stroke:fe,strokeWidth:2},maxLabels:Object.assign({},Ee,{padding:3}),median:{padding:8,stroke:ue,strokeWidth:2},medianLabels:Object.assign({},Ee,{padding:3}),min:{padding:8,stroke:fe,strokeWidth:2},minLabels:Object.assign({},Ee,{padding:3}),q1:{padding:8,fill:xe,rx:1},q1Labels:Object.assign({},Ee,{padding:3}),q3:{padding:8,fill:xe,rx:1},q3Labels:Object.assign({},Ee,{padding:3})},boxWidth:20},ke),Object.assign({style:{data:{stroke:de,strokeWidth:0,rx:1},labels:Object.assign({},Ee,{padding:5})},candleColors:{positive:xe,negative:he},wickStrokeWidth:2},ke),Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#424242",strokeWidth:2,strokeLinecap:Se},labels:Ee}},ke),Object.assign({colorScale:we},ke),Object.assign({style:{data:{fill:ve,stroke:"transparent",strokeWidth:0},labels:Ee},binSpacing:4,cornerRadius:{top:1}},ke),Object.assign({},Ee,{padding:8,fontSize:20}),Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ye,strokeWidth:2,strokeLinecap:Se,strokeLinejoin:Ae},labels:Ee}},ke),Object.assign({style:{data:{padding:8,stroke:ue,strokeWidth:1},labels:Object.assign({},Ee,{padding:20})},colorScale:we,cornerRadius:1},ke),Object.assign({style:{data:{fill:be,opacity:1,stroke:"transparent",strokeWidth:0},labels:Ee}},ke),Object.assign({colorScale:we},ke),Object.assign({},Ee,{padding:0,pointerEvents:"none"}),Object.assign({style:{data:{fill:"#FFDCE5",stroke:ge,strokeWidth:2},labels:Object.assign({},Ee,{padding:5,pointerEvents:"none"}),flyout:{stroke:pe,strokeWidth:1,fill:"#F2F2F2",pointerEvents:"none"},padding:{left:2,bottom:2}}},ke),Xt);var $e=r(7491),Me=r.n($e);const Pe=t=>+t;function Le(t){return t*t}function ze(t){return t*(2-t)}function We(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Ie(t){return t*t*t}function _e(t){return--t*t*t+1}function Ne(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Fe=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),De=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Be=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Te=Math.PI,He=Te/2;function Re(t){return 1==+t?1:1-Math.cos(t*He)}function qe(t){return Math.sin(t*He)}function Ge(t){return(1-Math.cos(Te*t))/2}function Ke(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Ve(t){return Ke(1-+t)}function Ue(t){return 1-Ke(t)}function Qe(t){return((t*=2)<=1?Ke(1-t):2-Ke(t-1))/2}function Ze(t){return 1-Math.sqrt(1-t*t)}function Ye(t){return Math.sqrt(1- --t*t)}function Xe(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Je=7.5625;function tn(t){return 1-en(1-t)}function en(t){return(t=+t)<.36363636363636365?Je*t*t:t<.7272727272727273?Je*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Je*(t-=.8181818181818182)*t+.9375:Je*(t-=.9545454545454546)*t+.984375}function nn(t){return((t*=2)<=1?1-en(1-t):en(t-1)+1)/2}var rn=1.70158,on=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(rn),an=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(rn),sn=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(rn),cn=2*Math.PI,un=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=cn);function i(t){return e*Ke(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*cn)},i.period=function(n){return t(e,n)},i}(1,.3),ln=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=cn);function i(t){return 1-e*Ke(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*cn)},i.period=function(n){return t(e,n)},i}(1,.3),dn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=cn);function i(t){return((t=2*t-1)<0?e*Ke(-t)*Math.sin((r-t)/n):2-e*Ke(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*cn)},i.period=function(n){return t(e,n)},i}(1,.3),fn=r(4143),pn=r.n(fn),hn=r(3849),gn=r.n(hn);function yn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function bn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function mn(){}var vn=.7,xn=1/vn,wn="\\s*([+-]?\\d+)\\s*",kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jn=/^#([0-9a-f]{3,8})$/,On=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),Sn=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),An=new RegExp(`^rgba\\(${wn},${wn},${wn},${kn}\\)$`),Cn=new RegExp(`^rgba\\(${En},${En},${En},${kn}\\)$`),$n=new RegExp(`^hsl\\(${kn},${En},${En}\\)$`),Mn=new RegExp(`^hsla\\(${kn},${En},${En},${kn}\\)$`),Pn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ln(){return this.rgb().formatHex()}function zn(){return this.rgb().formatRgb()}function Wn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?In(e):3===n?new Dn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_n(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_n(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=On.exec(t))?new Dn(e[1],e[2],e[3],1):(e=Sn.exec(t))?new Dn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=An.exec(t))?_n(e[1],e[2],e[3],e[4]):(e=Cn.exec(t))?_n(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$n.exec(t))?Gn(e[1],e[2]/100,e[3]/100,1):(e=Mn.exec(t))?Gn(e[1],e[2]/100,e[3]/100,e[4]):Pn.hasOwnProperty(t)?In(Pn[t]):"transparent"===t?new Dn(NaN,NaN,NaN,0):null}function In(t){return new Dn(t>>16&255,t>>8&255,255&t,1)}function _n(t,e,n,r){return r<=0&&(t=e=n=NaN),new Dn(t,e,n,r)}function Nn(t){return t instanceof mn||(t=Wn(t)),t?new Dn((t=t.rgb()).r,t.g,t.b,t.opacity):new Dn}function Fn(t,e,n,r){return 1===arguments.length?Nn(t):new Dn(t,e,n,null==r?1:r)}function Dn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Bn(){return`#${qn(this.r)}${qn(this.g)}${qn(this.b)}`}function Tn(){const t=Hn(this.opacity);return`${1===t?"rgb(":"rgba("}${Rn(this.r)}, ${Rn(this.g)}, ${Rn(this.b)}${1===t?")":`, ${t})`}`}function Hn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Rn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qn(t){return((t=Rn(t))<16?"0":"")+t.toString(16)}function Gn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Vn(t,e,n,r)}function Kn(t){if(t instanceof Vn)return new Vn(t.h,t.s,t.l,t.opacity);if(t instanceof mn||(t=Wn(t)),!t)return new Vn;if(t instanceof Vn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Vn(a,s,c,t.opacity)}function Vn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Un(t){return(t=(t||0)%360)<0?t+360:t}function Qn(t){return Math.max(0,Math.min(1,t||0))}function Zn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Yn(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}yn(mn,Wn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ln,formatHex:Ln,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kn(this).formatHsl()},formatRgb:zn,toString:zn}),yn(Dn,Fn,bn(mn,{brighter(t){return t=null==t?xn:Math.pow(xn,t),new Dn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?vn:Math.pow(vn,t),new Dn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Dn(Rn(this.r),Rn(this.g),Rn(this.b),Hn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bn,formatHex:Bn,formatHex8:function(){return`#${qn(this.r)}${qn(this.g)}${qn(this.b)}${qn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tn,toString:Tn})),yn(Vn,(function(t,e,n,r){return 1===arguments.length?Kn(t):new Vn(t,e,n,null==r?1:r)}),bn(mn,{brighter(t){return t=null==t?xn:Math.pow(xn,t),new Vn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?vn:Math.pow(vn,t),new Vn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Dn(Zn(t>=240?t-240:t+120,i,r),Zn(t,i,r),Zn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Vn(Un(this.h),Qn(this.s),Qn(this.l),Hn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Hn(this.opacity);return`${1===t?"hsl(":"hsla("}${Un(this.h)}, ${100*Qn(this.s)}%, ${100*Qn(this.l)}%${1===t?")":`, ${t})`}`}}));var Xn=t=>()=>t;function Jn(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Xn(isNaN(t)?e:t)}var tr=function t(e){var n=function(t){return 1==(t=+t)?Jn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Xn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Fn(t)).r,(e=Fn(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Jn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function er(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Fn(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function nr(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=lr(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function rr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ir(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function or(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=lr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}er((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return Yn((n-r/e)*e,a,i,o,s)}})),er((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return Yn((n-r/e)*e,i,o,a,s)}}));var ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sr=new RegExp(ar.source,"g");function cr(t,e){var n,r,i,o=ar.lastIndex=sr.lastIndex=0,a=-1,s=[],c=[];for(t+="",e+="";(n=ar.exec(t))&&(r=sr.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:ir(n,r)})),o=sr.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function ur(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function lr(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?Xn(e):("number"===i?ir:"string"===i?(n=Wn(e))?(e=n,tr):cr:e instanceof Wn?tr:e instanceof Date?rr:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?nr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?or:ir:ur))(t,e)}const dr=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||gn()(t)}return!1},fr=function(t,e,n){return void 0===n&&(n=0),function(r){return r<n?t:e}},pr=function(t,e){return function(n){return n>=1?e:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof e?e.apply(this,arguments):e;return lr(r,i)(n)}}},hr=function(t,e){const n=t=>Array.isArray(t)?pn()(t,"key"):t,r={},i={};let o,a=t,s=e;for(o in null!==a&&"object"==typeof a||(a={}),null!==s&&"object"==typeof s||(s={}),s)o in a?r[o]=(c=n(a[o]))!==(u=n(s[o]))&&dr(c)&&dr(u)?"function"==typeof c||"function"==typeof u?pr(c,u):"object"==typeof c&&gn()(c)||"object"==typeof u&&gn()(u)?hr(c,u):lr(c,u):fr(c,u):i[o]=s[o];var c,u;return function(t){for(o in r)i[o]=r[o](t);return i}};var gr,yr,br=0,mr=0,vr=0,xr=0,wr=0,kr=0,Er="object"==typeof performance&&performance.now?performance:Date,jr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Or(){return wr||(jr(Sr),wr=Er.now()+kr)}function Sr(){wr=0}function Ar(){this._call=this._time=this._next=null}function Cr(t,e,n){var r=new Ar;return r.restart(t,e,n),r}function $r(){wr=(xr=Er.now())+kr,br=mr=0;try{!function(){Or(),++br;for(var t,e=gr;e;)(t=wr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--br}()}finally{br=0,function(){for(var t,e,n=gr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:gr=e);yr=t,Pr(r)}(),wr=0}}function Mr(){var t=Er.now(),e=t-xr;e>1e3&&(kr-=e,xr=t)}function Pr(t){br||(mr&&(mr=clearTimeout(mr)),t-wr>24?(t<1/0&&(mr=setTimeout($r,t-Er.now()-kr)),vr&&(vr=clearInterval(vr))):(vr||(xr=Er.now(),vr=setInterval(Mr,1e3)),br=1,jr($r)))}Ar.prototype=Cr.prototype={constructor:Ar,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Or():+n)+(null==e?0:+e),this._next||yr===this||(yr?yr._next=this:gr=this,yr=this),this._call=t,this._time=n,Pr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pr())}};class Lr{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Or()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=Cr(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,e){const n=this.subscribers.push({startTime:Or(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),n}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const zr=o().createContext({transitionTimer:new Lr,animationTimer:new Lr});zr.displayName="TimerContext";var Wr=zr;const Ir=1e3,_r=t=>{let{duration:n=Ir,easing:r="quadInOut",delay:i=0,data:a,children:s,onEnd:c}=t;const[u,l]=o().useState({data:Array.isArray(a)?a[0]:a,animationInfo:{progress:0,animating:!1}}),d=o().useContext(Wr).animationTimer,f=o().useRef(Array.isArray(a)?a.slice(1):[]),p=o().useRef(null),h=o().useRef(void 0),g=e[(y=r,`ease${y.charAt(0).toUpperCase()+y.slice(1)}`)];var y;o().useEffect((()=>(f.current.length&&b(),()=>{h.current?d.unsubscribe(h.current):d.stop()})),[]),o().useEffect((()=>{p.current&&u.animationInfo&&u.animationInfo.progress<1?l({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(d.unsubscribe(h.current),f.current=Array.isArray(a)?a:[a],b())}),[a]);const b=()=>{if(f.current.length){const r=f.current[0];p.current=(t=u.data)!==(e=r)&&dr(t)&&dr(e)?"function"==typeof t||"function"==typeof e?pr(t,e):gn()(t)||gn()(e)?hr(t,e):"string"==typeof t||"string"==typeof e?function(t,e){const n=t=>"string"==typeof t?t.replace(/,/g,""):t;return lr(n(t),n(e))}(t,e):lr(t,e):fr(t,e),i?setTimeout((()=>{h.current=d.subscribe(m,n)}),i):h.current=d.subscribe(m,n)}else c&&c();var t,e},m=t=>{if(!p.current)return;const e=n?t/n:1;if(e>=1)return l({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),h.current&&d.unsubscribe(h.current),f.current.shift(),void b();l({data:p.current(g(e)),animationInfo:{progress:e,animating:e<1}})};return s(u.data,u.animationInfo)};function Nr(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Fr(t,e){return t&&e?t.filter((t=>!e.includes(t))):[]}function Dr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const i=t.concat(n);return Nr(i)?new Date(Math.max(...i)):Math.max(...i)}function Br(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const i=t.concat(n);return Nr(i)?new Date(Math.min(...i)):Math.min(...i)}var Tr=r(5346),Hr=r.n(Tr);function Rr(t,e){return(t.key||e).toString()}function qr(t){return t.reduce(((t,e,n)=>(t[Rr(e,n)]=e,t)),{})}function Gr(t,e){let n=!1;const r=Object.keys(t).reduce(((t,r)=>(r in e||(n=!0,t[r]=!0),t)),{});return n&&r}function Kr(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function Vr(t,e){let n=!1,r=!1;const i=(t,e)=>t.map(((a,s)=>a&&a.props&&a.props.children&&e[s]?i(o().Children.toArray(t[s].props.children),o().Children.toArray(e[s].props.children)):((t,e)=>{if(!e||t.type!==e.type)return{};const{entering:i,exiting:o}=function(t,e){const n=t&&qr(t),r=e&&qr(e);return{entering:n&&Gr(r,n),exiting:r&&Gr(n,r)}}(Kr(t),Kr(e))||{};return n=n||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(a,e[s]))),a=i(o().Children.toArray(t),o().Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function Ur(t,e,n){const r=e&&e.nodesWillExit,i=e&&e.nodesWillEnter,o=e&&e.nodesShouldEnter,a=e&&e.nodesShouldLoad,s=e&&e.nodesDoneLoad,c=e&&e.childrenTransitions||[],u={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},l=(t,e,r)=>a?function(t,e,r){const i=Object.assign({},t,{onEnd:()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=e;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:e};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:Hr();return o=e.map(((t,n)=>Object.assign({},t,a(t,n,e)))),{animate:i,data:o}}(r,e):function(t,e,r,i){const o=Object.assign({},t,{onEnd:()=>{n({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:Hr();return{animate:o,data:r.map(((t,e)=>Object.assign({},t,a(t,e,r)))),clipWidth:0}}(r,0,e),f=(t,e,r,i)=>function(t,e,r,i,o){const a=t&&t.onExit,s=Object.assign({},t,a);let c=r;if(i){t.onEnd=()=>{n({nodesWillExit:!1})};const e=t.onExit&&t.onExit.before?t.onExit.before:Hr();c=r.map(((t,n)=>{const o=(t.key||n).toString();return i[o]?Object.assign({},t,e(t,n,r)):t}))}return{animate:s,data:c}}(i,0,r,t),p=(t,e,r,i)=>o?function(t,e,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let s=e;if(r){a.onEnd=()=>{n({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:Hr();s=e.map(((n,i)=>{const o=Rr(n,i);return r[o]?Object.assign({},n,t(n,i,e)):n}))}return{animate:a,data:s}}(i,r,t):function(t,e,r,i,o){let a=t,s=r;if(i){a=Object.assign({},t,{onEnd:()=>{n({nodesShouldEnter:!0})}});const e=t.onEnter&&t.onEnter.before?t.onEnter.before:Hr();s=r.map(((t,n)=>{const o=(t.key||n).toString();return i[o]?Object.assign({},t,e(t,n,r)):t}))}return{animate:a,data:s}}(i,0,r,t),h=function(t,e){const n=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=n[e]&&n[e].duration;return void 0!==t?t:r[e]&&r[e].duration}return{}};return function(n,a){const g=Kr(n)||[],y=d()({},t.animate,n.props.animate),b=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;y.onExit=d()({},y.onExit,b&&b.onExit),y.onEnter=d()({},y.onEnter,b&&b.onEnter),y.onLoad=d()({},y.onLoad,b&&b.onLoad);const m=c[a]||c[0];if(!s){const t={duration:void 0!==u.load?u.load:h(n,"onLoad")};return l(0,g,Object.assign({},y,t))}if(r){const t=m&&m.exiting,e=void 0!==u.exit?u.exit:h(n,"onExit"),r=t?{duration:e}:{delay:e};return f(t,0,g,Object.assign({},y,r))}if(i){const t=m&&m.entering,e=void 0!==u.enter?u.enter:h(n,"onEnter"),r=void 0!==u.move?u.move:n.props.animate&&n.props.animate.duration,i={duration:o&&t?e:r};return p(t,0,g,Object.assign({},y,i))}return!e&&y&&y.onExit?function(t,e){const n=t.onEnter&&t.onEnter.after?t.onEnter.after:Hr();return{data:e.map(((t,r)=>Object.assign({},t,n(t,r,e))))}}(y,g):{animate:y,data:g}}}function Qr(){return Qr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qr.apply(this,arguments)}class Zr extends o().Component{static displayName="VictoryTransition";static contextType=Wr;constructor(t,e){super(t,e),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const n=this.props.children,r=n.props.polar;this.continuous=!r&&n.type&&!0===n.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Me()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,e){const{animate:n}=t;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?t:null,nextProps:e};const r=o().Children.toArray(t.children),i=o().Children.toArray(e.children),{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:c,nodesShouldEnter:u}=Vr(r,i);return{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:c,nodesShouldEnter:u,oldProps:a?t:null,nextProps:e}}getDomainFromChildren(t,e){const n=t=>t.reduce(((t,r)=>{if(r.type&&E(r.type.getDomain)){const n=r.props&&r.type.getDomain(r.props,e);return n?t.concat(n):t}return r.props&&r.props.children?t.concat(n(o().Children.toArray(r.props.children))):t}),[]),r=o().Children.toArray(t.children)[0],i=r.props||{},a=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[e];if(!i.children&&a)return a;const s=n([r]);return 0===s.length?[0,1]:[Br(s),Dr(s)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const e=t.animate?.parentState;return e&&e.nodesWillExit?(this.continuous||e.continuous)&&(e.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,e){const n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:(()=>{const n=function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[x(t.startAngle||0),x(t.endAngle||360)]:[t.innerRadius||0,w(t)]}(t,e):function(t,e){const n="x"!==e,r=b(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width})()}render(){const t=this.pickProps(),e=this.props.animate?.getTransitions?this.props.animate.getTransitions:Ur(t,this.state,(t=>this.setState(t))),n=o().Children.toArray(t.children)[0],r=e(n);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,n),s=d()({domain:i,clipWidth:a},r,n.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),u=c.length?h()(s,c):s;return o().createElement(_r,Qr({},s.animate,{data:u}),(t=>{if(n.props.groupComponent){const e=this.continuous?o().cloneElement(n.props.groupComponent,{clipWidth:t.clipWidth||0}):n.props.groupComponent;return o().cloneElement(n,d()({animate:null,animating:!0,groupComponent:e},t,s))}return o().cloneElement(n,d()({animate:null,animating:!0},t,s))}))}}var Yr=r(9602),Xr=r.n(Yr),Jr=r(1616),ti=r.n(Jr),ei=r(4912),ni=r.n(ei);const ri=/^onGlobal(.*)$/;function ii(t,e,n,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,n)=>void 0!==n.target?(Array.isArray(n.target)?n.target.includes(e):`${n.target}`==`${e}`)?t.concat(n):t:t.concat(n)),[]);return void 0!==n&&"parent"!==e?r.filter((t=>{const e=t.eventKey,r=t=>!t||`${t}`==`${n}`;return Array.isArray(e)?e.some((t=>r(t))):r(e)})):r})();return Array.isArray(r)&&r.reduce(((t,e)=>e?Object.assign(t,e.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&E(r)?r(i(o),e):void 0;if(!t.sharedEvents)return a;const s=t.sharedEvents.getEvents,c=t.sharedEvents.events&&s(i(t.sharedEvents.events),e);return Object.assign({},c,a)}function oi(t,e,n,r){if($t()(t))return{};const i=r||this.baseProps,o=(t,e)=>{const{childName:n,target:r,key:o}=t,a="props"===e?i:this.state||{},s=null!=n&&a[n]?a[n]:a;return"parent"===o?s.parent:s[o]&&s[o][r]},a=(t,r)=>{const a="parent"===e?t.childName:t.childName||n,s=t.target||e,c=(e,n)=>{const r=this.state||{};if(!E(t.mutation))return r;const a=o({childName:n,key:e,target:s},"props"),c=o({childName:n,key:e,target:s},"state"),u=t.mutation(Object.assign({},a,c),i),l=r[n]||{},d=t=>u?(t=>"parent"===s?Object.assign(t,{[e]:Object.assign(t[e]||{},u)}):Object.assign(t,{[e]:Object.assign(t[e]||{},{[s]:u})}))(t):(t=>(t[e]&&t[e][s]&&delete t[e][s],t[e]&&!Object.keys(t[e]).length&&delete t[e],t))(t);return null!=n?Object.assign(r,{[n]:d(l)}):d(r)},u=e=>{const n=(e=>"parent"===s?"parent":"all"===t.eventKey?i[e]?Object.keys(i[e]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[e]?Object.keys(i[e]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(e);return Array.isArray(n)?n.reduce(((t,n)=>Object.assign(t,c(n,e))),{}):c(n,e)},l="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(l)?l.reduce(((t,e)=>Object.assign(t,u(e))),{}):u(l)},s=(e,n,r,i)=>{const o=t[i](e,n,r,this);if(!$t()(o)){const t=(t=>{const e=t=>E(t.callback)&&t.callback,n=(Array.isArray(t)?t.map((t=>e(t))):[e(t)]).filter((t=>!1!==t));return n.length?()=>n.forEach((t=>t())):void 0})(o);this.setState(((t,e)=>Array.isArray(t)?t.reduce(((t,n)=>Object.assign({},t,a(n,e))),{}):a(t,e))(o,r),t)}};return Object.keys(t).reduce(((t,e)=>(t[e]=s,t)),{})}function ai(t,e,n){const r=this.state||{};return n?r[n]&&r[n][t]&&r[n][t][e]:"parent"===t?r[t]&&r[t][e]||r[t]:r[t]&&r[t][e]}function si(t,e,n,r){const i=(t,e)=>"string"==typeof t[e]?"all"===t[e]||t[e]===r[e]:!!Array.isArray(t[e])&&t[e].map((t=>`${t}`)).includes(r[e]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if($t()(a))return;const s=a.filter((t=>i(t,"eventKey")));return $t()(s)?void 0:s.reduce(((t,r)=>{const i=(r&&E(r.mutation)?r.mutation:()=>{})(Object.assign({},e,n));return Object.assign({},t,i)}),{})}function ci(t){const e=t.match(ri);return e&&e[1]&&e[1].toLowerCase()}const ui=t=>!k(t._x)&&!k(t._y),li=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}],di={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},fi=[{name:"Series 1"},{name:"Series 2"}];class pi extends o().Component{static displayName="VictoryLegend";static role="legend";static defaultProps={borderComponent:o().createElement(tt,null),data:fi,containerComponent:o().createElement(pt,null),dataComponent:o().createElement(At,null),groupComponent:o().createElement("g",null),labelComponent:o().createElement(Gt,null),standalone:!0,theme:Ce,titleComponent:o().createElement(Gt,null)};static getBaseProps(t){return Q(t,di)}static getDimensions(t){return U(t,di)}static expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];renderChildren(t){const{dataComponent:e,labelComponent:n,title:r}=t,i=[];if(t.borderComponent){const e=this.getComponentProps(t.borderComponent,"border","all"),n=o().cloneElement(t.borderComponent,e);i.push(n)}if(e){const t=this.dataKeys.map(((t,n)=>{if("all"===t)return;const r=this.getComponentProps(e,"data",n);return o().cloneElement(e,r)})).filter((t=>void 0!==t));i.push(...t)}if(r&&t.titleComponent){const e=this.getComponentProps(r,"title","all"),n=o().cloneElement(t.titleComponent,e);i.push(n)}if(n){const t=this.dataKeys.map(((t,e)=>{if("all"===t)return;const r=this.getComponentProps(n,"labels",e);return void 0!==r.text&&null!==r.text?o().cloneElement(n,r):void 0})).filter((t=>void 0!==t));i.push(...t)}return i}render(){const{role:t}=this.constructor,e=j(this.props,di,t),n=this.renderChildren(e);return e.standalone?this.renderContainer(e.containerComponent,n):o().cloneElement(e.groupComponent,{},n)}}const hi=(gi=pi,void 0===yi&&(yi={}),class extends gi{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=ai.bind(this);getScopedEvents=oi.bind(this);getEvents=(t,e,n)=>ii.call(this,t,e,n,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const e=this.getExternalMutations(t),n=this.props.animating||this.props.animate,r=!Me()(e,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=e,this.applyExternalMutations(t,e),!0;const i=this.getStateChanges(t);return Me()(this.calculatedState,i)?!Me()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const e=this.getStateChanges(t);this.calculatedState=e;const n=Object.keys(this.globalEvents);Fr(this.prevGlobalEventKeys,n).forEach((t=>this.removeGlobalListener(t))),Fr(n,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=n}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const e=e=>{const n=this.globalEvents[t];return n&&n((t=>Object.assign(t,{nativeEvent:t}))(e))};this.boundGlobalEvents[t]=e,window.addEventListener(ci(t),e)}removeGlobalListener(t){window.removeEventListener(ci(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const e=(t,e)=>{const n=d()({},this.getEventState(t,e),this.getSharedEventState(t,e));return $t()(n)?void 0:n};return(yi.components||li).map((n=>{if(t.standalone||"parent"!==n.name)return void 0!==n.index?e(n.index,n.name):this.dataKeys.map((t=>e(t,n.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,e){if(!$t()(e)){const n=t.externalEventMutations.reduce(((t,e)=>E(e.callback)?t.concat(e.callback):t),[]),r=n.length?()=>{n.forEach((t=>t()))}:void 0;this.setState(e,r)}}getCalculatedValues(t){const{sharedEvents:e}=t,n=function(t,e){const n=Array.isArray(e)&&e.reduce(((e,n)=>{const r=t[n],i=r&&r.type&&r.type.defaultEvents,o=E(i)?i(r.props):i;return Array.isArray(o)?e.concat(...o):e}),[]);return n&&n.length?n:void 0}(t,gi.expectedComponents),r=e&&E(e.getEventState)?e.getEventState:()=>{},i=this.getBaseProps(t,r);return{componentEvents:n,getSharedEventState:r,baseProps:i,dataKeys:Object.keys(i).filter((t=>"parent"!==t)),hasEvents:t.events||t.sharedEvents||n,events:this.getAllEvents(t)}}getExternalMutations(t){const{sharedEvents:e,externalEventMutations:n}=t;return $t()(n)||e?void 0:function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n={}),Object.keys(e).reduce(((i,o)=>{const a=n[o]||{},s=e[o]||{};if("parent"===o){const e=si(t,s,a,{eventKey:o,target:"parent"});i[o]=void 0!==e?Object.assign({},a,e):a}else{const e=Xr()(Object.keys(s).concat(Object.keys(a)));i[o]=e.reduce(((e,n)=>{const i={eventKey:o,target:n,childName:r},c=si(t,s[n],a[n],i);return e[n]=void 0!==c?Object.assign({},a[n],c):a[n],ni()(e,(t=>!$t()(t)))}),{})}return ni()(i,(t=>!$t()(t)))}),{})}(n,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((e=>{this[e]=t[e]}))}getBaseProps(t,e){const n=(e||this.getSharedEventState.bind(this))("parent","parent"),r=this.getEventState("parent","parent"),i=d()({},r,n),o=i.parentControlledProps,a=o?h()(i,o):{},s=d()({},a,t);return"function"==typeof gi.getBaseProps?gi.getBaseProps(s):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(t,e,n){const r=this.props.name||gi.role,i=this.dataKeys&&this.dataKeys[n]||n,o=`${r}-${e}-${i}`,a=this.baseProps[i]&&this.baseProps[i][e]||this.baseProps[i];if(!a&&!this.hasEvents)return;const s=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,e,i),r=d()({index:n,key:o},this.getEventState(i,e),this.getSharedEventState(i,e),s,a,{id:o}),c=d()({},function(t,e,n){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,n,e,i),r)),{}):{}}(t,i,r),r.events);return Object.assign({},r,{events:c})}return d()({index:n,key:o},s,a,{id:o})}renderContainer(t,e){const n=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};var r;return n.events&&(this.globalEvents=(r=n.events,ni()(r,((t,e)=>ri.test(e)))),n.events=(t=>ti()(t,((t,e)=>ri.test(e))))(n.events)),o().cloneElement(t,n,e)}animateComponent(t,e){const n="object"==typeof t.animate&&t.animate?.animationWhitelist||e,r=this.constructor;return o().createElement(Zr,{animate:t.animate,animationWhitelist:n},o().createElement(r,t))}renderContinuousData(t){const{dataComponent:e,labelComponent:n,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),a=i.reduce(((t,e)=>{let r=t;const i=this.getComponentProps(n,"labels",e);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(o().cloneElement(n,i))),r}),[]),s=this.getComponentProps(e,"data","all"),c=[o().cloneElement(e,s),...a];return this.renderContainer(r,c)}renderData(t,e){void 0===e&&(e=ui);const{dataComponent:n,labelComponent:r,groupComponent:i}=t,a=[...this.dataKeys.reduce(((t,r,i)=>{const a=this.getComponentProps(n,"data",i);return e(a.datum)&&t.push(o().cloneElement(n,a)),t}),[]),...this.dataKeys.map(((t,e)=>{const n=this.getComponentProps(r,"labels",e);if(void 0!==n.text&&null!==n.text)return o().cloneElement(r,n)})).filter(Boolean)];return this.renderContainer(i,a)}});var gi,yi}(),i}()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryLegend=e(require("react")):t.VictoryLegend=e(t.React)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3273:function(t,e,n){var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6649:function(t){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},5510:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9955:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},1634:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:function(t,e,n){var r=n(8347),i=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4508:function(t){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),i=n(3608);t.exports=function t(e,n,o,a,s){var c=-1,l=e.length;for(o||(o=i),s||(s=[]);++c<l;){var u=e[c];n>0&&o(u)?n>1?t(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},4432:function(t,e,n){var r=n(9026),i=n(3110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),i=n(3474);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},7028:function(t,e,n){var r=n(8708),i=n(8705),o=n(2813),a=n(6682),s=n(9667),c=n(163),l=n(4801),u=n(4289),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,y,b){var m=c(t),v=c(e),x=m?f:s(t),k=v?f:s(e),w=(x=x==d?p:x)==p,E=(k=k==d?p:k)==p,O=x==k;if(O&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(O&&!w)return b||(b=new r),m||u(t)?i(t,e,n,g,y,b):o(t,e,x,n,g,y,b);if(!(1&n)){var j=w&&h.call(t,"__wrapped__"),A=E&&h.call(e,"__wrapped__");if(j||A){var S=j?t.value():t,C=A?e.value():e;return b||(b=new r),y(S,C,n,g,b)}}return!!O&&(b||(b=new r),a(t,e,n,g,y,b))}},9548:function(t,e,n){var r=n(8708),i=n(9070);t.exports=function(t,e,n,o){var a=n.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<s;){var u=(l=n[a])[0],d=t[u],f=l[1];if(c&&l[2]){if(void 0===d&&!(u in t))return!1}else{var p=new r;if(o)var h=o(d,f,u,t,e,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},3472:function(t,e,n){var r=n(758),i=n(5223),o=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},758:function(t,e,n){var r=n(9548),i=n(597),o=n(6878);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),i=n(9201),o=n(5066),a=n(726),s=n(5385),c=n(6878),l=n(3110);t.exports=function(t,e){return a(t)&&s(e)?c(l(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),i=n(4432),o=n(3472),a=n(383),s=n(9521),c=n(9110),l=n(9409),u=n(5346),d=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,c(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return l(t,e,n)}))}},5436:function(t,e,n){var r=n(6371),i=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},6371:function(t,e,n){var r=n(4432),i=n(6539),o=n(9026);t.exports=function(t,e,n){for(var a=-1,s=e.length,c={};++a<s;){var l=e[a],u=r(t,l);n(u,l)&&i(c,o(l,t),u)}return c}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},7805:function(t){var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=n(e((r-t)/(i||1)),0),c=Array(s);s--;)c[o?s:++a]=t,t+=i;return c}},6317:function(t,e,n){var r=n(5346),i=n(4280),o=n(201);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),i=n(9026),o=n(9099),a=n(7709),s=n(3110);t.exports=function(t,e,n,c){if(!a(t))return t;for(var l=-1,u=(e=i(e,t)).length,d=u-1,f=t;null!=f&&++l<u;){var p=s(e[l]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(l!=d){var g=f[p];void 0===(h=c?c(g,p,f):void 0)&&(h=a(g)?g:o(e[l+1])?[]:{})}r(f,p,h),f=f[p]}return t}},9521:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},6316:function(t,e,n){var r=n(2596),i=n(8644),o=n(163),a=n(1995),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},946:function(t,e,n){var r=n(3273),i=n(5510),o=n(9955),a=n(9914),s=n(6602),c=n(6226);t.exports=function(t,e,n){var l=-1,u=i,d=t.length,f=!0,p=[],h=p;if(n)f=!1,u=o;else if(d>=200){var g=e?null:s(t);if(g)return c(g);f=!1,u=a,h=new r}else h=e?[]:p;t:for(;++l<d;){var y=t[l],b=e?e(y):y;if(y=n||0!==y?y:0,f&&b==b){for(var m=h.length;m--;)if(h[m]===b)continue t;e&&h.push(b),p.push(y)}else u(h,b,n)||(h!==p&&h.push(b),p.push(y))}return p}},9914:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:function(t,e,n){var r=n(163),i=n(726),o=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,c=null===e,l=e==e,u=r(e);if(!c&&!u&&!a&&t>e||a&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!l)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,c=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=c?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}},5659:function(t,e,n){var r=n(6649),i=n(4508),o=n(3472),a=n(163);t.exports=function(t,e){return function(n,s){var c=a(n)?r:i,l=e?e():{};return c(n,t,o(s,2),l)}}},2507:function(t,e,n){var r=n(7805),i=n(8286),o=n(9139);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},6602:function(t){t.exports=function(){}},5525:function(t,e,n){var r=n(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,e,n){var r=n(3273),i=n(1634),o=n(9914);t.exports=function(t,e,n,a,s,c){var l=1&n,u=t.length,d=e.length;if(u!=d&&!(l&&d>u))return!1;var f=c.get(t),p=c.get(e);if(f&&p)return f==e&&p==t;var h=-1,g=!0,y=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++h<u;){var b=t[h],m=e[h];if(a)var v=l?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==v){if(v)continue;g=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||s(b,t,n,a,c)))return y.push(e)}))){g=!1;break}}else if(b!==m&&!s(b,m,n,a,c)){g=!1;break}}return c.delete(t),c.delete(e),g}},2813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:function(t,e,n){var r=n(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var c=1&n,l=r(t),u=l.length;if(u!=r(e).length&&!c)return!1;for(var d=u;d--;){var f=l[d];if(!(c?f in e:i.call(e,f)))return!1}var p=s.get(t),h=s.get(e);if(p&&h)return p==e&&h==t;var g=!0;s.set(t,e),s.set(e,t);for(var y=c;++d<u;){var b=t[f=l[d]],m=e[f];if(o)var v=c?o(m,b,f,e,t,s):o(b,m,f,t,e,s);if(!(void 0===v?b===m||a(b,m,n,o,s):v)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var x=t.constructor,k=e.constructor;x==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof k&&k instanceof k||(g=!1)}return s.delete(t),s.delete(e),g}},5557:function(t,e,n){var r=n(2645),i=n(4280),o=n(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},597:function(t,e,n){var r=n(5385),i=n(7747);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9817:function(t,e,n){var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),i=n(5075),o=n(163),a=n(9099),s=n(8454),c=n(3110);t.exports=function(t,e,n){for(var l=-1,u=(e=r(e,t)).length,d=!1;++l<u;){var f=c(e[l]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++l!=u?d:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},3608:function(t,e,n){var r=n(2596),i=n(5075),o=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),i=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,e,n){var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},6878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),c=Array(s);++a<s;)c[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=n(c),r(t,this,l)}}},2373:function(t,e,n){var r=n(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:function(t,e,n){var r=n(6317),i=n(788),o=n(8286),a=n(8855),s=Object.prototype,c=s.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&o(e[0],e[1],l)&&(r=1);++n<r;)for(var u=e[n],d=a(u),f=-1,p=d.length;++f<p;){var h=d[f],g=t[h];(void 0===g||i(g,s[h])&&!c.call(t,h))&&(t[h]=u[h])}return t}));t.exports=l},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,e,n){var r=n(4432);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},9056:function(t,e,n){var r=n(8347),i=n(5659),o=Object.prototype.hasOwnProperty,a=i((function(t,e,n){o.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=a},5066:function(t,e,n){var r=n(6776),i=n(3096);t.exports=function(t,e){return null!=t&&i(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),i=n(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),i=n(9667),o=n(5075),a=n(163),s=n(981),c=n(4801),l=n(5782),u=n(4289),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||u(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),i=n(7709);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var r=n(563),i=n(9817),o=n(3474),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},7747:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1616:function(t,e,n){var r=n(3472),i=n(6051),o=n(4912);t.exports=function(t,e){return o(t,i(r(e)))}},4143:function(t,e,n){var r=n(8245),i=n(163);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),i=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},4912:function(t,e,n){var r=n(8644),i=n(3472),o=n(6371),a=n(7271);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=i(e),o(t,n,(function(t,n){return e(t,n[0])}))}},8532:function(t,e,n){var r=n(1600),i=n(3301),o=n(726),a=n(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8825:function(t,e,n){var r=n(2507)();t.exports=r},9139:function(t){t.exports=function(t){return t}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,e,n){var r=n(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:function(t,e,n){var r=n(7010),i=0;t.exports=function(t){var e=++i;return r(t)+e}},7491:function(t){var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(u=t.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=t.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(u=t.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!o(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return o(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.r(i),r.d(i,{VictoryLegend:function(){return Wi}});var t={};r.r(t),r.d(t,{circle:function(){return me},cross:function(){return Oe},diamond:function(){return xe},minus:function(){return je},plus:function(){return Ee},square:function(){return ve},star:function(){return Ae},triangleDown:function(){return ke},triangleUp:function(){return we}});var e={};r.r(e),r.d(e,{easeBack:function(){return Cn},easeBackIn:function(){return An},easeBackInOut:function(){return Cn},easeBackOut:function(){return Sn},easeBounce:function(){return En},easeBounceIn:function(){return wn},easeBounceInOut:function(){return On},easeBounceOut:function(){return En},easeCircle:function(){return xn},easeCircleIn:function(){return mn},easeCircleInOut:function(){return xn},easeCircleOut:function(){return vn},easeCubic:function(){return on},easeCubicIn:function(){return nn},easeCubicInOut:function(){return on},easeCubicOut:function(){return rn},easeElastic:function(){return Pn},easeElasticIn:function(){return Mn},easeElasticInOut:function(){return Fn},easeElasticOut:function(){return Pn},easeExp:function(){return bn},easeExpIn:function(){return gn},easeExpInOut:function(){return bn},easeExpOut:function(){return yn},easeLinear:function(){return Xe},easePoly:function(){return cn},easePolyIn:function(){return an},easePolyInOut:function(){return cn},easePolyOut:function(){return sn},easeQuad:function(){return en},easeQuadIn:function(){return Je},easeQuadInOut:function(){return en},easeQuadOut:function(){return tn},easeSin:function(){return pn},easeSinIn:function(){return dn},easeSinInOut:function(){return pn},easeSinOut:function(){return fn}});var n=r(9787),o=r.n(n),a=r(8825),s=r.n(a),c=r(9056),l=r.n(c),u=r(1893),d=r.n(u);const f=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],p="#252525",h="#969696",g={width:450,height:300,padding:50,colorScale:f},y={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:p,stroke:"transparent"},b=Object.assign({textAnchor:"middle"},y),m={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:f,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:p},labels:y}},g),axis:Object.assign({style:{axis:{fill:"transparent",stroke:p,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},b,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:y}},g),bar:Object.assign({style:{data:{fill:p,padding:8,strokeWidth:0},labels:y}},g),boxplot:Object.assign({style:{max:{padding:8,stroke:p,strokeWidth:1},maxLabels:Object.assign({},y,{padding:3}),median:{padding:8,stroke:p,strokeWidth:1},medianLabels:Object.assign({},y,{padding:3}),min:{padding:8,stroke:p,strokeWidth:1},minLabels:Object.assign({},y,{padding:3}),q1:{padding:8,fill:h},q1Labels:Object.assign({},y,{padding:3}),q3:{padding:8,fill:h},q3Labels:Object.assign({},y,{padding:3})},boxWidth:20},g),candlestick:Object.assign({style:{data:{stroke:p,strokeWidth:1},labels:Object.assign({},y,{padding:5})},candleColors:{positive:"#ffffff",negative:p}},g),chart:g,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:p,strokeWidth:2},labels:y}},g),group:Object.assign({colorScale:f},g),histogram:Object.assign({style:{data:{fill:h,stroke:p,strokeWidth:2},labels:y}},g),legend:{colorScale:f,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:y,title:Object.assign({},y,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:p,strokeWidth:2},labels:y}},g),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},y,{padding:20})},colorScale:f,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:p,stroke:"transparent",strokeWidth:0},labels:y}},g),stack:Object.assign({colorScale:f},g),tooltip:{style:Object.assign({},y,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:p,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},y,{padding:5,pointerEvents:"none"}),flyout:{stroke:p,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},g)},v="#FFF59D",x="#F4511E",k="#8BC34A",w="#00796B",E="#006064",O=[x,v,"#DCE775",k,w,E],j="#ECEFF1",A="#90A4AE",S="#455A64",C="#212121",$={blue:"#4F7DA1",pink:"#E2A37F",teal:w,purple:"#DF948A",green:k,orange:x,cyan:E,red:"#DF5A49",yellow:v},M=[j,A,S,C],P={width:350,height:350,padding:50},F={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:S,stroke:"transparent",strokeWidth:0},L=Object.assign({textAnchor:"middle"},F),z="round",W="round",D={palette:{colors:$,grayscale:M,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:C},labels:F}},P),axis:Object.assign({style:{axis:{fill:"transparent",stroke:A,strokeWidth:2,strokeLinecap:z,strokeLinejoin:W},axisLabel:Object.assign({},L,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:j,strokeDasharray:"10, 5",strokeLinecap:z,strokeLinejoin:W,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:A,strokeWidth:1,strokeLinecap:z,strokeLinejoin:W},tickLabels:Object.assign({},F,{fill:S})}},P),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:S,padding:8,strokeWidth:0},labels:F}},P),boxplot:Object.assign({style:{max:{padding:8,stroke:S,strokeWidth:1},maxLabels:Object.assign({},F,{padding:3}),median:{padding:8,stroke:S,strokeWidth:1},medianLabels:Object.assign({},F,{padding:3}),min:{padding:8,stroke:S,strokeWidth:1},minLabels:Object.assign({},F,{padding:3}),q1:{padding:8,fill:S},q1Labels:Object.assign({},F,{padding:3}),q3:{padding:8,fill:S},q3Labels:Object.assign({},F,{padding:3})},boxWidth:20},P),candlestick:Object.assign({style:{data:{stroke:S},labels:Object.assign({},F,{padding:5})},candleColors:{positive:"#ffffff",negative:S}},P),chart:P,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:S,strokeWidth:2},labels:F}},P),group:Object.assign({colorScale:O},P),histogram:Object.assign({style:{data:{fill:S,stroke:C,strokeWidth:2},labels:F}},P),legend:{colorScale:O,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:F,title:Object.assign({},F,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:S,strokeWidth:2},labels:F}},P),pie:Object.assign({colorScale:O,style:{data:{padding:8,stroke:j,strokeWidth:1},labels:Object.assign({},F,{padding:20})}},P),scatter:Object.assign({style:{data:{fill:S,opacity:1,stroke:"transparent",strokeWidth:0},labels:F}},P),stack:Object.assign({colorScale:O},P),tooltip:{style:Object.assign({},F,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:C,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},F,{padding:5,pointerEvents:"none"}),flyout:{stroke:C,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},P)},I="#FFFFFF",_="#E8E8E8",B="#E0E0E0",N="#D1D1D1",T="#757575",H="#5C5C5C",R="#292929",q="#FCB400",G="#FF6F2C",K="#F82B60",V="#FF08C2",U="#8B46FF",Q="#CFDFFF",Z="#2D7FF9",Y="#18BFFF",X="#20D9D2",J="#20C933",tt={blue:Z,pink:V,teal:X,purple:U,green:J,orange:G,cyan:Y,red:K,yellow:q},et=Object.values(tt),nt=[_,N,H,R],rt=[q,G,K,V],it=[Y,X,Z,U],ot=[J,q,K],at=[K,"#FF9EB7","#FFDCE5"],st=[J,"#93E088","#D1F7C4"],ct=[Z,"#9CC7FF",Q],lt={width:450,height:300,padding:50,colorScale:et},ut={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:R,stroke:"transparent"},dt=Object.assign({textAnchor:"middle"},ut),ft="10, 5",pt="round",ht="round",gt={grayscale:m,material:D,clean:{palette:{colors:tt,grayscale:nt,qualitative:et,heatmap:ot,warm:rt,cool:it,red:at,green:st,blue:ct},area:Object.assign({style:{data:{fill:Z,strokeWidth:2,fillOpacity:.5},labels:ut}},lt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:T,strokeWidth:1,strokeLinecap:pt,strokeLinejoin:ht},axisLabel:Object.assign({},dt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:ut}},lt),polarAxis:Object.assign({style:{axis:{stroke:T},grid:{stroke:N,strokeDasharray:ft,strokeLinecap:pt,strokeLinejoin:ht,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:N,strokeWidth:1,strokeLinecap:pt,strokeLinejoin:ht},tickLabels:ut}}),polarDependentAxis:Object.assign({style:{axis:{stroke:T},grid:{stroke:N,strokeDasharray:ft,strokeLinecap:pt,strokeLinejoin:ht,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:B,strokeWidth:1,strokeLinecap:pt,strokeLinejoin:ht},tickLabels:ut}}),bar:Object.assign({style:{data:{fill:Z,padding:8,strokeWidth:1,fillOpacity:.5},labels:ut},cornerRadius:{top:1}},lt),boxplot:Object.assign({style:{max:{padding:8,stroke:N,strokeWidth:2},maxLabels:Object.assign({},ut,{padding:3}),median:{padding:8,stroke:I,strokeWidth:2},medianLabels:Object.assign({},ut,{padding:3}),min:{padding:8,stroke:N,strokeWidth:2},minLabels:Object.assign({},ut,{padding:3}),q1:{padding:8,fill:X,rx:1,strokeWidth:2},q1Labels:Object.assign({},ut,{padding:3}),q3:{padding:8,fill:Y,rx:1},q3Labels:Object.assign({},ut,{padding:3})},boxWidth:20},lt),candlestick:Object.assign({style:{data:{stroke:B,strokeWidth:0,rx:1},labels:Object.assign({},ut,{padding:5})},candleColors:{positive:X,negative:G},wickStrokeWidth:2},lt),chart:lt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#424242",strokeWidth:2,strokeLinecap:pt},labels:ut}},lt),group:Object.assign({colorScale:et},lt),histogram:Object.assign({style:{data:{fill:Y,fillOpacity:.5},labels:ut},binSpacing:4,cornerRadius:{top:1}},lt),label:ut,legend:{colorScale:et,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...ut,fontSize:12},title:Object.assign({},ut,{padding:8,fontSize:16}),border:{stroke:_,strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Z,strokeWidth:2,strokeLinecap:pt,strokeLinejoin:ht},labels:ut}},lt),pie:Object.assign({style:{parent:{backgroundColor:I},data:{padding:8,stroke:I,strokeWidth:1},labels:{...ut,padding:20,fill:H,fontSize:10}},colorScale:et,cornerRadius:1},lt),scatter:Object.assign({style:{data:{fill:U,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...ut,padding:20}}},lt),stack:Object.assign({colorScale:et},lt),tooltip:{style:Object.assign({},ut,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:B,strokeWidth:2,fill:I,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Q,stroke:Z,strokeWidth:2,opacity:.4},labels:Object.assign({},ut,{padding:5,pointerEvents:"none"}),flyout:{stroke:R,strokeWidth:1,fill:"#F2F2F2",pointerEvents:"none"},padding:{left:2,bottom:2}}},lt)}},yt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(((t,e)=>[t,yt(e)].join(" ")),yt(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];i.push(`${e}(${n})`)}return i.join(" ").trim()};var bt=r(9082),mt=r.n(bt);function vt(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function xt(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:c,_voronoiY:l}=t,u=e(r)?r:n,f=e(s)?s:a,p={x:e(o)?o:u,x0:e(i)?i:n,y:e(l)?l:f,y0:e(c)?c:a};return d()({},p,t)}function kt(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,i="object"==typeof n?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function wt(t,e){return St(t)?t(e):t}function Et(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>St(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=wt(t[r],e),n)),{}):t}function Ot(t){return"number"==typeof t?t*(Math.PI/180):t}function jt(t){const{left:e,right:n,top:r,bottom:i}=kt(t),{width:o,height:a}=t;return Math.min(o-e-n,a-r-i)/2}function At(t){return null==t}function St(t){return"function"==typeof t}function Ct(t,e,n){const r=vt(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const e=t=>t.reduce(((t,n)=>{const r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(o().Children.toArray(r.children))}),!1);return e(o().Children.toArray(t.children))}(t),a=void 0===i?{}:{horizontal:i};return d()(a,t,r,e)}r(8532);var $t=r(1594),Mt=r.n($t);const Pt={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Ft={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Lt={em:1,ex:.5},zt={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Wt=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Dt=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},It=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=n?Ft.hasOwnProperty(n)?r*Ft[n]:Lt.hasOwnProperty(n)?(e?r*e:r*zt.fontSize)*Lt[n]:r:r||0,i},_t=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=d()({},n,zt);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:It(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:It(String(r.fontSize))})},Bt=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:Wt(t).reduce(((t,n,r)=>{const i=_t(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,e),i=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=Wt(t).map(((t,n)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=_t(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>Pt[t]))||"Helvetica";return Pt[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,e)=>e+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?Dt(i,r,n):i,height:1.05*(n?Dt(r,i,n):r)}},Nt=Mt()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),Tt=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",Ht=Mt()(((t,e)=>{let n=Nt();n.isConnected||(Nt.cache.clear?.(),n=Nt());const r=Wt(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=_t(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),n.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?Dt(o,i,e?.angle):o,height:e?.angle?Dt(i,o,e?.angle):i}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(Tt).join():Tt(e)}`)),Rt=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?Bt(t,e):Ht(t,e)}(t,e),qt=t=>{const{data:e,style:n}=t;return e.map(((t,r)=>Et(d()({},t.labels,n.labels),{datum:t,index:r,data:e})))},Gt=t=>{const{orientation:e,theme:n}=t,r=function(t,e){void 0===e&&(e={});const n=t.style||{};return{parent:d()(n.parent,e.parent,{height:"100%",width:"100%"}),data:d()({},n.data,e.data),labels:d()({},n.labels,e.labels),border:d()({},n.border,e.border),title:d()({},n.title,e.title)}}(t,n&&n.legend&&n.legend.style?n.legend.style:{}),i=(t=>{const{colorScale:e,theme:n}=t;return"string"==typeof e?function(t,e){void 0===e&&(e=gt.material);const{palette:{grayscale:n=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:i=[],warm:o=[],cool:a=[],red:s=[],blue:c=[],green:l=[]}={}}=e,u={grayscale:n,qualitative:r,heatmap:i,warm:o,cool:a,red:s,blue:c,green:l};return t&&u[t]?.length?u[t]:u.grayscale}(e,n):e||[]})(t),o="horizontal"===e,a=kt({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:o,colorScale:i,borderPadding:a})},Kt=(t,e)=>{const{itemsPerRow:n,isHorizontal:r}=t;return n?r?e%n:Math.floor(e/n):r?e:0},Vt=(t,e)=>{const{itemsPerRow:n,isHorizontal:r}=t;return n?r?Math.floor(e/n):e%n:r?0:e},Ut=t=>{const{data:e}=t,n=t.style&&t.style.data||{},r=qt(t);return e.map(((e,i)=>{const o=e.symbol||{},{fontSize:a}=r[i],s=o.size||n.size||a/2.5,c=t.symbolSpacer||Math.max(s,a);return{...e,size:s,symbolSpacer:c,fontSize:a,textSize:Rt(e.name,r[i]),column:Kt(t,i),row:Vt(t,i)}}))},Qt=(t,e)=>{const n=t.gutter||{},r="object"==typeof n?(n.left||0)+(n.right||0):n||0,i=l()(e,"column");return Object.keys(i).reduce(((t,e,n)=>{const o=i[e].map((t=>t.textSize.width+t.size+t.symbolSpacer+r));return t[n]=Math.max(...o),t}),[])},Zt=(t,e)=>{const n=t.rowGutter||{},r="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,i=l()(e,"row");return Object.keys(i).reduce(((t,e,n)=>{const o=i[e].map((t=>t.textSize.height+t.symbolSpacer+r));return t[n]=Math.max(...o),t}),[])},Yt=t=>{const e=t.style&&t.style.title||{},n=Rt(t.title,e),r=e.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Xt=(t,e)=>{const n=Ct(t,e,"legend"),r=Object.assign({},n,Gt(n)),{title:i,titleOrientation:o}=r,a=Ut(r),s=Qt(r,a),c=Zt(r,a),l=i?Yt(r):{height:0,width:0};return{height:"left"===o||"right"===o?Math.max(te(c),l.height):te(c)+l.height,width:"left"===o||"right"===o?te(s)+l.width:Math.max(te(s),l.width)}},Jt=(t,e)=>{const n=Ct(t,e,"legend"),r=Object.assign({},n,Gt(n)),{data:i,standalone:o,theme:a,padding:c,style:l,colorScale:u,gutter:f,rowGutter:p,borderPadding:h,title:g,titleOrientation:y,name:b,x:m=0,y:v=0}=r,x=Ut(r),k=Qt(r,x),w=Zt(r,x),E=qt(r),O=g?Yt(r):{height:0,width:0},j="left"===y?O.width:0,A="top"===y?O.height:0,S=f&&"object"==typeof f&&f.left||0,C=p&&"object"==typeof p&&p.top||0,{height:$,width:M}=Xt(r,e),P=((t,e,n)=>{const{x:r,y:i,borderPadding:o,style:a}=t;return{x:r,y:i,height:(e||0)+o.top+o.bottom,width:(n||0)+o.left+o.right,style:Object.assign({fill:"none"},a.border)}})(r,$,M),F=((t,e)=>{const{title:n,titleOrientation:r,centerTitle:i,borderPadding:o}=t,{height:a,width:s}=e,c=(t=>{const{titleOrientation:e,centerTitle:n,titleComponent:r}=t,i=t.style&&t.style.title||{},o=r.props&&r.props.style||{},a=((t,e)=>{const n={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(e){const e="top"===t||"bottom"===t;return{textAnchor:e?"middle":n.textAnchor,verticalAnchor:e?n.verticalAnchor:"middle"}}return n})(e,n);return Array.isArray(o)?o.map((t=>d()({},t,i,a))):d()({},o,i,a)})(t),l=Array.isArray(c)?c[0].padding:c.padding,u="top"===r||"bottom"===r,f="right"===r?"right":"left",p={x:i?s/2:o["bottom"===r?"bottom":"top"]+(l||0),y:i?a/2:o[f]+(l||0)},h=()=>o[r]+(l||0),g=u?p.x:h(),y=u?h():p.y;return{x:"right"===r?t.x+s-g:t.x+g,y:"bottom"===r?t.y+a-y:t.y+y,style:c,text:n}})(r,P),L={parent:{data:i,standalone:o,theme:a,padding:c,name:b,height:r.height,width:r.width,style:l.parent},all:{border:P,title:F}};return x.reduce(((t,e,n)=>{const r=u[n%u.length],o=d()({},e.symbol,l.data,{fill:r}),a=At(e.eventKey)?n:e.eventKey,c=((t,e,n)=>{const{column:r,row:i}=t;return{x:s()(r).reduce(((t,e)=>t+n[e]),0),y:s()(i).reduce(((t,n)=>t+e[n]),0)}})(e,w,k),f=v+h.top+e.symbolSpacer,p=m+h.left+e.symbolSpacer,g={index:n,data:i,datum:e,symbol:o.type||o.symbol||"circle",size:e.size,style:o,y:f+c.y+A+C,x:p+c.x+j+S},y={datum:e,data:i,text:e.name,style:E[n],y:g.y,x:g.x+e.symbolSpacer+e.size/2};return t[a]={data:g,labels:y},t}),L)};function te(t){if(t&&t.length){let e=0;for(let n=0;n<t.length;n++)e+=t[n];return e}return 0}function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ee.apply(this,arguments)}const ne=(0,n.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:a,...s}=t,c={vectorEffect:"non-scaling-stroke",id:wt(r,t)?.toString(),tabIndex:wt(i,t),...s};return n?o().createElement("rect",ee({},c,{ref:e}),o().createElement("desc",null,n)):o().createElement("rect",ee({},c,{ref:e}))})),re={rectComponent:o().createElement(ne,null),role:"presentation",shapeRendering:"auto"},ie=t=>{const e=(t=>{const e=wt(t.ariaLabel,t),n=wt(t.desc,t),r=wt(t.id,t),i=Et(Object.assign({fill:"none"},t.style),t),o=wt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:i,tabIndex:o})})(d()({},t,re));return o().cloneElement(e.rectComponent,{...e.events,"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath})};var oe=r(660),ae=r.n(oe);function se(){return se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},se.apply(this,arguments)}const ce=o().forwardRef(((t,e)=>o().createElement("svg",se({ref:e},t)))),le={startsWith:["data-","aria-"],exactMatch:[]},ue=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return le.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>le.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,wt(r,t)]})))},de=o().createContext(void 0);de.displayName="PortalContext";const fe=()=>o().useContext(de),pe=t=>{let{children:e}=t;const[n,r]=o().useState(new Map),i=o().useCallback(((t,e)=>{r((n=>{const r=new Map(n);return r.set(t,e),r}))}),[r]),a=o().useCallback((t=>{r((e=>{const n=new Map(e);return n.delete(t),n}))}),[r]),s=o().useMemo((()=>({addChild:i,removeChild:a,children:n})),[i,a,n]);return o().createElement(de.Provider,{value:s},e)},he=t=>{let{as:e,...n}=t;const r=fe();if(!r)return null;const i=Array.from(r.children.values());return o().cloneElement(e,n,i)};function ge(){return ge=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ge.apply(this,arguments)}const ye={className:"VictoryContainer",portalComponent:o().createElement(ce,null),portalZIndex:99,responsive:!0,role:"img"},be=t=>{const{role:e,title:r,desc:i,children:a,className:s,portalZIndex:c,portalComponent:l,width:u,height:d,style:f,tabIndex:p,responsive:h,events:g,ouiaId:y,ouiaSafe:b,ouiaType:m,dimensions:v,ariaDescribedBy:x,ariaLabelledBy:k,viewBox:w,preserveAspectRatio:E,userProps:O,titleId:j,descId:A,containerRef:S,localContainerRef:C}=function(t){const e={...ye,...t},{title:r,desc:i,width:o,height:a,responsive:s}=e,c=(0,n.useRef)(null),l=(0,n.useRef)(ae()("victory-container-")),u=e.containerId??l.current,d=t=>`${u}-${t}`,f=ue(e),p=s?{width:"100%",height:"100%"}:{width:o,height:a},h=s?`0 0 ${o} ${a}`:void 0,g=s?e.preserveAspectRatio:void 0,y=[r&&d("title"),e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,b=[i&&d("desc"),e["aria-describedby"]].filter(Boolean).join(" ")||void 0,m=d("title"),v=d("desc");return{...e,titleId:m,descId:v,dimensions:p,viewBox:h,preserveAspectRatio:g,ariaLabelledBy:y,ariaDescribedBy:b,userProps:f,localContainerRef:c}}(t);return o().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),e=C?.current;return e?.addEventListener("wheel",t),()=>{e?.removeEventListener("wheel",t)}}),[]),o().createElement("div",{className:s,style:{...f,width:h?f?.width:v.width,height:h?f?.height:v.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":y,"data-ouia-component-type":m,"data-ouia-safe":b,ref:($=[C,S],t=>{$.forEach((e=>{St(e)?e(t):null!=e&&(e.current=t)}))})},o().createElement(pe,null,o().createElement("svg",ge({width:u,height:d,tabIndex:p,role:e,"aria-labelledby":k,"aria-describedby":x,viewBox:w,preserveAspectRatio:E,style:{...v,pointerEvents:"all"}},O,g),r?o().createElement("title",{id:j},r):null,i?o().createElement("desc",{id:A},i):null,a),o().createElement("div",{style:{...v,zIndex:c,position:"absolute",top:0,left:0}},o().createElement(he,{as:l,width:u,height:d,viewBox:w,preserveAspectRatio:E,style:{...v,overflow:"visible"}}))));var $};function me(t,e,n){return`M ${t}, ${e}\n m ${-n}, 0\n a ${n}, ${n} 0 1,0 ${2*n},0\n a ${n}, ${n} 0 1,0 ${2*-n},0`}function ve(t,e,n){const r=.87*n,i=t-r,o=t+r-i;return`M ${i}, ${e+r}\n h${o}\n v-${o}\n h-${o}\n z`}function xe(t,e,n){const r=.87*n,i=Math.sqrt(r*r*2);return`M ${t}, ${e+i}\n l ${i}, -${i}\n l -${i}, -${i}\n l -${i}, ${i}\n l ${i}, ${i}\n z`}function ke(t,e,n){const r=e-n;return`M ${t-n}, ${r}\n L ${t+n}, ${r}\n L ${t}, ${e+n/2*Math.sqrt(3)}\n z`}function we(t,e,n){const r=e+n;return`M ${t-n}, ${r}\n L ${t+n}, ${r}\n L ${t}, ${e-n/2*Math.sqrt(3)}\n z`}function Ee(t,e,n){const r=1.1*n,i=r/1.5;return`\n M ${t-i/2}, ${e+r}\n v-${i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${i}\n z`}function Oe(t,e,n){const r=.8*n,i=r/1.5;return`\n M ${t-i/2}, ${e+r+i}\n v-${2*i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${2*i}\n z`}function je(t,e,n){const r=1.1*n,i=r-.3*r,o=t-r,a=t+r-o;return`M ${o}, ${e+i/2}\n h${a}\n v-${i}\n h-${a}\n z`}function Ae(t,e,n){const r=1.35*n,i=Math.PI/5;return`M ${function(t,e,n){let r=10;r||(r=0);const i=r-0,o=Math.abs(i),a=i/o||1,s=Math.max(Math.ceil(o/1),0);return Array.from(Array(s),((t,e)=>0+e*a*1))}().map((n=>{const o=n%2==0?r:r/2;return`${o*Math.sin(i*(n+1))+t},\n ${o*Math.cos(i*(n+1))+e}`})).join("L")} z`}function Se(){return Se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Se.apply(this,arguments)}be.role="container";const Ce=(0,n.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:a,...s}=t,c={id:wt(r,t)?.toString(),tabIndex:wt(i,t),...s};return n?o().createElement("path",Se({},c,{ref:e}),o().createElement("desc",null,n)):o().createElement("path",Se({},c,{ref:e}))})),$e=e=>{const{x:n,y:r,size:i,symbol:o}=e;return e.getPath?e.getPath(n,r,i):("function"==typeof t[o]?t[o]:t.circle)(n,r,i)},Me={pathComponent:o().createElement(Ce,null),role:"presentation",shapeRendering:"auto"},Pe=t=>{const e=(t=>{const e=wt(t.ariaLabel,t),n=wt(t.desc,t),r=wt(t.id,t),i=wt(t.size,t),o=Et(t.style,t),a=wt(t.symbol,t),s=wt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,size:i,style:o,symbol:a,tabIndex:s})})(d()({},t,Me)),n=ue(e);return o().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,d:$e(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,role:e.role,shapeRendering:e.shapeRendering,className:e.className,transform:e.transform,clipPath:e.clipPath,...n})};var Fe=r(4155),Le=r.n(Fe);const ze={groupComponent:o().createElement("g",null)},We=t=>{const e={...ze,...t},n=ae()(),r=fe(),i=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:a}=e,s=i&&i.props||{},c=s.groupComponent?{groupComponent:a,standalone:!1}:{},l=d()(c,s,vt(e,["children","groupComponent"]),{key:s.key??n}),u=i&&o().cloneElement(i,l);return o().useEffect((()=>{r?.addChild(n,u)}),[e.children]),o().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:u};We.role="portal";const De=t=>{const{children:e,desc:n,id:r,origin:i,tabIndex:a,title:s,...c}=t,l={id:wt(r,t)?.toString(),tabIndex:wt(a,t),...c};return o().createElement("text",l,s&&o().createElement("title",null,s),n&&o().createElement("desc",null,n),e)},Ie=t=>{const{desc:e,id:n,tabIndex:r,origin:i,...a}=t,s={id:wt(n,t)?.toString(),tabIndex:wt(r,t),...a};return o().createElement("tspan",s)};const _e={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Be=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:i}=t,o=xt(e),a=t.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),c=i?n.y(o.y0):n.x(o.x0),l=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?l*Math.cos(s)+a.x:s,x0:r?u*Math.cos(c)+a.x:c,y:r?-l*Math.sin(s)+a.y:l,y0:r?-u*Math.sin(c)+a.x:u}}(t,t.datum);return n[e]},Ne=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return _e.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?_e.fontSize:t}return _e.fontSize},Te=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},He=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!Le()(e)||Array.isArray(n)&&!Le()(n)},Re=(t,e,n)=>{const{polar:r}=t,i=Te(t.style),o=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const i=function(t,e){const{x:n}=xt(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===i.angle?wt(t.angle,t):i.angle,s=void 0===a?o:a,c=t.transform||i.transform,l=c&&wt(c,t);return l||s?yt(l,s&&{rotate:[s,e,n]}):void 0},qe=(t,e)=>{const{direction:n,textAnchor:r,x:i,dx:o}=t;if("rtl"===n)return i-e;switch(r){case"middle":return Math.round(i-e/2);case"end":return Math.round(i-e);default:return i+(o||0)}},Ge=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=t,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-e);default:return Math.floor(o-e/2)}},Ke=(t,e)=>He(t)?((t,e)=>{const{dy:n,dx:r,transform:i,backgroundStyle:a,backgroundPadding:s,backgroundComponent:c,inline:l,y:u}=t,f=e.map(((t,i)=>{const o=Te(e,i-1),a=t.textSize,c=t.fontSize*t.lineHeight,d=Math.ceil(c),f=Te(s,i),p=Te(s,i-1),h=l&&r||0,g=i&&!l?o.fontSize*o.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:d,labelSize:a,heightWithPadding:d+f.top+f.bottom,widthWithPadding:a.width+f.left+f.right+h,y:u,fontSize:t.fontSize,dy:g}}));return f.map(((e,n)=>{const r=qe(t,e.labelSize.width),p=f.slice(0,n+1).reduce(((t,e)=>t+e.dy),u),h=Te(s,n),g=e.heightWithPadding,y=l?((t,e,n)=>{const{textAnchor:r}=t,i=e.map((t=>t.widthWithPadding)),o=-i.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return i.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return i.reduce(((t,e,r)=>r>n?t-e:t),0);default:return i.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),o)}})(t,f,n)+r-h.left:r,b=l?Ge(t,g)-h.top:p,m={key:`tspan-background-${n}`,height:g,style:Te(a,n),width:e.widthWithPadding,transform:i,x:y-h.left,y:b};return o().cloneElement(c,d()({},c.props,m))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:a,inline:s,backgroundPadding:c,capHeight:l}=t,u=e.map((t=>t.textSize)),f=s?Math.max(...u.map((t=>t.height))):u.reduce(((t,n,r)=>{const i=r?0:l/2;return t+n.height*(e[r].lineHeight-i)}),0),p=s?u.reduce(((t,e,r)=>{const i=r?n:0;return t+e.width+i}),0):Math.max(...u.map((t=>t.width))),h=qe(t,p),g=Ge(t,f),y={key:"background",height:f+c.top+c.bottom,style:a,transform:r,width:p+c.left+c.right,x:s?h-c.left:h+n-c.left,y:g};return o().cloneElement(i,d()({},i.props,y))})(t,e),Ve=(t,e,n)=>{const{inline:r}=e,i=Te(t,n);return n&&!r?((t,e,n)=>{const r=Te(t,e),i=Te(t,e-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,c=r.fontSize-r.capHeight,l=o-i.fontSize/2+r.fontSize/2-o/2+a/2-c/2+s/2;return He(n)?l+r.backgroundPadding.top+i.backgroundPadding.bottom:l})(t,n,e):r?0===n?i.backgroundPadding.top:void 0:i.backgroundPadding.top},Ue={backgroundComponent:o().createElement(ne,null),groupComponent:o().createElement("g",null),direction:"inherit",textComponent:o().createElement(De,null),tspanComponent:o().createElement(Ie,null),capHeight:.71,lineHeight:1},Qe=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>wt(t,e)));const n=wt(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=Et(t,e);return{fontSize:Ne(n)}}const n=t=>{const n=Et(t?d()({},t,_e):_e,e);return Object.assign({},n,{fontSize:Ne(n)})};return Array.isArray(t)&&!Le()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!Le()(t)?t.map((t=>Et(t,e))):Et(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>kt({padding:wt(e,t)}))):kt({padding:wt(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),o=wt(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:n,text:e,id:o})})(d()({},t,Ue));if(null===e.text||void 0===e.text)return null;const n=(t=>{const e=wt(t.ariaLabel,t),n=Te(t.style),r=(t=>{const e=wt(t.lineHeight,t);return Array.isArray(e)&&Le()(e)?[1]:e})(t),i=t.direction?wt(t.direction,t):"inherit",o=t.textAnchor?wt(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?wt(t.verticalAnchor,t):n.verticalAnchor||"middle",s=t.dx?wt(t.dx,t):0,c=((t,e,n)=>{const r=t.dy?wt(t.dy,t):0,i=t.inline?1:t.text.length,o=wt(t.capHeight,t),a=e?wt(e,t):"middle",s=[...Array(i).keys()].map((e=>Te(t.style,e).fontSize)),c=[...Array(i).keys()].map((t=>Te(n,t)));if("start"===a)return r+(o/2+c[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-c[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*c[0])*s[0]:r+(o/2+(.5-i/2)*c[0])*s[0];const l=[...Array(i).keys()].reduce(((t,e)=>t+(o/2+(.5-i)*c[e])*s[e]/i),0);return"end"===a?r+l:r+l/2+o/2*c[i-1]*s[i-1]})(t,a,r),l=void 0!==t.x?t.x:Be(t,"x"),u=void 0!==t.y?t.y:Be(t,"y"),d=Re(t,l,u);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:c,originalDy:wt(t.dy,t),transform:d,x:l,y:u})})(e),{text:r,style:i,capHeight:a,backgroundPadding:s,lineHeight:c}=n,l=r.map(((t,e)=>{const n=Te(i,e),r=It(`${a}em`,n.fontSize),o=Te(c,e);return{style:n,fontSize:n.fontSize||_e.fontSize,capHeight:r,text:t,textSize:Rt(t,n),lineHeight:o,backgroundPadding:Te(s,e)}})),u=((t,e)=>{const{ariaLabel:n,inline:r,className:i,title:a,events:s,direction:c,text:l,textAnchor:u,dx:d,dy:f,transform:p,x:h,y:g,desc:y,id:b,tabIndex:m,tspanComponent:v,textComponent:x}=t,k=ue(t),w={"aria-label":n,key:"text",...s,direction:c,dx:d,x:h,y:g+f,transform:p,className:i,title:a,desc:wt(y,t),tabIndex:wt(m,t),id:b,...k},E=l.map(((n,i)=>{const a=e[i].style,s={key:`${b}-key-${i}`,x:r?void 0:h,dx:r?d+e[i].backgroundPadding.left:d,dy:Ve(e,t,i),textAnchor:a.textAnchor||u,style:a,children:n};return o().cloneElement(v,s)}));return o().cloneElement(x,w,E)})(n,l);if(e.backgroundStyle){const t=[Ke(n,l),u],r=o().cloneElement(e.groupComponent,{},t);return e.renderInPortal?o().createElement(We,null,r):r}return e.renderInPortal?o().createElement(We,null,u):u};Qe.displayName="VictoryLabel",Qe.role="label",Qe.defaultStyles=_e;var Ze=r(7491),Ye=r.n(Ze);const Xe=t=>+t;function Je(t){return t*t}function tn(t){return t*(2-t)}function en(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function nn(t){return t*t*t}function rn(t){return--t*t*t+1}function on(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var an=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),sn=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),cn=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),ln=Math.PI,un=ln/2;function dn(t){return 1==+t?1:1-Math.cos(t*un)}function fn(t){return Math.sin(t*un)}function pn(t){return(1-Math.cos(ln*t))/2}function hn(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function gn(t){return hn(1-+t)}function yn(t){return 1-hn(t)}function bn(t){return((t*=2)<=1?hn(1-t):2-hn(t-1))/2}function mn(t){return 1-Math.sqrt(1-t*t)}function vn(t){return Math.sqrt(1- --t*t)}function xn(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var kn=7.5625;function wn(t){return 1-En(1-t)}function En(t){return(t=+t)<.36363636363636365?kn*t*t:t<.7272727272727273?kn*(t-=.5454545454545454)*t+.75:t<.9090909090909091?kn*(t-=.8181818181818182)*t+.9375:kn*(t-=.9545454545454546)*t+.984375}function On(t){return((t*=2)<=1?1-En(1-t):En(t-1)+1)/2}var jn=1.70158,An=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(jn),Sn=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(jn),Cn=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(jn),$n=2*Math.PI,Mn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=$n);function i(t){return e*hn(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*$n)},i.period=function(n){return t(e,n)},i}(1,.3),Pn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=$n);function i(t){return 1-e*hn(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*$n)},i.period=function(n){return t(e,n)},i}(1,.3),Fn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=$n);function i(t){return((t=2*t-1)<0?e*hn(-t)*Math.sin((r-t)/n):2-e*hn(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*$n)},i.period=function(n){return t(e,n)},i}(1,.3),Ln=r(4143),zn=r.n(Ln),Wn=r(3849),Dn=r.n(Wn);function In(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function _n(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Bn(){}var Nn=.7,Tn=1/Nn,Hn="\\s*([+-]?\\d+)\\s*",Rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gn=/^#([0-9a-f]{3,8})$/,Kn=new RegExp(`^rgb\\(${Hn},${Hn},${Hn}\\)$`),Vn=new RegExp(`^rgb\\(${qn},${qn},${qn}\\)$`),Un=new RegExp(`^rgba\\(${Hn},${Hn},${Hn},${Rn}\\)$`),Qn=new RegExp(`^rgba\\(${qn},${qn},${qn},${Rn}\\)$`),Zn=new RegExp(`^hsl\\(${Rn},${qn},${qn}\\)$`),Yn=new RegExp(`^hsla\\(${Rn},${qn},${qn},${Rn}\\)$`),Xn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Jn(){return this.rgb().formatHex()}function tr(){return this.rgb().formatRgb()}function er(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Gn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?nr(e):3===n?new ar(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?rr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?rr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Kn.exec(t))?new ar(e[1],e[2],e[3],1):(e=Vn.exec(t))?new ar(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Un.exec(t))?rr(e[1],e[2],e[3],e[4]):(e=Qn.exec(t))?rr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Zn.exec(t))?fr(e[1],e[2]/100,e[3]/100,1):(e=Yn.exec(t))?fr(e[1],e[2]/100,e[3]/100,e[4]):Xn.hasOwnProperty(t)?nr(Xn[t]):"transparent"===t?new ar(NaN,NaN,NaN,0):null}function nr(t){return new ar(t>>16&255,t>>8&255,255&t,1)}function rr(t,e,n,r){return r<=0&&(t=e=n=NaN),new ar(t,e,n,r)}function ir(t){return t instanceof Bn||(t=er(t)),t?new ar((t=t.rgb()).r,t.g,t.b,t.opacity):new ar}function or(t,e,n,r){return 1===arguments.length?ir(t):new ar(t,e,n,null==r?1:r)}function ar(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function sr(){return`#${dr(this.r)}${dr(this.g)}${dr(this.b)}`}function cr(){const t=lr(this.opacity);return`${1===t?"rgb(":"rgba("}${ur(this.r)}, ${ur(this.g)}, ${ur(this.b)}${1===t?")":`, ${t})`}`}function lr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ur(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function dr(t){return((t=ur(t))<16?"0":"")+t.toString(16)}function fr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new hr(t,e,n,r)}function pr(t){if(t instanceof hr)return new hr(t.h,t.s,t.l,t.opacity);if(t instanceof Bn||(t=er(t)),!t)return new hr;if(t instanceof hr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new hr(a,s,c,t.opacity)}function hr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function gr(t){return(t=(t||0)%360)<0?t+360:t}function yr(t){return Math.max(0,Math.min(1,t||0))}function br(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function mr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}In(Bn,er,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jn,formatHex:Jn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pr(this).formatHsl()},formatRgb:tr,toString:tr}),In(ar,or,_n(Bn,{brighter(t){return t=null==t?Tn:Math.pow(Tn,t),new ar(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Nn:Math.pow(Nn,t),new ar(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ar(ur(this.r),ur(this.g),ur(this.b),lr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sr,formatHex:sr,formatHex8:function(){return`#${dr(this.r)}${dr(this.g)}${dr(this.b)}${dr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:cr,toString:cr})),In(hr,(function(t,e,n,r){return 1===arguments.length?pr(t):new hr(t,e,n,null==r?1:r)}),_n(Bn,{brighter(t){return t=null==t?Tn:Math.pow(Tn,t),new hr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Nn:Math.pow(Nn,t),new hr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ar(br(t>=240?t-240:t+120,i,r),br(t,i,r),br(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new hr(gr(this.h),yr(this.s),yr(this.l),lr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=lr(this.opacity);return`${1===t?"hsl(":"hsla("}${gr(this.h)}, ${100*yr(this.s)}%, ${100*yr(this.l)}%${1===t?")":`, ${t})`}`}}));var vr=t=>()=>t;function xr(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):vr(isNaN(t)?e:t)}var kr=function t(e){var n=function(t){return 1==(t=+t)?xr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):vr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=or(t)).r,(e=or(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=xr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function wr(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=or(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function Er(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Pr(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Or(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function jr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ar(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Pr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}wr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return mr((n-r/e)*e,a,i,o,s)}})),wr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return mr((n-r/e)*e,i,o,a,s)}}));var Sr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cr=new RegExp(Sr.source,"g");function $r(t,e){var n,r,i,o=Sr.lastIndex=Cr.lastIndex=0,a=-1,s=[],c=[];for(t+="",e+="";(n=Sr.exec(t))&&(r=Cr.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:jr(n,r)})),o=Cr.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function Mr(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Pr(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?vr(e):("number"===i?jr:"string"===i?(n=er(e))?(e=n,kr):$r:e instanceof er?kr:e instanceof Date?Or:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Er:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ar:jr:Mr))(t,e)}const Fr=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||Dn()(t)}return!1},Lr=function(t,e,n){return void 0===n&&(n=0),function(r){return r<n?t:e}},zr=function(t,e){return function(n){return n>=1?e:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof e?e.apply(this,arguments):e;return Pr(r,i)(n)}}},Wr=function(t,e){const n=t=>Array.isArray(t)?zn()(t,"key"):t,r={},i={};let o,a=t,s=e;for(o in null!==a&&"object"==typeof a||(a={}),null!==s&&"object"==typeof s||(s={}),s)o in a?r[o]=(c=n(a[o]))!==(l=n(s[o]))&&Fr(c)&&Fr(l)?"function"==typeof c||"function"==typeof l?zr(c,l):"object"==typeof c&&Dn()(c)||"object"==typeof l&&Dn()(l)?Wr(c,l):Pr(c,l):Lr(c,l):i[o]=s[o];var c,l;return function(t){for(o in r)i[o]=r[o](t);return i}};var Dr,Ir,_r=0,Br=0,Nr=0,Tr=0,Hr=0,Rr=0,qr="object"==typeof performance&&performance.now?performance:Date,Gr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Kr(){return Hr||(Gr(Vr),Hr=qr.now()+Rr)}function Vr(){Hr=0}function Ur(){this._call=this._time=this._next=null}function Qr(t,e,n){var r=new Ur;return r.restart(t,e,n),r}function Zr(){Hr=(Tr=qr.now())+Rr,_r=Br=0;try{!function(){Kr(),++_r;for(var t,e=Dr;e;)(t=Hr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_r}()}finally{_r=0,function(){for(var t,e,n=Dr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Dr=e);Ir=t,Xr(r)}(),Hr=0}}function Yr(){var t=qr.now(),e=t-Tr;e>1e3&&(Rr-=e,Tr=t)}function Xr(t){_r||(Br&&(Br=clearTimeout(Br)),t-Hr>24?(t<1/0&&(Br=setTimeout(Zr,t-qr.now()-Rr)),Nr&&(Nr=clearInterval(Nr))):(Nr||(Tr=qr.now(),Nr=setInterval(Yr,1e3)),_r=1,Gr(Zr)))}Ur.prototype=Qr.prototype={constructor:Ur,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Kr():+n)+(null==e?0:+e),this._next||Ir===this||(Ir?Ir._next=this:Dr=this,Ir=this),this._call=t,this._time=n,Xr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xr())}};class Jr{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Kr()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=Qr(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,e){const n=this.subscribers.push({startTime:Kr(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),n}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const ti=o().createContext({transitionTimer:new Jr,animationTimer:new Jr});ti.displayName="TimerContext";var ei=ti;const ni=1e3,ri=t=>{let{duration:n=ni,easing:r="quadInOut",delay:i=0,data:a,children:s,onEnd:c}=t;const[l,u]=o().useState({data:Array.isArray(a)?a[0]:a,animationInfo:{progress:0,animating:!1}}),d=o().useContext(ei).animationTimer,f=o().useRef(Array.isArray(a)?a.slice(1):[]),p=o().useRef(null),h=o().useRef(void 0),g=e[(y=r,`ease${y.charAt(0).toUpperCase()+y.slice(1)}`)];var y;o().useEffect((()=>(f.current.length&&b(),()=>{h.current?d.unsubscribe(h.current):d.stop()})),[]),o().useEffect((()=>{p.current&&l.animationInfo&&l.animationInfo.progress<1?u({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(d.unsubscribe(h.current),f.current=Array.isArray(a)?a:[a],b())}),[a]);const b=()=>{if(f.current.length){const r=f.current[0];p.current=(t=l.data)!==(e=r)&&Fr(t)&&Fr(e)?"function"==typeof t||"function"==typeof e?zr(t,e):Dn()(t)||Dn()(e)?Wr(t,e):"string"==typeof t||"string"==typeof e?function(t,e){const n=t=>"string"==typeof t?t.replace(/,/g,""):t;return Pr(n(t),n(e))}(t,e):Pr(t,e):Lr(t,e),i?setTimeout((()=>{h.current=d.subscribe(m,n)}),i):h.current=d.subscribe(m,n)}else c&&c();var t,e},m=t=>{if(!p.current)return;const e=n?t/n:1;if(e>=1)return u({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),h.current&&d.unsubscribe(h.current),f.current.shift(),void b();u({data:p.current(g(e)),animationInfo:{progress:e,animating:e<1}})};return s(l.data,l.animationInfo)};function ii(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function oi(t,e){return t&&e?t.filter((t=>!e.includes(t))):[]}function ai(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const i=t.concat(n);return ii(i)?new Date(Math.max(...i)):Math.max(...i)}function si(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const i=t.concat(n);return ii(i)?new Date(Math.min(...i)):Math.min(...i)}var ci=r(5346),li=r.n(ci);function ui(t,e){return(t.key||e).toString()}function di(t){return t.reduce(((t,e,n)=>(t[ui(e,n)]=e,t)),{})}function fi(t,e){let n=!1;const r=Object.keys(t).reduce(((t,r)=>(r in e||(n=!0,t[r]=!0),t)),{});return n&&r}function pi(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function hi(t,e){let n=!1,r=!1;const i=(t,e)=>t.map(((a,s)=>a&&a.props&&a.props.children&&e[s]?i(o().Children.toArray(t[s].props.children),o().Children.toArray(e[s].props.children)):((t,e)=>{if(!e||t.type!==e.type)return{};const{entering:i,exiting:o}=function(t,e){const n=t&&di(t),r=e&&di(e);return{entering:n&&fi(r,n),exiting:r&&fi(n,r)}}(pi(t),pi(e))||{};return n=n||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(a,e[s]))),a=i(o().Children.toArray(t),o().Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function gi(t,e,n){const r=e&&e.nodesWillExit,i=e&&e.nodesWillEnter,o=e&&e.nodesShouldEnter,a=e&&e.nodesShouldLoad,s=e&&e.nodesDoneLoad,c=e&&e.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},u=(t,e,r)=>a?function(t,e,r){const i=Object.assign({},t,{onEnd:()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=e;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:e};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:li();return o=e.map(((t,n)=>Object.assign({},t,a(t,n,e)))),{animate:i,data:o}}(r,e):function(t,e,r,i){const o=Object.assign({},t,{onEnd:()=>{n({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:li();return{animate:o,data:r.map(((t,e)=>Object.assign({},t,a(t,e,r)))),clipWidth:0}}(r,0,e),f=(t,e,r,i)=>function(t,e,r,i,o){const a=t&&t.onExit,s=Object.assign({},t,a);let c=r;if(i){t.onEnd=()=>{n({nodesWillExit:!1})};const e=t.onExit&&t.onExit.before?t.onExit.before:li();c=r.map(((t,n)=>{const o=(t.key||n).toString();return i[o]?Object.assign({},t,e(t,n,r)):t}))}return{animate:s,data:c}}(i,0,r,t),p=(t,e,r,i)=>o?function(t,e,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let s=e;if(r){a.onEnd=()=>{n({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:li();s=e.map(((n,i)=>{const o=ui(n,i);return r[o]?Object.assign({},n,t(n,i,e)):n}))}return{animate:a,data:s}}(i,r,t):function(t,e,r,i,o){let a=t,s=r;if(i){a=Object.assign({},t,{onEnd:()=>{n({nodesShouldEnter:!0})}});const e=t.onEnter&&t.onEnter.before?t.onEnter.before:li();s=r.map(((t,n)=>{const o=(t.key||n).toString();return i[o]?Object.assign({},t,e(t,n,r)):t}))}return{animate:a,data:s}}(i,0,r,t),h=function(t,e){const n=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=n[e]&&n[e].duration;return void 0!==t?t:r[e]&&r[e].duration}return{}};return function(n,a){const g=pi(n)||[],y=d()({},t.animate,n.props.animate),b=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;y.onExit=d()({},y.onExit,b&&b.onExit),y.onEnter=d()({},y.onEnter,b&&b.onEnter),y.onLoad=d()({},y.onLoad,b&&b.onLoad);const m=c[a]||c[0];if(!s){const t={duration:void 0!==l.load?l.load:h(n,"onLoad")};return u(0,g,Object.assign({},y,t))}if(r){const t=m&&m.exiting,e=void 0!==l.exit?l.exit:h(n,"onExit"),r=t?{duration:e}:{delay:e};return f(t,0,g,Object.assign({},y,r))}if(i){const t=m&&m.entering,e=void 0!==l.enter?l.enter:h(n,"onEnter"),r=void 0!==l.move?l.move:n.props.animate&&n.props.animate.duration,i={duration:o&&t?e:r};return p(t,0,g,Object.assign({},y,i))}return!e&&y&&y.onExit?function(t,e){const n=t.onEnter&&t.onEnter.after?t.onEnter.after:li();return{data:e.map(((t,r)=>Object.assign({},t,n(t,r,e))))}}(y,g):{animate:y,data:g}}}function yi(){return yi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yi.apply(this,arguments)}class bi extends o().Component{static displayName="VictoryTransition";static contextType=ei;constructor(t,e){super(t,e),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const n=this.props.children,r=n.props.polar;this.continuous=!r&&n.type&&!0===n.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Ye()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,e){const{animate:n}=t;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?t:null,nextProps:e};const r=o().Children.toArray(t.children),i=o().Children.toArray(e.children),{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:c,nodesShouldEnter:l}=hi(r,i);return{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:c,nodesShouldEnter:l,oldProps:a?t:null,nextProps:e}}getDomainFromChildren(t,e){const n=t=>t.reduce(((t,r)=>{if(r.type&&St(r.type.getDomain)){const n=r.props&&r.type.getDomain(r.props,e);return n?t.concat(n):t}return r.props&&r.props.children?t.concat(n(o().Children.toArray(r.props.children))):t}),[]),r=o().Children.toArray(t.children)[0],i=r.props||{},a=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[e];if(!i.children&&a)return a;const s=n([r]);return 0===s.length?[0,1]:[si(s),ai(s)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const e=t.animate?.parentState;return e&&e.nodesWillExit?(this.continuous||e.continuous)&&(e.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,e){const n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:(()=>{const n=function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[Ot(t.startAngle||0),Ot(t.endAngle||360)]:[t.innerRadius||0,jt(t)]}(t,e):function(t,e){const n="x"!==e,r=kt(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width})()}render(){const t=this.pickProps(),e=this.props.animate?.getTransitions?this.props.animate.getTransitions:gi(t,this.state,(t=>this.setState(t))),n=o().Children.toArray(t.children)[0],r=e(n);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,n),s=d()({domain:i,clipWidth:a},r,n.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),l=c.length?mt()(s,c):s;return o().createElement(ri,yi({},s.animate,{data:l}),(t=>{if(n.props.groupComponent){const e=this.continuous?o().cloneElement(n.props.groupComponent,{clipWidth:t.clipWidth||0}):n.props.groupComponent;return o().cloneElement(n,d()({animate:null,animating:!0,groupComponent:e},t,s))}return o().cloneElement(n,d()({animate:null,animating:!0},t,s))}))}}var mi=r(9602),vi=r.n(mi),xi=r(1616),ki=r.n(xi),wi=r(4912),Ei=r.n(wi);const Oi=/^onGlobal(.*)$/;function ji(t,e,n,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,n)=>void 0!==n.target?(Array.isArray(n.target)?n.target.includes(e):`${n.target}`==`${e}`)?t.concat(n):t:t.concat(n)),[]);return void 0!==n&&"parent"!==e?r.filter((t=>{const e=t.eventKey,r=t=>!t||`${t}`==`${n}`;return Array.isArray(e)?e.some((t=>r(t))):r(e)})):r})();return Array.isArray(r)&&r.reduce(((t,e)=>e?Object.assign(t,e.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&St(r)?r(i(o),e):void 0;if(!t.sharedEvents)return a;const s=t.sharedEvents.getEvents,c=t.sharedEvents.events&&s(i(t.sharedEvents.events),e);return Object.assign({},c,a)}function Ai(t,e,n,r){if(Le()(t))return{};const i=r||this.baseProps,o=(t,e)=>{const{childName:n,target:r,key:o}=t,a="props"===e?i:this.state||{},s=null!=n&&a[n]?a[n]:a;return"parent"===o?s.parent:s[o]&&s[o][r]},a=(t,r)=>{const a="parent"===e?t.childName:t.childName||n,s=t.target||e,c=(e,n)=>{const r=this.state||{};if(!St(t.mutation))return r;const a=o({childName:n,key:e,target:s},"props"),c=o({childName:n,key:e,target:s},"state"),l=t.mutation(Object.assign({},a,c),i),u=r[n]||{},d=t=>l?(t=>"parent"===s?Object.assign(t,{[e]:Object.assign(t[e]||{},l)}):Object.assign(t,{[e]:Object.assign(t[e]||{},{[s]:l})}))(t):(t=>(t[e]&&t[e][s]&&delete t[e][s],t[e]&&!Object.keys(t[e]).length&&delete t[e],t))(t);return null!=n?Object.assign(r,{[n]:d(u)}):d(r)},l=e=>{const n=(e=>"parent"===s?"parent":"all"===t.eventKey?i[e]?Object.keys(i[e]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[e]?Object.keys(i[e]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(e);return Array.isArray(n)?n.reduce(((t,n)=>Object.assign(t,c(n,e))),{}):c(n,e)},u="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(u)?u.reduce(((t,e)=>Object.assign(t,l(e))),{}):l(u)},s=(e,n,r,i)=>{const o=t[i](e,n,r,this);if(!Le()(o)){const t=(t=>{const e=t=>St(t.callback)&&t.callback,n=(Array.isArray(t)?t.map((t=>e(t))):[e(t)]).filter((t=>!1!==t));return n.length?()=>n.forEach((t=>t())):void 0})(o);this.setState(((t,e)=>Array.isArray(t)?t.reduce(((t,n)=>Object.assign({},t,a(n,e))),{}):a(t,e))(o,r),t)}};return Object.keys(t).reduce(((t,e)=>(t[e]=s,t)),{})}function Si(t,e,n){const r=this.state||{};return n?r[n]&&r[n][t]&&r[n][t][e]:"parent"===t?r[t]&&r[t][e]||r[t]:r[t]&&r[t][e]}function Ci(t,e,n,r){const i=(t,e)=>"string"==typeof t[e]?"all"===t[e]||t[e]===r[e]:!!Array.isArray(t[e])&&t[e].map((t=>`${t}`)).includes(r[e]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if(Le()(a))return;const s=a.filter((t=>i(t,"eventKey")));return Le()(s)?void 0:s.reduce(((t,r)=>{const i=(r&&St(r.mutation)?r.mutation:()=>{})(Object.assign({},e,n));return Object.assign({},t,i)}),{})}function $i(t){const e=t.match(Oi);return e&&e[1]&&e[1].toLowerCase()}const Mi=t=>!At(t._x)&&!At(t._y),Pi=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}],Fi={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},Li=[{name:"Series 1"},{name:"Series 2"}];class zi extends o().Component{static displayName="VictoryLegend";static role="legend";static defaultProps={borderComponent:o().createElement(ie,null),data:Li,containerComponent:o().createElement(be,null),dataComponent:o().createElement(Pe,null),groupComponent:o().createElement("g",null),labelComponent:o().createElement(Qe,null),standalone:!0,theme:gt.grayscale,titleComponent:o().createElement(Qe,null)};static getBaseProps(t){return Jt(t,Fi)}static getDimensions(t){return Xt(t,Fi)}static expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];renderChildren(t){const{dataComponent:e,labelComponent:n,title:r}=t,i=[];if(t.borderComponent){const e=this.getComponentProps(t.borderComponent,"border","all"),n=o().cloneElement(t.borderComponent,e);i.push(n)}if(e){const t=this.dataKeys.map(((t,n)=>{if("all"===t)return;const r=this.getComponentProps(e,"data",n);return o().cloneElement(e,r)})).filter((t=>void 0!==t));i.push(...t)}if(r&&t.titleComponent){const e=this.getComponentProps(r,"title","all"),n=o().cloneElement(t.titleComponent,e);i.push(n)}if(n){const t=this.dataKeys.map(((t,e)=>{if("all"===t)return;const r=this.getComponentProps(n,"labels",e);return void 0!==r.text&&null!==r.text?o().cloneElement(n,r):void 0})).filter((t=>void 0!==t));i.push(...t)}return i}render(){const{role:t}=this.constructor,e=Ct(this.props,Fi,t),n=this.renderChildren(e);return e.standalone?this.renderContainer(e.containerComponent,n):o().cloneElement(e.groupComponent,{},n)}}const Wi=(Di=zi,void 0===Ii&&(Ii={}),class extends Di{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=Si.bind(this);getScopedEvents=Ai.bind(this);getEvents=(t,e,n)=>ji.call(this,t,e,n,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const e=this.getExternalMutations(t),n=this.props.animating||this.props.animate,r=!Ye()(e,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=e,this.applyExternalMutations(t,e),!0;const i=this.getStateChanges(t);return Ye()(this.calculatedState,i)?!Ye()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const e=this.getStateChanges(t);this.calculatedState=e;const n=Object.keys(this.globalEvents);oi(this.prevGlobalEventKeys,n).forEach((t=>this.removeGlobalListener(t))),oi(n,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=n}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const e=e=>{const n=this.globalEvents[t];return n&&n((t=>Object.assign(t,{nativeEvent:t}))(e))};this.boundGlobalEvents[t]=e,window.addEventListener($i(t),e)}removeGlobalListener(t){window.removeEventListener($i(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const e=(t,e)=>{const n=d()({},this.getEventState(t,e),this.getSharedEventState(t,e));return Le()(n)?void 0:n};return(Ii.components||Pi).map((n=>{if(t.standalone||"parent"!==n.name)return void 0!==n.index?e(n.index,n.name):this.dataKeys.map((t=>e(t,n.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,e){if(!Le()(e)){const n=t.externalEventMutations.reduce(((t,e)=>St(e.callback)?t.concat(e.callback):t),[]),r=n.length?()=>{n.forEach((t=>t()))}:void 0;this.setState(e,r)}}getCalculatedValues(t){const{sharedEvents:e}=t,n=function(t,e){const n=Array.isArray(e)&&e.reduce(((e,n)=>{const r=t[n],i=r&&r.type&&r.type.defaultEvents,o=St(i)?i(r.props):i;return Array.isArray(o)?e.concat(...o):e}),[]);return n&&n.length?n:void 0}(t,Di.expectedComponents),r=e&&St(e.getEventState)?e.getEventState:()=>{},i=this.getBaseProps(t,r);return{componentEvents:n,getSharedEventState:r,baseProps:i,dataKeys:Object.keys(i).filter((t=>"parent"!==t)),hasEvents:t.events||t.sharedEvents||n,events:this.getAllEvents(t)}}getExternalMutations(t){const{sharedEvents:e,externalEventMutations:n}=t;return Le()(n)||e?void 0:function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n={}),Object.keys(e).reduce(((i,o)=>{const a=n[o]||{},s=e[o]||{};if("parent"===o){const e=Ci(t,s,a,{eventKey:o,target:"parent"});i[o]=void 0!==e?Object.assign({},a,e):a}else{const e=vi()(Object.keys(s).concat(Object.keys(a)));i[o]=e.reduce(((e,n)=>{const i={eventKey:o,target:n,childName:r},c=Ci(t,s[n],a[n],i);return e[n]=void 0!==c?Object.assign({},a[n],c):a[n],Ei()(e,(t=>!Le()(t)))}),{})}return Ei()(i,(t=>!Le()(t)))}),{})}(n,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((e=>{this[e]=t[e]}))}getBaseProps(t,e){const n=(e||this.getSharedEventState.bind(this))("parent","parent"),r=this.getEventState("parent","parent"),i=d()({},r,n),o=i.parentControlledProps,a=o?mt()(i,o):{},s=d()({},a,t);return"function"==typeof Di.getBaseProps?Di.getBaseProps(s):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(t,e,n){const r=this.props.name||Di.role,i=this.dataKeys&&this.dataKeys[n]||n,o=`${r}-${e}-${i}`,a=this.baseProps[i]&&this.baseProps[i][e]||this.baseProps[i];if(!a&&!this.hasEvents)return;const s=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,e,i),r=d()({index:n,key:o},this.getEventState(i,e),this.getSharedEventState(i,e),s,a,{id:o}),c=d()({},function(t,e,n){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,n,e,i),r)),{}):{}}(t,i,r),r.events);return Object.assign({},r,{events:c})}return d()({index:n,key:o},s,a,{id:o})}renderContainer(t,e){const n=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};var r;return n.events&&(this.globalEvents=(r=n.events,Ei()(r,((t,e)=>Oi.test(e)))),n.events=(t=>ki()(t,((t,e)=>Oi.test(e))))(n.events)),o().cloneElement(t,n,e)}animateComponent(t,e){const n="object"==typeof t.animate&&t.animate?.animationWhitelist||e,r=this.constructor;return o().createElement(bi,{animate:t.animate,animationWhitelist:n},o().createElement(r,t))}renderContinuousData(t){const{dataComponent:e,labelComponent:n,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),a=i.reduce(((t,e)=>{let r=t;const i=this.getComponentProps(n,"labels",e);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(o().cloneElement(n,i))),r}),[]),s=this.getComponentProps(e,"data","all"),c=[o().cloneElement(e,s),...a];return this.renderContainer(r,c)}renderData(t,e){void 0===e&&(e=Mi);const{dataComponent:n,labelComponent:r,groupComponent:i}=t,a=[...this.dataKeys.reduce(((t,r,i)=>{const a=this.getComponentProps(n,"data",i);return e(a.datum)&&t.push(o().cloneElement(n,a)),t}),[]),...this.dataKeys.map(((t,e)=>{const n=this.getComponentProps(r,"labels",e);if(void 0!==n.text&&null!==n.text)return o().cloneElement(r,n)})).filter(Boolean)];return this.renderContainer(i,a)}});var Di,Ii}(),i}()}));
2
2
  //# sourceMappingURL=victory-legend.min.js.map
@@ -4,9 +4,10 @@ import _defaults from "lodash/defaults";
4
4
  import { Helpers, Style, TextSize } from "victory-core";
5
5
  const getColorScale = props => {
6
6
  const {
7
- colorScale
7
+ colorScale,
8
+ theme
8
9
  } = props;
9
- return typeof colorScale === "string" ? Style.getColorScale(colorScale) : colorScale || [];
10
+ return typeof colorScale === "string" ? Style.getColorScale(colorScale, theme) : colorScale || [];
10
11
  };
11
12
  const getLabelStyles = props => {
12
13
  const {
@@ -11,9 +11,10 @@ var _victoryCore = require("victory-core");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  const getColorScale = props => {
13
13
  const {
14
- colorScale
14
+ colorScale,
15
+ theme
15
16
  } = props;
16
- return typeof colorScale === "string" ? _victoryCore.Style.getColorScale(colorScale) : colorScale || [];
17
+ return typeof colorScale === "string" ? _victoryCore.Style.getColorScale(colorScale, theme) : colorScale || [];
17
18
  };
18
19
  const getLabelStyles = props => {
19
20
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-legend",
3
- "version": "37.1.2",
3
+ "version": "37.2.0",
4
4
  "description": "Legend Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "37.1.2"
24
+ "victory-core": "37.2.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.6.0"
@@ -3,9 +3,9 @@ import { Helpers, Style, TextSize } from "victory-core";
3
3
  import { VictoryLegendProps } from "./victory-legend";
4
4
 
5
5
  const getColorScale = (props) => {
6
- const { colorScale } = props;
6
+ const { colorScale, theme } = props;
7
7
  return typeof colorScale === "string"
8
- ? Style.getColorScale(colorScale)
8
+ ? Style.getColorScale(colorScale, theme)
9
9
  : colorScale || [];
10
10
  };
11
11