@embeddable.com/remarkable-pro 0.0.25 → 0.0.26

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 (164) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +35 -24
  2. package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
  3. package/dist/BarChartDefaultPro.js +38 -22
  4. package/dist/BarChartDefaultPro.js.map +1 -1
  5. package/dist/BarChartGroupedHorizontalPro.js +36 -28
  6. package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
  7. package/dist/BarChartGroupedPro.js +36 -28
  8. package/dist/BarChartGroupedPro.js.map +1 -1
  9. package/dist/BarChartStackedHorizontalPro.js +31 -23
  10. package/dist/BarChartStackedHorizontalPro.js.map +1 -1
  11. package/dist/BarChartStackedPro.js +31 -23
  12. package/dist/BarChartStackedPro.js.map +1 -1
  13. package/dist/{ChartCard-BHPN4_tz.js → ChartCard-C6rVK7Ux.js} +21 -21
  14. package/dist/{ChartCard-BHPN4_tz.js.map → ChartCard-C6rVK7Ux.js.map} +1 -1
  15. package/dist/ChartGranularitySelectField-BxhibpgC.js +40 -0
  16. package/dist/ChartGranularitySelectField-BxhibpgC.js.map +1 -0
  17. package/dist/{Color.type.emb-DWdIUAm5.js → Color.type.emb-De2K8PVb.js} +2067 -2042
  18. package/dist/{Color.type.emb-DWdIUAm5.js.map → Color.type.emb-De2K8PVb.js.map} +1 -1
  19. package/dist/ColorEditor.js +1 -1
  20. package/dist/ComparisonPeriodSelectFieldPro.js +3 -3
  21. package/dist/DateRangePickerCustomPro.js +4 -4
  22. package/dist/DateRangeSelectFieldPro.js +3 -3
  23. package/dist/DonutChartPro.js +4 -4
  24. package/dist/DonutLabelChartPro.js +4 -4
  25. package/dist/{EditorCard-ZXwl5-DV.js → EditorCard-DCm6Ykb8.js} +3 -3
  26. package/dist/{EditorCard-ZXwl5-DV.js.map → EditorCard-DCm6Ykb8.js.map} +1 -1
  27. package/dist/GranularitySelectField-CYq2YuAO.js +104 -0
  28. package/dist/GranularitySelectField-CYq2YuAO.js.map +1 -0
  29. package/dist/GranularitySelectFieldPro.js +43 -137
  30. package/dist/GranularitySelectFieldPro.js.map +1 -1
  31. package/dist/HeatMapPro.js +4 -4
  32. package/dist/{IconCalendarFilled-Bl7kPqxG.js → IconCalendarFilled-CYiLMPm9.js} +2 -2
  33. package/dist/{IconCalendarFilled-Bl7kPqxG.js.map → IconCalendarFilled-CYiLMPm9.js.map} +1 -1
  34. package/dist/KpiChartNumberComparisonPro.js +4 -4
  35. package/dist/KpiChartNumberPro.js +4 -4
  36. package/dist/LineChartComparisonDefaultPro.js +45 -40
  37. package/dist/LineChartComparisonDefaultPro.js.map +1 -1
  38. package/dist/LineChartDefaultPro.js +37 -29
  39. package/dist/LineChartDefaultPro.js.map +1 -1
  40. package/dist/LineChartGroupedPro.js +31 -23
  41. package/dist/LineChartGroupedPro.js.map +1 -1
  42. package/dist/MultiSelectFieldPro.js +4 -4
  43. package/dist/PieChartPro.js +4 -4
  44. package/dist/PivotTablePro.js +4 -4
  45. package/dist/SingleSelectFieldPro.js +4 -4
  46. package/dist/TableChartPaginated.js +4 -4
  47. package/dist/TableScrollable.js +17 -17
  48. package/dist/{bars.utils-DLqiVSYV.js → bars.utils-IYtKAgtt.js} +4 -4
  49. package/dist/{bars.utils-DLqiVSYV.js.map → bars.utils-IYtKAgtt.js.map} +1 -1
  50. package/dist/{charts.utils-lvlkFPJk.js → charts.utils-CeGAdGVG.js} +4 -4
  51. package/dist/{charts.utils-lvlkFPJk.js.map → charts.utils-CeGAdGVG.js.map} +1 -1
  52. package/dist/{component.inputs.constants-DO_jX-yc.js → component.inputs.constants-wDyG8tFg.js} +464 -382
  53. package/dist/component.inputs.constants-wDyG8tFg.js.map +1 -0
  54. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts +2 -1
  55. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts.map +1 -1
  56. package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts +2 -1
  57. package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts.map +1 -1
  58. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts +2 -1
  59. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts.map +1 -1
  60. package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts +2 -1
  61. package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts.map +1 -1
  62. package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts +2 -1
  63. package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts.map +1 -1
  64. package/dist/components/charts/bars/BarChartStackedPro/index.d.ts +2 -1
  65. package/dist/components/charts/bars/BarChartStackedPro/index.d.ts.map +1 -1
  66. package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts +2 -1
  67. package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts.map +1 -1
  68. package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts +2 -1
  69. package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts.map +1 -1
  70. package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts +2 -1
  71. package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts.map +1 -1
  72. package/dist/components/charts/shared/ChartGranularitySelectField/ChartGranularitySelectField.d.ts +9 -0
  73. package/dist/components/charts/shared/ChartGranularitySelectField/ChartGranularitySelectField.d.ts.map +1 -0
  74. package/dist/components/charts/utils/granularity.utils.d.ts +13 -0
  75. package/dist/components/charts/utils/granularity.utils.d.ts.map +1 -0
  76. package/dist/components/component.inputs.constants.d.ts +12 -0
  77. package/dist/components/component.inputs.constants.d.ts.map +1 -1
  78. package/dist/components/component.subinputs.constants.d.ts +18 -0
  79. package/dist/components/component.subinputs.constants.d.ts.map +1 -1
  80. package/dist/components/editors/GranularitySelectFieldPro/index.d.ts.map +1 -1
  81. package/dist/components/editors/shared/GranularitySelectField/GranularitySelectField.d.ts +12 -0
  82. package/dist/components/editors/shared/GranularitySelectField/GranularitySelectField.d.ts.map +1 -0
  83. package/dist/components/editors/{GranularitySelectFieldPro/GranularitySelectFieldPro.utils.d.ts → shared/GranularitySelectField/GranularitySelectField.utils.d.ts} +3 -3
  84. package/dist/components/editors/shared/GranularitySelectField/GranularitySelectField.utils.d.ts.map +1 -0
  85. package/dist/embeddable-components.json +34 -34
  86. package/dist/{formatter.utils-CBCUxVH8.js → formatter.utils-DlbthOXA.js} +8 -8
  87. package/dist/{formatter.utils-CBCUxVH8.js.map → formatter.utils-DlbthOXA.js.map} +1 -1
  88. package/dist/granularity.utils-CA504xa0.js +15 -0
  89. package/dist/granularity.utils-CA504xa0.js.map +1 -0
  90. package/dist/{index-Rxsr4tZ-.js → index-AqDTPWnU.js} +5 -5
  91. package/dist/{index-Rxsr4tZ-.js.map → index-AqDTPWnU.js.map} +1 -1
  92. package/dist/index-B2N9BsUK.js +92 -0
  93. package/dist/index-B2N9BsUK.js.map +1 -0
  94. package/dist/{index-DLT2A69c.js → index-BFvsuXiz.js} +5 -5
  95. package/dist/{index-DLT2A69c.js.map → index-BFvsuXiz.js.map} +1 -1
  96. package/dist/{index-BSK_5Rq3.js → index-BaboirUQ.js} +5 -5
  97. package/dist/{index-BSK_5Rq3.js.map → index-BaboirUQ.js.map} +1 -1
  98. package/dist/index-Bd4SFepB.js +93 -0
  99. package/dist/index-Bd4SFepB.js.map +1 -0
  100. package/dist/{index-CzM9TqMe.js → index-BkcQaDp8.js} +6 -6
  101. package/dist/{index-CzM9TqMe.js.map → index-BkcQaDp8.js.map} +1 -1
  102. package/dist/index-Cf96kZIH.js +82 -0
  103. package/dist/index-Cf96kZIH.js.map +1 -0
  104. package/dist/{index-DZYPPNrI.js → index-CgVjpFNs.js} +5 -5
  105. package/dist/{index-DZYPPNrI.js.map → index-CgVjpFNs.js.map} +1 -1
  106. package/dist/{index-s4oA7Iyp.js → index-CiO0tI86.js} +8 -8
  107. package/dist/{index-s4oA7Iyp.js.map → index-CiO0tI86.js.map} +1 -1
  108. package/dist/index-CoOz-mWY.js +90 -0
  109. package/dist/index-CoOz-mWY.js.map +1 -0
  110. package/dist/{index-EOl5XOZN.js → index-CvKdGFx3.js} +6 -6
  111. package/dist/{index-EOl5XOZN.js.map → index-CvKdGFx3.js.map} +1 -1
  112. package/dist/index-D3HMg6eu.js +177 -0
  113. package/dist/index-D3HMg6eu.js.map +1 -0
  114. package/dist/index-DCA_6rWw.js +182 -0
  115. package/dist/index-DCA_6rWw.js.map +1 -0
  116. package/dist/{index-CpUKjpYd.js → index-DHiPuxQQ.js} +4 -4
  117. package/dist/{index-CpUKjpYd.js.map → index-DHiPuxQQ.js.map} +1 -1
  118. package/dist/{index-0eDJ_Ho5.js → index-DfrwKtFA.js} +5 -5
  119. package/dist/{index-0eDJ_Ho5.js.map → index-DfrwKtFA.js.map} +1 -1
  120. package/dist/{index-BRuc7lF2.js → index-DytdIFQb.js} +5 -5
  121. package/dist/{index-BRuc7lF2.js.map → index-DytdIFQb.js.map} +1 -1
  122. package/dist/index-eEE2JmCK.js +346 -0
  123. package/dist/index-eEE2JmCK.js.map +1 -0
  124. package/dist/index-fcVfPVmY.js +83 -0
  125. package/dist/index-fcVfPVmY.js.map +1 -0
  126. package/dist/{index-BRX2mrGM.js → index-gnajbHE2.js} +18 -18
  127. package/dist/{index-BRX2mrGM.js.map → index-gnajbHE2.js.map} +1 -1
  128. package/dist/{index-Cn_Rs8nk.js → index-icM1qOGP.js} +5 -5
  129. package/dist/{index-Cn_Rs8nk.js.map → index-icM1qOGP.js.map} +1 -1
  130. package/dist/index-rodtTo_t.js +91 -0
  131. package/dist/index-rodtTo_t.js.map +1 -0
  132. package/dist/index.js +70 -69
  133. package/dist/{pies.utils-BxCBtjpf.js → pies.utils-XolEkyOz.js} +5 -5
  134. package/dist/{pies.utils-BxCBtjpf.js.map → pies.utils-XolEkyOz.js.map} +1 -1
  135. package/dist/{preview.data.constants-CXMriS2F.js → preview.data.constants-37wUPKG8.js} +2 -2
  136. package/dist/{preview.data.constants-CXMriS2F.js.map → preview.data.constants-37wUPKG8.js.map} +1 -1
  137. package/dist/remarkable-pro.css +1 -1
  138. package/dist/{tables.utils-DMLGNJ4g.js → tables.utils-Bb34U0u9.js} +4 -4
  139. package/dist/{tables.utils-DMLGNJ4g.js.map → tables.utils-Bb34U0u9.js.map} +1 -1
  140. package/dist/theme/defaults/defaults.GranularityOptions.constants.d.ts +1 -0
  141. package/dist/theme/defaults/defaults.GranularityOptions.constants.d.ts.map +1 -1
  142. package/dist/{timeRange.utils-C_oRVExZ.js → timeRange.utils-DdzcsFwj.js} +5 -5
  143. package/dist/{timeRange.utils-C_oRVExZ.js.map → timeRange.utils-DdzcsFwj.js.map} +1 -1
  144. package/package.json +2 -2
  145. package/dist/component.inputs.constants-DO_jX-yc.js.map +0 -1
  146. package/dist/components/editors/GranularitySelectFieldPro/GranularitySelectFieldPro.utils.d.ts.map +0 -1
  147. package/dist/index-ByFoIwAq.js +0 -83
  148. package/dist/index-ByFoIwAq.js.map +0 -1
  149. package/dist/index-CRWWARnB.js +0 -75
  150. package/dist/index-CRWWARnB.js.map +0 -1
  151. package/dist/index-CVIirzal.js +0 -73
  152. package/dist/index-CVIirzal.js.map +0 -1
  153. package/dist/index-Cj1Zuh74.js +0 -165
  154. package/dist/index-Cj1Zuh74.js.map +0 -1
  155. package/dist/index-D9LxkwlG.js +0 -82
  156. package/dist/index-D9LxkwlG.js.map +0 -1
  157. package/dist/index-DDeRZxp1.js +0 -334
  158. package/dist/index-DDeRZxp1.js.map +0 -1
  159. package/dist/index-DMtpdR9I.js +0 -170
  160. package/dist/index-DMtpdR9I.js.map +0 -1
  161. package/dist/index-L5_Ts7FG.js +0 -83
  162. package/dist/index-L5_Ts7FG.js.map +0 -1
  163. package/dist/index-Uhz2U4Dp.js +0 -84
  164. package/dist/index-Uhz2U4Dp.js.map +0 -1
@@ -1,61 +1,61 @@
1
- import { i as He, Y as X, Z as C, v as De } from "./Color.type.emb-DWdIUAm5.js";
1
+ import { i as ze, Y as X, Z as w, w as Ae } from "./Color.type.emb-De2K8PVb.js";
2
2
  const p = (r) => typeof r == "string", U = () => {
3
3
  let r, e;
4
4
  const t = new Promise((i, s) => {
5
5
  r = i, e = s;
6
6
  });
7
7
  return t.resolve = r, t.reject = e, t;
8
- }, xe = (r) => r == null ? "" : "" + r, Be = (r, e, t) => {
8
+ }, Oe = (r) => r == null ? "" : "" + r, Je = (r, e, t) => {
9
9
  r.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, ze = /###/g, be = (r) => r && r.indexOf("###") > -1 ? r.replace(ze, ".") : r, Se = (r) => !r || p(r), H = (r, e, t) => {
12
+ }, Ge = /###/g, Le = (r) => r && r.indexOf("###") > -1 ? r.replace(Ge, ".") : r, Ce = (r) => !r || p(r), B = (r, e, t) => {
13
13
  const i = p(e) ? e.split(".") : e;
14
14
  let s = 0;
15
15
  for (; s < i.length - 1; ) {
16
- if (Se(r)) return {};
17
- const n = be(i[s]);
16
+ if (Ce(r)) return {};
17
+ const n = Le(i[s]);
18
18
  !r[n] && t && (r[n] = new t()), Object.prototype.hasOwnProperty.call(r, n) ? r = r[n] : r = {}, ++s;
19
19
  }
20
- return Se(r) ? {} : {
20
+ return Ce(r) ? {} : {
21
21
  obj: r,
22
- k: be(i[s])
22
+ k: Le(i[s])
23
23
  };
24
- }, Oe = (r, e, t) => {
24
+ }, we = (r, e, t) => {
25
25
  const {
26
26
  obj: i,
27
27
  k: s
28
- } = H(r, e, Object);
28
+ } = B(r, e, Object);
29
29
  if (i !== void 0 || e.length === 1) {
30
30
  i[s] = t;
31
31
  return;
32
32
  }
33
- let n = e[e.length - 1], a = e.slice(0, e.length - 1), o = H(r, a, Object);
33
+ let n = e[e.length - 1], a = e.slice(0, e.length - 1), o = B(r, a, Object);
34
34
  for (; o.obj === void 0 && a.length; )
35
- n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o = H(r, a, Object), o != null && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
35
+ n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o = B(r, a, Object), o != null && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
36
36
  o.obj[`${o.k}.${n}`] = t;
37
- }, Je = (r, e, t, i) => {
37
+ }, qe = (r, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
41
- } = H(r, e, Object);
41
+ } = B(r, e, Object);
42
42
  s[n] = s[n] || [], s[n].push(t);
43
- }, G = (r, e) => {
43
+ }, Y = (r, e) => {
44
44
  const {
45
45
  obj: t,
46
46
  k: i
47
- } = H(r, e);
47
+ } = B(r, e);
48
48
  if (t && Object.prototype.hasOwnProperty.call(t, i))
49
49
  return t[i];
50
- }, Ye = (r, e, t) => {
51
- const i = G(r, t);
52
- return i !== void 0 ? i : G(e, t);
53
- }, Ae = (r, e, t) => {
50
+ }, We = (r, e, t) => {
51
+ const i = Y(r, t);
52
+ return i !== void 0 ? i : Y(e, t);
53
+ }, je = (r, e, t) => {
54
54
  for (const i in e)
55
- i !== "__proto__" && i !== "constructor" && (i in r ? p(r[i]) || r[i] instanceof String || p(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : Ae(r[i], e[i], t) : r[i] = e[i]);
55
+ i !== "__proto__" && i !== "constructor" && (i in r ? p(r[i]) || r[i] instanceof String || p(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : je(r[i], e[i], t) : r[i] = e[i]);
56
56
  return r;
57
- }, j = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
- var We = {
57
+ }, I = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
+ var Ye = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var We = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Ge = (r) => p(r) ? r.replace(/[&<>"'\/]/g, (e) => We[e]) : r;
67
- class _e {
66
+ const _e = (r) => p(r) ? r.replace(/[&<>"'\/]/g, (e) => Ye[e]) : r;
67
+ class Qe {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,18 +76,18 @@ class _e {
76
76
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
77
77
  }
78
78
  }
79
- const qe = [" ", ",", "?", "!", ";"], Xe = new _e(20), Qe = (r, e, t) => {
79
+ const Xe = [" ", ",", "?", "!", ";"], Ze = new Qe(20), et = (r, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = qe.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
81
+ const i = Xe.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = Xe.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
83
+ const s = Ze.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
84
84
  let n = !s.test(r);
85
85
  if (!n) {
86
86
  const a = r.indexOf(t);
87
87
  a > 0 && !s.test(r.substring(0, a)) && (n = !0);
88
88
  }
89
89
  return n;
90
- }, ne = (r, e, t = ".") => {
90
+ }, de = (r, e, t = ".") => {
91
91
  if (!r) return;
92
92
  if (r[e])
93
93
  return Object.prototype.hasOwnProperty.call(r, e) ? r[e] : void 0;
@@ -107,7 +107,7 @@ const qe = [" ", ",", "?", "!", ";"], Xe = new _e(20), Qe = (r, e, t) => {
107
107
  s = a;
108
108
  }
109
109
  return s;
110
- }, z = (r) => r == null ? void 0 : r.replace("_", "-"), Ze = {
110
+ }, J = (r) => r == null ? void 0 : r.replace("_", "-"), tt = {
111
111
  type: "logger",
112
112
  log(r) {
113
113
  this.output("log", r);
@@ -128,7 +128,7 @@ class _ {
128
128
  this.init(e, t);
129
129
  }
130
130
  init(e, t = {}) {
131
- this.prefix = t.prefix || "i18next:", this.logger = e || Ze, this.options = t, this.debug = t.debug;
131
+ this.prefix = t.prefix || "i18next:", this.logger = e || tt, this.options = t, this.debug = t.debug;
132
132
  }
133
133
  log(...e) {
134
134
  return this.forward(e, "log", "", !0);
@@ -155,8 +155,8 @@ class _ {
155
155
  return e = e || this.options, e.prefix = e.prefix || this.prefix, new _(this.logger, e);
156
156
  }
157
157
  }
158
- var N = new _();
159
- class Q {
158
+ var k = new _();
159
+ class Z {
160
160
  constructor() {
161
161
  this.observers = {};
162
162
  }
@@ -186,7 +186,7 @@ class Q {
186
186
  });
187
187
  }
188
188
  }
189
- class Le extends Q {
189
+ class ve extends Z {
190
190
  constructor(e, t = {
191
191
  ns: ["translation"],
192
192
  defaultNS: "translation"
@@ -205,15 +205,15 @@ class Le extends Q {
205
205
  const n = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
206
206
  let o;
207
207
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], i && (Array.isArray(i) ? o.push(...i) : p(i) && n ? o.push(...i.split(n)) : o.push(i)));
208
- const u = G(this.data, o);
209
- return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !a || !p(i) ? u : ne((f = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : f[t], i, n);
208
+ const u = Y(this.data, o);
209
+ return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !a || !p(i) ? u : de((f = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : f[t], i, n);
210
210
  }
211
211
  addResource(e, t, i, s, n = {
212
212
  silent: !1
213
213
  }) {
214
214
  const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
215
215
  let o = [e, t];
216
- i && (o = o.concat(a ? i.split(a) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), Oe(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
216
+ i && (o = o.concat(a ? i.split(a) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), we(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
217
217
  }
218
218
  addResources(e, t, i, s = {
219
219
  silent: !1
@@ -230,11 +230,11 @@ class Le extends Q {
230
230
  }) {
231
231
  let o = [e, t];
232
232
  e.indexOf(".") > -1 && (o = e.split("."), s = i, i = t, t = o[1]), this.addNamespaces(t);
233
- let u = G(this.data, o) || {};
234
- a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? Ae(u, i, n) : u = {
233
+ let u = Y(this.data, o) || {};
234
+ a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? je(u, i, n) : u = {
235
235
  ...u,
236
236
  ...i
237
- }, Oe(this.data, o, u), a.silent || this.emit("added", e, t, i);
237
+ }, we(this.data, o, u), a.silent || this.emit("added", e, t, i);
238
238
  }
239
239
  removeResourceBundle(e, t) {
240
240
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -256,7 +256,7 @@ class Le extends Q {
256
256
  return this.data;
257
257
  }
258
258
  }
259
- var Fe = {
259
+ var Ie = {
260
260
  processors: {},
261
261
  addPostProcessor(r) {
262
262
  this.processors[r.name] = r;
@@ -268,25 +268,25 @@ var Fe = {
268
268
  }), e;
269
269
  }
270
270
  };
271
- const Te = Symbol("i18next/PATH_KEY");
272
- function et() {
271
+ const Ee = Symbol("i18next/PATH_KEY");
272
+ function st() {
273
273
  const r = [], e = /* @__PURE__ */ Object.create(null);
274
274
  let t;
275
275
  return e.get = (i, s) => {
276
276
  var n;
277
- return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Te ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
277
+ return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Ee ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
278
278
  }, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
279
279
  }
280
- function ae(r, e) {
280
+ function he(r, e) {
281
281
  const {
282
- [Te]: t
283
- } = r(et());
282
+ [Ee]: t
283
+ } = r(st());
284
284
  return t.join((e == null ? void 0 : e.keySeparator) ?? ".");
285
285
  }
286
- const Ce = {}, te = (r) => !p(r) && typeof r != "boolean" && typeof r != "number";
287
- class q extends Q {
286
+ const Re = {}, ue = (r) => !p(r) && typeof r != "boolean" && typeof r != "number";
287
+ class Q extends Z {
288
288
  constructor(e, t = {}) {
289
- super(), Be(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = N.create("translator");
289
+ super(), Je(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = k.create("translator");
290
290
  }
291
291
  changeLanguage(e) {
292
292
  e && (this.language = e);
@@ -300,7 +300,7 @@ class q extends Q {
300
300
  if (e == null) return !1;
301
301
  const s = this.resolve(e, i);
302
302
  if ((s == null ? void 0 : s.res) === void 0) return !1;
303
- const n = te(s.res);
303
+ const n = ue(s.res);
304
304
  return !(i.returnObjects === !1 && n);
305
305
  }
306
306
  extractFromKey(e, t) {
@@ -308,7 +308,7 @@ class q extends Q {
308
308
  i === void 0 && (i = ":");
309
309
  const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
310
310
  let n = t.ns || this.options.defaultNS || [];
311
- const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Qe(e, i, s);
311
+ const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !et(e, i, s);
312
312
  if (a && !o) {
313
313
  const u = e.match(this.interpolator.nestingRegexp);
314
314
  if (u && u.length > 0)
@@ -331,7 +331,7 @@ class q extends Q {
331
331
  if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
332
332
  ...s
333
333
  }), s || (s = {}), e == null) return "";
334
- typeof e == "function" && (e = ae(e, {
334
+ typeof e == "function" && (e = he(e, {
335
335
  ...this.options,
336
336
  ...s
337
337
  })), Array.isArray(e) || (e = [String(e)]);
@@ -360,72 +360,72 @@ class q extends Q {
360
360
  } : o;
361
361
  const h = this.resolve(e, s);
362
362
  let d = h == null ? void 0 : h.res;
363
- const m = (h == null ? void 0 : h.usedKey) || o, x = (h == null ? void 0 : h.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], v = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !p(s.count), k = q.hasDefaultValue(s), J = S ? this.pluralResolver.getSuffix(c, s.count, s) : "", D = s.ordinal && S ? this.pluralResolver.getSuffix(c, s.count, {
363
+ const m = (h == null ? void 0 : h.usedKey) || o, x = (h == null ? void 0 : h.exactUsedKey) || o, R = ["[object Number]", "[object Function]", "[object RegExp]"], v = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !p(s.count), D = Q.hasDefaultValue(s), G = O ? this.pluralResolver.getSuffix(c, s.count, s) : "", F = s.ordinal && O ? this.pluralResolver.getSuffix(c, s.count, {
364
364
  ordinal: !1
365
- }) : "", V = S && !s.ordinal && s.count === 0, O = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${J}`] || s[`defaultValue${D}`] || s.defaultValue;
366
- let b = d;
367
- F && !d && k && (b = O);
368
- const Ke = te(b), Ue = Object.prototype.toString.apply(b);
369
- if (F && b && Ke && w.indexOf(Ue) < 0 && !(p(v) && Array.isArray(b))) {
365
+ }) : "", M = O && !s.ordinal && s.count === 0, L = M && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${G}`] || s[`defaultValue${F}`] || s.defaultValue;
366
+ let S = d;
367
+ A && !d && D && (S = L);
368
+ const Ue = ue(S), Be = Object.prototype.toString.apply(S);
369
+ if (A && S && Ue && R.indexOf(Be) < 0 && !(p(v) && Array.isArray(S))) {
370
370
  if (!s.returnObjects && !this.options.returnObjects) {
371
371
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
372
- const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, b, {
372
+ const $ = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, S, {
373
373
  ...s,
374
374
  ns: u
375
375
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
376
- return n ? (h.res = P, h.usedParams = this.getUsedParamsDetails(s), h) : P;
376
+ return n ? (h.res = $, h.usedParams = this.getUsedParamsDetails(s), h) : $;
377
377
  }
378
378
  if (a) {
379
- const P = Array.isArray(b), R = P ? [] : {}, pe = P ? x : m;
380
- for (const $ in b)
381
- if (Object.prototype.hasOwnProperty.call(b, $)) {
382
- const A = `${pe}${a}${$}`;
383
- k && !d ? R[$] = this.translate(A, {
379
+ const $ = Array.isArray(S), P = $ ? [] : {}, ye = $ ? x : m;
380
+ for (const N in S)
381
+ if (Object.prototype.hasOwnProperty.call(S, N)) {
382
+ const T = `${ye}${a}${N}`;
383
+ D && !d ? P[N] = this.translate(T, {
384
384
  ...s,
385
- defaultValue: te(O) ? O[$] : void 0,
385
+ defaultValue: ue(L) ? L[N] : void 0,
386
386
  joinArrays: !1,
387
387
  ns: u
388
- }) : R[$] = this.translate(A, {
388
+ }) : P[N] = this.translate(T, {
389
389
  ...s,
390
390
  joinArrays: !1,
391
391
  ns: u
392
- }), R[$] === A && (R[$] = b[$]);
392
+ }), P[N] === T && (P[N] = S[N]);
393
393
  }
394
- d = R;
394
+ d = P;
395
395
  }
396
- } else if (F && p(v) && Array.isArray(d))
396
+ } else if (A && p(v) && Array.isArray(d))
397
397
  d = d.join(v), d && (d = this.extendTranslation(d, e, s, i));
398
398
  else {
399
- let P = !1, R = !1;
400
- !this.isValidLookup(d) && k && (P = !0, d = O), this.isValidLookup(d) || (R = !0, d = o);
401
- const $ = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : d, A = k && O !== d && this.options.updateMissing;
402
- if (R || P || A) {
403
- if (this.logger.log(A ? "updateKey" : "missingKey", c, l, o, A ? O : d), a) {
404
- const L = this.resolve(o, {
399
+ let $ = !1, P = !1;
400
+ !this.isValidLookup(d) && D && ($ = !0, d = L), this.isValidLookup(d) || (P = !0, d = o);
401
+ const N = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && P ? void 0 : d, T = D && L !== d && this.options.updateMissing;
402
+ if (P || $ || T) {
403
+ if (this.logger.log(T ? "updateKey" : "missingKey", c, l, o, T ? L : d), a) {
404
+ const C = this.resolve(o, {
405
405
  ...s,
406
406
  keySeparator: !1
407
407
  });
408
- L && L.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
408
+ C && C.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
409
409
  }
410
- let M = [];
411
- const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
412
- if (this.options.saveMissingTo === "fallback" && Y && Y[0])
413
- for (let L = 0; L < Y.length; L++)
414
- M.push(Y[L]);
415
- else this.options.saveMissingTo === "all" ? M = this.languageUtils.toResolveHierarchy(s.lng || this.language) : M.push(s.lng || this.language);
416
- const ge = (L, T, K) => {
417
- var ye;
418
- const me = k && K !== d ? K : $;
419
- this.options.missingKeyHandler ? this.options.missingKeyHandler(L, l, T, me, A, s) : (ye = this.backendConnector) != null && ye.saveMissing && this.backendConnector.saveMissing(L, l, T, me, A, s), this.emit("missingKey", L, l, T, d);
410
+ let K = [];
411
+ const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
412
+ if (this.options.saveMissingTo === "fallback" && q && q[0])
413
+ for (let C = 0; C < q.length; C++)
414
+ K.push(q[C]);
415
+ else this.options.saveMissingTo === "all" ? K = this.languageUtils.toResolveHierarchy(s.lng || this.language) : K.push(s.lng || this.language);
416
+ const be = (C, j, H) => {
417
+ var Se;
418
+ const xe = D && H !== d ? H : N;
419
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, j, xe, T, s) : (Se = this.backendConnector) != null && Se.saveMissing && this.backendConnector.saveMissing(C, l, j, xe, T, s), this.emit("missingKey", C, l, j, d);
420
420
  };
421
- this.options.saveMissing && (this.options.saveMissingPlurals && S ? M.forEach((L) => {
422
- const T = this.pluralResolver.getSuffixes(L, s);
423
- V && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach((K) => {
424
- ge([L], o + K, s[`defaultValue${K}`] || O);
421
+ this.options.saveMissing && (this.options.saveMissingPlurals && O ? K.forEach((C) => {
422
+ const j = this.pluralResolver.getSuffixes(C, s);
423
+ M && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((H) => {
424
+ be([C], o + H, s[`defaultValue${H}`] || L);
425
425
  });
426
- }) : ge(M, o, O));
426
+ }) : be(K, o, L));
427
427
  }
428
- d = this.extendTranslation(d, e, s, h, i), R && d === o && this.options.appendNamespaceToMissingKey && (d = `${l}${f}${o}`), (R || P) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, P ? d : void 0, s));
428
+ d = this.extendTranslation(d, e, s, h, i), P && d === o && this.options.appendNamespaceToMissingKey && (d = `${l}${f}${o}`), (P || $) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, $ ? d : void 0, s));
429
429
  }
430
430
  return n ? (h.res = d, h.usedParams = this.getUsedParamsDetails(s), h) : d;
431
431
  }
@@ -463,7 +463,7 @@ class q extends Q {
463
463
  !i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (n == null ? void 0 : n[0]) === h[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), i)), i.interpolation && this.interpolator.reset();
464
464
  }
465
465
  const a = i.postProcess || this.options.postProcess, o = p(a) ? [a] : a;
466
- return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Fe.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
466
+ return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Ie.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
467
467
  i18nResolved: {
468
468
  ...s,
469
469
  usedParams: this.getUsedParamsDetails(i)
@@ -481,26 +481,26 @@ class q extends Q {
481
481
  this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
482
482
  const g = t.count !== void 0 && !p(t.count), h = g && !t.ordinal && t.count === 0, d = t.context !== void 0 && (p(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
483
483
  c.forEach((x) => {
484
- var w, v;
485
- this.isValidLookup(i) || (o = x, !Ce[`${m[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((v = this.utils) != null && v.hasLoadedNamespace(o)) && (Ce[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((F) => {
486
- var J;
484
+ var R, v;
485
+ this.isValidLookup(i) || (o = x, !Re[`${m[0]}-${x}`] && ((R = this.utils) != null && R.hasLoadedNamespace) && !((v = this.utils) != null && v.hasLoadedNamespace(o)) && (Re[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((A) => {
486
+ var G;
487
487
  if (this.isValidLookup(i)) return;
488
- a = F;
489
- const S = [f];
490
- if ((J = this.i18nFormat) != null && J.addLookupKeys)
491
- this.i18nFormat.addLookupKeys(S, f, F, x, t);
488
+ a = A;
489
+ const O = [f];
490
+ if ((G = this.i18nFormat) != null && G.addLookupKeys)
491
+ this.i18nFormat.addLookupKeys(O, f, A, x, t);
492
492
  else {
493
- let D;
494
- g && (D = this.pluralResolver.getSuffix(F, t.count, t));
495
- const V = `${this.options.pluralSeparator}zero`, O = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
496
- if (g && (t.ordinal && D.indexOf(O) === 0 && S.push(f + D.replace(O, this.options.pluralSeparator)), S.push(f + D), h && S.push(f + V)), d) {
497
- const b = `${f}${this.options.contextSeparator || "_"}${t.context}`;
498
- S.push(b), g && (t.ordinal && D.indexOf(O) === 0 && S.push(b + D.replace(O, this.options.pluralSeparator)), S.push(b + D), h && S.push(b + V));
493
+ let F;
494
+ g && (F = this.pluralResolver.getSuffix(A, t.count, t));
495
+ const M = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
496
+ if (g && (t.ordinal && F.indexOf(L) === 0 && O.push(f + F.replace(L, this.options.pluralSeparator)), O.push(f + F), h && O.push(f + M)), d) {
497
+ const S = `${f}${this.options.contextSeparator || "_"}${t.context}`;
498
+ O.push(S), g && (t.ordinal && F.indexOf(L) === 0 && O.push(S + F.replace(L, this.options.pluralSeparator)), O.push(S + F), h && O.push(S + M));
499
499
  }
500
500
  }
501
- let k;
502
- for (; k = S.pop(); )
503
- this.isValidLookup(i) || (n = k, i = this.getResource(F, x, k, t));
501
+ let D;
502
+ for (; D = O.pop(); )
503
+ this.isValidLookup(i) || (n = D, i = this.getResource(A, x, D, t));
504
504
  }));
505
505
  });
506
506
  }), {
@@ -541,17 +541,17 @@ class q extends Q {
541
541
  return !1;
542
542
  }
543
543
  }
544
- class ve {
544
+ class Pe {
545
545
  constructor(e) {
546
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = N.create("languageUtils");
546
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = k.create("languageUtils");
547
547
  }
548
548
  getScriptPartFromCode(e) {
549
- if (e = z(e), !e || e.indexOf("-") < 0) return null;
549
+ if (e = J(e), !e || e.indexOf("-") < 0) return null;
550
550
  const t = e.split("-");
551
551
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
552
552
  }
553
553
  getLanguagePartFromCode(e) {
554
- if (e = z(e), !e || e.indexOf("-") < 0) return e;
554
+ if (e = J(e), !e || e.indexOf("-") < 0) return e;
555
555
  const t = e.split("-");
556
556
  return this.formatLanguageCode(t[0]);
557
557
  }
@@ -605,28 +605,28 @@ class ve {
605
605
  }), s;
606
606
  }
607
607
  }
608
- const we = {
608
+ const $e = {
609
609
  zero: 0,
610
610
  one: 1,
611
611
  two: 2,
612
612
  few: 3,
613
613
  many: 4,
614
614
  other: 5
615
- }, Re = {
615
+ }, Ne = {
616
616
  select: (r) => r === 1 ? "one" : "other",
617
617
  resolvedOptions: () => ({
618
618
  pluralCategories: ["one", "other"]
619
619
  })
620
620
  };
621
- class tt {
621
+ class it {
622
622
  constructor(e, t = {}) {
623
- this.languageUtils = e, this.options = t, this.logger = N.create("pluralResolver"), this.pluralRulesCache = {};
623
+ this.languageUtils = e, this.options = t, this.logger = k.create("pluralResolver"), this.pluralRulesCache = {};
624
624
  }
625
625
  clearCache() {
626
626
  this.pluralRulesCache = {};
627
627
  }
628
628
  getRule(e, t = {}) {
629
- const i = z(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
629
+ const i = J(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
630
630
  cleanedCode: i,
631
631
  type: s
632
632
  });
@@ -639,8 +639,8 @@ class tt {
639
639
  });
640
640
  } catch {
641
641
  if (!Intl)
642
- return this.logger.error("No Intl support, please use an Intl polyfill!"), Re;
643
- if (!e.match(/-|_/)) return Re;
642
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), Ne;
643
+ if (!e.match(/-|_/)) return Ne;
644
644
  const u = this.languageUtils.getLanguagePartFromCode(e);
645
645
  a = this.getRule(u, t);
646
646
  }
@@ -655,21 +655,21 @@ class tt {
655
655
  }
656
656
  getSuffixes(e, t = {}) {
657
657
  let i = this.getRule(e, t);
658
- return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => we[s] - we[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
658
+ return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => $e[s] - $e[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
659
659
  }
660
660
  getSuffix(e, t, i = {}) {
661
661
  const s = this.getRule(e, i);
662
662
  return s ? `${this.options.prepend}${i.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, i));
663
663
  }
664
664
  }
665
- const Pe = (r, e, t, i = ".", s = !0) => {
666
- let n = Ye(r, e, t);
667
- return !n && s && p(t) && (n = ne(r, t, i), n === void 0 && (n = ne(e, t, i))), n;
668
- }, se = (r) => r.replace(/\$/g, "$$$$");
669
- class $e {
665
+ const ke = (r, e, t, i = ".", s = !0) => {
666
+ let n = We(r, e, t);
667
+ return !n && s && p(t) && (n = de(r, t, i), n === void 0 && (n = de(e, t, i))), n;
668
+ }, ce = (r) => r.replace(/\$/g, "$$$$");
669
+ class De {
670
670
  constructor(e = {}) {
671
671
  var t;
672
- this.logger = N.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(e);
672
+ this.logger = k.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(e);
673
673
  }
674
674
  init(e = {}) {
675
675
  e.interpolation || (e.interpolation = {
@@ -691,10 +691,10 @@ class $e {
691
691
  nestingSuffix: d,
692
692
  nestingSuffixEscaped: m,
693
693
  nestingOptionsSeparator: x,
694
- maxReplaces: w,
694
+ maxReplaces: R,
695
695
  alwaysFormat: v
696
696
  } = e.interpolation;
697
- this.escape = t !== void 0 ? t : Ge, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? j(n) : a || "{{", this.suffix = o ? j(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = g ? j(g) : h || j("$t("), this.nestingSuffix = d ? j(d) : m || j(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
697
+ this.escape = t !== void 0 ? t : _e, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? I(n) : a || "{{", this.suffix = o ? I(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = g ? I(g) : h || I("$t("), this.nestingSuffix = d ? I(d) : m || I(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = R || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
698
698
  }
699
699
  reset() {
700
700
  this.options && this.init(this.options);
@@ -708,15 +708,15 @@ class $e {
708
708
  let n, a, o;
709
709
  const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
710
710
  if (d.indexOf(this.formatSeparator) < 0) {
711
- const v = Pe(t, u, d, this.options.keySeparator, this.options.ignoreJSONStructure);
711
+ const v = ke(t, u, d, this.options.keySeparator, this.options.ignoreJSONStructure);
712
712
  return this.alwaysFormat ? this.format(v, void 0, i, {
713
713
  ...s,
714
714
  ...t,
715
715
  interpolationkey: d
716
716
  }) : v;
717
717
  }
718
- const m = d.split(this.formatSeparator), x = m.shift().trim(), w = m.join(this.formatSeparator).trim();
719
- return this.format(Pe(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, i, {
718
+ const m = d.split(this.formatSeparator), x = m.shift().trim(), R = m.join(this.formatSeparator).trim();
719
+ return this.format(ke(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), R, i, {
720
720
  ...s,
721
721
  ...t,
722
722
  interpolationkey: x
@@ -726,17 +726,17 @@ class $e {
726
726
  const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, c = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
727
727
  return [{
728
728
  regex: this.regexpUnescape,
729
- safeValue: (d) => se(d)
729
+ safeValue: (d) => ce(d)
730
730
  }, {
731
731
  regex: this.regexp,
732
- safeValue: (d) => this.escapeValue ? se(this.escape(d)) : se(d)
732
+ safeValue: (d) => this.escapeValue ? ce(this.escape(d)) : ce(d)
733
733
  }].forEach((d) => {
734
734
  for (o = 0; n = d.regex.exec(e); ) {
735
735
  const m = n[1].trim();
736
736
  if (a = l(m), a === void 0)
737
737
  if (typeof f == "function") {
738
- const w = f(e, n, s);
739
- a = p(w) ? w : "";
738
+ const R = f(e, n, s);
739
+ a = p(R) ? R : "";
740
740
  } else if (s && Object.prototype.hasOwnProperty.call(s, m))
741
741
  a = "";
742
742
  else if (c) {
@@ -744,7 +744,7 @@ class $e {
744
744
  continue;
745
745
  } else
746
746
  this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), a = "";
747
- else !p(a) && !this.useRawValueToEscape && (a = xe(a));
747
+ else !p(a) && !this.useRawValueToEscape && (a = Oe(a));
748
748
  const x = d.safeValue(a);
749
749
  if (e = e.replace(n[0], x), c ? (d.regex.lastIndex += a.length, d.regex.lastIndex -= n[0].length) : d.regex.lastIndex = 0, o++, o >= this.maxReplaces)
750
750
  break;
@@ -778,7 +778,7 @@ class $e {
778
778
  }, a = a.replace && !p(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
779
779
  const l = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
780
780
  if (l !== -1 && (u = s[1].slice(l).split(this.formatSeparator).map((f) => f.trim()).filter(Boolean), s[1] = s[1].slice(0, l)), n = t(o.call(this, s[1].trim(), a), a), n && s[0] === e && !p(n)) return n;
781
- p(n) || (n = xe(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((f, c) => this.format(f, c, i.lng, {
781
+ p(n) || (n = Oe(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((f, c) => this.format(f, c, i.lng, {
782
782
  ...i,
783
783
  interpolationkey: s[1].trim()
784
784
  }), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
@@ -786,7 +786,7 @@ class $e {
786
786
  return e;
787
787
  }
788
788
  }
789
- const st = (r) => {
789
+ const nt = (r) => {
790
790
  let e = r.toLowerCase().trim();
791
791
  const t = {};
792
792
  if (r.indexOf("(") > -1) {
@@ -804,7 +804,7 @@ const st = (r) => {
804
804
  formatName: e,
805
805
  formatOptions: t
806
806
  };
807
- }, Ne = (r) => {
807
+ }, Fe = (r) => {
808
808
  const e = {};
809
809
  return (t, i, s) => {
810
810
  let n = s;
@@ -814,18 +814,18 @@ const st = (r) => {
814
814
  });
815
815
  const a = i + JSON.stringify(n);
816
816
  let o = e[a];
817
- return o || (o = r(z(i), s), e[a] = o), o(t);
817
+ return o || (o = r(J(i), s), e[a] = o), o(t);
818
818
  };
819
- }, it = (r) => (e, t, i) => r(z(t), i)(e);
820
- class nt {
819
+ }, at = (r) => (e, t, i) => r(J(t), i)(e);
820
+ class rt {
821
821
  constructor(e = {}) {
822
- this.logger = N.create("formatter"), this.options = e, this.init(e);
822
+ this.logger = k.create("formatter"), this.options = e, this.init(e);
823
823
  }
824
824
  init(e, t = {
825
825
  interpolation: {}
826
826
  }) {
827
827
  this.formatSeparator = t.interpolation.formatSeparator || ",";
828
- const i = t.cacheInBuiltFormats ? Ne : it;
828
+ const i = t.cacheInBuiltFormats ? Fe : at;
829
829
  this.formats = {
830
830
  number: i((s, n) => {
831
831
  const a = new Intl.NumberFormat(s, {
@@ -864,7 +864,7 @@ class nt {
864
864
  this.formats[e.toLowerCase().trim()] = t;
865
865
  }
866
866
  addCached(e, t) {
867
- this.formats[e.toLowerCase().trim()] = Ne(t);
867
+ this.formats[e.toLowerCase().trim()] = Fe(t);
868
868
  }
869
869
  format(e, t, i, s = {}) {
870
870
  const n = t.split(this.formatSeparator);
@@ -877,7 +877,7 @@ class nt {
877
877
  const {
878
878
  formatName: l,
879
879
  formatOptions: f
880
- } = st(u);
880
+ } = nt(u);
881
881
  if (this.formats[l]) {
882
882
  let g = o;
883
883
  try {
@@ -897,13 +897,13 @@ class nt {
897
897
  }, e);
898
898
  }
899
899
  }
900
- const at = (r, e) => {
900
+ const ot = (r, e) => {
901
901
  r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
902
902
  };
903
- class rt extends Q {
903
+ class lt extends Z {
904
904
  constructor(e, t, i, s = {}) {
905
905
  var n, a;
906
- super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = N.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (a = (n = this.backend) == null ? void 0 : n.init) == null || a.call(n, i, s.backend, s);
906
+ super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = k.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (a = (n = this.backend) == null ? void 0 : n.init) == null || a.call(n, i, s.backend, s);
907
907
  }
908
908
  queueLoad(e, t, i, s) {
909
909
  const n = {}, a = {}, o = {}, u = {};
@@ -933,7 +933,7 @@ class rt extends Q {
933
933
  }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
934
934
  const o = {};
935
935
  this.queue.forEach((u) => {
936
- Je(u.loaded, [n], a), at(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
936
+ qe(u.loaded, [n], a), ot(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
937
937
  o[l] || (o[l] = {});
938
938
  const f = u.loaded[l];
939
939
  f.length && f.forEach((c) => {
@@ -1032,7 +1032,7 @@ class rt extends Q {
1032
1032
  }
1033
1033
  }
1034
1034
  }
1035
- const ie = () => ({
1035
+ const fe = () => ({
1036
1036
  debug: !1,
1037
1037
  initAsync: !0,
1038
1038
  ns: ["translation"],
@@ -1089,20 +1089,20 @@ const ie = () => ({
1089
1089
  skipOnVariables: !0
1090
1090
  },
1091
1091
  cacheInBuiltFormats: !0
1092
- }), ke = (r) => {
1092
+ }), Te = (r) => {
1093
1093
  var e, t;
1094
1094
  return p(r.ns) && (r.ns = [r.ns]), p(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), p(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
1095
1095
  }, W = () => {
1096
- }, ot = (r) => {
1096
+ }, ut = (r) => {
1097
1097
  Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
1098
1098
  typeof r[t] == "function" && (r[t] = r[t].bind(r));
1099
1099
  });
1100
1100
  };
1101
- class B extends Q {
1101
+ class z extends Z {
1102
1102
  constructor(e = {}, t) {
1103
- if (super(), this.options = ke(e), this.services = {}, this.logger = N, this.modules = {
1103
+ if (super(), this.options = Te(e), this.services = {}, this.logger = k, this.modules = {
1104
1104
  external: []
1105
- }, ot(this), t && !this.isInitialized && !e.isClone) {
1105
+ }, ut(this), t && !this.isInitialized && !e.isClone) {
1106
1106
  if (!this.options.initAsync)
1107
1107
  return this.init(e, t), this;
1108
1108
  setTimeout(() => {
@@ -1112,31 +1112,31 @@ class B extends Q {
1112
1112
  }
1113
1113
  init(e = {}, t) {
1114
1114
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (p(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1115
- const i = ie();
1115
+ const i = fe();
1116
1116
  this.options = {
1117
1117
  ...i,
1118
1118
  ...this.options,
1119
- ...ke(e)
1119
+ ...Te(e)
1120
1120
  }, this.options.interpolation = {
1121
1121
  ...i.interpolation,
1122
1122
  ...this.options.interpolation
1123
1123
  }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = i.overloadTranslationOptionHandler);
1124
1124
  const s = (l) => l ? typeof l == "function" ? new l() : l : null;
1125
1125
  if (!this.options.isClone) {
1126
- this.modules.logger ? N.init(s(this.modules.logger), this.options) : N.init(null, this.options);
1126
+ this.modules.logger ? k.init(s(this.modules.logger), this.options) : k.init(null, this.options);
1127
1127
  let l;
1128
- this.modules.formatter ? l = this.modules.formatter : l = nt;
1129
- const f = new ve(this.options);
1130
- this.store = new Le(this.options.resources, this.options);
1128
+ this.modules.formatter ? l = this.modules.formatter : l = rt;
1129
+ const f = new Pe(this.options);
1130
+ this.store = new ve(this.options.resources, this.options);
1131
1131
  const c = this.services;
1132
- c.logger = N, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new tt(f, {
1132
+ c.logger = k, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new it(f, {
1133
1133
  prepend: this.options.pluralSeparator,
1134
1134
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1135
- }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new $e(this.options), c.utils = {
1135
+ }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new De(this.options), c.utils = {
1136
1136
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1137
- }, c.backendConnector = new rt(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...d) => {
1137
+ }, c.backendConnector = new lt(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...d) => {
1138
1138
  this.emit(h, ...d);
1139
- }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new q(this.services, this.options), this.translator.on("*", (h, ...d) => {
1139
+ }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new Q(this.services, this.options), this.translator.on("*", (h, ...d) => {
1140
1140
  this.emit(h, ...d);
1141
1141
  }), this.modules.external.forEach((h) => {
1142
1142
  h.init && h.init(this);
@@ -1187,7 +1187,7 @@ class B extends Q {
1187
1187
  use(e) {
1188
1188
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1189
1189
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1190
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Fe.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1190
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ie.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1191
1191
  }
1192
1192
  setResolvedLanguage(e) {
1193
1193
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1227,10 +1227,10 @@ class B extends Q {
1227
1227
  }, u.lng = u.lng || s.lng, u.lngs = u.lngs || s.lngs, u.ns = u.ns || s.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || i || s.keyPrefix);
1228
1228
  const l = this.options.keySeparator || ".";
1229
1229
  let f;
1230
- return u.keyPrefix && Array.isArray(n) ? f = n.map((c) => (typeof c == "function" && (c = ae(c, {
1230
+ return u.keyPrefix && Array.isArray(n) ? f = n.map((c) => (typeof c == "function" && (c = he(c, {
1231
1231
  ...this.options,
1232
1232
  ...a
1233
- })), `${u.keyPrefix}${l}${c}`)) : (typeof n == "function" && (n = ae(n, {
1233
+ })), `${u.keyPrefix}${l}${c}`)) : (typeof n == "function" && (n = he(n, {
1234
1234
  ...this.options,
1235
1235
  ...a
1236
1236
  })), f = u.keyPrefix ? `${u.keyPrefix}${l}${n}` : n), this.t(f, u);
@@ -1292,12 +1292,12 @@ class B extends Q {
1292
1292
  }
1293
1293
  } catch {
1294
1294
  }
1295
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new ve(ie());
1295
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new Pe(fe());
1296
1296
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1297
1297
  }
1298
1298
  static createInstance(e = {}, t) {
1299
- const i = new B(e, t);
1300
- return i.createInstance = B.createInstance, i;
1299
+ const i = new z(e, t);
1300
+ return i.createInstance = z.createInstance, i;
1301
1301
  }
1302
1302
  cloneInstance(e = {}, t = W) {
1303
1303
  const i = e.forkResourceStore;
@@ -1306,7 +1306,7 @@ class B extends Q {
1306
1306
  ...this.options,
1307
1307
  ...e,
1308
1308
  isClone: !0
1309
- }, n = new B(s);
1309
+ }, n = new z(s);
1310
1310
  if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
1311
1311
  n[o] = this[o];
1312
1312
  }), n.services = {
@@ -1319,20 +1319,20 @@ class B extends Q {
1319
1319
  }, u[l] = Object.keys(u[l]).reduce((f, c) => (f[c] = {
1320
1320
  ...u[l][c]
1321
1321
  }, f), u[l]), u), {});
1322
- n.store = new Le(o, s), n.services.resourceStore = n.store;
1322
+ n.store = new ve(o, s), n.services.resourceStore = n.store;
1323
1323
  }
1324
1324
  if (e.interpolation) {
1325
1325
  const u = {
1326
- ...ie().interpolation,
1326
+ ...fe().interpolation,
1327
1327
  ...this.options.interpolation,
1328
1328
  ...e.interpolation
1329
1329
  }, l = {
1330
1330
  ...s,
1331
1331
  interpolation: u
1332
1332
  };
1333
- n.services.interpolator = new $e(l);
1333
+ n.services.interpolator = new De(l);
1334
1334
  }
1335
- return n.translator = new q(n.services, s), n.translator.on("*", (o, ...u) => {
1335
+ return n.translator = new Q(n.services, s), n.translator.on("*", (o, ...u) => {
1336
1336
  n.emit(o, ...u);
1337
1337
  }), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
1338
1338
  hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
@@ -1348,24 +1348,24 @@ class B extends Q {
1348
1348
  };
1349
1349
  }
1350
1350
  }
1351
- const y = B.createInstance();
1352
- y.createInstance;
1353
- y.dir;
1354
- y.init;
1355
- y.loadResources;
1356
- y.reloadResources;
1357
- y.use;
1358
- y.changeLanguage;
1359
- y.getFixedT;
1360
- y.t;
1361
- y.exists;
1362
- y.setDefaultNamespace;
1363
- y.hasLoadedNamespace;
1364
- y.loadNamespaces;
1365
- y.loadLanguages;
1366
- const ls = (r) => {
1351
+ const b = z.createInstance();
1352
+ b.createInstance;
1353
+ b.dir;
1354
+ b.init;
1355
+ b.loadResources;
1356
+ b.reloadResources;
1357
+ b.use;
1358
+ b.changeLanguage;
1359
+ b.getFixedT;
1360
+ b.t;
1361
+ b.exists;
1362
+ b.setDefaultNamespace;
1363
+ b.hasLoadedNamespace;
1364
+ b.loadNamespaces;
1365
+ b.loadLanguages;
1366
+ const hs = (r) => {
1367
1367
  var e, t;
1368
- !((e = r == null ? void 0 : r.i18n) != null && e.language) || !((t = r == null ? void 0 : r.i18n) != null && t.translations) || y.language === r.i18n.language && y.isInitialized || y.init({
1368
+ !((e = r == null ? void 0 : r.i18n) != null && e.language) || !((t = r == null ? void 0 : r.i18n) != null && t.translations) || b.language === r.i18n.language && b.isInitialized || b.init({
1369
1369
  lng: r.i18n.language,
1370
1370
  fallbackLng: "en",
1371
1371
  resources: r.i18n.translations,
@@ -1380,197 +1380,256 @@ const ls = (r) => {
1380
1380
  * This source code is licensed under the MIT license.
1381
1381
  * See the LICENSE file in the root directory of this source tree.
1382
1382
  */
1383
- const lt = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], us = He("outline", "alert-circle", "AlertCircle", lt), ut = (r, e) => {
1384
- if (!r || !r.includes("|")) return y.t(r, e);
1383
+ const ct = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], ps = ze("outline", "alert-circle", "AlertCircle", ct), ft = (r, e) => {
1384
+ if (!r || !r.includes("|")) return b.t(r, e);
1385
1385
  const [t, i] = r.split("|", 2).map((s) => s.trim());
1386
- return y.t(
1386
+ return b.t(
1387
1387
  [t, i].filter((s) => !!s),
1388
1388
  e
1389
1389
  );
1390
- }, cs = (r) => {
1390
+ }, gs = (r) => {
1391
1391
  const e = {};
1392
1392
  return Object.keys(r).forEach((t) => {
1393
1393
  const i = r[t];
1394
- e[t] = typeof i == "string" ? ut(i) : i;
1394
+ e[t] = typeof i == "string" ? ft(i) : i;
1395
1395
  }), e;
1396
- }, je = {
1396
+ }, Ve = {
1397
1397
  MARKDOWN: "Markdown",
1398
1398
  JSON: "Json"
1399
- }, re = X("DisplayFormat", {
1399
+ }, pe = X("DisplayFormat", {
1400
1400
  label: "Display format",
1401
1401
  optionLabel: (r) => r
1402
1402
  });
1403
- C(re, je.MARKDOWN);
1404
- C(re, je.JSON);
1405
- const Z = X("align", {
1403
+ w(pe, Ve.MARKDOWN);
1404
+ w(pe, Ve.JSON);
1405
+ const y = {
1406
+ second: "second",
1407
+ minute: "minute",
1408
+ hour: "hour",
1409
+ day: "day",
1410
+ week: "week",
1411
+ month: "month",
1412
+ quarter: "quarter",
1413
+ year: "year"
1414
+ }, ms = [
1415
+ { value: y.second, label: "defaults.granularityOptions.second|Second" },
1416
+ { value: y.minute, label: "defaults.granularityOptions.minute|Minute" },
1417
+ { value: y.hour, label: "defaults.granularityOptions.hour|Hour" },
1418
+ { value: y.day, label: "defaults.granularityOptions.day|Day" },
1419
+ { value: y.week, label: "defaults.granularityOptions.week|Week" },
1420
+ { value: y.month, label: "defaults.granularityOptions.month|Month" },
1421
+ { value: y.quarter, label: "defaults.granularityOptions.quarter|Quarter" },
1422
+ { value: y.year, label: "defaults.granularityOptions.year|Year" }
1423
+ ], ee = X("align", {
1406
1424
  label: "Alignment",
1407
1425
  optionLabel: (r) => r
1408
1426
  });
1409
- C(Z, "left");
1410
- C(Z, "center");
1411
- C(Z, "right");
1412
- const ee = X("tableCellStyle", {
1427
+ w(ee, "left");
1428
+ w(ee, "center");
1429
+ w(ee, "right");
1430
+ const te = X("tableCellStyle", {
1413
1431
  label: "Table cell style",
1414
1432
  optionLabel: (r) => r
1415
1433
  });
1416
- C(ee, "Bold");
1417
- C(ee, "Italic");
1418
- C(ee, "Positive vs Negative");
1419
- const ct = {
1434
+ w(te, "Bold");
1435
+ w(te, "Italic");
1436
+ w(te, "Positive vs Negative");
1437
+ const dt = {
1420
1438
  name: "number",
1421
1439
  type: "number",
1422
1440
  label: "Number"
1423
- }, ft = {
1441
+ }, ht = {
1424
1442
  name: "string",
1425
1443
  type: "string",
1426
1444
  label: "String"
1427
- }, dt = {
1445
+ }, pt = {
1428
1446
  name: "boolean",
1429
1447
  type: "boolean",
1430
1448
  label: "Boolean"
1431
- }, ht = {
1449
+ }, gt = {
1432
1450
  name: "timeRange",
1433
1451
  type: "timeRange",
1434
1452
  label: "Time range"
1435
- }, pt = {
1453
+ }, mt = {
1436
1454
  name: "width",
1437
1455
  type: "number",
1438
1456
  label: "Width",
1439
1457
  description: "You can input a number in pixels e.g. 400"
1440
- }, gt = { name: "align", type: Z, label: "Align" }, oe = { name: "prefix", type: "string", label: "Prefix" }, le = { name: "suffix", type: "string", label: "Suffix" }, ue = {
1458
+ }, yt = { name: "align", type: ee, label: "Align" }, se = { name: "prefix", type: "string", label: "Prefix" }, ie = { name: "suffix", type: "string", label: "Suffix" }, ne = {
1441
1459
  name: "displayName",
1442
1460
  type: "string",
1443
1461
  label: "Display name"
1444
- }, ce = {
1462
+ }, ae = {
1445
1463
  name: "maxCharacters",
1446
1464
  type: "number",
1447
1465
  label: "Maximum characters",
1448
1466
  description: void 0,
1449
1467
  supportedTypes: ["string"]
1450
- }, fe = {
1468
+ }, re = {
1451
1469
  name: "decimalPlaces",
1452
1470
  type: "number",
1453
1471
  label: "Decimal places",
1454
1472
  supportedTypes: ["number"]
1455
- }, de = {
1473
+ }, oe = {
1456
1474
  name: "currency",
1457
1475
  type: "string",
1458
1476
  label: "Currency",
1459
1477
  description: "e.g. EUR",
1460
1478
  supportedTypes: ["number"]
1461
- }, he = {
1479
+ }, le = {
1462
1480
  name: "abbreviateLargeNumber",
1463
1481
  type: "boolean",
1464
1482
  label: "Abbreviate large number",
1465
1483
  supportedTypes: ["number"]
1466
- }, Ie = {
1484
+ }, ge = {
1467
1485
  name: "dateBounds",
1468
1486
  type: "timeRange",
1469
1487
  label: "Date bounds",
1470
1488
  description: "Set the date range for the axis",
1471
1489
  supportedTypes: ["time"]
1472
- }, Ee = {
1490
+ }, me = {
1473
1491
  name: "granularity",
1474
1492
  type: "granularity",
1475
1493
  label: "Granularity",
1476
- supportedTypes: ["time"]
1477
- }, mt = {
1478
- type: De,
1494
+ supportedTypes: ["time"],
1495
+ defaultValue: y.day
1496
+ }, bt = {
1497
+ type: Ae,
1479
1498
  name: "color",
1480
1499
  label: "Color"
1481
- }, yt = {
1482
- type: re,
1500
+ }, xt = {
1501
+ name: "granularities",
1502
+ type: "granularity",
1503
+ label: "Granularities",
1504
+ supportedTypes: ["time"],
1505
+ array: !0,
1506
+ // Ignore seconds and minutes
1507
+ defaultValue: [
1508
+ y.hour,
1509
+ y.day,
1510
+ y.week,
1511
+ y.month,
1512
+ y.quarter,
1513
+ y.year
1514
+ ]
1515
+ }, St = {
1516
+ type: pe,
1483
1517
  name: "displayFormat",
1484
1518
  label: "Display format"
1485
- }, xt = {
1486
- type: ee,
1519
+ }, Ot = {
1520
+ type: te,
1487
1521
  name: "tableCellStyle",
1488
1522
  label: "Table cell style"
1489
- }, I = [
1523
+ }, Me = {
1524
+ type: "boolean",
1525
+ name: "showGranularityDropdown",
1526
+ label: "Show granularity dropdown",
1527
+ description: "Display a granularity selector inside the chart. The Granularity input above is used only as the default when this option is enabled.",
1528
+ supportedTypes: ["time"],
1529
+ defaultValue: !1
1530
+ }, E = [
1531
+ se,
1532
+ ie,
1533
+ ne,
1534
+ ae,
1535
+ re,
1536
+ oe,
1537
+ le
1538
+ ], Lt = [
1539
+ se,
1540
+ ie,
1541
+ ne,
1542
+ ae,
1543
+ re,
1490
1544
  oe,
1491
1545
  le,
1492
- ue,
1493
- ce,
1494
- fe,
1495
- de,
1496
- he
1497
- ], bt = [
1546
+ me,
1547
+ ge
1548
+ ], Ct = [
1549
+ se,
1550
+ ie,
1551
+ ne,
1552
+ ae,
1553
+ re,
1498
1554
  oe,
1499
1555
  le,
1500
- ue,
1501
- ce,
1502
- fe,
1503
- de,
1504
- he,
1505
- Ee,
1506
- Ie
1507
- ], fs = {
1508
- boolean: dt,
1509
- timeRange: ht,
1510
- number: ct,
1511
- string: ft,
1512
- width: pt,
1513
- align: gt,
1514
- prefix: oe,
1515
- suffix: le,
1516
- displayName: ue,
1517
- maxCharacters: ce,
1518
- decimalPlaces: fe,
1519
- currency: de,
1520
- abbreviateLargeNumber: he,
1521
- dateBounds: Ie,
1522
- granularity: Ee,
1523
- color: mt,
1524
- displayFormat: yt,
1525
- tableCellStyle: xt
1526
- }, E = X("comparisonPeriod", {
1556
+ me,
1557
+ Me,
1558
+ // Not required for now - defaults to day, week, month, quarter, year
1559
+ // granularities,
1560
+ {
1561
+ ...ge,
1562
+ description: "Set a date range or connect your primary date-range variable to define the x-axis min and max. If “Show granularity dropdown” is enabled, this also enables auto-selection of the most appropriate granularity"
1563
+ }
1564
+ ], ys = {
1565
+ boolean: pt,
1566
+ timeRange: gt,
1567
+ number: dt,
1568
+ string: ht,
1569
+ width: mt,
1570
+ align: yt,
1571
+ prefix: se,
1572
+ suffix: ie,
1573
+ displayName: ne,
1574
+ maxCharacters: ae,
1575
+ decimalPlaces: re,
1576
+ currency: oe,
1577
+ abbreviateLargeNumber: le,
1578
+ dateBounds: ge,
1579
+ granularity: me,
1580
+ granularities: xt,
1581
+ color: bt,
1582
+ displayFormat: St,
1583
+ tableCellStyle: Ot,
1584
+ showGranularityDropdown: Me
1585
+ }, V = X("comparisonPeriod", {
1527
1586
  label: "Comparison period",
1528
1587
  optionLabel: (r) => r
1529
1588
  });
1530
- C(E, "Previous period");
1531
- C(E, "Previous week");
1532
- C(E, "Previous month");
1533
- C(E, "Previous quarter");
1534
- C(E, "Previous year");
1535
- const St = {
1589
+ w(V, "Previous period");
1590
+ w(V, "Previous week");
1591
+ w(V, "Previous month");
1592
+ w(V, "Previous quarter");
1593
+ w(V, "Previous year");
1594
+ const wt = {
1536
1595
  name: "boolean",
1537
1596
  type: "boolean",
1538
1597
  label: "Boolean"
1539
- }, Ot = {
1598
+ }, vt = {
1540
1599
  name: "timeRange",
1541
1600
  type: "timeRange",
1542
1601
  label: "Time range"
1543
- }, Lt = {
1602
+ }, Rt = {
1544
1603
  name: "number",
1545
1604
  type: "number",
1546
1605
  label: "Number"
1547
- }, Ve = {
1606
+ }, Ke = {
1548
1607
  name: "string",
1549
1608
  type: "string",
1550
1609
  label: "String"
1551
- }, Ct = {
1610
+ }, Pt = {
1552
1611
  name: "title",
1553
1612
  type: "string",
1554
1613
  label: "Title",
1555
1614
  category: "Component Header"
1556
- }, vt = {
1615
+ }, $t = {
1557
1616
  name: "description",
1558
1617
  type: "string",
1559
1618
  label: "Description",
1560
1619
  category: "Component Header"
1561
- }, wt = {
1620
+ }, Nt = {
1562
1621
  name: "dataset",
1563
1622
  type: "dataset",
1564
1623
  label: "Dataset",
1565
1624
  required: !0,
1566
1625
  category: "Component Data"
1567
- }, Rt = {
1626
+ }, kt = {
1568
1627
  name: "maxLegendItems",
1569
1628
  type: "number",
1570
1629
  label: "Max legend items",
1571
1630
  defaultValue: 10,
1572
1631
  category: "Component Data"
1573
- }, Me = {
1632
+ }, He = {
1574
1633
  name: "dimension",
1575
1634
  type: "dimension",
1576
1635
  label: "Dimension",
@@ -1579,21 +1638,30 @@ const St = {
1579
1638
  },
1580
1639
  required: !0,
1581
1640
  category: "Component Data",
1582
- inputs: I
1583
- }, Pt = {
1584
- ...Me,
1641
+ inputs: E
1642
+ }, Dt = {
1643
+ ...He,
1585
1644
  name: "groupBy",
1586
1645
  label: "Group by"
1587
- }, $t = {
1646
+ }, Ft = {
1588
1647
  name: "granularity",
1589
1648
  type: "granularity",
1590
1649
  label: "Granularity"
1591
- }, Nt = {
1650
+ }, Tt = {
1592
1651
  name: "granularities",
1593
1652
  type: "granularity",
1594
1653
  label: "Granularities",
1595
- array: !0
1596
- }, kt = {
1654
+ array: !0,
1655
+ // Ignore seconds and minutes
1656
+ defaultValue: [
1657
+ y.hour,
1658
+ y.day,
1659
+ y.week,
1660
+ y.month,
1661
+ y.quarter,
1662
+ y.year
1663
+ ]
1664
+ }, At = {
1597
1665
  name: "dimensionSimple",
1598
1666
  type: "dimension",
1599
1667
  label: "Dimension",
@@ -1603,7 +1671,7 @@ const St = {
1603
1671
  },
1604
1672
  required: !0,
1605
1673
  category: "Component Data"
1606
- }, Dt = {
1674
+ }, jt = {
1607
1675
  name: "dimensionTime",
1608
1676
  type: "dimension",
1609
1677
  label: "Dimension time",
@@ -1614,7 +1682,7 @@ const St = {
1614
1682
  },
1615
1683
  required: !0,
1616
1684
  category: "Component Data"
1617
- }, At = {
1685
+ }, It = {
1618
1686
  name: "dimension",
1619
1687
  type: "dimension",
1620
1688
  label: "Dimension",
@@ -1623,8 +1691,18 @@ const St = {
1623
1691
  },
1624
1692
  required: !0,
1625
1693
  category: "Component Data",
1626
- inputs: bt
1627
- }, Ft = {
1694
+ inputs: Lt
1695
+ }, Et = {
1696
+ name: "dimension",
1697
+ type: "dimension",
1698
+ label: "Dimension",
1699
+ config: {
1700
+ dataset: "dataset"
1701
+ },
1702
+ required: !0,
1703
+ category: "Component Data",
1704
+ inputs: Ct
1705
+ }, Vt = {
1628
1706
  name: "dimensions",
1629
1707
  type: "dimension",
1630
1708
  label: "Dimensions",
@@ -1633,8 +1711,8 @@ const St = {
1633
1711
  },
1634
1712
  required: !0,
1635
1713
  category: "Component Data",
1636
- inputs: I
1637
- }, Tt = {
1714
+ inputs: E
1715
+ }, Mt = {
1638
1716
  name: "dimensionOrMeasure",
1639
1717
  type: "dimensionOrMeasure",
1640
1718
  label: "Dimension or measure",
@@ -1642,8 +1720,8 @@ const St = {
1642
1720
  dataset: "dataset"
1643
1721
  },
1644
1722
  category: "Component Data",
1645
- inputs: I
1646
- }, jt = {
1723
+ inputs: E
1724
+ }, Kt = {
1647
1725
  name: "dimensionsAndMeasures",
1648
1726
  type: "dimensionOrMeasure",
1649
1727
  label: "Dimensions and measures",
@@ -1653,8 +1731,8 @@ const St = {
1653
1731
  dataset: "dataset"
1654
1732
  },
1655
1733
  category: "Component Data",
1656
- inputs: I
1657
- }, It = {
1734
+ inputs: E
1735
+ }, Ht = {
1658
1736
  name: "measure",
1659
1737
  type: "measure",
1660
1738
  label: "Measure",
@@ -1663,8 +1741,8 @@ const St = {
1663
1741
  },
1664
1742
  required: !0,
1665
1743
  category: "Component Data",
1666
- inputs: I
1667
- }, Et = {
1744
+ inputs: E
1745
+ }, Ut = {
1668
1746
  name: "measures",
1669
1747
  type: "measure",
1670
1748
  label: "Measures",
@@ -1674,188 +1752,192 @@ const St = {
1674
1752
  },
1675
1753
  required: !0,
1676
1754
  category: "Component Data",
1677
- inputs: I
1678
- }, Vt = {
1755
+ inputs: E
1756
+ }, Bt = {
1679
1757
  name: "comparisonPeriod",
1680
- type: E,
1758
+ type: V,
1681
1759
  label: "Comparison period",
1682
1760
  category: "Component data"
1683
- }, Mt = {
1761
+ }, zt = {
1684
1762
  name: "maxResults",
1685
1763
  type: "number",
1686
1764
  label: "Max results",
1687
1765
  category: "Component Settings",
1688
1766
  defaultValue: 1e3
1689
- }, Kt = {
1767
+ }, Jt = {
1690
1768
  name: "placeholder",
1691
1769
  type: "string",
1692
1770
  label: "Placeholder",
1693
1771
  category: "Component Settings"
1694
- }, Ut = {
1772
+ }, Gt = {
1695
1773
  name: "showLegend",
1696
1774
  type: "boolean",
1697
1775
  label: "Show legend",
1698
1776
  defaultValue: !0,
1699
1777
  category: "Component Settings"
1700
- }, Ht = {
1778
+ }, qt = {
1701
1779
  name: "showTooltips",
1702
1780
  type: "boolean",
1703
1781
  label: "Show tooltips",
1704
1782
  defaultValue: !0,
1705
1783
  category: "Component Settings"
1706
- }, Bt = {
1784
+ }, Wt = {
1707
1785
  name: "showValueLabels",
1708
1786
  type: "boolean",
1709
1787
  label: "Show value labels",
1710
1788
  defaultValue: !0,
1711
1789
  category: "Component Settings"
1712
- }, zt = {
1790
+ }, Yt = {
1713
1791
  name: "showTotalLabels",
1714
1792
  type: "boolean",
1715
1793
  label: "Show total labels",
1716
1794
  defaultValue: !1,
1717
1795
  category: "Component Settings"
1718
- }, Jt = {
1796
+ }, _t = {
1719
1797
  name: "showLogarithmicScale",
1720
1798
  type: "boolean",
1721
1799
  label: "Show logarithmic scale",
1722
1800
  defaultValue: !1,
1723
1801
  category: "Component Settings"
1724
- }, Yt = {
1802
+ }, Qt = {
1725
1803
  name: "displayPercentages",
1726
1804
  type: "boolean",
1727
1805
  label: "Display percentages",
1728
1806
  defaultValue: !1,
1729
1807
  category: "Component Settings"
1730
- }, Wt = {
1731
- type: De,
1808
+ }, Xt = {
1809
+ type: Ae,
1732
1810
  name: "color",
1733
1811
  label: "Color",
1734
1812
  category: "Component Settings"
1735
- }, Gt = {
1813
+ }, Zt = {
1736
1814
  type: "number",
1737
1815
  name: "fontSize",
1738
1816
  label: "Font size",
1739
1817
  category: "Component Settings"
1740
- }, _t = {
1818
+ }, es = {
1741
1819
  type: "boolean",
1742
1820
  name: "clearable",
1743
1821
  label: "Can be cleared",
1744
1822
  defaultValue: !0,
1745
1823
  category: "Component Settings"
1746
- }, qt = {
1747
- ...Ve,
1824
+ }, ts = {
1825
+ ...Ke,
1748
1826
  name: "displayNullAs",
1749
1827
  label: "Display null as",
1750
1828
  category: "Component Settings"
1751
- }, Xt = {
1829
+ }, ss = {
1752
1830
  name: "xAxisLabel",
1753
1831
  type: "string",
1754
1832
  label: "X-axis Label",
1755
1833
  category: "Axes Settings"
1756
- }, Qt = {
1834
+ }, is = {
1757
1835
  name: "yAxisLabel",
1758
1836
  type: "string",
1759
1837
  label: "Y-axis label",
1760
1838
  category: "Axes Settings"
1761
- }, Zt = {
1839
+ }, ns = {
1762
1840
  name: "reverseXAxis",
1763
1841
  type: "boolean",
1764
1842
  label: "Reverse x-axis",
1765
1843
  defaultValue: !1,
1766
1844
  category: "Axes Settings"
1767
- }, es = {
1845
+ }, as = {
1768
1846
  name: "reverseYAxis",
1769
1847
  type: "boolean",
1770
1848
  label: "Reverse y-axis",
1771
1849
  defaultValue: !1,
1772
1850
  category: "Axes Settings"
1773
- }, ts = {
1851
+ }, rs = {
1774
1852
  name: "yAxisRangeMin",
1775
1853
  type: "number",
1776
1854
  label: "Y-axis range min",
1777
1855
  category: "Axes Settings"
1778
- }, ss = {
1856
+ }, os = {
1779
1857
  name: "yAxisRangeMax",
1780
1858
  type: "number",
1781
1859
  label: "Y-axis range max",
1782
1860
  category: "Axes Settings"
1783
- }, is = {
1861
+ }, ls = {
1784
1862
  name: "xAxisRangeMin",
1785
1863
  type: "number",
1786
1864
  label: "X-axis range min",
1787
1865
  category: "Axes Settings"
1788
- }, ns = {
1866
+ }, us = {
1789
1867
  name: "xAxisRangeMax",
1790
1868
  type: "number",
1791
1869
  label: "X-axis range max",
1792
1870
  category: "Axes Settings"
1793
- }, as = {
1871
+ }, cs = {
1794
1872
  name: "xAxisMaxItems",
1795
1873
  type: "number",
1796
1874
  label: "Max x-axis items",
1797
1875
  category: "Axes Settings"
1798
- }, rs = {
1876
+ }, fs = {
1799
1877
  name: "yAxisMaxItems",
1800
1878
  type: "number",
1801
1879
  label: "Max y-axis items",
1802
1880
  category: "Axes Settings"
1803
- }, ds = {
1804
- boolean: St,
1805
- timeRange: Ot,
1806
- number: Lt,
1807
- string: Ve,
1808
- title: Ct,
1809
- description: vt,
1810
- dataset: wt,
1811
- maxLegendItems: Rt,
1812
- dimension: Me,
1813
- groupBy: Pt,
1814
- dimensionSimple: kt,
1815
- dimensionTime: Dt,
1816
- dimensionWithDateBounds: At,
1817
- dimensions: Ft,
1818
- dimensionOrMeasure: Tt,
1819
- dimensionsAndMeasures: jt,
1820
- measure: It,
1821
- measures: Et,
1822
- comparisonPeriod: Vt,
1823
- maxResults: Mt,
1824
- placeholder: Kt,
1825
- showLegend: Ut,
1826
- showTooltips: Ht,
1827
- showValueLabels: Bt,
1828
- showTotalLabels: zt,
1829
- showLogarithmicScale: Jt,
1830
- displayPercentages: Yt,
1831
- color: Wt,
1832
- fontSize: Gt,
1833
- clearable: _t,
1834
- displayNullAs: qt,
1835
- xAxisLabel: Xt,
1836
- yAxisLabel: Qt,
1837
- reverseXAxis: Zt,
1838
- reverseYAxis: es,
1839
- yAxisRangeMin: ts,
1840
- yAxisRangeMax: ss,
1841
- xAxisRangeMin: is,
1842
- xAxisRangeMax: ns,
1843
- xAxisMaxItems: as,
1844
- yAxisMaxItems: rs,
1845
- granularity: $t,
1846
- granularities: Nt
1881
+ }, bs = {
1882
+ boolean: wt,
1883
+ timeRange: vt,
1884
+ number: Rt,
1885
+ string: Ke,
1886
+ title: Pt,
1887
+ description: $t,
1888
+ dataset: Nt,
1889
+ maxLegendItems: kt,
1890
+ dimension: He,
1891
+ groupBy: Dt,
1892
+ dimensionSimple: At,
1893
+ dimensionTime: jt,
1894
+ dimensionWithDateBounds: It,
1895
+ dimensionWithGranularitySelectField: Et,
1896
+ dimensions: Vt,
1897
+ dimensionOrMeasure: Mt,
1898
+ dimensionsAndMeasures: Kt,
1899
+ measure: Ht,
1900
+ measures: Ut,
1901
+ comparisonPeriod: Bt,
1902
+ maxResults: zt,
1903
+ placeholder: Jt,
1904
+ showLegend: Gt,
1905
+ showTooltips: qt,
1906
+ showValueLabels: Wt,
1907
+ showTotalLabels: Yt,
1908
+ showLogarithmicScale: _t,
1909
+ displayPercentages: Qt,
1910
+ color: Xt,
1911
+ fontSize: Zt,
1912
+ clearable: es,
1913
+ displayNullAs: ts,
1914
+ xAxisLabel: ss,
1915
+ yAxisLabel: is,
1916
+ reverseXAxis: ns,
1917
+ reverseYAxis: as,
1918
+ yAxisRangeMin: rs,
1919
+ yAxisRangeMax: os,
1920
+ xAxisRangeMin: ls,
1921
+ xAxisRangeMax: us,
1922
+ xAxisMaxItems: cs,
1923
+ yAxisMaxItems: fs,
1924
+ granularity: Ft,
1925
+ granularities: Tt
1847
1926
  };
1848
1927
  export {
1849
- E as C,
1850
- je as D,
1851
- us as I,
1852
- ls as a,
1853
- ds as b,
1854
- ut as c,
1855
- I as d,
1856
- y as i,
1857
- cs as r,
1858
- fs as s,
1859
- bt as t
1928
+ V as C,
1929
+ Ve as D,
1930
+ y as G,
1931
+ ps as I,
1932
+ hs as a,
1933
+ bs as b,
1934
+ Ct as c,
1935
+ E as d,
1936
+ ft as e,
1937
+ ms as f,
1938
+ b as i,
1939
+ gs as r,
1940
+ ys as s,
1941
+ Lt as t
1860
1942
  };
1861
- //# sourceMappingURL=component.inputs.constants-DO_jX-yc.js.map
1943
+ //# sourceMappingURL=component.inputs.constants-wDyG8tFg.js.map