@unidy.io/sdk 1.2.0-alpha9 → 1.2.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 (715) hide show
  1. package/dist/cjs/_commonjsHelpers-CFO10eej.js +10 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  3. package/dist/cjs/app-globals-C-Wl5lPS.js +10 -0
  4. package/dist/cjs/app-globals-C-Wl5lPS.js.map +1 -0
  5. package/dist/cjs/{auth-store-DPmGKHZ2.js → auth-store-0vv3uOib.js} +4 -4
  6. package/dist/cjs/{auth-store-DPmGKHZ2.js.map → auth-store-0vv3uOib.js.map} +1 -1
  7. package/dist/cjs/component-DLxnZCW6.js +34 -0
  8. package/dist/cjs/component-DLxnZCW6.js.map +1 -0
  9. package/dist/cjs/component-utils-XXctnOM9.js +38 -0
  10. package/dist/cjs/component-utils-XXctnOM9.js.map +1 -0
  11. package/dist/cjs/de-BWF6Glzg.js +704 -0
  12. package/dist/cjs/de-BWF6Glzg.js.map +1 -0
  13. package/dist/cjs/en-GB-DhD5mdQw.js +119 -0
  14. package/dist/cjs/en-GB-DhD5mdQw.js.map +1 -0
  15. package/dist/cjs/{flash-store-gbSYhPAV.js → flash-store-CR6Umh1O.js} +3 -3
  16. package/dist/cjs/{flash-store-gbSYhPAV.js.map → flash-store-CR6Umh1O.js.map} +1 -1
  17. package/dist/cjs/fr-j2wwoj-A.js +577 -0
  18. package/dist/cjs/fr-j2wwoj-A.js.map +1 -0
  19. package/dist/cjs/has-slot-content-CfJbU4t-.js +37 -0
  20. package/dist/cjs/has-slot-content-CfJbU4t-.js.map +1 -0
  21. package/dist/cjs/{i18n-D5j_Zl-4.js → i18n-ClWrNmGh.js} +100 -4
  22. package/dist/cjs/{i18n-D5j_Zl-4.js.map → i18n-ClWrNmGh.js.map} +1 -1
  23. package/dist/cjs/{index-B325yXfO.js → index-2Fz3r5o0.js} +5 -41
  24. package/dist/cjs/index-2Fz3r5o0.js.map +1 -0
  25. package/dist/cjs/{index-yaeiYlfa.js → index-C6ZBKFYr.js} +3 -3
  26. package/dist/cjs/{index-yaeiYlfa.js.map → index-C6ZBKFYr.js.map} +1 -1
  27. package/dist/cjs/{index-BzPYBLYC.js → index-CpPKy1CZ.js} +1170 -1087
  28. package/dist/cjs/index-CpPKy1CZ.js.map +1 -0
  29. package/dist/cjs/index.cjs.js +24 -11
  30. package/dist/cjs/index.cjs.js.map +1 -1
  31. package/dist/cjs/loader.cjs.js +3 -3
  32. package/dist/cjs/{newsletter-helpers-hdDC5X-V.js → newsletter-helpers-BHvOI8M4.js} +46 -9
  33. package/dist/cjs/newsletter-helpers-BHvOI8M4.js.map +1 -0
  34. package/dist/cjs/{newsletter-store-CupsLgO9.js → newsletter-store-22Jswiqe.js} +5 -3
  35. package/dist/cjs/newsletter-store-22Jswiqe.js.map +1 -0
  36. package/dist/cjs/nl-BE-yKvOp1-G.js +542 -0
  37. package/dist/cjs/nl-BE-yKvOp1-G.js.map +1 -0
  38. package/dist/cjs/{profile-helpers-Bprrm-Xl.js → profile-helpers-BBpAqHjK.js} +4 -4
  39. package/dist/cjs/{profile-helpers-Bprrm-Xl.js.map → profile-helpers-BBpAqHjK.js.map} +1 -1
  40. package/dist/cjs/{profile-store-C_q-TuA_.js → profile-store-CQEQhPQD.js} +4 -4
  41. package/dist/cjs/{profile-store-C_q-TuA_.js.map → profile-store-CQEQhPQD.js.map} +1 -1
  42. package/dist/cjs/redirect-with-token-wupYX97S.js +37 -0
  43. package/dist/cjs/redirect-with-token-wupYX97S.js.map +1 -0
  44. package/dist/cjs/ro-CXq9d1lv.js +578 -0
  45. package/dist/cjs/ro-CXq9d1lv.js.map +1 -0
  46. package/dist/cjs/sdk.cjs.js +3 -3
  47. package/dist/cjs/sv-CMln4V33.js +597 -0
  48. package/dist/cjs/sv-CMln4V33.js.map +1 -0
  49. package/dist/cjs/u-conditional-render.cjs.entry.js +14 -14
  50. package/dist/cjs/u-conditional-render.entry.cjs.js.map +1 -1
  51. package/dist/cjs/u-config.cjs.entry.js +24 -11
  52. package/dist/cjs/u-config.entry.cjs.js.map +1 -1
  53. package/dist/cjs/u-email-field.cjs.entry.js +7 -7
  54. package/dist/cjs/u-error-message.cjs.entry.js +49 -22
  55. package/dist/cjs/u-error-message.entry.cjs.js.map +1 -1
  56. package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +1 -1
  57. package/dist/cjs/u-field_2.cjs.entry.js +124 -12
  58. package/dist/cjs/u-flash-message.cjs.entry.js +3 -3
  59. package/dist/cjs/u-full-profile.cjs.entry.js +6 -6
  60. package/dist/cjs/u-jump-to-service.cjs.entry.js +23 -44
  61. package/dist/cjs/u-jump-to-service.entry.cjs.js.map +1 -1
  62. package/dist/cjs/u-jump-to-unidy.cjs.entry.js +22 -43
  63. package/dist/cjs/u-jump-to-unidy.entry.cjs.js.map +1 -1
  64. package/dist/cjs/u-logout-button.u-signed-in.entry.cjs.js.map +1 -1
  65. package/dist/cjs/u-logout-button_2.cjs.entry.js +15 -22
  66. package/dist/cjs/u-magic-code-field.cjs.entry.js +8 -9
  67. package/dist/cjs/u-magic-code-field.entry.cjs.js.map +1 -1
  68. package/dist/cjs/u-missing-field.cjs.entry.js +6 -5
  69. package/dist/cjs/u-missing-field.entry.cjs.js.map +1 -1
  70. package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +16 -14
  71. package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +1 -1
  72. package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +11 -12
  73. package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +1 -1
  74. package/dist/cjs/u-newsletter-consent-checkbox.cjs.entry.js +4 -4
  75. package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +15 -20
  76. package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +1 -1
  77. package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +11 -12
  78. package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +1 -1
  79. package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +10 -11
  80. package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +1 -1
  81. package/dist/cjs/u-newsletter-root.cjs.entry.js +45 -22
  82. package/dist/cjs/u-newsletter-root.entry.cjs.js.map +1 -1
  83. package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +11 -12
  84. package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +1 -1
  85. package/dist/cjs/u-pagination-button.cjs.entry.js +4 -4
  86. package/dist/cjs/u-pagination-button.entry.cjs.js.map +1 -1
  87. package/dist/cjs/u-pagination-page.cjs.entry.js +4 -4
  88. package/dist/cjs/u-pagination-page.entry.cjs.js.map +1 -1
  89. package/dist/cjs/u-passkey.cjs.entry.js +8 -9
  90. package/dist/cjs/u-passkey.entry.cjs.js.map +1 -1
  91. package/dist/cjs/u-password-field.cjs.entry.js +5 -5
  92. package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +1 -1
  93. package/dist/cjs/u-profile_2.cjs.entry.js +31 -33
  94. package/dist/cjs/u-registration-button.cjs.entry.js +5 -5
  95. package/dist/cjs/u-reset-password-button.cjs.entry.js +12 -15
  96. package/dist/cjs/u-reset-password-button.entry.cjs.js.map +1 -1
  97. package/dist/cjs/u-send-magic-code-button.cjs.entry.js +8 -9
  98. package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +1 -1
  99. package/dist/cjs/u-signin-root.cjs.entry.js +6 -8
  100. package/dist/cjs/u-signin-root.entry.cjs.js.map +1 -1
  101. package/dist/cjs/u-signin-step.cjs.entry.js +17 -21
  102. package/dist/cjs/u-signin-step.entry.cjs.js.map +1 -1
  103. package/dist/cjs/u-social-login-button.cjs.entry.js +16 -15
  104. package/dist/cjs/u-social-login-button.entry.cjs.js.map +1 -1
  105. package/dist/cjs/u-spinner.cjs.entry.js +3 -3
  106. package/dist/cjs/u-spinner.entry.cjs.js.map +1 -1
  107. package/dist/cjs/u-ticketable-export.cjs.entry.js +76 -0
  108. package/dist/cjs/u-ticketable-export.entry.cjs.js.map +1 -0
  109. package/dist/cjs/u-ticketable-list-D3M8iA-g.js +3991 -0
  110. package/dist/cjs/u-ticketable-list-D3M8iA-g.js.map +1 -0
  111. package/dist/cjs/u-ticketable-list.cjs.entry.js +11 -6118
  112. package/dist/cjs/u-ticketable-list.entry.cjs.js.map +1 -1
  113. package/dist/cjs/{unidy-store-BGnWn9pc.js → unidy-store-Bvnl24i9.js} +3 -3
  114. package/dist/cjs/{unidy-store-BGnWn9pc.js.map → unidy-store-Bvnl24i9.js.map} +1 -1
  115. package/dist/collection/api/base-service.js.map +1 -1
  116. package/dist/collection/api/client.js.map +1 -1
  117. package/dist/collection/api/index.js +6 -6
  118. package/dist/collection/api/index.js.map +1 -1
  119. package/dist/collection/api/standalone.js +88 -39
  120. package/dist/collection/api/standalone.js.map +1 -1
  121. package/dist/collection/auth/api/auth.js.map +1 -1
  122. package/dist/collection/auth/api/schemas.js +5 -5
  123. package/dist/collection/auth/api/schemas.js.map +1 -1
  124. package/dist/collection/auth/auth-helpers.js +7 -8
  125. package/dist/collection/auth/auth-helpers.js.map +1 -1
  126. package/dist/collection/auth/auth.js +1 -0
  127. package/dist/collection/auth/auth.js.map +1 -1
  128. package/dist/collection/auth/components/jump-to-service/jump-to-service.js +20 -40
  129. package/dist/collection/auth/components/jump-to-service/jump-to-service.js.map +1 -1
  130. package/dist/collection/auth/components/jump-to-unidy/jump-to-unidy.js +20 -39
  131. package/dist/collection/auth/components/jump-to-unidy/jump-to-unidy.js.map +1 -1
  132. package/dist/collection/auth/components/logout-button/logout-button.js +7 -11
  133. package/dist/collection/auth/components/logout-button/logout-button.js.map +1 -1
  134. package/dist/collection/auth/components/missing-field/missing-field.js +25 -1
  135. package/dist/collection/auth/components/missing-field/missing-field.js.map +1 -1
  136. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +33 -7
  137. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +1 -1
  138. package/dist/collection/auth/components/password-field/password-field.js +1 -1
  139. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js +6 -8
  140. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js.map +1 -1
  141. package/dist/collection/auth/components/signed-in/signed-in.js +2 -5
  142. package/dist/collection/auth/components/signed-in/signed-in.js.map +1 -1
  143. package/dist/collection/auth/components/signin-root/signin-root.js +2 -5
  144. package/dist/collection/auth/components/signin-root/signin-root.js.map +1 -1
  145. package/dist/collection/auth/components/signin-step/signin-step.js +9 -13
  146. package/dist/collection/auth/components/signin-step/signin-step.js.map +1 -1
  147. package/dist/collection/auth/components/social-logins/social-login-button.css +1 -1
  148. package/dist/collection/auth/components/social-logins/social-login-button.js +11 -12
  149. package/dist/collection/auth/components/social-logins/social-login-button.js.map +1 -1
  150. package/dist/collection/auth/components/submit-button/auth-submit-button.js +10 -0
  151. package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +1 -1
  152. package/dist/collection/collection-manifest.json +1 -0
  153. package/dist/collection/locales/de.json +16 -0
  154. package/dist/collection/locales/en.json +16 -0
  155. package/dist/collection/locales/fr.json +16 -0
  156. package/dist/collection/locales/it.json +16 -0
  157. package/dist/collection/locales/nl_be.json +16 -0
  158. package/dist/collection/locales/ro.json +16 -0
  159. package/dist/collection/logger.js +0 -37
  160. package/dist/collection/logger.js.map +1 -1
  161. package/dist/collection/newsletter/api/newsletters.js +19 -18
  162. package/dist/collection/newsletter/api/newsletters.js.map +1 -1
  163. package/dist/collection/newsletter/components/consent-checkbox/consent-checkbox.js +1 -1
  164. package/dist/collection/newsletter/components/logout-button/logout-button.js +6 -10
  165. package/dist/collection/newsletter/components/logout-button/logout-button.js.map +1 -1
  166. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js +1 -1
  167. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +65 -10
  168. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +1 -1
  169. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js +1 -1
  170. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js +1 -1
  171. package/dist/collection/newsletter/newsletter-helpers.js +39 -2
  172. package/dist/collection/newsletter/newsletter-helpers.js.map +1 -1
  173. package/dist/collection/newsletter/store/newsletter-store.js +2 -0
  174. package/dist/collection/newsletter/store/newsletter-store.js.map +1 -1
  175. package/dist/collection/profile/api/profile.js.map +1 -1
  176. package/dist/collection/profile/api/schemas.js +1 -1
  177. package/dist/collection/profile/api/schemas.js.map +1 -1
  178. package/dist/collection/profile/components/field/field.js +3 -1
  179. package/dist/collection/profile/components/field/field.js.map +1 -1
  180. package/dist/collection/profile/components/full-profile/full-profile.js +1 -1
  181. package/dist/collection/profile/components/raw-field/raw-field.js +40 -7
  182. package/dist/collection/profile/components/raw-field/raw-field.js.map +1 -1
  183. package/dist/collection/profile/store/profile-store.js +1 -1
  184. package/dist/collection/profile/store/profile-store.js.map +1 -1
  185. package/dist/collection/shared/base/component.js +28 -0
  186. package/dist/collection/shared/base/component.js.map +1 -0
  187. package/dist/collection/shared/base/has-slot-content.js +31 -0
  188. package/dist/collection/shared/base/has-slot-content.js.map +1 -0
  189. package/dist/collection/shared/component-utils.js +23 -27
  190. package/dist/collection/shared/component-utils.js.map +1 -1
  191. package/dist/collection/shared/components/conditional-render/conditional-render.js +4 -5
  192. package/dist/collection/shared/components/conditional-render/conditional-render.js.map +1 -1
  193. package/dist/collection/shared/components/config/config.js +18 -5
  194. package/dist/collection/shared/components/config/config.js.map +1 -1
  195. package/dist/collection/shared/components/email-field/email-field.js +1 -1
  196. package/dist/collection/shared/components/error-message/error-message.css +1 -1
  197. package/dist/collection/shared/components/error-message/error-message.js +44 -17
  198. package/dist/collection/shared/components/error-message/error-message.js.map +1 -1
  199. package/dist/collection/shared/components/spinner/spinner.css +1 -1
  200. package/dist/collection/shared/components/spinner/spinner.js +1 -1
  201. package/dist/collection/shared/components/submit-button/submit-button.css +1 -1
  202. package/dist/collection/shared/components/submit-button/submit-button.js +12 -23
  203. package/dist/collection/shared/components/submit-button/submit-button.js.map +1 -1
  204. package/dist/collection/shared/context-utils.js +96 -0
  205. package/dist/collection/shared/context-utils.js.map +1 -0
  206. package/dist/collection/shared/utils/redirect-with-token.js +30 -0
  207. package/dist/collection/shared/utils/redirect-with-token.js.map +1 -0
  208. package/dist/collection/shared/utils/url-utils.js +25 -0
  209. package/dist/collection/shared/utils/url-utils.js.map +1 -0
  210. package/dist/collection/ticketable/api/schemas.js +10 -2
  211. package/dist/collection/ticketable/api/schemas.js.map +1 -1
  212. package/dist/collection/ticketable/api/subscriptions.js +22 -1
  213. package/dist/collection/ticketable/api/subscriptions.js.map +1 -1
  214. package/dist/collection/ticketable/api/tickets.js +22 -1
  215. package/dist/collection/ticketable/api/tickets.js.map +1 -1
  216. package/dist/collection/ticketable/components/pagination/pagination-button.js +3 -5
  217. package/dist/collection/ticketable/components/pagination/pagination-button.js.map +1 -1
  218. package/dist/collection/ticketable/components/pagination/pagination-page.js +3 -5
  219. package/dist/collection/ticketable/components/pagination/pagination-page.js.map +1 -1
  220. package/dist/collection/ticketable/components/ticketable-export/ticketable-export.js +175 -0
  221. package/dist/collection/ticketable/components/ticketable-export/ticketable-export.js.map +1 -0
  222. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +163 -25
  223. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +1 -1
  224. package/dist/collection/ticketable/index.js +1 -0
  225. package/dist/collection/ticketable/index.js.map +1 -1
  226. package/dist/components/_commonjsHelpers.js +8 -0
  227. package/dist/components/_commonjsHelpers.js.map +1 -0
  228. package/dist/components/component-utils.js +25 -28
  229. package/dist/components/component-utils.js.map +1 -1
  230. package/dist/components/component.js +33 -0
  231. package/dist/components/component.js.map +1 -0
  232. package/dist/components/de.js +702 -0
  233. package/dist/components/de.js.map +1 -0
  234. package/dist/components/en-GB.js +117 -0
  235. package/dist/components/en-GB.js.map +1 -0
  236. package/dist/components/field.js +3 -1
  237. package/dist/components/field.js.map +1 -1
  238. package/dist/components/fr.js +575 -0
  239. package/dist/components/fr.js.map +1 -0
  240. package/dist/components/has-slot-content.js +35 -0
  241. package/dist/components/has-slot-content.js.map +1 -0
  242. package/dist/components/i18n.js +96 -0
  243. package/dist/components/i18n.js.map +1 -1
  244. package/dist/components/index.js +11 -3
  245. package/dist/components/index.js.map +1 -1
  246. package/dist/components/index2.js +1158 -1083
  247. package/dist/components/index2.js.map +1 -1
  248. package/dist/components/logger.js +1 -39
  249. package/dist/components/logger.js.map +1 -1
  250. package/dist/components/newsletter-helpers.js +39 -2
  251. package/dist/components/newsletter-helpers.js.map +1 -1
  252. package/dist/components/newsletter-store.js +2 -0
  253. package/dist/components/newsletter-store.js.map +1 -1
  254. package/dist/components/nl-BE.js +540 -0
  255. package/dist/components/nl-BE.js.map +1 -0
  256. package/dist/components/profile-store.js +1 -1
  257. package/dist/components/profile-store.js.map +1 -1
  258. package/dist/components/raw-field.js +116 -7
  259. package/dist/components/raw-field.js.map +1 -1
  260. package/dist/components/redirect-with-token.js +35 -0
  261. package/dist/components/redirect-with-token.js.map +1 -0
  262. package/dist/components/ro.js +576 -0
  263. package/dist/components/ro.js.map +1 -0
  264. package/dist/components/spinner.js +2 -2
  265. package/dist/components/spinner.js.map +1 -1
  266. package/dist/components/submit-button.js +21 -24
  267. package/dist/components/submit-button.js.map +1 -1
  268. package/dist/components/sv.js +595 -0
  269. package/dist/components/sv.js.map +1 -0
  270. package/dist/components/u-conditional-render.js +5 -6
  271. package/dist/components/u-conditional-render.js.map +1 -1
  272. package/dist/components/u-config.js +16 -3
  273. package/dist/components/u-config.js.map +1 -1
  274. package/dist/components/u-email-field.js +1 -1
  275. package/dist/components/u-error-message.js +44 -19
  276. package/dist/components/u-error-message.js.map +1 -1
  277. package/dist/components/u-full-profile.js +1 -1
  278. package/dist/components/u-jump-to-service.js +16 -38
  279. package/dist/components/u-jump-to-service.js.map +1 -1
  280. package/dist/components/u-jump-to-unidy.js +16 -37
  281. package/dist/components/u-jump-to-unidy.js.map +1 -1
  282. package/dist/components/u-logout-button.js +5 -11
  283. package/dist/components/u-logout-button.js.map +1 -1
  284. package/dist/components/u-missing-field.js +5 -2
  285. package/dist/components/u-missing-field.js.map +1 -1
  286. package/dist/components/u-missing-fields-submit-button.js +10 -8
  287. package/dist/components/u-missing-fields-submit-button.js.map +1 -1
  288. package/dist/components/u-newsletter-checkbox.js +1 -1
  289. package/dist/components/u-newsletter-consent-checkbox.js +1 -1
  290. package/dist/components/u-newsletter-logout-button.js +6 -12
  291. package/dist/components/u-newsletter-logout-button.js.map +1 -1
  292. package/dist/components/u-newsletter-preference-checkbox.js +1 -1
  293. package/dist/components/u-newsletter-root.js +35 -12
  294. package/dist/components/u-newsletter-root.js.map +1 -1
  295. package/dist/components/u-newsletter-toggle-subscription-button.js +1 -1
  296. package/dist/components/u-pagination-button.js +3 -4
  297. package/dist/components/u-pagination-button.js.map +1 -1
  298. package/dist/components/u-pagination-page.js +3 -4
  299. package/dist/components/u-pagination-page.js.map +1 -1
  300. package/dist/components/u-reset-password-button.js +4 -8
  301. package/dist/components/u-reset-password-button.js.map +1 -1
  302. package/dist/components/u-signed-in.js +3 -6
  303. package/dist/components/u-signed-in.js.map +1 -1
  304. package/dist/components/u-signin-root.js +3 -6
  305. package/dist/components/u-signin-root.js.map +1 -1
  306. package/dist/components/u-signin-step.js +10 -14
  307. package/dist/components/u-signin-step.js.map +1 -1
  308. package/dist/components/u-social-login-button.js +13 -14
  309. package/dist/components/u-social-login-button.js.map +1 -1
  310. package/dist/components/u-ticketable-export.d.ts +11 -0
  311. package/dist/components/u-ticketable-export.js +93 -0
  312. package/dist/components/u-ticketable-export.js.map +1 -0
  313. package/dist/components/u-ticketable-list.js +256 -2396
  314. package/dist/components/u-ticketable-list.js.map +1 -1
  315. package/dist/esm/_commonjsHelpers-B85MJLTf.js +8 -0
  316. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  317. package/dist/esm/app-globals-J743qnJf.js +8 -0
  318. package/dist/esm/app-globals-J743qnJf.js.map +1 -0
  319. package/dist/esm/{auth-store-DBlGNGhq.js → auth-store-CSpEdi46.js} +4 -4
  320. package/dist/esm/{auth-store-DBlGNGhq.js.map → auth-store-CSpEdi46.js.map} +1 -1
  321. package/dist/esm/component-qfegGRWr.js +32 -0
  322. package/dist/esm/component-qfegGRWr.js.map +1 -0
  323. package/dist/esm/component-utils-WEof9bTg.js +36 -0
  324. package/dist/esm/component-utils-WEof9bTg.js.map +1 -0
  325. package/dist/esm/de-C6AnCqsA.js +702 -0
  326. package/dist/esm/de-C6AnCqsA.js.map +1 -0
  327. package/dist/esm/en-GB-DO63WPxt.js +117 -0
  328. package/dist/esm/en-GB-DO63WPxt.js.map +1 -0
  329. package/dist/esm/{flash-store-Df2YkLTB.js → flash-store-Dn1Bava8.js} +3 -3
  330. package/dist/esm/{flash-store-Df2YkLTB.js.map → flash-store-Dn1Bava8.js.map} +1 -1
  331. package/dist/esm/fr-C0oU6-EJ.js +575 -0
  332. package/dist/esm/fr-C0oU6-EJ.js.map +1 -0
  333. package/dist/esm/has-slot-content-DSMkJu9G.js +35 -0
  334. package/dist/esm/has-slot-content-DSMkJu9G.js.map +1 -0
  335. package/dist/esm/{i18n-Da7S9Oqf.js → i18n-ioyZxWsT.js} +100 -4
  336. package/dist/esm/{i18n-Da7S9Oqf.js.map → i18n-ioyZxWsT.js.map} +1 -1
  337. package/dist/esm/{index-FTKB5a1d.js → index-BsJDptgj.js} +4 -40
  338. package/dist/esm/index-BsJDptgj.js.map +1 -0
  339. package/dist/esm/{index-BnAYOYR5.js → index-C8kmD3tu.js} +3 -3
  340. package/dist/esm/{index-BnAYOYR5.js.map → index-C8kmD3tu.js.map} +1 -1
  341. package/dist/esm/{index-BVlbCQEX.js → index-kgGjfc-n.js} +1163 -1088
  342. package/dist/esm/index-kgGjfc-n.js.map +1 -0
  343. package/dist/esm/index.js +18 -12
  344. package/dist/esm/index.js.map +1 -1
  345. package/dist/esm/loader.js +4 -4
  346. package/dist/esm/{newsletter-helpers-fCpxzovf.js → newsletter-helpers-DoKGN_Kq.js} +46 -9
  347. package/dist/esm/newsletter-helpers-DoKGN_Kq.js.map +1 -0
  348. package/dist/esm/{newsletter-store-BB618FgS.js → newsletter-store-DpR85vaC.js} +5 -3
  349. package/dist/esm/newsletter-store-DpR85vaC.js.map +1 -0
  350. package/dist/esm/nl-BE-C8uPYb_H.js +540 -0
  351. package/dist/esm/nl-BE-C8uPYb_H.js.map +1 -0
  352. package/dist/esm/{profile-helpers-CXK2X6Ts.js → profile-helpers-BMJy0ei_.js} +4 -4
  353. package/dist/esm/{profile-helpers-CXK2X6Ts.js.map → profile-helpers-BMJy0ei_.js.map} +1 -1
  354. package/dist/esm/{profile-store-CHlSKuTY.js → profile-store-7wBS3gBH.js} +4 -4
  355. package/dist/esm/{profile-store-CHlSKuTY.js.map → profile-store-7wBS3gBH.js.map} +1 -1
  356. package/dist/esm/redirect-with-token-StCLJlSp.js +35 -0
  357. package/dist/esm/redirect-with-token-StCLJlSp.js.map +1 -0
  358. package/dist/esm/ro-BlDHz7d-.js +576 -0
  359. package/dist/esm/ro-BlDHz7d-.js.map +1 -0
  360. package/dist/esm/sdk.js +4 -4
  361. package/dist/esm/sv-B_Gq29K0.js +595 -0
  362. package/dist/esm/sv-B_Gq29K0.js.map +1 -0
  363. package/dist/esm/u-conditional-render.entry.js +14 -14
  364. package/dist/esm/u-conditional-render.entry.js.map +1 -1
  365. package/dist/esm/u-config.entry.js +24 -11
  366. package/dist/esm/u-config.entry.js.map +1 -1
  367. package/dist/esm/u-email-field.entry.js +7 -7
  368. package/dist/esm/u-error-message.entry.js +49 -22
  369. package/dist/esm/u-error-message.entry.js.map +1 -1
  370. package/dist/esm/u-field.u-raw-field.entry.js.map +1 -1
  371. package/dist/esm/u-field_2.entry.js +124 -12
  372. package/dist/esm/u-flash-message.entry.js +3 -3
  373. package/dist/esm/u-full-profile.entry.js +6 -6
  374. package/dist/esm/u-jump-to-service.entry.js +23 -44
  375. package/dist/esm/u-jump-to-service.entry.js.map +1 -1
  376. package/dist/esm/u-jump-to-unidy.entry.js +22 -43
  377. package/dist/esm/u-jump-to-unidy.entry.js.map +1 -1
  378. package/dist/esm/u-logout-button.u-signed-in.entry.js.map +1 -1
  379. package/dist/esm/u-logout-button_2.entry.js +15 -22
  380. package/dist/esm/u-magic-code-field.entry.js +8 -9
  381. package/dist/esm/u-magic-code-field.entry.js.map +1 -1
  382. package/dist/esm/u-missing-field.entry.js +6 -5
  383. package/dist/esm/u-missing-field.entry.js.map +1 -1
  384. package/dist/esm/u-missing-fields-submit-button.entry.js +16 -14
  385. package/dist/esm/u-missing-fields-submit-button.entry.js.map +1 -1
  386. package/dist/esm/u-newsletter-checkbox.entry.js +11 -12
  387. package/dist/esm/u-newsletter-checkbox.entry.js.map +1 -1
  388. package/dist/esm/u-newsletter-consent-checkbox.entry.js +4 -4
  389. package/dist/esm/u-newsletter-logout-button.entry.js +15 -20
  390. package/dist/esm/u-newsletter-logout-button.entry.js.map +1 -1
  391. package/dist/esm/u-newsletter-preference-checkbox.entry.js +11 -12
  392. package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +1 -1
  393. package/dist/esm/u-newsletter-resend-doi-button.entry.js +10 -11
  394. package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +1 -1
  395. package/dist/esm/u-newsletter-root.entry.js +42 -19
  396. package/dist/esm/u-newsletter-root.entry.js.map +1 -1
  397. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +11 -12
  398. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +1 -1
  399. package/dist/esm/u-pagination-button.entry.js +4 -4
  400. package/dist/esm/u-pagination-button.entry.js.map +1 -1
  401. package/dist/esm/u-pagination-page.entry.js +4 -4
  402. package/dist/esm/u-pagination-page.entry.js.map +1 -1
  403. package/dist/esm/u-passkey.entry.js +8 -9
  404. package/dist/esm/u-passkey.entry.js.map +1 -1
  405. package/dist/esm/u-password-field.entry.js +5 -5
  406. package/dist/esm/u-profile.u-submit-button.entry.js.map +1 -1
  407. package/dist/esm/u-profile_2.entry.js +31 -33
  408. package/dist/esm/u-registration-button.entry.js +5 -5
  409. package/dist/esm/u-reset-password-button.entry.js +12 -15
  410. package/dist/esm/u-reset-password-button.entry.js.map +1 -1
  411. package/dist/esm/u-send-magic-code-button.entry.js +8 -9
  412. package/dist/esm/u-send-magic-code-button.entry.js.map +1 -1
  413. package/dist/esm/u-signin-root.entry.js +6 -8
  414. package/dist/esm/u-signin-root.entry.js.map +1 -1
  415. package/dist/esm/u-signin-step.entry.js +17 -21
  416. package/dist/esm/u-signin-step.entry.js.map +1 -1
  417. package/dist/esm/u-social-login-button.entry.js +16 -15
  418. package/dist/esm/u-social-login-button.entry.js.map +1 -1
  419. package/dist/esm/u-spinner.entry.js +3 -3
  420. package/dist/esm/u-spinner.entry.js.map +1 -1
  421. package/dist/esm/u-ticketable-export.entry.js +74 -0
  422. package/dist/esm/u-ticketable-export.entry.js.map +1 -0
  423. package/dist/esm/u-ticketable-list-D2p21JjR.js +3981 -0
  424. package/dist/esm/u-ticketable-list-D2p21JjR.js.map +1 -0
  425. package/dist/esm/u-ticketable-list.entry.js +10 -6121
  426. package/dist/esm/u-ticketable-list.entry.js.map +1 -1
  427. package/dist/esm/{unidy-store-Bg7IaIMd.js → unidy-store-B5Bf4Vit.js} +3 -3
  428. package/dist/esm/{unidy-store-Bg7IaIMd.js.map → unidy-store-B5Bf4Vit.js.map} +1 -1
  429. package/dist/sdk/index.esm.js +1 -1
  430. package/dist/sdk/index.esm.js.map +1 -1
  431. package/dist/sdk/locales/de.json +16 -0
  432. package/dist/sdk/locales/en.json +16 -0
  433. package/dist/sdk/locales/fr.json +16 -0
  434. package/dist/sdk/locales/it.json +16 -0
  435. package/dist/sdk/locales/nl_be.json +16 -0
  436. package/dist/sdk/locales/ro.json +16 -0
  437. package/dist/sdk/p-02dce5da.entry.js +2 -0
  438. package/dist/sdk/p-02dce5da.entry.js.map +1 -0
  439. package/dist/sdk/p-043c7643.entry.js +2 -0
  440. package/dist/sdk/p-043c7643.entry.js.map +1 -0
  441. package/dist/sdk/p-18c17747.entry.js +2 -0
  442. package/dist/sdk/p-18c17747.entry.js.map +1 -0
  443. package/dist/sdk/p-1a1c1af0.entry.js +2 -0
  444. package/dist/sdk/p-1a1c1af0.entry.js.map +1 -0
  445. package/dist/sdk/p-271781c7.entry.js +2 -0
  446. package/dist/sdk/{p-1a8973a6.entry.js.map → p-271781c7.entry.js.map} +1 -1
  447. package/dist/sdk/p-29473a55.entry.js +2 -0
  448. package/dist/sdk/p-29473a55.entry.js.map +1 -0
  449. package/dist/sdk/p-2a25d62e.entry.js +2 -0
  450. package/dist/sdk/p-2a25d62e.entry.js.map +1 -0
  451. package/dist/sdk/{p-C8lRzJEX.js → p-2bKltz_F.js} +2 -2
  452. package/dist/sdk/{p-C8lRzJEX.js.map → p-2bKltz_F.js.map} +1 -1
  453. package/dist/sdk/p-2cc3a00d.entry.js +2 -0
  454. package/dist/sdk/p-2cc3a00d.entry.js.map +1 -0
  455. package/dist/sdk/p-2f49e0cb.entry.js +2 -0
  456. package/dist/sdk/p-2f49e0cb.entry.js.map +1 -0
  457. package/dist/sdk/p-34f5d201.entry.js +2 -0
  458. package/dist/sdk/p-34f5d201.entry.js.map +1 -0
  459. package/dist/sdk/p-52c4bdd9.entry.js +2 -0
  460. package/dist/sdk/p-52c4bdd9.entry.js.map +1 -0
  461. package/dist/sdk/p-585a0efa.entry.js +2 -0
  462. package/dist/sdk/p-585a0efa.entry.js.map +1 -0
  463. package/dist/sdk/p-60675019.entry.js +2 -0
  464. package/dist/sdk/p-60675019.entry.js.map +1 -0
  465. package/dist/sdk/p-79ef9a70.entry.js +2 -0
  466. package/dist/sdk/p-79ef9a70.entry.js.map +1 -0
  467. package/dist/sdk/p-7d88e21c.entry.js +2 -0
  468. package/dist/sdk/p-7d88e21c.entry.js.map +1 -0
  469. package/dist/sdk/p-7eaf3468.entry.js +2 -0
  470. package/dist/sdk/p-7eaf3468.entry.js.map +1 -0
  471. package/dist/sdk/{p-88beb872.entry.js → p-8412762c.entry.js} +2 -2
  472. package/dist/sdk/p-8ea70c08.entry.js +2 -0
  473. package/dist/sdk/p-8ea70c08.entry.js.map +1 -0
  474. package/dist/sdk/p-946cdb0a.entry.js +2 -0
  475. package/dist/sdk/p-946cdb0a.entry.js.map +1 -0
  476. package/dist/sdk/p-94bb0217.entry.js +2 -0
  477. package/dist/sdk/p-94bb0217.entry.js.map +1 -0
  478. package/dist/sdk/{p-bcca06f1.entry.js → p-96860b09.entry.js} +2 -2
  479. package/dist/sdk/p-B1A6Nu24.js +2 -0
  480. package/dist/sdk/p-B1A6Nu24.js.map +1 -0
  481. package/dist/sdk/p-B85MJLTf.js +2 -0
  482. package/dist/sdk/p-B85MJLTf.js.map +1 -0
  483. package/dist/sdk/p-B8N6Bwsa.js +2 -0
  484. package/dist/sdk/{p-DCG3L43i.js.map → p-B8N6Bwsa.js.map} +1 -1
  485. package/dist/sdk/p-Ba5szISo.js +2 -0
  486. package/dist/sdk/p-Ba5szISo.js.map +1 -0
  487. package/dist/sdk/p-BsJDptgj.js +14 -0
  488. package/dist/sdk/p-BsJDptgj.js.map +1 -0
  489. package/dist/sdk/{p-bpXpOZY_.js → p-C0Mo15qt.js} +2 -2
  490. package/dist/sdk/{p-bpXpOZY_.js.map → p-C0Mo15qt.js.map} +1 -1
  491. package/dist/sdk/p-C10MAuCE.js +2 -0
  492. package/dist/sdk/p-C10MAuCE.js.map +1 -0
  493. package/dist/sdk/p-CTy6pQSg.js +2 -0
  494. package/dist/sdk/p-CTy6pQSg.js.map +1 -0
  495. package/dist/sdk/p-CW6kGAuQ.js +2 -0
  496. package/dist/sdk/p-CW6kGAuQ.js.map +1 -0
  497. package/dist/sdk/{p-DdMKVWx8.js → p-CbSP8My1.js} +2 -2
  498. package/dist/sdk/{p-DdMKVWx8.js.map → p-CbSP8My1.js.map} +1 -1
  499. package/dist/sdk/p-CbzzI4uW.js +2 -0
  500. package/dist/sdk/p-CbzzI4uW.js.map +1 -0
  501. package/dist/sdk/p-CgT6fZjb.js +2 -0
  502. package/dist/sdk/p-CgT6fZjb.js.map +1 -0
  503. package/dist/sdk/p-CuHZ3IkE.js +2 -0
  504. package/dist/sdk/p-CuHZ3IkE.js.map +1 -0
  505. package/dist/sdk/p-Cysk_vik.js +2 -0
  506. package/dist/sdk/p-Cysk_vik.js.map +1 -0
  507. package/dist/sdk/p-D0ut3waq.js +2 -0
  508. package/dist/sdk/p-D0ut3waq.js.map +1 -0
  509. package/dist/sdk/{p-BigbTrKk.js → p-D2Rf-QGm.js} +2 -2
  510. package/dist/sdk/{p-BigbTrKk.js.map → p-D2Rf-QGm.js.map} +1 -1
  511. package/dist/sdk/{p-6rqGeAfT.js → p-D9yFO_ID.js} +2 -2
  512. package/dist/sdk/{p-6rqGeAfT.js.map → p-D9yFO_ID.js.map} +1 -1
  513. package/dist/sdk/p-DD_5soRi.js +2 -0
  514. package/dist/sdk/p-DD_5soRi.js.map +1 -0
  515. package/dist/sdk/p-DHuvvagO.js +2 -0
  516. package/dist/sdk/p-DHuvvagO.js.map +1 -0
  517. package/dist/sdk/p-DSMkJu9G.js +2 -0
  518. package/dist/sdk/p-DSMkJu9G.js.map +1 -0
  519. package/dist/sdk/p-DcirMfca.js +2 -0
  520. package/dist/sdk/p-DcirMfca.js.map +1 -0
  521. package/dist/sdk/p-J0cv5IOA.js +2 -0
  522. package/dist/sdk/p-J0cv5IOA.js.map +1 -0
  523. package/dist/sdk/p-_5evboqW.js +2 -0
  524. package/dist/sdk/{p-DSktNM_k.js.map → p-_5evboqW.js.map} +1 -1
  525. package/dist/sdk/{p-7ee2f2ab.entry.js → p-ac3a6bbf.entry.js} +2 -2
  526. package/dist/sdk/p-b498bcdd.entry.js +2 -0
  527. package/dist/sdk/p-b498bcdd.entry.js.map +1 -0
  528. package/dist/sdk/p-b5dd5b4c.entry.js +2 -0
  529. package/dist/sdk/p-b5dd5b4c.entry.js.map +1 -0
  530. package/dist/sdk/{p-6b061b18.entry.js → p-b99588a8.entry.js} +2 -2
  531. package/dist/sdk/p-bf9c27a8.entry.js +2 -0
  532. package/dist/sdk/p-bf9c27a8.entry.js.map +1 -0
  533. package/dist/sdk/p-c10d9b8e.entry.js +2 -0
  534. package/dist/sdk/p-c10d9b8e.entry.js.map +1 -0
  535. package/dist/sdk/{p-10e20afd.entry.js → p-c2634439.entry.js} +2 -2
  536. package/dist/sdk/p-d6777395.entry.js +2 -0
  537. package/dist/sdk/p-d6777395.entry.js.map +1 -0
  538. package/dist/sdk/p-dbfe7b29.entry.js +2 -0
  539. package/dist/sdk/p-dbfe7b29.entry.js.map +1 -0
  540. package/dist/sdk/p-def4e874.entry.js +2 -0
  541. package/dist/sdk/p-def4e874.entry.js.map +1 -0
  542. package/dist/sdk/p-e872a012.entry.js +2 -0
  543. package/dist/sdk/p-e872a012.entry.js.map +1 -0
  544. package/dist/sdk/p-eaaf3989.entry.js +2 -0
  545. package/dist/sdk/p-eaaf3989.entry.js.map +1 -0
  546. package/dist/sdk/p-fd46b459.entry.js +2 -0
  547. package/dist/sdk/{p-830778eb.entry.js.map → p-fd46b459.entry.js.map} +1 -1
  548. package/dist/sdk/sdk.esm.js +1 -1
  549. package/dist/sdk/u-conditional-render.entry.esm.js.map +1 -1
  550. package/dist/sdk/u-config.entry.esm.js.map +1 -1
  551. package/dist/sdk/u-error-message.entry.esm.js.map +1 -1
  552. package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +1 -1
  553. package/dist/sdk/u-jump-to-service.entry.esm.js.map +1 -1
  554. package/dist/sdk/u-jump-to-unidy.entry.esm.js.map +1 -1
  555. package/dist/sdk/u-logout-button.u-signed-in.entry.esm.js.map +1 -1
  556. package/dist/sdk/u-magic-code-field.entry.esm.js.map +1 -1
  557. package/dist/sdk/u-missing-field.entry.esm.js.map +1 -1
  558. package/dist/sdk/u-missing-fields-submit-button.entry.esm.js.map +1 -1
  559. package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +1 -1
  560. package/dist/sdk/u-newsletter-logout-button.entry.esm.js.map +1 -1
  561. package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +1 -1
  562. package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +1 -1
  563. package/dist/sdk/u-newsletter-root.entry.esm.js.map +1 -1
  564. package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +1 -1
  565. package/dist/sdk/u-pagination-button.entry.esm.js.map +1 -1
  566. package/dist/sdk/u-pagination-page.entry.esm.js.map +1 -1
  567. package/dist/sdk/u-passkey.entry.esm.js.map +1 -1
  568. package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +1 -1
  569. package/dist/sdk/u-reset-password-button.entry.esm.js.map +1 -1
  570. package/dist/sdk/u-send-magic-code-button.entry.esm.js.map +1 -1
  571. package/dist/sdk/u-signin-root.entry.esm.js.map +1 -1
  572. package/dist/sdk/u-signin-step.entry.esm.js.map +1 -1
  573. package/dist/sdk/u-social-login-button.entry.esm.js.map +1 -1
  574. package/dist/sdk/u-spinner.entry.esm.js.map +1 -1
  575. package/dist/sdk/u-ticketable-export.entry.esm.js.map +1 -0
  576. package/dist/sdk/u-ticketable-list.entry.esm.js.map +1 -1
  577. package/dist/types/api/client.d.ts +1 -1
  578. package/dist/types/api/index.d.ts +4 -4
  579. package/dist/types/api/standalone.d.ts +9 -9
  580. package/dist/types/auth/api/auth.d.ts +2 -3
  581. package/dist/types/auth/api/schemas.d.ts +19 -19
  582. package/dist/types/auth/auth-helpers.d.ts +1 -0
  583. package/dist/types/auth/components/jump-to-service/jump-to-service.d.ts +13 -5
  584. package/dist/types/auth/components/jump-to-unidy/jump-to-unidy.d.ts +13 -9
  585. package/dist/types/auth/components/logout-button/logout-button.d.ts +13 -4
  586. package/dist/types/auth/components/missing-field/missing-field.d.ts +1 -0
  587. package/dist/types/auth/components/missing-fields-submit-button/missing-fields-submit-button.d.ts +14 -2
  588. package/dist/types/auth/components/reset-pass-button/reset-pass-button.d.ts +13 -4
  589. package/dist/types/auth/components/social-logins/social-login-button.d.ts +11 -7
  590. package/dist/types/components.d.ts +73 -0
  591. package/dist/types/logger.d.ts +0 -34
  592. package/dist/types/newsletter/components/logout-button/logout-button.d.ts +13 -4
  593. package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +16 -2
  594. package/dist/types/newsletter/newsletter-helpers.d.ts +8 -2
  595. package/dist/types/newsletter/store/newsletter-store.d.ts +8 -1
  596. package/dist/types/profile/api/profile.d.ts +2 -2
  597. package/dist/types/profile/api/schemas.d.ts +21 -21
  598. package/dist/types/profile/components/raw-field/raw-field.d.ts +14 -2
  599. package/dist/types/shared/base/component.d.ts +46 -0
  600. package/dist/types/shared/base/has-slot-content.d.ts +10 -0
  601. package/dist/types/shared/component-utils.d.ts +20 -12
  602. package/dist/types/shared/components/conditional-render/conditional-render.d.ts +7 -2
  603. package/dist/types/shared/components/config/config.d.ts +7 -2
  604. package/dist/types/shared/components/error-message/error-message.d.ts +14 -2
  605. package/dist/types/shared/components/submit-button/submit-button.d.ts +13 -4
  606. package/dist/types/shared/context-utils.d.ts +73 -0
  607. package/dist/types/shared/utils/redirect-with-token.d.ts +21 -0
  608. package/dist/types/shared/utils/url-utils.d.ts +16 -0
  609. package/dist/types/ticketable/api/schemas.d.ts +16 -2
  610. package/dist/types/ticketable/api/subscriptions.d.ts +8 -3
  611. package/dist/types/ticketable/api/tickets.d.ts +8 -3
  612. package/dist/types/ticketable/components/pagination/pagination-button.d.ts +8 -4
  613. package/dist/types/ticketable/components/pagination/pagination-page.d.ts +8 -4
  614. package/dist/types/ticketable/components/ticketable-export/ticketable-export.d.ts +24 -0
  615. package/dist/types/ticketable/components/ticketable-list/ticketable-list.d.ts +10 -4
  616. package/dist/types/ticketable/index.d.ts +1 -0
  617. package/package.json +6 -2
  618. package/readme.md +248 -27
  619. package/dist/cjs/app-globals-hdkLqF51.js +0 -10
  620. package/dist/cjs/app-globals-hdkLqF51.js.map +0 -1
  621. package/dist/cjs/component-utils-bu3SY4dE.js +0 -42
  622. package/dist/cjs/component-utils-bu3SY4dE.js.map +0 -1
  623. package/dist/cjs/index-B325yXfO.js.map +0 -1
  624. package/dist/cjs/index-BzPYBLYC.js.map +0 -1
  625. package/dist/cjs/newsletter-helpers-hdDC5X-V.js.map +0 -1
  626. package/dist/cjs/newsletter-store-CupsLgO9.js.map +0 -1
  627. package/dist/cjs/pagination-store-zo48QpTm.js +0 -16
  628. package/dist/cjs/pagination-store-zo48QpTm.js.map +0 -1
  629. package/dist/components/pagination-store.js +0 -14
  630. package/dist/components/pagination-store.js.map +0 -1
  631. package/dist/esm/app-globals-iHhGdwBB.js +0 -8
  632. package/dist/esm/app-globals-iHhGdwBB.js.map +0 -1
  633. package/dist/esm/component-utils-BGq0leDV.js +0 -39
  634. package/dist/esm/component-utils-BGq0leDV.js.map +0 -1
  635. package/dist/esm/index-BVlbCQEX.js.map +0 -1
  636. package/dist/esm/index-FTKB5a1d.js.map +0 -1
  637. package/dist/esm/newsletter-helpers-fCpxzovf.js.map +0 -1
  638. package/dist/esm/newsletter-store-BB618FgS.js.map +0 -1
  639. package/dist/esm/pagination-store-DxmcQH8R.js +0 -14
  640. package/dist/esm/pagination-store-DxmcQH8R.js.map +0 -1
  641. package/dist/sdk/p-1a8973a6.entry.js +0 -2
  642. package/dist/sdk/p-35ad60ab.entry.js +0 -2
  643. package/dist/sdk/p-35ad60ab.entry.js.map +0 -1
  644. package/dist/sdk/p-3f352f38.entry.js +0 -2
  645. package/dist/sdk/p-3f352f38.entry.js.map +0 -1
  646. package/dist/sdk/p-468aaf62.entry.js +0 -2
  647. package/dist/sdk/p-468aaf62.entry.js.map +0 -1
  648. package/dist/sdk/p-4e2e6a13.entry.js +0 -2
  649. package/dist/sdk/p-4e2e6a13.entry.js.map +0 -1
  650. package/dist/sdk/p-57c8dc68.entry.js +0 -2
  651. package/dist/sdk/p-57c8dc68.entry.js.map +0 -1
  652. package/dist/sdk/p-594aec0c.entry.js +0 -2
  653. package/dist/sdk/p-594aec0c.entry.js.map +0 -1
  654. package/dist/sdk/p-60c8be64.entry.js +0 -2
  655. package/dist/sdk/p-60c8be64.entry.js.map +0 -1
  656. package/dist/sdk/p-760718d3.entry.js +0 -2
  657. package/dist/sdk/p-760718d3.entry.js.map +0 -1
  658. package/dist/sdk/p-77f541f3.entry.js +0 -2
  659. package/dist/sdk/p-77f541f3.entry.js.map +0 -1
  660. package/dist/sdk/p-830778eb.entry.js +0 -2
  661. package/dist/sdk/p-8839648e.entry.js +0 -2
  662. package/dist/sdk/p-8839648e.entry.js.map +0 -1
  663. package/dist/sdk/p-B6MYe-dh.js +0 -2
  664. package/dist/sdk/p-B6MYe-dh.js.map +0 -1
  665. package/dist/sdk/p-BGq0leDV.js +0 -2
  666. package/dist/sdk/p-BGq0leDV.js.map +0 -1
  667. package/dist/sdk/p-C_UZBwdm.js +0 -2
  668. package/dist/sdk/p-C_UZBwdm.js.map +0 -1
  669. package/dist/sdk/p-CbazSxaZ.js +0 -2
  670. package/dist/sdk/p-CbazSxaZ.js.map +0 -1
  671. package/dist/sdk/p-DCG3L43i.js +0 -2
  672. package/dist/sdk/p-DEUPZOH-.js +0 -2
  673. package/dist/sdk/p-DEUPZOH-.js.map +0 -1
  674. package/dist/sdk/p-DSktNM_k.js +0 -2
  675. package/dist/sdk/p-FTKB5a1d.js +0 -14
  676. package/dist/sdk/p-FTKB5a1d.js.map +0 -1
  677. package/dist/sdk/p-a7ffcff9.entry.js +0 -2
  678. package/dist/sdk/p-a7ffcff9.entry.js.map +0 -1
  679. package/dist/sdk/p-acaba1d5.entry.js +0 -2
  680. package/dist/sdk/p-acaba1d5.entry.js.map +0 -1
  681. package/dist/sdk/p-ae47a7a3.entry.js +0 -2
  682. package/dist/sdk/p-ae47a7a3.entry.js.map +0 -1
  683. package/dist/sdk/p-aec580e4.entry.js +0 -2
  684. package/dist/sdk/p-aec580e4.entry.js.map +0 -1
  685. package/dist/sdk/p-b63438ff.entry.js +0 -2
  686. package/dist/sdk/p-b63438ff.entry.js.map +0 -1
  687. package/dist/sdk/p-baaaa7f5.entry.js +0 -2
  688. package/dist/sdk/p-baaaa7f5.entry.js.map +0 -1
  689. package/dist/sdk/p-bba2da84.entry.js +0 -2
  690. package/dist/sdk/p-bba2da84.entry.js.map +0 -1
  691. package/dist/sdk/p-bc47f42b.entry.js +0 -2
  692. package/dist/sdk/p-bc47f42b.entry.js.map +0 -1
  693. package/dist/sdk/p-bd51e26f.entry.js +0 -2
  694. package/dist/sdk/p-bd51e26f.entry.js.map +0 -1
  695. package/dist/sdk/p-c3552f75.entry.js +0 -2
  696. package/dist/sdk/p-c3552f75.entry.js.map +0 -1
  697. package/dist/sdk/p-d9900482.entry.js +0 -2
  698. package/dist/sdk/p-d9900482.entry.js.map +0 -1
  699. package/dist/sdk/p-e6796c38.entry.js +0 -2
  700. package/dist/sdk/p-e6796c38.entry.js.map +0 -1
  701. package/dist/sdk/p-f272eb38.entry.js +0 -2
  702. package/dist/sdk/p-f272eb38.entry.js.map +0 -1
  703. package/dist/sdk/p-f4a47ef8.entry.js +0 -2
  704. package/dist/sdk/p-f4a47ef8.entry.js.map +0 -1
  705. package/dist/sdk/p-f608e64a.entry.js +0 -2
  706. package/dist/sdk/p-f608e64a.entry.js.map +0 -1
  707. package/dist/sdk/p-f762ac70.entry.js +0 -2
  708. package/dist/sdk/p-f762ac70.entry.js.map +0 -1
  709. package/dist/sdk/p-l6NinBiD.js +0 -2
  710. package/dist/sdk/p-l6NinBiD.js.map +0 -1
  711. /package/dist/sdk/{p-88beb872.entry.js.map → p-8412762c.entry.js.map} +0 -0
  712. /package/dist/sdk/{p-bcca06f1.entry.js.map → p-96860b09.entry.js.map} +0 -0
  713. /package/dist/sdk/{p-7ee2f2ab.entry.js.map → p-ac3a6bbf.entry.js.map} +0 -0
  714. /package/dist/sdk/{p-6b061b18.entry.js.map → p-b99588a8.entry.js.map} +0 -0
  715. /package/dist/sdk/{p-10e20afd.entry.js.map → p-c2634439.entry.js.map} +0 -0
@@ -0,0 +1,3991 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-2Fz3r5o0.js');
4
+ var index$1 = require('./index-CpPKy1CZ.js');
5
+ var authStore = require('./auth-store-0vv3uOib.js');
6
+ var i18n = require('./i18n-ClWrNmGh.js');
7
+ var component = require('./component-DLxnZCW6.js');
8
+ var unidyStore = require('./unidy-store-Bvnl24i9.js');
9
+
10
+ var format = {};
11
+
12
+ var defaultLocale = {};
13
+
14
+ var enUS = {};
15
+
16
+ var formatDistance = {};
17
+
18
+ var hasRequiredFormatDistance;
19
+
20
+ function requireFormatDistance () {
21
+ if (hasRequiredFormatDistance) return formatDistance;
22
+ hasRequiredFormatDistance = 1;
23
+ formatDistance.formatDistance = void 0;
24
+
25
+ const formatDistanceLocale = {
26
+ lessThanXSeconds: {
27
+ one: "less than a second",
28
+ other: "less than {{count}} seconds",
29
+ },
30
+
31
+ xSeconds: {
32
+ one: "1 second",
33
+ other: "{{count}} seconds",
34
+ },
35
+
36
+ halfAMinute: "half a minute",
37
+
38
+ lessThanXMinutes: {
39
+ one: "less than a minute",
40
+ other: "less than {{count}} minutes",
41
+ },
42
+
43
+ xMinutes: {
44
+ one: "1 minute",
45
+ other: "{{count}} minutes",
46
+ },
47
+
48
+ aboutXHours: {
49
+ one: "about 1 hour",
50
+ other: "about {{count}} hours",
51
+ },
52
+
53
+ xHours: {
54
+ one: "1 hour",
55
+ other: "{{count}} hours",
56
+ },
57
+
58
+ xDays: {
59
+ one: "1 day",
60
+ other: "{{count}} days",
61
+ },
62
+
63
+ aboutXWeeks: {
64
+ one: "about 1 week",
65
+ other: "about {{count}} weeks",
66
+ },
67
+
68
+ xWeeks: {
69
+ one: "1 week",
70
+ other: "{{count}} weeks",
71
+ },
72
+
73
+ aboutXMonths: {
74
+ one: "about 1 month",
75
+ other: "about {{count}} months",
76
+ },
77
+
78
+ xMonths: {
79
+ one: "1 month",
80
+ other: "{{count}} months",
81
+ },
82
+
83
+ aboutXYears: {
84
+ one: "about 1 year",
85
+ other: "about {{count}} years",
86
+ },
87
+
88
+ xYears: {
89
+ one: "1 year",
90
+ other: "{{count}} years",
91
+ },
92
+
93
+ overXYears: {
94
+ one: "over 1 year",
95
+ other: "over {{count}} years",
96
+ },
97
+
98
+ almostXYears: {
99
+ one: "almost 1 year",
100
+ other: "almost {{count}} years",
101
+ },
102
+ };
103
+
104
+ const formatDistance$1 = (token, count, options) => {
105
+ let result;
106
+
107
+ const tokenValue = formatDistanceLocale[token];
108
+ if (typeof tokenValue === "string") {
109
+ result = tokenValue;
110
+ } else if (count === 1) {
111
+ result = tokenValue.one;
112
+ } else {
113
+ result = tokenValue.other.replace("{{count}}", count.toString());
114
+ }
115
+
116
+ if (options?.addSuffix) {
117
+ if (options.comparison && options.comparison > 0) {
118
+ return "in " + result;
119
+ } else {
120
+ return result + " ago";
121
+ }
122
+ }
123
+
124
+ return result;
125
+ };
126
+ formatDistance.formatDistance = formatDistance$1;
127
+ return formatDistance;
128
+ }
129
+
130
+ var formatLong = {};
131
+
132
+ var buildFormatLongFn = {};
133
+
134
+ var hasRequiredBuildFormatLongFn;
135
+
136
+ function requireBuildFormatLongFn () {
137
+ if (hasRequiredBuildFormatLongFn) return buildFormatLongFn;
138
+ hasRequiredBuildFormatLongFn = 1;
139
+ buildFormatLongFn.buildFormatLongFn = buildFormatLongFn$1;
140
+
141
+ function buildFormatLongFn$1(args) {
142
+ return (options = {}) => {
143
+ // TODO: Remove String()
144
+ const width = options.width ? String(options.width) : args.defaultWidth;
145
+ const format = args.formats[width] || args.formats[args.defaultWidth];
146
+ return format;
147
+ };
148
+ }
149
+ return buildFormatLongFn;
150
+ }
151
+
152
+ var hasRequiredFormatLong;
153
+
154
+ function requireFormatLong () {
155
+ if (hasRequiredFormatLong) return formatLong;
156
+ hasRequiredFormatLong = 1;
157
+ formatLong.formatLong = void 0;
158
+ var _index = /*@__PURE__*/ requireBuildFormatLongFn();
159
+
160
+ const dateFormats = {
161
+ full: "EEEE, MMMM do, y",
162
+ long: "MMMM do, y",
163
+ medium: "MMM d, y",
164
+ short: "MM/dd/yyyy",
165
+ };
166
+
167
+ const timeFormats = {
168
+ full: "h:mm:ss a zzzz",
169
+ long: "h:mm:ss a z",
170
+ medium: "h:mm:ss a",
171
+ short: "h:mm a",
172
+ };
173
+
174
+ const dateTimeFormats = {
175
+ full: "{{date}} 'at' {{time}}",
176
+ long: "{{date}} 'at' {{time}}",
177
+ medium: "{{date}}, {{time}}",
178
+ short: "{{date}}, {{time}}",
179
+ };
180
+
181
+ (formatLong.formatLong = {
182
+ date: (0, _index.buildFormatLongFn)({
183
+ formats: dateFormats,
184
+ defaultWidth: "full",
185
+ }),
186
+
187
+ time: (0, _index.buildFormatLongFn)({
188
+ formats: timeFormats,
189
+ defaultWidth: "full",
190
+ }),
191
+
192
+ dateTime: (0, _index.buildFormatLongFn)({
193
+ formats: dateTimeFormats,
194
+ defaultWidth: "full",
195
+ }),
196
+ });
197
+ return formatLong;
198
+ }
199
+
200
+ var formatRelative = {};
201
+
202
+ var hasRequiredFormatRelative;
203
+
204
+ function requireFormatRelative () {
205
+ if (hasRequiredFormatRelative) return formatRelative;
206
+ hasRequiredFormatRelative = 1;
207
+ formatRelative.formatRelative = void 0;
208
+
209
+ const formatRelativeLocale = {
210
+ lastWeek: "'last' eeee 'at' p",
211
+ yesterday: "'yesterday at' p",
212
+ today: "'today at' p",
213
+ tomorrow: "'tomorrow at' p",
214
+ nextWeek: "eeee 'at' p",
215
+ other: "P",
216
+ };
217
+
218
+ const formatRelative$1 = (token, _date, _baseDate, _options) =>
219
+ formatRelativeLocale[token];
220
+ formatRelative.formatRelative = formatRelative$1;
221
+ return formatRelative;
222
+ }
223
+
224
+ var localize = {};
225
+
226
+ var buildLocalizeFn = {};
227
+
228
+ var hasRequiredBuildLocalizeFn;
229
+
230
+ function requireBuildLocalizeFn () {
231
+ if (hasRequiredBuildLocalizeFn) return buildLocalizeFn;
232
+ hasRequiredBuildLocalizeFn = 1;
233
+ buildLocalizeFn.buildLocalizeFn = buildLocalizeFn$1;
234
+
235
+ /**
236
+ * The localize function argument callback which allows to convert raw value to
237
+ * the actual type.
238
+ *
239
+ * @param value - The value to convert
240
+ *
241
+ * @returns The converted value
242
+ */
243
+
244
+ /**
245
+ * The map of localized values for each width.
246
+ */
247
+
248
+ /**
249
+ * The index type of the locale unit value. It types conversion of units of
250
+ * values that don't start at 0 (i.e. quarters).
251
+ */
252
+
253
+ /**
254
+ * Converts the unit value to the tuple of values.
255
+ */
256
+
257
+ /**
258
+ * The tuple of localized era values. The first element represents BC,
259
+ * the second element represents AD.
260
+ */
261
+
262
+ /**
263
+ * The tuple of localized quarter values. The first element represents Q1.
264
+ */
265
+
266
+ /**
267
+ * The tuple of localized day values. The first element represents Sunday.
268
+ */
269
+
270
+ /**
271
+ * The tuple of localized month values. The first element represents January.
272
+ */
273
+
274
+ function buildLocalizeFn$1(args) {
275
+ return (value, options) => {
276
+ const context = options?.context ? String(options.context) : "standalone";
277
+
278
+ let valuesArray;
279
+ if (context === "formatting" && args.formattingValues) {
280
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
281
+ const width = options?.width ? String(options.width) : defaultWidth;
282
+
283
+ valuesArray =
284
+ args.formattingValues[width] || args.formattingValues[defaultWidth];
285
+ } else {
286
+ const defaultWidth = args.defaultWidth;
287
+ const width = options?.width ? String(options.width) : args.defaultWidth;
288
+
289
+ valuesArray = args.values[width] || args.values[defaultWidth];
290
+ }
291
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
292
+
293
+ // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
294
+ return valuesArray[index];
295
+ };
296
+ }
297
+ return buildLocalizeFn;
298
+ }
299
+
300
+ var hasRequiredLocalize;
301
+
302
+ function requireLocalize () {
303
+ if (hasRequiredLocalize) return localize;
304
+ hasRequiredLocalize = 1;
305
+ localize.localize = void 0;
306
+ var _index = /*@__PURE__*/ requireBuildLocalizeFn();
307
+
308
+ const eraValues = {
309
+ narrow: ["B", "A"],
310
+ abbreviated: ["BC", "AD"],
311
+ wide: ["Before Christ", "Anno Domini"],
312
+ };
313
+
314
+ const quarterValues = {
315
+ narrow: ["1", "2", "3", "4"],
316
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
317
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
318
+ };
319
+
320
+ // Note: in English, the names of days of the week and months are capitalized.
321
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
322
+ // Generally, formatted dates should look like they are in the middle of a sentence,
323
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
324
+ const monthValues = {
325
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
326
+ abbreviated: [
327
+ "Jan",
328
+ "Feb",
329
+ "Mar",
330
+ "Apr",
331
+ "May",
332
+ "Jun",
333
+ "Jul",
334
+ "Aug",
335
+ "Sep",
336
+ "Oct",
337
+ "Nov",
338
+ "Dec",
339
+ ],
340
+
341
+ wide: [
342
+ "January",
343
+ "February",
344
+ "March",
345
+ "April",
346
+ "May",
347
+ "June",
348
+ "July",
349
+ "August",
350
+ "September",
351
+ "October",
352
+ "November",
353
+ "December",
354
+ ],
355
+ };
356
+
357
+ const dayValues = {
358
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
359
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
360
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
361
+ wide: [
362
+ "Sunday",
363
+ "Monday",
364
+ "Tuesday",
365
+ "Wednesday",
366
+ "Thursday",
367
+ "Friday",
368
+ "Saturday",
369
+ ],
370
+ };
371
+
372
+ const dayPeriodValues = {
373
+ narrow: {
374
+ am: "a",
375
+ pm: "p",
376
+ midnight: "mi",
377
+ noon: "n",
378
+ morning: "morning",
379
+ afternoon: "afternoon",
380
+ evening: "evening",
381
+ night: "night",
382
+ },
383
+ abbreviated: {
384
+ am: "AM",
385
+ pm: "PM",
386
+ midnight: "midnight",
387
+ noon: "noon",
388
+ morning: "morning",
389
+ afternoon: "afternoon",
390
+ evening: "evening",
391
+ night: "night",
392
+ },
393
+ wide: {
394
+ am: "a.m.",
395
+ pm: "p.m.",
396
+ midnight: "midnight",
397
+ noon: "noon",
398
+ morning: "morning",
399
+ afternoon: "afternoon",
400
+ evening: "evening",
401
+ night: "night",
402
+ },
403
+ };
404
+
405
+ const formattingDayPeriodValues = {
406
+ narrow: {
407
+ am: "a",
408
+ pm: "p",
409
+ midnight: "mi",
410
+ noon: "n",
411
+ morning: "in the morning",
412
+ afternoon: "in the afternoon",
413
+ evening: "in the evening",
414
+ night: "at night",
415
+ },
416
+ abbreviated: {
417
+ am: "AM",
418
+ pm: "PM",
419
+ midnight: "midnight",
420
+ noon: "noon",
421
+ morning: "in the morning",
422
+ afternoon: "in the afternoon",
423
+ evening: "in the evening",
424
+ night: "at night",
425
+ },
426
+ wide: {
427
+ am: "a.m.",
428
+ pm: "p.m.",
429
+ midnight: "midnight",
430
+ noon: "noon",
431
+ morning: "in the morning",
432
+ afternoon: "in the afternoon",
433
+ evening: "in the evening",
434
+ night: "at night",
435
+ },
436
+ };
437
+
438
+ const ordinalNumber = (dirtyNumber, _options) => {
439
+ const number = Number(dirtyNumber);
440
+
441
+ // If ordinal numbers depend on context, for example,
442
+ // if they are different for different grammatical genders,
443
+ // use `options.unit`.
444
+ //
445
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
446
+ // 'day', 'hour', 'minute', 'second'.
447
+
448
+ const rem100 = number % 100;
449
+ if (rem100 > 20 || rem100 < 10) {
450
+ switch (rem100 % 10) {
451
+ case 1:
452
+ return number + "st";
453
+ case 2:
454
+ return number + "nd";
455
+ case 3:
456
+ return number + "rd";
457
+ }
458
+ }
459
+ return number + "th";
460
+ };
461
+
462
+ (localize.localize = {
463
+ ordinalNumber,
464
+
465
+ era: (0, _index.buildLocalizeFn)({
466
+ values: eraValues,
467
+ defaultWidth: "wide",
468
+ }),
469
+
470
+ quarter: (0, _index.buildLocalizeFn)({
471
+ values: quarterValues,
472
+ defaultWidth: "wide",
473
+ argumentCallback: (quarter) => quarter - 1,
474
+ }),
475
+
476
+ month: (0, _index.buildLocalizeFn)({
477
+ values: monthValues,
478
+ defaultWidth: "wide",
479
+ }),
480
+
481
+ day: (0, _index.buildLocalizeFn)({
482
+ values: dayValues,
483
+ defaultWidth: "wide",
484
+ }),
485
+
486
+ dayPeriod: (0, _index.buildLocalizeFn)({
487
+ values: dayPeriodValues,
488
+ defaultWidth: "wide",
489
+ formattingValues: formattingDayPeriodValues,
490
+ defaultFormattingWidth: "wide",
491
+ }),
492
+ });
493
+ return localize;
494
+ }
495
+
496
+ var match = {};
497
+
498
+ var buildMatchFn = {};
499
+
500
+ var hasRequiredBuildMatchFn;
501
+
502
+ function requireBuildMatchFn () {
503
+ if (hasRequiredBuildMatchFn) return buildMatchFn;
504
+ hasRequiredBuildMatchFn = 1;
505
+ buildMatchFn.buildMatchFn = buildMatchFn$1;
506
+
507
+ function buildMatchFn$1(args) {
508
+ return (string, options = {}) => {
509
+ const width = options.width;
510
+
511
+ const matchPattern =
512
+ (width && args.matchPatterns[width]) ||
513
+ args.matchPatterns[args.defaultMatchWidth];
514
+ const matchResult = string.match(matchPattern);
515
+
516
+ if (!matchResult) {
517
+ return null;
518
+ }
519
+ const matchedString = matchResult[0];
520
+
521
+ const parsePatterns =
522
+ (width && args.parsePatterns[width]) ||
523
+ args.parsePatterns[args.defaultParseWidth];
524
+
525
+ const key = Array.isArray(parsePatterns)
526
+ ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
527
+ : // [TODO] -- I challenge you to fix the type
528
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString));
529
+
530
+ let value;
531
+
532
+ value = args.valueCallback ? args.valueCallback(key) : key;
533
+ value = options.valueCallback
534
+ ? // [TODO] -- I challenge you to fix the type
535
+ options.valueCallback(value)
536
+ : value;
537
+
538
+ const rest = string.slice(matchedString.length);
539
+
540
+ return { value, rest };
541
+ };
542
+ }
543
+
544
+ function findKey(object, predicate) {
545
+ for (const key in object) {
546
+ if (
547
+ Object.prototype.hasOwnProperty.call(object, key) &&
548
+ predicate(object[key])
549
+ ) {
550
+ return key;
551
+ }
552
+ }
553
+ return undefined;
554
+ }
555
+
556
+ function findIndex(array, predicate) {
557
+ for (let key = 0; key < array.length; key++) {
558
+ if (predicate(array[key])) {
559
+ return key;
560
+ }
561
+ }
562
+ return undefined;
563
+ }
564
+ return buildMatchFn;
565
+ }
566
+
567
+ var buildMatchPatternFn = {};
568
+
569
+ var hasRequiredBuildMatchPatternFn;
570
+
571
+ function requireBuildMatchPatternFn () {
572
+ if (hasRequiredBuildMatchPatternFn) return buildMatchPatternFn;
573
+ hasRequiredBuildMatchPatternFn = 1;
574
+ buildMatchPatternFn.buildMatchPatternFn = buildMatchPatternFn$1;
575
+
576
+ function buildMatchPatternFn$1(args) {
577
+ return (string, options = {}) => {
578
+ const matchResult = string.match(args.matchPattern);
579
+ if (!matchResult) return null;
580
+ const matchedString = matchResult[0];
581
+
582
+ const parseResult = string.match(args.parsePattern);
583
+ if (!parseResult) return null;
584
+ let value = args.valueCallback
585
+ ? args.valueCallback(parseResult[0])
586
+ : parseResult[0];
587
+
588
+ // [TODO] I challenge you to fix the type
589
+ value = options.valueCallback ? options.valueCallback(value) : value;
590
+
591
+ const rest = string.slice(matchedString.length);
592
+
593
+ return { value, rest };
594
+ };
595
+ }
596
+ return buildMatchPatternFn;
597
+ }
598
+
599
+ var hasRequiredMatch;
600
+
601
+ function requireMatch () {
602
+ if (hasRequiredMatch) return match;
603
+ hasRequiredMatch = 1;
604
+ match.match = void 0;
605
+
606
+ var _index = /*@__PURE__*/ requireBuildMatchFn();
607
+ var _index2 = /*@__PURE__*/ requireBuildMatchPatternFn();
608
+
609
+ const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
610
+ const parseOrdinalNumberPattern = /\d+/i;
611
+
612
+ const matchEraPatterns = {
613
+ narrow: /^(b|a)/i,
614
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
615
+ wide: /^(before christ|before common era|anno domini|common era)/i,
616
+ };
617
+ const parseEraPatterns = {
618
+ any: [/^b/i, /^(a|c)/i],
619
+ };
620
+
621
+ const matchQuarterPatterns = {
622
+ narrow: /^[1234]/i,
623
+ abbreviated: /^q[1234]/i,
624
+ wide: /^[1234](th|st|nd|rd)? quarter/i,
625
+ };
626
+ const parseQuarterPatterns = {
627
+ any: [/1/i, /2/i, /3/i, /4/i],
628
+ };
629
+
630
+ const matchMonthPatterns = {
631
+ narrow: /^[jfmasond]/i,
632
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
633
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
634
+ };
635
+ const parseMonthPatterns = {
636
+ narrow: [
637
+ /^j/i,
638
+ /^f/i,
639
+ /^m/i,
640
+ /^a/i,
641
+ /^m/i,
642
+ /^j/i,
643
+ /^j/i,
644
+ /^a/i,
645
+ /^s/i,
646
+ /^o/i,
647
+ /^n/i,
648
+ /^d/i,
649
+ ],
650
+
651
+ any: [
652
+ /^ja/i,
653
+ /^f/i,
654
+ /^mar/i,
655
+ /^ap/i,
656
+ /^may/i,
657
+ /^jun/i,
658
+ /^jul/i,
659
+ /^au/i,
660
+ /^s/i,
661
+ /^o/i,
662
+ /^n/i,
663
+ /^d/i,
664
+ ],
665
+ };
666
+
667
+ const matchDayPatterns = {
668
+ narrow: /^[smtwf]/i,
669
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
670
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
671
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
672
+ };
673
+ const parseDayPatterns = {
674
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
675
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
676
+ };
677
+
678
+ const matchDayPeriodPatterns = {
679
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
680
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
681
+ };
682
+ const parseDayPeriodPatterns = {
683
+ any: {
684
+ am: /^a/i,
685
+ pm: /^p/i,
686
+ midnight: /^mi/i,
687
+ noon: /^no/i,
688
+ morning: /morning/i,
689
+ afternoon: /afternoon/i,
690
+ evening: /evening/i,
691
+ night: /night/i,
692
+ },
693
+ };
694
+
695
+ (match.match = {
696
+ ordinalNumber: (0, _index2.buildMatchPatternFn)({
697
+ matchPattern: matchOrdinalNumberPattern,
698
+ parsePattern: parseOrdinalNumberPattern,
699
+ valueCallback: (value) => parseInt(value, 10),
700
+ }),
701
+
702
+ era: (0, _index.buildMatchFn)({
703
+ matchPatterns: matchEraPatterns,
704
+ defaultMatchWidth: "wide",
705
+ parsePatterns: parseEraPatterns,
706
+ defaultParseWidth: "any",
707
+ }),
708
+
709
+ quarter: (0, _index.buildMatchFn)({
710
+ matchPatterns: matchQuarterPatterns,
711
+ defaultMatchWidth: "wide",
712
+ parsePatterns: parseQuarterPatterns,
713
+ defaultParseWidth: "any",
714
+ valueCallback: (index) => index + 1,
715
+ }),
716
+
717
+ month: (0, _index.buildMatchFn)({
718
+ matchPatterns: matchMonthPatterns,
719
+ defaultMatchWidth: "wide",
720
+ parsePatterns: parseMonthPatterns,
721
+ defaultParseWidth: "any",
722
+ }),
723
+
724
+ day: (0, _index.buildMatchFn)({
725
+ matchPatterns: matchDayPatterns,
726
+ defaultMatchWidth: "wide",
727
+ parsePatterns: parseDayPatterns,
728
+ defaultParseWidth: "any",
729
+ }),
730
+
731
+ dayPeriod: (0, _index.buildMatchFn)({
732
+ matchPatterns: matchDayPeriodPatterns,
733
+ defaultMatchWidth: "any",
734
+ parsePatterns: parseDayPeriodPatterns,
735
+ defaultParseWidth: "any",
736
+ }),
737
+ });
738
+ return match;
739
+ }
740
+
741
+ var hasRequiredEnUS;
742
+
743
+ function requireEnUS () {
744
+ if (hasRequiredEnUS) return enUS;
745
+ hasRequiredEnUS = 1;
746
+ enUS.enUS = void 0;
747
+ var _index = /*@__PURE__*/ requireFormatDistance();
748
+ var _index2 = /*@__PURE__*/ requireFormatLong();
749
+ var _index3 = /*@__PURE__*/ requireFormatRelative();
750
+ var _index4 = /*@__PURE__*/ requireLocalize();
751
+ var _index5 = /*@__PURE__*/ requireMatch();
752
+
753
+ /**
754
+ * @category Locales
755
+ * @summary English locale (United States).
756
+ * @language English
757
+ * @iso-639-2 eng
758
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
759
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
760
+ */
761
+ (enUS.enUS = {
762
+ code: "en-US",
763
+ formatDistance: _index.formatDistance,
764
+ formatLong: _index2.formatLong,
765
+ formatRelative: _index3.formatRelative,
766
+ localize: _index4.localize,
767
+ match: _index5.match,
768
+ options: {
769
+ weekStartsOn: 0 /* Sunday */,
770
+ firstWeekContainsDate: 1,
771
+ },
772
+ });
773
+ return enUS;
774
+ }
775
+
776
+ var hasRequiredDefaultLocale;
777
+
778
+ function requireDefaultLocale () {
779
+ if (hasRequiredDefaultLocale) return defaultLocale;
780
+ hasRequiredDefaultLocale = 1;
781
+ (function (exports) {
782
+ Object.defineProperty(exports, "defaultLocale", {
783
+ enumerable: true,
784
+ get: function () {
785
+ return _index.enUS;
786
+ },
787
+ });
788
+ var _index = /*@__PURE__*/ requireEnUS();
789
+ } (defaultLocale));
790
+ return defaultLocale;
791
+ }
792
+
793
+ var defaultOptions = {};
794
+
795
+ var hasRequiredDefaultOptions;
796
+
797
+ function requireDefaultOptions () {
798
+ if (hasRequiredDefaultOptions) return defaultOptions;
799
+ hasRequiredDefaultOptions = 1;
800
+ defaultOptions.getDefaultOptions = getDefaultOptions;
801
+ defaultOptions.setDefaultOptions = setDefaultOptions;
802
+
803
+ let defaultOptions$1 = {};
804
+
805
+ function getDefaultOptions() {
806
+ return defaultOptions$1;
807
+ }
808
+
809
+ function setDefaultOptions(newOptions) {
810
+ defaultOptions$1 = newOptions;
811
+ }
812
+ return defaultOptions;
813
+ }
814
+
815
+ var formatters = {};
816
+
817
+ var getDayOfYear = {};
818
+
819
+ var differenceInCalendarDays = {};
820
+
821
+ var getTimezoneOffsetInMilliseconds = {};
822
+
823
+ var toDate = {};
824
+
825
+ var constructFrom = {};
826
+
827
+ var constants = {};
828
+
829
+ var hasRequiredConstants;
830
+
831
+ function requireConstants () {
832
+ if (hasRequiredConstants) return constants;
833
+ hasRequiredConstants = 1;
834
+ constants.secondsInYear =
835
+ constants.secondsInWeek =
836
+ constants.secondsInQuarter =
837
+ constants.secondsInMonth =
838
+ constants.secondsInMinute =
839
+ constants.secondsInHour =
840
+ constants.secondsInDay =
841
+ constants.quartersInYear =
842
+ constants.monthsInYear =
843
+ constants.monthsInQuarter =
844
+ constants.minutesInYear =
845
+ constants.minutesInMonth =
846
+ constants.minutesInHour =
847
+ constants.minutesInDay =
848
+ constants.minTime =
849
+ constants.millisecondsInWeek =
850
+ constants.millisecondsInSecond =
851
+ constants.millisecondsInMinute =
852
+ constants.millisecondsInHour =
853
+ constants.millisecondsInDay =
854
+ constants.maxTime =
855
+ constants.daysInYear =
856
+ constants.daysInWeek =
857
+ constants.constructFromSymbol =
858
+ void 0; /**
859
+ * @module constants
860
+ * @summary Useful constants
861
+ * @description
862
+ * Collection of useful date constants.
863
+ *
864
+ * The constants could be imported from `date-fns/constants`:
865
+ *
866
+ * ```ts
867
+ * import { maxTime, minTime } from "date-fns/constants";
868
+ *
869
+ * function isAllowedTime(time) {
870
+ * return time <= maxTime && time >= minTime;
871
+ * }
872
+ * ```
873
+ */
874
+
875
+ /**
876
+ * @constant
877
+ * @name daysInWeek
878
+ * @summary Days in 1 week.
879
+ */
880
+ (constants.daysInWeek = 7);
881
+
882
+ /**
883
+ * @constant
884
+ * @name daysInYear
885
+ * @summary Days in 1 year.
886
+ *
887
+ * @description
888
+ * How many days in a year.
889
+ *
890
+ * One years equals 365.2425 days according to the formula:
891
+ *
892
+ * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.
893
+ * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
894
+ */
895
+ const daysInYear = (constants.daysInYear = 365.2425);
896
+
897
+ /**
898
+ * @constant
899
+ * @name maxTime
900
+ * @summary Maximum allowed time.
901
+ *
902
+ * @example
903
+ * import { maxTime } from "date-fns/constants";
904
+ *
905
+ * const isValid = 8640000000000001 <= maxTime;
906
+ * //=> false
907
+ *
908
+ * new Date(8640000000000001);
909
+ * //=> Invalid Date
910
+ */
911
+ const maxTime = (constants.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000);
912
+
913
+ /**
914
+ * @constant
915
+ * @name minTime
916
+ * @summary Minimum allowed time.
917
+ *
918
+ * @example
919
+ * import { minTime } from "date-fns/constants";
920
+ *
921
+ * const isValid = -8640000000000001 >= minTime;
922
+ * //=> false
923
+ *
924
+ * new Date(-8640000000000001)
925
+ * //=> Invalid Date
926
+ */
927
+ (constants.minTime = -maxTime);
928
+
929
+ /**
930
+ * @constant
931
+ * @name millisecondsInWeek
932
+ * @summary Milliseconds in 1 week.
933
+ */
934
+ (constants.millisecondsInWeek = 604800000);
935
+
936
+ /**
937
+ * @constant
938
+ * @name millisecondsInDay
939
+ * @summary Milliseconds in 1 day.
940
+ */
941
+ (constants.millisecondsInDay = 86400000);
942
+
943
+ /**
944
+ * @constant
945
+ * @name millisecondsInMinute
946
+ * @summary Milliseconds in 1 minute
947
+ */
948
+ (constants.millisecondsInMinute = 60000);
949
+
950
+ /**
951
+ * @constant
952
+ * @name millisecondsInHour
953
+ * @summary Milliseconds in 1 hour
954
+ */
955
+ (constants.millisecondsInHour = 3600000);
956
+
957
+ /**
958
+ * @constant
959
+ * @name millisecondsInSecond
960
+ * @summary Milliseconds in 1 second
961
+ */
962
+ (constants.millisecondsInSecond = 1000);
963
+
964
+ /**
965
+ * @constant
966
+ * @name minutesInYear
967
+ * @summary Minutes in 1 year.
968
+ */
969
+ (constants.minutesInYear = 525600);
970
+
971
+ /**
972
+ * @constant
973
+ * @name minutesInMonth
974
+ * @summary Minutes in 1 month.
975
+ */
976
+ (constants.minutesInMonth = 43200);
977
+
978
+ /**
979
+ * @constant
980
+ * @name minutesInDay
981
+ * @summary Minutes in 1 day.
982
+ */
983
+ (constants.minutesInDay = 1440);
984
+
985
+ /**
986
+ * @constant
987
+ * @name minutesInHour
988
+ * @summary Minutes in 1 hour.
989
+ */
990
+ (constants.minutesInHour = 60);
991
+
992
+ /**
993
+ * @constant
994
+ * @name monthsInQuarter
995
+ * @summary Months in 1 quarter.
996
+ */
997
+ (constants.monthsInQuarter = 3);
998
+
999
+ /**
1000
+ * @constant
1001
+ * @name monthsInYear
1002
+ * @summary Months in 1 year.
1003
+ */
1004
+ (constants.monthsInYear = 12);
1005
+
1006
+ /**
1007
+ * @constant
1008
+ * @name quartersInYear
1009
+ * @summary Quarters in 1 year
1010
+ */
1011
+ (constants.quartersInYear = 4);
1012
+
1013
+ /**
1014
+ * @constant
1015
+ * @name secondsInHour
1016
+ * @summary Seconds in 1 hour.
1017
+ */
1018
+ const secondsInHour = (constants.secondsInHour = 3600);
1019
+
1020
+ /**
1021
+ * @constant
1022
+ * @name secondsInMinute
1023
+ * @summary Seconds in 1 minute.
1024
+ */
1025
+ (constants.secondsInMinute = 60);
1026
+
1027
+ /**
1028
+ * @constant
1029
+ * @name secondsInDay
1030
+ * @summary Seconds in 1 day.
1031
+ */
1032
+ const secondsInDay = (constants.secondsInDay = secondsInHour * 24);
1033
+
1034
+ /**
1035
+ * @constant
1036
+ * @name secondsInWeek
1037
+ * @summary Seconds in 1 week.
1038
+ */
1039
+ (constants.secondsInWeek = secondsInDay * 7);
1040
+
1041
+ /**
1042
+ * @constant
1043
+ * @name secondsInYear
1044
+ * @summary Seconds in 1 year.
1045
+ */
1046
+ const secondsInYear = (constants.secondsInYear = secondsInDay * daysInYear);
1047
+
1048
+ /**
1049
+ * @constant
1050
+ * @name secondsInMonth
1051
+ * @summary Seconds in 1 month
1052
+ */
1053
+ const secondsInMonth = (constants.secondsInMonth = secondsInYear / 12);
1054
+
1055
+ /**
1056
+ * @constant
1057
+ * @name secondsInQuarter
1058
+ * @summary Seconds in 1 quarter.
1059
+ */
1060
+ (constants.secondsInQuarter = secondsInMonth * 3);
1061
+
1062
+ /**
1063
+ * @constant
1064
+ * @name constructFromSymbol
1065
+ * @summary Symbol enabling Date extensions to inherit properties from the reference date.
1066
+ *
1067
+ * The symbol is used to enable the `constructFrom` function to construct a date
1068
+ * using a reference date and a value. It allows to transfer extra properties
1069
+ * from the reference date to the new date. It's useful for extensions like
1070
+ * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
1071
+ * a constructor argument.
1072
+ */
1073
+ (constants.constructFromSymbol =
1074
+ Symbol.for("constructDateFrom"));
1075
+ return constants;
1076
+ }
1077
+
1078
+ var hasRequiredConstructFrom;
1079
+
1080
+ function requireConstructFrom () {
1081
+ if (hasRequiredConstructFrom) return constructFrom;
1082
+ hasRequiredConstructFrom = 1;
1083
+ constructFrom.constructFrom = constructFrom$1;
1084
+ var _index = /*@__PURE__*/ requireConstants();
1085
+
1086
+ /**
1087
+ * @name constructFrom
1088
+ * @category Generic Helpers
1089
+ * @summary Constructs a date using the reference date and the value
1090
+ *
1091
+ * @description
1092
+ * The function constructs a new date using the constructor from the reference
1093
+ * date and the given value. It helps to build generic functions that accept
1094
+ * date extensions.
1095
+ *
1096
+ * It defaults to `Date` if the passed reference date is a number or a string.
1097
+ *
1098
+ * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]`
1099
+ * enabling to transfer extra properties from the reference date to the new date.
1100
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
1101
+ * that accept a time zone as a constructor argument.
1102
+ *
1103
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1104
+ *
1105
+ * @param date - The reference date to take constructor from
1106
+ * @param value - The value to create the date
1107
+ *
1108
+ * @returns Date initialized using the given date and value
1109
+ *
1110
+ * @example
1111
+ * import { constructFrom } from "date-fns";
1112
+ *
1113
+ * // A function that clones a date preserving the original type
1114
+ * function cloneDate<DateType extends Date>(date: DateType): DateType {
1115
+ * return constructFrom(
1116
+ * date, // Use constructor from the given date
1117
+ * date.getTime() // Use the date value to create a new date
1118
+ * );
1119
+ * }
1120
+ */
1121
+ function constructFrom$1(date, value) {
1122
+ if (typeof date === "function") return date(value);
1123
+
1124
+ if (date && typeof date === "object" && _index.constructFromSymbol in date)
1125
+ return date[_index.constructFromSymbol](value);
1126
+
1127
+ if (date instanceof Date) return new date.constructor(value);
1128
+
1129
+ return new Date(value);
1130
+ }
1131
+ return constructFrom;
1132
+ }
1133
+
1134
+ var hasRequiredToDate;
1135
+
1136
+ function requireToDate () {
1137
+ if (hasRequiredToDate) return toDate;
1138
+ hasRequiredToDate = 1;
1139
+ toDate.toDate = toDate$1;
1140
+ var _index = /*@__PURE__*/ requireConstructFrom();
1141
+
1142
+ /**
1143
+ * @name toDate
1144
+ * @category Common Helpers
1145
+ * @summary Convert the given argument to an instance of Date.
1146
+ *
1147
+ * @description
1148
+ * Convert the given argument to an instance of Date.
1149
+ *
1150
+ * If the argument is an instance of Date, the function returns its clone.
1151
+ *
1152
+ * If the argument is a number, it is treated as a timestamp.
1153
+ *
1154
+ * If the argument is none of the above, the function returns Invalid Date.
1155
+ *
1156
+ * Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
1157
+ * enabling to transfer extra properties from the reference date to the new date.
1158
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
1159
+ * that accept a time zone as a constructor argument.
1160
+ *
1161
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
1162
+ *
1163
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1164
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1165
+ *
1166
+ * @param argument - The value to convert
1167
+ *
1168
+ * @returns The parsed date in the local time zone
1169
+ *
1170
+ * @example
1171
+ * // Clone the date:
1172
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
1173
+ * //=> Tue Feb 11 2014 11:30:30
1174
+ *
1175
+ * @example
1176
+ * // Convert the timestamp to date:
1177
+ * const result = toDate(1392098430000)
1178
+ * //=> Tue Feb 11 2014 11:30:30
1179
+ */
1180
+ function toDate$1(argument, context) {
1181
+ // [TODO] Get rid of `toDate` or `constructFrom`?
1182
+ return (0, _index.constructFrom)(context || argument, argument);
1183
+ }
1184
+ return toDate;
1185
+ }
1186
+
1187
+ var hasRequiredGetTimezoneOffsetInMilliseconds;
1188
+
1189
+ function requireGetTimezoneOffsetInMilliseconds () {
1190
+ if (hasRequiredGetTimezoneOffsetInMilliseconds) return getTimezoneOffsetInMilliseconds;
1191
+ hasRequiredGetTimezoneOffsetInMilliseconds = 1;
1192
+ getTimezoneOffsetInMilliseconds.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds$1;
1193
+ var _index = /*@__PURE__*/ requireToDate();
1194
+
1195
+ /**
1196
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
1197
+ * They usually appear for dates that denote time before the timezones were introduced
1198
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
1199
+ * and GMT+01:00:00 after that date)
1200
+ *
1201
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
1202
+ * which would lead to incorrect calculations.
1203
+ *
1204
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
1205
+ */
1206
+ function getTimezoneOffsetInMilliseconds$1(date) {
1207
+ const _date = (0, _index.toDate)(date);
1208
+ const utcDate = new Date(
1209
+ Date.UTC(
1210
+ _date.getFullYear(),
1211
+ _date.getMonth(),
1212
+ _date.getDate(),
1213
+ _date.getHours(),
1214
+ _date.getMinutes(),
1215
+ _date.getSeconds(),
1216
+ _date.getMilliseconds(),
1217
+ ),
1218
+ );
1219
+ utcDate.setUTCFullYear(_date.getFullYear());
1220
+ return +date - +utcDate;
1221
+ }
1222
+ return getTimezoneOffsetInMilliseconds;
1223
+ }
1224
+
1225
+ var normalizeDates = {};
1226
+
1227
+ var hasRequiredNormalizeDates;
1228
+
1229
+ function requireNormalizeDates () {
1230
+ if (hasRequiredNormalizeDates) return normalizeDates;
1231
+ hasRequiredNormalizeDates = 1;
1232
+ normalizeDates.normalizeDates = normalizeDates$1;
1233
+ var _index = /*@__PURE__*/ requireConstructFrom();
1234
+
1235
+ function normalizeDates$1(context, ...dates) {
1236
+ const normalize = _index.constructFrom.bind(
1237
+ null,
1238
+ context || dates.find((date) => typeof date === "object"),
1239
+ );
1240
+ return dates.map(normalize);
1241
+ }
1242
+ return normalizeDates;
1243
+ }
1244
+
1245
+ var startOfDay = {};
1246
+
1247
+ var hasRequiredStartOfDay;
1248
+
1249
+ function requireStartOfDay () {
1250
+ if (hasRequiredStartOfDay) return startOfDay;
1251
+ hasRequiredStartOfDay = 1;
1252
+ startOfDay.startOfDay = startOfDay$1;
1253
+ var _index = /*@__PURE__*/ requireToDate();
1254
+
1255
+ /**
1256
+ * The {@link startOfDay} function options.
1257
+ */
1258
+
1259
+ /**
1260
+ * @name startOfDay
1261
+ * @category Day Helpers
1262
+ * @summary Return the start of a day for the given date.
1263
+ *
1264
+ * @description
1265
+ * Return the start of a day for the given date.
1266
+ * The result will be in the local timezone.
1267
+ *
1268
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1269
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1270
+ *
1271
+ * @param date - The original date
1272
+ * @param options - The options
1273
+ *
1274
+ * @returns The start of a day
1275
+ *
1276
+ * @example
1277
+ * // The start of a day for 2 September 2014 11:55:00:
1278
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
1279
+ * //=> Tue Sep 02 2014 00:00:00
1280
+ */
1281
+ function startOfDay$1(date, options) {
1282
+ const _date = (0, _index.toDate)(date, options?.in);
1283
+ _date.setHours(0, 0, 0, 0);
1284
+ return _date;
1285
+ }
1286
+ return startOfDay;
1287
+ }
1288
+
1289
+ var hasRequiredDifferenceInCalendarDays;
1290
+
1291
+ function requireDifferenceInCalendarDays () {
1292
+ if (hasRequiredDifferenceInCalendarDays) return differenceInCalendarDays;
1293
+ hasRequiredDifferenceInCalendarDays = 1;
1294
+ differenceInCalendarDays.differenceInCalendarDays = differenceInCalendarDays$1;
1295
+ var _index = /*@__PURE__*/ requireGetTimezoneOffsetInMilliseconds();
1296
+ var _index2 = /*@__PURE__*/ requireNormalizeDates();
1297
+ var _index3 = /*@__PURE__*/ requireConstants();
1298
+ var _index4 = /*@__PURE__*/ requireStartOfDay();
1299
+
1300
+ /**
1301
+ * The {@link differenceInCalendarDays} function options.
1302
+ */
1303
+
1304
+ /**
1305
+ * @name differenceInCalendarDays
1306
+ * @category Day Helpers
1307
+ * @summary Get the number of calendar days between the given dates.
1308
+ *
1309
+ * @description
1310
+ * Get the number of calendar days between the given dates. This means that the times are removed
1311
+ * from the dates and then the difference in days is calculated.
1312
+ *
1313
+ * @param laterDate - The later date
1314
+ * @param earlierDate - The earlier date
1315
+ * @param options - The options object
1316
+ *
1317
+ * @returns The number of calendar days
1318
+ *
1319
+ * @example
1320
+ * // How many calendar days are between
1321
+ * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
1322
+ * const result = differenceInCalendarDays(
1323
+ * new Date(2012, 6, 2, 0, 0),
1324
+ * new Date(2011, 6, 2, 23, 0)
1325
+ * )
1326
+ * //=> 366
1327
+ * // How many calendar days are between
1328
+ * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
1329
+ * const result = differenceInCalendarDays(
1330
+ * new Date(2011, 6, 3, 0, 1),
1331
+ * new Date(2011, 6, 2, 23, 59)
1332
+ * )
1333
+ * //=> 1
1334
+ */
1335
+ function differenceInCalendarDays$1(laterDate, earlierDate, options) {
1336
+ const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)(
1337
+ options?.in,
1338
+ laterDate,
1339
+ earlierDate,
1340
+ );
1341
+
1342
+ const laterStartOfDay = (0, _index4.startOfDay)(laterDate_);
1343
+ const earlierStartOfDay = (0, _index4.startOfDay)(earlierDate_);
1344
+
1345
+ const laterTimestamp =
1346
+ +laterStartOfDay -
1347
+ (0, _index.getTimezoneOffsetInMilliseconds)(laterStartOfDay);
1348
+ const earlierTimestamp =
1349
+ +earlierStartOfDay -
1350
+ (0, _index.getTimezoneOffsetInMilliseconds)(earlierStartOfDay);
1351
+
1352
+ // Round the number of days to the nearest integer because the number of
1353
+ // milliseconds in a day is not constant (e.g. it's different in the week of
1354
+ // the daylight saving time clock shift).
1355
+ return Math.round(
1356
+ (laterTimestamp - earlierTimestamp) / _index3.millisecondsInDay,
1357
+ );
1358
+ }
1359
+ return differenceInCalendarDays;
1360
+ }
1361
+
1362
+ var startOfYear = {};
1363
+
1364
+ var hasRequiredStartOfYear;
1365
+
1366
+ function requireStartOfYear () {
1367
+ if (hasRequiredStartOfYear) return startOfYear;
1368
+ hasRequiredStartOfYear = 1;
1369
+ startOfYear.startOfYear = startOfYear$1;
1370
+ var _index = /*@__PURE__*/ requireToDate();
1371
+
1372
+ /**
1373
+ * The {@link startOfYear} function options.
1374
+ */
1375
+
1376
+ /**
1377
+ * @name startOfYear
1378
+ * @category Year Helpers
1379
+ * @summary Return the start of a year for the given date.
1380
+ *
1381
+ * @description
1382
+ * Return the start of a year for the given date.
1383
+ * The result will be in the local timezone.
1384
+ *
1385
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1386
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1387
+ *
1388
+ * @param date - The original date
1389
+ * @param options - The options
1390
+ *
1391
+ * @returns The start of a year
1392
+ *
1393
+ * @example
1394
+ * // The start of a year for 2 September 2014 11:55:00:
1395
+ * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
1396
+ * //=> Wed Jan 01 2014 00:00:00
1397
+ */
1398
+ function startOfYear$1(date, options) {
1399
+ const date_ = (0, _index.toDate)(date, options?.in);
1400
+ date_.setFullYear(date_.getFullYear(), 0, 1);
1401
+ date_.setHours(0, 0, 0, 0);
1402
+ return date_;
1403
+ }
1404
+ return startOfYear;
1405
+ }
1406
+
1407
+ var hasRequiredGetDayOfYear;
1408
+
1409
+ function requireGetDayOfYear () {
1410
+ if (hasRequiredGetDayOfYear) return getDayOfYear;
1411
+ hasRequiredGetDayOfYear = 1;
1412
+ getDayOfYear.getDayOfYear = getDayOfYear$1;
1413
+ var _index = /*@__PURE__*/ requireDifferenceInCalendarDays();
1414
+ var _index2 = /*@__PURE__*/ requireStartOfYear();
1415
+ var _index3 = /*@__PURE__*/ requireToDate();
1416
+
1417
+ /**
1418
+ * The {@link getDayOfYear} function options.
1419
+ */
1420
+
1421
+ /**
1422
+ * @name getDayOfYear
1423
+ * @category Day Helpers
1424
+ * @summary Get the day of the year of the given date.
1425
+ *
1426
+ * @description
1427
+ * Get the day of the year of the given date.
1428
+ *
1429
+ * @param date - The given date
1430
+ * @param options - The options
1431
+ *
1432
+ * @returns The day of year
1433
+ *
1434
+ * @example
1435
+ * // Which day of the year is 2 July 2014?
1436
+ * const result = getDayOfYear(new Date(2014, 6, 2))
1437
+ * //=> 183
1438
+ */
1439
+ function getDayOfYear$1(date, options) {
1440
+ const _date = (0, _index3.toDate)(date, options?.in);
1441
+ const diff = (0, _index.differenceInCalendarDays)(
1442
+ _date,
1443
+ (0, _index2.startOfYear)(_date),
1444
+ );
1445
+ const dayOfYear = diff + 1;
1446
+ return dayOfYear;
1447
+ }
1448
+ return getDayOfYear;
1449
+ }
1450
+
1451
+ var getISOWeek = {};
1452
+
1453
+ var startOfISOWeek = {};
1454
+
1455
+ var startOfWeek = {};
1456
+
1457
+ var hasRequiredStartOfWeek;
1458
+
1459
+ function requireStartOfWeek () {
1460
+ if (hasRequiredStartOfWeek) return startOfWeek;
1461
+ hasRequiredStartOfWeek = 1;
1462
+ startOfWeek.startOfWeek = startOfWeek$1;
1463
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1464
+ var _index2 = /*@__PURE__*/ requireToDate();
1465
+
1466
+ /**
1467
+ * The {@link startOfWeek} function options.
1468
+ */
1469
+
1470
+ /**
1471
+ * @name startOfWeek
1472
+ * @category Week Helpers
1473
+ * @summary Return the start of a week for the given date.
1474
+ *
1475
+ * @description
1476
+ * Return the start of a week for the given date.
1477
+ * The result will be in the local timezone.
1478
+ *
1479
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1480
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1481
+ *
1482
+ * @param date - The original date
1483
+ * @param options - An object with options
1484
+ *
1485
+ * @returns The start of a week
1486
+ *
1487
+ * @example
1488
+ * // The start of a week for 2 September 2014 11:55:00:
1489
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
1490
+ * //=> Sun Aug 31 2014 00:00:00
1491
+ *
1492
+ * @example
1493
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
1494
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
1495
+ * //=> Mon Sep 01 2014 00:00:00
1496
+ */
1497
+ function startOfWeek$1(date, options) {
1498
+ const defaultOptions = (0, _index.getDefaultOptions)();
1499
+ const weekStartsOn =
1500
+ options?.weekStartsOn ??
1501
+ options?.locale?.options?.weekStartsOn ??
1502
+ defaultOptions.weekStartsOn ??
1503
+ defaultOptions.locale?.options?.weekStartsOn ??
1504
+ 0;
1505
+
1506
+ const _date = (0, _index2.toDate)(date, options?.in);
1507
+ const day = _date.getDay();
1508
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
1509
+
1510
+ _date.setDate(_date.getDate() - diff);
1511
+ _date.setHours(0, 0, 0, 0);
1512
+ return _date;
1513
+ }
1514
+ return startOfWeek;
1515
+ }
1516
+
1517
+ var hasRequiredStartOfISOWeek;
1518
+
1519
+ function requireStartOfISOWeek () {
1520
+ if (hasRequiredStartOfISOWeek) return startOfISOWeek;
1521
+ hasRequiredStartOfISOWeek = 1;
1522
+ startOfISOWeek.startOfISOWeek = startOfISOWeek$1;
1523
+ var _index = /*@__PURE__*/ requireStartOfWeek();
1524
+
1525
+ /**
1526
+ * The {@link startOfISOWeek} function options.
1527
+ */
1528
+
1529
+ /**
1530
+ * @name startOfISOWeek
1531
+ * @category ISO Week Helpers
1532
+ * @summary Return the start of an ISO week for the given date.
1533
+ *
1534
+ * @description
1535
+ * Return the start of an ISO week for the given date.
1536
+ * The result will be in the local timezone.
1537
+ *
1538
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1539
+ *
1540
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1541
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1542
+ *
1543
+ * @param date - The original date
1544
+ * @param options - An object with options
1545
+ *
1546
+ * @returns The start of an ISO week
1547
+ *
1548
+ * @example
1549
+ * // The start of an ISO week for 2 September 2014 11:55:00:
1550
+ * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
1551
+ * //=> Mon Sep 01 2014 00:00:00
1552
+ */
1553
+ function startOfISOWeek$1(date, options) {
1554
+ return (0, _index.startOfWeek)(date, { ...options, weekStartsOn: 1 });
1555
+ }
1556
+ return startOfISOWeek;
1557
+ }
1558
+
1559
+ var startOfISOWeekYear = {};
1560
+
1561
+ var getISOWeekYear = {};
1562
+
1563
+ var hasRequiredGetISOWeekYear;
1564
+
1565
+ function requireGetISOWeekYear () {
1566
+ if (hasRequiredGetISOWeekYear) return getISOWeekYear;
1567
+ hasRequiredGetISOWeekYear = 1;
1568
+ getISOWeekYear.getISOWeekYear = getISOWeekYear$1;
1569
+ var _index = /*@__PURE__*/ requireConstructFrom();
1570
+ var _index2 = /*@__PURE__*/ requireStartOfISOWeek();
1571
+ var _index3 = /*@__PURE__*/ requireToDate();
1572
+
1573
+ /**
1574
+ * The {@link getISOWeekYear} function options.
1575
+ */
1576
+
1577
+ /**
1578
+ * @name getISOWeekYear
1579
+ * @category ISO Week-Numbering Year Helpers
1580
+ * @summary Get the ISO week-numbering year of the given date.
1581
+ *
1582
+ * @description
1583
+ * Get the ISO week-numbering year of the given date,
1584
+ * which always starts 3 days before the year's first Thursday.
1585
+ *
1586
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1587
+ *
1588
+ * @param date - The given date
1589
+ *
1590
+ * @returns The ISO week-numbering year
1591
+ *
1592
+ * @example
1593
+ * // Which ISO-week numbering year is 2 January 2005?
1594
+ * const result = getISOWeekYear(new Date(2005, 0, 2))
1595
+ * //=> 2004
1596
+ */
1597
+ function getISOWeekYear$1(date, options) {
1598
+ const _date = (0, _index3.toDate)(date, options?.in);
1599
+ const year = _date.getFullYear();
1600
+
1601
+ const fourthOfJanuaryOfNextYear = (0, _index.constructFrom)(_date, 0);
1602
+ fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
1603
+ fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
1604
+ const startOfNextYear = (0, _index2.startOfISOWeek)(
1605
+ fourthOfJanuaryOfNextYear,
1606
+ );
1607
+
1608
+ const fourthOfJanuaryOfThisYear = (0, _index.constructFrom)(_date, 0);
1609
+ fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
1610
+ fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
1611
+ const startOfThisYear = (0, _index2.startOfISOWeek)(
1612
+ fourthOfJanuaryOfThisYear,
1613
+ );
1614
+
1615
+ if (_date.getTime() >= startOfNextYear.getTime()) {
1616
+ return year + 1;
1617
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
1618
+ return year;
1619
+ } else {
1620
+ return year - 1;
1621
+ }
1622
+ }
1623
+ return getISOWeekYear;
1624
+ }
1625
+
1626
+ var hasRequiredStartOfISOWeekYear;
1627
+
1628
+ function requireStartOfISOWeekYear () {
1629
+ if (hasRequiredStartOfISOWeekYear) return startOfISOWeekYear;
1630
+ hasRequiredStartOfISOWeekYear = 1;
1631
+ startOfISOWeekYear.startOfISOWeekYear = startOfISOWeekYear$1;
1632
+ var _index = /*@__PURE__*/ requireConstructFrom();
1633
+ var _index2 = /*@__PURE__*/ requireGetISOWeekYear();
1634
+ var _index3 = /*@__PURE__*/ requireStartOfISOWeek();
1635
+
1636
+ /**
1637
+ * The {@link startOfISOWeekYear} function options.
1638
+ */
1639
+
1640
+ /**
1641
+ * @name startOfISOWeekYear
1642
+ * @category ISO Week-Numbering Year Helpers
1643
+ * @summary Return the start of an ISO week-numbering year for the given date.
1644
+ *
1645
+ * @description
1646
+ * Return the start of an ISO week-numbering year,
1647
+ * which always starts 3 days before the year's first Thursday.
1648
+ * The result will be in the local timezone.
1649
+ *
1650
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1651
+ *
1652
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1653
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1654
+ *
1655
+ * @param date - The original date
1656
+ * @param options - An object with options
1657
+ *
1658
+ * @returns The start of an ISO week-numbering year
1659
+ *
1660
+ * @example
1661
+ * // The start of an ISO week-numbering year for 2 July 2005:
1662
+ * const result = startOfISOWeekYear(new Date(2005, 6, 2))
1663
+ * //=> Mon Jan 03 2005 00:00:00
1664
+ */
1665
+ function startOfISOWeekYear$1(date, options) {
1666
+ const year = (0, _index2.getISOWeekYear)(date, options);
1667
+ const fourthOfJanuary = (0, _index.constructFrom)(options?.in || date, 0);
1668
+ fourthOfJanuary.setFullYear(year, 0, 4);
1669
+ fourthOfJanuary.setHours(0, 0, 0, 0);
1670
+ return (0, _index3.startOfISOWeek)(fourthOfJanuary);
1671
+ }
1672
+ return startOfISOWeekYear;
1673
+ }
1674
+
1675
+ var hasRequiredGetISOWeek;
1676
+
1677
+ function requireGetISOWeek () {
1678
+ if (hasRequiredGetISOWeek) return getISOWeek;
1679
+ hasRequiredGetISOWeek = 1;
1680
+ getISOWeek.getISOWeek = getISOWeek$1;
1681
+ var _index = /*@__PURE__*/ requireConstants();
1682
+ var _index2 = /*@__PURE__*/ requireStartOfISOWeek();
1683
+ var _index3 = /*@__PURE__*/ requireStartOfISOWeekYear();
1684
+ var _index4 = /*@__PURE__*/ requireToDate();
1685
+
1686
+ /**
1687
+ * The {@link getISOWeek} function options.
1688
+ */
1689
+
1690
+ /**
1691
+ * @name getISOWeek
1692
+ * @category ISO Week Helpers
1693
+ * @summary Get the ISO week of the given date.
1694
+ *
1695
+ * @description
1696
+ * Get the ISO week of the given date.
1697
+ *
1698
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1699
+ *
1700
+ * @param date - The given date
1701
+ * @param options - The options
1702
+ *
1703
+ * @returns The ISO week
1704
+ *
1705
+ * @example
1706
+ * // Which week of the ISO-week numbering year is 2 January 2005?
1707
+ * const result = getISOWeek(new Date(2005, 0, 2))
1708
+ * //=> 53
1709
+ */
1710
+ function getISOWeek$1(date, options) {
1711
+ const _date = (0, _index4.toDate)(date, options?.in);
1712
+ const diff =
1713
+ +(0, _index2.startOfISOWeek)(_date) -
1714
+ +(0, _index3.startOfISOWeekYear)(_date);
1715
+
1716
+ // Round the number of weeks to the nearest integer because the number of
1717
+ // milliseconds in a week is not constant (e.g. it's different in the week of
1718
+ // the daylight saving time clock shift).
1719
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
1720
+ }
1721
+ return getISOWeek;
1722
+ }
1723
+
1724
+ var getWeek = {};
1725
+
1726
+ var startOfWeekYear = {};
1727
+
1728
+ var getWeekYear = {};
1729
+
1730
+ var hasRequiredGetWeekYear;
1731
+
1732
+ function requireGetWeekYear () {
1733
+ if (hasRequiredGetWeekYear) return getWeekYear;
1734
+ hasRequiredGetWeekYear = 1;
1735
+ getWeekYear.getWeekYear = getWeekYear$1;
1736
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1737
+ var _index2 = /*@__PURE__*/ requireConstructFrom();
1738
+ var _index3 = /*@__PURE__*/ requireStartOfWeek();
1739
+ var _index4 = /*@__PURE__*/ requireToDate();
1740
+
1741
+ /**
1742
+ * The {@link getWeekYear} function options.
1743
+ */
1744
+
1745
+ /**
1746
+ * @name getWeekYear
1747
+ * @category Week-Numbering Year Helpers
1748
+ * @summary Get the local week-numbering year of the given date.
1749
+ *
1750
+ * @description
1751
+ * Get the local week-numbering year of the given date.
1752
+ * The exact calculation depends on the values of
1753
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1754
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1755
+ * the first week of the week-numbering year)
1756
+ *
1757
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1758
+ *
1759
+ * @param date - The given date
1760
+ * @param options - An object with options.
1761
+ *
1762
+ * @returns The local week-numbering year
1763
+ *
1764
+ * @example
1765
+ * // Which week numbering year is 26 December 2004 with the default settings?
1766
+ * const result = getWeekYear(new Date(2004, 11, 26))
1767
+ * //=> 2005
1768
+ *
1769
+ * @example
1770
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
1771
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
1772
+ * //=> 2004
1773
+ *
1774
+ * @example
1775
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
1776
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
1777
+ * //=> 2004
1778
+ */
1779
+ function getWeekYear$1(date, options) {
1780
+ const _date = (0, _index4.toDate)(date, options?.in);
1781
+ const year = _date.getFullYear();
1782
+
1783
+ const defaultOptions = (0, _index.getDefaultOptions)();
1784
+ const firstWeekContainsDate =
1785
+ options?.firstWeekContainsDate ??
1786
+ options?.locale?.options?.firstWeekContainsDate ??
1787
+ defaultOptions.firstWeekContainsDate ??
1788
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
1789
+ 1;
1790
+
1791
+ const firstWeekOfNextYear = (0, _index2.constructFrom)(
1792
+ options?.in || date,
1793
+ 0,
1794
+ );
1795
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
1796
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
1797
+ const startOfNextYear = (0, _index3.startOfWeek)(
1798
+ firstWeekOfNextYear,
1799
+ options,
1800
+ );
1801
+
1802
+ const firstWeekOfThisYear = (0, _index2.constructFrom)(
1803
+ options?.in || date,
1804
+ 0,
1805
+ );
1806
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
1807
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
1808
+ const startOfThisYear = (0, _index3.startOfWeek)(
1809
+ firstWeekOfThisYear,
1810
+ options,
1811
+ );
1812
+
1813
+ if (+_date >= +startOfNextYear) {
1814
+ return year + 1;
1815
+ } else if (+_date >= +startOfThisYear) {
1816
+ return year;
1817
+ } else {
1818
+ return year - 1;
1819
+ }
1820
+ }
1821
+ return getWeekYear;
1822
+ }
1823
+
1824
+ var hasRequiredStartOfWeekYear;
1825
+
1826
+ function requireStartOfWeekYear () {
1827
+ if (hasRequiredStartOfWeekYear) return startOfWeekYear;
1828
+ hasRequiredStartOfWeekYear = 1;
1829
+ startOfWeekYear.startOfWeekYear = startOfWeekYear$1;
1830
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1831
+ var _index2 = /*@__PURE__*/ requireConstructFrom();
1832
+ var _index3 = /*@__PURE__*/ requireGetWeekYear();
1833
+ var _index4 = /*@__PURE__*/ requireStartOfWeek();
1834
+
1835
+ /**
1836
+ * The {@link startOfWeekYear} function options.
1837
+ */
1838
+
1839
+ /**
1840
+ * @name startOfWeekYear
1841
+ * @category Week-Numbering Year Helpers
1842
+ * @summary Return the start of a local week-numbering year for the given date.
1843
+ *
1844
+ * @description
1845
+ * Return the start of a local week-numbering year.
1846
+ * The exact calculation depends on the values of
1847
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1848
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1849
+ * the first week of the week-numbering year)
1850
+ *
1851
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1852
+ *
1853
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1854
+ * @typeParam ResultDate - The result `Date` type.
1855
+ *
1856
+ * @param date - The original date
1857
+ * @param options - An object with options
1858
+ *
1859
+ * @returns The start of a week-numbering year
1860
+ *
1861
+ * @example
1862
+ * // The start of an a week-numbering year for 2 July 2005 with default settings:
1863
+ * const result = startOfWeekYear(new Date(2005, 6, 2))
1864
+ * //=> Sun Dec 26 2004 00:00:00
1865
+ *
1866
+ * @example
1867
+ * // The start of a week-numbering year for 2 July 2005
1868
+ * // if Monday is the first day of week
1869
+ * // and 4 January is always in the first week of the year:
1870
+ * const result = startOfWeekYear(new Date(2005, 6, 2), {
1871
+ * weekStartsOn: 1,
1872
+ * firstWeekContainsDate: 4
1873
+ * })
1874
+ * //=> Mon Jan 03 2005 00:00:00
1875
+ */
1876
+ function startOfWeekYear$1(date, options) {
1877
+ const defaultOptions = (0, _index.getDefaultOptions)();
1878
+ const firstWeekContainsDate =
1879
+ options?.firstWeekContainsDate ??
1880
+ options?.locale?.options?.firstWeekContainsDate ??
1881
+ defaultOptions.firstWeekContainsDate ??
1882
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
1883
+ 1;
1884
+
1885
+ const year = (0, _index3.getWeekYear)(date, options);
1886
+ const firstWeek = (0, _index2.constructFrom)(options?.in || date, 0);
1887
+ firstWeek.setFullYear(year, 0, firstWeekContainsDate);
1888
+ firstWeek.setHours(0, 0, 0, 0);
1889
+ const _date = (0, _index4.startOfWeek)(firstWeek, options);
1890
+ return _date;
1891
+ }
1892
+ return startOfWeekYear;
1893
+ }
1894
+
1895
+ var hasRequiredGetWeek;
1896
+
1897
+ function requireGetWeek () {
1898
+ if (hasRequiredGetWeek) return getWeek;
1899
+ hasRequiredGetWeek = 1;
1900
+ getWeek.getWeek = getWeek$1;
1901
+ var _index = /*@__PURE__*/ requireConstants();
1902
+ var _index2 = /*@__PURE__*/ requireStartOfWeek();
1903
+ var _index3 = /*@__PURE__*/ requireStartOfWeekYear();
1904
+ var _index4 = /*@__PURE__*/ requireToDate();
1905
+
1906
+ /**
1907
+ * The {@link getWeek} function options.
1908
+ */
1909
+
1910
+ /**
1911
+ * @name getWeek
1912
+ * @category Week Helpers
1913
+ * @summary Get the local week index of the given date.
1914
+ *
1915
+ * @description
1916
+ * Get the local week index of the given date.
1917
+ * The exact calculation depends on the values of
1918
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1919
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1920
+ * the first week of the week-numbering year)
1921
+ *
1922
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1923
+ *
1924
+ * @param date - The given date
1925
+ * @param options - An object with options
1926
+ *
1927
+ * @returns The week
1928
+ *
1929
+ * @example
1930
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
1931
+ * const result = getWeek(new Date(2005, 0, 2))
1932
+ * //=> 2
1933
+ *
1934
+ * @example
1935
+ * // Which week of the local week numbering year is 2 January 2005,
1936
+ * // if Monday is the first day of the week,
1937
+ * // and the first week of the year always contains 4 January?
1938
+ * const result = getWeek(new Date(2005, 0, 2), {
1939
+ * weekStartsOn: 1,
1940
+ * firstWeekContainsDate: 4
1941
+ * })
1942
+ * //=> 53
1943
+ */
1944
+ function getWeek$1(date, options) {
1945
+ const _date = (0, _index4.toDate)(date, options?.in);
1946
+ const diff =
1947
+ +(0, _index2.startOfWeek)(_date, options) -
1948
+ +(0, _index3.startOfWeekYear)(_date, options);
1949
+
1950
+ // Round the number of weeks to the nearest integer because the number of
1951
+ // milliseconds in a week is not constant (e.g. it's different in the week of
1952
+ // the daylight saving time clock shift).
1953
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
1954
+ }
1955
+ return getWeek;
1956
+ }
1957
+
1958
+ var addLeadingZeros = {};
1959
+
1960
+ var hasRequiredAddLeadingZeros;
1961
+
1962
+ function requireAddLeadingZeros () {
1963
+ if (hasRequiredAddLeadingZeros) return addLeadingZeros;
1964
+ hasRequiredAddLeadingZeros = 1;
1965
+ addLeadingZeros.addLeadingZeros = addLeadingZeros$1;
1966
+ function addLeadingZeros$1(number, targetLength) {
1967
+ const sign = number < 0 ? "-" : "";
1968
+ const output = Math.abs(number).toString().padStart(targetLength, "0");
1969
+ return sign + output;
1970
+ }
1971
+ return addLeadingZeros;
1972
+ }
1973
+
1974
+ var lightFormatters = {};
1975
+
1976
+ var hasRequiredLightFormatters;
1977
+
1978
+ function requireLightFormatters () {
1979
+ if (hasRequiredLightFormatters) return lightFormatters;
1980
+ hasRequiredLightFormatters = 1;
1981
+ lightFormatters.lightFormatters = void 0;
1982
+ var _index = /*@__PURE__*/ requireAddLeadingZeros();
1983
+
1984
+ /*
1985
+ * | | Unit | | Unit |
1986
+ * |-----|--------------------------------|-----|--------------------------------|
1987
+ * | a | AM, PM | A* | |
1988
+ * | d | Day of month | D | |
1989
+ * | h | Hour [1-12] | H | Hour [0-23] |
1990
+ * | m | Minute | M | Month |
1991
+ * | s | Second | S | Fraction of second |
1992
+ * | y | Year (abs) | Y | |
1993
+ *
1994
+ * Letters marked by * are not implemented but reserved by Unicode standard.
1995
+ */
1996
+
1997
+ (lightFormatters.lightFormatters = {
1998
+ // Year
1999
+ y(date, token) {
2000
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
2001
+ // | Year | y | yy | yyy | yyyy | yyyyy |
2002
+ // |----------|-------|----|-------|-------|-------|
2003
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
2004
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
2005
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
2006
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
2007
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
2008
+
2009
+ const signedYear = date.getFullYear();
2010
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2011
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
2012
+ return (0, _index.addLeadingZeros)(
2013
+ token === "yy" ? year % 100 : year,
2014
+ token.length,
2015
+ );
2016
+ },
2017
+
2018
+ // Month
2019
+ M(date, token) {
2020
+ const month = date.getMonth();
2021
+ return token === "M"
2022
+ ? String(month + 1)
2023
+ : (0, _index.addLeadingZeros)(month + 1, 2);
2024
+ },
2025
+
2026
+ // Day of the month
2027
+ d(date, token) {
2028
+ return (0, _index.addLeadingZeros)(date.getDate(), token.length);
2029
+ },
2030
+
2031
+ // AM or PM
2032
+ a(date, token) {
2033
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
2034
+
2035
+ switch (token) {
2036
+ case "a":
2037
+ case "aa":
2038
+ return dayPeriodEnumValue.toUpperCase();
2039
+ case "aaa":
2040
+ return dayPeriodEnumValue;
2041
+ case "aaaaa":
2042
+ return dayPeriodEnumValue[0];
2043
+ case "aaaa":
2044
+ default:
2045
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
2046
+ }
2047
+ },
2048
+
2049
+ // Hour [1-12]
2050
+ h(date, token) {
2051
+ return (0, _index.addLeadingZeros)(
2052
+ date.getHours() % 12 || 12,
2053
+ token.length,
2054
+ );
2055
+ },
2056
+
2057
+ // Hour [0-23]
2058
+ H(date, token) {
2059
+ return (0, _index.addLeadingZeros)(date.getHours(), token.length);
2060
+ },
2061
+
2062
+ // Minute
2063
+ m(date, token) {
2064
+ return (0, _index.addLeadingZeros)(date.getMinutes(), token.length);
2065
+ },
2066
+
2067
+ // Second
2068
+ s(date, token) {
2069
+ return (0, _index.addLeadingZeros)(date.getSeconds(), token.length);
2070
+ },
2071
+
2072
+ // Fraction of second
2073
+ S(date, token) {
2074
+ const numberOfDigits = token.length;
2075
+ const milliseconds = date.getMilliseconds();
2076
+ const fractionalSeconds = Math.trunc(
2077
+ milliseconds * Math.pow(10, numberOfDigits - 3),
2078
+ );
2079
+ return (0, _index.addLeadingZeros)(fractionalSeconds, token.length);
2080
+ },
2081
+ });
2082
+ return lightFormatters;
2083
+ }
2084
+
2085
+ var hasRequiredFormatters;
2086
+
2087
+ function requireFormatters () {
2088
+ if (hasRequiredFormatters) return formatters;
2089
+ hasRequiredFormatters = 1;
2090
+ formatters.formatters = void 0;
2091
+ var _index = /*@__PURE__*/ requireGetDayOfYear();
2092
+ var _index2 = /*@__PURE__*/ requireGetISOWeek();
2093
+ var _index3 = /*@__PURE__*/ requireGetISOWeekYear();
2094
+ var _index4 = /*@__PURE__*/ requireGetWeek();
2095
+ var _index5 = /*@__PURE__*/ requireGetWeekYear();
2096
+
2097
+ var _index6 = /*@__PURE__*/ requireAddLeadingZeros();
2098
+ var _index7 = /*@__PURE__*/ requireLightFormatters();
2099
+
2100
+ const dayPeriodEnum = {
2101
+ midnight: "midnight",
2102
+ noon: "noon",
2103
+ morning: "morning",
2104
+ afternoon: "afternoon",
2105
+ evening: "evening",
2106
+ night: "night",
2107
+ };
2108
+
2109
+ /*
2110
+ * | | Unit | | Unit |
2111
+ * |-----|--------------------------------|-----|--------------------------------|
2112
+ * | a | AM, PM | A* | Milliseconds in day |
2113
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
2114
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
2115
+ * | d | Day of month | D | Day of year |
2116
+ * | e | Local day of week | E | Day of week |
2117
+ * | f | | F* | Day of week in month |
2118
+ * | g* | Modified Julian day | G | Era |
2119
+ * | h | Hour [1-12] | H | Hour [0-23] |
2120
+ * | i! | ISO day of week | I! | ISO week of year |
2121
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
2122
+ * | k | Hour [1-24] | K | Hour [0-11] |
2123
+ * | l* | (deprecated) | L | Stand-alone month |
2124
+ * | m | Minute | M | Month |
2125
+ * | n | | N | |
2126
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
2127
+ * | p! | Long localized time | P! | Long localized date |
2128
+ * | q | Stand-alone quarter | Q | Quarter |
2129
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
2130
+ * | s | Second | S | Fraction of second |
2131
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
2132
+ * | u | Extended year | U* | Cyclic year |
2133
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
2134
+ * | w | Local week of year | W* | Week of month |
2135
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
2136
+ * | y | Year (abs) | Y | Local week-numbering year |
2137
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
2138
+ *
2139
+ * Letters marked by * are not implemented but reserved by Unicode standard.
2140
+ *
2141
+ * Letters marked by ! are non-standard, but implemented by date-fns:
2142
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
2143
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
2144
+ * i.e. 7 for Sunday, 1 for Monday, etc.
2145
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
2146
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
2147
+ * `R` is supposed to be used in conjunction with `I` and `i`
2148
+ * for universal ISO week-numbering date, whereas
2149
+ * `Y` is supposed to be used in conjunction with `w` and `e`
2150
+ * for week-numbering date specific to the locale.
2151
+ * - `P` is long localized date format
2152
+ * - `p` is long localized time format
2153
+ */
2154
+
2155
+ (formatters.formatters = {
2156
+ // Era
2157
+ G: function (date, token, localize) {
2158
+ const era = date.getFullYear() > 0 ? 1 : 0;
2159
+ switch (token) {
2160
+ // AD, BC
2161
+ case "G":
2162
+ case "GG":
2163
+ case "GGG":
2164
+ return localize.era(era, { width: "abbreviated" });
2165
+ // A, B
2166
+ case "GGGGG":
2167
+ return localize.era(era, { width: "narrow" });
2168
+ // Anno Domini, Before Christ
2169
+ case "GGGG":
2170
+ default:
2171
+ return localize.era(era, { width: "wide" });
2172
+ }
2173
+ },
2174
+
2175
+ // Year
2176
+ y: function (date, token, localize) {
2177
+ // Ordinal number
2178
+ if (token === "yo") {
2179
+ const signedYear = date.getFullYear();
2180
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2181
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
2182
+ return localize.ordinalNumber(year, { unit: "year" });
2183
+ }
2184
+
2185
+ return _index7.lightFormatters.y(date, token);
2186
+ },
2187
+
2188
+ // Local week-numbering year
2189
+ Y: function (date, token, localize, options) {
2190
+ const signedWeekYear = (0, _index5.getWeekYear)(date, options);
2191
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2192
+ const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
2193
+
2194
+ // Two digit year
2195
+ if (token === "YY") {
2196
+ const twoDigitYear = weekYear % 100;
2197
+ return (0, _index6.addLeadingZeros)(twoDigitYear, 2);
2198
+ }
2199
+
2200
+ // Ordinal number
2201
+ if (token === "Yo") {
2202
+ return localize.ordinalNumber(weekYear, { unit: "year" });
2203
+ }
2204
+
2205
+ // Padding
2206
+ return (0, _index6.addLeadingZeros)(weekYear, token.length);
2207
+ },
2208
+
2209
+ // ISO week-numbering year
2210
+ R: function (date, token) {
2211
+ const isoWeekYear = (0, _index3.getISOWeekYear)(date);
2212
+
2213
+ // Padding
2214
+ return (0, _index6.addLeadingZeros)(isoWeekYear, token.length);
2215
+ },
2216
+
2217
+ // Extended year. This is a single number designating the year of this calendar system.
2218
+ // The main difference between `y` and `u` localizers are B.C. years:
2219
+ // | Year | `y` | `u` |
2220
+ // |------|-----|-----|
2221
+ // | AC 1 | 1 | 1 |
2222
+ // | BC 1 | 1 | 0 |
2223
+ // | BC 2 | 2 | -1 |
2224
+ // Also `yy` always returns the last two digits of a year,
2225
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
2226
+ u: function (date, token) {
2227
+ const year = date.getFullYear();
2228
+ return (0, _index6.addLeadingZeros)(year, token.length);
2229
+ },
2230
+
2231
+ // Quarter
2232
+ Q: function (date, token, localize) {
2233
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
2234
+ switch (token) {
2235
+ // 1, 2, 3, 4
2236
+ case "Q":
2237
+ return String(quarter);
2238
+ // 01, 02, 03, 04
2239
+ case "QQ":
2240
+ return (0, _index6.addLeadingZeros)(quarter, 2);
2241
+ // 1st, 2nd, 3rd, 4th
2242
+ case "Qo":
2243
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
2244
+ // Q1, Q2, Q3, Q4
2245
+ case "QQQ":
2246
+ return localize.quarter(quarter, {
2247
+ width: "abbreviated",
2248
+ context: "formatting",
2249
+ });
2250
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2251
+ case "QQQQQ":
2252
+ return localize.quarter(quarter, {
2253
+ width: "narrow",
2254
+ context: "formatting",
2255
+ });
2256
+ // 1st quarter, 2nd quarter, ...
2257
+ case "QQQQ":
2258
+ default:
2259
+ return localize.quarter(quarter, {
2260
+ width: "wide",
2261
+ context: "formatting",
2262
+ });
2263
+ }
2264
+ },
2265
+
2266
+ // Stand-alone quarter
2267
+ q: function (date, token, localize) {
2268
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
2269
+ switch (token) {
2270
+ // 1, 2, 3, 4
2271
+ case "q":
2272
+ return String(quarter);
2273
+ // 01, 02, 03, 04
2274
+ case "qq":
2275
+ return (0, _index6.addLeadingZeros)(quarter, 2);
2276
+ // 1st, 2nd, 3rd, 4th
2277
+ case "qo":
2278
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
2279
+ // Q1, Q2, Q3, Q4
2280
+ case "qqq":
2281
+ return localize.quarter(quarter, {
2282
+ width: "abbreviated",
2283
+ context: "standalone",
2284
+ });
2285
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2286
+ case "qqqqq":
2287
+ return localize.quarter(quarter, {
2288
+ width: "narrow",
2289
+ context: "standalone",
2290
+ });
2291
+ // 1st quarter, 2nd quarter, ...
2292
+ case "qqqq":
2293
+ default:
2294
+ return localize.quarter(quarter, {
2295
+ width: "wide",
2296
+ context: "standalone",
2297
+ });
2298
+ }
2299
+ },
2300
+
2301
+ // Month
2302
+ M: function (date, token, localize) {
2303
+ const month = date.getMonth();
2304
+ switch (token) {
2305
+ case "M":
2306
+ case "MM":
2307
+ return _index7.lightFormatters.M(date, token);
2308
+ // 1st, 2nd, ..., 12th
2309
+ case "Mo":
2310
+ return localize.ordinalNumber(month + 1, { unit: "month" });
2311
+ // Jan, Feb, ..., Dec
2312
+ case "MMM":
2313
+ return localize.month(month, {
2314
+ width: "abbreviated",
2315
+ context: "formatting",
2316
+ });
2317
+ // J, F, ..., D
2318
+ case "MMMMM":
2319
+ return localize.month(month, {
2320
+ width: "narrow",
2321
+ context: "formatting",
2322
+ });
2323
+ // January, February, ..., December
2324
+ case "MMMM":
2325
+ default:
2326
+ return localize.month(month, { width: "wide", context: "formatting" });
2327
+ }
2328
+ },
2329
+
2330
+ // Stand-alone month
2331
+ L: function (date, token, localize) {
2332
+ const month = date.getMonth();
2333
+ switch (token) {
2334
+ // 1, 2, ..., 12
2335
+ case "L":
2336
+ return String(month + 1);
2337
+ // 01, 02, ..., 12
2338
+ case "LL":
2339
+ return (0, _index6.addLeadingZeros)(month + 1, 2);
2340
+ // 1st, 2nd, ..., 12th
2341
+ case "Lo":
2342
+ return localize.ordinalNumber(month + 1, { unit: "month" });
2343
+ // Jan, Feb, ..., Dec
2344
+ case "LLL":
2345
+ return localize.month(month, {
2346
+ width: "abbreviated",
2347
+ context: "standalone",
2348
+ });
2349
+ // J, F, ..., D
2350
+ case "LLLLL":
2351
+ return localize.month(month, {
2352
+ width: "narrow",
2353
+ context: "standalone",
2354
+ });
2355
+ // January, February, ..., December
2356
+ case "LLLL":
2357
+ default:
2358
+ return localize.month(month, { width: "wide", context: "standalone" });
2359
+ }
2360
+ },
2361
+
2362
+ // Local week of year
2363
+ w: function (date, token, localize, options) {
2364
+ const week = (0, _index4.getWeek)(date, options);
2365
+
2366
+ if (token === "wo") {
2367
+ return localize.ordinalNumber(week, { unit: "week" });
2368
+ }
2369
+
2370
+ return (0, _index6.addLeadingZeros)(week, token.length);
2371
+ },
2372
+
2373
+ // ISO week of year
2374
+ I: function (date, token, localize) {
2375
+ const isoWeek = (0, _index2.getISOWeek)(date);
2376
+
2377
+ if (token === "Io") {
2378
+ return localize.ordinalNumber(isoWeek, { unit: "week" });
2379
+ }
2380
+
2381
+ return (0, _index6.addLeadingZeros)(isoWeek, token.length);
2382
+ },
2383
+
2384
+ // Day of the month
2385
+ d: function (date, token, localize) {
2386
+ if (token === "do") {
2387
+ return localize.ordinalNumber(date.getDate(), { unit: "date" });
2388
+ }
2389
+
2390
+ return _index7.lightFormatters.d(date, token);
2391
+ },
2392
+
2393
+ // Day of year
2394
+ D: function (date, token, localize) {
2395
+ const dayOfYear = (0, _index.getDayOfYear)(date);
2396
+
2397
+ if (token === "Do") {
2398
+ return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
2399
+ }
2400
+
2401
+ return (0, _index6.addLeadingZeros)(dayOfYear, token.length);
2402
+ },
2403
+
2404
+ // Day of week
2405
+ E: function (date, token, localize) {
2406
+ const dayOfWeek = date.getDay();
2407
+ switch (token) {
2408
+ // Tue
2409
+ case "E":
2410
+ case "EE":
2411
+ case "EEE":
2412
+ return localize.day(dayOfWeek, {
2413
+ width: "abbreviated",
2414
+ context: "formatting",
2415
+ });
2416
+ // T
2417
+ case "EEEEE":
2418
+ return localize.day(dayOfWeek, {
2419
+ width: "narrow",
2420
+ context: "formatting",
2421
+ });
2422
+ // Tu
2423
+ case "EEEEEE":
2424
+ return localize.day(dayOfWeek, {
2425
+ width: "short",
2426
+ context: "formatting",
2427
+ });
2428
+ // Tuesday
2429
+ case "EEEE":
2430
+ default:
2431
+ return localize.day(dayOfWeek, {
2432
+ width: "wide",
2433
+ context: "formatting",
2434
+ });
2435
+ }
2436
+ },
2437
+
2438
+ // Local day of week
2439
+ e: function (date, token, localize, options) {
2440
+ const dayOfWeek = date.getDay();
2441
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2442
+ switch (token) {
2443
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
2444
+ case "e":
2445
+ return String(localDayOfWeek);
2446
+ // Padded numerical value
2447
+ case "ee":
2448
+ return (0, _index6.addLeadingZeros)(localDayOfWeek, 2);
2449
+ // 1st, 2nd, ..., 7th
2450
+ case "eo":
2451
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2452
+ case "eee":
2453
+ return localize.day(dayOfWeek, {
2454
+ width: "abbreviated",
2455
+ context: "formatting",
2456
+ });
2457
+ // T
2458
+ case "eeeee":
2459
+ return localize.day(dayOfWeek, {
2460
+ width: "narrow",
2461
+ context: "formatting",
2462
+ });
2463
+ // Tu
2464
+ case "eeeeee":
2465
+ return localize.day(dayOfWeek, {
2466
+ width: "short",
2467
+ context: "formatting",
2468
+ });
2469
+ // Tuesday
2470
+ case "eeee":
2471
+ default:
2472
+ return localize.day(dayOfWeek, {
2473
+ width: "wide",
2474
+ context: "formatting",
2475
+ });
2476
+ }
2477
+ },
2478
+
2479
+ // Stand-alone local day of week
2480
+ c: function (date, token, localize, options) {
2481
+ const dayOfWeek = date.getDay();
2482
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2483
+ switch (token) {
2484
+ // Numerical value (same as in `e`)
2485
+ case "c":
2486
+ return String(localDayOfWeek);
2487
+ // Padded numerical value
2488
+ case "cc":
2489
+ return (0, _index6.addLeadingZeros)(localDayOfWeek, token.length);
2490
+ // 1st, 2nd, ..., 7th
2491
+ case "co":
2492
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2493
+ case "ccc":
2494
+ return localize.day(dayOfWeek, {
2495
+ width: "abbreviated",
2496
+ context: "standalone",
2497
+ });
2498
+ // T
2499
+ case "ccccc":
2500
+ return localize.day(dayOfWeek, {
2501
+ width: "narrow",
2502
+ context: "standalone",
2503
+ });
2504
+ // Tu
2505
+ case "cccccc":
2506
+ return localize.day(dayOfWeek, {
2507
+ width: "short",
2508
+ context: "standalone",
2509
+ });
2510
+ // Tuesday
2511
+ case "cccc":
2512
+ default:
2513
+ return localize.day(dayOfWeek, {
2514
+ width: "wide",
2515
+ context: "standalone",
2516
+ });
2517
+ }
2518
+ },
2519
+
2520
+ // ISO day of week
2521
+ i: function (date, token, localize) {
2522
+ const dayOfWeek = date.getDay();
2523
+ const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
2524
+ switch (token) {
2525
+ // 2
2526
+ case "i":
2527
+ return String(isoDayOfWeek);
2528
+ // 02
2529
+ case "ii":
2530
+ return (0, _index6.addLeadingZeros)(isoDayOfWeek, token.length);
2531
+ // 2nd
2532
+ case "io":
2533
+ return localize.ordinalNumber(isoDayOfWeek, { unit: "day" });
2534
+ // Tue
2535
+ case "iii":
2536
+ return localize.day(dayOfWeek, {
2537
+ width: "abbreviated",
2538
+ context: "formatting",
2539
+ });
2540
+ // T
2541
+ case "iiiii":
2542
+ return localize.day(dayOfWeek, {
2543
+ width: "narrow",
2544
+ context: "formatting",
2545
+ });
2546
+ // Tu
2547
+ case "iiiiii":
2548
+ return localize.day(dayOfWeek, {
2549
+ width: "short",
2550
+ context: "formatting",
2551
+ });
2552
+ // Tuesday
2553
+ case "iiii":
2554
+ default:
2555
+ return localize.day(dayOfWeek, {
2556
+ width: "wide",
2557
+ context: "formatting",
2558
+ });
2559
+ }
2560
+ },
2561
+
2562
+ // AM or PM
2563
+ a: function (date, token, localize) {
2564
+ const hours = date.getHours();
2565
+ const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2566
+
2567
+ switch (token) {
2568
+ case "a":
2569
+ case "aa":
2570
+ return localize.dayPeriod(dayPeriodEnumValue, {
2571
+ width: "abbreviated",
2572
+ context: "formatting",
2573
+ });
2574
+ case "aaa":
2575
+ return localize
2576
+ .dayPeriod(dayPeriodEnumValue, {
2577
+ width: "abbreviated",
2578
+ context: "formatting",
2579
+ })
2580
+ .toLowerCase();
2581
+ case "aaaaa":
2582
+ return localize.dayPeriod(dayPeriodEnumValue, {
2583
+ width: "narrow",
2584
+ context: "formatting",
2585
+ });
2586
+ case "aaaa":
2587
+ default:
2588
+ return localize.dayPeriod(dayPeriodEnumValue, {
2589
+ width: "wide",
2590
+ context: "formatting",
2591
+ });
2592
+ }
2593
+ },
2594
+
2595
+ // AM, PM, midnight, noon
2596
+ b: function (date, token, localize) {
2597
+ const hours = date.getHours();
2598
+ let dayPeriodEnumValue;
2599
+ if (hours === 12) {
2600
+ dayPeriodEnumValue = dayPeriodEnum.noon;
2601
+ } else if (hours === 0) {
2602
+ dayPeriodEnumValue = dayPeriodEnum.midnight;
2603
+ } else {
2604
+ dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2605
+ }
2606
+
2607
+ switch (token) {
2608
+ case "b":
2609
+ case "bb":
2610
+ return localize.dayPeriod(dayPeriodEnumValue, {
2611
+ width: "abbreviated",
2612
+ context: "formatting",
2613
+ });
2614
+ case "bbb":
2615
+ return localize
2616
+ .dayPeriod(dayPeriodEnumValue, {
2617
+ width: "abbreviated",
2618
+ context: "formatting",
2619
+ })
2620
+ .toLowerCase();
2621
+ case "bbbbb":
2622
+ return localize.dayPeriod(dayPeriodEnumValue, {
2623
+ width: "narrow",
2624
+ context: "formatting",
2625
+ });
2626
+ case "bbbb":
2627
+ default:
2628
+ return localize.dayPeriod(dayPeriodEnumValue, {
2629
+ width: "wide",
2630
+ context: "formatting",
2631
+ });
2632
+ }
2633
+ },
2634
+
2635
+ // in the morning, in the afternoon, in the evening, at night
2636
+ B: function (date, token, localize) {
2637
+ const hours = date.getHours();
2638
+ let dayPeriodEnumValue;
2639
+ if (hours >= 17) {
2640
+ dayPeriodEnumValue = dayPeriodEnum.evening;
2641
+ } else if (hours >= 12) {
2642
+ dayPeriodEnumValue = dayPeriodEnum.afternoon;
2643
+ } else if (hours >= 4) {
2644
+ dayPeriodEnumValue = dayPeriodEnum.morning;
2645
+ } else {
2646
+ dayPeriodEnumValue = dayPeriodEnum.night;
2647
+ }
2648
+
2649
+ switch (token) {
2650
+ case "B":
2651
+ case "BB":
2652
+ case "BBB":
2653
+ return localize.dayPeriod(dayPeriodEnumValue, {
2654
+ width: "abbreviated",
2655
+ context: "formatting",
2656
+ });
2657
+ case "BBBBB":
2658
+ return localize.dayPeriod(dayPeriodEnumValue, {
2659
+ width: "narrow",
2660
+ context: "formatting",
2661
+ });
2662
+ case "BBBB":
2663
+ default:
2664
+ return localize.dayPeriod(dayPeriodEnumValue, {
2665
+ width: "wide",
2666
+ context: "formatting",
2667
+ });
2668
+ }
2669
+ },
2670
+
2671
+ // Hour [1-12]
2672
+ h: function (date, token, localize) {
2673
+ if (token === "ho") {
2674
+ let hours = date.getHours() % 12;
2675
+ if (hours === 0) hours = 12;
2676
+ return localize.ordinalNumber(hours, { unit: "hour" });
2677
+ }
2678
+
2679
+ return _index7.lightFormatters.h(date, token);
2680
+ },
2681
+
2682
+ // Hour [0-23]
2683
+ H: function (date, token, localize) {
2684
+ if (token === "Ho") {
2685
+ return localize.ordinalNumber(date.getHours(), { unit: "hour" });
2686
+ }
2687
+
2688
+ return _index7.lightFormatters.H(date, token);
2689
+ },
2690
+
2691
+ // Hour [0-11]
2692
+ K: function (date, token, localize) {
2693
+ const hours = date.getHours() % 12;
2694
+
2695
+ if (token === "Ko") {
2696
+ return localize.ordinalNumber(hours, { unit: "hour" });
2697
+ }
2698
+
2699
+ return (0, _index6.addLeadingZeros)(hours, token.length);
2700
+ },
2701
+
2702
+ // Hour [1-24]
2703
+ k: function (date, token, localize) {
2704
+ let hours = date.getHours();
2705
+ if (hours === 0) hours = 24;
2706
+
2707
+ if (token === "ko") {
2708
+ return localize.ordinalNumber(hours, { unit: "hour" });
2709
+ }
2710
+
2711
+ return (0, _index6.addLeadingZeros)(hours, token.length);
2712
+ },
2713
+
2714
+ // Minute
2715
+ m: function (date, token, localize) {
2716
+ if (token === "mo") {
2717
+ return localize.ordinalNumber(date.getMinutes(), { unit: "minute" });
2718
+ }
2719
+
2720
+ return _index7.lightFormatters.m(date, token);
2721
+ },
2722
+
2723
+ // Second
2724
+ s: function (date, token, localize) {
2725
+ if (token === "so") {
2726
+ return localize.ordinalNumber(date.getSeconds(), { unit: "second" });
2727
+ }
2728
+
2729
+ return _index7.lightFormatters.s(date, token);
2730
+ },
2731
+
2732
+ // Fraction of second
2733
+ S: function (date, token) {
2734
+ return _index7.lightFormatters.S(date, token);
2735
+ },
2736
+
2737
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2738
+ X: function (date, token, _localize) {
2739
+ const timezoneOffset = date.getTimezoneOffset();
2740
+
2741
+ if (timezoneOffset === 0) {
2742
+ return "Z";
2743
+ }
2744
+
2745
+ switch (token) {
2746
+ // Hours and optional minutes
2747
+ case "X":
2748
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
2749
+
2750
+ // Hours, minutes and optional seconds without `:` delimiter
2751
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2752
+ // so this token always has the same output as `XX`
2753
+ case "XXXX":
2754
+ case "XX": // Hours and minutes without `:` delimiter
2755
+ return formatTimezone(timezoneOffset);
2756
+
2757
+ // Hours, minutes and optional seconds with `:` delimiter
2758
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2759
+ // so this token always has the same output as `XXX`
2760
+ case "XXXXX":
2761
+ case "XXX": // Hours and minutes with `:` delimiter
2762
+ default:
2763
+ return formatTimezone(timezoneOffset, ":");
2764
+ }
2765
+ },
2766
+
2767
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
2768
+ x: function (date, token, _localize) {
2769
+ const timezoneOffset = date.getTimezoneOffset();
2770
+
2771
+ switch (token) {
2772
+ // Hours and optional minutes
2773
+ case "x":
2774
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
2775
+
2776
+ // Hours, minutes and optional seconds without `:` delimiter
2777
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2778
+ // so this token always has the same output as `xx`
2779
+ case "xxxx":
2780
+ case "xx": // Hours and minutes without `:` delimiter
2781
+ return formatTimezone(timezoneOffset);
2782
+
2783
+ // Hours, minutes and optional seconds with `:` delimiter
2784
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2785
+ // so this token always has the same output as `xxx`
2786
+ case "xxxxx":
2787
+ case "xxx": // Hours and minutes with `:` delimiter
2788
+ default:
2789
+ return formatTimezone(timezoneOffset, ":");
2790
+ }
2791
+ },
2792
+
2793
+ // Timezone (GMT)
2794
+ O: function (date, token, _localize) {
2795
+ const timezoneOffset = date.getTimezoneOffset();
2796
+
2797
+ switch (token) {
2798
+ // Short
2799
+ case "O":
2800
+ case "OO":
2801
+ case "OOO":
2802
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2803
+ // Long
2804
+ case "OOOO":
2805
+ default:
2806
+ return "GMT" + formatTimezone(timezoneOffset, ":");
2807
+ }
2808
+ },
2809
+
2810
+ // Timezone (specific non-location)
2811
+ z: function (date, token, _localize) {
2812
+ const timezoneOffset = date.getTimezoneOffset();
2813
+
2814
+ switch (token) {
2815
+ // Short
2816
+ case "z":
2817
+ case "zz":
2818
+ case "zzz":
2819
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2820
+ // Long
2821
+ case "zzzz":
2822
+ default:
2823
+ return "GMT" + formatTimezone(timezoneOffset, ":");
2824
+ }
2825
+ },
2826
+
2827
+ // Seconds timestamp
2828
+ t: function (date, token, _localize) {
2829
+ const timestamp = Math.trunc(+date / 1000);
2830
+ return (0, _index6.addLeadingZeros)(timestamp, token.length);
2831
+ },
2832
+
2833
+ // Milliseconds timestamp
2834
+ T: function (date, token, _localize) {
2835
+ return (0, _index6.addLeadingZeros)(+date, token.length);
2836
+ },
2837
+ });
2838
+
2839
+ function formatTimezoneShort(offset, delimiter = "") {
2840
+ const sign = offset > 0 ? "-" : "+";
2841
+ const absOffset = Math.abs(offset);
2842
+ const hours = Math.trunc(absOffset / 60);
2843
+ const minutes = absOffset % 60;
2844
+ if (minutes === 0) {
2845
+ return sign + String(hours);
2846
+ }
2847
+ return (
2848
+ sign + String(hours) + delimiter + (0, _index6.addLeadingZeros)(minutes, 2)
2849
+ );
2850
+ }
2851
+
2852
+ function formatTimezoneWithOptionalMinutes(offset, delimiter) {
2853
+ if (offset % 60 === 0) {
2854
+ const sign = offset > 0 ? "-" : "+";
2855
+ return sign + (0, _index6.addLeadingZeros)(Math.abs(offset) / 60, 2);
2856
+ }
2857
+ return formatTimezone(offset, delimiter);
2858
+ }
2859
+
2860
+ function formatTimezone(offset, delimiter = "") {
2861
+ const sign = offset > 0 ? "-" : "+";
2862
+ const absOffset = Math.abs(offset);
2863
+ const hours = (0, _index6.addLeadingZeros)(Math.trunc(absOffset / 60), 2);
2864
+ const minutes = (0, _index6.addLeadingZeros)(absOffset % 60, 2);
2865
+ return sign + hours + delimiter + minutes;
2866
+ }
2867
+ return formatters;
2868
+ }
2869
+
2870
+ var longFormatters = {};
2871
+
2872
+ var hasRequiredLongFormatters;
2873
+
2874
+ function requireLongFormatters () {
2875
+ if (hasRequiredLongFormatters) return longFormatters;
2876
+ hasRequiredLongFormatters = 1;
2877
+ longFormatters.longFormatters = void 0;
2878
+
2879
+ const dateLongFormatter = (pattern, formatLong) => {
2880
+ switch (pattern) {
2881
+ case "P":
2882
+ return formatLong.date({ width: "short" });
2883
+ case "PP":
2884
+ return formatLong.date({ width: "medium" });
2885
+ case "PPP":
2886
+ return formatLong.date({ width: "long" });
2887
+ case "PPPP":
2888
+ default:
2889
+ return formatLong.date({ width: "full" });
2890
+ }
2891
+ };
2892
+
2893
+ const timeLongFormatter = (pattern, formatLong) => {
2894
+ switch (pattern) {
2895
+ case "p":
2896
+ return formatLong.time({ width: "short" });
2897
+ case "pp":
2898
+ return formatLong.time({ width: "medium" });
2899
+ case "ppp":
2900
+ return formatLong.time({ width: "long" });
2901
+ case "pppp":
2902
+ default:
2903
+ return formatLong.time({ width: "full" });
2904
+ }
2905
+ };
2906
+
2907
+ const dateTimeLongFormatter = (pattern, formatLong) => {
2908
+ const matchResult = pattern.match(/(P+)(p+)?/) || [];
2909
+ const datePattern = matchResult[1];
2910
+ const timePattern = matchResult[2];
2911
+
2912
+ if (!timePattern) {
2913
+ return dateLongFormatter(pattern, formatLong);
2914
+ }
2915
+
2916
+ let dateTimeFormat;
2917
+
2918
+ switch (datePattern) {
2919
+ case "P":
2920
+ dateTimeFormat = formatLong.dateTime({ width: "short" });
2921
+ break;
2922
+ case "PP":
2923
+ dateTimeFormat = formatLong.dateTime({ width: "medium" });
2924
+ break;
2925
+ case "PPP":
2926
+ dateTimeFormat = formatLong.dateTime({ width: "long" });
2927
+ break;
2928
+ case "PPPP":
2929
+ default:
2930
+ dateTimeFormat = formatLong.dateTime({ width: "full" });
2931
+ break;
2932
+ }
2933
+
2934
+ return dateTimeFormat
2935
+ .replace("{{date}}", dateLongFormatter(datePattern, formatLong))
2936
+ .replace("{{time}}", timeLongFormatter(timePattern, formatLong));
2937
+ };
2938
+
2939
+ (longFormatters.longFormatters = {
2940
+ p: timeLongFormatter,
2941
+ P: dateTimeLongFormatter,
2942
+ });
2943
+ return longFormatters;
2944
+ }
2945
+
2946
+ var protectedTokens = {};
2947
+
2948
+ var hasRequiredProtectedTokens;
2949
+
2950
+ function requireProtectedTokens () {
2951
+ if (hasRequiredProtectedTokens) return protectedTokens;
2952
+ hasRequiredProtectedTokens = 1;
2953
+ protectedTokens.isProtectedDayOfYearToken = isProtectedDayOfYearToken;
2954
+ protectedTokens.isProtectedWeekYearToken = isProtectedWeekYearToken;
2955
+ protectedTokens.warnOrThrowProtectedError = warnOrThrowProtectedError;
2956
+ const dayOfYearTokenRE = /^D+$/;
2957
+ const weekYearTokenRE = /^Y+$/;
2958
+
2959
+ const throwTokens = ["D", "DD", "YY", "YYYY"];
2960
+
2961
+ function isProtectedDayOfYearToken(token) {
2962
+ return dayOfYearTokenRE.test(token);
2963
+ }
2964
+
2965
+ function isProtectedWeekYearToken(token) {
2966
+ return weekYearTokenRE.test(token);
2967
+ }
2968
+
2969
+ function warnOrThrowProtectedError(token, format, input) {
2970
+ const _message = message(token, format, input);
2971
+ console.warn(_message);
2972
+ if (throwTokens.includes(token)) throw new RangeError(_message);
2973
+ }
2974
+
2975
+ function message(token, format, input) {
2976
+ const subject = token[0] === "Y" ? "years" : "days of the month";
2977
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2978
+ }
2979
+ return protectedTokens;
2980
+ }
2981
+
2982
+ var isValid = {};
2983
+
2984
+ var isDate = {};
2985
+
2986
+ var hasRequiredIsDate;
2987
+
2988
+ function requireIsDate () {
2989
+ if (hasRequiredIsDate) return isDate;
2990
+ hasRequiredIsDate = 1;
2991
+ isDate.isDate = isDate$1; /**
2992
+ * @name isDate
2993
+ * @category Common Helpers
2994
+ * @summary Is the given value a date?
2995
+ *
2996
+ * @description
2997
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
2998
+ *
2999
+ * @param value - The value to check
3000
+ *
3001
+ * @returns True if the given value is a date
3002
+ *
3003
+ * @example
3004
+ * // For a valid date:
3005
+ * const result = isDate(new Date())
3006
+ * //=> true
3007
+ *
3008
+ * @example
3009
+ * // For an invalid date:
3010
+ * const result = isDate(new Date(NaN))
3011
+ * //=> true
3012
+ *
3013
+ * @example
3014
+ * // For some value:
3015
+ * const result = isDate('2014-02-31')
3016
+ * //=> false
3017
+ *
3018
+ * @example
3019
+ * // For an object:
3020
+ * const result = isDate({})
3021
+ * //=> false
3022
+ */
3023
+ function isDate$1(value) {
3024
+ return (
3025
+ value instanceof Date ||
3026
+ (typeof value === "object" &&
3027
+ Object.prototype.toString.call(value) === "[object Date]")
3028
+ );
3029
+ }
3030
+ return isDate;
3031
+ }
3032
+
3033
+ var hasRequiredIsValid;
3034
+
3035
+ function requireIsValid () {
3036
+ if (hasRequiredIsValid) return isValid;
3037
+ hasRequiredIsValid = 1;
3038
+ isValid.isValid = isValid$1;
3039
+ var _index = /*@__PURE__*/ requireIsDate();
3040
+ var _index2 = /*@__PURE__*/ requireToDate();
3041
+
3042
+ /**
3043
+ * @name isValid
3044
+ * @category Common Helpers
3045
+ * @summary Is the given date valid?
3046
+ *
3047
+ * @description
3048
+ * Returns false if argument is Invalid Date and true otherwise.
3049
+ * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
3050
+ * Invalid Date is a Date, whose time value is NaN.
3051
+ *
3052
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
3053
+ *
3054
+ * @param date - The date to check
3055
+ *
3056
+ * @returns The date is valid
3057
+ *
3058
+ * @example
3059
+ * // For the valid date:
3060
+ * const result = isValid(new Date(2014, 1, 31))
3061
+ * //=> true
3062
+ *
3063
+ * @example
3064
+ * // For the value, convertible into a date:
3065
+ * const result = isValid(1393804800000)
3066
+ * //=> true
3067
+ *
3068
+ * @example
3069
+ * // For the invalid date:
3070
+ * const result = isValid(new Date(''))
3071
+ * //=> false
3072
+ */
3073
+ function isValid$1(date) {
3074
+ return !(
3075
+ (!(0, _index.isDate)(date) && typeof date !== "number") ||
3076
+ isNaN(+(0, _index2.toDate)(date))
3077
+ );
3078
+ }
3079
+ return isValid;
3080
+ }
3081
+
3082
+ var hasRequiredFormat;
3083
+
3084
+ function requireFormat () {
3085
+ if (hasRequiredFormat) return format;
3086
+ hasRequiredFormat = 1;
3087
+ (function (exports) {
3088
+ exports.format = exports.formatDate = format;
3089
+ Object.defineProperty(exports, "formatters", {
3090
+ enumerable: true,
3091
+ get: function () {
3092
+ return _index3.formatters;
3093
+ },
3094
+ });
3095
+ Object.defineProperty(exports, "longFormatters", {
3096
+ enumerable: true,
3097
+ get: function () {
3098
+ return _index4.longFormatters;
3099
+ },
3100
+ });
3101
+ var _index = /*@__PURE__*/ requireDefaultLocale();
3102
+ var _index2 = /*@__PURE__*/ requireDefaultOptions();
3103
+ var _index3 = /*@__PURE__*/ requireFormatters();
3104
+ var _index4 = /*@__PURE__*/ requireLongFormatters();
3105
+ var _index5 = /*@__PURE__*/ requireProtectedTokens();
3106
+
3107
+ var _index6 = /*@__PURE__*/ requireIsValid();
3108
+ var _index7 = /*@__PURE__*/ requireToDate();
3109
+
3110
+ // Rexports of internal for libraries to use.
3111
+ // See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874
3112
+
3113
+ // This RegExp consists of three parts separated by `|`:
3114
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
3115
+ // (one of the certain letters followed by `o`)
3116
+ // - (\w)\1* matches any sequences of the same letter
3117
+ // - '' matches two quote characters in a row
3118
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
3119
+ // except a single quote symbol, which ends the sequence.
3120
+ // Two quote characters do not end the sequence.
3121
+ // If there is no matching single quote
3122
+ // then the sequence will continue until the end of the string.
3123
+ // - . matches any single character unmatched by previous parts of the RegExps
3124
+ const formattingTokensRegExp =
3125
+ /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
3126
+
3127
+ // This RegExp catches symbols escaped by quotes, and also
3128
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
3129
+ const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
3130
+
3131
+ const escapedStringRegExp = /^'([^]*?)'?$/;
3132
+ const doubleQuoteRegExp = /''/g;
3133
+ const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3134
+
3135
+ /**
3136
+ * The {@link format} function options.
3137
+ */
3138
+
3139
+ /**
3140
+ * @name format
3141
+ * @alias formatDate
3142
+ * @category Common Helpers
3143
+ * @summary Format the date.
3144
+ *
3145
+ * @description
3146
+ * Return the formatted date string in the given format. The result may vary by locale.
3147
+ *
3148
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
3149
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3150
+ *
3151
+ * The characters wrapped between two single quotes characters (') are escaped.
3152
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
3153
+ * (see the last example)
3154
+ *
3155
+ * Format of the string is based on Unicode Technical Standard #35:
3156
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
3157
+ * with a few additions (see note 7 below the table).
3158
+ *
3159
+ * Accepted patterns:
3160
+ * | Unit | Pattern | Result examples | Notes |
3161
+ * |---------------------------------|---------|-----------------------------------|-------|
3162
+ * | Era | G..GGG | AD, BC | |
3163
+ * | | GGGG | Anno Domini, Before Christ | 2 |
3164
+ * | | GGGGG | A, B | |
3165
+ * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
3166
+ * | | yo | 44th, 1st, 0th, 17th | 5,7 |
3167
+ * | | yy | 44, 01, 00, 17 | 5 |
3168
+ * | | yyy | 044, 001, 1900, 2017 | 5 |
3169
+ * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
3170
+ * | | yyyyy | ... | 3,5 |
3171
+ * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
3172
+ * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
3173
+ * | | YY | 44, 01, 00, 17 | 5,8 |
3174
+ * | | YYY | 044, 001, 1900, 2017 | 5 |
3175
+ * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
3176
+ * | | YYYYY | ... | 3,5 |
3177
+ * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
3178
+ * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
3179
+ * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
3180
+ * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
3181
+ * | | RRRRR | ... | 3,5,7 |
3182
+ * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
3183
+ * | | uu | -43, 01, 1900, 2017 | 5 |
3184
+ * | | uuu | -043, 001, 1900, 2017 | 5 |
3185
+ * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
3186
+ * | | uuuuu | ... | 3,5 |
3187
+ * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
3188
+ * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
3189
+ * | | QQ | 01, 02, 03, 04 | |
3190
+ * | | QQQ | Q1, Q2, Q3, Q4 | |
3191
+ * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
3192
+ * | | QQQQQ | 1, 2, 3, 4 | 4 |
3193
+ * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
3194
+ * | | qo | 1st, 2nd, 3rd, 4th | 7 |
3195
+ * | | qq | 01, 02, 03, 04 | |
3196
+ * | | qqq | Q1, Q2, Q3, Q4 | |
3197
+ * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
3198
+ * | | qqqqq | 1, 2, 3, 4 | 4 |
3199
+ * | Month (formatting) | M | 1, 2, ..., 12 | |
3200
+ * | | Mo | 1st, 2nd, ..., 12th | 7 |
3201
+ * | | MM | 01, 02, ..., 12 | |
3202
+ * | | MMM | Jan, Feb, ..., Dec | |
3203
+ * | | MMMM | January, February, ..., December | 2 |
3204
+ * | | MMMMM | J, F, ..., D | |
3205
+ * | Month (stand-alone) | L | 1, 2, ..., 12 | |
3206
+ * | | Lo | 1st, 2nd, ..., 12th | 7 |
3207
+ * | | LL | 01, 02, ..., 12 | |
3208
+ * | | LLL | Jan, Feb, ..., Dec | |
3209
+ * | | LLLL | January, February, ..., December | 2 |
3210
+ * | | LLLLL | J, F, ..., D | |
3211
+ * | Local week of year | w | 1, 2, ..., 53 | |
3212
+ * | | wo | 1st, 2nd, ..., 53th | 7 |
3213
+ * | | ww | 01, 02, ..., 53 | |
3214
+ * | ISO week of year | I | 1, 2, ..., 53 | 7 |
3215
+ * | | Io | 1st, 2nd, ..., 53th | 7 |
3216
+ * | | II | 01, 02, ..., 53 | 7 |
3217
+ * | Day of month | d | 1, 2, ..., 31 | |
3218
+ * | | do | 1st, 2nd, ..., 31st | 7 |
3219
+ * | | dd | 01, 02, ..., 31 | |
3220
+ * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
3221
+ * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
3222
+ * | | DD | 01, 02, ..., 365, 366 | 9 |
3223
+ * | | DDD | 001, 002, ..., 365, 366 | |
3224
+ * | | DDDD | ... | 3 |
3225
+ * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
3226
+ * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
3227
+ * | | EEEEE | M, T, W, T, F, S, S | |
3228
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
3229
+ * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
3230
+ * | | io | 1st, 2nd, ..., 7th | 7 |
3231
+ * | | ii | 01, 02, ..., 07 | 7 |
3232
+ * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
3233
+ * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
3234
+ * | | iiiii | M, T, W, T, F, S, S | 7 |
3235
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
3236
+ * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
3237
+ * | | eo | 2nd, 3rd, ..., 1st | 7 |
3238
+ * | | ee | 02, 03, ..., 01 | |
3239
+ * | | eee | Mon, Tue, Wed, ..., Sun | |
3240
+ * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
3241
+ * | | eeeee | M, T, W, T, F, S, S | |
3242
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
3243
+ * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
3244
+ * | | co | 2nd, 3rd, ..., 1st | 7 |
3245
+ * | | cc | 02, 03, ..., 01 | |
3246
+ * | | ccc | Mon, Tue, Wed, ..., Sun | |
3247
+ * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
3248
+ * | | ccccc | M, T, W, T, F, S, S | |
3249
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
3250
+ * | AM, PM | a..aa | AM, PM | |
3251
+ * | | aaa | am, pm | |
3252
+ * | | aaaa | a.m., p.m. | 2 |
3253
+ * | | aaaaa | a, p | |
3254
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
3255
+ * | | bbb | am, pm, noon, midnight | |
3256
+ * | | bbbb | a.m., p.m., noon, midnight | 2 |
3257
+ * | | bbbbb | a, p, n, mi | |
3258
+ * | Flexible day period | B..BBB | at night, in the morning, ... | |
3259
+ * | | BBBB | at night, in the morning, ... | 2 |
3260
+ * | | BBBBB | at night, in the morning, ... | |
3261
+ * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
3262
+ * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
3263
+ * | | hh | 01, 02, ..., 11, 12 | |
3264
+ * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
3265
+ * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
3266
+ * | | HH | 00, 01, 02, ..., 23 | |
3267
+ * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
3268
+ * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
3269
+ * | | KK | 01, 02, ..., 11, 00 | |
3270
+ * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
3271
+ * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
3272
+ * | | kk | 24, 01, 02, ..., 23 | |
3273
+ * | Minute | m | 0, 1, ..., 59 | |
3274
+ * | | mo | 0th, 1st, ..., 59th | 7 |
3275
+ * | | mm | 00, 01, ..., 59 | |
3276
+ * | Second | s | 0, 1, ..., 59 | |
3277
+ * | | so | 0th, 1st, ..., 59th | 7 |
3278
+ * | | ss | 00, 01, ..., 59 | |
3279
+ * | Fraction of second | S | 0, 1, ..., 9 | |
3280
+ * | | SS | 00, 01, ..., 99 | |
3281
+ * | | SSS | 000, 001, ..., 999 | |
3282
+ * | | SSSS | ... | 3 |
3283
+ * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
3284
+ * | | XX | -0800, +0530, Z | |
3285
+ * | | XXX | -08:00, +05:30, Z | |
3286
+ * | | XXXX | -0800, +0530, Z, +123456 | 2 |
3287
+ * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
3288
+ * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
3289
+ * | | xx | -0800, +0530, +0000 | |
3290
+ * | | xxx | -08:00, +05:30, +00:00 | 2 |
3291
+ * | | xxxx | -0800, +0530, +0000, +123456 | |
3292
+ * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
3293
+ * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
3294
+ * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
3295
+ * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
3296
+ * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
3297
+ * | Seconds timestamp | t | 512969520 | 7 |
3298
+ * | | tt | ... | 3,7 |
3299
+ * | Milliseconds timestamp | T | 512969520900 | 7 |
3300
+ * | | TT | ... | 3,7 |
3301
+ * | Long localized date | P | 04/29/1453 | 7 |
3302
+ * | | PP | Apr 29, 1453 | 7 |
3303
+ * | | PPP | April 29th, 1453 | 7 |
3304
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
3305
+ * | Long localized time | p | 12:00 AM | 7 |
3306
+ * | | pp | 12:00:00 AM | 7 |
3307
+ * | | ppp | 12:00:00 AM GMT+2 | 7 |
3308
+ * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
3309
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
3310
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
3311
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
3312
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
3313
+ * Notes:
3314
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
3315
+ * are the same as "stand-alone" units, but are different in some languages.
3316
+ * "Formatting" units are declined according to the rules of the language
3317
+ * in the context of a date. "Stand-alone" units are always nominative singular:
3318
+ *
3319
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
3320
+ *
3321
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
3322
+ *
3323
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
3324
+ * the single quote characters (see below).
3325
+ * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
3326
+ * the output will be the same as default pattern for this unit, usually
3327
+ * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
3328
+ * are marked with "2" in the last column of the table.
3329
+ *
3330
+ * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
3331
+ *
3332
+ * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
3333
+ *
3334
+ * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
3335
+ *
3336
+ * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
3337
+ *
3338
+ * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
3339
+ *
3340
+ * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
3341
+ * The output will be padded with zeros to match the length of the pattern.
3342
+ *
3343
+ * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
3344
+ *
3345
+ * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
3346
+ * These tokens represent the shortest form of the quarter.
3347
+ *
3348
+ * 5. The main difference between `y` and `u` patterns are B.C. years:
3349
+ *
3350
+ * | Year | `y` | `u` |
3351
+ * |------|-----|-----|
3352
+ * | AC 1 | 1 | 1 |
3353
+ * | BC 1 | 1 | 0 |
3354
+ * | BC 2 | 2 | -1 |
3355
+ *
3356
+ * Also `yy` always returns the last two digits of a year,
3357
+ * while `uu` pads single digit years to 2 characters and returns other years unchanged:
3358
+ *
3359
+ * | Year | `yy` | `uu` |
3360
+ * |------|------|------|
3361
+ * | 1 | 01 | 01 |
3362
+ * | 14 | 14 | 14 |
3363
+ * | 376 | 76 | 376 |
3364
+ * | 1453 | 53 | 1453 |
3365
+ *
3366
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
3367
+ * except local week-numbering years are dependent on `options.weekStartsOn`
3368
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)
3369
+ * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).
3370
+ *
3371
+ * 6. Specific non-location timezones are currently unavailable in `date-fns`,
3372
+ * so right now these tokens fall back to GMT timezones.
3373
+ *
3374
+ * 7. These patterns are not in the Unicode Technical Standard #35:
3375
+ * - `i`: ISO day of week
3376
+ * - `I`: ISO week of year
3377
+ * - `R`: ISO week-numbering year
3378
+ * - `t`: seconds timestamp
3379
+ * - `T`: milliseconds timestamp
3380
+ * - `o`: ordinal number modifier
3381
+ * - `P`: long localized date
3382
+ * - `p`: long localized time
3383
+ *
3384
+ * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
3385
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3386
+ *
3387
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
3388
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3389
+ *
3390
+ * @param date - The original date
3391
+ * @param format - The string of tokens
3392
+ * @param options - An object with options
3393
+ *
3394
+ * @returns The formatted date string
3395
+ *
3396
+ * @throws `date` must not be Invalid Date
3397
+ * @throws `options.locale` must contain `localize` property
3398
+ * @throws `options.locale` must contain `formatLong` property
3399
+ * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3400
+ * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3401
+ * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3402
+ * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3403
+ * @throws format string contains an unescaped latin alphabet character
3404
+ *
3405
+ * @example
3406
+ * // Represent 11 February 2014 in middle-endian format:
3407
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
3408
+ * //=> '02/11/2014'
3409
+ *
3410
+ * @example
3411
+ * // Represent 2 July 2014 in Esperanto:
3412
+ * import { eoLocale } from 'date-fns/locale/eo'
3413
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
3414
+ * locale: eoLocale
3415
+ * })
3416
+ * //=> '2-a de julio 2014'
3417
+ *
3418
+ * @example
3419
+ * // Escape string by single quote characters:
3420
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
3421
+ * //=> "3 o'clock"
3422
+ */
3423
+ function format(date, formatStr, options) {
3424
+ const defaultOptions = (0, _index2.getDefaultOptions)();
3425
+ const locale =
3426
+ options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;
3427
+
3428
+ const firstWeekContainsDate =
3429
+ options?.firstWeekContainsDate ??
3430
+ options?.locale?.options?.firstWeekContainsDate ??
3431
+ defaultOptions.firstWeekContainsDate ??
3432
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
3433
+ 1;
3434
+
3435
+ const weekStartsOn =
3436
+ options?.weekStartsOn ??
3437
+ options?.locale?.options?.weekStartsOn ??
3438
+ defaultOptions.weekStartsOn ??
3439
+ defaultOptions.locale?.options?.weekStartsOn ??
3440
+ 0;
3441
+
3442
+ const originalDate = (0, _index7.toDate)(date, options?.in);
3443
+
3444
+ if (!(0, _index6.isValid)(originalDate)) {
3445
+ throw new RangeError("Invalid time value");
3446
+ }
3447
+
3448
+ let parts = formatStr
3449
+ .match(longFormattingTokensRegExp)
3450
+ .map((substring) => {
3451
+ const firstCharacter = substring[0];
3452
+ if (firstCharacter === "p" || firstCharacter === "P") {
3453
+ const longFormatter = _index4.longFormatters[firstCharacter];
3454
+ return longFormatter(substring, locale.formatLong);
3455
+ }
3456
+ return substring;
3457
+ })
3458
+ .join("")
3459
+ .match(formattingTokensRegExp)
3460
+ .map((substring) => {
3461
+ // Replace two single quote characters with one single quote character
3462
+ if (substring === "''") {
3463
+ return { isToken: false, value: "'" };
3464
+ }
3465
+
3466
+ const firstCharacter = substring[0];
3467
+ if (firstCharacter === "'") {
3468
+ return { isToken: false, value: cleanEscapedString(substring) };
3469
+ }
3470
+
3471
+ if (_index3.formatters[firstCharacter]) {
3472
+ return { isToken: true, value: substring };
3473
+ }
3474
+
3475
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
3476
+ throw new RangeError(
3477
+ "Format string contains an unescaped latin alphabet character `" +
3478
+ firstCharacter +
3479
+ "`",
3480
+ );
3481
+ }
3482
+
3483
+ return { isToken: false, value: substring };
3484
+ });
3485
+
3486
+ // invoke localize preprocessor (only for french locales at the moment)
3487
+ if (locale.localize.preprocessor) {
3488
+ parts = locale.localize.preprocessor(originalDate, parts);
3489
+ }
3490
+
3491
+ const formatterOptions = {
3492
+ firstWeekContainsDate,
3493
+ weekStartsOn,
3494
+ locale,
3495
+ };
3496
+
3497
+ return parts
3498
+ .map((part) => {
3499
+ if (!part.isToken) return part.value;
3500
+
3501
+ const token = part.value;
3502
+
3503
+ if (
3504
+ (!options?.useAdditionalWeekYearTokens &&
3505
+ (0, _index5.isProtectedWeekYearToken)(token)) ||
3506
+ (!options?.useAdditionalDayOfYearTokens &&
3507
+ (0, _index5.isProtectedDayOfYearToken)(token))
3508
+ ) {
3509
+ (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));
3510
+ }
3511
+
3512
+ const formatter = _index3.formatters[token[0]];
3513
+ return formatter(originalDate, token, locale.localize, formatterOptions);
3514
+ })
3515
+ .join("");
3516
+ }
3517
+
3518
+ function cleanEscapedString(input) {
3519
+ const matched = input.match(escapedStringRegExp);
3520
+
3521
+ if (!matched) {
3522
+ return input;
3523
+ }
3524
+
3525
+ return matched[1].replace(doubleQuoteRegExp, "'");
3526
+ }
3527
+ } (format));
3528
+ return format;
3529
+ }
3530
+
3531
+ var formatExports = /*@__PURE__*/ requireFormat();
3532
+
3533
+ /**
3534
+ * Creates a skeleton loader HTML string with animated placeholder
3535
+ * @param text - The text to use as a placeholder (will be transparent)
3536
+ * @returns HTML string for skeleton loader
3537
+ */
3538
+ function createSkeletonLoader(text) {
3539
+ return `
3540
+ <span style="position: relative;">
3541
+ <span style="color: transparent;">${text}</span>
3542
+ <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0; left: 0; pointer-events: none;">
3543
+ <rect width="100%" height="100%" fill="#e0e0e0" rx="4">
3544
+ <animate attributeName="fill" values="#e0e0e0;#f0f0f0;#e0e0e0" dur="1.5s" repeatCount="indefinite"/>
3545
+ </rect>
3546
+ </svg>
3547
+ </span>
3548
+ `;
3549
+ }
3550
+ /**
3551
+ * Replaces text nodes in a DOM tree with skeleton loaders
3552
+ * Skips text nodes inside ticketable-value elements
3553
+ * @param node - The root node to process
3554
+ * @param createSkeletonFn - Function to create skeleton HTML (defaults to createSkeletonLoader)
3555
+ */
3556
+ function replaceTextNodesWithSkeletons(node, createSkeletonFn = createSkeletonLoader) {
3557
+ const walker = document.createTreeWalker(node, NodeFilter.SHOW_TEXT, null);
3558
+ const textNodes = [];
3559
+ for (let curTextNode = walker.nextNode(); curTextNode; curTextNode = walker.nextNode()) {
3560
+ if (curTextNode.textContent?.trim()) {
3561
+ let parent = curTextNode.parentNode;
3562
+ let isInsideTicketableValue = false;
3563
+ while (parent) {
3564
+ if (parent.nodeName.toLowerCase() === "ticketable-value") {
3565
+ isInsideTicketableValue = true;
3566
+ break;
3567
+ }
3568
+ parent = parent.parentNode;
3569
+ }
3570
+ if (!isInsideTicketableValue) {
3571
+ textNodes.push(curTextNode);
3572
+ }
3573
+ }
3574
+ }
3575
+ for (const textNode of textNodes) {
3576
+ const parent = textNode.parentNode;
3577
+ if (!parent)
3578
+ continue;
3579
+ const text = textNode.textContent || "";
3580
+ const placeholderText = text.trim() || "Sample Text";
3581
+ const skeletonSpan = document.createElement("span");
3582
+ skeletonSpan.innerHTML = createSkeletonFn(placeholderText);
3583
+ parent.replaceChild(skeletonSpan, textNode);
3584
+ }
3585
+ }
3586
+
3587
+ const LOCALES = {};
3588
+ /**
3589
+ * Extracts a nested value from an object using a path string.
3590
+ * Supports dot notation for object properties and bracket notation for arrays.
3591
+ * Paths must use dot notation throughout, e.g., "metadata.foo.bar.[1]"
3592
+ * Examples:
3593
+ * - "metadata.foo.bar" -> item.metadata.foo.bar
3594
+ * - "metadata.foo.bar.[1]" -> item.metadata.foo.bar[1]
3595
+ * - "wallet_export.[0].address" -> item.wallet_export[0].address
3596
+ */
3597
+ // biome-ignore lint/suspicious/noExplicitAny: Dynamic nested property access requires any
3598
+ function getNestedValue(obj, path) {
3599
+ if (!path || !obj)
3600
+ return undefined;
3601
+ // Split by dots and process each part
3602
+ const parts = path.split(".").filter(Boolean);
3603
+ let result = obj;
3604
+ for (const part of parts) {
3605
+ if (result == null)
3606
+ return undefined;
3607
+ // Check if this part is an array index like "[1]"
3608
+ if (part.startsWith("[") && part.endsWith("]")) {
3609
+ const indexStr = part.slice(1, -1);
3610
+ const index = /^\d+$/.test(indexStr) ? Number.parseInt(indexStr, 10) : indexStr;
3611
+ result = result[index];
3612
+ }
3613
+ else {
3614
+ result = result[part];
3615
+ }
3616
+ }
3617
+ if (typeof result === "object" && result != null) {
3618
+ return JSON.stringify(result);
3619
+ }
3620
+ return result;
3621
+ }
3622
+ async function loadLocales() {
3623
+ // TODO: This should be pulled into a shared component
3624
+ await Promise.all([
3625
+ !LOCALES.en &&
3626
+ Promise.resolve().then(function () { return require('./en-GB-DhD5mdQw.js'); }).then(function (n) { return n.enGB; }).then((module) => {
3627
+ LOCALES.en = module.enGB;
3628
+ }),
3629
+ !LOCALES.de &&
3630
+ Promise.resolve().then(function () { return require('./de-BWF6Glzg.js'); }).then(function (n) { return n.de; }).then((module) => {
3631
+ LOCALES.de = module.de;
3632
+ }),
3633
+ !LOCALES.fr &&
3634
+ Promise.resolve().then(function () { return require('./fr-j2wwoj-A.js'); }).then(function (n) { return n.fr; }).then((module) => {
3635
+ LOCALES.fr = module.fr;
3636
+ }),
3637
+ !LOCALES.nl_be &&
3638
+ Promise.resolve().then(function () { return require('./nl-BE-yKvOp1-G.js'); }).then(function (n) { return n.nlBE; }).then((module) => {
3639
+ LOCALES.nl_be = module.nlBE;
3640
+ }),
3641
+ !LOCALES.ro &&
3642
+ Promise.resolve().then(function () { return require('./ro-CXq9d1lv.js'); }).then(function (n) { return n.ro; }).then((module) => {
3643
+ LOCALES.ro = module.ro;
3644
+ }),
3645
+ !LOCALES.sv &&
3646
+ Promise.resolve().then(function () { return require('./sv-CMln4V33.js'); }).then(function (n) { return n.sv; }).then((module) => {
3647
+ LOCALES.sv = module.sv;
3648
+ }),
3649
+ ]);
3650
+ }
3651
+ const TicketableList = class extends component.UnidyComponent() {
3652
+ constructor(hostRef) {
3653
+ super();
3654
+ index.registerInstance(this, hostRef);
3655
+ this.uTicketableListSuccess = index.createEvent(this, "uTicketableListSuccess", 7);
3656
+ this.uTicketableListError = index.createEvent(this, "uTicketableListError", 7);
3657
+ }
3658
+ unsubscribeAuth;
3659
+ // TODO: move into a generic store, since we'll have this kind of fetching all over the app (also implement SWR and other things inside of it)
3660
+ items = [];
3661
+ loading = true;
3662
+ error = null;
3663
+ paginationMeta = null;
3664
+ target;
3665
+ containerClass;
3666
+ // TODO: add a component that can override this
3667
+ filter = "";
3668
+ // TODO: Add pagination component to override all of this
3669
+ limit = 10;
3670
+ page = 1;
3671
+ skeletonCount;
3672
+ skeletonAllText = false;
3673
+ ticketableType;
3674
+ async fetchData() {
3675
+ await this.loadData();
3676
+ }
3677
+ store = null;
3678
+ uTicketableListSuccess;
3679
+ uTicketableListError;
3680
+ async componentWillLoad() {
3681
+ await unidyStore.waitForConfig();
3682
+ loadLocales().catch((err) => {
3683
+ console.error("[u-ticketable-list] Failed to load locales, falling back to 'en'", err);
3684
+ });
3685
+ }
3686
+ async componentDidLoad() {
3687
+ this.logger.trace("start componentDidLoad");
3688
+ await unidyStore.waitForConfig();
3689
+ this.logger.trace("UnidyConfig loaded, start to load data");
3690
+ const authInstance = await index$1.Auth.getInstance();
3691
+ if (await authInstance.isAuthenticated()) {
3692
+ await this.loadData();
3693
+ this.logger.debug(`data loaded, items: ${this.items}, paginationMeta: ${this.paginationMeta}`);
3694
+ }
3695
+ else {
3696
+ this.logger.debug("user is not authenticated, skipping data load");
3697
+ }
3698
+ // Listen for auth changes to refresh data when user logs in
3699
+ this.unsubscribeAuth = authStore.authStoreOnChange("token", (newToken) => {
3700
+ if (newToken) {
3701
+ this.logger.debug("auth token changed, refreshing data");
3702
+ this.loadData();
3703
+ }
3704
+ });
3705
+ }
3706
+ disconnectedCallback() {
3707
+ this.unsubscribeAuth?.();
3708
+ }
3709
+ async loadData() {
3710
+ this.loading = true;
3711
+ if (!this.ticketableType) {
3712
+ this.error = "[u-ticketable-list] ticketable-type attribute is required";
3713
+ this.loading = false;
3714
+ this.uTicketableListError.emit({ error: this.error });
3715
+ return;
3716
+ }
3717
+ if (this.ticketableType !== "ticket" && this.ticketableType !== "subscription") {
3718
+ this.error = `[u-ticketable-list] Invalid ticketable-type: ${this.ticketableType}. Must be 'ticket' or 'subscription'`;
3719
+ this.loading = false;
3720
+ this.uTicketableListError.emit({ error: this.error });
3721
+ return;
3722
+ }
3723
+ // TODO: Add a simple shared way of doing this
3724
+ const auth = await index$1.Auth.getInstance();
3725
+ if (!auth) {
3726
+ this.error = "[u-ticketable-list] Auth instance not found";
3727
+ this.loading = false;
3728
+ return;
3729
+ }
3730
+ // TODO: Handle auth on change THAT SHOULD EXIST ON THE AUTH INSTANCE
3731
+ const idToken = await auth.getToken();
3732
+ if (typeof idToken !== "string") {
3733
+ this.error = "[u-ticketable-list] Failed to get ID token";
3734
+ this.loading = false;
3735
+ return;
3736
+ }
3737
+ try {
3738
+ const unidyClient = await index$1.getUnidyClient();
3739
+ // Parse filter string into typed args using URLSearchParams (treats ; as separator)
3740
+ const filterArgs = Object.fromEntries(new URLSearchParams((this.filter || "").replace(/;/g, "&")).entries());
3741
+ // Common args for both services
3742
+ const commonArgs = {
3743
+ page: this.page,
3744
+ perPage: this.limit,
3745
+ state: filterArgs.state,
3746
+ paymentState: filterArgs.payment_state,
3747
+ orderBy: filterArgs.order_by,
3748
+ orderDirection: filterArgs.order_direction,
3749
+ serviceId: filterArgs.service_id ? Number(filterArgs.service_id) : undefined,
3750
+ };
3751
+ // Call the appropriate service with type-safe args
3752
+ const [error, data] = this.ticketableType === "ticket"
3753
+ ? await unidyClient.tickets.list({
3754
+ ...commonArgs,
3755
+ ticketCategoryId: filterArgs.ticket_category_id,
3756
+ })
3757
+ : await unidyClient.subscriptions.list({
3758
+ ...commonArgs,
3759
+ subscriptionCategoryId: filterArgs.subscription_category_id,
3760
+ });
3761
+ if (error !== null || !data || !("results" in data)) {
3762
+ this.error = this.getTranslatedError(error);
3763
+ this.loading = false;
3764
+ this.uTicketableListError.emit({ error: this.error });
3765
+ return;
3766
+ }
3767
+ this.items = data.results;
3768
+ this.paginationMeta = data.meta;
3769
+ // Update the store with pagination data
3770
+ if (this.store) {
3771
+ this.store.state.paginationMeta = data.meta;
3772
+ }
3773
+ this.loading = false;
3774
+ this.uTicketableListSuccess.emit({ ticketableType: this.ticketableType, items: this.items, paginationMeta: this.paginationMeta });
3775
+ }
3776
+ catch (err) {
3777
+ this.error = err instanceof Error ? err.message : "[u-ticketable-list] An error occurred";
3778
+ this.loading = false;
3779
+ this.uTicketableListError.emit({ error: this.error });
3780
+ }
3781
+ }
3782
+ getTranslatedError(error) {
3783
+ if (!error) {
3784
+ return i18n.t("ticketable.errors.fetch_failed", { defaultValue: "Failed to load data" });
3785
+ }
3786
+ const errorMessages = {
3787
+ connection_failed: i18n.t("errors.connection_failed", { defaultValue: "Connection failed. Please check your internet connection." }),
3788
+ schema_validation_error: i18n.t("errors.schema_validation", { defaultValue: "Invalid data received from server." }),
3789
+ internal_error: i18n.t("errors.internal", { defaultValue: "An internal error occurred." }),
3790
+ missing_id_token: i18n.t("errors.unauthorized", { defaultValue: "You must be logged in to view this content." }),
3791
+ unauthorized: i18n.t("errors.unauthorized", { defaultValue: "You are not authorized to view this content." }),
3792
+ server_error: i18n.t("errors.server", { defaultValue: "A server error occurred. Please try again later." }),
3793
+ invalid_response: i18n.t("errors.invalid_response", { defaultValue: "Invalid response from server." }),
3794
+ };
3795
+ return errorMessages[error] || i18n.t("errors.unknown", { defaultValue: "An unknown error occurred." });
3796
+ }
3797
+ renderFragment(template, item) {
3798
+ const fragment = template.content.cloneNode(true);
3799
+ const isSkeleton = !item;
3800
+ for (const elem of fragment.querySelectorAll("[unidy-attr]")) {
3801
+ for (const [unidyAttr, newValue] of Array.from(elem.attributes)
3802
+ .filter((attr) => attr.name.startsWith("unidy-attr-"))
3803
+ .map((attr) => {
3804
+ if (isSkeleton) {
3805
+ return [attr, "#"];
3806
+ }
3807
+ let value = attr.value;
3808
+ // Find all template strings like {{path}} and replace them with nested values
3809
+ const templateRegex = /\{\{([^}]+)\}\}/g;
3810
+ value = value.replace(templateRegex, (match, path) => {
3811
+ const nestedValue = getNestedValue(item, path.trim());
3812
+ return nestedValue != null ? String(nestedValue) : match;
3813
+ });
3814
+ return [attr, value];
3815
+ })) {
3816
+ elem.setAttribute(unidyAttr.name.replace("unidy-attr-", ""), newValue);
3817
+ elem.removeAttribute(unidyAttr.name);
3818
+ }
3819
+ }
3820
+ if (isSkeleton && this.skeletonAllText) {
3821
+ replaceTextNodesWithSkeletons(fragment);
3822
+ }
3823
+ for (const valueEl of fragment.querySelectorAll("ticketable-value")) {
3824
+ if (isSkeleton) {
3825
+ valueEl.innerHTML = createSkeletonLoader("Sample Text");
3826
+ }
3827
+ else {
3828
+ const key = valueEl.getAttribute("name");
3829
+ if (!key)
3830
+ continue;
3831
+ const value = getNestedValue(item, key);
3832
+ const formatAttr = valueEl.getAttribute("format");
3833
+ const dateFormatAttr = valueEl.getAttribute("date-format");
3834
+ let finalValue;
3835
+ if (typeof value === "object" && value instanceof Date) {
3836
+ finalValue = formatExports.format(value, dateFormatAttr || "yyyy-MM-dd", { locale: LOCALES[unidyStore.unidyState.locale] || LOCALES.en });
3837
+ }
3838
+ else if (typeof value === "number" && key === "price") {
3839
+ finalValue = new Intl.NumberFormat(unidyStore.unidyState.locale, { style: "currency", currency: item.currency || "EUR" }).format(value);
3840
+ }
3841
+ else if (typeof value === "number") {
3842
+ if (Number.isInteger(value)) {
3843
+ finalValue = value.toString();
3844
+ }
3845
+ else {
3846
+ finalValue = value.toFixed(2);
3847
+ }
3848
+ }
3849
+ else if (value != null) {
3850
+ finalValue = String(value);
3851
+ }
3852
+ else {
3853
+ finalValue = valueEl.getAttribute("default") || "";
3854
+ }
3855
+ if (formatAttr) {
3856
+ finalValue = formatAttr.replaceAll("{{value}}", finalValue);
3857
+ }
3858
+ valueEl.textContent = finalValue;
3859
+ }
3860
+ }
3861
+ // Process ticketable-conditional elements
3862
+ // Shows/hides content based on item property values.
3863
+ // Example:
3864
+ // <ticketable-conditional when="metadata.vip">
3865
+ // <span class="vip-badge">VIP</span>
3866
+ // </ticketable-conditional>
3867
+ // The children are rendered only if the "when" property is truthy.
3868
+ // Convert to array to avoid issues when modifying the DOM
3869
+ const conditionalElements = Array.from(fragment.querySelectorAll("ticketable-conditional"));
3870
+ for (const conditionalEl of conditionalElements) {
3871
+ const whenAttr = conditionalEl.getAttribute("when");
3872
+ if (!whenAttr) {
3873
+ // If no 'when' attribute, remove the element
3874
+ conditionalEl.remove();
3875
+ continue;
3876
+ }
3877
+ if (isSkeleton) {
3878
+ // For skeleton state, remove conditionals
3879
+ conditionalEl.remove();
3880
+ continue;
3881
+ }
3882
+ // Check if the item property is truthy
3883
+ const value = getNestedValue(item, whenAttr);
3884
+ const isTruthy = Boolean(value);
3885
+ if (isTruthy) {
3886
+ // Replace the conditional element with its children
3887
+ const parent = conditionalEl.parentNode;
3888
+ if (parent) {
3889
+ // Move all children before the conditional element
3890
+ while (conditionalEl.firstChild) {
3891
+ parent.insertBefore(conditionalEl.firstChild, conditionalEl);
3892
+ }
3893
+ // Remove the conditional element
3894
+ parent.removeChild(conditionalEl);
3895
+ }
3896
+ }
3897
+ else {
3898
+ // Remove the conditional element and its children
3899
+ conditionalEl.remove();
3900
+ }
3901
+ }
3902
+ // Set ticketable context on export buttons
3903
+ for (const exportEl of fragment.querySelectorAll("u-ticketable-export")) {
3904
+ if (item) {
3905
+ exportEl.setAttribute("data-ticketable-id", item.id);
3906
+ exportEl.setAttribute("data-ticketable-type", this.ticketableType);
3907
+ exportEl.setAttribute("exportable", item.exportable_to_wallet ? "true" : "false");
3908
+ }
3909
+ else {
3910
+ exportEl.setAttribute("exportable", "false");
3911
+ }
3912
+ }
3913
+ return fragment;
3914
+ }
3915
+ componentDidUpdate() {
3916
+ if (this.target) {
3917
+ requestAnimationFrame(() => this.renderToTarget());
3918
+ }
3919
+ }
3920
+ componentDidRender() {
3921
+ if (this.target) {
3922
+ requestAnimationFrame(() => this.renderToTarget());
3923
+ }
3924
+ }
3925
+ renderToTarget() {
3926
+ const template = this.element.querySelector("template");
3927
+ if (!template)
3928
+ return;
3929
+ const targetElement = document.querySelector(this.target);
3930
+ if (!targetElement) {
3931
+ this.logger.warn("targetElement not found");
3932
+ return;
3933
+ }
3934
+ // Clear existing content
3935
+ targetElement.innerHTML = "";
3936
+ this.renderContent(targetElement, template);
3937
+ }
3938
+ renderContent(target, template) {
3939
+ if (this.loading) {
3940
+ // Use skeletonCount if provided, otherwise use limit
3941
+ const skeletonCount = this.skeletonCount || this.limit;
3942
+ for (const _item of Array.from({ length: skeletonCount })) {
3943
+ target.appendChild(this.renderFragment(template));
3944
+ }
3945
+ }
3946
+ else if (!this.error) {
3947
+ for (const item of this.items) {
3948
+ target.appendChild(this.renderFragment(template, item));
3949
+ }
3950
+ }
3951
+ else {
3952
+ this.logger.error(`failed to load content: ${this.error}`);
3953
+ target.innerHTML = `<h1>${i18n.t("errors.prefix")} ${this.error}</h1>`;
3954
+ }
3955
+ }
3956
+ render() {
3957
+ if (this.error) {
3958
+ this.logger.error(`can't render content: ${this.error}`);
3959
+ return (index.h("h1", null, i18n.t("errors.prefix"), " ", this.error));
3960
+ }
3961
+ const template = this.element.querySelector("template");
3962
+ if (!template) {
3963
+ this.logger.error("template not found");
3964
+ return index.h("h1", null, "No template found - fix config");
3965
+ }
3966
+ if (this.target) {
3967
+ return (index.h(index.Host, null, index.h("slot", null)));
3968
+ }
3969
+ const element = document.createElement("div");
3970
+ this.renderContent(element, template);
3971
+ return (index.h(index.Host, null, index.h("div", { class: this.containerClass, innerHTML: element.innerHTML }), index.h("slot", { name: "pagination" })));
3972
+ }
3973
+ static get watchers() { return {
3974
+ "page": ["fetchData"],
3975
+ "limit": ["fetchData"],
3976
+ "filter": ["fetchData"]
3977
+ }; }
3978
+ };
3979
+
3980
+ exports.TicketableList = TicketableList;
3981
+ exports.requireBuildFormatLongFn = requireBuildFormatLongFn;
3982
+ exports.requireBuildLocalizeFn = requireBuildLocalizeFn;
3983
+ exports.requireBuildMatchFn = requireBuildMatchFn;
3984
+ exports.requireBuildMatchPatternFn = requireBuildMatchPatternFn;
3985
+ exports.requireFormatDistance = requireFormatDistance;
3986
+ exports.requireFormatRelative = requireFormatRelative;
3987
+ exports.requireLocalize = requireLocalize;
3988
+ exports.requireMatch = requireMatch;
3989
+ //# sourceMappingURL=u-ticketable-list-D3M8iA-g.js.map
3990
+
3991
+ //# sourceMappingURL=u-ticketable-list-D3M8iA-g.js.map