@dso-toolkit/core 92.0.0 → 94.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. package/dist/bundle/dso-accordion-section.js +15 -21
  2. package/dist/bundle/dso-action-list-item.js +1 -1
  3. package/dist/bundle/dso-action-list.js +1 -1
  4. package/dist/bundle/dso-advanced-select.js +11 -17
  5. package/dist/bundle/dso-alert.js +1 -1
  6. package/dist/bundle/dso-annotation-activiteit.js +11 -17
  7. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +11 -17
  8. package/dist/bundle/dso-annotation-kaart.js +3 -3
  9. package/dist/bundle/dso-annotation-locatie.js +1 -1
  10. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +11 -17
  11. package/dist/bundle/dso-autosuggest.js +3 -3
  12. package/dist/bundle/dso-badge.js +1 -1
  13. package/dist/bundle/dso-card.js +1 -1
  14. package/dist/bundle/dso-document-component.js +1 -1
  15. package/dist/bundle/dso-header.js +1 -1
  16. package/dist/bundle/dso-icon-button.js +1 -1
  17. package/dist/bundle/dso-image-overlay.js +1 -1
  18. package/dist/bundle/dso-info-button.js +1 -1
  19. package/dist/bundle/dso-info.js +1 -1
  20. package/dist/bundle/dso-label.js +1 -1
  21. package/dist/bundle/dso-legend-group.js +3 -3
  22. package/dist/bundle/dso-legend-item.js +6 -6
  23. package/dist/bundle/dso-legend.js +4 -4
  24. package/dist/bundle/dso-list-button.js +7 -7
  25. package/dist/bundle/dso-logo.js +1 -1
  26. package/dist/bundle/dso-map-base-layers.js +7 -7
  27. package/dist/bundle/dso-map-controls.js +5 -5
  28. package/dist/bundle/dso-map-layer-object.js +3 -3
  29. package/dist/bundle/dso-map-layer.js +3 -3
  30. package/dist/bundle/dso-map-message.js +2 -2
  31. package/dist/bundle/dso-map-overlays.js +7 -7
  32. package/dist/bundle/dso-mark-bar.js +2 -2
  33. package/dist/bundle/dso-modal.js +1 -130
  34. package/dist/bundle/dso-onboarding-tip.js +3 -3
  35. package/dist/bundle/dso-ozon-content-toggletip.js +2 -2
  36. package/dist/bundle/dso-ozon-content.js +1 -1
  37. package/dist/bundle/dso-pagination.js +1 -1
  38. package/dist/bundle/dso-panel.js +1 -1
  39. package/dist/bundle/dso-plekinfo-card.js +2 -2
  40. package/dist/bundle/dso-progress-indicator.js +1 -1
  41. package/dist/bundle/dso-project-item.js +7 -13
  42. package/dist/bundle/dso-renvooi.js +1 -1
  43. package/dist/bundle/dso-responsive-element.js +1 -1
  44. package/dist/bundle/dso-scrollable.js +1 -1
  45. package/dist/bundle/dso-segmented-button.js +1 -1
  46. package/dist/bundle/dso-selectable.js +1 -1
  47. package/dist/bundle/dso-skiplink.js +1 -1
  48. package/dist/bundle/dso-slide-toggle.js +1 -1
  49. package/dist/bundle/dso-survey-rating.js +5 -5
  50. package/dist/bundle/dso-table.js +1 -1
  51. package/dist/bundle/dso-tabs.js +1 -1
  52. package/dist/bundle/dso-tijdreis-banner.js +1 -1
  53. package/dist/bundle/dso-tooltip.js +2114 -1
  54. package/dist/bundle/dso-tree-view.js +2 -2
  55. package/dist/bundle/dso-viewer-grid.js +2 -2
  56. package/dist/bundle/dsot-document-component-demo.js +26 -26
  57. package/dist/bundle/{p-DBGoQkQq.js → p-2tXDC-mE.js} +22 -4
  58. package/dist/bundle/p-4jD6qNeC.js +119 -0
  59. package/dist/bundle/{p-CIhIApHw.js → p-B4Kb_arU.js} +1 -1
  60. package/dist/bundle/p-BB8Q4bTF.js +102 -0
  61. package/dist/bundle/{p-CtWjZAYk.js → p-BDZgCEi_.js} +5 -5
  62. package/dist/bundle/{p-B3_SLWNA.js → p-BKL5unEI.js} +70 -52
  63. package/dist/bundle/{p-ZVYFxI1s.js → p-BMgZM5oN.js} +1 -1
  64. package/dist/bundle/{p-pBMyyJLQ.js → p-BT0nzb2X.js} +3 -3
  65. package/dist/bundle/p-BX9vCS1x.js +189 -0
  66. package/dist/{esm/i18n-ULwgxD7S.js → bundle/p-BjdGayiZ.js} +1 -0
  67. package/dist/bundle/p-BkHY2EoZ.js +100 -0
  68. package/dist/bundle/{p-UID4cKLB.js → p-BoM2KCmJ.js} +1 -1
  69. package/dist/bundle/p-BpNIy3Gp.js +1209 -0
  70. package/dist/bundle/p-BzvLlrTc.js +79 -0
  71. package/dist/bundle/{p-lNuTBKCo.js → p-C9SAMpT0.js} +3 -3
  72. package/dist/bundle/{p-coDX50W3.js → p-CFQP85B5.js} +2 -2
  73. package/dist/bundle/p-CfExzw6u.js +341 -0
  74. package/dist/bundle/p-Cl_08-If.js +132 -0
  75. package/dist/bundle/p-DAYJrJjQ.js +166 -0
  76. package/dist/bundle/{p-BPivYT1Y.js → p-DMi4FJv9.js} +1 -1
  77. package/dist/bundle/{p-DZiogh-K.js → p-DZfxh8wr.js} +18 -14
  78. package/dist/bundle/{p-BUfOvN-j.js → p-qAIaDeIJ.js} +2 -2
  79. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  80. package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
  81. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  82. package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
  83. package/dist/cjs/dso-alert_7.cjs.entry.js +53 -66
  84. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +1 -1
  85. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +1 -1
  86. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +1 -1
  87. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +4 -4
  88. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +1 -1
  89. package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
  90. package/dist/cjs/dso-card.cjs.entry.js +1 -1
  91. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  92. package/dist/cjs/dso-icon_2.cjs.entry.js +15 -19
  93. package/dist/cjs/dso-info_3.cjs.entry.js +18 -15
  94. package/dist/cjs/dso-label_3.cjs.entry.js +34 -7
  95. package/dist/cjs/dso-legend-group.cjs.entry.js +2 -2
  96. package/dist/cjs/dso-legend-item.cjs.entry.js +2 -2
  97. package/dist/cjs/dso-legend.cjs.entry.js +2 -2
  98. package/dist/cjs/dso-list-button.cjs.entry.js +2 -2
  99. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  100. package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
  101. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  102. package/dist/cjs/dso-map-layer-object.cjs.entry.js +2 -2
  103. package/dist/cjs/dso-map-layer.cjs.entry.js +2 -2
  104. package/dist/cjs/dso-map-message.cjs.entry.js +2 -2
  105. package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
  106. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  107. package/dist/cjs/dso-modal.cjs.entry.js +3 -3
  108. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +2 -2
  109. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +2 -2
  110. package/dist/cjs/dso-progress-indicator.cjs.entry.js +2 -2
  111. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  112. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  113. package/dist/cjs/dso-scrollable.cjs.entry.js +26 -8
  114. package/dist/cjs/dso-segmented-button.cjs.entry.js +1 -1
  115. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  116. package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
  117. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  118. package/dist/cjs/dso-tijdreis-banner.cjs.entry.js +1 -1
  119. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  120. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  121. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  122. package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
  123. package/dist/cjs/{i18n-EVv0JhYm.js → i18n-DjTTL6i6.js} +1 -0
  124. package/dist/cjs/loader.cjs.js +1 -1
  125. package/dist/cjs/{position-tooltip.function-CppeKAt4.js → position-tooltip.function-BjWi5ZKZ.js} +69 -45
  126. package/dist/cjs/tooltip.functional-component-C8t-bdP0.js +7 -0
  127. package/dist/collection/components/accordion/components/accordion-section.css +2 -2
  128. package/dist/collection/components/action-list/action-list.css +3 -3
  129. package/dist/collection/components/action-list/components/action-list-item.css +3 -3
  130. package/dist/collection/components/advanced-select/advanced-select.css +1 -0
  131. package/dist/collection/components/alert/alert.css +38 -0
  132. package/dist/collection/components/annotation/annotation.css +4 -3
  133. package/dist/collection/components/badge/badge.css +0 -10
  134. package/dist/collection/components/badge/badge.js +22 -26
  135. package/dist/collection/components/card/card.css +1 -0
  136. package/dist/collection/components/document-component/document-component.css +35 -12
  137. package/dist/collection/components/document-component/document-component.js +2 -2
  138. package/dist/collection/components/icon-button/icon-button.css +13 -8
  139. package/dist/collection/components/icon-button/icon-button.js +12 -20
  140. package/dist/collection/components/image-overlay/image-overlay.css +6 -6
  141. package/dist/collection/components/info-button/info-button.css +0 -5
  142. package/dist/collection/components/info-button/info-button.js +14 -10
  143. package/dist/collection/components/label/label.css +46 -3
  144. package/dist/collection/components/label/label.js +30 -6
  145. package/dist/collection/components/legend/legend-group/legend-group.js +1 -1
  146. package/dist/collection/components/legend/legend-item/legend-item.js +1 -1
  147. package/dist/collection/components/legend/legend.js +1 -1
  148. package/dist/collection/components/list-button/list-button.css +10 -4
  149. package/dist/collection/components/list-button/list-button.js +1 -1
  150. package/dist/collection/components/logo/logo.js +1 -1
  151. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  152. package/dist/collection/components/map-controls/map-controls.css +29 -7
  153. package/dist/collection/components/map-controls/map-controls.js +1 -1
  154. package/dist/collection/components/map-layer/components/map-layer-object.css +2 -2
  155. package/dist/collection/components/map-layer/components/map-layer-object.js +1 -1
  156. package/dist/collection/components/map-layer/map-layer.css +2 -2
  157. package/dist/collection/components/map-layer/map-layer.js +1 -1
  158. package/dist/collection/components/map-message/map-message.js +2 -2
  159. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  160. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  161. package/dist/collection/components/modal/modal.css +50 -69
  162. package/dist/collection/components/modal/modal.js +1 -1
  163. package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
  164. package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.css +3 -8
  165. package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +16 -16
  166. package/dist/collection/components/ozon-content/nodes/noot.node.js +2 -3
  167. package/dist/collection/components/ozon-content/ozon-content.css +55 -193
  168. package/dist/collection/components/ozon-content/ozon-content.js +2 -2
  169. package/dist/collection/components/panel/panel.js +1 -1
  170. package/dist/collection/components/plekinfo-card/plekinfo-card.css +3 -3
  171. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  172. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  173. package/dist/collection/components/project-item/project-item.js +1 -1
  174. package/dist/collection/components/renvooi/renvooi.css +3 -3
  175. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  176. package/dist/collection/components/scrollable/scrollable.js +22 -4
  177. package/dist/collection/components/segmented-button/segmented-button.js +1 -1
  178. package/dist/collection/components/selectable/selectable.js +1 -1
  179. package/dist/collection/components/skiplink/skiplink.js +1 -1
  180. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  181. package/dist/collection/components/survey-rating/survey-rating.css +6 -1
  182. package/dist/collection/components/survey-rating/survey-rating.js +2 -2
  183. package/dist/collection/components/table/table.css +37 -245
  184. package/dist/collection/components/table/table.js +1 -10
  185. package/dist/collection/components/tabs/tabs.js +1 -1
  186. package/dist/collection/components/tijdreis-banner/tijdreis-banner.js +1 -1
  187. package/dist/collection/components/tooltip/tooltip.js +2 -2
  188. package/dist/collection/components/tree-view/tree-view.js +1 -1
  189. package/dist/collection/components/viewer-grid/viewer-grid.css +9 -3
  190. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  191. package/dist/collection/functional-components/tooltip/position-tooltip.function.js +69 -45
  192. package/dist/collection/functional-components/tooltip/tooltip.functional-component.js +1 -7
  193. package/dist/components/alert.js +1 -1
  194. package/dist/components/annotation-locatie.js +1 -1
  195. package/dist/components/badge.js +1 -1
  196. package/dist/components/document-component.js +1 -1
  197. package/dist/components/dso-accordion-section.js +1 -1
  198. package/dist/components/dso-action-list-item.js +1 -1
  199. package/dist/components/dso-action-list.js +1 -1
  200. package/dist/components/dso-advanced-select.js +3 -3
  201. package/dist/components/dso-annotation-activiteit.js +1 -1
  202. package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
  203. package/dist/components/dso-annotation-kaart.js +1 -1
  204. package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
  205. package/dist/components/dso-card.js +1 -1
  206. package/dist/components/dso-legend-group.js +1 -1
  207. package/dist/components/dso-legend-item.js +1 -1
  208. package/dist/components/dso-legend.js +1 -1
  209. package/dist/components/dso-list-button.js +1 -1
  210. package/dist/components/dso-logo.js +1 -1
  211. package/dist/components/dso-map-base-layers.js +1 -1
  212. package/dist/components/dso-map-controls.js +1 -1
  213. package/dist/components/dso-map-layer-object.js +1 -1
  214. package/dist/components/dso-map-layer.js +1 -1
  215. package/dist/components/dso-map-message.js +1 -1
  216. package/dist/components/dso-map-overlays.js +1 -1
  217. package/dist/components/dso-mark-bar.js +1 -1
  218. package/dist/components/dso-modal.js +1 -1
  219. package/dist/components/dso-onboarding-tip.js +1 -1
  220. package/dist/components/dso-ozon-content-toggletip.js +1 -1
  221. package/dist/components/dso-plekinfo-card.js +1 -1
  222. package/dist/components/dso-project-item.js +1 -1
  223. package/dist/components/dso-segmented-button.js +1 -1
  224. package/dist/components/dso-skiplink.js +1 -1
  225. package/dist/components/dso-survey-rating.js +1 -1
  226. package/dist/components/dso-tabs.js +1 -1
  227. package/dist/components/dso-tijdreis-banner.js +1 -1
  228. package/dist/components/dso-tooltip.js +1 -1
  229. package/dist/components/dso-tree-view.js +1 -1
  230. package/dist/components/dso-viewer-grid.js +1 -1
  231. package/dist/components/dsot-document-component-demo.js +1 -1
  232. package/dist/components/i18n.js +1 -1
  233. package/dist/components/icon-button.js +1 -1
  234. package/dist/components/image-overlay.js +1 -1
  235. package/dist/components/index.d.ts +1 -1
  236. package/dist/components/info-button.js +1 -1
  237. package/dist/components/label.js +1 -1
  238. package/dist/components/modal.js +1 -0
  239. package/dist/components/ozon-content-toggletip.js +1 -1
  240. package/dist/components/ozon-content.js +1 -1
  241. package/dist/components/panel.js +1 -1
  242. package/dist/components/progress-indicator.js +1 -1
  243. package/dist/components/renvooi.js +1 -1
  244. package/dist/components/responsive-element.js +1 -1
  245. package/dist/components/scrollable.js +1 -1
  246. package/dist/components/selectable.js +1 -1
  247. package/dist/components/slide-toggle.js +1 -1
  248. package/dist/components/table.js +1 -1
  249. package/dist/components/tooltip.functional-component.js +1 -1
  250. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  251. package/dist/dso-toolkit/p-014d53da.entry.js +1 -0
  252. package/dist/dso-toolkit/p-05e83c0e.entry.js +1 -0
  253. package/dist/dso-toolkit/{p-96002988.entry.js → p-0c2c8a60.entry.js} +1 -1
  254. package/dist/dso-toolkit/{p-4f7c6b0b.entry.js → p-0d6ea6dd.entry.js} +1 -1
  255. package/dist/dso-toolkit/{p-3f7b7a21.entry.js → p-28889e28.entry.js} +1 -1
  256. package/dist/dso-toolkit/p-291e25c5.entry.js +1 -0
  257. package/dist/dso-toolkit/{p-e73b1880.entry.js → p-379e5927.entry.js} +1 -1
  258. package/dist/dso-toolkit/{p-0d2c73be.entry.js → p-37a3ff29.entry.js} +1 -1
  259. package/dist/dso-toolkit/p-3b7d995d.entry.js +1 -0
  260. package/dist/dso-toolkit/{p-f3a49ee4.entry.js → p-3c4c4af0.entry.js} +1 -1
  261. package/dist/dso-toolkit/p-416d1ad0.entry.js +1 -0
  262. package/dist/dso-toolkit/p-49674ca6.entry.js +1 -0
  263. package/dist/dso-toolkit/{p-75a6103a.entry.js → p-49ce0bc2.entry.js} +1 -1
  264. package/dist/dso-toolkit/{p-1796464a.entry.js → p-520f708a.entry.js} +1 -1
  265. package/dist/dso-toolkit/{p-520eb463.entry.js → p-54314198.entry.js} +1 -1
  266. package/dist/dso-toolkit/{p-7d2a6081.entry.js → p-5a69c21e.entry.js} +1 -1
  267. package/dist/dso-toolkit/{p-c8b47115.entry.js → p-62eeaefb.entry.js} +1 -1
  268. package/dist/dso-toolkit/p-651278fd.entry.js +1 -0
  269. package/dist/dso-toolkit/p-6d8928d6.entry.js +1 -0
  270. package/dist/dso-toolkit/{p-7a47230a.entry.js → p-7e80f973.entry.js} +1 -1
  271. package/dist/dso-toolkit/{p-a97aa67d.entry.js → p-919a447c.entry.js} +1 -1
  272. package/dist/dso-toolkit/p-92d64203.entry.js +1 -0
  273. package/dist/dso-toolkit/p-953dd513.entry.js +1 -0
  274. package/dist/dso-toolkit/{p-c86f85f1.entry.js → p-989b31be.entry.js} +1 -1
  275. package/dist/dso-toolkit/p-9bff9c4f.entry.js +1 -0
  276. package/dist/dso-toolkit/{p-112128be.entry.js → p-9d97125b.entry.js} +1 -1
  277. package/dist/dso-toolkit/{p-ULwgxD7S.js → p-BjdGayiZ.js} +1 -1
  278. package/dist/dso-toolkit/p-CVEJH8zK.js +1 -0
  279. package/dist/dso-toolkit/p-DdaJdjEq.js +1 -0
  280. package/dist/dso-toolkit/p-a39f8099.entry.js +1 -0
  281. package/dist/dso-toolkit/p-a4981918.entry.js +1 -0
  282. package/dist/dso-toolkit/{p-75001c55.entry.js → p-a6cd2273.entry.js} +1 -1
  283. package/dist/dso-toolkit/{p-ea0d2c1f.entry.js → p-a7df91e8.entry.js} +1 -1
  284. package/dist/dso-toolkit/p-aa21aae7.entry.js +1 -0
  285. package/dist/dso-toolkit/p-ae6c1f71.entry.js +1 -0
  286. package/dist/dso-toolkit/{p-de38f478.entry.js → p-af0bf5ef.entry.js} +1 -1
  287. package/dist/dso-toolkit/{p-b2841387.entry.js → p-c07a37f2.entry.js} +1 -1
  288. package/dist/dso-toolkit/p-c878f52f.entry.js +1 -0
  289. package/dist/dso-toolkit/p-ca9649e7.entry.js +1 -0
  290. package/dist/dso-toolkit/{p-26cd4149.entry.js → p-cccebe14.entry.js} +1 -1
  291. package/dist/dso-toolkit/p-cf9589b5.entry.js +1 -0
  292. package/dist/dso-toolkit/p-d3780fe6.entry.js +1 -0
  293. package/dist/dso-toolkit/p-d7abcaa1.entry.js +1 -0
  294. package/dist/dso-toolkit/{p-28494f89.entry.js → p-deba4529.entry.js} +1 -1
  295. package/dist/dso-toolkit/{p-b0a9948f.entry.js → p-e3c79b85.entry.js} +1 -1
  296. package/dist/dso-toolkit/p-eaf1d894.entry.js +1 -0
  297. package/dist/esm/dso-accordion-section.entry.js +1 -1
  298. package/dist/esm/dso-action-list-item.entry.js +1 -1
  299. package/dist/esm/dso-action-list.entry.js +1 -1
  300. package/dist/esm/dso-advanced-select.entry.js +1 -1
  301. package/dist/esm/dso-alert_7.entry.js +53 -66
  302. package/dist/esm/dso-annotation-activiteit.entry.js +1 -1
  303. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +1 -1
  304. package/dist/esm/dso-annotation-kaart.entry.js +1 -1
  305. package/dist/esm/dso-annotation-locatie_2.entry.js +4 -4
  306. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +1 -1
  307. package/dist/esm/dso-autosuggest.entry.js +1 -1
  308. package/dist/esm/dso-card.entry.js +1 -1
  309. package/dist/esm/dso-header.entry.js +1 -1
  310. package/dist/esm/dso-icon_2.entry.js +15 -19
  311. package/dist/esm/dso-info_3.entry.js +18 -15
  312. package/dist/esm/dso-label_3.entry.js +34 -7
  313. package/dist/esm/dso-legend-group.entry.js +2 -2
  314. package/dist/esm/dso-legend-item.entry.js +2 -2
  315. package/dist/esm/dso-legend.entry.js +2 -2
  316. package/dist/esm/dso-list-button.entry.js +2 -2
  317. package/dist/esm/dso-logo.entry.js +1 -1
  318. package/dist/esm/dso-map-base-layers.entry.js +2 -2
  319. package/dist/esm/dso-map-controls.entry.js +3 -3
  320. package/dist/esm/dso-map-layer-object.entry.js +2 -2
  321. package/dist/esm/dso-map-layer.entry.js +2 -2
  322. package/dist/esm/dso-map-message.entry.js +2 -2
  323. package/dist/esm/dso-map-overlays.entry.js +2 -2
  324. package/dist/esm/dso-mark-bar.entry.js +1 -1
  325. package/dist/esm/dso-modal.entry.js +3 -3
  326. package/dist/esm/dso-onboarding-tip.entry.js +2 -2
  327. package/dist/esm/dso-plekinfo-card.entry.js +2 -2
  328. package/dist/esm/dso-progress-indicator.entry.js +2 -2
  329. package/dist/esm/dso-project-item.entry.js +1 -1
  330. package/dist/esm/dso-responsive-element.entry.js +1 -1
  331. package/dist/esm/dso-scrollable.entry.js +22 -4
  332. package/dist/esm/dso-segmented-button.entry.js +1 -1
  333. package/dist/esm/dso-skiplink.entry.js +1 -1
  334. package/dist/esm/dso-survey-rating.entry.js +3 -3
  335. package/dist/esm/dso-tabs.entry.js +1 -1
  336. package/dist/esm/dso-tijdreis-banner.entry.js +1 -1
  337. package/dist/esm/dso-toolkit.js +1 -1
  338. package/dist/esm/dso-tooltip.entry.js +1 -1
  339. package/dist/esm/dso-tree-view.entry.js +1 -1
  340. package/dist/esm/dso-viewer-grid.entry.js +2 -2
  341. package/dist/{bundle/p-ULwgxD7S.js → esm/i18n-BjdGayiZ.js} +1 -0
  342. package/dist/esm/loader.js +1 -1
  343. package/dist/esm/{position-tooltip.function-Cf2lM20T.js → position-tooltip.function-DoXRpCfQ.js} +69 -45
  344. package/dist/esm/tooltip.functional-component-VB1_733J.js +5 -0
  345. package/dist/types/components/badge/badge.d.ts +5 -6
  346. package/dist/types/components/icon-button/icon-button.d.ts +8 -8
  347. package/dist/types/components/info-button/info-button.d.ts +2 -2
  348. package/dist/types/components/label/label.d.ts +6 -2
  349. package/dist/types/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.d.ts +5 -5
  350. package/dist/types/components/ozon-content/nodes/noot.node.d.ts +1 -1
  351. package/dist/types/components/table/table.d.ts +0 -3
  352. package/dist/types/functional-components/tooltip/tooltip.functional-component.d.ts +1 -2
  353. package/package.json +9 -8
  354. package/dist/bundle/p-8Tkxj9ba.js +0 -85
  355. package/dist/bundle/p-BMEJps6X.js +0 -97
  356. package/dist/bundle/p-C3yNQ7WK.js +0 -1204
  357. package/dist/bundle/p-Ce4mIWAg.js +0 -341
  358. package/dist/bundle/p-CslDhrwG.js +0 -102
  359. package/dist/bundle/p-D3dXzdge.js +0 -2116
  360. package/dist/bundle/p-DALBSzfQ.js +0 -170
  361. package/dist/bundle/p-DHOQChpz.js +0 -172
  362. package/dist/bundle/p-Rz6GCQXJ.js +0 -123
  363. package/dist/cjs/tooltip.functional-component-DrN_v5w1.js +0 -13
  364. package/dist/components/tooltip.js +0 -1
  365. package/dist/dso-toolkit/p-1440ff2e.entry.js +0 -1
  366. package/dist/dso-toolkit/p-25982563.entry.js +0 -1
  367. package/dist/dso-toolkit/p-294c3de2.entry.js +0 -1
  368. package/dist/dso-toolkit/p-3275451e.entry.js +0 -1
  369. package/dist/dso-toolkit/p-3a49df1e.entry.js +0 -1
  370. package/dist/dso-toolkit/p-47379b28.entry.js +0 -1
  371. package/dist/dso-toolkit/p-53470b6d.entry.js +0 -1
  372. package/dist/dso-toolkit/p-60bd9c8f.entry.js +0 -1
  373. package/dist/dso-toolkit/p-62200d9a.entry.js +0 -1
  374. package/dist/dso-toolkit/p-650b8ea0.entry.js +0 -1
  375. package/dist/dso-toolkit/p-6b461d76.entry.js +0 -1
  376. package/dist/dso-toolkit/p-6c8e1ef8.entry.js +0 -1
  377. package/dist/dso-toolkit/p-7b702683.entry.js +0 -1
  378. package/dist/dso-toolkit/p-808812c1.entry.js +0 -1
  379. package/dist/dso-toolkit/p-9a8a99a5.entry.js +0 -1
  380. package/dist/dso-toolkit/p-BaoXsbsy.js +0 -1
  381. package/dist/dso-toolkit/p-BuFNkQa2.js +0 -1
  382. package/dist/dso-toolkit/p-a49290e8.entry.js +0 -1
  383. package/dist/dso-toolkit/p-aed43ede.entry.js +0 -1
  384. package/dist/dso-toolkit/p-c2b4161b.entry.js +0 -1
  385. package/dist/dso-toolkit/p-de8977da.entry.js +0 -1
  386. package/dist/dso-toolkit/p-edea17c9.entry.js +0 -1
  387. package/dist/dso-toolkit/p-fb97e1cd.entry.js +0 -1
  388. package/dist/esm/tooltip.functional-component-eBucNQlw.js +0 -11
@@ -1 +1 @@
1
- const t=t=>"string"==typeof t,s=()=>{let t,s;const i=new Promise(((i,e)=>{t=i,s=e}));return i.resolve=t,i.reject=s,i},i=t=>null==t?"":""+t,e=/###/g,n=t=>t&&t.indexOf("###")>-1?t.replace(e,"."):t,o=s=>!s||t(s),r=(s,i,e)=>{const r=t(i)?i.split("."):i;let h=0;for(;h<r.length-1;){if(o(s))return{};const t=n(r[h]);!s[t]&&e&&(s[t]=new e),s=Object.prototype.hasOwnProperty.call(s,t)?s[t]:{},++h}return o(s)?{}:{obj:s,k:n(r[h])}},h=(t,s,i)=>{const{obj:e,k:n}=r(t,s,Object);if(void 0!==e||1===s.length)return void(e[n]=i);let o=s[s.length-1],h=s.slice(0,s.length-1),a=r(t,h,Object);for(;void 0===a.obj&&h.length;)o=`${h[h.length-1]}.${o}`,h=h.slice(0,h.length-1),a=r(t,h,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=i},a=(t,s)=>{const{obj:i,k:e}=r(t,s);if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e]},c=(s,i,e)=>{for(const n in i)"__proto__"!==n&&"constructor"!==n&&(n in s?t(s[n])||s[n]instanceof String||t(i[n])||i[n]instanceof String?e&&(s[n]=i[n]):c(s[n],i[n],e):s[n]=i[n]);return s},l=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const d=s=>t(s)?s.replace(/[&<>"'\/]/g,(t=>u[t])):s,f=[" ",",","?","!",";"],p=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const s=this.regExpMap.get(t);if(void 0!==s)return s;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}(20),g=(t,s,i=".")=>{if(!t)return;if(t[s]){if(!Object.prototype.hasOwnProperty.call(t,s))return;return t[s]}const e=s.split(i);let n=t;for(let t=0;t<e.length;){if(!n||"object"!=typeof n)return;let s,o="";for(let r=t;r<e.length;++r)if(r!==t&&(o+=i),o+=e[r],s=n[o],void 0!==s){if(["string","number","boolean"].indexOf(typeof s)>-1&&r<e.length-1)continue;t+=r-t+1;break}n=s}return n},y=t=>t?.replace(/_/g,"-"),m={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,s){console?.[t]?.apply?.(console,s)}};class v{constructor(t,s={}){this.init(t,s)}init(t,s={}){this.prefix=s.prefix||"i18next:",this.logger=t||m,this.options=s,this.debug=s.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(s,i,e,n){return n&&!this.debug?null:(t(s[0])&&(s[0]=`${e}${this.prefix} ${s[0]}`),this.logger[i](s))}create(t){return new v(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new v(this.logger,t)}}var $=new v;class b{constructor(){this.observers={}}on(t,s){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const i=this.observers[t].get(s)||0;this.observers[t].set(s,i+1)})),this}off(t,s){this.observers[t]&&(s?this.observers[t].delete(s):delete this.observers[t])}emit(t,...s){this.observers[t]&&Array.from(this.observers[t].entries()).forEach((([t,i])=>{for(let e=0;e<i;e++)t(...s)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((([i,e])=>{for(let n=0;n<e;n++)i.apply(i,[t,...s])}))}}class x extends b{constructor(t,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=s,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const s=this.options.ns.indexOf(t);s>-1&&this.options.ns.splice(s,1)}getResource(s,i,e,n={}){const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;s.indexOf(".")>-1?h=s.split("."):(h=[s,i],e&&(Array.isArray(e)?h.push(...e):t(e)&&o?h.push(...e.split(o)):h.push(e)));const c=a(this.data,h);return!c&&!i&&!e&&s.indexOf(".")>-1&&(s=h[0],i=h[1],e=h.slice(2).join(".")),!c&&r&&t(e)?g(this.data?.[s]?.[i],e,o):c}addResource(t,s,i,e,n={silent:!1}){const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let r=[t,s];i&&(r=r.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(r=t.split("."),e=s,s=r[1]),this.addNamespaces(s),h(this.data,r,e),n.silent||this.emit("added",t,s,i,e)}addResources(s,i,e,n={silent:!1}){for(const n in e)(t(e[n])||Array.isArray(e[n]))&&this.addResource(s,i,n,e[n],{silent:!0});n.silent||this.emit("added",s,i,e)}addResourceBundle(t,s,i,e,n,o={silent:!1,skipCopy:!1}){let r=[t,s];t.indexOf(".")>-1&&(r=t.split("."),e=i,i=s,s=r[1]),this.addNamespaces(s);let l=a(this.data,r)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),e?c(l,i,n):l={...l,...i},h(this.data,r,l),o.silent||this.emit("added",t,s,i)}removeResourceBundle(t,s){this.hasResourceBundle(t,s)&&delete this.data[t][s],this.removeNamespaces(s),this.emit("removed",t,s)}hasResourceBundle(t,s){return void 0!==this.getResource(t,s)}getResourceBundle(t,s){return s||(s=this.options.defaultNS),this.getResource(t,s)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const s=this.getDataByLanguage(t);return!!(s&&Object.keys(s)||[]).find((t=>s[t]&&Object.keys(s[t]).length>0))}toJSON(){return this.data}}var w={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,s,i,e,n){return t.forEach((t=>{s=this.processors[t]?.process(s,i,e,n)??s})),s}};const j=Symbol("i18next/PATH_KEY");function O(t,s){const{[j]:i}=t(function(){const t=[],s=Object.create(null);let i;return s.get=(e,n)=>(i?.revoke?.(),n===j?t:(t.push(n),i=Proxy.revocable(e,s),i.proxy)),Proxy.revocable(Object.create(null),s).proxy}()),e=s?.keySeparator??".",n=s?.nsSeparator??":";if(i.length>1&&n){const t=s?.ns,o=Array.isArray(t)?t:null;if(o&&o.length>1&&o.slice(1).includes(i[0]))return`${i[0]}${n}${i.slice(1).join(e)}`}return i.join(e)}const S={},k=s=>!t(s)&&"boolean"!=typeof s&&"number"!=typeof s;class N extends b{constructor(t,s={}){var i,e;super(),i=t,e=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{i[t]&&(e[t]=i[t])})),this.options=s,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=$.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,s={interpolation:{}}){const i={...s};if(null==t)return!1;const e=this.resolve(t,i);if(void 0===e?.res)return!1;const n=k(e.res);return!1!==i.returnObjects||!n}extractFromKey(s,i){let e=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===e&&(e=":");const n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let o=i.ns||this.options.defaultNS||[];const r=e&&s.indexOf(e)>-1,h=!(this.options.userDefinedKeySeparator||i.keySeparator||this.options.userDefinedNsSeparator||i.nsSeparator||((t,s,i)=>{s=s||"",i=i||"";const e=f.filter((t=>s.indexOf(t)<0&&i.indexOf(t)<0));if(0===e.length)return!0;const n=p.getRegExp(`(${e.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!n.test(t);if(!o){const s=t.indexOf(i);s>0&&!n.test(t.substring(0,s))&&(o=!0)}return o})(s,e,n));if(r&&!h){const i=s.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:s,namespaces:t(o)?[o]:o};const r=s.split(e);(e!==n||e===n&&this.options.ns.indexOf(r[0])>-1)&&(o=r.shift()),s=r.join(n)}return{key:s,namespaces:t(o)?[o]:o}}translate(s,i,e){let n="object"==typeof i?{...i}:i;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==s)return"";"function"==typeof s&&(s=O(s,{...this.options,...n})),Array.isArray(s)||(s=[String(s)]),s=s.map((t=>"function"==typeof t?O(t,{...this.options,...n}):String(t)));const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:h,namespaces:a}=this.extractFromKey(s[s.length-1],n),c=a[a.length-1];let l=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");const u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${c}${l}${h}`,usedKey:h,exactUsedKey:h,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${l}${h}`:o?{res:h,usedKey:h,exactUsedKey:h,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:h;const f=this.resolve(s,n);let p=f?.res;const g=f?.usedKey||h,y=f?.exactUsedKey||h,m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,$=void 0!==n.count&&!t(n.count),b=N.hasDefaultValue(n),x=$?this.pluralResolver.getSuffix(u,n.count,n):"",w=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",j=$&&!n.ordinal&&0===n.count,S=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${w}`]||n.defaultValue;let L=p;v&&!p&&b&&(L=S);const R=k(L),P=Object.prototype.toString.apply(L);if(!(v&&L&&R&&["[object Number]","[object Function]","[object RegExp]"].indexOf(P)<0)||t(m)&&Array.isArray(L))if(v&&t(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,s,n,e));else{let t=!1,i=!1;!this.isValidLookup(p)&&b&&(t=!0,p=S),this.isValidLookup(p)||(i=!0,p=h);const o=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,a=b&&S!==p&&this.options.updateMissing;if(i||t||a){if(this.logger.log(a?"updateKey":"missingKey",u,c,h,a?S:p),r){const t=this.resolve(h,{...n,keySeparator:!1});t&&t.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.")}let t=[];const s=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&s&&s[0])for(let i=0;i<s.length;i++)t.push(s[i]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(n.lng||this.language):t.push(n.lng||this.language);const i=(t,s,i)=>{const e=b&&i!==p?i:o;this.options.missingKeyHandler?this.options.missingKeyHandler(t,c,s,e,a,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,c,s,e,a,n),this.emit("missingKey",t,c,s,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?t.forEach((t=>{const s=this.pluralResolver.getSuffixes(t,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&s.indexOf(`${this.options.pluralSeparator}zero`)<0&&s.push(`${this.options.pluralSeparator}zero`),s.forEach((s=>{i([t],h+s,n[`defaultValue${s}`]||S)}))})):i(t,h,S))}p=this.extendTranslation(p,s,n,f,e),i&&p===h&&this.options.appendNamespaceToMissingKey&&(p=`${c}${l}${h}`),(i||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${h}`:h,t?p:void 0,n))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,L,{...n,ns:a}):`key '${h} (${this.language})' returned an object instead of string.`;return o?(f.res=t,f.usedParams=this.getUsedParamsDetails(n),f):t}if(r){const t=Array.isArray(L),s=t?[]:{},i=t?y:g;for(const t in L)if(Object.prototype.hasOwnProperty.call(L,t)){const e=`${i}${r}${t}`;s[t]=this.translate(e,b&&!p?{...n,defaultValue:k(S)?S[t]:void 0,joinArrays:!1,ns:a}:{...n,joinArrays:!1,ns:a}),s[t]===e&&(s[t]=L[t])}p=s}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(s,i,e,n,o){if(this.i18nFormat?.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...e},e.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!e.skipInterpolation){e.interpolation&&this.interpolator.init({...e,interpolation:{...this.options.interpolation,...e.interpolation}});const r=t(s)&&(void 0!==e?.interpolation?.skipOnVariables?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(r){const t=s.match(this.interpolator.nestingRegexp);h=t&&t.length}let a=e.replace&&!t(e.replace)?e.replace:e;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),s=this.interpolator.interpolate(s,a,e.lng||this.language||n.usedLng,e),r){const t=s.match(this.interpolator.nestingRegexp);h<(t&&t.length)&&(e.nest=!1)}!e.lng&&n&&n.res&&(e.lng=this.language||n.usedLng),!1!==e.nest&&(s=this.interpolator.nest(s,((...t)=>o?.[0]!==t[0]||e.context?this.translate(...t,i):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${i[0]}`),null)),e)),e.interpolation&&this.interpolator.reset()}const r=e.postProcess||this.options.postProcess,h=t(r)?[r]:r;return null!=s&&h?.length&&!1!==e.applyPostProcessor&&(s=w.handle(h,s,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(e)},...e}:e,this)),s}resolve(s,i={}){let e,n,o,r,h;return t(s)&&(s=[s]),Array.isArray(s)&&(s=s.map((t=>"function"==typeof t?O(t,{...this.options,...i}):t))),s.forEach((s=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(s,i),c=a.key;n=c;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==i.count&&!t(i.count),d=u&&!i.ordinal&&0===i.count,f=void 0!==i.context&&(t(i.context)||"number"==typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);l.forEach((t=>{this.isValidLookup(e)||(h=t,S[`${p[0]}-${t}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(h)||(S[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${h}" 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!!!")),p.forEach((s=>{if(this.isValidLookup(e))return;r=s;const n=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(n,c,s,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(s,i.count,i));const e=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.ordinal&&0===t.indexOf(o)&&n.push(c+t.replace(o,this.options.pluralSeparator)),n.push(c+t),d&&n.push(c+e)),f){const s=`${c}${this.options.contextSeparator||"_"}${i.context}`;n.push(s),u&&(i.ordinal&&0===t.indexOf(o)&&n.push(s+t.replace(o,this.options.pluralSeparator)),n.push(s+t),d&&n.push(s+e))}}let h;for(;h=n.pop();)this.isValidLookup(e)||(o=h,e=this.getResource(s,t,h,i))})))}))})),{res:e,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:h}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,s,i,e={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,s,i,e):this.resourceStore.getResource(t,s,i,e)}getUsedParamsDetails(s={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],e=s.replace&&!t(s.replace);let n=e?s.replace:s;if(e&&void 0!==s.count&&(n.count=s.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!e){n={...n};for(const t of i)delete n[t]}return n}static hasDefaultValue(t){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&"defaultValue"===s.substring(0,12)&&void 0!==t[s])return!0;return!1}}class L{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}getScriptPartFromCode(t){if(!(t=y(t))||t.indexOf("-")<0)return null;const s=t.split("-");return 2===s.length?null:(s.pop(),"x"===s[s.length-1].toLowerCase()?null:this.formatLanguageCode(s.join("-")))}getLanguagePartFromCode(t){if(!(t=y(t))||t.indexOf("-")<0)return t;const s=t.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(s){if(t(s)&&s.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(s)[0]}catch(t){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?s.toLowerCase():s)}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let s;return t.forEach((t=>{if(s)return;const i=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(i)||(s=i)})),!s&&this.options.supportedLngs&&t.forEach((t=>{if(s)return;const i=this.getScriptPartFromCode(t);if(this.isSupportedCode(i))return s=i;const e=this.getLanguagePartFromCode(t);if(this.isSupportedCode(e))return s=e;s=this.options.supportedLngs.find((t=>t===e?t:t.indexOf("-")<0&&e.indexOf("-")<0?void 0:t.indexOf("-")>0&&e.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===e||0===t.indexOf(e)&&e.length>1?t:void 0))})),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(s,i){if(!s)return[];if("function"==typeof s&&(s=s(i)),t(s)&&(s=[s]),Array.isArray(s))return s;if(!i)return s.default||[];let e=s[i];return e||(e=s[this.getScriptPartFromCode(i)]),e||(e=s[this.formatLanguageCode(i)]),e||(e=s[this.getLanguagePartFromCode(i)]),e||(e=s.default),e||[]}toResolveHierarchy(s,i){const e=this.getFallbackCodes((!1===i?[]:i)||this.options.fallbackLng||[],s),n=[],o=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return t(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(s)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(s)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(s))):t(s)&&o(this.formatLanguageCode(s)),e.forEach((t=>{n.indexOf(t)<0&&o(this.formatLanguageCode(t))})),n}}const R={zero:0,one:1,two:2,few:3,many:4,other:5},P={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class E{constructor(t,s={}){this.languageUtils=t,this.options=s,this.logger=$.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,s={}){const i=y("dev"===t?"en":t),e=s.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:e});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let o;try{o=new Intl.PluralRules(i,{type:e})}catch(i){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),P;if(!t.match(/-|_/))return P;const e=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(e,s)}return this.pluralRulesCache[n]=o,o}needsPlural(t,s={}){let i=this.getRule(t,s);return i||(i=this.getRule("dev",s)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,s,i={}){return this.getSuffixes(t,i).map((t=>`${s}${t}`))}getSuffixes(t,s={}){let i=this.getRule(t,s);return i||(i=this.getRule("dev",s)),i?i.resolvedOptions().pluralCategories.sort(((t,s)=>R[t]-R[s])).map((t=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):[]}getSuffix(t,s,i={}){const e=this.getRule(t,i);return e?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${e.select(s)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",s,i))}}const C=(s,i,e,n=".",o=!0)=>{let r=((t,s,i)=>{const e=a(t,i);return void 0!==e?e:a(s,i)})(s,i,e);return!r&&o&&t(e)&&(r=g(s,e,n),void 0===r&&(r=g(i,e,n))),r},I=t=>t.replace(/\$/g,"$$$$");class T{constructor(t={}){this.logger=$.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:s,escapeValue:i,useRawValueToEscape:e,prefix:n,prefixEscaped:o,suffix:r,suffixEscaped:h,formatSeparator:a,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:m,maxReplaces:v,alwaysFormat:$}=t.interpolation;this.escape=void 0!==s?s:d,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==e&&e,this.prefix=n?l(n):o||"{{",this.suffix=r?l(r):h||"}}",this.formatSeparator=a||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?l(f):p||l("$t("),this.nestingSuffix=g?l(g):y||l(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==$&&$,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,s)=>t?.source===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(s,e,n,o){let r,h,a;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=t=>{if(t.indexOf(this.formatSeparator)<0){const s=C(e,c,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,n,{...o,...e,interpolationkey:t}):s}const s=t.split(this.formatSeparator),i=s.shift().trim(),r=s.join(this.formatSeparator).trim();return this.format(C(e,c,i,this.options.keySeparator,this.options.ignoreJSONStructure),r,n,{...o,...e,interpolationkey:i})};this.resetRegExp();const u=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=void 0!==o?.interpolation?.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>I(t)},{regex:this.regexp,safeValue:t=>I(this.escapeValue?this.escape(t):t)}].forEach((e=>{for(a=0;r=e.regex.exec(s);){const n=r[1].trim();if(h=l(n),void 0===h)if("function"==typeof u){const i=u(s,r,o);h=t(i)?i:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))h="";else{if(d){h=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${s}`),h=""}else t(h)||this.useRawValueToEscape||(h=i(h));const c=e.safeValue(h);if(s=s.replace(r[0],c),d?(e.regex.lastIndex+=h.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),s}nest(s,e,n={}){let o,r,h;const a=(t,s)=>{const i=this.nestingOptionsSeparator;if(t.indexOf(i)<0)return t;const e=t.split(new RegExp(`${l(i)}[ ]*{`));let n=`{${e[1]}`;t=e[0],n=this.interpolate(n,h);const o=n.match(/'/g),r=n.match(/"/g);((o?.length??0)%2==0&&!r||(r?.length??0)%2!=0)&&(n=n.replace(/'/g,'"'));try{h=JSON.parse(n),s&&(h={...s,...h})}catch(s){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,s),`${t}${i}${n}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,t};for(;o=this.nestingRegexp.exec(s);){let c=[];h={...n},h=h.replace&&!t(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const l=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==l&&(c=o[1].slice(l).split(this.formatSeparator).map((t=>t.trim())).filter(Boolean),o[1]=o[1].slice(0,l)),r=e(a.call(this,o[1].trim(),h),h),r&&o[0]===s&&!t(r))return r;t(r)||(r=i(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${s}`),r=""),c.length&&(r=c.reduce(((t,s)=>this.format(t,s,n.lng,{...n,interpolationkey:o[1].trim()})),r.trim())),s=s.replace(o[0],r),this.regexp.lastIndex=0}return s}}const A=t=>{const s={};return(i,e,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});const r=e+JSON.stringify(o);let h=s[r];return h||(h=t(y(e),n),s[r]=h),h(i)}},z=t=>(s,i,e)=>t(y(i),e)(s);class V{constructor(t={}){this.logger=$.create("formatter"),this.options=t,this.init(t)}init(t,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const i=s.cacheInBuiltFormats?A:z;this.formats={number:i(((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return t=>i.format(t)})),currency:i(((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return t=>i.format(t)})),datetime:i(((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return t=>i.format(t)})),relativetime:i(((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return t=>i.format(t,s.range||"day")})),list:i(((t,s)=>{const i=new Intl.ListFormat(t,{...s});return t=>i.format(t)}))}}add(t,s){this.formats[t.toLowerCase().trim()]=s}addCached(t,s){this.formats[t.toLowerCase().trim()]=A(s)}format(t,s,i,e={}){const n=s.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find((t=>t.indexOf(")")>-1))){const t=n.findIndex((t=>t.indexOf(")")>-1));n[0]=[n[0],...n.splice(1,t)].join(this.formatSeparator)}return n.reduce(((t,s)=>{const{formatName:n,formatOptions:o}=(t=>{let s=t.toLowerCase().trim();const i={};if(t.indexOf("(")>-1){const e=t.split("(");s=e[0].toLowerCase().trim();const n=e[1].substring(0,e[1].length-1);"currency"===s&&n.indexOf(":")<0?i.currency||(i.currency=n.trim()):"relativetime"===s&&n.indexOf(":")<0?i.range||(i.range=n.trim()):n.split(";").forEach((t=>{if(t){const[s,...e]=t.split(":"),n=e.join(":").trim().replace(/^'+|'+$/g,""),o=s.trim();i[o]||(i[o]=n),"false"===n&&(i[o]=!1),"true"===n&&(i[o]=!0),isNaN(n)||(i[o]=parseInt(n,10))}}))}return{formatName:s,formatOptions:i}})(s);if(this.formats[n]){let s=t;try{const r=e?.formatParams?.[e.interpolationkey]||{};s=this.formats[n](t,r.locale||r.lng||e.locale||e.lng||i,{...o,...e,...r})}catch(t){this.logger.warn(t)}return s}return this.logger.warn(`there was no format function for ${n}`),t}),t)}}class K extends b{constructor(t,s,i,e={}){super(),this.backend=t,this.store=s,this.services=i,this.languageUtils=i.languageUtils,this.options=e,this.logger=$.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=e.maxParallelReads||10,this.readingCalls=0,this.maxRetries=e.maxRetries>=0?e.maxRetries:5,this.retryTimeout=e.retryTimeout>=1?e.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,e.backend,e)}queueLoad(t,s,i,e){const n={},o={},r={},h={};return t.forEach((t=>{let e=!0;s.forEach((s=>{const r=`${t}|${s}`;!i.reload&&this.store.hasResourceBundle(t,s)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===o[r]&&(o[r]=!0):(this.state[r]=1,e=!1,void 0===o[r]&&(o[r]=!0),void 0===n[r]&&(n[r]=!0),void 0===h[s]&&(h[s]=!0)))})),e||(r[t]=!0)})),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:e}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(h)}}loaded(t,s,i){const e=t.split("|"),n=e[0],o=e[1];s&&this.emit("failedLoading",n,o,s),!s&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[t]=s?-1:2,s&&i&&(this.state[t]=0);const h={};this.queue.forEach((i=>{((t,s,i)=>{const{obj:e,k:n}=r(t,s,Object);e[n]=e[n]||[],e[n].push(i)})(i.loaded,[n],o),((t,s)=>{void 0!==t.pending[s]&&(delete t.pending[s],t.pendingCount--)})(i,t),s&&i.errors.push(s),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach((t=>{h[t]||(h[t]={});const s=i.loaded[t];s.length&&s.forEach((s=>{void 0===h[t][s]&&(h[t][s]=!0)}))})),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())})),this.emit("loaded",h),this.queue=this.queue.filter((t=>!t.done))}read(t,s,i,e=0,n=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:s,fcName:i,tried:e,wait:n,callback:o});this.readingCalls++;const r=(r,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}r&&h&&e<this.maxRetries?setTimeout((()=>{this.read.call(this,t,s,i,e+1,2*n,o)}),n):o(r,h)},h=this.backend[i].bind(this.backend);if(2!==h.length)return h(t,s,r);try{const i=h(t,s);i&&"function"==typeof i.then?i.then((t=>r(null,t))).catch(r):r(null,i)}catch(t){r(t)}}prepareLoading(s,i,e={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();t(s)&&(s=this.languageUtils.toResolveHierarchy(s)),t(i)&&(i=[i]);const o=this.queueLoad(s,i,e,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,s,i){this.prepareLoading(t,s,{},i)}reload(t,s,i){this.prepareLoading(t,s,{reload:!0},i)}loadOne(t,s=""){const i=t.split("|"),e=i[0],n=i[1];this.read(e,n,"read",void 0,void 0,((i,o)=>{i&&this.logger.warn(`${s}loading namespace ${n} for language ${e} failed`,i),!i&&o&&this.logger.log(`${s}loaded namespace ${n} for language ${e}`,o),this.loaded(t,i,o)}))}saveMissing(t,s,i,e,n,o={},r=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(s)){if(null!=i&&""!==i){if(this.backend?.create){const h={...o,isUpdate:n},a=this.backend.create.bind(this.backend);if(a.length<6)try{let n;n=5===a.length?a(t,s,i,e,h):a(t,s,i,e),n&&"function"==typeof n.then?n.then((t=>r(null,t))).catch(r):r(null,n)}catch(t){r(t)}else a(t,s,i,e,r,h)}t&&t[0]&&this.store.addResource(t[0],s,i,e)}}else this.logger.warn(`did not save key "${i}" as the namespace "${s}" 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!!!")}}const B=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let i={};if("object"==typeof s[1]&&(i=s[1]),t(s[1])&&(i.defaultValue=s[1]),t(s[2])&&(i.tDescription=s[2]),"object"==typeof s[2]||"object"==typeof s[3]){const t=s[3]||s[2];Object.keys(t).forEach((s=>{i[s]=t[s]}))}return i},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),M=s=>(t(s.ns)&&(s.ns=[s.ns]),t(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),t(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),"boolean"==typeof s.initImmediate&&(s.initAsync=s.initImmediate),s),_=()=>{},F="__i18next_supportNoticeShown";class D extends b{constructor(t={},s){var i;if(super(),this.options=M(t),this.services={},this.logger=$,this.modules={external:[]},i=this,Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t=>{"function"==typeof i[t]&&(i[t]=i[t].bind(i))})),s&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,s),this;setTimeout((()=>{this.init(t,s)}),0)}}init(i={},e){this.isInitializing=!0,"function"==typeof i&&(e=i,i={}),null==i.defaultNS&&i.ns&&(t(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const n=B();var o;this.options={...n,...this.options,...M(i)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==i.keySeparator&&(this.options.userDefinedKeySeparator=i.keySeparator),void 0!==i.nsSeparator&&(this.options.userDefinedNsSeparator=i.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(o=this,o?.modules?.backend?.name?.indexOf("Locize")>0||o?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||o?.options?.backend?.backends&&o.options.backend.backends.some((t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0))||o?.options?.backend?.projectId||o?.options?.backend?.backendOptions&&o.options.backend.backendOptions.some((t=>t?.projectId)))||"undefined"!=typeof globalThis&&globalThis[F]||"undefined"!=typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[F]=!0));const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;$.init(this.modules.logger?r(this.modules.logger):null,this.options),t=this.modules.formatter?this.modules.formatter:V;const s=new L(this.options);this.store=new x(this.options.resources,this.options);const i=this.services;i.logger=$,i.resourceStore=this.store,i.languageUtils=s,i.pluralResolver=new E(s,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.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"),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=r(t),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new T(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new K(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",((t,...s)=>{this.emit(t,...s)})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new N(this.services,this.options),this.translator.on("*",((t,...s)=>{this.emit(t,...s)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,e||(e=_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=(...s)=>this.store[t](...s)})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=(...s)=>(this.store[t](...s),this)}));const h=s(),a=()=>{const t=(t,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(s),e(t,s)};if(this.languages&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),h}loadResources(s,i=_){let e=i;const n=t(s)?s:this.language;if("function"==typeof s&&(e=s),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],s=s=>{s&&"cimode"!==s&&this.services.languageUtils.toResolveHierarchy(s).forEach((s=>{"cimode"!==s&&t.indexOf(s)<0&&t.push(s)}))};n?s(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>s(t))),this.options.preload?.forEach?.((t=>s(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,i,e){const n=s();return"function"==typeof t&&(e=t,t=void 0),"function"==typeof i&&(e=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),e||(e=_),this.services.backendConnector.reload(t,i,(t=>{n.resolve(),e(t)})),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&w.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1)){for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(i,e){this.isLanguageChangingTo=i;const n=s();this.emit("languageChanging",i);const o=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},r=(t,s)=>{s?this.isLanguageChangingTo===i&&(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,n.resolve(((...t)=>this.t(...t))),e&&e(t,((...t)=>this.t(...t)))},h=s=>{i||s||!this.services.languageDetector||(s=[]);const e=t(s)?s:s&&s[0],n=this.store.hasLanguageSomeTranslations(e)?e:this.services.languageUtils.getBestMatchFromCodes(t(s)?[s]:s);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,(t=>{r(t,n)}))};return i||!this.services.languageDetector||this.services.languageDetector.async?!i&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i):h(this.services.languageDetector.detect()),n}getFixedT(s,i,e){const n=(t,s,...i)=>{let o;o="object"!=typeof s?this.options.overloadTranslationOptionHandler([t,s].concat(i)):{...s},o.lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||e||n.keyPrefix);const r={...this.options,...o};"function"==typeof o.keyPrefix&&(o.keyPrefix=O(o.keyPrefix,r));const h=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(t)?a=t.map((t=>("function"==typeof t&&(t=O(t,r)),`${o.keyPrefix}${h}${t}`))):("function"==typeof t&&(t=O(t,r)),a=o.keyPrefix?`${o.keyPrefix}${h}${t}`:t),this.t(a,o)};return t(s)?n.lng=s:n.lngs=s,n.ns=i,n.keyPrefix=e,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=s.lng||this.resolvedLanguage||this.languages[0],e=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;const o=(t,s)=>{const i=this.services.backendConnector.state[`${t}|${s}`];return-1===i||0===i||2===i};if(s.precheck){const t=s.precheck(this,o);if(void 0!==t)return t}return!(!this.hasResourceBundle(i,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(i,t)||e&&!o(n,t)))}loadNamespaces(i,e){const n=s();return this.options.ns?(t(i)&&(i=[i]),i.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(i,e){const n=s();t(i)&&(i=[i]);const o=this.options.preload||[],r=i.filter((t=>o.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=o.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const s=new Intl.Locale(t);if(s&&s.getTextInfo){const t=s.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}const s=this.services?.languageUtils||new L(B());return t.toLowerCase().indexOf("-latn")>1?"ltr":["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"].indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},s){const i=new D(t,s);return i.createInstance=D.createInstance,i}cloneInstance(t={},s=_){const i=t.forkResourceStore;i&&delete t.forkResourceStore;const e={...this.options,...t,isClone:!0},n=new D(e);if(void 0===t.debug&&void 0===t.prefix||(n.logger=n.logger.clone(t)),["store","services","language"].forEach((t=>{n[t]=this[t]})),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i){const t=Object.keys(this.store.data).reduce(((t,s)=>(t[s]={...this.store.data[s]},t[s]=Object.keys(t[s]).reduce(((i,e)=>(i[e]={...t[s][e]},i)),t[s]),t)),{});n.store=new x(t,e),n.services.resourceStore=n.store}if(t.interpolation){const s={...B().interpolation,...this.options.interpolation,...t.interpolation},i={...e,interpolation:s};n.services.interpolator=new T(i)}return n.translator=new N(n.services,e),n.translator.on("*",((t,...s)=>{n.emit(t,...s)})),n.init(e,s),n.translator.options=e,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=D.createInstance().createInstance,J="nl";function U(t){const s=t.closest("[lang]");return s instanceof HTMLElement?s.lang||J:t.parentNode instanceof ShadowRoot&&t.parentNode.host instanceof HTMLElement?U(t.parentNode.host):t.parentElement instanceof HTMLElement?U(t.parentElement):J}function W(t,s){const i=t(),e=H();e.init({fallbackLng:J,resources:s,defaultNS:i.tagName.toLowerCase(),interpolation:{escapeValue:!1},showSupportNotice:!1});let n=!1;return(t,s)=>{if(!n){n=!0;const t=U(i);e.changeLanguage(t)}return e.t(t,s)}}export{W as i}
1
+ const t=t=>"string"==typeof t,s=()=>{let t,s;const i=new Promise(((i,e)=>{t=i,s=e}));return i.resolve=t,i.reject=s,i},i=t=>null==t?"":""+t,e=/###/g,n=t=>t&&t.indexOf("###")>-1?t.replace(e,"."):t,o=s=>!s||t(s),r=(s,i,e)=>{const r=t(i)?i.split("."):i;let h=0;for(;h<r.length-1;){if(o(s))return{};const t=n(r[h]);!s[t]&&e&&(s[t]=new e),s=Object.prototype.hasOwnProperty.call(s,t)?s[t]:{},++h}return o(s)?{}:{obj:s,k:n(r[h])}},h=(t,s,i)=>{const{obj:e,k:n}=r(t,s,Object);if(void 0!==e||1===s.length)return void(e[n]=i);let o=s[s.length-1],h=s.slice(0,s.length-1),a=r(t,h,Object);for(;void 0===a.obj&&h.length;)o=`${h[h.length-1]}.${o}`,h=h.slice(0,h.length-1),a=r(t,h,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=i},a=(t,s)=>{const{obj:i,k:e}=r(t,s);if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e]},c=(s,i,e)=>{for(const n in i)"__proto__"!==n&&"constructor"!==n&&(n in s?t(s[n])||s[n]instanceof String||t(i[n])||i[n]instanceof String?e&&(s[n]=i[n]):c(s[n],i[n],e):s[n]=i[n]);return s},l=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const d=s=>t(s)?s.replace(/[&<>"'\/]/g,(t=>u[t])):s,f=[" ",",","?","!",";"],p=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const s=this.regExpMap.get(t);if(void 0!==s)return s;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}(20),g=(t,s,i=".")=>{if(!t)return;if(t[s]){if(!Object.prototype.hasOwnProperty.call(t,s))return;return t[s]}const e=s.split(i);let n=t;for(let t=0;t<e.length;){if(!n||"object"!=typeof n)return;let s,o="";for(let r=t;r<e.length;++r)if(r!==t&&(o+=i),o+=e[r],s=n[o],void 0!==s){if(["string","number","boolean"].indexOf(typeof s)>-1&&r<e.length-1)continue;t+=r-t+1;break}n=s}return n},y=t=>t?.replace(/_/g,"-"),m={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,s){console?.[t]?.apply?.(console,s)}};class v{constructor(t,s={}){this.init(t,s)}init(t,s={}){this.prefix=s.prefix||"i18next:",this.logger=t||m,this.options=s,this.debug=s.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(s,i,e,n){return n&&!this.debug?null:(t(s[0])&&(s[0]=`${e}${this.prefix} ${s[0]}`),this.logger[i](s))}create(t){return new v(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new v(this.logger,t)}}var $=new v;class b{constructor(){this.observers={}}on(t,s){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const i=this.observers[t].get(s)||0;this.observers[t].set(s,i+1)})),this}off(t,s){this.observers[t]&&(s?this.observers[t].delete(s):delete this.observers[t])}emit(t,...s){this.observers[t]&&Array.from(this.observers[t].entries()).forEach((([t,i])=>{for(let e=0;e<i;e++)t(...s)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((([i,e])=>{for(let n=0;n<e;n++)i.apply(i,[t,...s])}))}}class x extends b{constructor(t,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=s,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const s=this.options.ns.indexOf(t);s>-1&&this.options.ns.splice(s,1)}getResource(s,i,e,n={}){const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;s.indexOf(".")>-1?h=s.split("."):(h=[s,i],e&&(Array.isArray(e)?h.push(...e):t(e)&&o?h.push(...e.split(o)):h.push(e)));const c=a(this.data,h);return!c&&!i&&!e&&s.indexOf(".")>-1&&(s=h[0],i=h[1],e=h.slice(2).join(".")),!c&&r&&t(e)?g(this.data?.[s]?.[i],e,o):c}addResource(t,s,i,e,n={silent:!1}){const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let r=[t,s];i&&(r=r.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(r=t.split("."),e=s,s=r[1]),this.addNamespaces(s),h(this.data,r,e),n.silent||this.emit("added",t,s,i,e)}addResources(s,i,e,n={silent:!1}){for(const n in e)(t(e[n])||Array.isArray(e[n]))&&this.addResource(s,i,n,e[n],{silent:!0});n.silent||this.emit("added",s,i,e)}addResourceBundle(t,s,i,e,n,o={silent:!1,skipCopy:!1}){let r=[t,s];t.indexOf(".")>-1&&(r=t.split("."),e=i,i=s,s=r[1]),this.addNamespaces(s);let l=a(this.data,r)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),e?c(l,i,n):l={...l,...i},h(this.data,r,l),o.silent||this.emit("added",t,s,i)}removeResourceBundle(t,s){this.hasResourceBundle(t,s)&&delete this.data[t][s],this.removeNamespaces(s),this.emit("removed",t,s)}hasResourceBundle(t,s){return void 0!==this.getResource(t,s)}getResourceBundle(t,s){return s||(s=this.options.defaultNS),this.getResource(t,s)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const s=this.getDataByLanguage(t);return!!(s&&Object.keys(s)||[]).find((t=>s[t]&&Object.keys(s[t]).length>0))}toJSON(){return this.data}}var w={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,s,i,e,n){return t.forEach((t=>{s=this.processors[t]?.process(s,i,e,n)??s})),s}};const j=Symbol("i18next/PATH_KEY");function O(t,s){const{[j]:i}=t(function(){const t=[],s=Object.create(null);let i;return s.get=(e,n)=>(i?.revoke?.(),n===j?t:(t.push(n),i=Proxy.revocable(e,s),i.proxy)),Proxy.revocable(Object.create(null),s).proxy}()),e=s?.keySeparator??".",n=s?.nsSeparator??":";if(i.length>1&&n){const t=s?.ns,o=Array.isArray(t)?t:null;if(o&&o.length>1&&o.slice(1).includes(i[0]))return`${i[0]}${n}${i.slice(1).join(e)}`}return i.join(e)}const S={},k=s=>!t(s)&&"boolean"!=typeof s&&"number"!=typeof s;class N extends b{constructor(t,s={}){var i,e;super(),i=t,e=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{i[t]&&(e[t]=i[t])})),this.options=s,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=$.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,s={interpolation:{}}){const i={...s};if(null==t)return!1;const e=this.resolve(t,i);if(void 0===e?.res)return!1;const n=k(e.res);return!1!==i.returnObjects||!n}extractFromKey(s,i){let e=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===e&&(e=":");const n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let o=i.ns||this.options.defaultNS||[];const r=e&&s.indexOf(e)>-1,h=!(this.options.userDefinedKeySeparator||i.keySeparator||this.options.userDefinedNsSeparator||i.nsSeparator||((t,s,i)=>{s=s||"",i=i||"";const e=f.filter((t=>s.indexOf(t)<0&&i.indexOf(t)<0));if(0===e.length)return!0;const n=p.getRegExp(`(${e.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!n.test(t);if(!o){const s=t.indexOf(i);s>0&&!n.test(t.substring(0,s))&&(o=!0)}return o})(s,e,n));if(r&&!h){const i=s.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:s,namespaces:t(o)?[o]:o};const r=s.split(e);(e!==n||e===n&&this.options.ns.indexOf(r[0])>-1)&&(o=r.shift()),s=r.join(n)}return{key:s,namespaces:t(o)?[o]:o}}translate(s,i,e){let n="object"==typeof i?{...i}:i;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==s)return"";"function"==typeof s&&(s=O(s,{...this.options,...n})),Array.isArray(s)||(s=[String(s)]),s=s.map((t=>"function"==typeof t?O(t,{...this.options,...n}):String(t)));const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:h,namespaces:a}=this.extractFromKey(s[s.length-1],n),c=a[a.length-1];let l=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");const u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${c}${l}${h}`,usedKey:h,exactUsedKey:h,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${l}${h}`:o?{res:h,usedKey:h,exactUsedKey:h,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:h;const f=this.resolve(s,n);let p=f?.res;const g=f?.usedKey||h,y=f?.exactUsedKey||h,m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,$=void 0!==n.count&&!t(n.count),b=N.hasDefaultValue(n),x=$?this.pluralResolver.getSuffix(u,n.count,n):"",w=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",j=$&&!n.ordinal&&0===n.count,S=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${w}`]||n.defaultValue;let L=p;v&&!p&&b&&(L=S);const R=k(L),P=Object.prototype.toString.apply(L);if(!(v&&L&&R&&["[object Number]","[object Function]","[object RegExp]"].indexOf(P)<0)||t(m)&&Array.isArray(L))if(v&&t(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,s,n,e));else{let t=!1,i=!1;!this.isValidLookup(p)&&b&&(t=!0,p=S),this.isValidLookup(p)||(i=!0,p=h);const o=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,a=b&&S!==p&&this.options.updateMissing;if(i||t||a){if(this.logger.log(a?"updateKey":"missingKey",u,c,h,a?S:p),r){const t=this.resolve(h,{...n,keySeparator:!1});t&&t.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.")}let t=[];const s=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&s&&s[0])for(let i=0;i<s.length;i++)t.push(s[i]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(n.lng||this.language):t.push(n.lng||this.language);const i=(t,s,i)=>{const e=b&&i!==p?i:o;this.options.missingKeyHandler?this.options.missingKeyHandler(t,c,s,e,a,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,c,s,e,a,n),this.emit("missingKey",t,c,s,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?t.forEach((t=>{const s=this.pluralResolver.getSuffixes(t,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&s.indexOf(`${this.options.pluralSeparator}zero`)<0&&s.push(`${this.options.pluralSeparator}zero`),s.forEach((s=>{i([t],h+s,n[`defaultValue${s}`]||S)}))})):i(t,h,S))}p=this.extendTranslation(p,s,n,f,e),i&&p===h&&this.options.appendNamespaceToMissingKey&&(p=`${c}${l}${h}`),(i||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${h}`:h,t?p:void 0,n))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,L,{...n,ns:a}):`key '${h} (${this.language})' returned an object instead of string.`;return o?(f.res=t,f.usedParams=this.getUsedParamsDetails(n),f):t}if(r){const t=Array.isArray(L),s=t?[]:{},i=t?y:g;for(const t in L)if(Object.prototype.hasOwnProperty.call(L,t)){const e=`${i}${r}${t}`;s[t]=this.translate(e,b&&!p?{...n,defaultValue:k(S)?S[t]:void 0,joinArrays:!1,ns:a}:{...n,joinArrays:!1,ns:a}),s[t]===e&&(s[t]=L[t])}p=s}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(s,i,e,n,o){if(this.i18nFormat?.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...e},e.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!e.skipInterpolation){e.interpolation&&this.interpolator.init({...e,interpolation:{...this.options.interpolation,...e.interpolation}});const r=t(s)&&(void 0!==e?.interpolation?.skipOnVariables?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(r){const t=s.match(this.interpolator.nestingRegexp);h=t&&t.length}let a=e.replace&&!t(e.replace)?e.replace:e;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),s=this.interpolator.interpolate(s,a,e.lng||this.language||n.usedLng,e),r){const t=s.match(this.interpolator.nestingRegexp);h<(t&&t.length)&&(e.nest=!1)}!e.lng&&n&&n.res&&(e.lng=this.language||n.usedLng),!1!==e.nest&&(s=this.interpolator.nest(s,((...t)=>o?.[0]!==t[0]||e.context?this.translate(...t,i):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${i[0]}`),null)),e)),e.interpolation&&this.interpolator.reset()}const r=e.postProcess||this.options.postProcess,h=t(r)?[r]:r;return null!=s&&h?.length&&!1!==e.applyPostProcessor&&(s=w.handle(h,s,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(e)},...e}:e,this)),s}resolve(s,i={}){let e,n,o,r,h;return t(s)&&(s=[s]),Array.isArray(s)&&(s=s.map((t=>"function"==typeof t?O(t,{...this.options,...i}):t))),s.forEach((s=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(s,i),c=a.key;n=c;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==i.count&&!t(i.count),d=u&&!i.ordinal&&0===i.count,f=void 0!==i.context&&(t(i.context)||"number"==typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);l.forEach((t=>{this.isValidLookup(e)||(h=t,S[`${p[0]}-${t}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(h)||(S[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${h}" 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!!!")),p.forEach((s=>{if(this.isValidLookup(e))return;r=s;const n=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(n,c,s,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(s,i.count,i));const e=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.ordinal&&0===t.indexOf(o)&&n.push(c+t.replace(o,this.options.pluralSeparator)),n.push(c+t),d&&n.push(c+e)),f){const s=`${c}${this.options.contextSeparator||"_"}${i.context}`;n.push(s),u&&(i.ordinal&&0===t.indexOf(o)&&n.push(s+t.replace(o,this.options.pluralSeparator)),n.push(s+t),d&&n.push(s+e))}}let h;for(;h=n.pop();)this.isValidLookup(e)||(o=h,e=this.getResource(s,t,h,i))})))}))})),{res:e,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:h}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,s,i,e={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,s,i,e):this.resourceStore.getResource(t,s,i,e)}getUsedParamsDetails(s={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],e=s.replace&&!t(s.replace);let n=e?s.replace:s;if(e&&void 0!==s.count&&(n.count=s.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!e){n={...n};for(const t of i)delete n[t]}return n}static hasDefaultValue(t){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&"defaultValue"===s.substring(0,12)&&void 0!==t[s])return!0;return!1}}class L{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}getScriptPartFromCode(t){if(!(t=y(t))||t.indexOf("-")<0)return null;const s=t.split("-");return 2===s.length?null:(s.pop(),"x"===s[s.length-1].toLowerCase()?null:this.formatLanguageCode(s.join("-")))}getLanguagePartFromCode(t){if(!(t=y(t))||t.indexOf("-")<0)return t;const s=t.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(s){if(t(s)&&s.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(s)[0]}catch(t){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?s.toLowerCase():s)}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let s;return t.forEach((t=>{if(s)return;const i=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(i)||(s=i)})),!s&&this.options.supportedLngs&&t.forEach((t=>{if(s)return;const i=this.getScriptPartFromCode(t);if(this.isSupportedCode(i))return s=i;const e=this.getLanguagePartFromCode(t);if(this.isSupportedCode(e))return s=e;s=this.options.supportedLngs.find((t=>t===e?t:t.indexOf("-")<0&&e.indexOf("-")<0?void 0:t.indexOf("-")>0&&e.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===e||0===t.indexOf(e)&&e.length>1?t:void 0))})),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(s,i){if(!s)return[];if("function"==typeof s&&(s=s(i)),t(s)&&(s=[s]),Array.isArray(s))return s;if(!i)return s.default||[];let e=s[i];return e||(e=s[this.getScriptPartFromCode(i)]),e||(e=s[this.formatLanguageCode(i)]),e||(e=s[this.getLanguagePartFromCode(i)]),e||(e=s.default),e||[]}toResolveHierarchy(s,i){const e=this.getFallbackCodes((!1===i?[]:i)||this.options.fallbackLng||[],s),n=[],o=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return t(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(s)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(s)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(s))):t(s)&&o(this.formatLanguageCode(s)),e.forEach((t=>{n.indexOf(t)<0&&o(this.formatLanguageCode(t))})),n}}const R={zero:0,one:1,two:2,few:3,many:4,other:5},P={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class E{constructor(t,s={}){this.languageUtils=t,this.options=s,this.logger=$.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,s={}){const i=y("dev"===t?"en":t),e=s.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:e});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let o;try{o=new Intl.PluralRules(i,{type:e})}catch(i){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),P;if(!t.match(/-|_/))return P;const e=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(e,s)}return this.pluralRulesCache[n]=o,o}needsPlural(t,s={}){let i=this.getRule(t,s);return i||(i=this.getRule("dev",s)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,s,i={}){return this.getSuffixes(t,i).map((t=>`${s}${t}`))}getSuffixes(t,s={}){let i=this.getRule(t,s);return i||(i=this.getRule("dev",s)),i?i.resolvedOptions().pluralCategories.sort(((t,s)=>R[t]-R[s])).map((t=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):[]}getSuffix(t,s,i={}){const e=this.getRule(t,i);return e?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${e.select(s)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",s,i))}}const C=(s,i,e,n=".",o=!0)=>{let r=((t,s,i)=>{const e=a(t,i);return void 0!==e?e:a(s,i)})(s,i,e);return!r&&o&&t(e)&&(r=g(s,e,n),void 0===r&&(r=g(i,e,n))),r},I=t=>t.replace(/\$/g,"$$$$");class T{constructor(t={}){this.logger=$.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:s,escapeValue:i,useRawValueToEscape:e,prefix:n,prefixEscaped:o,suffix:r,suffixEscaped:h,formatSeparator:a,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:m,maxReplaces:v,alwaysFormat:$}=t.interpolation;this.escape=void 0!==s?s:d,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==e&&e,this.prefix=n?l(n):o||"{{",this.suffix=r?l(r):h||"}}",this.formatSeparator=a||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?l(f):p||l("$t("),this.nestingSuffix=g?l(g):y||l(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==$&&$,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,s)=>t?.source===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(s,e,n,o){let r,h,a;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=t=>{if(t.indexOf(this.formatSeparator)<0){const s=C(e,c,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,n,{...o,...e,interpolationkey:t}):s}const s=t.split(this.formatSeparator),i=s.shift().trim(),r=s.join(this.formatSeparator).trim();return this.format(C(e,c,i,this.options.keySeparator,this.options.ignoreJSONStructure),r,n,{...o,...e,interpolationkey:i})};this.resetRegExp();const u=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=void 0!==o?.interpolation?.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>I(t)},{regex:this.regexp,safeValue:t=>I(this.escapeValue?this.escape(t):t)}].forEach((e=>{for(a=0;r=e.regex.exec(s);){const n=r[1].trim();if(h=l(n),void 0===h)if("function"==typeof u){const i=u(s,r,o);h=t(i)?i:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))h="";else{if(d){h=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${s}`),h=""}else t(h)||this.useRawValueToEscape||(h=i(h));const c=e.safeValue(h);if(s=s.replace(r[0],c),d?(e.regex.lastIndex+=h.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),s}nest(s,e,n={}){let o,r,h;const a=(t,s)=>{const i=this.nestingOptionsSeparator;if(t.indexOf(i)<0)return t;const e=t.split(new RegExp(`${l(i)}[ ]*{`));let n=`{${e[1]}`;t=e[0],n=this.interpolate(n,h);const o=n.match(/'/g),r=n.match(/"/g);((o?.length??0)%2==0&&!r||(r?.length??0)%2!=0)&&(n=n.replace(/'/g,'"'));try{h=JSON.parse(n),s&&(h={...s,...h})}catch(s){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,s),`${t}${i}${n}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,t};for(;o=this.nestingRegexp.exec(s);){let c=[];h={...n},h=h.replace&&!t(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const l=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==l&&(c=o[1].slice(l).split(this.formatSeparator).map((t=>t.trim())).filter(Boolean),o[1]=o[1].slice(0,l)),r=e(a.call(this,o[1].trim(),h),h),r&&o[0]===s&&!t(r))return r;t(r)||(r=i(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${s}`),r=""),c.length&&(r=c.reduce(((t,s)=>this.format(t,s,n.lng,{...n,interpolationkey:o[1].trim()})),r.trim())),s=s.replace(o[0],r),this.regexp.lastIndex=0}return s}}const A=t=>{const s={};return(i,e,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});const r=e+JSON.stringify(o);let h=s[r];return h||(h=t(y(e),n),s[r]=h),h(i)}},z=t=>(s,i,e)=>t(y(i),e)(s);class V{constructor(t={}){this.logger=$.create("formatter"),this.options=t,this.init(t)}init(t,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const i=s.cacheInBuiltFormats?A:z;this.formats={number:i(((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return t=>i.format(t)})),currency:i(((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return t=>i.format(t)})),datetime:i(((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return t=>i.format(t)})),relativetime:i(((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return t=>i.format(t,s.range||"day")})),list:i(((t,s)=>{const i=new Intl.ListFormat(t,{...s});return t=>i.format(t)}))}}add(t,s){this.formats[t.toLowerCase().trim()]=s}addCached(t,s){this.formats[t.toLowerCase().trim()]=A(s)}format(t,s,i,e={}){const n=s.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find((t=>t.indexOf(")")>-1))){const t=n.findIndex((t=>t.indexOf(")")>-1));n[0]=[n[0],...n.splice(1,t)].join(this.formatSeparator)}return n.reduce(((t,s)=>{const{formatName:n,formatOptions:o}=(t=>{let s=t.toLowerCase().trim();const i={};if(t.indexOf("(")>-1){const e=t.split("(");s=e[0].toLowerCase().trim();const n=e[1].substring(0,e[1].length-1);"currency"===s&&n.indexOf(":")<0?i.currency||(i.currency=n.trim()):"relativetime"===s&&n.indexOf(":")<0?i.range||(i.range=n.trim()):n.split(";").forEach((t=>{if(t){const[s,...e]=t.split(":"),n=e.join(":").trim().replace(/^'+|'+$/g,""),o=s.trim();i[o]||(i[o]=n),"false"===n&&(i[o]=!1),"true"===n&&(i[o]=!0),isNaN(n)||(i[o]=parseInt(n,10))}}))}return{formatName:s,formatOptions:i}})(s);if(this.formats[n]){let s=t;try{const r=e?.formatParams?.[e.interpolationkey]||{};s=this.formats[n](t,r.locale||r.lng||e.locale||e.lng||i,{...o,...e,...r})}catch(t){this.logger.warn(t)}return s}return this.logger.warn(`there was no format function for ${n}`),t}),t)}}class K extends b{constructor(t,s,i,e={}){super(),this.backend=t,this.store=s,this.services=i,this.languageUtils=i.languageUtils,this.options=e,this.logger=$.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=e.maxParallelReads||10,this.readingCalls=0,this.maxRetries=e.maxRetries>=0?e.maxRetries:5,this.retryTimeout=e.retryTimeout>=1?e.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,e.backend,e)}queueLoad(t,s,i,e){const n={},o={},r={},h={};return t.forEach((t=>{let e=!0;s.forEach((s=>{const r=`${t}|${s}`;!i.reload&&this.store.hasResourceBundle(t,s)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===o[r]&&(o[r]=!0):(this.state[r]=1,e=!1,void 0===o[r]&&(o[r]=!0),void 0===n[r]&&(n[r]=!0),void 0===h[s]&&(h[s]=!0)))})),e||(r[t]=!0)})),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:e}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(h)}}loaded(t,s,i){const e=t.split("|"),n=e[0],o=e[1];s&&this.emit("failedLoading",n,o,s),!s&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[t]=s?-1:2,s&&i&&(this.state[t]=0);const h={};this.queue.forEach((i=>{((t,s,i)=>{const{obj:e,k:n}=r(t,s,Object);e[n]=e[n]||[],e[n].push(i)})(i.loaded,[n],o),((t,s)=>{void 0!==t.pending[s]&&(delete t.pending[s],t.pendingCount--)})(i,t),s&&i.errors.push(s),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach((t=>{h[t]||(h[t]={});const s=i.loaded[t];s.length&&s.forEach((s=>{void 0===h[t][s]&&(h[t][s]=!0)}))})),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())})),this.emit("loaded",h),this.queue=this.queue.filter((t=>!t.done))}read(t,s,i,e=0,n=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:s,fcName:i,tried:e,wait:n,callback:o});this.readingCalls++;const r=(r,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}r&&h&&e<this.maxRetries?setTimeout((()=>{this.read.call(this,t,s,i,e+1,2*n,o)}),n):o(r,h)},h=this.backend[i].bind(this.backend);if(2!==h.length)return h(t,s,r);try{const i=h(t,s);i&&"function"==typeof i.then?i.then((t=>r(null,t))).catch(r):r(null,i)}catch(t){r(t)}}prepareLoading(s,i,e={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();t(s)&&(s=this.languageUtils.toResolveHierarchy(s)),t(i)&&(i=[i]);const o=this.queueLoad(s,i,e,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,s,i){this.prepareLoading(t,s,{},i)}reload(t,s,i){this.prepareLoading(t,s,{reload:!0},i)}loadOne(t,s=""){const i=t.split("|"),e=i[0],n=i[1];this.read(e,n,"read",void 0,void 0,((i,o)=>{i&&this.logger.warn(`${s}loading namespace ${n} for language ${e} failed`,i),!i&&o&&this.logger.log(`${s}loaded namespace ${n} for language ${e}`,o),this.loaded(t,i,o)}))}saveMissing(t,s,i,e,n,o={},r=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(s)){if(null!=i&&""!==i){if(this.backend?.create){const h={...o,isUpdate:n},a=this.backend.create.bind(this.backend);if(a.length<6)try{let n;n=5===a.length?a(t,s,i,e,h):a(t,s,i,e),n&&"function"==typeof n.then?n.then((t=>r(null,t))).catch(r):r(null,n)}catch(t){r(t)}else a(t,s,i,e,r,h)}t&&t[0]&&this.store.addResource(t[0],s,i,e)}}else this.logger.warn(`did not save key "${i}" as the namespace "${s}" 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!!!")}}const B=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let i={};if("object"==typeof s[1]&&(i=s[1]),t(s[1])&&(i.defaultValue=s[1]),t(s[2])&&(i.tDescription=s[2]),"object"==typeof s[2]||"object"==typeof s[3]){const t=s[3]||s[2];Object.keys(t).forEach((s=>{i[s]=t[s]}))}return i},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),M=s=>(t(s.ns)&&(s.ns=[s.ns]),t(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),t(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),"boolean"==typeof s.initImmediate&&(s.initAsync=s.initImmediate),s),_=()=>{},F="__i18next_supportNoticeShown";class D extends b{constructor(t={},s){var i;if(super(),this.options=M(t),this.services={},this.logger=$,this.modules={external:[]},i=this,Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t=>{"function"==typeof i[t]&&(i[t]=i[t].bind(i))})),s&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,s),this;setTimeout((()=>{this.init(t,s)}),0)}}init(i={},e){this.isInitializing=!0,"function"==typeof i&&(e=i,i={}),null==i.defaultNS&&i.ns&&(t(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const n=B();var o;this.options={...n,...this.options,...M(i)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==i.keySeparator&&(this.options.userDefinedKeySeparator=i.keySeparator),void 0!==i.nsSeparator&&(this.options.userDefinedNsSeparator=i.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(o=this,o?.modules?.backend?.name?.indexOf("Locize")>0||o?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||o?.options?.backend?.backends&&o.options.backend.backends.some((t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0))||o?.options?.backend?.projectId||o?.options?.backend?.backendOptions&&o.options.backend.backendOptions.some((t=>t?.projectId)))||"undefined"!=typeof globalThis&&globalThis[F]||"undefined"!=typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"undefined"!=typeof process&&process.env||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[F]=!0));const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;$.init(this.modules.logger?r(this.modules.logger):null,this.options),t=this.modules.formatter?this.modules.formatter:V;const s=new L(this.options);this.store=new x(this.options.resources,this.options);const i=this.services;i.logger=$,i.resourceStore=this.store,i.languageUtils=s,i.pluralResolver=new E(s,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.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"),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=r(t),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new T(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new K(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",((t,...s)=>{this.emit(t,...s)})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new N(this.services,this.options),this.translator.on("*",((t,...s)=>{this.emit(t,...s)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,e||(e=_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=(...s)=>this.store[t](...s)})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=(...s)=>(this.store[t](...s),this)}));const h=s(),a=()=>{const t=(t,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(s),e(t,s)};if(this.languages&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),h}loadResources(s,i=_){let e=i;const n=t(s)?s:this.language;if("function"==typeof s&&(e=s),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],s=s=>{s&&"cimode"!==s&&this.services.languageUtils.toResolveHierarchy(s).forEach((s=>{"cimode"!==s&&t.indexOf(s)<0&&t.push(s)}))};n?s(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>s(t))),this.options.preload?.forEach?.((t=>s(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,i,e){const n=s();return"function"==typeof t&&(e=t,t=void 0),"function"==typeof i&&(e=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),e||(e=_),this.services.backendConnector.reload(t,i,(t=>{n.resolve(),e(t)})),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&w.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1)){for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(i,e){this.isLanguageChangingTo=i;const n=s();this.emit("languageChanging",i);const o=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},r=(t,s)=>{s?this.isLanguageChangingTo===i&&(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,n.resolve(((...t)=>this.t(...t))),e&&e(t,((...t)=>this.t(...t)))},h=s=>{i||s||!this.services.languageDetector||(s=[]);const e=t(s)?s:s&&s[0],n=this.store.hasLanguageSomeTranslations(e)?e:this.services.languageUtils.getBestMatchFromCodes(t(s)?[s]:s);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,(t=>{r(t,n)}))};return i||!this.services.languageDetector||this.services.languageDetector.async?!i&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i):h(this.services.languageDetector.detect()),n}getFixedT(s,i,e){const n=(t,s,...i)=>{let o;o="object"!=typeof s?this.options.overloadTranslationOptionHandler([t,s].concat(i)):{...s},o.lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||e||n.keyPrefix);const r={...this.options,...o};"function"==typeof o.keyPrefix&&(o.keyPrefix=O(o.keyPrefix,r));const h=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(t)?a=t.map((t=>("function"==typeof t&&(t=O(t,r)),`${o.keyPrefix}${h}${t}`))):("function"==typeof t&&(t=O(t,r)),a=o.keyPrefix?`${o.keyPrefix}${h}${t}`:t),this.t(a,o)};return t(s)?n.lng=s:n.lngs=s,n.ns=i,n.keyPrefix=e,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=s.lng||this.resolvedLanguage||this.languages[0],e=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;const o=(t,s)=>{const i=this.services.backendConnector.state[`${t}|${s}`];return-1===i||0===i||2===i};if(s.precheck){const t=s.precheck(this,o);if(void 0!==t)return t}return!(!this.hasResourceBundle(i,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(i,t)||e&&!o(n,t)))}loadNamespaces(i,e){const n=s();return this.options.ns?(t(i)&&(i=[i]),i.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(i,e){const n=s();t(i)&&(i=[i]);const o=this.options.preload||[],r=i.filter((t=>o.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=o.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const s=new Intl.Locale(t);if(s&&s.getTextInfo){const t=s.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}const s=this.services?.languageUtils||new L(B());return t.toLowerCase().indexOf("-latn")>1?"ltr":["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"].indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},s){const i=new D(t,s);return i.createInstance=D.createInstance,i}cloneInstance(t={},s=_){const i=t.forkResourceStore;i&&delete t.forkResourceStore;const e={...this.options,...t,isClone:!0},n=new D(e);if(void 0===t.debug&&void 0===t.prefix||(n.logger=n.logger.clone(t)),["store","services","language"].forEach((t=>{n[t]=this[t]})),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i){const t=Object.keys(this.store.data).reduce(((t,s)=>(t[s]={...this.store.data[s]},t[s]=Object.keys(t[s]).reduce(((i,e)=>(i[e]={...t[s][e]},i)),t[s]),t)),{});n.store=new x(t,e),n.services.resourceStore=n.store}if(t.interpolation){const s={...B().interpolation,...this.options.interpolation,...t.interpolation},i={...e,interpolation:s};n.services.interpolator=new T(i)}return n.translator=new N(n.services,e),n.translator.on("*",((t,...s)=>{n.emit(t,...s)})),n.init(e,s),n.translator.options=e,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=D.createInstance().createInstance,J="nl";function U(t){const s=t.closest("[lang]");return s instanceof HTMLElement?s.lang||J:t.parentNode instanceof ShadowRoot&&t.parentNode.host instanceof HTMLElement?U(t.parentNode.host):t.parentElement instanceof HTMLElement?U(t.parentElement):J}function W(t,s){const i=t(),e=H();e.init({fallbackLng:J,resources:s,defaultNS:i.tagName.toLowerCase(),interpolation:{escapeValue:!1},showSupportNotice:!1});let n=!1;return(t,s)=>{if(!n){n=!0;const t=U(i);e.changeLanguage(t)}return e.t(t,s)}}export{W as i}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-BIfnbekk.js";const t=({id:t,tipElementRef:e,tipArrowElementRef:i},p)=>o("div",{id:t,popover:"manual",class:"dso-tooltip",ref:e},o("span",{class:"tooltip-arrow",ref:i}),o("div",{class:"tooltip-inner"},p));export{t as T}
@@ -0,0 +1 @@
1
+ import{a as t,c as e,o as a,f as i,s as o,b as n,h as s,d as r}from"./p-zRaH89Qj.js";function p(p){const{referenceElement:c,tipRef:l,tipArrowRef:m,placementTip:d,topPositionSmallViewPort:f,halfMainAxisOffset:b,forceVisible:x,restrictContentElement:g}=p;let h,y=!1;const j=t(c,l,(()=>{const t=m.offsetWidth,p=Math.sqrt(2*t**2),j=b?p/2:p,v=t*Math.sqrt(2)*1.5,A=f&&document.body.clientWidth<992,u=A?"top":d;e(c,l,{strategy:"fixed",middleware:[a({mainAxis:j,alignmentAxis:-v}),i({padding:5}),o({padding:5}),n({padding:t,element:m}),s({padding:t+5}),g&&r({apply({availableHeight:t,availableWidth:e}){Object.assign(g.style,{maxHeight:t-5+"px",maxWidth:e-10+"px"})}})],placement:u}).then((({x:e,y:a,middlewareData:i,placement:o,strategy:n})=>{y||(void 0!==h&&cancelAnimationFrame(h),h=requestAnimationFrame((()=>{if(y)return;const s=!A&&!x&&!!i.hide?.referenceHidden;Object.assign(l.style,{visibility:s?"hidden":"visible",opacity:s?"0":"1"}),Object.assign(l.style,{left:`${e}px`,top:`${a}px`,strategy:n});const r=o.split("-")[0],p=r?{top:"bottom",right:"left",bottom:"top",left:"right"}[r]:"top";let c;switch(p){default:case"top":c=45;break;case"right":c=135;break;case"bottom":c=225;break;case"left":c=315}if(i.arrow&&p){const{x:e,y:a}=i.arrow;Object.assign(m.style,{right:"",bottom:"",left:e?`${e}px`:"",top:a?`${a}px`:"",[p]:-t/2+"px",transform:`rotate(${c}deg)`})}})))}))}));return()=>{y=!0,Object.assign(l.style,{visibility:"hidden",opacity:"0"}),void 0!==h&&cancelAnimationFrame(h),j()}}export{p}
@@ -0,0 +1 @@
1
+ import{r as s,f as t,h as e,a,g as i}from"./p-BIfnbekk.js";const r=class{constructor(t){s(this,t),this.keyUpHandler=s=>{if(s.target instanceof HTMLElement)switch(s.key){case"ArrowRight":case"ArrowDown":this.moveFocusToNextTab(s.target);break;case"ArrowLeft":case"ArrowUp":this.moveFocusToPreviousTab(s.target);break;default:return}}}get enabledTabs(){return Array.from(this.host.querySelectorAll(":scope > dso-tab")).reduce(((s,t)=>(t.disabled||s.push(t),s)),[])}get firstTab(){return this.enabledTabs[0]}get lastTab(){return this.enabledTabs[this.enabledTabs.length-1]}moveFocusToTab(s){s?._dsoFocus()}moveFocusToPreviousTab(s){const t=this.enabledTabs.findIndex((t=>t===s));this.moveFocusToTab(this.enabledTabs[t-1]??this.lastTab)}moveFocusToNextTab(s){const t=this.enabledTabs.findIndex((t=>t===s));this.moveFocusToTab(this.enabledTabs[t+1]??this.firstTab)}connectedCallback(){this.mutationObserver??(this.mutationObserver=new MutationObserver((()=>t(this.host)))),this.mutationObserver.observe(this.host,{childList:!0})}disconnectedCallback(){this.mutationObserver?.disconnect()}render(){return e(a,{key:"349c801fdadbfd077ca6cc68f5d1f48dea0d4ff4"},e("div",{key:"1413312c78b126135b10295690aa957d99304acf",class:"tabs",role:"tablist",onKeyUp:this.keyUpHandler},e("slot",{key:"3b4cbf35c3d29ba1f6158853d755335dd8a05b5e"})),e("div",{key:"95e97aa712722fc019bbf1578dfb1c6224ecebb5",role:"tabpanel",tabindex:"0"},e("slot",{key:"305195dcc64770963bb740d64c5cc0d08f0c16bc",name:"panel"})))}get host(){return i(this)}};r.style="*,*::after,*::before{box-sizing:border-box}:host{display:block}.tabs{border-block-end:1px solid #39870c;display:flex;gap:2px;flex-wrap:wrap;margin-block-end:24px;padding-inline-start:0}@media screen and (max-width: 767px){.tabs{border:0;display:block}}";export{r as dso_tabs}