@undp/data-viz 2.5.1 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/BiVariateChoroplethMap.cjs +1 -1
  2. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  3. package/dist/BiVariateChoroplethMap.js +297 -289
  4. package/dist/BiVariateChoroplethMap.js.map +1 -1
  5. package/dist/ChoroplethMap.cjs +1 -1
  6. package/dist/ChoroplethMap.cjs.map +1 -1
  7. package/dist/ChoroplethMap.js +307 -299
  8. package/dist/ChoroplethMap.js.map +1 -1
  9. package/dist/CopyTextButton.cjs +1 -1
  10. package/dist/CopyTextButton.cjs.map +1 -1
  11. package/dist/CopyTextButton.js +281 -279
  12. package/dist/CopyTextButton.js.map +1 -1
  13. package/dist/CsvDownloadButton.cjs +4 -4
  14. package/dist/CsvDownloadButton.cjs.map +1 -1
  15. package/dist/CsvDownloadButton.js +268 -266
  16. package/dist/CsvDownloadButton.js.map +1 -1
  17. package/dist/DotDensityMap.cjs +1 -1
  18. package/dist/DotDensityMap.cjs.map +1 -1
  19. package/dist/DotDensityMap.js +277 -269
  20. package/dist/DotDensityMap.js.map +1 -1
  21. package/dist/ExcelDownloadButton.cjs +1 -1
  22. package/dist/ExcelDownloadButton.cjs.map +1 -1
  23. package/dist/ExcelDownloadButton.js +21 -19
  24. package/dist/ExcelDownloadButton.js.map +1 -1
  25. package/dist/HybridMap.cjs +1 -1
  26. package/dist/HybridMap.cjs.map +1 -1
  27. package/dist/HybridMap.js +299 -291
  28. package/dist/HybridMap.js.map +1 -1
  29. package/dist/ImageDownloadButton.cjs +1 -1
  30. package/dist/ImageDownloadButton.cjs.map +1 -1
  31. package/dist/ImageDownloadButton.js +19 -17
  32. package/dist/ImageDownloadButton.js.map +1 -1
  33. package/dist/SVGDownloadButton.cjs +1 -1
  34. package/dist/SVGDownloadButton.cjs.map +1 -1
  35. package/dist/SVGDownloadButton.js +20 -18
  36. package/dist/SVGDownloadButton.js.map +1 -1
  37. package/dist/ScatterPlot.cjs +1 -1
  38. package/dist/ScatterPlot.cjs.map +1 -1
  39. package/dist/ScatterPlot.d.ts +1 -1
  40. package/dist/ScatterPlot.js +107 -107
  41. package/dist/ScatterPlot.js.map +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/package.json +1 -1
@@ -1,67 +1,67 @@
1
- import { j as J, c as Ae } from "./index-CHPV5EwG-BzibaIRc.js";
1
+ import { j as J, c as Ae, m as je } from "./index-CHPV5EwG-BzibaIRc.js";
2
2
  import Te from "react";
3
- import { d as je, u as $e } from "./index-ApTBN0kp.js";
4
- const Ie = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Se = ((r) => Array.isArray(r) && r.every(
3
+ import { d as $e, u as Ie } from "./index-ApTBN0kp.js";
4
+ const ke = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Se = ((r) => Array.isArray(r) && r.every(
5
5
  (e) => typeof e == "object" && !(e instanceof Array)
6
- )), ke = ((r) => Array.isArray(r) && r.every(
6
+ )), Me = ((r) => Array.isArray(r) && r.every(
7
7
  (e) => Array.isArray(e)
8
- )), Me = ((r) => Array.from(
8
+ )), Fe = ((r) => Array.from(
9
9
  r.map((e) => Object.keys(e)).reduce((e, i) => /* @__PURE__ */ new Set([...e, ...i]), [])
10
- )), Fe = (r, e) => {
11
- e = e || Me(r);
12
- let i = e, n = e;
13
- Se(e) && (i = e.map((c) => c.label), n = e.map((c) => c.key));
14
- const u = r.map((c) => n.map((l) => De(l, c)));
10
+ )), De = (r, e) => {
11
+ e = e || Fe(r);
12
+ let i = e, o = e;
13
+ Se(e) && (i = e.map((c) => c.label), o = e.map((c) => c.key));
14
+ const u = r.map((c) => o.map((l) => Le(l, c)));
15
15
  return [i, ...u];
16
- }, De = (r, e) => {
17
- const i = r.replace(/\[([^\]]+)]/g, ".$1").split(".").reduce(function(n, u, c, l) {
18
- const f = n[u];
16
+ }, Le = (r, e) => {
17
+ const i = r.replace(/\[([^\]]+)]/g, ".$1").split(".").reduce(function(o, u, c, l) {
18
+ const f = o[u];
19
19
  if (f == null)
20
20
  l.splice(1);
21
21
  else
22
22
  return f;
23
23
  }, e);
24
24
  return i === void 0 ? r in e ? e[r] : "" : i;
25
- }, Le = (r) => typeof r > "u" || r === null ? "" : r, Ce = ((r, e = ",", i = '"') => r.filter((n) => n).map(
26
- (n) => n.map((u) => Le(u)).map((u) => `${i}${u}${i}`).join(e)
25
+ }, qe = (r) => typeof r > "u" || r === null ? "" : r, Ce = ((r, e = ",", i = '"') => r.filter((o) => o).map(
26
+ (o) => o.map((u) => qe(u)).map((u) => `${i}${u}${i}`).join(e)
27
27
  ).join(`
28
- `)), qe = ((r, e, i, n) => Ce(e ? [e, ...r] : r, i, n)), Ye = ((r, e, i, n) => Ce(Fe(r, e), i, n)), Ue = ((r, e, i, n) => e ? `${e.join(i)}
29
- ${r}` : r.replace(/"/g, '""')), Oe = (r, e, i, n) => {
30
- if (Se(r)) return Ye(r, e, i, n);
31
- if (ke(r)) return qe(r, e, i, n);
32
- if (typeof r == "string") return Ue(r, e, i);
28
+ `)), Ye = ((r, e, i, o) => Ce(e ? [e, ...r] : r, i, o)), Ue = ((r, e, i, o) => Ce(De(r, e), i, o)), We = ((r, e, i, o) => e ? `${e.join(i)}
29
+ ${r}` : r.replace(/"/g, '""')), Oe = (r, e, i, o) => {
30
+ if (Se(r)) return Ue(r, e, i, o);
31
+ if (Me(r)) return Ye(r, e, i, o);
32
+ if (typeof r == "string") return We(r, e, i);
33
33
  throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ');
34
- }, Re = ((r, e, i, n, u) => {
35
- const c = Oe(r, i, n, u), l = Ie() ? "application/csv" : "text/csv", f = new Blob([e ? "\uFEFF" : "", c], { type: l }), g = `data:${l};charset=utf-8,${e ? "\uFEFF" : ""}${c}`, h = window.URL || window.webkitURL;
36
- return typeof h.createObjectURL > "u" ? g : h.createObjectURL(f);
34
+ }, Re = ((r, e, i, o, u) => {
35
+ const c = Oe(r, i, o, u), l = ke() ? "application/csv" : "text/csv", f = new Blob([e ? "\uFEFF" : "", c], { type: l }), g = `data:${l};charset=utf-8,${e ? "\uFEFF" : ""}${c}`, y = window.URL || window.webkitURL;
36
+ return typeof y.createObjectURL > "u" ? g : y.createObjectURL(f);
37
37
  });
38
38
  var N = { exports: {} }, H = { exports: {} }, O = {};
39
39
  var le;
40
- function We() {
40
+ function ze() {
41
41
  if (le) return O;
42
42
  le = 1;
43
- var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, u = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, c = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, h = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, j = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, I = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, P = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, k = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
44
- function x(a) {
45
- if (typeof a == "object" && a !== null) {
46
- var Y = a.$$typeof;
43
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, u = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, c = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, y = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, j = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, I = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, P = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, k = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
44
+ function A(n) {
45
+ if (typeof n == "object" && n !== null) {
46
+ var Y = n.$$typeof;
47
47
  switch (Y) {
48
48
  case e:
49
- switch (a = a.type, a) {
49
+ switch (n = n.type, n) {
50
50
  case g:
51
- case h:
52
- case n:
51
+ case y:
52
+ case o:
53
53
  case c:
54
54
  case u:
55
55
  case C:
56
- return a;
56
+ return n;
57
57
  default:
58
- switch (a = a && a.$$typeof, a) {
58
+ switch (n = n && n.$$typeof, n) {
59
59
  case f:
60
60
  case d:
61
61
  case I:
62
62
  case j:
63
63
  case l:
64
- return a;
64
+ return n;
65
65
  default:
66
66
  return Y;
67
67
  }
@@ -71,56 +71,56 @@ function We() {
71
71
  }
72
72
  }
73
73
  }
74
- function A(a) {
75
- return x(a) === h;
74
+ function x(n) {
75
+ return A(n) === y;
76
76
  }
77
- return O.AsyncMode = g, O.ConcurrentMode = h, O.ContextConsumer = f, O.ContextProvider = l, O.Element = e, O.ForwardRef = d, O.Fragment = n, O.Lazy = I, O.Memo = j, O.Portal = i, O.Profiler = c, O.StrictMode = u, O.Suspense = C, O.isAsyncMode = function(a) {
78
- return A(a) || x(a) === g;
79
- }, O.isConcurrentMode = A, O.isContextConsumer = function(a) {
80
- return x(a) === f;
81
- }, O.isContextProvider = function(a) {
82
- return x(a) === l;
83
- }, O.isElement = function(a) {
84
- return typeof a == "object" && a !== null && a.$$typeof === e;
85
- }, O.isForwardRef = function(a) {
86
- return x(a) === d;
87
- }, O.isFragment = function(a) {
88
- return x(a) === n;
89
- }, O.isLazy = function(a) {
90
- return x(a) === I;
91
- }, O.isMemo = function(a) {
92
- return x(a) === j;
93
- }, O.isPortal = function(a) {
94
- return x(a) === i;
95
- }, O.isProfiler = function(a) {
96
- return x(a) === c;
97
- }, O.isStrictMode = function(a) {
98
- return x(a) === u;
99
- }, O.isSuspense = function(a) {
100
- return x(a) === C;
101
- }, O.isValidElementType = function(a) {
102
- return typeof a == "string" || typeof a == "function" || a === n || a === h || a === c || a === u || a === C || a === w || typeof a == "object" && a !== null && (a.$$typeof === I || a.$$typeof === j || a.$$typeof === l || a.$$typeof === f || a.$$typeof === d || a.$$typeof === $ || a.$$typeof === k || a.$$typeof === F || a.$$typeof === P);
103
- }, O.typeOf = x, O;
77
+ return O.AsyncMode = g, O.ConcurrentMode = y, O.ContextConsumer = f, O.ContextProvider = l, O.Element = e, O.ForwardRef = d, O.Fragment = o, O.Lazy = I, O.Memo = j, O.Portal = i, O.Profiler = c, O.StrictMode = u, O.Suspense = C, O.isAsyncMode = function(n) {
78
+ return x(n) || A(n) === g;
79
+ }, O.isConcurrentMode = x, O.isContextConsumer = function(n) {
80
+ return A(n) === f;
81
+ }, O.isContextProvider = function(n) {
82
+ return A(n) === l;
83
+ }, O.isElement = function(n) {
84
+ return typeof n == "object" && n !== null && n.$$typeof === e;
85
+ }, O.isForwardRef = function(n) {
86
+ return A(n) === d;
87
+ }, O.isFragment = function(n) {
88
+ return A(n) === o;
89
+ }, O.isLazy = function(n) {
90
+ return A(n) === I;
91
+ }, O.isMemo = function(n) {
92
+ return A(n) === j;
93
+ }, O.isPortal = function(n) {
94
+ return A(n) === i;
95
+ }, O.isProfiler = function(n) {
96
+ return A(n) === c;
97
+ }, O.isStrictMode = function(n) {
98
+ return A(n) === u;
99
+ }, O.isSuspense = function(n) {
100
+ return A(n) === C;
101
+ }, O.isValidElementType = function(n) {
102
+ return typeof n == "string" || typeof n == "function" || n === o || n === y || n === c || n === u || n === C || n === w || typeof n == "object" && n !== null && (n.$$typeof === I || n.$$typeof === j || n.$$typeof === l || n.$$typeof === f || n.$$typeof === d || n.$$typeof === $ || n.$$typeof === k || n.$$typeof === F || n.$$typeof === P);
103
+ }, O.typeOf = A, O;
104
104
  }
105
105
  var R = {};
106
106
  var pe;
107
- function ze() {
107
+ function Ve() {
108
108
  return pe || (pe = 1, process.env.NODE_ENV !== "production" && (function() {
109
- var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, u = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, c = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, h = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, j = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, I = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, P = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, k = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
110
- function x(o) {
111
- return typeof o == "string" || typeof o == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
112
- o === n || o === h || o === c || o === u || o === C || o === w || typeof o == "object" && o !== null && (o.$$typeof === I || o.$$typeof === j || o.$$typeof === l || o.$$typeof === f || o.$$typeof === d || o.$$typeof === $ || o.$$typeof === k || o.$$typeof === F || o.$$typeof === P);
113
- }
114
- function A(o) {
115
- if (typeof o == "object" && o !== null) {
116
- var q = o.$$typeof;
109
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, u = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, c = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, y = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, j = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, I = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, P = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, k = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
110
+ function A(a) {
111
+ return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
112
+ a === o || a === y || a === c || a === u || a === C || a === w || typeof a == "object" && a !== null && (a.$$typeof === I || a.$$typeof === j || a.$$typeof === l || a.$$typeof === f || a.$$typeof === d || a.$$typeof === $ || a.$$typeof === k || a.$$typeof === F || a.$$typeof === P);
113
+ }
114
+ function x(a) {
115
+ if (typeof a == "object" && a !== null) {
116
+ var q = a.$$typeof;
117
117
  switch (q) {
118
118
  case e:
119
- var B = o.type;
119
+ var B = a.type;
120
120
  switch (B) {
121
121
  case g:
122
- case h:
123
- case n:
122
+ case y:
123
+ case o:
124
124
  case c:
125
125
  case u:
126
126
  case C:
@@ -143,59 +143,59 @@ function ze() {
143
143
  }
144
144
  }
145
145
  }
146
- var a = g, Y = h, K = f, X = l, G = e, Z = d, z = n, Q = I, ee = j, W = i, re = c, L = u, U = C, V = !1;
147
- function te(o) {
148
- return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(o) || A(o) === g;
146
+ var n = g, Y = y, K = f, X = l, G = e, Z = d, z = o, Q = I, ee = j, W = i, re = c, L = u, U = C, V = !1;
147
+ function te(a) {
148
+ return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(a) || x(a) === g;
149
149
  }
150
- function t(o) {
151
- return A(o) === h;
150
+ function t(a) {
151
+ return x(a) === y;
152
152
  }
153
- function s(o) {
154
- return A(o) === f;
153
+ function s(a) {
154
+ return x(a) === f;
155
155
  }
156
- function m(o) {
157
- return A(o) === l;
156
+ function h(a) {
157
+ return x(a) === l;
158
158
  }
159
- function v(o) {
160
- return typeof o == "object" && o !== null && o.$$typeof === e;
159
+ function b(a) {
160
+ return typeof a == "object" && a !== null && a.$$typeof === e;
161
161
  }
162
- function p(o) {
163
- return A(o) === d;
162
+ function p(a) {
163
+ return x(a) === d;
164
164
  }
165
- function E(o) {
166
- return A(o) === n;
165
+ function E(a) {
166
+ return x(a) === o;
167
167
  }
168
- function y(o) {
169
- return A(o) === I;
168
+ function v(a) {
169
+ return x(a) === I;
170
170
  }
171
- function b(o) {
172
- return A(o) === j;
171
+ function m(a) {
172
+ return x(a) === j;
173
173
  }
174
- function T(o) {
175
- return A(o) === i;
174
+ function T(a) {
175
+ return x(a) === i;
176
176
  }
177
- function _(o) {
178
- return A(o) === c;
177
+ function _(a) {
178
+ return x(a) === c;
179
179
  }
180
- function S(o) {
181
- return A(o) === u;
180
+ function S(a) {
181
+ return x(a) === u;
182
182
  }
183
- function M(o) {
184
- return A(o) === C;
183
+ function M(a) {
184
+ return x(a) === C;
185
185
  }
186
- R.AsyncMode = a, R.ConcurrentMode = Y, R.ContextConsumer = K, R.ContextProvider = X, R.Element = G, R.ForwardRef = Z, R.Fragment = z, R.Lazy = Q, R.Memo = ee, R.Portal = W, R.Profiler = re, R.StrictMode = L, R.Suspense = U, R.isAsyncMode = te, R.isConcurrentMode = t, R.isContextConsumer = s, R.isContextProvider = m, R.isElement = v, R.isForwardRef = p, R.isFragment = E, R.isLazy = y, R.isMemo = b, R.isPortal = T, R.isProfiler = _, R.isStrictMode = S, R.isSuspense = M, R.isValidElementType = x, R.typeOf = A;
186
+ R.AsyncMode = n, R.ConcurrentMode = Y, R.ContextConsumer = K, R.ContextProvider = X, R.Element = G, R.ForwardRef = Z, R.Fragment = z, R.Lazy = Q, R.Memo = ee, R.Portal = W, R.Profiler = re, R.StrictMode = L, R.Suspense = U, R.isAsyncMode = te, R.isConcurrentMode = t, R.isContextConsumer = s, R.isContextProvider = h, R.isElement = b, R.isForwardRef = p, R.isFragment = E, R.isLazy = v, R.isMemo = m, R.isPortal = T, R.isProfiler = _, R.isStrictMode = S, R.isSuspense = M, R.isValidElementType = A, R.typeOf = x;
187
187
  })()), R;
188
188
  }
189
189
  var de;
190
190
  function _e() {
191
- return de || (de = 1, process.env.NODE_ENV === "production" ? H.exports = We() : H.exports = ze()), H.exports;
191
+ return de || (de = 1, process.env.NODE_ENV === "production" ? H.exports = ze() : H.exports = Ve()), H.exports;
192
192
  }
193
193
  var ne, ye;
194
- function Ve() {
194
+ function Be() {
195
195
  if (ye) return ne;
196
196
  ye = 1;
197
197
  var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
198
- function n(c) {
198
+ function o(c) {
199
199
  if (c == null)
200
200
  throw new TypeError("Object.assign cannot be called with null or undefined");
201
201
  return Object(c);
@@ -214,23 +214,23 @@ function Ve() {
214
214
  });
215
215
  if (g.join("") !== "0123456789")
216
216
  return !1;
217
- var h = {};
217
+ var y = {};
218
218
  return "abcdefghijklmnopqrst".split("").forEach(function(d) {
219
- h[d] = d;
220
- }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
219
+ y[d] = d;
220
+ }), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
221
221
  } catch {
222
222
  return !1;
223
223
  }
224
224
  }
225
225
  return ne = u() ? Object.assign : function(c, l) {
226
- for (var f, g = n(c), h, d = 1; d < arguments.length; d++) {
226
+ for (var f, g = o(c), y, d = 1; d < arguments.length; d++) {
227
227
  f = Object(arguments[d]);
228
228
  for (var C in f)
229
229
  e.call(f, C) && (g[C] = f[C]);
230
230
  if (r) {
231
- h = r(f);
232
- for (var w = 0; w < h.length; w++)
233
- i.call(f, h[w]) && (g[h[w]] = f[h[w]]);
231
+ y = r(f);
232
+ for (var w = 0; w < y.length; w++)
233
+ i.call(f, y[w]) && (g[y[w]] = f[y[w]]);
234
234
  }
235
235
  }
236
236
  return g;
@@ -247,14 +247,14 @@ var ae, be;
247
247
  function Pe() {
248
248
  return be || (be = 1, ae = Function.call.bind(Object.prototype.hasOwnProperty)), ae;
249
249
  }
250
- var ie, he;
251
- function Be() {
252
- if (he) return ie;
253
- he = 1;
250
+ var ie, me;
251
+ function Ne() {
252
+ if (me) return ie;
253
+ me = 1;
254
254
  var r = function() {
255
255
  };
256
256
  if (process.env.NODE_ENV !== "production") {
257
- var e = /* @__PURE__ */ ue(), i = {}, n = /* @__PURE__ */ Pe();
257
+ var e = /* @__PURE__ */ ue(), i = {}, o = /* @__PURE__ */ Pe();
258
258
  r = function(c) {
259
259
  var l = "Warning: " + c;
260
260
  typeof console < "u" && console.error(l);
@@ -264,10 +264,10 @@ function Be() {
264
264
  }
265
265
  };
266
266
  }
267
- function u(c, l, f, g, h) {
267
+ function u(c, l, f, g, y) {
268
268
  if (process.env.NODE_ENV !== "production") {
269
269
  for (var d in c)
270
- if (n(c, d)) {
270
+ if (o(c, d)) {
271
271
  var C;
272
272
  try {
273
273
  if (typeof c[d] != "function") {
@@ -284,7 +284,7 @@ function Be() {
284
284
  (g || "React class") + ": type specification of " + f + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
285
285
  ), C instanceof Error && !(C.message in i)) {
286
286
  i[C.message] = !0;
287
- var j = h ? h() : "";
287
+ var j = y ? y() : "";
288
288
  r(
289
289
  "Failed " + f + " type: " + C.message + (j ?? "")
290
290
  );
@@ -296,11 +296,11 @@ function Be() {
296
296
  process.env.NODE_ENV !== "production" && (i = {});
297
297
  }, ie = u, ie;
298
298
  }
299
- var se, me;
300
- function Ne() {
301
- if (me) return se;
302
- me = 1;
303
- var r = _e(), e = Ve(), i = /* @__PURE__ */ ue(), n = /* @__PURE__ */ Pe(), u = /* @__PURE__ */ Be(), c = function() {
299
+ var se, he;
300
+ function He() {
301
+ if (he) return se;
302
+ he = 1;
303
+ var r = _e(), e = Be(), i = /* @__PURE__ */ ue(), o = /* @__PURE__ */ Pe(), u = /* @__PURE__ */ Ne(), c = function() {
304
304
  };
305
305
  process.env.NODE_ENV !== "production" && (c = function(f) {
306
306
  var g = "Warning: " + f;
@@ -314,9 +314,9 @@ function Ne() {
314
314
  return null;
315
315
  }
316
316
  return se = function(f, g) {
317
- var h = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
317
+ var y = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
318
318
  function C(t) {
319
- var s = t && (h && t[h] || t[d]);
319
+ var s = t && (y && t[y] || t[d]);
320
320
  if (typeof s == "function")
321
321
  return s;
322
322
  }
@@ -330,9 +330,9 @@ function Ne() {
330
330
  string: k("string"),
331
331
  symbol: k("symbol"),
332
332
  any: F(),
333
- arrayOf: x,
334
- element: A(),
335
- elementType: a(),
333
+ arrayOf: A,
334
+ element: x(),
335
+ elementType: n(),
336
336
  instanceOf: Y,
337
337
  node: Z(),
338
338
  objectOf: X,
@@ -350,34 +350,34 @@ function Ne() {
350
350
  P.prototype = Error.prototype;
351
351
  function $(t) {
352
352
  if (process.env.NODE_ENV !== "production")
353
- var s = {}, m = 0;
354
- function v(E, y, b, T, _, S, M) {
355
- if (T = T || w, S = S || b, M !== i) {
353
+ var s = {}, h = 0;
354
+ function b(E, v, m, T, _, S, M) {
355
+ if (T = T || w, S = S || m, M !== i) {
356
356
  if (g) {
357
- var o = new Error(
357
+ var a = new Error(
358
358
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
359
359
  );
360
- throw o.name = "Invariant Violation", o;
360
+ throw a.name = "Invariant Violation", a;
361
361
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
362
- var q = T + ":" + b;
362
+ var q = T + ":" + m;
363
363
  !s[q] && // Avoid spamming the console because they are often not actionable except for lib authors
364
- m < 3 && (c(
364
+ h < 3 && (c(
365
365
  "You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + T + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
366
- ), s[q] = !0, m++);
366
+ ), s[q] = !0, h++);
367
367
  }
368
368
  }
369
- return y[b] == null ? E ? y[b] === null ? new P("The " + _ + " `" + S + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new P("The " + _ + " `" + S + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : t(y, b, T, _, S);
369
+ return v[m] == null ? E ? v[m] === null ? new P("The " + _ + " `" + S + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new P("The " + _ + " `" + S + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : t(v, m, T, _, S);
370
370
  }
371
- var p = v.bind(null, !1);
372
- return p.isRequired = v.bind(null, !0), p;
371
+ var p = b.bind(null, !1);
372
+ return p.isRequired = b.bind(null, !0), p;
373
373
  }
374
374
  function k(t) {
375
- function s(m, v, p, E, y, b) {
376
- var T = m[v], _ = L(T);
375
+ function s(h, b, p, E, v, m) {
376
+ var T = h[b], _ = L(T);
377
377
  if (_ !== t) {
378
378
  var S = U(T);
379
379
  return new P(
380
- "Invalid " + E + " `" + y + "` of type " + ("`" + S + "` supplied to `" + p + "`, expected ") + ("`" + t + "`."),
380
+ "Invalid " + E + " `" + v + "` of type " + ("`" + S + "` supplied to `" + p + "`, expected ") + ("`" + t + "`."),
381
381
  { expectedType: t }
382
382
  );
383
383
  }
@@ -388,17 +388,17 @@ function Ne() {
388
388
  function F() {
389
389
  return $(l);
390
390
  }
391
- function x(t) {
392
- function s(m, v, p, E, y) {
391
+ function A(t) {
392
+ function s(h, b, p, E, v) {
393
393
  if (typeof t != "function")
394
- return new P("Property `" + y + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
395
- var b = m[v];
396
- if (!Array.isArray(b)) {
397
- var T = L(b);
398
- return new P("Invalid " + E + " `" + y + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an array."));
394
+ return new P("Property `" + v + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
395
+ var m = h[b];
396
+ if (!Array.isArray(m)) {
397
+ var T = L(m);
398
+ return new P("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an array."));
399
399
  }
400
- for (var _ = 0; _ < b.length; _++) {
401
- var S = t(b, _, p, E, y + "[" + _ + "]", i);
400
+ for (var _ = 0; _ < m.length; _++) {
401
+ var S = t(m, _, p, E, v + "[" + _ + "]", i);
402
402
  if (S instanceof Error)
403
403
  return S;
404
404
  }
@@ -406,33 +406,33 @@ function Ne() {
406
406
  }
407
407
  return $(s);
408
408
  }
409
- function A() {
410
- function t(s, m, v, p, E) {
411
- var y = s[m];
412
- if (!f(y)) {
413
- var b = L(y);
414
- return new P("Invalid " + p + " `" + E + "` of type " + ("`" + b + "` supplied to `" + v + "`, expected a single ReactElement."));
409
+ function x() {
410
+ function t(s, h, b, p, E) {
411
+ var v = s[h];
412
+ if (!f(v)) {
413
+ var m = L(v);
414
+ return new P("Invalid " + p + " `" + E + "` of type " + ("`" + m + "` supplied to `" + b + "`, expected a single ReactElement."));
415
415
  }
416
416
  return null;
417
417
  }
418
418
  return $(t);
419
419
  }
420
- function a() {
421
- function t(s, m, v, p, E) {
422
- var y = s[m];
423
- if (!r.isValidElementType(y)) {
424
- var b = L(y);
425
- return new P("Invalid " + p + " `" + E + "` of type " + ("`" + b + "` supplied to `" + v + "`, expected a single ReactElement type."));
420
+ function n() {
421
+ function t(s, h, b, p, E) {
422
+ var v = s[h];
423
+ if (!r.isValidElementType(v)) {
424
+ var m = L(v);
425
+ return new P("Invalid " + p + " `" + E + "` of type " + ("`" + m + "` supplied to `" + b + "`, expected a single ReactElement type."));
426
426
  }
427
427
  return null;
428
428
  }
429
429
  return $(t);
430
430
  }
431
431
  function Y(t) {
432
- function s(m, v, p, E, y) {
433
- if (!(m[v] instanceof t)) {
434
- var b = t.name || w, T = te(m[v]);
435
- return new P("Invalid " + E + " `" + y + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected ") + ("instance of `" + b + "`."));
432
+ function s(h, b, p, E, v) {
433
+ if (!(h[b] instanceof t)) {
434
+ var m = t.name || w, T = te(h[b]);
435
+ return new P("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected ") + ("instance of `" + m + "`."));
436
436
  }
437
437
  return null;
438
438
  }
@@ -443,28 +443,28 @@ function Ne() {
443
443
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
444
444
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
445
445
  ) : c("Invalid argument supplied to oneOf, expected an array.")), l;
446
- function s(m, v, p, E, y) {
447
- for (var b = m[v], T = 0; T < t.length; T++)
448
- if (I(b, t[T]))
446
+ function s(h, b, p, E, v) {
447
+ for (var m = h[b], T = 0; T < t.length; T++)
448
+ if (I(m, t[T]))
449
449
  return null;
450
- var _ = JSON.stringify(t, function(M, o) {
451
- var q = U(o);
452
- return q === "symbol" ? String(o) : o;
450
+ var _ = JSON.stringify(t, function(M, a) {
451
+ var q = U(a);
452
+ return q === "symbol" ? String(a) : a;
453
453
  });
454
- return new P("Invalid " + E + " `" + y + "` of value `" + String(b) + "` " + ("supplied to `" + p + "`, expected one of " + _ + "."));
454
+ return new P("Invalid " + E + " `" + v + "` of value `" + String(m) + "` " + ("supplied to `" + p + "`, expected one of " + _ + "."));
455
455
  }
456
456
  return $(s);
457
457
  }
458
458
  function X(t) {
459
- function s(m, v, p, E, y) {
459
+ function s(h, b, p, E, v) {
460
460
  if (typeof t != "function")
461
- return new P("Property `" + y + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
462
- var b = m[v], T = L(b);
461
+ return new P("Property `" + v + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
462
+ var m = h[b], T = L(m);
463
463
  if (T !== "object")
464
- return new P("Invalid " + E + " `" + y + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an object."));
465
- for (var _ in b)
466
- if (n(b, _)) {
467
- var S = t(b, _, p, E, y + "." + _, i);
464
+ return new P("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an object."));
465
+ for (var _ in m)
466
+ if (o(m, _)) {
467
+ var S = t(m, _, p, E, v + "." + _, i);
468
468
  if (S instanceof Error)
469
469
  return S;
470
470
  }
@@ -476,45 +476,45 @@ function Ne() {
476
476
  if (!Array.isArray(t))
477
477
  return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), l;
478
478
  for (var s = 0; s < t.length; s++) {
479
- var m = t[s];
480
- if (typeof m != "function")
479
+ var h = t[s];
480
+ if (typeof h != "function")
481
481
  return c(
482
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(m) + " at index " + s + "."
482
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(h) + " at index " + s + "."
483
483
  ), l;
484
484
  }
485
- function v(p, E, y, b, T) {
485
+ function b(p, E, v, m, T) {
486
486
  for (var _ = [], S = 0; S < t.length; S++) {
487
- var M = t[S], o = M(p, E, y, b, T, i);
488
- if (o == null)
487
+ var M = t[S], a = M(p, E, v, m, T, i);
488
+ if (a == null)
489
489
  return null;
490
- o.data && n(o.data, "expectedType") && _.push(o.data.expectedType);
490
+ a.data && o(a.data, "expectedType") && _.push(a.data.expectedType);
491
491
  }
492
492
  var q = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
493
- return new P("Invalid " + b + " `" + T + "` supplied to " + ("`" + y + "`" + q + "."));
493
+ return new P("Invalid " + m + " `" + T + "` supplied to " + ("`" + v + "`" + q + "."));
494
494
  }
495
- return $(v);
495
+ return $(b);
496
496
  }
497
497
  function Z() {
498
- function t(s, m, v, p, E) {
499
- return W(s[m]) ? null : new P("Invalid " + p + " `" + E + "` supplied to " + ("`" + v + "`, expected a ReactNode."));
498
+ function t(s, h, b, p, E) {
499
+ return W(s[h]) ? null : new P("Invalid " + p + " `" + E + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
500
500
  }
501
501
  return $(t);
502
502
  }
503
- function z(t, s, m, v, p) {
503
+ function z(t, s, h, b, p) {
504
504
  return new P(
505
- (t || "React class") + ": " + s + " type `" + m + "." + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
505
+ (t || "React class") + ": " + s + " type `" + h + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
506
506
  );
507
507
  }
508
508
  function Q(t) {
509
- function s(m, v, p, E, y) {
510
- var b = m[v], T = L(b);
509
+ function s(h, b, p, E, v) {
510
+ var m = h[b], T = L(m);
511
511
  if (T !== "object")
512
- return new P("Invalid " + E + " `" + y + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
512
+ return new P("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
513
513
  for (var _ in t) {
514
514
  var S = t[_];
515
515
  if (typeof S != "function")
516
- return z(p, E, y, _, U(S));
517
- var M = S(b, _, p, E, y + "." + _, i);
516
+ return z(p, E, v, _, U(S));
517
+ var M = S(m, _, p, E, v + "." + _, i);
518
518
  if (M)
519
519
  return M;
520
520
  }
@@ -523,23 +523,23 @@ function Ne() {
523
523
  return $(s);
524
524
  }
525
525
  function ee(t) {
526
- function s(m, v, p, E, y) {
527
- var b = m[v], T = L(b);
526
+ function s(h, b, p, E, v) {
527
+ var m = h[b], T = L(m);
528
528
  if (T !== "object")
529
- return new P("Invalid " + E + " `" + y + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
530
- var _ = e({}, m[v], t);
529
+ return new P("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
530
+ var _ = e({}, h[b], t);
531
531
  for (var S in _) {
532
532
  var M = t[S];
533
- if (n(t, S) && typeof M != "function")
534
- return z(p, E, y, S, U(M));
533
+ if (o(t, S) && typeof M != "function")
534
+ return z(p, E, v, S, U(M));
535
535
  if (!M)
536
536
  return new P(
537
- "Invalid " + E + " `" + y + "` key `" + S + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(m[v], null, " ") + `
537
+ "Invalid " + E + " `" + v + "` key `" + S + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(h[b], null, " ") + `
538
538
  Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
539
539
  );
540
- var o = M(b, S, p, E, y + "." + S, i);
541
- if (o)
542
- return o;
540
+ var a = M(m, S, p, E, v + "." + S, i);
541
+ if (a)
542
+ return a;
543
543
  }
544
544
  return null;
545
545
  }
@@ -560,14 +560,14 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
560
560
  return !0;
561
561
  var s = C(t);
562
562
  if (s) {
563
- var m = s.call(t), v;
563
+ var h = s.call(t), b;
564
564
  if (s !== t.entries) {
565
- for (; !(v = m.next()).done; )
566
- if (!W(v.value))
565
+ for (; !(b = h.next()).done; )
566
+ if (!W(b.value))
567
567
  return !1;
568
568
  } else
569
- for (; !(v = m.next()).done; ) {
570
- var p = v.value;
569
+ for (; !(b = h.next()).done; ) {
570
+ var p = b.value;
571
571
  if (p && !W(p[1]))
572
572
  return !1;
573
573
  }
@@ -618,7 +618,7 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
618
618
  }, se;
619
619
  }
620
620
  var ce, ge;
621
- function He() {
621
+ function Je() {
622
622
  if (ge) return ce;
623
623
  ge = 1;
624
624
  var r = /* @__PURE__ */ ue();
@@ -627,7 +627,7 @@ function He() {
627
627
  function i() {
628
628
  }
629
629
  return i.resetWarningCache = e, ce = function() {
630
- function n(l, f, g, h, d, C) {
630
+ function o(l, f, g, y, d, C) {
631
631
  if (C !== r) {
632
632
  var w = new Error(
633
633
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -635,25 +635,25 @@ function He() {
635
635
  throw w.name = "Invariant Violation", w;
636
636
  }
637
637
  }
638
- n.isRequired = n;
638
+ o.isRequired = o;
639
639
  function u() {
640
- return n;
640
+ return o;
641
641
  }
642
642
  var c = {
643
- array: n,
644
- bigint: n,
645
- bool: n,
646
- func: n,
647
- number: n,
648
- object: n,
649
- string: n,
650
- symbol: n,
651
- any: n,
643
+ array: o,
644
+ bigint: o,
645
+ bool: o,
646
+ func: o,
647
+ number: o,
648
+ object: o,
649
+ string: o,
650
+ symbol: o,
651
+ any: o,
652
652
  arrayOf: u,
653
- element: n,
654
- elementType: n,
653
+ element: o,
654
+ elementType: o,
655
655
  instanceOf: u,
656
- node: n,
656
+ node: o,
657
657
  objectOf: u,
658
658
  oneOf: u,
659
659
  oneOfType: u,
@@ -666,16 +666,16 @@ function He() {
666
666
  }, ce;
667
667
  }
668
668
  var Ee;
669
- function Je() {
669
+ function Ke() {
670
670
  if (Ee) return N.exports;
671
671
  if (Ee = 1, process.env.NODE_ENV !== "production") {
672
672
  var r = _e(), e = !0;
673
- N.exports = /* @__PURE__ */ Ne()(r.isElement, e);
673
+ N.exports = /* @__PURE__ */ He()(r.isElement, e);
674
674
  } else
675
- N.exports = /* @__PURE__ */ He()();
675
+ N.exports = /* @__PURE__ */ Je()();
676
676
  return N.exports;
677
677
  }
678
- var D = /* @__PURE__ */ Je();
678
+ var D = /* @__PURE__ */ Ke();
679
679
  const we = {
680
680
  data: D.oneOfType([D.string, D.array, D.func]).isRequired,
681
681
  headers: D.array,
@@ -692,13 +692,13 @@ const we = {
692
692
  uFEFF: !0,
693
693
  asyncOnClick: !1,
694
694
  enclosingCharacter: '"'
695
- }, Ke = {
695
+ }, Xe = {
696
696
  target: "_blank"
697
697
  };
698
- class tr extends Te.Component {
698
+ class nr extends Te.Component {
699
699
  static defaultProps = Object.assign(
700
700
  xe,
701
- Ke
701
+ Xe
702
702
  );
703
703
  static propTypes = we;
704
704
  constructor(e) {
@@ -708,9 +708,9 @@ class tr extends Te.Component {
708
708
  return Re(...arguments);
709
709
  }
710
710
  componentDidMount() {
711
- const { data: e, headers: i, separator: n, enclosingCharacter: u, uFEFF: c, target: l, specs: f, replace: g } = this.props;
711
+ const { data: e, headers: i, separator: o, enclosingCharacter: u, uFEFF: c, target: l, specs: f, replace: g } = this.props;
712
712
  this.state.page = window.open(
713
- this.buildURI(e, c, i, n, u),
713
+ this.buildURI(e, c, i, o, u),
714
714
  l,
715
715
  f,
716
716
  g
@@ -723,7 +723,7 @@ class tr extends Te.Component {
723
723
  return null;
724
724
  }
725
725
  }
726
- let Xe = class extends Te.Component {
726
+ let Ge = class extends Te.Component {
727
727
  static defaultProps = xe;
728
728
  static propTypes = we;
729
729
  constructor(e) {
@@ -739,20 +739,20 @@ let Xe = class extends Te.Component {
739
739
  if (window.navigator.msSaveOrOpenBlob) {
740
740
  e.preventDefault();
741
741
  const {
742
- data: n,
742
+ data: o,
743
743
  headers: u,
744
744
  separator: c,
745
745
  filename: l,
746
746
  enclosingCharacter: f,
747
747
  uFEFF: g
748
- } = this.props, h = i && typeof n == "function" ? n() : n;
749
- let d = new Blob([g ? "\uFEFF" : "", Oe(h, u, c, f)]);
748
+ } = this.props, y = i && typeof o == "function" ? o() : o;
749
+ let d = new Blob([g ? "\uFEFF" : "", Oe(y, u, c, f)]);
750
750
  return window.navigator.msSaveBlob(d, l), !1;
751
751
  }
752
752
  }
753
753
  handleAsyncClick(e) {
754
- const i = (n) => {
755
- if (n === !1) {
754
+ const i = (o) => {
755
+ if (o === !1) {
756
756
  e.preventDefault();
757
757
  return;
758
758
  }
@@ -778,15 +778,15 @@ let Xe = class extends Te.Component {
778
778
  const {
779
779
  data: e,
780
780
  headers: i,
781
- separator: n,
781
+ separator: o,
782
782
  filename: u,
783
783
  uFEFF: c,
784
784
  children: l,
785
785
  onClick: f,
786
786
  asyncOnClick: g,
787
- enclosingCharacter: h,
787
+ enclosingCharacter: y,
788
788
  ...d
789
- } = this.props, w = typeof window > "u" ? "" : this.buildURI(e, c, i, n, h);
789
+ } = this.props, w = typeof window > "u" ? "" : this.buildURI(e, c, i, o, y);
790
790
  return /* @__PURE__ */ J.jsx(
791
791
  "a",
792
792
  {
@@ -801,42 +801,44 @@ let Xe = class extends Te.Component {
801
801
  );
802
802
  }
803
803
  };
804
- const Ge = Xe, Ze = (r) => r ? r.map((e) => {
804
+ const Ze = Ge, Qe = (r) => r ? r.map((e) => {
805
805
  const i = {
806
806
  ...e
807
807
  };
808
- return Object.entries(i).forEach(([n, u]) => {
809
- Array.isArray(u) && (i[n] = `${u.join(",")}`), typeof u == "string" && (i[n] = `${u.replaceAll('"', "'")}`);
808
+ return Object.entries(i).forEach(([o, u]) => {
809
+ Array.isArray(u) && (i[o] = `${u.join(",")}`), typeof u == "string" && (i[o] = `${u.replaceAll('"', "'")}`);
810
810
  }), i;
811
811
  }) : {};
812
- function or(r) {
813
- const e = Ae.c(15), {
812
+ function ar(r) {
813
+ const e = Ae.c(18), {
814
814
  buttonContent: i,
815
- buttonType: n,
815
+ buttonType: o,
816
816
  csvData: u,
817
817
  fileName: c,
818
818
  headers: l,
819
819
  separator: f,
820
820
  buttonSmall: g,
821
- className: h
822
- } = r, d = n === void 0 ? "tertiary" : n, C = c === void 0 ? "data" : c, w = f === void 0 ? "," : f, j = g === void 0 ? !1 : g;
821
+ className: y
822
+ } = r, d = o === void 0 ? "tertiary" : o, C = c === void 0 ? "data" : c, w = f === void 0 ? "," : f, j = g === void 0 ? !1 : g;
823
823
  let I;
824
- e[0] !== u ? (I = Ze(u), e[0] = u, e[1] = I) : I = e[1];
824
+ e[0] !== u ? (I = Qe(u), e[0] = u, e[1] = I) : I = e[1];
825
825
  const P = `${C}.csv`;
826
826
  let $;
827
827
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
828
828
  backgroundImage: "none",
829
829
  textDecoration: "none"
830
830
  }, e[2] = $) : $ = e[2];
831
- const k = `undp-viz-download-button no-underline ${j ? "p-2" : "py-4 px-6"} ${h} border border-primary-gray-400 dark:border-primary-gray-550`;
831
+ const k = j ? "p-2" : "py-4 px-6";
832
832
  let F;
833
- e[3] !== i ? (F = i || /* @__PURE__ */ J.jsx(je, {}), e[3] = i, e[4] = F) : F = e[4];
834
- let x;
835
- e[5] !== d || e[6] !== k || e[7] !== F ? (x = /* @__PURE__ */ J.jsx($e, { variant: d, className: k, children: F }), e[5] = d, e[6] = k, e[7] = F, e[8] = x) : x = e[8];
833
+ e[3] !== y || e[4] !== k ? (F = je("undp-viz-download-button no-underline border border-primary-gray-400 dark:border-primary-gray-550", k, y), e[3] = y, e[4] = k, e[5] = F) : F = e[5];
836
834
  let A;
837
- return e[9] !== l || e[10] !== w || e[11] !== I || e[12] !== P || e[13] !== x ? (A = /* @__PURE__ */ J.jsx(Ge, { headers: l, enclosingCharacter: '"', separator: w, data: I, filename: P, asyncOnClick: !0, target: "_blank", style: $, "aria-label": "Click to download the data as csv", children: x }), e[9] = l, e[10] = w, e[11] = I, e[12] = P, e[13] = x, e[14] = A) : A = e[14], A;
835
+ e[6] !== i ? (A = i || /* @__PURE__ */ J.jsx($e, {}), e[6] = i, e[7] = A) : A = e[7];
836
+ let x;
837
+ e[8] !== d || e[9] !== F || e[10] !== A ? (x = /* @__PURE__ */ J.jsx(Ie, { variant: d, className: F, children: A }), e[8] = d, e[9] = F, e[10] = A, e[11] = x) : x = e[11];
838
+ let n;
839
+ return e[12] !== l || e[13] !== w || e[14] !== x || e[15] !== I || e[16] !== P ? (n = /* @__PURE__ */ J.jsx(Ze, { headers: l, enclosingCharacter: '"', separator: w, data: I, filename: P, asyncOnClick: !0, target: "_blank", style: $, "aria-label": "Click to download the data as csv", children: x }), e[12] = l, e[13] = w, e[14] = x, e[15] = I, e[16] = P, e[17] = n) : n = e[17], n;
838
840
  }
839
841
  export {
840
- or as CsvDownloadButton
842
+ ar as CsvDownloadButton
841
843
  };
842
844
  //# sourceMappingURL=CsvDownloadButton.js.map