@vokril/ui-solid 0.13.0 → 0.18.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 (585) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +110 -31
  3. package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
  4. package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
  5. package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
  6. package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
  7. package/dist/CommandPalette-BH7c1cbU.js +3968 -0
  8. package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -0
  9. package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
  10. package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
  11. package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
  12. package/dist/{DateRangePicker-D-5rg3h1.js → DateRangePicker-jSQBwB78.js} +181 -166
  13. package/dist/GuidedTour-CWDtBRHv.js +483 -0
  14. package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
  15. package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
  16. package/dist/HostPortal-X1iw719T.js +33 -0
  17. package/dist/HostWindowContext-B2m0bVra.js +32 -0
  18. package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
  19. package/dist/{IconPicker-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
  20. package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
  21. package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
  22. package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
  23. package/dist/Modal-CQG8l4x7.cjs +1 -0
  24. package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
  25. package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
  26. package/dist/{PageSkeleton-C95fXUUk.js → PageSkeleton-CUTLh9Ip.js} +630 -628
  27. package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
  28. package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
  29. package/dist/{SearchableSelect-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
  30. package/dist/{SearchableSelect-MN5azo9r.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
  31. package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
  32. package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
  33. package/dist/{Stepper-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
  34. package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
  35. package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
  36. package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
  37. package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
  38. package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
  39. package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
  40. package/dist/{ToggleButton-DCP7f6Uo.js → ToggleButton-D-N0C2Fu.js} +54 -53
  41. package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
  42. package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
  43. package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
  44. package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
  45. package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
  46. package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
  47. package/dist/_internal/app/keybindings/index.d.cts +0 -10
  48. package/dist/_internal/app/keybindings/index.d.ts +0 -10
  49. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
  50. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
  51. package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
  52. package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
  53. package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
  54. package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
  55. package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
  56. package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
  57. package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +8 -4
  58. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
  59. package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
  60. package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
  61. package/dist/_internal/contract/catalogNotify.d.cts +6 -19
  62. package/dist/_internal/contract/catalogNotify.d.ts +6 -19
  63. package/dist/_internal/contract/hostErrorText.d.cts +13 -23
  64. package/dist/_internal/contract/hostErrorText.d.ts +13 -23
  65. package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
  66. package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
  67. package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
  68. package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
  69. package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
  70. package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
  71. package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
  72. package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
  73. package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
  74. package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
  75. package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
  76. package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
  77. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  78. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  79. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  80. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  81. package/dist/a11y/index.cjs +1 -1
  82. package/dist/a11y/index.js +1 -1
  83. package/dist/actions-DtaFGwh2.cjs +1 -0
  84. package/dist/actions-wwAHs3ZU.js +16 -0
  85. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  86. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  87. package/dist/async/createGuardedListLoader.d.cts +3 -0
  88. package/dist/async/createGuardedListLoader.d.ts +3 -0
  89. package/dist/charts/index.cjs +1 -1
  90. package/dist/charts/index.js +1 -1
  91. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  92. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  93. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  94. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  95. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  96. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  97. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  98. package/dist/defineSettings-Di1sG81q.js +407 -0
  99. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  100. package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
  101. package/dist/desktop/index.cjs +1 -1
  102. package/dist/desktop/index.js +500 -426
  103. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  104. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  105. package/dist/electronBridge-BK92fycw.js +235 -0
  106. package/dist/electronBridge-cT0xww92.cjs +1 -0
  107. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  108. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  109. package/dist/feedback/Loader.d.cts +6 -1
  110. package/dist/feedback/Loader.d.ts +6 -1
  111. package/dist/feedback/createPreference.d.cts +4 -1
  112. package/dist/feedback/createPreference.d.ts +4 -1
  113. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  114. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  115. package/dist/feedback/index.cjs +1 -1
  116. package/dist/feedback/index.js +37 -38
  117. package/dist/feedback/readFailureText.d.cts +20 -1
  118. package/dist/feedback/readFailureText.d.ts +20 -1
  119. package/dist/focusModality-BISb6-yg.cjs +1 -0
  120. package/dist/focusModality-FoLPWF-_.js +135 -0
  121. package/dist/forms/index.cjs +1 -1
  122. package/dist/forms/index.js +9 -9
  123. package/dist/grid/index.cjs +1 -1
  124. package/dist/grid/index.js +1 -1
  125. package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  126. package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  127. package/dist/host/index.cjs +1 -1
  128. package/dist/host/index.d.cts +14 -16
  129. package/dist/host/index.d.ts +14 -16
  130. package/dist/host/index.js +53 -90
  131. package/dist/host/kitHost.d.cts +42 -0
  132. package/dist/host/kitHost.d.ts +42 -0
  133. package/dist/host/window.d.cts +3 -11
  134. package/dist/host/window.d.ts +3 -11
  135. package/dist/i18n/index.cjs +1 -1
  136. package/dist/i18n/index.js +1 -1
  137. package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
  138. package/dist/i18n-DZ0JlZal.cjs +4 -0
  139. package/dist/index.cjs +1 -1
  140. package/dist/index.d.cts +1 -1
  141. package/dist/index.d.ts +1 -1
  142. package/dist/index.js +665 -738
  143. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  144. package/dist/isOneOf-Dtomuazg.js +6 -0
  145. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  146. package/dist/keys-GMxY2wcl.cjs +1 -0
  147. package/dist/layout/createResizableSidebar.d.cts +14 -0
  148. package/dist/layout/createResizableSidebar.d.ts +14 -0
  149. package/dist/layout/index.cjs +1 -1
  150. package/dist/layout/index.js +3 -3
  151. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  152. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  153. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  154. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  155. package/dist/navigation/index.cjs +1 -1
  156. package/dist/navigation/index.js +1 -1
  157. package/dist/notifications/NotificationHost.d.cts +7 -1
  158. package/dist/notifications/NotificationHost.d.ts +7 -1
  159. package/dist/notifications/NotificationItem.d.cts +48 -15
  160. package/dist/notifications/NotificationItem.d.ts +48 -15
  161. package/dist/notifications/catalogAdapter.d.cts +28 -6
  162. package/dist/notifications/catalogAdapter.d.ts +28 -6
  163. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  164. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  165. package/dist/notifications/customSoundCache.d.cts +24 -24
  166. package/dist/notifications/customSoundCache.d.ts +24 -24
  167. package/dist/notifications/emailDigest.d.cts +34 -16
  168. package/dist/notifications/emailDigest.d.ts +34 -16
  169. package/dist/notifications/errorActionButtons.d.cts +18 -1
  170. package/dist/notifications/errorActionButtons.d.ts +18 -1
  171. package/dist/notifications/fireNotification.d.cts +27 -17
  172. package/dist/notifications/fireNotification.d.ts +27 -17
  173. package/dist/notifications/index.cjs +1 -1
  174. package/dist/notifications/index.d.cts +6 -12
  175. package/dist/notifications/index.d.ts +6 -12
  176. package/dist/notifications/index.js +64 -104
  177. package/dist/notifications/nativeEngine.d.cts +18 -15
  178. package/dist/notifications/nativeEngine.d.ts +18 -15
  179. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  180. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  181. package/dist/notifications/notificationAudio.d.cts +30 -23
  182. package/dist/notifications/notificationAudio.d.ts +30 -23
  183. package/dist/notifications/notificationCardServices.d.cts +23 -0
  184. package/dist/notifications/notificationCardServices.d.ts +23 -0
  185. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  186. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  187. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  188. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  189. package/dist/notifications/notificationService.d.cts +101 -0
  190. package/dist/notifications/notificationService.d.ts +101 -0
  191. package/dist/notifications/notificationTimeline.d.cts +47 -49
  192. package/dist/notifications/notificationTimeline.d.ts +47 -49
  193. package/dist/notifications/notifications.notifications.d.cts +0 -4
  194. package/dist/notifications/notifications.notifications.d.ts +0 -4
  195. package/dist/notifications/toast.d.cts +24 -28
  196. package/dist/notifications/toast.d.ts +24 -28
  197. package/dist/notifications/webhookDelivery.d.cts +12 -17
  198. package/dist/notifications/webhookDelivery.d.ts +12 -17
  199. package/dist/overlay/ConfirmDialog.d.cts +16 -17
  200. package/dist/overlay/ConfirmDialog.d.ts +16 -17
  201. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  202. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  203. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  204. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  205. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  206. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  207. package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
  208. package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
  209. package/dist/overlay/index.cjs +1 -1
  210. package/dist/overlay/index.d.cts +2 -3
  211. package/dist/overlay/index.d.ts +2 -3
  212. package/dist/overlay/index.js +114 -119
  213. package/dist/pageTourState-BcBF8w89.js +516 -0
  214. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  215. package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
  216. package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  217. package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
  218. package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
  219. package/dist/server/CommandPalette-DwlWZI1s.js +3224 -0
  220. package/dist/server/CommandPalette-VewDIghb.cjs +1 -0
  221. package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  222. package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
  223. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  224. package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
  225. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  226. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  227. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  228. package/dist/server/HostPortal-X1iw719T.js +33 -0
  229. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  230. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  231. package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  232. package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
  233. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  234. package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
  235. package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
  236. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  237. package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
  238. package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  239. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  240. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  241. package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
  242. package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
  243. package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  244. package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  245. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  246. package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
  247. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  248. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  249. package/dist/server/a11y/index.cjs +1 -1
  250. package/dist/server/a11y/index.js +1 -1
  251. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  252. package/dist/server/actions-wwAHs3ZU.js +16 -0
  253. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  254. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  255. package/dist/server/charts/index.cjs +1 -1
  256. package/dist/server/charts/index.js +1 -1
  257. package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  258. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  259. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  260. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  261. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  262. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  263. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  264. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  265. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  266. package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
  267. package/dist/server/desktop/index.cjs +1 -1
  268. package/dist/server/desktop/index.js +389 -315
  269. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  270. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  271. package/dist/server/electronBridge-BK92fycw.js +235 -0
  272. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  273. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  274. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  275. package/dist/server/feedback/index.cjs +1 -1
  276. package/dist/server/feedback/index.js +37 -38
  277. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  278. package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
  279. package/dist/server/forms/index.cjs +1 -1
  280. package/dist/server/forms/index.js +7 -7
  281. package/dist/server/grid/index.cjs +1 -1
  282. package/dist/server/grid/index.js +1 -1
  283. package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  284. package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  285. package/dist/server/host/index.cjs +1 -1
  286. package/dist/server/host/index.js +53 -90
  287. package/dist/server/i18n/index.cjs +1 -1
  288. package/dist/server/i18n/index.js +1 -1
  289. package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
  290. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  291. package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
  292. package/dist/server/index-Cqod09d_.cjs +1 -0
  293. package/dist/server/index.cjs +1 -1
  294. package/dist/server/index.js +825 -898
  295. package/dist/server/layout/index.cjs +1 -1
  296. package/dist/server/layout/index.js +3 -3
  297. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  298. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  299. package/dist/server/navigation/index.cjs +1 -1
  300. package/dist/server/navigation/index.js +1 -1
  301. package/dist/server/notifications/index.cjs +1 -1
  302. package/dist/server/notifications/index.js +63 -103
  303. package/dist/server/overlay/index.cjs +1 -1
  304. package/dist/server/overlay/index.js +115 -120
  305. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  306. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  307. package/dist/server/settings/index.cjs +1 -1
  308. package/dist/server/settings/index.js +23 -24
  309. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  310. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  311. package/dist/server/tokens/index.cjs +1 -1
  312. package/dist/server/tokens/index.js +19 -20
  313. package/dist/server/tree/index.cjs +1 -1
  314. package/dist/server/tree/index.js +1 -1
  315. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  316. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  317. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  318. package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  319. package/dist/server/window-CUK6x8Pj.js +36 -0
  320. package/dist/server/window-_BfSgFGO.cjs +1 -0
  321. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  322. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  323. package/dist/settings/index.cjs +1 -1
  324. package/dist/settings/index.d.cts +1 -1
  325. package/dist/settings/index.d.ts +1 -1
  326. package/dist/settings/index.js +23 -24
  327. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  328. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  329. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  330. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  331. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  332. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  333. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  334. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
  335. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  336. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  337. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  338. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  339. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  340. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  341. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  342. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  343. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  344. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  345. package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
  346. package/dist/solid/async/createGuardedListLoader.js +1 -1
  347. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  348. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  349. package/dist/solid/feedback/Loader.jsx +1 -2
  350. package/dist/solid/feedback/createPreference.js +3 -2
  351. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  352. package/dist/solid/feedback/preference.notifications.js +1 -2
  353. package/dist/solid/feedback/readFailureText.js +1 -2
  354. package/dist/solid/host/index.js +8 -16
  355. package/dist/solid/host/window.js +15 -22
  356. package/dist/solid/i18n/i18n.js +5 -6
  357. package/dist/solid/index.js +0 -1
  358. package/dist/solid/layout/createResizableSidebar.js +15 -23
  359. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  360. package/dist/solid/notifications/NotificationItem.jsx +28 -104
  361. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  362. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  363. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  364. package/dist/solid/notifications/catalogAdapter.js +61 -62
  365. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  366. package/dist/solid/notifications/customSoundCache.js +26 -21
  367. package/dist/solid/notifications/emailDigest.js +74 -86
  368. package/dist/solid/notifications/errorActionButtons.js +6 -11
  369. package/dist/solid/notifications/fireNotification.js +14 -19
  370. package/dist/solid/notifications/index.js +3 -12
  371. package/dist/solid/notifications/nativeEngine.js +6 -19
  372. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  373. package/dist/solid/notifications/notificationAudio.js +77 -74
  374. package/dist/solid/notifications/notificationCardServices.js +34 -0
  375. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  376. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  377. package/dist/solid/notifications/notificationService.js +135 -0
  378. package/dist/solid/notifications/notificationTimeline.js +117 -124
  379. package/dist/solid/notifications/notifications.notifications.js +3 -22
  380. package/dist/solid/notifications/toast.js +168 -213
  381. package/dist/solid/notifications/webhookDelivery.js +27 -53
  382. package/dist/solid/overlay/ConfirmDialog.jsx +14 -58
  383. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  384. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  385. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  386. package/dist/solid/overlay/index.js +0 -3
  387. package/dist/solid/settings/index.js +1 -1
  388. package/dist/solid/tokens/index.js +1 -1
  389. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  390. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  391. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  392. package/dist/style.css +1 -1
  393. package/dist/tokens/index.cjs +1 -1
  394. package/dist/tokens/index.d.cts +1 -1
  395. package/dist/tokens/index.d.ts +1 -1
  396. package/dist/tokens/index.js +19 -20
  397. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  398. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  399. package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  400. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  401. package/dist/tree/index.cjs +1 -1
  402. package/dist/tree/index.js +1 -1
  403. package/dist/ui.css +1 -1
  404. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  405. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  406. package/dist/useListCommands-BO_XrRHj.js +38 -0
  407. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  408. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  409. package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  410. package/dist/window-CUK6x8Pj.js +36 -0
  411. package/dist/window-_BfSgFGO.cjs +1 -0
  412. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  413. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  414. package/package.json +1 -1
  415. package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
  416. package/dist/CommandPalette-yqvM9AuU.js +0 -3897
  417. package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
  418. package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
  419. package/dist/GuidedTour-lsljVkPL.js +0 -11216
  420. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  421. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  422. package/dist/Modal-CJhd27dM.cjs +0 -1
  423. package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
  424. package/dist/Progress-B5YmNeyU.js +0 -56
  425. package/dist/Progress-BNy0wsJl.cjs +0 -1
  426. package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
  427. package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
  428. package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
  429. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  430. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  431. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  432. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  433. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  434. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  435. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  436. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  437. package/dist/_internal/contract/appName.d.cts +0 -10
  438. package/dist/_internal/contract/appName.d.ts +0 -10
  439. package/dist/_internal/contract/hostText.d.cts +0 -25
  440. package/dist/_internal/contract/hostText.d.ts +0 -25
  441. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  442. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  443. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  444. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  445. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  446. package/dist/catalogNotify-BcY9oqVy.js +0 -1223
  447. package/dist/catalogNotify-DacJjC-p.cjs +0 -27
  448. package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
  449. package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
  450. package/dist/defineSettings-CcYXt2Jf.js +0 -391
  451. package/dist/defineSettings-yHQdUwxI.cjs +0 -1
  452. package/dist/descriptor-Dmch-3AF.cjs +0 -1
  453. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  454. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  455. package/dist/displayOwner-eYQHHvjt.cjs +0 -1
  456. package/dist/displayOwner-mT80Oyi-.js +0 -75
  457. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  458. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  459. package/dist/focusModality-BNjYldd9.cjs +0 -1
  460. package/dist/focusModality-DxudpWPs.js +0 -135
  461. package/dist/format-BS7oDguE.js +0 -298
  462. package/dist/format-CuANkXXB.cjs +0 -1
  463. package/dist/i18n-DXXArz-m.cjs +0 -4
  464. package/dist/keys-BeeC5_RZ.cjs +0 -1
  465. package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
  466. package/dist/mainRealmDom-kEStLHIY.js +0 -102
  467. package/dist/menuFavorites-BmdM_qV5.js +0 -69
  468. package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
  469. package/dist/notification-DygvQB_o.cjs +0 -1
  470. package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
  471. package/dist/notificationSuppressions-ddyK85cB.js +0 -430
  472. package/dist/notifications/copyToClipboard.d.cts +0 -6
  473. package/dist/notifications/copyToClipboard.d.ts +0 -6
  474. package/dist/notifications/createCopyFlash.d.cts +0 -17
  475. package/dist/notifications/createCopyFlash.d.ts +0 -17
  476. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  477. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  478. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  479. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  480. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  481. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  482. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  483. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  484. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  485. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  486. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  487. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  488. package/dist/overlay/ToastHost.d.cts +0 -7
  489. package/dist/overlay/ToastHost.d.ts +0 -7
  490. package/dist/pageTourState-CIr8ockR.js +0 -92
  491. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  492. package/dist/preferencesCache-Bow6TxP1.js +0 -65
  493. package/dist/preferencesCache-D7mm43_n.cjs +0 -1
  494. package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
  495. package/dist/rendererLogging-gAhiHWkA.js +0 -822
  496. package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
  497. package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
  498. package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
  499. package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
  500. package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
  501. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  502. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  503. package/dist/server/Modal-CCUwQYso.cjs +0 -1
  504. package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
  505. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  506. package/dist/server/Progress-nsDy6clG.js +0 -41
  507. package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
  508. package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
  509. package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
  510. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  511. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  512. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  513. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  514. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  515. package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
  516. package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
  517. package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
  518. package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
  519. package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
  520. package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
  521. package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
  522. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  523. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  524. package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
  525. package/dist/server/displayOwner-mT80Oyi-.js +0 -75
  526. package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
  527. package/dist/server/format-WfZycMBL.cjs +0 -1
  528. package/dist/server/i18n-DXXArz-m.cjs +0 -4
  529. package/dist/server/index-DlQYWckZ.cjs +0 -1
  530. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  531. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  532. package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
  533. package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
  534. package/dist/server/notification-DygvQB_o.cjs +0 -1
  535. package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
  536. package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
  537. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  538. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  539. package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
  540. package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
  541. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
  542. package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
  543. package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
  544. package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
  545. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  546. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  547. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  548. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  549. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  550. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  551. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  552. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  553. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  554. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  555. package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
  556. package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
  557. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  558. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  559. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  560. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  561. package/dist/solid/_internal/contract/appName.js +0 -7
  562. package/dist/solid/_internal/contract/hostText.js +0 -15
  563. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  564. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  565. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  566. package/dist/solid/notifications/copyToClipboard.js +0 -21
  567. package/dist/solid/notifications/createCopyFlash.js +0 -26
  568. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  569. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  570. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  571. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  572. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  573. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  574. package/dist/solid/overlay/ToastHost.jsx +0 -1
  575. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  576. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  577. package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
  578. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  579. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  580. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  581. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  582. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  583. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  584. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  585. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,119 +1,119 @@
1
- import { createRoot as k, createEffect as q, createSignal as J } from "solid-js";
2
- import { createStore as Q } from "solid-js/store";
3
- import { template as Z, insert as I } from "solid-js/web";
4
- import { g as tt } from "./rendererLogging-gAhiHWkA.js";
5
- function H(t, e, n) {
1
+ import { createRoot as q, createEffect as J, createSignal as Q } from "solid-js";
2
+ import { createStore as Z } from "solid-js/store";
3
+ import { template as k, insert as I } from "solid-js/web";
4
+ import { o as H } from "./errorHandler-BvPGW-Nm.js";
5
+ function F(t, e, n) {
6
6
  return new Intl.NumberFormat(e, n).format(t);
7
7
  }
8
- function F(t, e, n) {
8
+ function V(t, e, n) {
9
9
  return new Intl.DateTimeFormat(e, n).format(t);
10
10
  }
11
- var l;
11
+ var f;
12
12
  (function(t) {
13
13
  t.number = "number", t.plural = "plural", t.date = "date", t.tag = "tag";
14
- })(l || (l = {}));
15
- function E(t) {
14
+ })(f || (f = {}));
15
+ function P(t) {
16
16
  return typeof t == "number";
17
17
  }
18
18
  function g(t) {
19
19
  return typeof t == "string";
20
20
  }
21
- function et(t) {
21
+ function tt(t) {
22
22
  return t instanceof Date;
23
23
  }
24
- function nt(t) {
24
+ function et(t) {
25
25
  return typeof t == "function";
26
26
  }
27
- function rt(t) {
27
+ function nt(t) {
28
28
  return t !== null && typeof t == "object";
29
29
  }
30
30
  function w(t, e) {
31
31
  return g(e) ? t == null ? void 0 : t[e] : t == null ? void 0 : t.default;
32
32
  }
33
- function ot(t, e, n, r = {}, a) {
33
+ function rt(t, e, n, r = {}, i) {
34
34
  if (typeof n == "string")
35
35
  return n;
36
- const [o, i, u] = n, c = r[o];
37
- if (E(c) && (!i || i === l.number))
38
- return H(c, t, w(e.number, u));
39
- if (et(c) || (g(c) || E(c)) && i === l.date)
40
- return F(new Date(c), t, w(e.dateTime, u));
41
- if (i === l.tag) {
42
- const f = g(u) || Array.isArray(u) ? T(t, e, u, r, a) : void 0;
43
- if (nt(c))
44
- return c(f);
45
- if (a) {
46
- const y = g(c) ? c : o;
47
- return a(y, f);
36
+ const [o, a, u] = n, s = r[o];
37
+ if (P(s) && (!a || a === f.number))
38
+ return F(s, t, w(e.number, u));
39
+ if (tt(s) || (g(s) || P(s)) && a === f.date)
40
+ return V(new Date(s), t, w(e.dateTime, u));
41
+ if (a === f.tag) {
42
+ const l = g(u) || Array.isArray(u) ? T(t, e, u, r, i) : void 0;
43
+ if (et(s))
44
+ return s(l);
45
+ if (i) {
46
+ const y = g(s) ? s : o;
47
+ return i(y, l);
48
48
  }
49
49
  return "";
50
- } else if (i === l.plural && E(c) && rt(u)) {
51
- if (c === 0 && u["=0"])
50
+ } else if (a === f.plural && P(s) && nt(u)) {
51
+ if (s === 0 && u["=0"])
52
52
  return u["=0"];
53
- const f = new Intl.PluralRules(t).select(c), y = u[f] || u.other || "";
54
- return T(t, e, y, r, a);
53
+ const l = new Intl.PluralRules(t).select(s), y = u[l] || u.other || "";
54
+ return T(t, e, y, r, i);
55
55
  } else
56
- return String(c);
56
+ return String(s);
57
57
  }
58
- function T(t, e, n, r = {}, a) {
58
+ function T(t, e, n, r = {}, i) {
59
59
  if (Array.isArray(n)) {
60
- const o = n.map((i) => ot(t, e, i, r, a));
60
+ const o = n.map((a) => rt(t, e, a, r, i));
61
61
  return o.every(g) ? o.join("") : o;
62
62
  }
63
63
  return n;
64
64
  }
65
- const _ = "var", v = "%%%", V = "num|number|plural|date", P = "=0|zero|one|two|few|many|other", ut = new RegExp(`((${P})\\s{)`, "g"), at = new RegExp(`^(${P})\\s{(.+?)}$`), it = /(<(\w+?)>(.+?)<\/\w+?>|<(\w+?)(| )\/>)/g, ct = /^<(\w+?)(?:(?:| )\/>|>(.+?)<\/\w+?>)$/, st = new RegExp(`{(\\w+?)(, (${V})(, ((${P}) {.+?}+|\\w+?)|)|)}`, "g"), lt = new RegExp(`^{(\\w+?)(?:, (${V})(?:, ((?:${P}) {.+?}+|\\w+?)|)|)}$`);
65
+ const _ = "var", v = "%%%", X = "num|number|plural|date", L = "=0|zero|one|two|few|many|other", ot = new RegExp(`((${L})\\s{)`, "g"), ut = new RegExp(`^(${L})\\s{(.+?)}$`), it = /(<(\w+?)>(.+?)<\/\w+?>|<(\w+?)(| )\/>)/g, at = /^<(\w+?)(?:(?:| )\/>|>(.+?)<\/\w+?>)$/, st = new RegExp(`{(\\w+?)(, (${X})(, ((${L}) {.+?}+|\\w+?)|)|)}`, "g"), ct = new RegExp(`^{(\\w+?)(?:, (${X})(?:, ((?:${L}) {.+?}+|\\w+?)|)|)}$`);
66
66
  function ft(t) {
67
67
  if (t === "num" || t === "number")
68
- return l.number;
68
+ return f.number;
69
69
  if (t === "plural")
70
- return l.plural;
70
+ return f.plural;
71
71
  if (t === "date")
72
- return l.date;
72
+ return f.date;
73
73
  }
74
74
  function $(t, e, n) {
75
- return e.reduce((r, a, o) => r.replace(a, `${v}${_}${o}${v}`), t).split(v).filter((r) => r !== "").map((r) => {
76
- const a = r.match(new RegExp(`^${_}(\\d+?)$`));
77
- return a && a[1] ? n(e[a[1]], r) : r;
75
+ return e.reduce((r, i, o) => r.replace(i, `${v}${_}${o}${v}`), t).split(v).filter((r) => r !== "").map((r) => {
76
+ const i = r.match(new RegExp(`^${_}(\\d+?)$`));
77
+ return i && i[1] ? n(e[i[1]], r) : r;
78
78
  });
79
79
  }
80
80
  function D(t) {
81
81
  return t.reduceRight((e, n) => !n && !e.length ? e : [n, ...e], []);
82
82
  }
83
- function gt(t) {
83
+ function lt(t) {
84
84
  return t !== null && t.length === 3;
85
85
  }
86
86
  function M(t) {
87
87
  return t !== null && [...t].filter(Boolean).slice(1);
88
88
  }
89
- function mt(t) {
90
- return t.replace(ut, `
89
+ function gt(t) {
90
+ return t.replace(ot, `
91
91
  $1`).split(`
92
- `).map((e) => e.trim().match(at)).filter(gt).reduce((e, n) => (e[n[1]] = O(n[2]), e), {});
92
+ `).map((e) => e.trim().match(ut)).filter(lt).reduce((e, n) => (e[n[1]] = O(n[2]), e), {});
93
93
  }
94
- function pt(t, e) {
95
- return t === l.plural && e ? mt(e) : e;
94
+ function mt(t, e) {
95
+ return t === f.plural && e ? gt(e) : e;
96
96
  }
97
97
  function O(t) {
98
98
  const e = [t].reduce((n, r) => {
99
- const a = r.match(it);
100
- return n.push(...a ? $(t, a, (o, i) => {
101
- const u = M(o.match(ct));
102
- return u ? D([u[0], l.tag, u[1] && O(u[1])]) : i;
99
+ const i = r.match(it);
100
+ return n.push(...i ? $(t, i, (o, a) => {
101
+ const u = M(o.match(at));
102
+ return u ? D([u[0], f.tag, u[1] && O(u[1])]) : a;
103
103
  }) : [r]), n;
104
104
  }, []).reduce((n, r) => {
105
- const a = g(r) && r.match(st);
106
- return n.push(...a ? $(r, a, (o, i) => {
107
- const u = M(o.match(lt));
105
+ const i = g(r) && r.match(st);
106
+ return n.push(...i ? $(r, i, (o, a) => {
107
+ const u = M(o.match(ct));
108
108
  if (!u)
109
- return i;
110
- const c = ft(u[1]);
111
- return D([u[0], c, pt(c, u[2])]);
109
+ return a;
110
+ const s = ft(u[1]);
111
+ return D([u[0], s, mt(s, u[2])]);
112
112
  }) : [r]), n;
113
113
  }, []);
114
114
  return e.length === 1 && typeof e[0] == "string" ? e[0] : e;
115
115
  }
116
- function dt(t) {
116
+ function pt(t) {
117
117
  const e = /* @__PURE__ */ new Set();
118
118
  function n() {
119
119
  [...e.values()].forEach((o) => o());
@@ -128,35 +128,35 @@ function dt(t) {
128
128
  setLocales: (o) => {
129
129
  r.locales = Object.assign(Object.assign({}, r.locales), { [r.language]: Object.assign(Object.assign({}, r.locales[r.language]), o) }), n();
130
130
  },
131
- t: (o, i) => {
131
+ t: (o, a) => {
132
132
  var u;
133
- const c = g(o) ? void 0 : o.id, f = g(o) ? o : o.message;
134
- return T(r.language, r.presets, O(((u = r.locales[r.language]) === null || u === void 0 ? void 0 : u[c || f]) || f), i, t.formatTag);
133
+ const s = g(o) ? void 0 : o.id, l = g(o) ? o : o.message;
134
+ return T(r.language, r.presets, O(((u = r.locales[r.language]) === null || u === void 0 ? void 0 : u[s || l]) || l), a, t.formatTag);
135
135
  },
136
- formatNumber: (o, i) => {
137
- const u = !i || g(i) ? w(r.presets.number, i) : i;
138
- return H(o, r.language, u);
136
+ formatNumber: (o, a) => {
137
+ const u = !a || g(a) ? w(r.presets.number, a) : a;
138
+ return F(o, r.language, u);
139
139
  },
140
- formatDateTime: (o, i) => {
141
- const u = typeof o == "string" ? new Date(o) : o, c = !i || g(i) ? w(r.presets.dateTime, i) : i;
142
- return F(u, r.language, c);
140
+ formatDateTime: (o, a) => {
141
+ const u = typeof o == "string" ? new Date(o) : o, s = !a || g(a) ? w(r.presets.dateTime, a) : a;
142
+ return V(u, r.language, s);
143
143
  }
144
144
  };
145
- function a(o) {
145
+ function i(o) {
146
146
  return e.add(o), () => {
147
147
  e.delete(o);
148
148
  };
149
149
  }
150
- return { i18n: r, subscribe: a };
150
+ return { i18n: r, subscribe: i };
151
151
  }
152
- function yt(t, e) {
153
- return Lt(t) || wt(t, e) || ht(t, e) || bt();
152
+ function dt(t, e) {
153
+ return wt(t) || ht(t, e) || bt(t, e) || yt();
154
154
  }
155
- function bt() {
155
+ function yt() {
156
156
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
157
157
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
158
158
  }
159
- function ht(t, e) {
159
+ function bt(t, e) {
160
160
  if (t) {
161
161
  if (typeof t == "string") return G(t, e);
162
162
  var n = Object.prototype.toString.call(t).slice(8, -1);
@@ -169,56 +169,56 @@ function G(t, e) {
169
169
  for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
170
170
  return r;
171
171
  }
172
- function wt(t, e) {
172
+ function ht(t, e) {
173
173
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
174
174
  if (n != null) {
175
- var r, a, o, i, u = [], c = !0, f = !1;
175
+ var r, i, o, a, u = [], s = !0, l = !1;
176
176
  try {
177
- if (o = (n = n.call(t)).next, e !== 0) for (; !(c = (r = o.call(n)).done) && (u.push(r.value), u.length !== e); c = !0) ;
177
+ if (o = (n = n.call(t)).next, e !== 0) for (; !(s = (r = o.call(n)).done) && (u.push(r.value), u.length !== e); s = !0) ;
178
178
  } catch (y) {
179
- f = !0, a = y;
179
+ l = !0, i = y;
180
180
  } finally {
181
181
  try {
182
- if (!c && n.return != null && (i = n.return(), Object(i) !== i)) return;
182
+ if (!s && n.return != null && (a = n.return(), Object(a) !== a)) return;
183
183
  } finally {
184
- if (f) throw a;
184
+ if (l) throw i;
185
185
  }
186
186
  }
187
187
  return u;
188
188
  }
189
189
  }
190
- function Lt(t) {
190
+ function wt(t) {
191
191
  if (Array.isArray(t)) return t;
192
192
  }
193
- function N(t, e) {
193
+ function x(t, e) {
194
194
  var n = Object.keys(t);
195
195
  if (Object.getOwnPropertySymbols) {
196
196
  var r = Object.getOwnPropertySymbols(t);
197
- e && (r = r.filter(function(a) {
198
- return Object.getOwnPropertyDescriptor(t, a).enumerable;
197
+ e && (r = r.filter(function(i) {
198
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
199
199
  })), n.push.apply(n, r);
200
200
  }
201
201
  return n;
202
202
  }
203
- function L(t) {
203
+ function E(t) {
204
204
  for (var e = 1; e < arguments.length; e++) {
205
205
  var n = arguments[e] != null ? arguments[e] : {};
206
- e % 2 ? N(Object(n), !0).forEach(function(r) {
207
- Pt(t, r, n[r]);
208
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : N(Object(n)).forEach(function(r) {
206
+ e % 2 ? x(Object(n), !0).forEach(function(r) {
207
+ Et(t, r, n[r]);
208
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : x(Object(n)).forEach(function(r) {
209
209
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
210
210
  });
211
211
  }
212
212
  return t;
213
213
  }
214
- function Pt(t, e, n) {
215
- return e = Et(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
214
+ function Et(t, e, n) {
215
+ return e = Lt(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
216
216
  }
217
- function Et(t) {
218
- var e = vt(t, "string");
217
+ function Lt(t) {
218
+ var e = Pt(t, "string");
219
219
  return typeof e == "symbol" ? e : String(e);
220
220
  }
221
- function vt(t, e) {
221
+ function Pt(t, e) {
222
222
  if (typeof t != "object" || t === null) return t;
223
223
  var n = t[Symbol.toPrimitive];
224
224
  if (n !== void 0) {
@@ -228,77 +228,77 @@ function vt(t, e) {
228
228
  }
229
229
  return (e === "string" ? String : Number)(t);
230
230
  }
231
- function At(t, e) {
232
- var n = Z(`<${t}>`);
231
+ function vt(t, e) {
232
+ var n = k(`<${t}>`);
233
233
  return I(n(), () => e), n;
234
234
  }
235
235
  function A(t) {
236
236
  return t.bind({});
237
237
  }
238
- function U(t) {
239
- return L(L({}, t), {}, {
238
+ function N(t) {
239
+ return E(E({}, t), {}, {
240
240
  t: A(t.t),
241
241
  formatNumber: A(t.formatNumber),
242
242
  formatDateTime: A(t.formatDateTime)
243
243
  });
244
244
  }
245
- function Tt(t) {
246
- var e = dt(L(L({}, t), {}, {
247
- formatTag: At
248
- })), n = e.i18n, r = e.subscribe, a = Q(U(n)), o = yt(a, 2), i = o[0], u = o[1];
249
- return r(() => u(U(n))), i;
245
+ function At(t) {
246
+ var e = pt(E(E({}, t), {}, {
247
+ formatTag: vt
248
+ })), n = e.i18n, r = e.subscribe, i = Z(N(n)), o = dt(i, 2), a = o[0], u = o[1];
249
+ return r(() => u(N(n))), a;
250
250
  }
251
251
  const d = /* @__PURE__ */ new Map();
252
- function Vt(t, e, n) {
252
+ function Ft(t, e, n) {
253
253
  let r = d.get(t);
254
254
  r || (r = /* @__PURE__ */ new Map(), d.set(t, r)), r.set(e, new Map(Object.entries(n)));
255
255
  }
256
- function Xt(t) {
256
+ function Vt(t) {
257
257
  d.delete(t);
258
258
  }
259
- function zt() {
259
+ function Xt() {
260
260
  d.clear();
261
261
  }
262
- function Ct(t) {
262
+ function zt(t) {
263
263
  return d.has(t);
264
264
  }
265
- function Ot(t, e, n) {
266
- var a, o;
265
+ function Tt(t, e, n) {
266
+ var i, o;
267
267
  const r = d.get(t);
268
- return ((a = r == null ? void 0 : r.get(n)) == null ? void 0 : a.get(e)) ?? ((o = r == null ? void 0 : r.get("en")) == null ? void 0 : o.get(e)) ?? e;
268
+ return ((i = r == null ? void 0 : r.get(n)) == null ? void 0 : i.get(e)) ?? ((o = r == null ? void 0 : r.get("en")) == null ? void 0 : o.get(e)) ?? e;
269
269
  }
270
270
  const S = {
271
271
  en: { label: "English", navigatorMatch: ["en"] },
272
272
  tr: { label: "Turkish", navigatorMatch: ["tr"] },
273
273
  de: { label: "German", navigatorMatch: ["de"] }
274
- }, X = Object.keys(
274
+ }, z = Object.keys(
275
275
  S
276
- ), z = X.map((t) => ({ id: t, ...S[t] }));
277
- function Bt(t) {
276
+ ), C = z.map((t) => ({ id: t, ...S[t] }));
277
+ function Ct(t) {
278
278
  return S[t].label;
279
279
  }
280
- const C = "en";
281
- function B(t) {
282
- return z.some((e) => e.id === t);
280
+ const B = "en";
281
+ function K(t) {
282
+ return C.some((e) => e.id === t);
283
283
  }
284
- function St(t, e, n) {
284
+ function Ot(t, e, n) {
285
285
  const r = (t ?? "").toLowerCase();
286
286
  if (!r) return n;
287
- for (const a of e)
288
- if (a.navigatorMatch.some(
287
+ for (const i of e)
288
+ if (i.navigatorMatch.some(
289
289
  (o) => r === o || r.startsWith(`${o}-`)
290
290
  ))
291
- return a.id;
291
+ return i.id;
292
292
  return n;
293
293
  }
294
- function Kt(t) {
295
- return St(
294
+ function Bt(t) {
295
+ return Ot(
296
296
  t,
297
- z,
298
- C
297
+ C,
298
+ B
299
299
  );
300
300
  }
301
- async function jt(t) {
301
+ async function St(t) {
302
302
  switch (t) {
303
303
  case "tr":
304
304
  return (await import("./tr-CxuAFkCi.js")).default;
@@ -306,11 +306,11 @@ async function jt(t) {
306
306
  return (await import("./de-CEltsqV5.js")).default;
307
307
  }
308
308
  }
309
- const K = tt("i18n"), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
309
+ const p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
310
310
  function W(t) {
311
- return B(t) && t !== "en";
311
+ return K(t) && t !== "en";
312
312
  }
313
- async function Rt(t) {
313
+ async function jt(t) {
314
314
  const e = p.get(t);
315
315
  if (e) return e;
316
316
  if (!W(t)) {
@@ -318,110 +318,112 @@ async function Rt(t) {
318
318
  return p.set(t, n), n;
319
319
  }
320
320
  try {
321
- const r = { ...await jt(t), ...m.get(t) ?? {} };
321
+ const r = { ...await St(t), ...m.get(t) ?? {} };
322
322
  return p.set(t, r), r;
323
323
  } catch (n) {
324
- return K.error(`Failed to load locale "${t}"`, n), null;
324
+ return H(new Error(`[i18n] the "${t}" dictionary could not be loaded`, { cause: n })), null;
325
325
  }
326
326
  }
327
327
  function j(t) {
328
328
  const e = Y(t);
329
329
  if (e === "en" && !m.has("en")) return Promise.resolve();
330
330
  const n = p.get(e);
331
- return n ? (s.language === e && s.setLocales(n), Promise.resolve()) : Rt(e).then((r) => {
332
- r && s.language === e && s.setLocales(r);
331
+ return n ? (c.language === e && c.setLocales(n), Promise.resolve()) : jt(e).then((r) => {
332
+ r && c.language === e && c.setLocales(r);
333
333
  });
334
334
  }
335
335
  function Y(t) {
336
- return B(t) || m.has(t) ? t : (K.warn(
337
- `Unsupported language "${t}" — falling back to "en". Supported: ${[...X, ...m.keys()].join(", ")}`
336
+ return K(t) || m.has(t) ? t : (H(
337
+ new Error(
338
+ `[i18n] unsupported language "${t}" — English is shown. Supported: ${[...z, ...m.keys()].join(", ")}`
339
+ )
338
340
  ), "en");
339
341
  }
340
- const s = Tt({
341
- language: C,
342
+ const c = At({
343
+ language: B,
342
344
  locales: {}
343
- }), [R, _t] = J(null);
345
+ }), [R, Rt] = Q(null);
344
346
  let b = null, h = null;
345
- function Wt(t) {
346
- if (b == null || b(), b = null, t && h === null && (h = s.language), _t(() => t), !t) {
347
+ function Kt(t) {
348
+ if (b == null || b(), b = null, t && h === null && (h = c.language), Rt(() => t), !t) {
347
349
  if (h !== null) {
348
350
  const e = h;
349
- h = null, s.setLanguage(e), j(e);
351
+ h = null, c.setLanguage(e), j(e);
350
352
  }
351
353
  return;
352
354
  }
353
- k((e) => {
354
- b = e, q(() => {
355
+ q((e) => {
356
+ b = e, J(() => {
355
357
  const n = t.language();
356
- n && s.language !== n && s.setLanguage(n);
358
+ n && c.language !== n && c.setLanguage(n);
357
359
  });
358
360
  });
359
361
  }
360
- function $t(t, e) {
362
+ function _t(t, e) {
361
363
  const n = typeof HTMLElement < "u";
362
364
  return typeof t == "string" ? t : Array.isArray(t) ? t.map((r) => typeof r == "string" ? r : n && r instanceof HTMLElement ? r.textContent ?? "" : "").join("") : n && t instanceof HTMLElement ? t.textContent ?? e : e;
363
365
  }
364
- function x(t, e) {
366
+ function U(t, e) {
365
367
  const n = R();
366
- return n ? n.t(t, e) : (s.language, $t(s.t(t, e), t));
368
+ return n ? n.t(t, e) : (c.language, _t(c.t(t, e), t));
367
369
  }
368
- function Dt(t, e) {
370
+ function $t(t, e) {
369
371
  const n = R();
370
- return n != null && n.pluginText ? n.pluginText(t, e) : Ot(t, e, Nt());
372
+ return n != null && n.pluginText ? n.pluginText(t, e) : Tt(t, e, Gt());
371
373
  }
372
- function Mt(t) {
373
- if (typeof t == "string") return x(t);
374
+ function Dt(t) {
375
+ if (typeof t == "string") return U(t);
374
376
  switch (t.kind) {
375
377
  case "message": {
376
378
  const e = {};
377
379
  for (const [n, r] of Object.entries(t.values))
378
- e[n] = typeof r == "number" ? r : Mt(r);
379
- return x(t.key, e);
380
+ e[n] = typeof r == "number" ? r : Dt(r);
381
+ return U(t.key, e);
380
382
  }
381
383
  case "plugin":
382
- return Dt(t.pluginId, t.text);
384
+ return $t(t.pluginId, t.text);
383
385
  case "verbatim":
384
386
  return t.text;
385
387
  }
386
388
  }
387
- function Gt(t) {
389
+ function Mt(t) {
388
390
  const e = Y(t);
389
- return s.setLanguage(e), (e !== "en" || m.has("en")) && j(e), typeof document < "u" && (document.documentElement.lang = e), e;
391
+ return c.setLanguage(e), (e !== "en" || m.has("en")) && j(e), typeof document < "u" && (document.documentElement.lang = e), e;
390
392
  }
391
- function Yt(t) {
392
- return Gt(t);
393
+ function Wt(t) {
394
+ return Mt(t);
393
395
  }
394
- function Nt() {
396
+ function Gt() {
395
397
  var t;
396
- return ((t = R()) == null ? void 0 : t.language()) ?? s.language;
398
+ return ((t = R()) == null ? void 0 : t.language()) ?? c.language;
397
399
  }
398
- function kt(t, e) {
400
+ function Yt(t, e) {
399
401
  const n = { ...m.get(t) ?? {}, ...e };
400
402
  m.set(t, n);
401
403
  const r = p.get(t);
402
- (r || !W(t)) && p.set(t, { ...r ?? {}, ...n }), s.language === t && j(t);
404
+ (r || !W(t)) && p.set(t, { ...r ?? {}, ...n }), c.language === t && j(t);
403
405
  }
404
406
  export {
405
- C as D,
406
- z as S,
407
- X as a,
408
- s as b,
409
- zt as c,
410
- Bt as d,
407
+ B as D,
408
+ C as S,
409
+ z as a,
410
+ c as b,
411
+ Xt as c,
412
+ Ct as d,
411
413
  j as e,
412
- St as f,
413
- Nt as g,
414
- Ct as h,
415
- B as i,
416
- Ot as j,
417
- Yt as k,
418
- Mt as l,
419
- Kt as m,
420
- kt as n,
421
- Dt as o,
422
- Wt as p,
423
- Vt as r,
424
- Gt as s,
425
- x as t,
426
- Xt as u
414
+ Ot as f,
415
+ Gt as g,
416
+ zt as h,
417
+ K as i,
418
+ Tt as j,
419
+ Wt as k,
420
+ Dt as l,
421
+ Bt as m,
422
+ Yt as n,
423
+ $t as o,
424
+ Kt as p,
425
+ Ft as r,
426
+ Mt as s,
427
+ U as t,
428
+ Vt as u
427
429
  };
@@ -0,0 +1,4 @@
1
+ "use strict";const O=require("solid-js"),ne=require("solid-js/store"),N=require("solid-js/web"),B=require("./errorHandler-DoDAPpv2.cjs");function C(e,t,n){return new Intl.NumberFormat(t,n).format(e)}function K(e,t,n){return new Intl.DateTimeFormat(t,n).format(e)}var l;(function(e){e.number="number",e.plural="plural",e.date="date",e.tag="tag"})(l||(l={}));function A(e){return typeof e=="number"}function g(e){return typeof e=="string"}function re(e){return e instanceof Date}function oe(e){return typeof e=="function"}function ue(e){return e!==null&&typeof e=="object"}function P(e,t){return g(t)?e==null?void 0:e[t]:e==null?void 0:e.default}function ie(e,t,n,r={},i){if(typeof n=="string")return n;const[o,a,u]=n,c=r[o];if(A(c)&&(!a||a===l.number))return C(c,e,P(t.number,u));if(re(c)||(g(c)||A(c))&&a===l.date)return K(new Date(c),e,P(t.dateTime,u));if(a===l.tag){const f=g(u)||Array.isArray(u)?S(e,t,u,r,i):void 0;if(oe(c))return c(f);if(i){const y=g(c)?c:o;return i(y,f)}return""}else if(a===l.plural&&A(c)&&ue(u)){if(c===0&&u["=0"])return u["=0"];const f=new Intl.PluralRules(e).select(c),y=u[f]||u.other||"";return S(e,t,y,r,i)}else return String(c)}function S(e,t,n,r={},i){if(Array.isArray(n)){const o=n.map(a=>ie(e,t,a,r,i));return o.every(g)?o.join(""):o}return n}const x="var",v="%%%",W="num|number|plural|date",E="=0|zero|one|two|few|many|other",ae=new RegExp(`((${E})\\s{)`,"g"),ce=new RegExp(`^(${E})\\s{(.+?)}$`),se=/(<(\w+?)>(.+?)<\/\w+?>|<(\w+?)(| )\/>)/g,le=/^<(\w+?)(?:(?:| )\/>|>(.+?)<\/\w+?>)$/,fe=new RegExp(`{(\\w+?)(, (${W})(, ((${E}) {.+?}+|\\w+?)|)|)}`,"g"),ge=new RegExp(`^{(\\w+?)(?:, (${W})(?:, ((?:${E}) {.+?}+|\\w+?)|)|)}$`);function me(e){if(e==="num"||e==="number")return l.number;if(e==="plural")return l.plural;if(e==="date")return l.date}function H(e,t,n){return t.reduce((r,i,o)=>r.replace(i,`${v}${x}${o}${v}`),e).split(v).filter(r=>r!=="").map(r=>{const i=r.match(new RegExp(`^${x}(\\d+?)$`));return i&&i[1]?n(t[i[1]],r):r})}function F(e){return e.reduceRight((t,n)=>!n&&!t.length?t:[n,...t],[])}function pe(e){return e!==null&&e.length===3}function q(e){return e!==null&&[...e].filter(Boolean).slice(1)}function de(e){return e.replace(ae,`
2
+ $1`).split(`
3
+ `).map(t=>t.trim().match(ce)).filter(pe).reduce((t,n)=>(t[n[1]]=j(n[2]),t),{})}function ye(e,t){return e===l.plural&&t?de(t):t}function j(e){const t=[e].reduce((n,r)=>{const i=r.match(se);return n.push(...i?H(e,i,(o,a)=>{const u=q(o.match(le));return u?F([u[0],l.tag,u[1]&&j(u[1])]):a}):[r]),n},[]).reduce((n,r)=>{const i=g(r)&&r.match(fe);return n.push(...i?H(r,i,(o,a)=>{const u=q(o.match(ge));if(!u)return a;const c=me(u[1]);return F([u[0],c,ye(c,u[2])])}):[r]),n},[]);return t.length===1&&typeof t[0]=="string"?t[0]:t}function be(e){const t=new Set;function n(){[...t.values()].forEach(o=>o())}const r={language:e.language,locales:Object.assign({},e.locales),presets:Object.assign({},e.presets),setLanguage:o=>{r.language=o,n()},setLocales:o=>{r.locales=Object.assign(Object.assign({},r.locales),{[r.language]:Object.assign(Object.assign({},r.locales[r.language]),o)}),n()},t:(o,a)=>{var u;const c=g(o)?void 0:o.id,f=g(o)?o:o.message;return S(r.language,r.presets,j(((u=r.locales[r.language])===null||u===void 0?void 0:u[c||f])||f),a,e.formatTag)},formatNumber:(o,a)=>{const u=!a||g(a)?P(r.presets.number,a):a;return C(o,r.language,u)},formatDateTime:(o,a)=>{const u=typeof o=="string"?new Date(o):o,c=!a||g(a)?P(r.presets.dateTime,a):a;return K(u,r.language,c)}};function i(o){return t.add(o),()=>{t.delete(o)}}return{i18n:r,subscribe:i}}function Le(e,t){return we(e)||Ee(e,t)||he(e,t)||Pe()}function Pe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){if(e){if(typeof e=="string")return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(e,t)}}function V(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,u=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(y){f=!0,i=y}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return u}}function we(e){if(Array.isArray(e))return e}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(r){Ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ae(e,t,n){return t=ve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){var t=Te(e,"string");return typeof t=="symbol"?t:String(t)}function Te(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oe(e,t){var n=N.template(`<${e}>`);return N.insert(n(),()=>t),n}function T(e){return e.bind({})}function z(e){return h(h({},e),{},{t:T(e.t),formatNumber:T(e.formatNumber),formatDateTime:T(e.formatDateTime)})}function Se(e){var t=be(h(h({},e),{},{formatTag:Oe})),n=t.i18n,r=t.subscribe,i=ne.createStore(z(n)),o=Le(i,2),a=o[0],u=o[1];return r(()=>u(z(n))),a}const d=new Map;function _e(e,t,n){let r=d.get(e);r||(r=new Map,d.set(e,r)),r.set(t,new Map(Object.entries(n)))}function je(e){d.delete(e)}function Re(){d.clear()}function De(e){return d.has(e)}function I(e,t,n){var i,o;const r=d.get(e);return((i=r==null?void 0:r.get(n))==null?void 0:i.get(t))??((o=r==null?void 0:r.get("en"))==null?void 0:o.get(t))??t}const R={en:{label:"English",navigatorMatch:["en"]},tr:{label:"Turkish",navigatorMatch:["tr"]},de:{label:"German",navigatorMatch:["de"]}},D=Object.keys(R),$=D.map(e=>({id:e,...R[e]}));function $e(e){return R[e].label}const G="en";function M(e){return $.some(t=>t.id===e)}function Y(e,t,n){const r=(e??"").toLowerCase();if(!r)return n;for(const i of t)if(i.navigatorMatch.some(o=>r===o||r.startsWith(`${o}-`)))return i.id;return n}function Ge(e){return Y(e,$,G)}async function Me(e){switch(e){case"tr":return(await Promise.resolve().then(()=>require("./tr-BDbiY5YD.cjs"))).default;case"de":return(await Promise.resolve().then(()=>require("./de-DRobPEJV.cjs"))).default}}const p=new Map,m=new Map;function J(e){return M(e)&&e!=="en"}async function Ue(e){const t=p.get(e);if(t)return t;if(!J(e)){const n=m.get(e)??{};return p.set(e,n),n}try{const r={...await Me(e),...m.get(e)??{}};return p.set(e,r),r}catch(n){return B.onUnexpectedError(new Error(`[i18n] the "${e}" dictionary could not be loaded`,{cause:n})),null}}function w(e){const t=Q(e);if(t==="en"&&!m.has("en"))return Promise.resolve();const n=p.get(t);return n?(s.language===t&&s.setLocales(n),Promise.resolve()):Ue(t).then(r=>{r&&s.language===t&&s.setLocales(r)})}function Q(e){return M(e)||m.has(e)?e:(B.onUnexpectedError(new Error(`[i18n] unsupported language "${e}" — English is shown. Supported: ${[...D,...m.keys()].join(", ")}`)),"en")}const s=Se({language:G,locales:{}}),[U,Ne]=O.createSignal(null);let b=null,L=null;function xe(e){if(b==null||b(),b=null,e&&L===null&&(L=s.language),Ne(()=>e),!e){if(L!==null){const t=L;L=null,s.setLanguage(t),w(t)}return}O.createRoot(t=>{b=t,O.createEffect(()=>{const n=e.language();n&&s.language!==n&&s.setLanguage(n)})})}function He(e,t){const n=typeof HTMLElement<"u";return typeof e=="string"?e:Array.isArray(e)?e.map(r=>typeof r=="string"?r:n&&r instanceof HTMLElement?r.textContent??"":"").join(""):n&&e instanceof HTMLElement?e.textContent??t:t}function _(e,t){const n=U();return n?n.t(e,t):(s.language,He(s.t(e,t),e))}function Z(e,t){const n=U();return n!=null&&n.pluginText?n.pluginText(e,t):I(e,t,te())}function k(e){if(typeof e=="string")return _(e);switch(e.kind){case"message":{const t={};for(const[n,r]of Object.entries(e.values))t[n]=typeof r=="number"?r:k(r);return _(e.key,t)}case"plugin":return Z(e.pluginId,e.text);case"verbatim":return e.text}}function ee(e){const t=Q(e);return s.setLanguage(t),(t!=="en"||m.has("en"))&&w(t),typeof document<"u"&&(document.documentElement.lang=t),t}function Fe(e){return ee(e)}function te(){var e;return((e=U())==null?void 0:e.language())??s.language}function qe(e,t){const n={...m.get(e)??{},...t};m.set(e,n);const r=p.get(e);(r||!J(e))&&p.set(e,{...r??{},...n}),s.language===e&&w(e)}exports.DEFAULT_LANGUAGE_ID=G;exports.SUPPORTED_LANGUAGES=$;exports.SUPPORTED_LANGUAGE_IDS=D;exports.appI18n=s;exports.clearPluginLocales=Re;exports.ensureLocaleLoaded=w;exports.getLocale=te;exports.hasPluginLocale=De;exports.isSupportedLanguage=M;exports.labelText=k;exports.languageLabel=$e;exports.matchNavigatorLanguage=Ge;exports.provideHostTranslator=xe;exports.registerPluginLocale=_e;exports.resolveLanguageByNavigator=Y;exports.resolvePluginText=I;exports.setAppLanguage=ee;exports.setLocale=Fe;exports.setMessages=qe;exports.t=_;exports.translatePluginText=Z;exports.unregisterPluginLocale=je;