@embeddable.com/remarkable-pro 0.1.12 → 0.1.14

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 (335) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +10 -73
  2. package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
  3. package/dist/BarChartDefaultPro.js +6 -78
  4. package/dist/BarChartDefaultPro.js.map +1 -1
  5. package/dist/BarChartGroupedHorizontalPro.js +10 -79
  6. package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
  7. package/dist/BarChartGroupedPro.js +6 -79
  8. package/dist/BarChartGroupedPro.js.map +1 -1
  9. package/dist/BarChartStackedHorizontalPro.js +10 -80
  10. package/dist/BarChartStackedHorizontalPro.js.map +1 -1
  11. package/dist/BarChartStackedPro.js +6 -80
  12. package/dist/BarChartStackedPro.js.map +1 -1
  13. package/dist/{ChartCard-BO7MZwqM.js → ChartCard-rrXP6aUC.js} +22 -22
  14. package/dist/{ChartCard-BO7MZwqM.js.map → ChartCard-rrXP6aUC.js.map} +1 -1
  15. package/dist/{Color.type.emb-Bon3x9VC.js → Color.type.emb-BBdbJHvt.js} +51 -51
  16. package/dist/{Color.type.emb-Bon3x9VC.js.map → Color.type.emb-BBdbJHvt.js.map} +1 -1
  17. package/dist/ColorEditor.js +2 -2
  18. package/dist/ComparisonPeriodSelectFieldPro.js +10 -63
  19. package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
  20. package/dist/DateRangePickerCustomPro.js +10 -67
  21. package/dist/DateRangePickerCustomPro.js.map +1 -1
  22. package/dist/DateRangeSelectFieldPro.js +9 -74
  23. package/dist/DateRangeSelectFieldPro.js.map +1 -1
  24. package/dist/{DimensionAndMeasureSingleSelectField-QEeHTJvQ.js → DimensionAndMeasureSingleSelectField-CuDSeRWL.js} +3 -3
  25. package/dist/{DimensionAndMeasureSingleSelectField-QEeHTJvQ.js.map → DimensionAndMeasureSingleSelectField-CuDSeRWL.js.map} +1 -1
  26. package/dist/DimensionSingleSelectFieldPro.js +10 -69
  27. package/dist/DimensionSingleSelectFieldPro.js.map +1 -1
  28. package/dist/DonutChartPro.js +6 -57
  29. package/dist/DonutChartPro.js.map +1 -1
  30. package/dist/DonutLabelChartPro.js +6 -81
  31. package/dist/DonutLabelChartPro.js.map +1 -1
  32. package/dist/{EditorCard-BxYVJiPi.js → EditorCard-drvq5XVw.js} +9 -9
  33. package/dist/{EditorCard-BxYVJiPi.js.map → EditorCard-drvq5XVw.js.map} +1 -1
  34. package/dist/EmptyBlockPro.js +5 -7
  35. package/dist/EmptyBlockPro.js.map +1 -1
  36. package/dist/{GranularitySelectField-D8f7LLe4.js → GranularitySelectField-DhmzFuG_.js} +4 -4
  37. package/dist/{GranularitySelectField-D8f7LLe4.js.map → GranularitySelectField-DhmzFuG_.js.map} +1 -1
  38. package/dist/GranularitySelectFieldPro.js +10 -81
  39. package/dist/GranularitySelectFieldPro.js.map +1 -1
  40. package/dist/HeatMapPro.js +6 -101
  41. package/dist/HeatMapPro.js.map +1 -1
  42. package/dist/HorizontalDividerPro.js +6 -6
  43. package/dist/{IconCalendarFilled-D8K6d94f.js → IconCalendarFilled-BaJZAzU-.js} +3 -3
  44. package/dist/{IconCalendarFilled-D8K6d94f.js.map → IconCalendarFilled-BaJZAzU-.js.map} +1 -1
  45. package/dist/KpiChartNumberComparisonPro.js +10 -101
  46. package/dist/KpiChartNumberComparisonPro.js.map +1 -1
  47. package/dist/KpiChartNumberPro.js +6 -37
  48. package/dist/KpiChartNumberPro.js.map +1 -1
  49. package/dist/LineChartComparisonDefaultPro.js +10 -172
  50. package/dist/LineChartComparisonDefaultPro.js.map +1 -1
  51. package/dist/LineChartDefaultPro.js +6 -94
  52. package/dist/LineChartDefaultPro.js.map +1 -1
  53. package/dist/LineChartGroupedPro.js +6 -97
  54. package/dist/LineChartGroupedPro.js.map +1 -1
  55. package/dist/MeasureSingleSelectFieldPro.js +10 -69
  56. package/dist/MeasureSingleSelectFieldPro.js.map +1 -1
  57. package/dist/MultiSelectFieldPro.js +6 -98
  58. package/dist/MultiSelectFieldPro.js.map +1 -1
  59. package/dist/PieChartPro.js +6 -57
  60. package/dist/PieChartPro.js.map +1 -1
  61. package/dist/PivotTablePro.js +6 -119
  62. package/dist/PivotTablePro.js.map +1 -1
  63. package/dist/SingleSelectFieldPro.js +6 -99
  64. package/dist/SingleSelectFieldPro.js.map +1 -1
  65. package/dist/TableChartPaginated.js +6 -135
  66. package/dist/TableChartPaginated.js.map +1 -1
  67. package/dist/TableScrollable.js +6 -115
  68. package/dist/TableScrollable.js.map +1 -1
  69. package/dist/{bars.utils-Cg5WRRVr.js → bars.utils-KAfWV1-z.js} +4 -4
  70. package/dist/{bars.utils-Cg5WRRVr.js.map → bars.utils-KAfWV1-z.js.map} +1 -1
  71. package/dist/charts.fillGaps.hooks-CZW4DsTE.js +70 -0
  72. package/dist/charts.fillGaps.hooks-CZW4DsTE.js.map +1 -0
  73. package/dist/{charts.utils-rBg2kZLJ.js → charts.utils-DqZruys0.js} +4 -4
  74. package/dist/{charts.utils-rBg2kZLJ.js.map → charts.utils-DqZruys0.js.map} +1 -1
  75. package/dist/{component.inputs.constants-DX8nFR6c.js → component.inputs.constants-DqFfoZ5R.js} +146 -146
  76. package/dist/component.inputs.constants-DqFfoZ5R.js.map +1 -0
  77. package/dist/{component.utils-DubLDCwF.js → component.utils-DNw0iugA.js} +413 -413
  78. package/dist/component.utils-DNw0iugA.js.map +1 -0
  79. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/BarChartDefaultHorizontalPro.emb.d.ts +13 -7
  80. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/BarChartDefaultHorizontalPro.emb.d.ts.map +1 -1
  81. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/definition.d.ts +308 -0
  82. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/definition.d.ts.map +1 -0
  83. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts +1 -1
  84. package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts.map +1 -1
  85. package/dist/components/charts/bars/BarChartDefaultPro/BarChartDefaultPro.emb.d.ts +7 -7
  86. package/dist/components/charts/bars/BarChartDefaultPro/BarChartDefaultPro.emb.d.ts.map +1 -1
  87. package/dist/components/charts/bars/BarChartDefaultPro/definition.d.ts +308 -0
  88. package/dist/components/charts/bars/BarChartDefaultPro/definition.d.ts.map +1 -0
  89. package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts +1 -1
  90. package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts.map +1 -1
  91. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/BarChartGroupedHorizontalPro.emb.d.ts +7 -7
  92. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/BarChartGroupedHorizontalPro.emb.d.ts.map +1 -1
  93. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/definition.d.ts +321 -0
  94. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/definition.d.ts.map +1 -0
  95. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts +1 -1
  96. package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts.map +1 -1
  97. package/dist/components/charts/bars/BarChartGroupedPro/BarChartGroupedPro.emb.d.ts +7 -7
  98. package/dist/components/charts/bars/BarChartGroupedPro/BarChartGroupedPro.emb.d.ts.map +1 -1
  99. package/dist/components/charts/bars/BarChartGroupedPro/definition.d.ts +321 -0
  100. package/dist/components/charts/bars/BarChartGroupedPro/definition.d.ts.map +1 -0
  101. package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts +1 -1
  102. package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts.map +1 -1
  103. package/dist/components/charts/bars/BarChartStackedHorizontalPro/BarChartStackedHorizontalPro.emb.d.ts +7 -7
  104. package/dist/components/charts/bars/BarChartStackedHorizontalPro/BarChartStackedHorizontalPro.emb.d.ts.map +1 -1
  105. package/dist/components/charts/bars/BarChartStackedHorizontalPro/definition.d.ts +334 -0
  106. package/dist/components/charts/bars/BarChartStackedHorizontalPro/definition.d.ts.map +1 -0
  107. package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts +1 -1
  108. package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts.map +1 -1
  109. package/dist/components/charts/bars/BarChartStackedPro/BarChartStackedPro.emb.d.ts +7 -7
  110. package/dist/components/charts/bars/BarChartStackedPro/BarChartStackedPro.emb.d.ts.map +1 -1
  111. package/dist/components/charts/bars/BarChartStackedPro/definition.d.ts +334 -0
  112. package/dist/components/charts/bars/BarChartStackedPro/definition.d.ts.map +1 -0
  113. package/dist/components/charts/bars/BarChartStackedPro/index.d.ts +1 -1
  114. package/dist/components/charts/bars/BarChartStackedPro/index.d.ts.map +1 -1
  115. package/dist/components/charts/charts.fillGaps.hooks.d.ts.map +1 -1
  116. package/dist/components/charts/kpis/KpiChartNumberComparisonPro/KpiChartNumberComparisonPro.emb.d.ts +7 -7
  117. package/dist/components/charts/kpis/KpiChartNumberComparisonPro/KpiChartNumberComparisonPro.emb.d.ts.map +1 -1
  118. package/dist/components/charts/kpis/KpiChartNumberComparisonPro/definition.d.ts +255 -0
  119. package/dist/components/charts/kpis/KpiChartNumberComparisonPro/definition.d.ts.map +1 -0
  120. package/dist/components/charts/kpis/KpiChartNumberPro/KpiChartNumberPro.emb.d.ts +7 -7
  121. package/dist/components/charts/kpis/KpiChartNumberPro/KpiChartNumberPro.emb.d.ts.map +1 -1
  122. package/dist/components/charts/kpis/KpiChartNumberPro/definition.d.ts +138 -0
  123. package/dist/components/charts/kpis/KpiChartNumberPro/definition.d.ts.map +1 -0
  124. package/dist/components/charts/lines/LineChartComparisonDefaultPro/LineChartComparisonDefaultPro.emb.d.ts +7 -7
  125. package/dist/components/charts/lines/LineChartComparisonDefaultPro/LineChartComparisonDefaultPro.emb.d.ts.map +1 -1
  126. package/dist/components/charts/lines/LineChartComparisonDefaultPro/definition.d.ts +437 -0
  127. package/dist/components/charts/lines/LineChartComparisonDefaultPro/definition.d.ts.map +1 -0
  128. package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts +1 -1
  129. package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts.map +1 -1
  130. package/dist/components/charts/lines/LineChartDefaultPro/LineChartDefaultPro.emb.d.ts +7 -7
  131. package/dist/components/charts/lines/LineChartDefaultPro/LineChartDefaultPro.emb.d.ts.map +1 -1
  132. package/dist/components/charts/lines/LineChartDefaultPro/definition.d.ts +322 -0
  133. package/dist/components/charts/lines/LineChartDefaultPro/definition.d.ts.map +1 -0
  134. package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts +3 -3
  135. package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts.map +1 -1
  136. package/dist/components/charts/lines/LineChartGroupedPro/LineChartGroupedPro.emb.d.ts +7 -7
  137. package/dist/components/charts/lines/LineChartGroupedPro/LineChartGroupedPro.emb.d.ts.map +1 -1
  138. package/dist/components/charts/lines/LineChartGroupedPro/definition.d.ts +341 -0
  139. package/dist/components/charts/lines/LineChartGroupedPro/definition.d.ts.map +1 -0
  140. package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts +1 -1
  141. package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts.map +1 -1
  142. package/dist/components/charts/pies/DonutChartPro/DonutChartPro.emb.d.ts +7 -7
  143. package/dist/components/charts/pies/DonutChartPro/DonutChartPro.emb.d.ts.map +1 -1
  144. package/dist/components/charts/pies/DonutChartPro/definition.d.ts +212 -0
  145. package/dist/components/charts/pies/DonutChartPro/definition.d.ts.map +1 -0
  146. package/dist/components/charts/pies/DonutLabelChartPro/DonutLabelChartPro.emb.d.ts +7 -7
  147. package/dist/components/charts/pies/DonutLabelChartPro/DonutLabelChartPro.emb.d.ts.map +1 -1
  148. package/dist/components/charts/pies/DonutLabelChartPro/definition.d.ts +260 -0
  149. package/dist/components/charts/pies/DonutLabelChartPro/definition.d.ts.map +1 -0
  150. package/dist/components/charts/pies/PieChartPro/PieChartPro.emb.d.ts +7 -7
  151. package/dist/components/charts/pies/PieChartPro/PieChartPro.emb.d.ts.map +1 -1
  152. package/dist/components/charts/pies/PieChartPro/definition.d.ts +212 -0
  153. package/dist/components/charts/pies/PieChartPro/definition.d.ts.map +1 -0
  154. package/dist/components/charts/tables/HeatMapPro/HeatMapPro.emb.d.ts +8 -10
  155. package/dist/components/charts/tables/HeatMapPro/HeatMapPro.emb.d.ts.map +1 -1
  156. package/dist/components/charts/tables/HeatMapPro/definition.d.ts +273 -0
  157. package/dist/components/charts/tables/HeatMapPro/definition.d.ts.map +1 -0
  158. package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
  159. package/dist/components/charts/tables/PivotTablePro/PivotTablePro.emb.d.ts +7 -10
  160. package/dist/components/charts/tables/PivotTablePro/PivotTablePro.emb.d.ts.map +1 -1
  161. package/dist/components/charts/tables/PivotTablePro/definition.d.ts +278 -0
  162. package/dist/components/charts/tables/PivotTablePro/definition.d.ts.map +1 -0
  163. package/dist/components/charts/tables/PivotTablePro/index.d.ts.map +1 -1
  164. package/dist/components/charts/tables/TableChartPaginated/TableChartPaginated.emb.d.ts +7 -7
  165. package/dist/components/charts/tables/TableChartPaginated/TableChartPaginated.emb.d.ts.map +1 -1
  166. package/dist/components/charts/tables/TableChartPaginated/definition.d.ts +254 -0
  167. package/dist/components/charts/tables/TableChartPaginated/definition.d.ts.map +1 -0
  168. package/dist/components/charts/tables/TableScrollable/TableScrollable.emb.d.ts +7 -7
  169. package/dist/components/charts/tables/TableScrollable/TableScrollable.emb.d.ts.map +1 -1
  170. package/dist/components/charts/tables/TableScrollable/definition.d.ts +244 -0
  171. package/dist/components/charts/tables/TableScrollable/definition.d.ts.map +1 -0
  172. package/dist/components/charts/utils/granularity.utils.d.ts +1 -11
  173. package/dist/components/charts/utils/granularity.utils.d.ts.map +1 -1
  174. package/dist/components/component.inputs.constants.d.ts +2 -10
  175. package/dist/components/component.inputs.constants.d.ts.map +1 -1
  176. package/dist/components/editors/ComparisonPeriodSelectFieldPro/ComparisonPeriodSelectFieldPro.emb.d.ts +7 -7
  177. package/dist/components/editors/ComparisonPeriodSelectFieldPro/ComparisonPeriodSelectFieldPro.emb.d.ts.map +1 -1
  178. package/dist/components/editors/ComparisonPeriodSelectFieldPro/definition.d.ts +209 -0
  179. package/dist/components/editors/ComparisonPeriodSelectFieldPro/definition.d.ts.map +1 -0
  180. package/dist/components/editors/DimensionSingleSelectFieldPro/DimensionSingleSelectFieldPro.emb.d.ts +8 -12
  181. package/dist/components/editors/DimensionSingleSelectFieldPro/DimensionSingleSelectFieldPro.emb.d.ts.map +1 -1
  182. package/dist/components/editors/DimensionSingleSelectFieldPro/definition.d.ts +201 -0
  183. package/dist/components/editors/DimensionSingleSelectFieldPro/definition.d.ts.map +1 -0
  184. package/dist/components/editors/GranularitySelectFieldPro/GranularitySelectFieldPro.emb.d.ts +7 -7
  185. package/dist/components/editors/GranularitySelectFieldPro/GranularitySelectFieldPro.emb.d.ts.map +1 -1
  186. package/dist/components/editors/GranularitySelectFieldPro/definition.d.ts +175 -0
  187. package/dist/components/editors/GranularitySelectFieldPro/definition.d.ts.map +1 -0
  188. package/dist/components/editors/MeasureSingleSelectFieldPro/MeasureSingleSelectFieldPro.emb.d.ts +8 -12
  189. package/dist/components/editors/MeasureSingleSelectFieldPro/MeasureSingleSelectFieldPro.emb.d.ts.map +1 -1
  190. package/dist/components/editors/MeasureSingleSelectFieldPro/definition.d.ts +201 -0
  191. package/dist/components/editors/MeasureSingleSelectFieldPro/definition.d.ts.map +1 -0
  192. package/dist/components/editors/MultiSelectFieldPro/MultiSelectFieldPro.emb.d.ts +7 -7
  193. package/dist/components/editors/MultiSelectFieldPro/MultiSelectFieldPro.emb.d.ts.map +1 -1
  194. package/dist/components/editors/MultiSelectFieldPro/definition.d.ts +232 -0
  195. package/dist/components/editors/MultiSelectFieldPro/definition.d.ts.map +1 -0
  196. package/dist/components/editors/SingleSelectFieldPro/SingleSelectFieldPro.emb.d.ts +7 -7
  197. package/dist/components/editors/SingleSelectFieldPro/SingleSelectFieldPro.emb.d.ts.map +1 -1
  198. package/dist/components/editors/SingleSelectFieldPro/definition.d.ts +228 -0
  199. package/dist/components/editors/SingleSelectFieldPro/definition.d.ts.map +1 -0
  200. package/dist/components/editors/dates/DateRangePickerCustomPro/DateRangePickerCustomPro.emb.d.ts +7 -7
  201. package/dist/components/editors/dates/DateRangePickerCustomPro/DateRangePickerCustomPro.emb.d.ts.map +1 -1
  202. package/dist/components/editors/dates/DateRangePickerCustomPro/definition.d.ts +168 -0
  203. package/dist/components/editors/dates/DateRangePickerCustomPro/definition.d.ts.map +1 -0
  204. package/dist/components/editors/dates/DateRangePickerPresetsPro/DateRangeSelectFieldPro.emb.d.ts +7 -7
  205. package/dist/components/editors/dates/DateRangePickerPresetsPro/DateRangeSelectFieldPro.emb.d.ts.map +1 -1
  206. package/dist/components/editors/dates/DateRangePickerPresetsPro/definition.d.ts +181 -0
  207. package/dist/components/editors/dates/DateRangePickerPresetsPro/definition.d.ts.map +1 -0
  208. package/dist/components/shared/EmptyContainerPro/EmptyBlockPro.emb.d.ts.map +1 -1
  209. package/dist/definition-5X_7D7PB.js +274 -0
  210. package/dist/definition-5X_7D7PB.js.map +1 -0
  211. package/dist/definition-B1JPVIaV.js +200 -0
  212. package/dist/definition-B1JPVIaV.js.map +1 -0
  213. package/dist/definition-B8pymNp8.js +159 -0
  214. package/dist/definition-B8pymNp8.js.map +1 -0
  215. package/dist/definition-BNiUf3pa.js +198 -0
  216. package/dist/definition-BNiUf3pa.js.map +1 -0
  217. package/dist/definition-BcQzo4D5.js +161 -0
  218. package/dist/definition-BcQzo4D5.js.map +1 -0
  219. package/dist/definition-Boah9FmY.js +170 -0
  220. package/dist/definition-Boah9FmY.js.map +1 -0
  221. package/dist/definition-BvNvRUNa.js +258 -0
  222. package/dist/definition-BvNvRUNa.js.map +1 -0
  223. package/dist/definition-Bzfn9qRU.js +105 -0
  224. package/dist/definition-Bzfn9qRU.js.map +1 -0
  225. package/dist/definition-C0bSa4wt.js +78 -0
  226. package/dist/definition-C0bSa4wt.js.map +1 -0
  227. package/dist/definition-C3bUC419.js +276 -0
  228. package/dist/definition-C3bUC419.js.map +1 -0
  229. package/dist/definition-C7o_MYiT.js +514 -0
  230. package/dist/definition-C7o_MYiT.js.map +1 -0
  231. package/dist/definition-CPlHt0VT.js +130 -0
  232. package/dist/definition-CPlHt0VT.js.map +1 -0
  233. package/dist/definition-CRo-ay8-.js +95 -0
  234. package/dist/definition-CRo-ay8-.js.map +1 -0
  235. package/dist/definition-D1ImuDYw.js +121 -0
  236. package/dist/definition-D1ImuDYw.js.map +1 -0
  237. package/dist/definition-D7mkYIUq.js +560 -0
  238. package/dist/definition-D7mkYIUq.js.map +1 -0
  239. package/dist/definition-DGu0W1N5.js +129 -0
  240. package/dist/definition-DGu0W1N5.js.map +1 -0
  241. package/dist/definition-DK_Of-Gy.js +159 -0
  242. package/dist/definition-DK_Of-Gy.js.map +1 -0
  243. package/dist/definition-DKxaARfb.js +197 -0
  244. package/dist/definition-DKxaARfb.js.map +1 -0
  245. package/dist/definition-DVZj79R-.js +172 -0
  246. package/dist/definition-DVZj79R-.js.map +1 -0
  247. package/dist/definition-Db_zvoxg.js +95 -0
  248. package/dist/definition-Db_zvoxg.js.map +1 -0
  249. package/dist/definition-DlXlQNWS.js +108 -0
  250. package/dist/definition-DlXlQNWS.js.map +1 -0
  251. package/dist/definition-DpxkZ7BE.js +174 -0
  252. package/dist/definition-DpxkZ7BE.js.map +1 -0
  253. package/dist/definition-KVzTbAIw.js +123 -0
  254. package/dist/definition-KVzTbAIw.js.map +1 -0
  255. package/dist/definition-MJqJAv-G.js +254 -0
  256. package/dist/definition-MJqJAv-G.js.map +1 -0
  257. package/dist/definition-MqJ_B4_d.js +123 -0
  258. package/dist/definition-MqJ_B4_d.js.map +1 -0
  259. package/dist/definition-pGb2HvrT.js +172 -0
  260. package/dist/definition-pGb2HvrT.js.map +1 -0
  261. package/dist/embeddable-components.json +40 -40
  262. package/dist/embeddable-theme-0137e.js +1459 -1459
  263. package/dist/{granularity.utils-B0IaQ58A.js → granularity.utils-DFrZaG56.js} +3 -3
  264. package/dist/{granularity.utils-B0IaQ58A.js.map → granularity.utils-DFrZaG56.js.map} +1 -1
  265. package/dist/{index-C7J2Se__.js → index-CshK_PzU.js} +2 -2
  266. package/dist/{index-C7J2Se__.js.map → index-CshK_PzU.js.map} +1 -1
  267. package/dist/index.d.ts +27 -1
  268. package/dist/index.d.ts.map +1 -1
  269. package/dist/index.js +161 -133
  270. package/dist/{pies.utils-vTQtc_xP.js → pies.utils-C8bEmCaz.js} +5 -5
  271. package/dist/{pies.utils-vTQtc_xP.js.map → pies.utils-C8bEmCaz.js.map} +1 -1
  272. package/dist/{preview.data.constants-BeVHkWI3.js → preview.data.constants-D0uQPYd1.js} +16 -16
  273. package/dist/{preview.data.constants-BeVHkWI3.js.map → preview.data.constants-D0uQPYd1.js.map} +1 -1
  274. package/dist/{tables.utils-DS3rr8kb.js → tables.utils-t7VvK_RS.js} +5 -5
  275. package/dist/tables.utils-t7VvK_RS.js.map +1 -0
  276. package/dist/{timeRange.utils-BVZuW4V9.js → timeRange.utils-DvJETTKa.js} +2 -2
  277. package/dist/{timeRange.utils-BVZuW4V9.js.map → timeRange.utils-DvJETTKa.js.map} +1 -1
  278. package/package.json +3 -3
  279. package/dist/charts.fillGaps.hooks-C7KsWcZb.js +0 -67
  280. package/dist/charts.fillGaps.hooks-C7KsWcZb.js.map +0 -1
  281. package/dist/component.inputs.constants-DX8nFR6c.js.map +0 -1
  282. package/dist/component.utils-DubLDCwF.js.map +0 -1
  283. package/dist/index-B329Sipk.js +0 -131
  284. package/dist/index-B329Sipk.js.map +0 -1
  285. package/dist/index-BM3-McL7.js +0 -183
  286. package/dist/index-BM3-McL7.js.map +0 -1
  287. package/dist/index-Bfe6zioU.js +0 -29
  288. package/dist/index-Bfe6zioU.js.map +0 -1
  289. package/dist/index-BkTScvL1.js +0 -84
  290. package/dist/index-BkTScvL1.js.map +0 -1
  291. package/dist/index-Bsc-5ZTL.js +0 -83
  292. package/dist/index-Bsc-5ZTL.js.map +0 -1
  293. package/dist/index-C2Wozewk.js +0 -436
  294. package/dist/index-C2Wozewk.js.map +0 -1
  295. package/dist/index-C3xLwJI6.js +0 -92
  296. package/dist/index-C3xLwJI6.js.map +0 -1
  297. package/dist/index-C7hq6COa.js +0 -91
  298. package/dist/index-C7hq6COa.js.map +0 -1
  299. package/dist/index-C9QX77-Q.js +0 -90
  300. package/dist/index-C9QX77-Q.js.map +0 -1
  301. package/dist/index-CGKzl5qD.js +0 -60
  302. package/dist/index-CGKzl5qD.js.map +0 -1
  303. package/dist/index-CH7FDkJO.js +0 -63
  304. package/dist/index-CH7FDkJO.js.map +0 -1
  305. package/dist/index-CMhOFWvJ.js +0 -72
  306. package/dist/index-CMhOFWvJ.js.map +0 -1
  307. package/dist/index-CphG-wyR.js +0 -124
  308. package/dist/index-CphG-wyR.js.map +0 -1
  309. package/dist/index-CsyJsqlo.js +0 -41
  310. package/dist/index-CsyJsqlo.js.map +0 -1
  311. package/dist/index-CtfhLdt0.js +0 -28
  312. package/dist/index-CtfhLdt0.js.map +0 -1
  313. package/dist/index-CweUFcf6.js +0 -37
  314. package/dist/index-CweUFcf6.js.map +0 -1
  315. package/dist/index-D3pwHgeL.js +0 -178
  316. package/dist/index-D3pwHgeL.js.map +0 -1
  317. package/dist/index-D9JaX9ut.js +0 -37
  318. package/dist/index-D9JaX9ut.js.map +0 -1
  319. package/dist/index-DEMHcox3.js +0 -28
  320. package/dist/index-DEMHcox3.js.map +0 -1
  321. package/dist/index-DRlAqfj6.js +0 -114
  322. package/dist/index-DRlAqfj6.js.map +0 -1
  323. package/dist/index-Dvi2ZFRq.js +0 -346
  324. package/dist/index-Dvi2ZFRq.js.map +0 -1
  325. package/dist/index-IhFKORj0.js +0 -40
  326. package/dist/index-IhFKORj0.js.map +0 -1
  327. package/dist/index-JCUdzaRx.js +0 -63
  328. package/dist/index-JCUdzaRx.js.map +0 -1
  329. package/dist/index-U8AIqj5k.js +0 -98
  330. package/dist/index-U8AIqj5k.js.map +0 -1
  331. package/dist/index-bk9MWwoH.js +0 -93
  332. package/dist/index-bk9MWwoH.js.map +0 -1
  333. package/dist/index-zogGkOng.js +0 -94
  334. package/dist/index-zogGkOng.js.map +0 -1
  335. package/dist/tables.utils-DS3rr8kb.js.map +0 -1
@@ -1,58 +1,58 @@
1
- import { h as we } from "./Color.type.emb-Bon3x9VC.js";
1
+ import { c as we } from "./Color.type.emb-BBdbJHvt.js";
2
2
  const g = (a) => typeof a == "string", K = () => {
3
3
  let a, e;
4
- const t = new Promise((i, s) => {
5
- a = i, e = s;
4
+ const t = new Promise((s, i) => {
5
+ a = s, e = i;
6
6
  });
7
7
  return t.resolve = a, t.reject = e, t;
8
8
  }, ne = (a) => a == null ? "" : "" + a, ve = (a, e, t) => {
9
- a.forEach((i) => {
10
- e[i] && (t[i] = e[i]);
9
+ a.forEach((s) => {
10
+ e[s] && (t[s] = e[s]);
11
11
  });
12
12
  }, Ce = /###/g, re = (a) => a && a.indexOf("###") > -1 ? a.replace(Ce, ".") : a, ae = (a) => !a || g(a), A = (a, e, t) => {
13
- const i = g(e) ? e.split(".") : e;
14
- let s = 0;
15
- for (; s < i.length - 1; ) {
13
+ const s = g(e) ? e.split(".") : e;
14
+ let i = 0;
15
+ for (; i < s.length - 1; ) {
16
16
  if (ae(a)) return {};
17
- const n = re(i[s]);
18
- !a[n] && t && (a[n] = new t()), Object.prototype.hasOwnProperty.call(a, n) ? a = a[n] : a = {}, ++s;
17
+ const n = re(s[i]);
18
+ !a[n] && t && (a[n] = new t()), Object.prototype.hasOwnProperty.call(a, n) ? a = a[n] : a = {}, ++i;
19
19
  }
20
20
  return ae(a) ? {} : {
21
21
  obj: a,
22
- k: re(i[s])
22
+ k: re(s[i])
23
23
  };
24
24
  }, oe = (a, e, t) => {
25
25
  const {
26
- obj: i,
27
- k: s
26
+ obj: s,
27
+ k: i
28
28
  } = A(a, e, Object);
29
- if (i !== void 0 || e.length === 1) {
30
- i[s] = t;
29
+ if (s !== void 0 || e.length === 1) {
30
+ s[i] = t;
31
31
  return;
32
32
  }
33
33
  let n = e[e.length - 1], r = e.slice(0, e.length - 1), o = A(a, r, Object);
34
34
  for (; o.obj === void 0 && r.length; )
35
35
  n = `${r[r.length - 1]}.${n}`, r = r.slice(0, r.length - 1), o = A(a, r, 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
- }, Pe = (a, e, t, i) => {
37
+ }, Pe = (a, e, t, s) => {
38
38
  const {
39
- obj: s,
39
+ obj: i,
40
40
  k: n
41
41
  } = A(a, e, Object);
42
- s[n] = s[n] || [], s[n].push(t);
42
+ i[n] = i[n] || [], i[n].push(t);
43
43
  }, J = (a, e) => {
44
44
  const {
45
45
  obj: t,
46
- k: i
46
+ k: s
47
47
  } = A(a, e);
48
- if (t && Object.prototype.hasOwnProperty.call(t, i))
49
- return t[i];
48
+ if (t && Object.prototype.hasOwnProperty.call(t, s))
49
+ return t[s];
50
50
  }, Re = (a, e, t) => {
51
- const i = J(a, t);
52
- return i !== void 0 ? i : J(e, t);
53
- }, ye = (a, e, t) => {
54
- for (const i in e)
55
- i !== "__proto__" && i !== "constructor" && (i in a ? g(a[i]) || a[i] instanceof String || g(e[i]) || e[i] instanceof String ? t && (a[i] = e[i]) : ye(a[i], e[i], t) : a[i] = e[i]);
51
+ const s = J(a, t);
52
+ return s !== void 0 ? s : J(e, t);
53
+ }, xe = (a, e, t) => {
54
+ for (const s in e)
55
+ s !== "__proto__" && s !== "constructor" && (s in a ? g(a[s]) || a[s] instanceof String || g(e[s]) || e[s] instanceof String ? t && (a[s] = e[s]) : xe(a[s], e[s], t) : a[s] = e[s]);
56
56
  return a;
57
57
  }, I = (a) => a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
58
  var $e = {
@@ -72,41 +72,41 @@ class ke {
72
72
  const t = this.regExpMap.get(e);
73
73
  if (t !== void 0)
74
74
  return t;
75
- const i = new RegExp(e);
76
- return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
75
+ const s = new RegExp(e);
76
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
77
77
  }
78
78
  }
79
- const Fe = [" ", ",", "?", "!", ";"], je = new ke(20), Ee = (a, e, t) => {
79
+ const je = [" ", ",", "?", "!", ";"], Fe = new ke(20), Ee = (a, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = Fe.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
82
- if (i.length === 0) return !0;
83
- const s = je.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
84
- let n = !s.test(a);
81
+ const s = je.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
82
+ if (s.length === 0) return !0;
83
+ const i = Fe.getRegExp(`(${s.map((r) => r === "?" ? "\\?" : r).join("|")})`);
84
+ let n = !i.test(a);
85
85
  if (!n) {
86
86
  const r = a.indexOf(t);
87
- r > 0 && !s.test(a.substring(0, r)) && (n = !0);
87
+ r > 0 && !i.test(a.substring(0, r)) && (n = !0);
88
88
  }
89
89
  return n;
90
90
  }, X = (a, e, t = ".") => {
91
91
  if (!a) return;
92
92
  if (a[e])
93
93
  return Object.prototype.hasOwnProperty.call(a, e) ? a[e] : void 0;
94
- const i = e.split(t);
95
- let s = a;
96
- for (let n = 0; n < i.length; ) {
97
- if (!s || typeof s != "object")
94
+ const s = e.split(t);
95
+ let i = a;
96
+ for (let n = 0; n < s.length; ) {
97
+ if (!i || typeof i != "object")
98
98
  return;
99
99
  let r, o = "";
100
- for (let u = n; u < i.length; ++u)
101
- if (u !== n && (o += t), o += i[u], r = s[o], r !== void 0) {
102
- if (["string", "number", "boolean"].indexOf(typeof r) > -1 && u < i.length - 1)
100
+ for (let u = n; u < s.length; ++u)
101
+ if (u !== n && (o += t), o += s[u], r = i[o], r !== void 0) {
102
+ if (["string", "number", "boolean"].indexOf(typeof r) > -1 && u < s.length - 1)
103
103
  continue;
104
104
  n += u - n + 1;
105
105
  break;
106
106
  }
107
- s = r;
107
+ i = r;
108
108
  }
109
- return s;
109
+ return i;
110
110
  }, U = (a) => a == null ? void 0 : a.replace("_", "-"), Ie = {
111
111
  type: "logger",
112
112
  log(a) {
@@ -119,8 +119,8 @@ const Fe = [" ", ",", "?", "!", ";"], je = new ke(20), Ee = (a, e, t) => {
119
119
  this.output("error", a);
120
120
  },
121
121
  output(a, e) {
122
- var t, i;
123
- (i = (t = console == null ? void 0 : console[a]) == null ? void 0 : t.apply) == null || i.call(t, console, e);
122
+ var t, s;
123
+ (s = (t = console == null ? void 0 : console[a]) == null ? void 0 : t.apply) == null || s.call(t, console, e);
124
124
  }
125
125
  };
126
126
  class _ {
@@ -142,8 +142,8 @@ class _ {
142
142
  deprecate(...e) {
143
143
  return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
144
144
  }
145
- forward(e, t, i, s) {
146
- return s && !this.debug ? null : (g(e[0]) && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
145
+ forward(e, t, s, i) {
146
+ return i && !this.debug ? null : (g(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
147
147
  }
148
148
  create(e) {
149
149
  return new _(this.logger, {
@@ -161,10 +161,10 @@ class Y {
161
161
  this.observers = {};
162
162
  }
163
163
  on(e, t) {
164
- return e.split(" ").forEach((i) => {
165
- this.observers[i] || (this.observers[i] = /* @__PURE__ */ new Map());
166
- const s = this.observers[i].get(t) || 0;
167
- this.observers[i].set(t, s + 1);
164
+ return e.split(" ").forEach((s) => {
165
+ this.observers[s] || (this.observers[s] = /* @__PURE__ */ new Map());
166
+ const i = this.observers[s].get(t) || 0;
167
+ this.observers[s].set(t, i + 1);
168
168
  }), this;
169
169
  }
170
170
  off(e, t) {
@@ -177,12 +177,12 @@ class Y {
177
177
  }
178
178
  }
179
179
  emit(e, ...t) {
180
- this.observers[e] && Array.from(this.observers[e].entries()).forEach(([s, n]) => {
180
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach(([i, n]) => {
181
181
  for (let r = 0; r < n; r++)
182
- s(...t);
183
- }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([s, n]) => {
182
+ i(...t);
183
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([i, n]) => {
184
184
  for (let r = 0; r < n; r++)
185
- s.apply(s, [e, ...t]);
185
+ i.apply(i, [e, ...t]);
186
186
  });
187
187
  }
188
188
  }
@@ -200,41 +200,41 @@ class le extends Y {
200
200
  const t = this.options.ns.indexOf(e);
201
201
  t > -1 && this.options.ns.splice(t, 1);
202
202
  }
203
- getResource(e, t, i, s = {}) {
203
+ getResource(e, t, s, i = {}) {
204
204
  var l, c;
205
- const n = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, r = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
205
+ const n = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, r = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
206
206
  let o;
207
- e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], i && (Array.isArray(i) ? o.push(...i) : g(i) && n ? o.push(...i.split(n)) : o.push(i)));
207
+ e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : g(s) && n ? o.push(...s.split(n)) : o.push(s)));
208
208
  const u = J(this.data, o);
209
- return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !r || !g(i) ? u : X((c = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : c[t], i, n);
209
+ return !u && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), u || !r || !g(s) ? u : X((c = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : c[t], s, n);
210
210
  }
211
- addResource(e, t, i, s, n = {
211
+ addResource(e, t, s, i, n = {
212
212
  silent: !1
213
213
  }) {
214
214
  const r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
215
215
  let o = [e, t];
216
- i && (o = o.concat(r ? i.split(r) : 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
+ s && (o = o.concat(r ? s.split(r) : s)), e.indexOf(".") > -1 && (o = e.split("."), i = t, t = o[1]), this.addNamespaces(t), oe(this.data, o, i), n.silent || this.emit("added", e, t, s, i);
217
217
  }
218
- addResources(e, t, i, s = {
218
+ addResources(e, t, s, i = {
219
219
  silent: !1
220
220
  }) {
221
- for (const n in i)
222
- (g(i[n]) || Array.isArray(i[n])) && this.addResource(e, t, n, i[n], {
221
+ for (const n in s)
222
+ (g(s[n]) || Array.isArray(s[n])) && this.addResource(e, t, n, s[n], {
223
223
  silent: !0
224
224
  });
225
- s.silent || this.emit("added", e, t, i);
225
+ i.silent || this.emit("added", e, t, s);
226
226
  }
227
- addResourceBundle(e, t, i, s, n, r = {
227
+ addResourceBundle(e, t, s, i, n, r = {
228
228
  silent: !1,
229
229
  skipCopy: !1
230
230
  }) {
231
231
  let o = [e, t];
232
- e.indexOf(".") > -1 && (o = e.split("."), s = i, i = t, t = o[1]), this.addNamespaces(t);
232
+ e.indexOf(".") > -1 && (o = e.split("."), i = s, s = t, t = o[1]), this.addNamespaces(t);
233
233
  let u = J(this.data, o) || {};
234
- r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? ye(u, i, n) : u = {
234
+ r.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? xe(u, s, n) : u = {
235
235
  ...u,
236
- ...i
237
- }, oe(this.data, o, u), r.silent || this.emit("added", e, t, i);
236
+ ...s
237
+ }, oe(this.data, o, u), r.silent || this.emit("added", e, t, s);
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);
@@ -250,36 +250,36 @@ class le extends Y {
250
250
  }
251
251
  hasLanguageSomeTranslations(e) {
252
252
  const t = this.getDataByLanguage(e);
253
- return !!(t && Object.keys(t) || []).find((s) => t[s] && Object.keys(t[s]).length > 0);
253
+ return !!(t && Object.keys(t) || []).find((i) => t[i] && Object.keys(t[i]).length > 0);
254
254
  }
255
255
  toJSON() {
256
256
  return this.data;
257
257
  }
258
258
  }
259
- var Se = {
259
+ var ye = {
260
260
  processors: {},
261
261
  addPostProcessor(a) {
262
262
  this.processors[a.name] = a;
263
263
  },
264
- handle(a, e, t, i, s) {
264
+ handle(a, e, t, s, i) {
265
265
  return a.forEach((n) => {
266
266
  var r;
267
- e = ((r = this.processors[n]) == null ? void 0 : r.process(e, t, i, s)) ?? e;
267
+ e = ((r = this.processors[n]) == null ? void 0 : r.process(e, t, s, i)) ?? e;
268
268
  }), e;
269
269
  }
270
270
  };
271
- const Oe = Symbol("i18next/PATH_KEY");
271
+ const Se = Symbol("i18next/PATH_KEY");
272
272
  function Te() {
273
273
  const a = [], e = /* @__PURE__ */ Object.create(null);
274
274
  let t;
275
- return e.get = (i, s) => {
275
+ return e.get = (s, i) => {
276
276
  var n;
277
- return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Oe ? a : (a.push(s), t = Proxy.revocable(i, e), t.proxy);
277
+ return (n = t == null ? void 0 : t.revoke) == null || n.call(t), i === Se ? a : (a.push(i), t = Proxy.revocable(s, e), t.proxy);
278
278
  }, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
279
279
  }
280
280
  function q(a, e) {
281
281
  const {
282
- [Oe]: t
282
+ [Se]: t
283
283
  } = a(Te());
284
284
  return t.join((e == null ? void 0 : e.keySeparator) ?? ".");
285
285
  }
@@ -294,21 +294,21 @@ class W extends Y {
294
294
  exists(e, t = {
295
295
  interpolation: {}
296
296
  }) {
297
- const i = {
297
+ const s = {
298
298
  ...t
299
299
  };
300
300
  if (e == null) return !1;
301
- const s = this.resolve(e, i);
302
- if ((s == null ? void 0 : s.res) === void 0) return !1;
303
- const n = G(s.res);
304
- return !(i.returnObjects === !1 && n);
301
+ const i = this.resolve(e, s);
302
+ if ((i == null ? void 0 : i.res) === void 0) return !1;
303
+ const n = G(i.res);
304
+ return !(s.returnObjects === !1 && n);
305
305
  }
306
306
  extractFromKey(e, t) {
307
- let i = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
308
- i === void 0 && (i = ":");
309
- const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
307
+ let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
308
+ s === void 0 && (s = ":");
309
+ const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
310
310
  let n = t.ns || this.options.defaultNS || [];
311
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ee(e, i, s);
311
+ const r = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ee(e, s, i);
312
312
  if (r && !o) {
313
313
  const u = e.match(this.interpolator.nestingRegexp);
314
314
  if (u && u.length > 0)
@@ -316,32 +316,32 @@ class W extends Y {
316
316
  key: e,
317
317
  namespaces: g(n) ? [n] : n
318
318
  };
319
- const l = e.split(i);
320
- (i !== s || i === s && this.options.ns.indexOf(l[0]) > -1) && (n = l.shift()), e = l.join(s);
319
+ const l = e.split(s);
320
+ (s !== i || s === i && this.options.ns.indexOf(l[0]) > -1) && (n = l.shift()), e = l.join(i);
321
321
  }
322
322
  return {
323
323
  key: e,
324
324
  namespaces: g(n) ? [n] : n
325
325
  };
326
326
  }
327
- translate(e, t, i) {
328
- let s = typeof t == "object" ? {
327
+ translate(e, t, s) {
328
+ let i = typeof t == "object" ? {
329
329
  ...t
330
330
  } : t;
331
- if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
332
- ...s
333
- }), s || (s = {}), e == null) return "";
331
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = {
332
+ ...i
333
+ }), i || (i = {}), e == null) return "";
334
334
  typeof e == "function" && (e = q(e, {
335
335
  ...this.options,
336
- ...s
336
+ ...i
337
337
  })), Array.isArray(e) || (e = [String(e)]);
338
- const n = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
338
+ const n = i.returnDetails !== void 0 ? i.returnDetails : this.options.returnDetails, r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, {
339
339
  key: o,
340
340
  namespaces: u
341
- } = this.extractFromKey(e[e.length - 1], s), l = u[u.length - 1];
342
- let c = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
341
+ } = this.extractFromKey(e[e.length - 1], i), l = u[u.length - 1];
342
+ let c = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
343
343
  c === void 0 && (c = ":");
344
- const f = s.lng || this.language, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
344
+ const f = i.lng || this.language, p = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
345
345
  if ((f == null ? void 0 : f.toLowerCase()) === "cimode")
346
346
  return p ? n ? {
347
347
  res: `${l}${c}${o}`,
@@ -349,163 +349,163 @@ class W extends Y {
349
349
  exactUsedKey: o,
350
350
  usedLng: f,
351
351
  usedNS: l,
352
- usedParams: this.getUsedParamsDetails(s)
352
+ usedParams: this.getUsedParamsDetails(i)
353
353
  } : `${l}${c}${o}` : n ? {
354
354
  res: o,
355
355
  usedKey: o,
356
356
  exactUsedKey: o,
357
357
  usedLng: f,
358
358
  usedNS: l,
359
- usedParams: this.getUsedParamsDetails(s)
359
+ usedParams: this.getUsedParamsDetails(i)
360
360
  } : o;
361
- const d = this.resolve(e, s);
361
+ const d = this.resolve(e, i);
362
362
  let h = d == null ? void 0 : d.res;
363
- const m = (d == null ? void 0 : d.usedKey) || o, y = (d == null ? void 0 : d.exactUsedKey) || o, v = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, j = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !g(s.count), N = W.hasDefaultValue(s), H = O ? this.pluralResolver.getSuffix(f, s.count, s) : "", k = s.ordinal && O ? this.pluralResolver.getSuffix(f, s.count, {
363
+ const m = (d == null ? void 0 : d.usedKey) || o, x = (d == null ? void 0 : d.exactUsedKey) || o, O = ["[object Number]", "[object Function]", "[object RegExp]"], v = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !g(i.count), N = W.hasDefaultValue(i), H = b ? this.pluralResolver.getSuffix(f, i.count, i) : "", k = i.ordinal && b ? this.pluralResolver.getSuffix(f, i.count, {
364
364
  ordinal: !1
365
- }) : "", T = O && !s.ordinal && s.count === 0, L = T && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${H}`] || s[`defaultValue${k}`] || s.defaultValue;
365
+ }) : "", T = b && !i.ordinal && i.count === 0, L = T && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${H}`] || i[`defaultValue${k}`] || i.defaultValue;
366
366
  let S = h;
367
- j && !h && N && (S = L);
368
- const Le = G(S), be = Object.prototype.toString.apply(S);
369
- if (j && S && Le && v.indexOf(be) < 0 && !(g(w) && Array.isArray(S))) {
370
- if (!s.returnObjects && !this.options.returnObjects) {
367
+ F && !h && N && (S = L);
368
+ const be = G(S), Le = Object.prototype.toString.apply(S);
369
+ if (F && S && be && O.indexOf(Le) < 0 && !(g(v) && Array.isArray(S))) {
370
+ if (!i.returnObjects && !this.options.returnObjects) {
371
371
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
372
372
  const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, S, {
373
- ...s,
373
+ ...i,
374
374
  ns: u
375
375
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
376
- return n ? (d.res = P, d.usedParams = this.getUsedParamsDetails(s), d) : P;
376
+ return n ? (d.res = P, d.usedParams = this.getUsedParamsDetails(i), d) : P;
377
377
  }
378
378
  if (r) {
379
- const P = Array.isArray(S), C = P ? [] : {}, ee = P ? y : m;
379
+ const P = Array.isArray(S), C = P ? [] : {}, ee = P ? x : m;
380
380
  for (const R in S)
381
381
  if (Object.prototype.hasOwnProperty.call(S, R)) {
382
- const F = `${ee}${r}${R}`;
383
- N && !h ? C[R] = this.translate(F, {
384
- ...s,
382
+ const j = `${ee}${r}${R}`;
383
+ N && !h ? C[R] = this.translate(j, {
384
+ ...i,
385
385
  defaultValue: G(L) ? L[R] : void 0,
386
386
  joinArrays: !1,
387
387
  ns: u
388
- }) : C[R] = this.translate(F, {
389
- ...s,
388
+ }) : C[R] = this.translate(j, {
389
+ ...i,
390
390
  joinArrays: !1,
391
391
  ns: u
392
- }), C[R] === F && (C[R] = S[R]);
392
+ }), C[R] === j && (C[R] = S[R]);
393
393
  }
394
394
  h = C;
395
395
  }
396
- } else if (j && g(w) && Array.isArray(h))
397
- h = h.join(w), h && (h = this.extendTranslation(h, e, s, i));
396
+ } else if (F && g(v) && Array.isArray(h))
397
+ h = h.join(v), h && (h = this.extendTranslation(h, e, i, s));
398
398
  else {
399
399
  let P = !1, C = !1;
400
400
  !this.isValidLookup(h) && N && (P = !0, h = L), this.isValidLookup(h) || (C = !0, h = o);
401
- const R = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && C ? void 0 : h, F = N && L !== h && this.options.updateMissing;
402
- if (C || P || F) {
403
- if (this.logger.log(F ? "updateKey" : "missingKey", f, l, o, F ? L : h), r) {
404
- const b = this.resolve(o, {
405
- ...s,
401
+ const R = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && C ? void 0 : h, j = N && L !== h && this.options.updateMissing;
402
+ if (C || P || j) {
403
+ if (this.logger.log(j ? "updateKey" : "missingKey", f, l, o, j ? L : h), r) {
404
+ const w = this.resolve(o, {
405
+ ...i,
406
406
  keySeparator: !1
407
407
  });
408
- b && b.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
+ w && w.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
410
  let V = [];
411
- const z = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
411
+ const z = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
412
412
  if (this.options.saveMissingTo === "fallback" && z && z[0])
413
- for (let b = 0; b < z.length; b++)
414
- V.push(z[b]);
415
- else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(s.lng || this.language) : V.push(s.lng || this.language);
416
- const te = (b, E, D) => {
417
- var ie;
418
- const se = N && D !== h ? D : R;
419
- this.options.missingKeyHandler ? this.options.missingKeyHandler(b, l, E, se, F, s) : (ie = this.backendConnector) != null && ie.saveMissing && this.backendConnector.saveMissing(b, l, E, se, F, s), this.emit("missingKey", b, l, E, h);
413
+ for (let w = 0; w < z.length; w++)
414
+ V.push(z[w]);
415
+ else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(i.lng || this.language) : V.push(i.lng || this.language);
416
+ const te = (w, E, D) => {
417
+ var se;
418
+ const ie = N && D !== h ? D : R;
419
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(w, l, E, ie, j, i) : (se = this.backendConnector) != null && se.saveMissing && this.backendConnector.saveMissing(w, l, E, ie, j, i), this.emit("missingKey", w, l, E, h);
420
420
  };
421
- this.options.saveMissing && (this.options.saveMissingPlurals && O ? V.forEach((b) => {
422
- const E = this.pluralResolver.getSuffixes(b, s);
423
- T && s[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((D) => {
424
- te([b], o + D, s[`defaultValue${D}`] || L);
421
+ this.options.saveMissing && (this.options.saveMissingPlurals && b ? V.forEach((w) => {
422
+ const E = this.pluralResolver.getSuffixes(w, i);
423
+ T && i[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((D) => {
424
+ te([w], o + D, i[`defaultValue${D}`] || L);
425
425
  });
426
426
  }) : te(V, o, L));
427
427
  }
428
- h = this.extendTranslation(h, e, s, d, i), C && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${c}${o}`), (C || P) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${c}${o}` : o, P ? h : void 0, s));
428
+ h = this.extendTranslation(h, e, i, d, s), C && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${c}${o}`), (C || P) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${c}${o}` : o, P ? h : void 0, i));
429
429
  }
430
- return n ? (d.res = h, d.usedParams = this.getUsedParamsDetails(s), d) : h;
430
+ return n ? (d.res = h, d.usedParams = this.getUsedParamsDetails(i), d) : h;
431
431
  }
432
- extendTranslation(e, t, i, s, n) {
432
+ extendTranslation(e, t, s, i, n) {
433
433
  var u, l;
434
434
  if ((u = this.i18nFormat) != null && u.parse)
435
435
  e = this.i18nFormat.parse(e, {
436
436
  ...this.options.interpolation.defaultVariables,
437
- ...i
438
- }, i.lng || this.language || s.usedLng, s.usedNS, s.usedKey, {
439
- resolved: s
437
+ ...s
438
+ }, s.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
439
+ resolved: i
440
440
  });
441
- else if (!i.skipInterpolation) {
442
- i.interpolation && this.interpolator.init({
443
- ...i,
441
+ else if (!s.skipInterpolation) {
442
+ s.interpolation && this.interpolator.init({
443
+ ...s,
444
444
  interpolation: {
445
445
  ...this.options.interpolation,
446
- ...i.interpolation
446
+ ...s.interpolation
447
447
  }
448
448
  });
449
- const c = g(e) && (((l = i == null ? void 0 : i.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
449
+ const c = g(e) && (((l = s == null ? void 0 : s.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
450
450
  let f;
451
451
  if (c) {
452
452
  const d = e.match(this.interpolator.nestingRegexp);
453
453
  f = d && d.length;
454
454
  }
455
- let p = i.replace && !g(i.replace) ? i.replace : i;
455
+ let p = s.replace && !g(s.replace) ? s.replace : s;
456
456
  if (this.options.interpolation.defaultVariables && (p = {
457
457
  ...this.options.interpolation.defaultVariables,
458
458
  ...p
459
- }), e = this.interpolator.interpolate(e, p, i.lng || this.language || s.usedLng, i), c) {
459
+ }), e = this.interpolator.interpolate(e, p, s.lng || this.language || i.usedLng, s), c) {
460
460
  const d = e.match(this.interpolator.nestingRegexp), h = d && d.length;
461
- f < h && (i.nest = !1);
461
+ f < h && (s.nest = !1);
462
462
  }
463
- !i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...d) => (n == null ? void 0 : n[0]) === d[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${t[0]}`), null) : this.translate(...d, t), i)), i.interpolation && this.interpolator.reset();
463
+ !s.lng && i && i.res && (s.lng = this.language || i.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, (...d) => (n == null ? void 0 : n[0]) === d[0] && !s.context ? (this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${t[0]}`), null) : this.translate(...d, t), s)), s.interpolation && this.interpolator.reset();
464
464
  }
465
- const r = i.postProcess || this.options.postProcess, o = g(r) ? [r] : r;
466
- return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Se.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
465
+ const r = s.postProcess || this.options.postProcess, o = g(r) ? [r] : r;
466
+ return e != null && (o != null && o.length) && s.applyPostProcessor !== !1 && (e = ye.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
467
467
  i18nResolved: {
468
- ...s,
469
- usedParams: this.getUsedParamsDetails(i)
468
+ ...i,
469
+ usedParams: this.getUsedParamsDetails(s)
470
470
  },
471
- ...i
472
- } : i, this)), e;
471
+ ...s
472
+ } : s, this)), e;
473
473
  }
474
474
  resolve(e, t = {}) {
475
- let i, s, n, r, o;
475
+ let s, i, n, r, o;
476
476
  return g(e) && (e = [e]), e.forEach((u) => {
477
- if (this.isValidLookup(i)) return;
477
+ if (this.isValidLookup(s)) return;
478
478
  const l = this.extractFromKey(u, t), c = l.key;
479
- s = c;
479
+ i = c;
480
480
  let f = l.namespaces;
481
481
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
482
482
  const p = t.count !== void 0 && !g(t.count), d = p && !t.ordinal && t.count === 0, h = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
483
- f.forEach((y) => {
484
- var v, w;
485
- this.isValidLookup(i) || (o = y, !ue[`${m[0]}-${y}`] && ((v = this.utils) != null && v.hasLoadedNamespace) && !((w = this.utils) != null && w.hasLoadedNamespace(o)) && (ue[`${m[0]}-${y}`] = !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((j) => {
483
+ f.forEach((x) => {
484
+ var O, v;
485
+ this.isValidLookup(s) || (o = x, !ue[`${m[0]}-${x}`] && ((O = this.utils) != null && O.hasLoadedNamespace) && !((v = this.utils) != null && v.hasLoadedNamespace(o)) && (ue[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${i}" 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
486
  var H;
487
- if (this.isValidLookup(i)) return;
488
- r = j;
489
- const O = [c];
487
+ if (this.isValidLookup(s)) return;
488
+ r = F;
489
+ const b = [c];
490
490
  if ((H = this.i18nFormat) != null && H.addLookupKeys)
491
- this.i18nFormat.addLookupKeys(O, c, j, y, t);
491
+ this.i18nFormat.addLookupKeys(b, c, F, x, t);
492
492
  else {
493
493
  let k;
494
- p && (k = this.pluralResolver.getSuffix(j, t.count, t));
494
+ p && (k = this.pluralResolver.getSuffix(F, t.count, t));
495
495
  const T = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
496
- if (p && (t.ordinal && k.indexOf(L) === 0 && O.push(c + k.replace(L, this.options.pluralSeparator)), O.push(c + k), d && O.push(c + T)), h) {
496
+ if (p && (t.ordinal && k.indexOf(L) === 0 && b.push(c + k.replace(L, this.options.pluralSeparator)), b.push(c + k), d && b.push(c + T)), h) {
497
497
  const S = `${c}${this.options.contextSeparator || "_"}${t.context}`;
498
- O.push(S), p && (t.ordinal && k.indexOf(L) === 0 && O.push(S + k.replace(L, this.options.pluralSeparator)), O.push(S + k), d && O.push(S + T));
498
+ b.push(S), p && (t.ordinal && k.indexOf(L) === 0 && b.push(S + k.replace(L, this.options.pluralSeparator)), b.push(S + k), d && b.push(S + T));
499
499
  }
500
500
  }
501
501
  let N;
502
- for (; N = O.pop(); )
503
- this.isValidLookup(i) || (n = N, i = this.getResource(j, y, N, t));
502
+ for (; N = b.pop(); )
503
+ this.isValidLookup(s) || (n = N, s = this.getResource(F, x, N, t));
504
504
  }));
505
505
  });
506
506
  }), {
507
- res: i,
508
- usedKey: s,
507
+ res: s,
508
+ usedKey: i,
509
509
  exactUsedKey: n,
510
510
  usedLng: r,
511
511
  usedNS: o
@@ -514,29 +514,29 @@ class W extends Y {
514
514
  isValidLookup(e) {
515
515
  return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
516
516
  }
517
- getResource(e, t, i, s = {}) {
517
+ getResource(e, t, s, i = {}) {
518
518
  var n;
519
- return (n = this.i18nFormat) != null && n.getResource ? this.i18nFormat.getResource(e, t, i, s) : this.resourceStore.getResource(e, t, i, s);
519
+ return (n = this.i18nFormat) != null && n.getResource ? this.i18nFormat.getResource(e, t, s, i) : this.resourceStore.getResource(e, t, s, i);
520
520
  }
521
521
  getUsedParamsDetails(e = {}) {
522
- const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], i = e.replace && !g(e.replace);
523
- let s = i ? e.replace : e;
524
- if (i && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
522
+ const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !g(e.replace);
523
+ let i = s ? e.replace : e;
524
+ if (s && typeof e.count < "u" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = {
525
525
  ...this.options.interpolation.defaultVariables,
526
- ...s
527
- }), !i) {
528
- s = {
529
- ...s
526
+ ...i
527
+ }), !s) {
528
+ i = {
529
+ ...i
530
530
  };
531
531
  for (const n of t)
532
- delete s[n];
532
+ delete i[n];
533
533
  }
534
- return s;
534
+ return i;
535
535
  }
536
536
  static hasDefaultValue(e) {
537
537
  const t = "defaultValue";
538
- for (const i in e)
539
- if (Object.prototype.hasOwnProperty.call(e, i) && t === i.substring(0, t.length) && e[i] !== void 0)
538
+ for (const s in e)
539
+ if (Object.prototype.hasOwnProperty.call(e, s) && t === s.substring(0, t.length) && e[s] !== void 0)
540
540
  return !0;
541
541
  return !1;
542
542
  }
@@ -572,15 +572,15 @@ class fe {
572
572
  getBestMatchFromCodes(e) {
573
573
  if (!e) return null;
574
574
  let t;
575
- return e.forEach((i) => {
575
+ return e.forEach((s) => {
576
576
  if (t) return;
577
- const s = this.formatLanguageCode(i);
578
- (!this.options.supportedLngs || this.isSupportedCode(s)) && (t = s);
579
- }), !t && this.options.supportedLngs && e.forEach((i) => {
577
+ const i = this.formatLanguageCode(s);
578
+ (!this.options.supportedLngs || this.isSupportedCode(i)) && (t = i);
579
+ }), !t && this.options.supportedLngs && e.forEach((s) => {
580
580
  if (t) return;
581
- const s = this.getScriptPartFromCode(i);
582
- if (this.isSupportedCode(s)) return t = s;
583
- const n = this.getLanguagePartFromCode(i);
581
+ const i = this.getScriptPartFromCode(s);
582
+ if (this.isSupportedCode(i)) return t = i;
583
+ const n = this.getLanguagePartFromCode(s);
584
584
  if (this.isSupportedCode(n)) return t = n;
585
585
  t = this.options.supportedLngs.find((r) => {
586
586
  if (r === n) return r;
@@ -593,16 +593,16 @@ class fe {
593
593
  if (!e) return [];
594
594
  if (typeof e == "function" && (e = e(t)), g(e) && (e = [e]), Array.isArray(e)) return e;
595
595
  if (!t) return e.default || [];
596
- let i = e[t];
597
- return i || (i = e[this.getScriptPartFromCode(t)]), i || (i = e[this.formatLanguageCode(t)]), i || (i = e[this.getLanguagePartFromCode(t)]), i || (i = e.default), i || [];
596
+ let s = e[t];
597
+ return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
598
598
  }
599
599
  toResolveHierarchy(e, t) {
600
- const i = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), s = [], n = (r) => {
601
- r && (this.isSupportedCode(r) ? s.push(r) : this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`));
600
+ const s = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), i = [], n = (r) => {
601
+ r && (this.isSupportedCode(r) ? i.push(r) : this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`));
602
602
  };
603
- return g(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && n(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && n(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && n(this.getLanguagePartFromCode(e))) : g(e) && n(this.formatLanguageCode(e)), i.forEach((r) => {
604
- s.indexOf(r) < 0 && n(this.formatLanguageCode(r));
605
- }), s;
603
+ return g(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && n(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && n(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && n(this.getLanguagePartFromCode(e))) : g(e) && n(this.formatLanguageCode(e)), s.forEach((r) => {
604
+ i.indexOf(r) < 0 && n(this.formatLanguageCode(r));
605
+ }), i;
606
606
  }
607
607
  }
608
608
  const ce = {
@@ -626,16 +626,16 @@ class Ve {
626
626
  this.pluralRulesCache = {};
627
627
  }
628
628
  getRule(e, t = {}) {
629
- const i = U(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
630
- cleanedCode: i,
631
- type: s
629
+ const s = U(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
630
+ cleanedCode: s,
631
+ type: i
632
632
  });
633
633
  if (n in this.pluralRulesCache)
634
634
  return this.pluralRulesCache[n];
635
635
  let r;
636
636
  try {
637
- r = new Intl.PluralRules(i, {
638
- type: s
637
+ r = new Intl.PluralRules(s, {
638
+ type: i
639
639
  });
640
640
  } catch {
641
641
  if (typeof Intl > "u")
@@ -647,29 +647,29 @@ class Ve {
647
647
  return this.pluralRulesCache[n] = r, r;
648
648
  }
649
649
  needsPlural(e, t = {}) {
650
- let i = this.getRule(e, t);
651
- return i || (i = this.getRule("dev", t)), (i == null ? void 0 : i.resolvedOptions().pluralCategories.length) > 1;
650
+ let s = this.getRule(e, t);
651
+ return s || (s = this.getRule("dev", t)), (s == null ? void 0 : s.resolvedOptions().pluralCategories.length) > 1;
652
652
  }
653
- getPluralFormsOfKey(e, t, i = {}) {
654
- return this.getSuffixes(e, i).map((s) => `${t}${s}`);
653
+ getPluralFormsOfKey(e, t, s = {}) {
654
+ return this.getSuffixes(e, s).map((i) => `${t}${i}`);
655
655
  }
656
656
  getSuffixes(e, t = {}) {
657
- let i = this.getRule(e, t);
658
- return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => ce[s] - ce[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
657
+ let s = this.getRule(e, t);
658
+ return s || (s = this.getRule("dev", t)), s ? s.resolvedOptions().pluralCategories.sort((i, n) => ce[i] - ce[n]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
659
659
  }
660
- getSuffix(e, t, i = {}) {
661
- const s = this.getRule(e, i);
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));
660
+ getSuffix(e, t, s = {}) {
661
+ const i = this.getRule(e, s);
662
+ return i ? `${this.options.prepend}${s.ordinal ? `ordinal${this.options.prepend}` : ""}${i.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, s));
663
663
  }
664
664
  }
665
- const de = (a, e, t, i = ".", s = !0) => {
665
+ const de = (a, e, t, s = ".", i = !0) => {
666
666
  let n = Re(a, e, t);
667
- return !n && s && g(t) && (n = X(a, t, i), n === void 0 && (n = X(e, t, i))), n;
667
+ return !n && i && g(t) && (n = X(a, t, s), n === void 0 && (n = X(e, t, s))), n;
668
668
  }, Q = (a) => a.replace(/\$/g, "$$$$");
669
669
  class pe {
670
670
  constructor(e = {}) {
671
671
  var t;
672
- this.logger = $.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 = $.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((s) => s), this.init(e);
673
673
  }
674
674
  init(e = {}) {
675
675
  e.interpolation || (e.interpolation = {
@@ -677,8 +677,8 @@ class pe {
677
677
  });
678
678
  const {
679
679
  escape: t,
680
- escapeValue: i,
681
- useRawValueToEscape: s,
680
+ escapeValue: s,
681
+ useRawValueToEscape: i,
682
682
  prefix: n,
683
683
  prefixEscaped: r,
684
684
  suffix: o,
@@ -690,40 +690,40 @@ class pe {
690
690
  nestingPrefixEscaped: d,
691
691
  nestingSuffix: h,
692
692
  nestingSuffixEscaped: m,
693
- nestingOptionsSeparator: y,
694
- maxReplaces: v,
695
- alwaysFormat: w
693
+ nestingOptionsSeparator: x,
694
+ maxReplaces: O,
695
+ alwaysFormat: v
696
696
  } = e.interpolation;
697
- this.escape = t !== void 0 ? t : Ne, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? I(n) : r || "{{", this.suffix = o ? I(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? I(p) : d || I("$t("), this.nestingSuffix = h ? I(h) : m || I(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
697
+ this.escape = t !== void 0 ? t : Ne, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = n ? I(n) : r || "{{", this.suffix = o ? I(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? I(p) : d || I("$t("), this.nestingSuffix = h ? I(h) : m || I(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
698
698
  }
699
699
  reset() {
700
700
  this.options && this.init(this.options);
701
701
  }
702
702
  resetRegExp() {
703
- const e = (t, i) => (t == null ? void 0 : t.source) === i ? (t.lastIndex = 0, t) : new RegExp(i, "g");
703
+ const e = (t, s) => (t == null ? void 0 : t.source) === s ? (t.lastIndex = 0, t) : new RegExp(s, "g");
704
704
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
705
705
  }
706
- interpolate(e, t, i, s) {
706
+ interpolate(e, t, s, i) {
707
707
  var d;
708
708
  let n, r, o;
709
709
  const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (h) => {
710
710
  if (h.indexOf(this.formatSeparator) < 0) {
711
- const w = de(t, u, h, this.options.keySeparator, this.options.ignoreJSONStructure);
712
- return this.alwaysFormat ? this.format(w, void 0, i, {
713
- ...s,
711
+ const v = de(t, u, h, this.options.keySeparator, this.options.ignoreJSONStructure);
712
+ return this.alwaysFormat ? this.format(v, void 0, s, {
713
+ ...i,
714
714
  ...t,
715
715
  interpolationkey: h
716
- }) : w;
716
+ }) : v;
717
717
  }
718
- const m = h.split(this.formatSeparator), y = m.shift().trim(), v = m.join(this.formatSeparator).trim();
719
- return this.format(de(t, u, y, this.options.keySeparator, this.options.ignoreJSONStructure), v, i, {
720
- ...s,
718
+ const m = h.split(this.formatSeparator), x = m.shift().trim(), O = m.join(this.formatSeparator).trim();
719
+ return this.format(de(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), O, s, {
720
+ ...i,
721
721
  ...t,
722
- interpolationkey: y
722
+ interpolationkey: x
723
723
  });
724
724
  };
725
725
  this.resetRegExp();
726
- const c = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((d = s == null ? void 0 : s.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
726
+ const c = (i == null ? void 0 : i.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((d = i == null ? void 0 : i.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
727
727
  return [{
728
728
  regex: this.regexpUnescape,
729
729
  safeValue: (h) => Q(h)
@@ -735,9 +735,9 @@ class pe {
735
735
  const m = n[1].trim();
736
736
  if (r = l(m), r === void 0)
737
737
  if (typeof c == "function") {
738
- const v = c(e, n, s);
739
- r = g(v) ? v : "";
740
- } else if (s && Object.prototype.hasOwnProperty.call(s, m))
738
+ const O = c(e, n, i);
739
+ r = g(O) ? O : "";
740
+ } else if (i && Object.prototype.hasOwnProperty.call(i, m))
741
741
  r = "";
742
742
  else if (f) {
743
743
  r = n[0];
@@ -745,14 +745,14 @@ class pe {
745
745
  } else
746
746
  this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), r = "";
747
747
  else !g(r) && !this.useRawValueToEscape && (r = ne(r));
748
- const y = h.safeValue(r);
749
- if (e = e.replace(n[0], y), f ? (h.regex.lastIndex += r.length, h.regex.lastIndex -= n[0].length) : h.regex.lastIndex = 0, o++, o >= this.maxReplaces)
748
+ const x = h.safeValue(r);
749
+ if (e = e.replace(n[0], x), f ? (h.regex.lastIndex += r.length, h.regex.lastIndex -= n[0].length) : h.regex.lastIndex = 0, o++, o >= this.maxReplaces)
750
750
  break;
751
751
  }
752
752
  }), e;
753
753
  }
754
- nest(e, t, i = {}) {
755
- let s, n, r;
754
+ nest(e, t, s = {}) {
755
+ let i, n, r;
756
756
  const o = (u, l) => {
757
757
  const c = this.nestingOptionsSeparator;
758
758
  if (u.indexOf(c) < 0) return u;
@@ -771,17 +771,17 @@ class pe {
771
771
  }
772
772
  return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, u;
773
773
  };
774
- for (; s = this.nestingRegexp.exec(e); ) {
774
+ for (; i = this.nestingRegexp.exec(e); ) {
775
775
  let u = [];
776
776
  r = {
777
- ...i
777
+ ...s
778
778
  }, r = r.replace && !g(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
779
- const l = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
780
- if (l !== -1 && (u = s[1].slice(l).split(this.formatSeparator).map((c) => c.trim()).filter(Boolean), s[1] = s[1].slice(0, l)), n = t(o.call(this, s[1].trim(), r), r), n && s[0] === e && !g(n)) return n;
781
- g(n) || (n = ne(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((c, f) => this.format(c, f, i.lng, {
782
- ...i,
783
- interpolationkey: s[1].trim()
784
- }), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
779
+ const l = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
780
+ if (l !== -1 && (u = i[1].slice(l).split(this.formatSeparator).map((c) => c.trim()).filter(Boolean), i[1] = i[1].slice(0, l)), n = t(o.call(this, i[1].trim(), r), r), n && i[0] === e && !g(n)) return n;
781
+ g(n) || (n = ne(n)), n || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((c, f) => this.format(c, f, s.lng, {
782
+ ...s,
783
+ interpolationkey: i[1].trim()
784
+ }), n.trim())), e = e.replace(i[0], n), this.regexp.lastIndex = 0;
785
785
  }
786
786
  return e;
787
787
  }
@@ -790,10 +790,10 @@ const De = (a) => {
790
790
  let e = a.toLowerCase().trim();
791
791
  const t = {};
792
792
  if (a.indexOf("(") > -1) {
793
- const i = a.split("(");
794
- e = i[0].toLowerCase().trim();
795
- const s = i[1].substring(0, i[1].length - 1);
796
- e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((r) => {
793
+ const s = a.split("(");
794
+ e = s[0].toLowerCase().trim();
795
+ const i = s[1].substring(0, s[1].length - 1);
796
+ e === "currency" && i.indexOf(":") < 0 ? t.currency || (t.currency = i.trim()) : e === "relativetime" && i.indexOf(":") < 0 ? t.range || (t.range = i.trim()) : i.split(";").forEach((r) => {
797
797
  if (r) {
798
798
  const [o, ...u] = r.split(":"), l = u.join(":").trim().replace(/^'+|'+$/g, ""), c = o.trim();
799
799
  t[c] || (t[c] = l), l === "false" && (t[c] = !1), l === "true" && (t[c] = !0), isNaN(l) || (t[c] = parseInt(l, 10));
@@ -806,17 +806,17 @@ const De = (a) => {
806
806
  };
807
807
  }, ge = (a) => {
808
808
  const e = {};
809
- return (t, i, s) => {
810
- let n = s;
811
- s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (n = {
809
+ return (t, s, i) => {
810
+ let n = i;
811
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (n = {
812
812
  ...n,
813
- [s.interpolationkey]: void 0
813
+ [i.interpolationkey]: void 0
814
814
  });
815
- const r = i + JSON.stringify(n);
815
+ const r = s + JSON.stringify(n);
816
816
  let o = e[r];
817
- return o || (o = a(U(i), s), e[r] = o), o(t);
817
+ return o || (o = a(U(s), i), e[r] = o), o(t);
818
818
  };
819
- }, Ke = (a) => (e, t, i) => a(U(t), i)(e);
819
+ }, Ke = (a) => (e, t, s) => a(U(t), s)(e);
820
820
  class Ae {
821
821
  constructor(e = {}) {
822
822
  this.logger = $.create("formatter"), this.options = e, this.init(e);
@@ -825,35 +825,35 @@ class Ae {
825
825
  interpolation: {}
826
826
  }) {
827
827
  this.formatSeparator = t.interpolation.formatSeparator || ",";
828
- const i = t.cacheInBuiltFormats ? ge : Ke;
828
+ const s = t.cacheInBuiltFormats ? ge : Ke;
829
829
  this.formats = {
830
- number: i((s, n) => {
831
- const r = new Intl.NumberFormat(s, {
830
+ number: s((i, n) => {
831
+ const r = new Intl.NumberFormat(i, {
832
832
  ...n
833
833
  });
834
834
  return (o) => r.format(o);
835
835
  }),
836
- currency: i((s, n) => {
837
- const r = new Intl.NumberFormat(s, {
836
+ currency: s((i, n) => {
837
+ const r = new Intl.NumberFormat(i, {
838
838
  ...n,
839
839
  style: "currency"
840
840
  });
841
841
  return (o) => r.format(o);
842
842
  }),
843
- datetime: i((s, n) => {
844
- const r = new Intl.DateTimeFormat(s, {
843
+ datetime: s((i, n) => {
844
+ const r = new Intl.DateTimeFormat(i, {
845
845
  ...n
846
846
  });
847
847
  return (o) => r.format(o);
848
848
  }),
849
- relativetime: i((s, n) => {
850
- const r = new Intl.RelativeTimeFormat(s, {
849
+ relativetime: s((i, n) => {
850
+ const r = new Intl.RelativeTimeFormat(i, {
851
851
  ...n
852
852
  });
853
853
  return (o) => r.format(o, n.range || "day");
854
854
  }),
855
- list: i((s, n) => {
856
- const r = new Intl.ListFormat(s, {
855
+ list: s((i, n) => {
856
+ const r = new Intl.ListFormat(i, {
857
857
  ...n
858
858
  });
859
859
  return (o) => r.format(o);
@@ -866,7 +866,7 @@ class Ae {
866
866
  addCached(e, t) {
867
867
  this.formats[e.toLowerCase().trim()] = ge(t);
868
868
  }
869
- format(e, t, i, s = {}) {
869
+ format(e, t, s, i = {}) {
870
870
  const n = t.split(this.formatSeparator);
871
871
  if (n.length > 1 && n[0].indexOf("(") > 1 && n[0].indexOf(")") < 0 && n.find((o) => o.indexOf(")") > -1)) {
872
872
  const o = n.findIndex((u) => u.indexOf(")") > -1);
@@ -881,10 +881,10 @@ class Ae {
881
881
  if (this.formats[l]) {
882
882
  let p = o;
883
883
  try {
884
- const d = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, h = d.locale || d.lng || s.locale || s.lng || i;
884
+ const d = ((f = i == null ? void 0 : i.formatParams) == null ? void 0 : f[i.interpolationkey]) || {}, h = d.locale || d.lng || i.locale || i.lng || s;
885
885
  p = this.formats[l](o, h, {
886
886
  ...c,
887
- ...s,
887
+ ...i,
888
888
  ...d
889
889
  });
890
890
  } catch (d) {
@@ -901,24 +901,24 @@ const Me = (a, e) => {
901
901
  a.pending[e] !== void 0 && (delete a.pending[e], a.pendingCount--);
902
902
  };
903
903
  class Ue extends Y {
904
- constructor(e, t, i, s = {}) {
904
+ constructor(e, t, s, i = {}) {
905
905
  var n, r;
906
- super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = $.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 = [], (r = (n = this.backend) == null ? void 0 : n.init) == null || r.call(n, i, s.backend, s);
906
+ super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (r = (n = this.backend) == null ? void 0 : n.init) == null || r.call(n, s, i.backend, i);
907
907
  }
908
- queueLoad(e, t, i, s) {
908
+ queueLoad(e, t, s, i) {
909
909
  const n = {}, r = {}, o = {}, u = {};
910
910
  return e.forEach((l) => {
911
911
  let c = !0;
912
912
  t.forEach((f) => {
913
913
  const p = `${l}|${f}`;
914
- !i.reload && this.store.hasResourceBundle(l, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, c = !1, r[p] === void 0 && (r[p] = !0), n[p] === void 0 && (n[p] = !0), u[f] === void 0 && (u[f] = !0)));
914
+ !s.reload && this.store.hasResourceBundle(l, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, c = !1, r[p] === void 0 && (r[p] = !0), n[p] === void 0 && (n[p] = !0), u[f] === void 0 && (u[f] = !0)));
915
915
  }), c || (o[l] = !0);
916
916
  }), (Object.keys(n).length || Object.keys(r).length) && this.queue.push({
917
917
  pending: r,
918
918
  pendingCount: Object.keys(r).length,
919
919
  loaded: {},
920
920
  errors: [],
921
- callback: s
921
+ callback: i
922
922
  }), {
923
923
  toLoad: Object.keys(n),
924
924
  pending: Object.keys(r),
@@ -926,11 +926,11 @@ class Ue extends Y {
926
926
  toLoadNamespaces: Object.keys(u)
927
927
  };
928
928
  }
929
- loaded(e, t, i) {
930
- const s = e.split("|"), n = s[0], r = s[1];
931
- t && this.emit("failedLoading", n, r, t), !t && i && this.store.addResourceBundle(n, r, i, void 0, void 0, {
929
+ loaded(e, t, s) {
930
+ const i = e.split("|"), n = i[0], r = i[1];
931
+ t && this.emit("failedLoading", n, r, t), !t && s && this.store.addResourceBundle(n, r, s, void 0, void 0, {
932
932
  skipCopy: !0
933
- }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
933
+ }), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
934
934
  const o = {};
935
935
  this.queue.forEach((u) => {
936
936
  Pe(u.loaded, [n], r), Me(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
@@ -942,14 +942,14 @@ class Ue extends Y {
942
942
  }), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
943
943
  }), this.emit("loaded", o), this.queue = this.queue.filter((u) => !u.done);
944
944
  }
945
- read(e, t, i, s = 0, n = this.retryTimeout, r) {
945
+ read(e, t, s, i = 0, n = this.retryTimeout, r) {
946
946
  if (!e.length) return r(null, {});
947
947
  if (this.readingCalls >= this.maxParallelReads) {
948
948
  this.waitingReads.push({
949
949
  lng: e,
950
950
  ns: t,
951
- fcName: i,
952
- tried: s,
951
+ fcName: s,
952
+ tried: i,
953
953
  wait: n,
954
954
  callback: r
955
955
  });
@@ -961,14 +961,14 @@ class Ue extends Y {
961
961
  const f = this.waitingReads.shift();
962
962
  this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
963
963
  }
964
- if (l && c && s < this.maxRetries) {
964
+ if (l && c && i < this.maxRetries) {
965
965
  setTimeout(() => {
966
- this.read.call(this, e, t, i, s + 1, n * 2, r);
966
+ this.read.call(this, e, t, s, i + 1, n * 2, r);
967
967
  }, n);
968
968
  return;
969
969
  }
970
970
  r(l, c);
971
- }, u = this.backend[i].bind(this.backend);
971
+ }, u = this.backend[s].bind(this.backend);
972
972
  if (u.length === 2) {
973
973
  try {
974
974
  const l = u(e, t);
@@ -980,39 +980,39 @@ class Ue extends Y {
980
980
  }
981
981
  return u(e, t, o);
982
982
  }
983
- prepareLoading(e, t, i = {}, s) {
983
+ prepareLoading(e, t, s = {}, i) {
984
984
  if (!this.backend)
985
- return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
985
+ return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
986
986
  g(e) && (e = this.languageUtils.toResolveHierarchy(e)), g(t) && (t = [t]);
987
- const n = this.queueLoad(e, t, i, s);
987
+ const n = this.queueLoad(e, t, s, i);
988
988
  if (!n.toLoad.length)
989
- return n.pending.length || s(), null;
989
+ return n.pending.length || i(), null;
990
990
  n.toLoad.forEach((r) => {
991
991
  this.loadOne(r);
992
992
  });
993
993
  }
994
- load(e, t, i) {
995
- this.prepareLoading(e, t, {}, i);
994
+ load(e, t, s) {
995
+ this.prepareLoading(e, t, {}, s);
996
996
  }
997
- reload(e, t, i) {
997
+ reload(e, t, s) {
998
998
  this.prepareLoading(e, t, {
999
999
  reload: !0
1000
- }, i);
1000
+ }, s);
1001
1001
  }
1002
1002
  loadOne(e, t = "") {
1003
- const i = e.split("|"), s = i[0], n = i[1];
1004
- this.read(s, n, "read", void 0, void 0, (r, o) => {
1005
- r && this.logger.warn(`${t}loading namespace ${n} for language ${s} failed`, r), !r && o && this.logger.log(`${t}loaded namespace ${n} for language ${s}`, o), this.loaded(e, r, o);
1003
+ const s = e.split("|"), i = s[0], n = s[1];
1004
+ this.read(i, n, "read", void 0, void 0, (r, o) => {
1005
+ r && this.logger.warn(`${t}loading namespace ${n} for language ${i} failed`, r), !r && o && this.logger.log(`${t}loaded namespace ${n} for language ${i}`, o), this.loaded(e, r, o);
1006
1006
  });
1007
1007
  }
1008
- saveMissing(e, t, i, s, n, r = {}, o = () => {
1008
+ saveMissing(e, t, s, i, n, r = {}, o = () => {
1009
1009
  }) {
1010
1010
  var u, l, c, f, p;
1011
1011
  if ((l = (u = this.services) == null ? void 0 : u.utils) != null && l.hasLoadedNamespace && !((f = (c = this.services) == null ? void 0 : c.utils) != null && f.hasLoadedNamespace(t))) {
1012
- this.logger.warn(`did not save key "${i}" as the namespace "${t}" 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!!!");
1012
+ this.logger.warn(`did not save key "${s}" as the namespace "${t}" 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!!!");
1013
1013
  return;
1014
1014
  }
1015
- if (!(i == null || i === "")) {
1015
+ if (!(s == null || s === "")) {
1016
1016
  if ((p = this.backend) != null && p.create) {
1017
1017
  const d = {
1018
1018
  ...r,
@@ -1021,14 +1021,14 @@ class Ue extends Y {
1021
1021
  if (h.length < 6)
1022
1022
  try {
1023
1023
  let m;
1024
- h.length === 5 ? m = h(e, t, i, s, d) : m = h(e, t, i, s), m && typeof m.then == "function" ? m.then((y) => o(null, y)).catch(o) : o(null, m);
1024
+ h.length === 5 ? m = h(e, t, s, i, d) : m = h(e, t, s, i), m && typeof m.then == "function" ? m.then((x) => o(null, x)).catch(o) : o(null, m);
1025
1025
  } catch (m) {
1026
1026
  o(m);
1027
1027
  }
1028
1028
  else
1029
- h(e, t, i, s, o, d);
1029
+ h(e, t, s, i, o, d);
1030
1030
  }
1031
- !e || !e[0] || this.store.addResource(e[0], t, i, s);
1031
+ !e || !e[0] || this.store.addResource(e[0], t, s, i);
1032
1032
  }
1033
1033
  }
1034
1034
  }
@@ -1069,8 +1069,8 @@ const Z = () => ({
1069
1069
  let e = {};
1070
1070
  if (typeof a[1] == "object" && (e = a[1]), g(a[1]) && (e.defaultValue = a[1]), g(a[2]) && (e.tDescription = a[2]), typeof a[2] == "object" || typeof a[3] == "object") {
1071
1071
  const t = a[3] || a[2];
1072
- Object.keys(t).forEach((i) => {
1073
- e[i] = t[i];
1072
+ Object.keys(t).forEach((s) => {
1073
+ e[s] = t[s];
1074
1074
  });
1075
1075
  }
1076
1076
  return e;
@@ -1097,14 +1097,14 @@ const Z = () => ({
1097
1097
  Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach((t) => {
1098
1098
  typeof a[t] == "function" && (a[t] = a[t].bind(a));
1099
1099
  });
1100
- };
1101
- let xe = !1;
1102
- const ze = (a) => {
1103
- var e, t, i, s, n, r, o, u, l;
1104
- return !!(((i = (t = (e = a == null ? void 0 : a.modules) == null ? void 0 : e.backend) == null ? void 0 : t.name) == null ? void 0 : i.indexOf("Locize")) > 0 || ((o = (r = (n = (s = a == null ? void 0 : a.modules) == null ? void 0 : s.backend) == null ? void 0 : n.constructor) == null ? void 0 : r.name) == null ? void 0 : o.indexOf("Locize")) > 0 || (l = (u = a == null ? void 0 : a.options) == null ? void 0 : u.backend) != null && l.backends && a.options.backend.backends.some((c) => {
1105
- var f, p, d;
1106
- return ((f = c == null ? void 0 : c.name) == null ? void 0 : f.indexOf("Locize")) > 0 || ((d = (p = c == null ? void 0 : c.constructor) == null ? void 0 : p.name) == null ? void 0 : d.indexOf("Locize")) > 0;
1107
- }));
1100
+ }, Oe = "__i18next_supportNoticeShown", ze = () => typeof globalThis < "u" && !!globalThis[Oe], Be = () => {
1101
+ typeof globalThis < "u" && (globalThis[Oe] = !0);
1102
+ }, Je = (a) => {
1103
+ var e, t, s, i, n, r, o, u, l, c, f, p, d;
1104
+ return !!(((s = (t = (e = a == null ? void 0 : a.modules) == null ? void 0 : e.backend) == null ? void 0 : t.name) == null ? void 0 : s.indexOf("Locize")) > 0 || ((o = (r = (n = (i = a == null ? void 0 : a.modules) == null ? void 0 : i.backend) == null ? void 0 : n.constructor) == null ? void 0 : r.name) == null ? void 0 : o.indexOf("Locize")) > 0 || (l = (u = a == null ? void 0 : a.options) == null ? void 0 : u.backend) != null && l.backends && a.options.backend.backends.some((h) => {
1105
+ var m, x, O;
1106
+ return ((m = h == null ? void 0 : h.name) == null ? void 0 : m.indexOf("Locize")) > 0 || ((O = (x = h == null ? void 0 : h.constructor) == null ? void 0 : x.name) == null ? void 0 : O.indexOf("Locize")) > 0;
1107
+ }) || (f = (c = a == null ? void 0 : a.options) == null ? void 0 : c.backend) != null && f.projectId || (d = (p = a == null ? void 0 : a.options) == null ? void 0 : p.backend) != null && d.backendOptions && a.options.backend.backendOptions.some((h) => h == null ? void 0 : h.projectId));
1108
1108
  };
1109
1109
  class M extends Y {
1110
1110
  constructor(e = {}, t) {
@@ -1120,18 +1120,18 @@ class M extends Y {
1120
1120
  }
1121
1121
  init(e = {}, t) {
1122
1122
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (g(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1123
- const i = Z();
1123
+ const s = Z();
1124
1124
  this.options = {
1125
- ...i,
1125
+ ...s,
1126
1126
  ...this.options,
1127
1127
  ...me(e)
1128
1128
  }, this.options.interpolation = {
1129
- ...i.interpolation,
1129
+ ...s.interpolation,
1130
1130
  ...this.options.interpolation
1131
- }, 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), this.options.showSupportNotice !== !1 && !ze(this) && !xe && (typeof console < "u" && typeof console.info < "u" && console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), xe = !0);
1132
- const s = (l) => l ? typeof l == "function" ? new l() : l : null;
1131
+ }, 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 = s.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Je(this) && !ze() && (typeof console < "u" && typeof console.info < "u" && console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), Be());
1132
+ const i = (l) => l ? typeof l == "function" ? new l() : l : null;
1133
1133
  if (!this.options.isClone) {
1134
- this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
1134
+ this.modules.logger ? $.init(i(this.modules.logger), this.options) : $.init(null, this.options);
1135
1135
  let l;
1136
1136
  this.modules.formatter ? l = this.modules.formatter : l = Ae;
1137
1137
  const c = new fe(this.options);
@@ -1140,11 +1140,11 @@ class M extends Y {
1140
1140
  f.logger = $, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new Ve(c, {
1141
1141
  prepend: this.options.pluralSeparator,
1142
1142
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1143
- }), 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) && (f.formatter = s(l), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new pe(this.options), f.utils = {
1143
+ }), this.options.interpolation.format && this.options.interpolation.format !== s.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 === s.interpolation.format) && (f.formatter = i(l), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new pe(this.options), f.utils = {
1144
1144
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1145
- }, f.backendConnector = new Ue(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1145
+ }, f.backendConnector = new Ue(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1146
1146
  this.emit(d, ...h);
1147
- }), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new W(this.services, this.options), this.translator.on("*", (d, ...h) => {
1147
+ }), this.modules.languageDetector && (f.languageDetector = i(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = i(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new W(this.services, this.options), this.translator.on("*", (d, ...h) => {
1148
1148
  this.emit(d, ...h);
1149
1149
  }), this.modules.external.forEach((d) => {
1150
1150
  d.init && d.init(this);
@@ -1170,39 +1170,39 @@ class M extends Y {
1170
1170
  }
1171
1171
  loadResources(e, t = B) {
1172
1172
  var n, r;
1173
- let i = t;
1174
- const s = g(e) ? e : this.language;
1175
- if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
1176
- if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return i();
1173
+ let s = t;
1174
+ const i = g(e) ? e : this.language;
1175
+ if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
1176
+ if ((i == null ? void 0 : i.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
1177
1177
  const o = [], u = (l) => {
1178
1178
  if (!l || l === "cimode") return;
1179
1179
  this.services.languageUtils.toResolveHierarchy(l).forEach((f) => {
1180
1180
  f !== "cimode" && o.indexOf(f) < 0 && o.push(f);
1181
1181
  });
1182
1182
  };
1183
- s ? u(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((c) => u(c)), (r = (n = this.options.preload) == null ? void 0 : n.forEach) == null || r.call(n, (l) => u(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
1184
- !l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(l);
1183
+ i ? u(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((c) => u(c)), (r = (n = this.options.preload) == null ? void 0 : n.forEach) == null || r.call(n, (l) => u(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
1184
+ !l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(l);
1185
1185
  });
1186
1186
  } else
1187
- i(null);
1187
+ s(null);
1188
1188
  }
1189
- reloadResources(e, t, i) {
1190
- const s = K();
1191
- return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = B), this.services.backendConnector.reload(e, t, (n) => {
1192
- s.resolve(), i(n);
1193
- }), s;
1189
+ reloadResources(e, t, s) {
1190
+ const i = K();
1191
+ return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = B), this.services.backendConnector.reload(e, t, (n) => {
1192
+ i.resolve(), s(n);
1193
+ }), i;
1194
1194
  }
1195
1195
  use(e) {
1196
1196
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1197
1197
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1198
- 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" && Se.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1198
+ 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" && ye.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1199
1199
  }
1200
1200
  setResolvedLanguage(e) {
1201
1201
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
1202
1202
  for (let t = 0; t < this.languages.length; t++) {
1203
- const i = this.languages[t];
1204
- if (!(["cimode", "dev"].indexOf(i) > -1) && this.store.hasLanguageSomeTranslations(i)) {
1205
- this.resolvedLanguage = i;
1203
+ const s = this.languages[t];
1204
+ if (!(["cimode", "dev"].indexOf(s) > -1) && this.store.hasLanguageSomeTranslations(s)) {
1205
+ this.resolvedLanguage = s;
1206
1206
  break;
1207
1207
  }
1208
1208
  }
@@ -1211,28 +1211,28 @@ class M extends Y {
1211
1211
  }
1212
1212
  changeLanguage(e, t) {
1213
1213
  this.isLanguageChangingTo = e;
1214
- const i = K();
1214
+ const s = K();
1215
1215
  this.emit("languageChanging", e);
1216
- const s = (o) => {
1216
+ const i = (o) => {
1217
1217
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
1218
1218
  }, n = (o, u) => {
1219
- u ? this.isLanguageChangingTo === e && (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, i.resolve((...l) => this.t(...l)), t && t(o, (...l) => this.t(...l));
1219
+ u ? this.isLanguageChangingTo === e && (i(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, s.resolve((...l) => this.t(...l)), t && t(o, (...l) => this.t(...l));
1220
1220
  }, r = (o) => {
1221
1221
  var c, f;
1222
1222
  !e && !o && this.services.languageDetector && (o = []);
1223
1223
  const u = g(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(u) ? u : this.services.languageUtils.getBestMatchFromCodes(g(o) ? [o] : o);
1224
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (f = (c = this.services.languageDetector) == null ? void 0 : c.cacheUserLanguage) == null || f.call(c, l)), this.loadResources(l, (p) => {
1224
+ l && (this.language || i(l), this.translator.language || this.translator.changeLanguage(l), (f = (c = this.services.languageDetector) == null ? void 0 : c.cacheUserLanguage) == null || f.call(c, l)), this.loadResources(l, (p) => {
1225
1225
  n(p, l);
1226
1226
  });
1227
1227
  };
1228
- return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), i;
1228
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), s;
1229
1229
  }
1230
- getFixedT(e, t, i) {
1231
- const s = (n, r, ...o) => {
1230
+ getFixedT(e, t, s) {
1231
+ const i = (n, r, ...o) => {
1232
1232
  let u;
1233
1233
  typeof r != "object" ? u = this.options.overloadTranslationOptionHandler([n, r].concat(o)) : u = {
1234
1234
  ...r
1235
- }, 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);
1235
+ }, u.lng = u.lng || i.lng, u.lngs = u.lngs || i.lngs, u.ns = u.ns || i.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || s || i.keyPrefix);
1236
1236
  const l = this.options.keySeparator || ".";
1237
1237
  let c;
1238
1238
  return u.keyPrefix && Array.isArray(n) ? c = n.map((f) => (typeof f == "function" && (f = q(f, {
@@ -1243,7 +1243,7 @@ class M extends Y {
1243
1243
  ...r
1244
1244
  })), c = u.keyPrefix ? `${u.keyPrefix}${l}${n}` : n), this.t(c, u);
1245
1245
  };
1246
- return g(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
1246
+ return g(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = s, i;
1247
1247
  }
1248
1248
  t(...e) {
1249
1249
  var t;
@@ -1261,8 +1261,8 @@ class M extends Y {
1261
1261
  return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
1262
1262
  if (!this.languages || !this.languages.length)
1263
1263
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
1264
- const i = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, n = this.languages[this.languages.length - 1];
1265
- if (i.toLowerCase() === "cimode") return !0;
1264
+ const s = t.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, n = this.languages[this.languages.length - 1];
1265
+ if (s.toLowerCase() === "cimode") return !0;
1266
1266
  const r = (o, u) => {
1267
1267
  const l = this.services.backendConnector.state[`${o}|${u}`];
1268
1268
  return l === -1 || l === 0 || l === 2;
@@ -1271,27 +1271,27 @@ class M extends Y {
1271
1271
  const o = t.precheck(this, r);
1272
1272
  if (o !== void 0) return o;
1273
1273
  }
1274
- return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!s || r(n, e)));
1274
+ return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(s, e) && (!i || r(n, e)));
1275
1275
  }
1276
1276
  loadNamespaces(e, t) {
1277
- const i = K();
1278
- return this.options.ns ? (g(e) && (e = [e]), e.forEach((s) => {
1279
- this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
1280
- }), this.loadResources((s) => {
1281
- i.resolve(), t && t(s);
1282
- }), i) : (t && t(), Promise.resolve());
1277
+ const s = K();
1278
+ return this.options.ns ? (g(e) && (e = [e]), e.forEach((i) => {
1279
+ this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1280
+ }), this.loadResources((i) => {
1281
+ s.resolve(), t && t(i);
1282
+ }), s) : (t && t(), Promise.resolve());
1283
1283
  }
1284
1284
  loadLanguages(e, t) {
1285
- const i = K();
1285
+ const s = K();
1286
1286
  g(e) && (e = [e]);
1287
- const s = this.options.preload || [], n = e.filter((r) => s.indexOf(r) < 0 && this.services.languageUtils.isSupportedCode(r));
1288
- return n.length ? (this.options.preload = s.concat(n), this.loadResources((r) => {
1289
- i.resolve(), t && t(r);
1290
- }), i) : (t && t(), Promise.resolve());
1287
+ const i = this.options.preload || [], n = e.filter((r) => i.indexOf(r) < 0 && this.services.languageUtils.isSupportedCode(r));
1288
+ return n.length ? (this.options.preload = i.concat(n), this.loadResources((r) => {
1289
+ s.resolve(), t && t(r);
1290
+ }), s) : (t && t(), Promise.resolve());
1291
1291
  }
1292
1292
  dir(e) {
1293
- var s, n;
1294
- if (e || (e = this.resolvedLanguage || (((s = this.languages) == null ? void 0 : s.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
1293
+ var i, n;
1294
+ if (e || (e = this.resolvedLanguage || (((i = this.languages) == null ? void 0 : i.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
1295
1295
  try {
1296
1296
  const r = new Intl.Locale(e);
1297
1297
  if (r && r.getTextInfo) {
@@ -1300,34 +1300,34 @@ class M extends Y {
1300
1300
  }
1301
1301
  } catch {
1302
1302
  }
1303
- 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 fe(Z());
1304
- return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1303
+ 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"], s = ((n = this.services) == null ? void 0 : n.languageUtils) || new fe(Z());
1304
+ return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1305
1305
  }
1306
1306
  static createInstance(e = {}, t) {
1307
- const i = new M(e, t);
1308
- return i.createInstance = M.createInstance, i;
1307
+ const s = new M(e, t);
1308
+ return s.createInstance = M.createInstance, s;
1309
1309
  }
1310
1310
  cloneInstance(e = {}, t = B) {
1311
- const i = e.forkResourceStore;
1312
- i && delete e.forkResourceStore;
1313
- const s = {
1311
+ const s = e.forkResourceStore;
1312
+ s && delete e.forkResourceStore;
1313
+ const i = {
1314
1314
  ...this.options,
1315
1315
  ...e,
1316
1316
  isClone: !0
1317
- }, n = new M(s);
1317
+ }, n = new M(i);
1318
1318
  if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
1319
1319
  n[o] = this[o];
1320
1320
  }), n.services = {
1321
1321
  ...this.services
1322
1322
  }, n.services.utils = {
1323
1323
  hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
1324
- }, i) {
1324
+ }, s) {
1325
1325
  const o = Object.keys(this.store.data).reduce((u, l) => (u[l] = {
1326
1326
  ...this.store.data[l]
1327
1327
  }, u[l] = Object.keys(u[l]).reduce((c, f) => (c[f] = {
1328
1328
  ...u[l][f]
1329
1329
  }, c), u[l]), u), {});
1330
- n.store = new le(o, s), n.services.resourceStore = n.store;
1330
+ n.store = new le(o, i), n.services.resourceStore = n.store;
1331
1331
  }
1332
1332
  if (e.interpolation) {
1333
1333
  const u = {
@@ -1335,14 +1335,14 @@ class M extends Y {
1335
1335
  ...this.options.interpolation,
1336
1336
  ...e.interpolation
1337
1337
  }, l = {
1338
- ...s,
1338
+ ...i,
1339
1339
  interpolation: u
1340
1340
  };
1341
1341
  n.services.interpolator = new pe(l);
1342
1342
  }
1343
- return n.translator = new W(n.services, s), n.translator.on("*", (o, ...u) => {
1343
+ return n.translator = new W(n.services, i), n.translator.on("*", (o, ...u) => {
1344
1344
  n.emit(o, ...u);
1345
- }), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
1345
+ }), n.init(i, t), n.translator.options = i, n.translator.backendConnector.services.utils = {
1346
1346
  hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
1347
1347
  }, n;
1348
1348
  }
@@ -1356,24 +1356,24 @@ class M extends Y {
1356
1356
  };
1357
1357
  }
1358
1358
  }
1359
- const x = M.createInstance();
1360
- x.createInstance;
1361
- x.dir;
1362
- x.init;
1363
- x.loadResources;
1364
- x.reloadResources;
1365
- x.use;
1366
- x.changeLanguage;
1367
- x.getFixedT;
1368
- x.t;
1369
- x.exists;
1370
- x.setDefaultNamespace;
1371
- x.hasLoadedNamespace;
1372
- x.loadNamespaces;
1373
- x.loadLanguages;
1374
- const We = (a) => {
1359
+ const y = M.createInstance();
1360
+ y.createInstance;
1361
+ y.dir;
1362
+ y.init;
1363
+ y.loadResources;
1364
+ y.reloadResources;
1365
+ y.use;
1366
+ y.changeLanguage;
1367
+ y.getFixedT;
1368
+ y.t;
1369
+ y.exists;
1370
+ y.setDefaultNamespace;
1371
+ y.hasLoadedNamespace;
1372
+ y.loadNamespaces;
1373
+ y.loadLanguages;
1374
+ const Ge = (a) => {
1375
1375
  var e, t;
1376
- !((e = a == null ? void 0 : a.i18n) != null && e.language) || !((t = a == null ? void 0 : a.i18n) != null && t.translations) || x.language === a.i18n.language && x.isInitialized || x.init({
1376
+ !((e = a == null ? void 0 : a.i18n) != null && e.language) || !((t = a == null ? void 0 : a.i18n) != null && t.translations) || y.language === a.i18n.language && y.isInitialized || y.init({
1377
1377
  lng: a.i18n.language,
1378
1378
  fallbackLng: "en",
1379
1379
  resources: a.i18n.translations,
@@ -1383,30 +1383,30 @@ const We = (a) => {
1383
1383
  });
1384
1384
  };
1385
1385
  /**
1386
- * @license @tabler/icons-react v3.36.1 - MIT
1386
+ * @license @tabler/icons-react v3.37.1 - MIT
1387
1387
  *
1388
1388
  * This source code is licensed under the MIT license.
1389
1389
  * See the LICENSE file in the root directory of this source tree.
1390
1390
  */
1391
- const Be = [["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" }]], Ye = we("outline", "alert-circle", "AlertCircle", Be), Je = (a, e) => {
1392
- if (!a || !a.includes("|")) return x.t(a, e);
1393
- const [t, i] = a.split("|", 2).map((s) => s.trim());
1394
- return x.t(
1395
- [t, i].filter((s) => !!s),
1391
+ const _e = [["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" }]], Qe = we("outline", "alert-circle", "AlertCircle", _e), We = (a, e) => {
1392
+ if (!a || !a.includes("|")) return y.t(a, e);
1393
+ const [t, s] = a.split("|", 2).map((i) => i.trim());
1394
+ return y.t(
1395
+ [t, s].filter((i) => !!i),
1396
1396
  e
1397
1397
  );
1398
- }, Ge = (a) => {
1398
+ }, Ze = (a) => {
1399
1399
  const e = {};
1400
1400
  return Object.keys(a).forEach((t) => {
1401
- const i = a[t];
1402
- e[t] = typeof i == "string" ? Je(i) : i;
1401
+ const s = a[t];
1402
+ e[t] = typeof s == "string" ? We(s) : s;
1403
1403
  }), e;
1404
1404
  };
1405
1405
  export {
1406
- Ye as I,
1407
- We as a,
1408
- Je as b,
1409
- x as i,
1410
- Ge as r
1406
+ Qe as I,
1407
+ Ge as a,
1408
+ We as b,
1409
+ y as i,
1410
+ Ze as r
1411
1411
  };
1412
- //# sourceMappingURL=component.utils-DubLDCwF.js.map
1412
+ //# sourceMappingURL=component.utils-DNw0iugA.js.map