@paperless/core 0.1.0-alpha.43 → 0.1.0-alpha.430

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 (1091) hide show
  1. package/CHANGELOG.md +4109 -0
  2. package/README.md +9 -1
  3. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  4. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  5. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  6. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  7. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  8. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  9. package/dist/assets/i18n/table.i18n.en.json +13 -0
  10. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  11. package/dist/assets/icons/camera.svg +10 -0
  12. package/dist/assets/icons/filter.svg +6 -13
  13. package/dist/assets/icons/menu.svg +25 -0
  14. package/dist/assets/icons/more.svg +18 -0
  15. package/dist/assets/icons/notification.svg +10 -0
  16. package/dist/assets/icons/reload.svg +10 -0
  17. package/dist/assets/icons/signout.svg +23 -0
  18. package/dist/assets/icons/switch.svg +20 -0
  19. package/dist/assets/illustrations/e-mail.svg +1 -0
  20. package/dist/assets/illustrations/empty-state-add.svg +65 -0
  21. package/dist/assets/illustrations/empty-state-overview.svg +58 -0
  22. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  23. package/dist/assets/images/helper/helper-hover.svg +6 -6
  24. package/dist/assets/images/helper/helper.svg +2 -2
  25. package/dist/build/index.esm.js +2 -0
  26. package/dist/build/index.esm.js.map +1 -0
  27. package/dist/build/p-09ea2a1a.js +2 -0
  28. package/dist/build/p-09ea2a1a.js.map +1 -0
  29. package/dist/build/p-0a3f2fe8.entry.js +2 -0
  30. package/dist/build/p-0a3f2fe8.entry.js.map +1 -0
  31. package/dist/build/p-0cb97c5e.entry.js +2 -0
  32. package/dist/build/p-0cb97c5e.entry.js.map +1 -0
  33. package/dist/build/p-0e0bffb3.entry.js +2 -0
  34. package/dist/build/p-0e0bffb3.entry.js.map +1 -0
  35. package/dist/build/p-10ad607e.entry.js +2 -0
  36. package/dist/build/p-10ad607e.entry.js.map +1 -0
  37. package/dist/build/p-1b5292a3.entry.js +2 -0
  38. package/dist/build/p-1b5292a3.entry.js.map +1 -0
  39. package/dist/build/p-3d8b5cc4.entry.js +2 -0
  40. package/dist/build/p-3d8b5cc4.entry.js.map +1 -0
  41. package/dist/build/p-3dcc02d8.entry.js +2 -0
  42. package/dist/build/p-3dcc02d8.entry.js.map +1 -0
  43. package/dist/build/p-45dfd940.entry.js +2 -0
  44. package/dist/build/p-45dfd940.entry.js.map +1 -0
  45. package/dist/build/p-464569dc.entry.js +2 -0
  46. package/dist/build/p-464569dc.entry.js.map +1 -0
  47. package/dist/build/p-4e650fe4.js +2 -0
  48. package/dist/build/p-4e650fe4.js.map +1 -0
  49. package/dist/build/p-5236b565.entry.js +2 -0
  50. package/dist/build/p-5236b565.entry.js.map +1 -0
  51. package/dist/build/p-57411b2b.entry.js +2 -0
  52. package/dist/build/p-57411b2b.entry.js.map +1 -0
  53. package/dist/build/p-58b52568.entry.js +2 -0
  54. package/dist/build/p-58b52568.entry.js.map +1 -0
  55. package/dist/build/p-5d118f66.entry.js +2 -0
  56. package/dist/build/p-5d118f66.entry.js.map +1 -0
  57. package/dist/build/p-6b7d2d41.entry.js +2 -0
  58. package/dist/build/p-6b7d2d41.entry.js.map +1 -0
  59. package/dist/build/p-6c60fd3d.js +2 -0
  60. package/dist/build/p-6c60fd3d.js.map +1 -0
  61. package/dist/build/p-6f82a1e7.entry.js +2 -0
  62. package/dist/build/p-6f82a1e7.entry.js.map +1 -0
  63. package/dist/build/p-6fd261ab.entry.js +2 -0
  64. package/dist/build/p-6fd261ab.entry.js.map +1 -0
  65. package/dist/build/p-7010541f.entry.js +2 -0
  66. package/dist/build/p-7010541f.entry.js.map +1 -0
  67. package/dist/build/p-756c06ec.entry.js +2 -0
  68. package/dist/build/p-756c06ec.entry.js.map +1 -0
  69. package/dist/build/p-78948e08.entry.js +2 -0
  70. package/dist/build/p-78948e08.entry.js.map +1 -0
  71. package/dist/build/p-78ce77d2.entry.js +2 -0
  72. package/dist/build/p-78ce77d2.entry.js.map +1 -0
  73. package/dist/build/p-7b94bc6a.entry.js +2 -0
  74. package/dist/build/p-7b94bc6a.entry.js.map +1 -0
  75. package/dist/build/p-8a6728d5.js +2 -0
  76. package/dist/build/p-8a6728d5.js.map +1 -0
  77. package/dist/build/p-8fb43cc7.entry.js +2 -0
  78. package/dist/build/p-8fb43cc7.entry.js.map +1 -0
  79. package/dist/build/p-93fb216c.entry.js +2 -0
  80. package/dist/build/p-93fb216c.entry.js.map +1 -0
  81. package/dist/build/p-9ee7b088.entry.js +2 -0
  82. package/dist/build/p-9ee7b088.entry.js.map +1 -0
  83. package/dist/build/p-a2bd1a79.entry.js +2 -0
  84. package/dist/build/p-a2bd1a79.entry.js.map +1 -0
  85. package/dist/build/p-a3fcf8b6.entry.js +2 -0
  86. package/dist/build/p-a3fcf8b6.entry.js.map +1 -0
  87. package/dist/build/p-a89bc06c.entry.js +2 -0
  88. package/dist/build/p-a89bc06c.entry.js.map +1 -0
  89. package/dist/build/p-ac1af618.js +3 -0
  90. package/dist/build/p-ac1af618.js.map +1 -0
  91. package/dist/build/p-ac7b48ff.entry.js +2 -0
  92. package/dist/build/p-ac7b48ff.entry.js.map +1 -0
  93. package/dist/build/p-b13a0ee4.entry.js +2 -0
  94. package/dist/build/p-b13a0ee4.entry.js.map +1 -0
  95. package/dist/build/p-b273ac6d.js +2 -0
  96. package/dist/build/p-b273ac6d.js.map +1 -0
  97. package/dist/build/p-b450d46f.entry.js +2 -0
  98. package/dist/build/p-b450d46f.entry.js.map +1 -0
  99. package/dist/build/p-b7b1de31.entry.js +2 -0
  100. package/dist/build/p-b7b1de31.entry.js.map +1 -0
  101. package/dist/build/p-bd85ff72.entry.js +2 -0
  102. package/dist/build/p-bd85ff72.entry.js.map +1 -0
  103. package/dist/build/p-befde602.entry.js +2 -0
  104. package/dist/build/p-befde602.entry.js.map +1 -0
  105. package/dist/build/p-c6ef7b79.entry.js +2 -0
  106. package/dist/build/p-c6ef7b79.entry.js.map +1 -0
  107. package/dist/build/p-cccc37c0.entry.js +2 -0
  108. package/dist/build/p-cccc37c0.entry.js.map +1 -0
  109. package/dist/build/p-d7d7f5d0.entry.js +2 -0
  110. package/dist/build/p-d7d7f5d0.entry.js.map +1 -0
  111. package/dist/build/p-dc01e9eb.entry.js +2 -0
  112. package/dist/build/p-dc01e9eb.entry.js.map +1 -0
  113. package/dist/build/p-dd2a50d0.entry.js +2 -0
  114. package/dist/build/p-dd2a50d0.entry.js.map +1 -0
  115. package/dist/build/p-e0f41dd5.entry.js +2 -0
  116. package/dist/build/p-e0f41dd5.entry.js.map +1 -0
  117. package/dist/build/p-e621e34c.js +2 -0
  118. package/dist/build/p-e621e34c.js.map +1 -0
  119. package/dist/build/p-ea824ef3.entry.js +2 -0
  120. package/dist/build/p-ea824ef3.entry.js.map +1 -0
  121. package/dist/build/p-ebc2ae62.entry.js +2 -0
  122. package/dist/build/p-ebc2ae62.entry.js.map +1 -0
  123. package/dist/build/p-f07793f6.entry.js +2 -0
  124. package/dist/build/p-f07793f6.entry.js.map +1 -0
  125. package/dist/build/paperless.css +1 -92
  126. package/dist/build/paperless.esm.js +2 -1
  127. package/dist/build/paperless.esm.js.map +1 -0
  128. package/dist/cjs/child-of-e472f812.js +11 -0
  129. package/dist/cjs/child-of-e472f812.js.map +1 -0
  130. package/dist/cjs/constants-a4459ec9.js +9 -0
  131. package/dist/cjs/constants-a4459ec9.js.map +1 -0
  132. package/dist/cjs/floating-ui.dom.esm-4cb215a4.js +1324 -0
  133. package/dist/cjs/floating-ui.dom.esm-4cb215a4.js.map +1 -0
  134. package/dist/cjs/index-040ec3f9.js +2483 -0
  135. package/dist/cjs/index-040ec3f9.js.map +1 -0
  136. package/dist/cjs/{index-f9c302b6.js → index-13ea09e0.js} +975 -294
  137. package/dist/cjs/index-13ea09e0.js.map +1 -0
  138. package/dist/cjs/index.cjs.js +19 -0
  139. package/dist/cjs/index.cjs.js.map +1 -0
  140. package/dist/cjs/loader.cjs.js +6 -3
  141. package/dist/cjs/loader.cjs.js.map +1 -0
  142. package/dist/cjs/localization-9e2ac7f3.js +62 -0
  143. package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
  144. package/dist/cjs/object-get-by-path-6dc21ed5.js +14 -0
  145. package/dist/cjs/object-get-by-path-6dc21ed5.js.map +1 -0
  146. package/dist/cjs/p-accordion.cjs.entry.js +36 -0
  147. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
  148. package/dist/cjs/p-attachment.cjs.entry.js +39 -0
  149. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
  150. package/dist/cjs/p-avatar-group.cjs.entry.js +22 -0
  151. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
  152. package/dist/cjs/p-avatar.cjs.entry.js +20 -10
  153. package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
  154. package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
  155. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
  156. package/dist/cjs/p-button_3.cjs.entry.js +212 -109
  157. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  158. package/dist/cjs/p-calendar.cjs.entry.js +710 -0
  159. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/p-card-body.cjs.entry.js +5 -6
  161. package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
  162. package/dist/cjs/p-card-container.cjs.entry.js +6 -6
  163. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
  164. package/dist/cjs/p-card-header.cjs.entry.js +6 -6
  165. package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
  166. package/dist/cjs/p-content-slider.cjs.entry.js +212 -0
  167. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
  168. package/dist/cjs/p-counter.cjs.entry.js +7 -3
  169. package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
  170. package/dist/cjs/p-datepicker.cjs.entry.js +4083 -0
  171. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
  172. package/dist/cjs/p-divider.cjs.entry.js +8 -3
  173. package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
  174. package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
  175. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
  176. package/dist/cjs/p-drawer.cjs.entry.js +65 -0
  177. package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
  178. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +7 -3
  179. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
  180. package/dist/cjs/p-dropdown_2.cjs.entry.js +165 -0
  181. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
  182. package/dist/cjs/p-helper_3.cjs.entry.js +144 -0
  183. package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
  184. package/dist/cjs/p-illustration_6.cjs.entry.js +2798 -0
  185. package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
  186. package/dist/cjs/p-info-panel.cjs.entry.js +6 -8
  187. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
  188. package/dist/cjs/p-label_3.cjs.entry.js +65 -0
  189. package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
  190. package/dist/cjs/p-layout.cjs.entry.js +22 -0
  191. package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
  192. package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
  193. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
  194. package/dist/cjs/p-modal.cjs.entry.js +36 -14
  195. package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
  196. package/dist/cjs/p-navbar.cjs.entry.js +30 -0
  197. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
  198. package/dist/cjs/p-navigation-item.cjs.entry.js +9 -6
  199. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
  200. package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
  201. package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
  202. package/dist/cjs/p-profile.cjs.entry.js +45 -0
  203. package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
  204. package/dist/cjs/p-select.cjs.entry.js +246 -0
  205. package/dist/cjs/p-select.cjs.entry.js.map +1 -0
  206. package/dist/cjs/p-slider-indicator.cjs.entry.js +22 -0
  207. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
  208. package/dist/cjs/p-status.cjs.entry.js +7 -5
  209. package/dist/cjs/p-status.cjs.entry.js.map +1 -0
  210. package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
  211. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
  212. package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
  213. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
  214. package/dist/cjs/p-stepper.cjs.entry.js +80 -0
  215. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
  216. package/dist/cjs/p-tab-group.cjs.entry.js +20 -0
  217. package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
  218. package/dist/cjs/p-tab-item.cjs.entry.js +22 -0
  219. package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
  220. package/dist/cjs/p-table-column.cjs.entry.js +28 -0
  221. package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
  222. package/dist/cjs/p-table.cjs.entry.js +352 -0
  223. package/dist/cjs/p-table.cjs.entry.js.map +1 -0
  224. package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
  225. package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
  226. package/dist/cjs/p-toast.cjs.entry.js +35 -0
  227. package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
  228. package/dist/cjs/p-tooltip.cjs.entry.js +56 -55
  229. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
  230. package/dist/cjs/paperless.cjs.js +12 -3
  231. package/dist/cjs/paperless.cjs.js.map +1 -0
  232. package/dist/collection/assets/icons/camera.svg +10 -0
  233. package/dist/collection/assets/icons/filter.svg +6 -13
  234. package/dist/collection/assets/icons/menu.svg +25 -0
  235. package/dist/collection/assets/icons/more.svg +18 -0
  236. package/dist/collection/assets/icons/notification.svg +10 -0
  237. package/dist/collection/assets/icons/reload.svg +10 -0
  238. package/dist/collection/assets/icons/signout.svg +23 -0
  239. package/dist/collection/assets/icons/switch.svg +20 -0
  240. package/dist/collection/assets/illustrations/e-mail.svg +1 -0
  241. package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
  242. package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
  243. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  244. package/dist/collection/assets/images/helper/helper-hover.svg +6 -6
  245. package/dist/collection/assets/images/helper/helper.svg +2 -2
  246. package/dist/collection/collection-manifest.json +38 -5
  247. package/dist/collection/components/atoms/avatar/avatar.component.css +1 -31
  248. package/dist/collection/components/atoms/avatar/avatar.component.js +107 -89
  249. package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
  250. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
  251. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +42 -0
  252. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
  253. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
  254. package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
  255. package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
  256. package/dist/collection/components/atoms/button/button.component.css +1 -93
  257. package/dist/collection/components/atoms/button/button.component.js +305 -297
  258. package/dist/collection/components/atoms/button/button.component.js.map +1 -0
  259. package/dist/collection/components/atoms/card-body/card-body.component.css +1 -9
  260. package/dist/collection/components/atoms/card-body/card-body.component.js +35 -32
  261. package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
  262. package/dist/collection/components/atoms/card-container/card-container.component.css +1 -13
  263. package/dist/collection/components/atoms/card-container/card-container.component.js +53 -31
  264. package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
  265. package/dist/collection/components/atoms/card-header/card-header.component.css +1 -17
  266. package/dist/collection/components/atoms/card-header/card-header.component.js +52 -50
  267. package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
  268. package/dist/collection/components/atoms/counter/counter.component.css +1 -5
  269. package/dist/collection/components/atoms/counter/counter.component.js +57 -9
  270. package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
  271. package/dist/collection/components/atoms/divider/divider.component.css +1 -3
  272. package/dist/collection/components/atoms/divider/divider.component.js +16 -8
  273. package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
  274. package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
  275. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
  276. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
  277. package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
  278. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
  279. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
  280. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
  281. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
  282. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
  283. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -5
  284. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +57 -9
  285. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
  286. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -13
  287. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +75 -30
  288. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
  289. package/dist/collection/components/atoms/helper/helper.component.css +1 -7
  290. package/dist/collection/components/atoms/helper/helper.component.js +43 -12
  291. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
  292. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  293. package/dist/collection/components/atoms/icon/icon.component.js +103 -101
  294. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
  295. package/dist/collection/components/atoms/illustration/illustration.component.js +30 -23
  296. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
  297. package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
  298. package/dist/collection/components/atoms/info-panel/info-panel.component.js +86 -89
  299. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
  300. package/dist/collection/components/atoms/label/label.component.css +1 -0
  301. package/dist/collection/components/atoms/label/label.component.js +171 -0
  302. package/dist/collection/components/atoms/label/label.component.js.map +1 -0
  303. package/dist/collection/components/atoms/layout/layout.component.css +1 -0
  304. package/dist/collection/components/atoms/layout/layout.component.js +44 -0
  305. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
  306. package/dist/collection/components/atoms/loader/loader.component.css +1 -26
  307. package/dist/collection/components/atoms/loader/loader.component.js +113 -114
  308. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
  309. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -7
  310. package/dist/collection/components/atoms/modal-body/modal-body.component.js +53 -31
  311. package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
  312. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -6
  313. package/dist/collection/components/atoms/modal-container/modal-container.component.js +58 -36
  314. package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
  315. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -4
  316. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +13 -10
  317. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
  318. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -6
  319. package/dist/collection/components/atoms/modal-header/modal-header.component.js +60 -9
  320. package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
  321. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -16
  322. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +35 -32
  323. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
  324. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
  325. package/dist/collection/components/atoms/segment-container/segment-container.component.js +13 -9
  326. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
  327. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
  328. package/dist/collection/components/atoms/segment-item/segment-item.component.js +98 -91
  329. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
  330. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
  331. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +44 -0
  332. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
  333. package/dist/collection/components/atoms/status/status.component.css +1 -16
  334. package/dist/collection/components/atoms/status/status.component.js +98 -93
  335. package/dist/collection/components/atoms/status/status.component.js.map +1 -0
  336. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
  337. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +120 -0
  338. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
  339. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
  340. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -0
  341. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
  342. package/dist/collection/components/atoms/tab-group/tab-group.component.js +9 -0
  343. package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
  344. package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
  345. package/dist/collection/components/atoms/tab-item/tab-item.component.js +44 -0
  346. package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
  347. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
  348. package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
  349. package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
  350. package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
  351. package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
  352. package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
  353. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -40
  354. package/dist/collection/components/atoms/tooltip/tooltip.component.js +236 -192
  355. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
  356. package/dist/collection/components/helpers/table-column/table-column.component.js +151 -0
  357. package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
  358. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
  359. package/dist/collection/components/molecules/accordion/accordion.component.js +128 -0
  360. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
  361. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
  362. package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
  363. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
  364. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
  365. package/dist/collection/components/molecules/calendar/calendar.component.js +503 -0
  366. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
  367. package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
  368. package/dist/collection/components/molecules/content-slider/content-slider.component.js +317 -0
  369. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
  370. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
  371. package/dist/collection/components/molecules/datepicker/datepicker.component.js +509 -0
  372. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
  373. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -9
  374. package/dist/collection/components/molecules/dropdown/dropdown.component.js +294 -156
  375. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
  376. package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
  377. package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
  378. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
  379. package/dist/collection/components/molecules/input-group/input-group.component.js +379 -0
  380. package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
  381. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -28
  382. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +107 -104
  383. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
  384. package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
  385. package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
  386. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
  387. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
  388. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
  389. package/dist/collection/components/molecules/pagination/pagination.component.js +119 -94
  390. package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
  391. package/dist/collection/components/molecules/profile/profile.component.css +1 -0
  392. package/dist/collection/components/molecules/profile/profile.component.js +90 -0
  393. package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
  394. package/dist/collection/components/molecules/select/select.component.css +1 -0
  395. package/dist/collection/components/molecules/select/select.component.js +724 -0
  396. package/dist/collection/components/molecules/select/select.component.js.map +1 -0
  397. package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
  398. package/dist/collection/components/molecules/stepper/stepper.component.js +141 -0
  399. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
  400. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
  401. package/dist/collection/components/molecules/table-cell/table-cell.component.js +263 -0
  402. package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
  403. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
  404. package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
  405. package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
  406. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
  407. package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
  408. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
  409. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
  410. package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
  411. package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
  412. package/dist/collection/components/molecules/toast/toast.component.css +1 -0
  413. package/dist/collection/components/molecules/toast/toast.component.js +197 -0
  414. package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
  415. package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
  416. package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
  417. package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
  418. package/dist/collection/components/organisms/modal/modal.component.js +259 -0
  419. package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
  420. package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
  421. package/dist/collection/components/organisms/navbar/navbar.component.js +90 -0
  422. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
  423. package/dist/collection/components/organisms/table/table.component.css +1 -0
  424. package/dist/collection/components/organisms/table/table.component.js +1292 -0
  425. package/dist/collection/components/organisms/table/table.component.js.map +1 -0
  426. package/dist/collection/index.js +3 -1
  427. package/dist/collection/index.js.map +1 -0
  428. package/dist/collection/tailwind/animation.js +72 -2
  429. package/dist/collection/tailwind/border-radius.js +1 -0
  430. package/dist/collection/tailwind/height.js +5 -0
  431. package/dist/collection/tailwind/plugins/safe-area.js +98 -0
  432. package/dist/collection/tailwind/screens.js +8 -0
  433. package/dist/collection/tailwind/shadows.js +11 -5
  434. package/dist/collection/tailwind/spacing.js +10 -0
  435. package/dist/collection/tailwind/width.js +20 -0
  436. package/dist/collection/tailwind/z-index.js +15 -1
  437. package/dist/collection/tailwind.config.js +14 -3
  438. package/dist/collection/types/index.js +3 -0
  439. package/dist/collection/types/index.js.map +1 -0
  440. package/dist/collection/types/table.js +2 -0
  441. package/dist/collection/types/table.js.map +1 -0
  442. package/dist/collection/types/tailwind.js +2 -0
  443. package/dist/collection/types/tailwind.js.map +1 -0
  444. package/dist/collection/utils/child-of.js +1 -0
  445. package/dist/collection/utils/child-of.js.map +1 -0
  446. package/dist/collection/utils/icons.js +15 -0
  447. package/dist/collection/utils/icons.js.map +1 -0
  448. package/dist/collection/utils/illustrations.js +9 -0
  449. package/dist/collection/utils/illustrations.js.map +1 -0
  450. package/dist/collection/utils/index.js +7 -0
  451. package/dist/collection/utils/index.js.map +1 -0
  452. package/dist/collection/utils/localization.js +56 -0
  453. package/dist/collection/utils/localization.js.map +1 -0
  454. package/dist/collection/utils/object-get-by-path.js +9 -0
  455. package/dist/collection/utils/object-get-by-path.js.map +1 -0
  456. package/dist/collection/utils/transformers.js +5 -0
  457. package/dist/collection/utils/transformers.js.map +1 -0
  458. package/dist/components/backdrop.component.js +59 -0
  459. package/dist/components/backdrop.component.js.map +1 -0
  460. package/dist/components/button.component.js +102 -0
  461. package/dist/components/button.component.js.map +1 -0
  462. package/dist/components/calendar.component.js +3198 -0
  463. package/dist/components/calendar.component.js.map +1 -0
  464. package/dist/components/child-of.js +9 -0
  465. package/dist/components/child-of.js.map +1 -0
  466. package/dist/components/counter.component.js +11 -4
  467. package/dist/components/counter.component.js.map +1 -0
  468. package/dist/components/divider.component.js +8 -3
  469. package/dist/components/divider.component.js.map +1 -0
  470. package/dist/components/drawer-body.component.js +35 -0
  471. package/dist/components/drawer-body.component.js.map +1 -0
  472. package/dist/components/drawer-container.component.js +34 -0
  473. package/dist/components/drawer-container.component.js.map +1 -0
  474. package/dist/components/drawer-header.component.js +54 -0
  475. package/dist/components/drawer-header.component.js.map +1 -0
  476. package/dist/components/dropdown-menu-container.component.js +11 -4
  477. package/dist/components/dropdown-menu-container.component.js.map +1 -0
  478. package/dist/components/dropdown-menu-item.component.js +45 -0
  479. package/dist/components/dropdown-menu-item.component.js.map +1 -0
  480. package/dist/components/dropdown.component.js +177 -0
  481. package/dist/components/dropdown.component.js.map +1 -0
  482. package/dist/components/floating-ui.dom.esm.js +1317 -0
  483. package/dist/components/floating-ui.dom.esm.js.map +1 -0
  484. package/dist/components/helper.component.js +41 -0
  485. package/dist/components/helper.component.js.map +1 -0
  486. package/dist/components/icon.component.js +147 -25
  487. package/dist/components/icon.component.js.map +1 -0
  488. package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +250 -16
  489. package/dist/components/illustration.component.js.map +1 -0
  490. package/dist/components/index.d.ts +9 -31
  491. package/dist/components/index.js +13 -29
  492. package/dist/components/index.js.map +1 -0
  493. package/dist/components/input-error.component.js +50 -0
  494. package/dist/components/input-error.component.js.map +1 -0
  495. package/dist/components/input-group.component.js +165 -0
  496. package/dist/components/input-group.component.js.map +1 -0
  497. package/dist/components/label.component.js +54 -0
  498. package/dist/components/label.component.js.map +1 -0
  499. package/dist/components/loader.component.js +12 -14
  500. package/dist/components/loader.component.js.map +1 -0
  501. package/dist/components/localization.js +59 -0
  502. package/dist/components/localization.js.map +1 -0
  503. package/dist/components/modal-body.component.js +8 -7
  504. package/dist/components/modal-body.component.js.map +1 -0
  505. package/dist/components/modal-container.component.js +13 -12
  506. package/dist/components/modal-container.component.js.map +1 -0
  507. package/dist/components/modal-footer.component.js +5 -3
  508. package/dist/components/modal-footer.component.js.map +1 -0
  509. package/dist/components/modal-header.component.js +30 -6
  510. package/dist/components/modal-header.component.js.map +1 -0
  511. package/dist/components/object-get-by-path.js +12 -0
  512. package/dist/components/object-get-by-path.js.map +1 -0
  513. package/dist/components/p-accordion.d.ts +11 -0
  514. package/dist/components/p-accordion.js +67 -0
  515. package/dist/components/p-accordion.js.map +1 -0
  516. package/dist/components/p-attachment.d.ts +11 -0
  517. package/dist/components/p-attachment.js +88 -0
  518. package/dist/components/p-attachment.js.map +1 -0
  519. package/dist/components/p-avatar-group.d.ts +11 -0
  520. package/dist/components/p-avatar-group.js +37 -0
  521. package/dist/components/p-avatar-group.js.map +1 -0
  522. package/dist/components/p-avatar.js +23 -14
  523. package/dist/components/p-avatar.js.map +1 -0
  524. package/dist/components/p-backdrop.d.ts +11 -0
  525. package/dist/components/p-backdrop.js +8 -0
  526. package/dist/components/p-backdrop.js.map +1 -0
  527. package/dist/components/p-button.js +3 -112
  528. package/dist/components/p-button.js.map +1 -0
  529. package/dist/components/p-calendar.d.ts +11 -0
  530. package/dist/components/p-calendar.js +8 -0
  531. package/dist/components/p-calendar.js.map +1 -0
  532. package/dist/components/p-card-body.js +6 -7
  533. package/dist/components/p-card-body.js.map +1 -0
  534. package/dist/components/p-card-container.js +8 -7
  535. package/dist/components/p-card-container.js.map +1 -0
  536. package/dist/components/p-card-header.js +7 -7
  537. package/dist/components/p-card-header.js.map +1 -0
  538. package/dist/components/{p-modal-backdrop.d.ts → p-content-slider.d.ts} +4 -4
  539. package/dist/components/p-content-slider.js +241 -0
  540. package/dist/components/p-content-slider.js.map +1 -0
  541. package/dist/components/p-counter.js +2 -0
  542. package/dist/components/p-counter.js.map +1 -0
  543. package/dist/components/p-datepicker.d.ts +11 -0
  544. package/dist/components/p-datepicker.js +4164 -0
  545. package/dist/components/p-datepicker.js.map +1 -0
  546. package/dist/components/p-divider.js +2 -0
  547. package/dist/components/p-divider.js.map +1 -0
  548. package/dist/components/p-drawer-body.d.ts +11 -0
  549. package/dist/components/p-drawer-body.js +8 -0
  550. package/dist/components/p-drawer-body.js.map +1 -0
  551. package/dist/components/p-drawer-container.d.ts +11 -0
  552. package/dist/components/p-drawer-container.js +8 -0
  553. package/dist/components/p-drawer-container.js.map +1 -0
  554. package/dist/components/p-drawer-header.d.ts +11 -0
  555. package/dist/components/p-drawer-header.js +8 -0
  556. package/dist/components/p-drawer-header.js.map +1 -0
  557. package/dist/components/p-drawer.d.ts +11 -0
  558. package/dist/components/p-drawer.js +130 -0
  559. package/dist/components/p-drawer.js.map +1 -0
  560. package/dist/components/p-dropdown-menu-container.js +2 -0
  561. package/dist/components/p-dropdown-menu-container.js.map +1 -0
  562. package/dist/components/p-dropdown-menu-item.js +3 -34
  563. package/dist/components/p-dropdown-menu-item.js.map +1 -0
  564. package/dist/components/p-dropdown.js +3 -161
  565. package/dist/components/p-dropdown.js.map +1 -0
  566. package/dist/components/p-helper.js +3 -34
  567. package/dist/components/p-helper.js.map +1 -0
  568. package/dist/components/p-icon.js +2 -0
  569. package/dist/components/p-icon.js.map +1 -0
  570. package/dist/components/p-illustration.js +3 -1432
  571. package/dist/components/p-illustration.js.map +1 -0
  572. package/dist/components/p-info-panel.js +6 -8
  573. package/dist/components/p-info-panel.js.map +1 -0
  574. package/dist/components/p-input-error.d.ts +11 -0
  575. package/dist/components/p-input-error.js +8 -0
  576. package/dist/components/p-input-error.js.map +1 -0
  577. package/dist/components/p-input-group.d.ts +11 -0
  578. package/dist/components/p-input-group.js +8 -0
  579. package/dist/components/p-input-group.js.map +1 -0
  580. package/dist/components/p-label.d.ts +11 -0
  581. package/dist/components/p-label.js +8 -0
  582. package/dist/components/p-label.js.map +1 -0
  583. package/dist/components/p-layout.d.ts +11 -0
  584. package/dist/components/p-layout.js +38 -0
  585. package/dist/components/p-layout.js.map +1 -0
  586. package/dist/components/p-loader.js +2 -0
  587. package/dist/components/p-loader.js.map +1 -0
  588. package/dist/components/p-modal-body.js +2 -0
  589. package/dist/components/p-modal-body.js.map +1 -0
  590. package/dist/components/p-modal-container.js +2 -0
  591. package/dist/components/p-modal-container.js.map +1 -0
  592. package/dist/components/p-modal-footer.js +2 -0
  593. package/dist/components/p-modal-footer.js.map +1 -0
  594. package/dist/components/p-modal-header.js +2 -0
  595. package/dist/components/p-modal-header.js.map +1 -0
  596. package/dist/components/p-modal.js +67 -21
  597. package/dist/components/p-modal.js.map +1 -0
  598. package/dist/components/p-navbar.d.ts +11 -0
  599. package/dist/components/p-navbar.js +72 -0
  600. package/dist/components/p-navbar.js.map +1 -0
  601. package/dist/components/p-navigation-item.js +9 -6
  602. package/dist/components/p-navigation-item.js.map +1 -0
  603. package/dist/components/p-page-size-select.d.ts +11 -0
  604. package/dist/components/p-page-size-select.js +8 -0
  605. package/dist/components/p-page-size-select.js.map +1 -0
  606. package/dist/components/p-pagination-item.js +2 -0
  607. package/dist/components/p-pagination-item.js.map +1 -0
  608. package/dist/components/p-pagination.js +3 -195
  609. package/dist/components/p-pagination.js.map +1 -0
  610. package/dist/components/p-profile.d.ts +11 -0
  611. package/dist/components/p-profile.js +81 -0
  612. package/dist/components/p-profile.js.map +1 -0
  613. package/dist/components/p-segment-container.js +3 -27
  614. package/dist/components/p-segment-container.js.map +1 -0
  615. package/dist/components/p-segment-item.js +3 -49
  616. package/dist/components/p-segment-item.js.map +1 -0
  617. package/dist/components/p-select.d.ts +11 -0
  618. package/dist/components/p-select.js +341 -0
  619. package/dist/components/p-select.js.map +1 -0
  620. package/dist/components/p-slider-indicator.d.ts +11 -0
  621. package/dist/components/p-slider-indicator.js +8 -0
  622. package/dist/components/p-slider-indicator.js.map +1 -0
  623. package/dist/components/p-status.js +7 -5
  624. package/dist/components/p-status.js.map +1 -0
  625. package/dist/components/p-stepper-item.d.ts +11 -0
  626. package/dist/components/p-stepper-item.js +52 -0
  627. package/dist/components/p-stepper-item.js.map +1 -0
  628. package/dist/components/p-stepper-line.d.ts +11 -0
  629. package/dist/components/p-stepper-line.js +8 -0
  630. package/dist/components/p-stepper-line.js.map +1 -0
  631. package/dist/components/p-stepper.d.ts +11 -0
  632. package/dist/components/p-stepper.js +104 -0
  633. package/dist/components/p-stepper.js.map +1 -0
  634. package/dist/components/p-tab-group.d.ts +11 -0
  635. package/dist/components/p-tab-group.js +38 -0
  636. package/dist/components/p-tab-group.js.map +1 -0
  637. package/dist/components/p-tab-item.d.ts +11 -0
  638. package/dist/components/p-tab-item.js +38 -0
  639. package/dist/components/p-tab-item.js.map +1 -0
  640. package/dist/components/p-table-cell.d.ts +11 -0
  641. package/dist/components/p-table-cell.js +8 -0
  642. package/dist/components/p-table-cell.js.map +1 -0
  643. package/dist/components/p-table-column.d.ts +11 -0
  644. package/dist/components/p-table-column.js +48 -0
  645. package/dist/components/p-table-column.js.map +1 -0
  646. package/dist/components/p-table-container.d.ts +11 -0
  647. package/dist/components/p-table-container.js +8 -0
  648. package/dist/components/p-table-container.js.map +1 -0
  649. package/dist/components/p-table-footer.d.ts +11 -0
  650. package/dist/components/p-table-footer.js +8 -0
  651. package/dist/components/p-table-footer.js.map +1 -0
  652. package/dist/components/p-table-header.d.ts +11 -0
  653. package/dist/components/p-table-header.js +8 -0
  654. package/dist/components/p-table-header.js.map +1 -0
  655. package/dist/components/p-table-row.d.ts +11 -0
  656. package/dist/components/p-table-row.js +8 -0
  657. package/dist/components/p-table-row.js.map +1 -0
  658. package/dist/components/p-table.d.ts +11 -0
  659. package/dist/components/p-table.js +544 -0
  660. package/dist/components/p-table.js.map +1 -0
  661. package/dist/components/p-toast-container.d.ts +11 -0
  662. package/dist/components/p-toast-container.js +38 -0
  663. package/dist/components/p-toast-container.js.map +1 -0
  664. package/dist/components/p-toast.d.ts +11 -0
  665. package/dist/components/p-toast.js +75 -0
  666. package/dist/components/p-toast.js.map +1 -0
  667. package/dist/components/p-tooltip.js +2 -0
  668. package/dist/components/p-tooltip.js.map +1 -0
  669. package/dist/components/page-size-select.component.js +107 -0
  670. package/dist/components/page-size-select.component.js.map +1 -0
  671. package/dist/components/pagination-item.component.js +4 -5
  672. package/dist/components/pagination-item.component.js.map +1 -0
  673. package/dist/components/pagination.component.js +196 -0
  674. package/dist/components/pagination.component.js.map +1 -0
  675. package/dist/components/segment-container.component.js +31 -0
  676. package/dist/components/segment-container.component.js.map +1 -0
  677. package/dist/components/segment-item.component.js +53 -0
  678. package/dist/components/segment-item.component.js.map +1 -0
  679. package/dist/components/slider-indicator.component.js +35 -0
  680. package/dist/components/slider-indicator.component.js.map +1 -0
  681. package/dist/components/stepper-line.component.js +37 -0
  682. package/dist/components/stepper-line.component.js.map +1 -0
  683. package/dist/components/table-cell.component.js +137 -0
  684. package/dist/components/table-cell.component.js.map +1 -0
  685. package/dist/components/table-container.component.js +32 -0
  686. package/dist/components/table-container.component.js.map +1 -0
  687. package/dist/components/table-footer.component.js +129 -0
  688. package/dist/components/table-footer.component.js.map +1 -0
  689. package/dist/components/table-header.component.js +1070 -0
  690. package/dist/components/table-header.component.js.map +1 -0
  691. package/dist/components/table-row.component.js +45 -0
  692. package/dist/components/table-row.component.js.map +1 -0
  693. package/dist/components/tooltip.component.js +58 -56
  694. package/dist/components/tooltip.component.js.map +1 -0
  695. package/dist/esm/child-of-90a8c4b5.js +9 -0
  696. package/dist/esm/child-of-90a8c4b5.js.map +1 -0
  697. package/dist/esm/constants-826f9460.js +6 -0
  698. package/dist/esm/constants-826f9460.js.map +1 -0
  699. package/dist/esm/floating-ui.dom.esm-82b72251.js +1317 -0
  700. package/dist/esm/floating-ui.dom.esm-82b72251.js.map +1 -0
  701. package/dist/esm/index-340e085c.js +2460 -0
  702. package/dist/esm/index-340e085c.js.map +1 -0
  703. package/dist/esm/{index-fff70567.js → index-94339e77.js} +975 -295
  704. package/dist/esm/index-94339e77.js.map +1 -0
  705. package/dist/esm/index.js +11 -0
  706. package/dist/esm/index.js.map +1 -0
  707. package/dist/esm/loader.js +6 -3
  708. package/dist/esm/loader.js.map +1 -0
  709. package/dist/esm/localization-901dc2d3.js +59 -0
  710. package/dist/esm/localization-901dc2d3.js.map +1 -0
  711. package/dist/esm/object-get-by-path-d6427a61.js +12 -0
  712. package/dist/esm/object-get-by-path-d6427a61.js.map +1 -0
  713. package/dist/esm/p-accordion.entry.js +32 -0
  714. package/dist/esm/p-accordion.entry.js.map +1 -0
  715. package/dist/esm/p-attachment.entry.js +35 -0
  716. package/dist/esm/p-attachment.entry.js.map +1 -0
  717. package/dist/esm/p-avatar-group.entry.js +18 -0
  718. package/dist/esm/p-avatar-group.entry.js.map +1 -0
  719. package/dist/esm/p-avatar.entry.js +20 -10
  720. package/dist/esm/p-avatar.entry.js.map +1 -0
  721. package/dist/esm/p-backdrop.entry.js +39 -0
  722. package/dist/esm/p-backdrop.entry.js.map +1 -0
  723. package/dist/esm/p-button_3.entry.js +212 -109
  724. package/dist/esm/p-button_3.entry.js.map +1 -0
  725. package/dist/esm/p-calendar.entry.js +706 -0
  726. package/dist/esm/p-calendar.entry.js.map +1 -0
  727. package/dist/esm/p-card-body.entry.js +5 -6
  728. package/dist/esm/p-card-body.entry.js.map +1 -0
  729. package/dist/esm/p-card-container.entry.js +6 -6
  730. package/dist/esm/p-card-container.entry.js.map +1 -0
  731. package/dist/esm/p-card-header.entry.js +6 -6
  732. package/dist/esm/p-card-header.entry.js.map +1 -0
  733. package/dist/esm/p-content-slider.entry.js +208 -0
  734. package/dist/esm/p-content-slider.entry.js.map +1 -0
  735. package/dist/esm/p-counter.entry.js +7 -3
  736. package/dist/esm/p-counter.entry.js.map +1 -0
  737. package/dist/esm/p-datepicker.entry.js +4079 -0
  738. package/dist/esm/p-datepicker.entry.js.map +1 -0
  739. package/dist/esm/p-divider.entry.js +8 -3
  740. package/dist/esm/p-divider.entry.js.map +1 -0
  741. package/dist/esm/p-drawer-body_3.entry.js +45 -0
  742. package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
  743. package/dist/esm/p-drawer.entry.js +61 -0
  744. package/dist/esm/p-drawer.entry.js.map +1 -0
  745. package/dist/esm/p-dropdown-menu-container.entry.js +7 -3
  746. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
  747. package/dist/esm/p-dropdown_2.entry.js +160 -0
  748. package/dist/esm/p-dropdown_2.entry.js.map +1 -0
  749. package/dist/esm/p-helper_3.entry.js +138 -0
  750. package/dist/esm/p-helper_3.entry.js.map +1 -0
  751. package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1378 -8
  752. package/dist/esm/p-illustration_6.entry.js.map +1 -0
  753. package/dist/esm/p-info-panel.entry.js +6 -8
  754. package/dist/esm/p-info-panel.entry.js.map +1 -0
  755. package/dist/esm/p-label_3.entry.js +59 -0
  756. package/dist/esm/p-label_3.entry.js.map +1 -0
  757. package/dist/esm/p-layout.entry.js +18 -0
  758. package/dist/esm/p-layout.entry.js.map +1 -0
  759. package/dist/esm/p-modal-body_4.entry.js +72 -0
  760. package/dist/esm/p-modal-body_4.entry.js.map +1 -0
  761. package/dist/esm/p-modal.entry.js +36 -14
  762. package/dist/esm/p-modal.entry.js.map +1 -0
  763. package/dist/esm/p-navbar.entry.js +26 -0
  764. package/dist/esm/p-navbar.entry.js.map +1 -0
  765. package/dist/esm/p-navigation-item.entry.js +9 -6
  766. package/dist/esm/p-navigation-item.entry.js.map +1 -0
  767. package/dist/esm/p-page-size-select_3.entry.js +218 -0
  768. package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
  769. package/dist/esm/p-profile.entry.js +41 -0
  770. package/dist/esm/p-profile.entry.js.map +1 -0
  771. package/dist/esm/p-select.entry.js +242 -0
  772. package/dist/esm/p-select.entry.js.map +1 -0
  773. package/dist/esm/p-slider-indicator.entry.js +18 -0
  774. package/dist/esm/p-slider-indicator.entry.js.map +1 -0
  775. package/dist/esm/p-status.entry.js +7 -5
  776. package/dist/esm/p-status.entry.js.map +1 -0
  777. package/dist/esm/p-stepper-item.entry.js +22 -0
  778. package/dist/esm/p-stepper-item.entry.js.map +1 -0
  779. package/dist/esm/p-stepper-line.entry.js +19 -0
  780. package/dist/esm/p-stepper-line.entry.js.map +1 -0
  781. package/dist/esm/p-stepper.entry.js +76 -0
  782. package/dist/esm/p-stepper.entry.js.map +1 -0
  783. package/dist/esm/p-tab-group.entry.js +16 -0
  784. package/dist/esm/p-tab-group.entry.js.map +1 -0
  785. package/dist/esm/p-tab-item.entry.js +18 -0
  786. package/dist/esm/p-tab-item.entry.js.map +1 -0
  787. package/dist/esm/p-table-column.entry.js +24 -0
  788. package/dist/esm/p-table-column.entry.js.map +1 -0
  789. package/dist/esm/p-table.entry.js +348 -0
  790. package/dist/esm/p-table.entry.js.map +1 -0
  791. package/dist/esm/p-toast-container.entry.js +18 -0
  792. package/dist/esm/p-toast-container.entry.js.map +1 -0
  793. package/dist/esm/p-toast.entry.js +31 -0
  794. package/dist/esm/p-toast.entry.js.map +1 -0
  795. package/dist/esm/p-tooltip.entry.js +56 -55
  796. package/dist/esm/p-tooltip.entry.js.map +1 -0
  797. package/dist/esm/paperless.js +9 -3
  798. package/dist/esm/paperless.js.map +1 -0
  799. package/dist/esm/polyfills/core-js.js +0 -0
  800. package/dist/esm/polyfills/css-shim.js +1 -1
  801. package/dist/esm/polyfills/dom.js +0 -0
  802. package/dist/esm/polyfills/es5-html-element.js +0 -0
  803. package/dist/esm/polyfills/index.js +0 -0
  804. package/dist/esm/polyfills/system.js +0 -0
  805. package/dist/index.html +1 -1
  806. package/dist/paperless/index.esm.js +2 -0
  807. package/dist/paperless/index.esm.js.map +1 -0
  808. package/dist/paperless/p-09ea2a1a.js +2 -0
  809. package/dist/paperless/p-09ea2a1a.js.map +1 -0
  810. package/dist/paperless/p-0a3f2fe8.entry.js +2 -0
  811. package/dist/paperless/p-0a3f2fe8.entry.js.map +1 -0
  812. package/dist/paperless/p-0cb97c5e.entry.js +2 -0
  813. package/dist/paperless/p-0cb97c5e.entry.js.map +1 -0
  814. package/dist/paperless/p-0e0bffb3.entry.js +2 -0
  815. package/dist/paperless/p-0e0bffb3.entry.js.map +1 -0
  816. package/dist/paperless/p-10ad607e.entry.js +2 -0
  817. package/dist/paperless/p-10ad607e.entry.js.map +1 -0
  818. package/dist/paperless/p-1b5292a3.entry.js +2 -0
  819. package/dist/paperless/p-1b5292a3.entry.js.map +1 -0
  820. package/dist/paperless/p-3d8b5cc4.entry.js +2 -0
  821. package/dist/paperless/p-3d8b5cc4.entry.js.map +1 -0
  822. package/dist/paperless/p-3dcc02d8.entry.js +2 -0
  823. package/dist/paperless/p-3dcc02d8.entry.js.map +1 -0
  824. package/dist/paperless/p-45dfd940.entry.js +2 -0
  825. package/dist/paperless/p-45dfd940.entry.js.map +1 -0
  826. package/dist/paperless/p-464569dc.entry.js +2 -0
  827. package/dist/paperless/p-464569dc.entry.js.map +1 -0
  828. package/dist/paperless/p-4e650fe4.js +2 -0
  829. package/dist/paperless/p-4e650fe4.js.map +1 -0
  830. package/dist/paperless/p-5236b565.entry.js +2 -0
  831. package/dist/paperless/p-5236b565.entry.js.map +1 -0
  832. package/dist/paperless/p-57411b2b.entry.js +2 -0
  833. package/dist/paperless/p-57411b2b.entry.js.map +1 -0
  834. package/dist/paperless/p-58b52568.entry.js +2 -0
  835. package/dist/paperless/p-58b52568.entry.js.map +1 -0
  836. package/dist/paperless/p-5d118f66.entry.js +2 -0
  837. package/dist/paperless/p-5d118f66.entry.js.map +1 -0
  838. package/dist/paperless/p-6b7d2d41.entry.js +2 -0
  839. package/dist/paperless/p-6b7d2d41.entry.js.map +1 -0
  840. package/dist/paperless/p-6c60fd3d.js +2 -0
  841. package/dist/paperless/p-6c60fd3d.js.map +1 -0
  842. package/dist/paperless/p-6f82a1e7.entry.js +2 -0
  843. package/dist/paperless/p-6f82a1e7.entry.js.map +1 -0
  844. package/dist/paperless/p-6fd261ab.entry.js +2 -0
  845. package/dist/paperless/p-6fd261ab.entry.js.map +1 -0
  846. package/dist/paperless/p-7010541f.entry.js +2 -0
  847. package/dist/paperless/p-7010541f.entry.js.map +1 -0
  848. package/dist/paperless/p-756c06ec.entry.js +2 -0
  849. package/dist/paperless/p-756c06ec.entry.js.map +1 -0
  850. package/dist/paperless/p-78948e08.entry.js +2 -0
  851. package/dist/paperless/p-78948e08.entry.js.map +1 -0
  852. package/dist/paperless/p-78ce77d2.entry.js +2 -0
  853. package/dist/paperless/p-78ce77d2.entry.js.map +1 -0
  854. package/dist/paperless/p-7b94bc6a.entry.js +2 -0
  855. package/dist/paperless/p-7b94bc6a.entry.js.map +1 -0
  856. package/dist/paperless/p-8a6728d5.js +2 -0
  857. package/dist/paperless/p-8a6728d5.js.map +1 -0
  858. package/dist/paperless/p-8fb43cc7.entry.js +2 -0
  859. package/dist/paperless/p-8fb43cc7.entry.js.map +1 -0
  860. package/dist/paperless/p-93fb216c.entry.js +2 -0
  861. package/dist/paperless/p-93fb216c.entry.js.map +1 -0
  862. package/dist/paperless/p-9ee7b088.entry.js +2 -0
  863. package/dist/paperless/p-9ee7b088.entry.js.map +1 -0
  864. package/dist/paperless/p-a2bd1a79.entry.js +2 -0
  865. package/dist/paperless/p-a2bd1a79.entry.js.map +1 -0
  866. package/dist/paperless/p-a3fcf8b6.entry.js +2 -0
  867. package/dist/paperless/p-a3fcf8b6.entry.js.map +1 -0
  868. package/dist/paperless/p-a89bc06c.entry.js +2 -0
  869. package/dist/paperless/p-a89bc06c.entry.js.map +1 -0
  870. package/dist/paperless/p-ac1af618.js +3 -0
  871. package/dist/paperless/p-ac1af618.js.map +1 -0
  872. package/dist/paperless/p-ac7b48ff.entry.js +2 -0
  873. package/dist/paperless/p-ac7b48ff.entry.js.map +1 -0
  874. package/dist/paperless/p-b13a0ee4.entry.js +2 -0
  875. package/dist/paperless/p-b13a0ee4.entry.js.map +1 -0
  876. package/dist/paperless/p-b273ac6d.js +2 -0
  877. package/dist/paperless/p-b273ac6d.js.map +1 -0
  878. package/dist/paperless/p-b450d46f.entry.js +2 -0
  879. package/dist/paperless/p-b450d46f.entry.js.map +1 -0
  880. package/dist/paperless/p-b7b1de31.entry.js +2 -0
  881. package/dist/paperless/p-b7b1de31.entry.js.map +1 -0
  882. package/dist/paperless/p-bd85ff72.entry.js +2 -0
  883. package/dist/paperless/p-bd85ff72.entry.js.map +1 -0
  884. package/dist/paperless/p-befde602.entry.js +2 -0
  885. package/dist/paperless/p-befde602.entry.js.map +1 -0
  886. package/dist/paperless/p-c6ef7b79.entry.js +2 -0
  887. package/dist/paperless/p-c6ef7b79.entry.js.map +1 -0
  888. package/dist/paperless/p-cccc37c0.entry.js +2 -0
  889. package/dist/paperless/p-cccc37c0.entry.js.map +1 -0
  890. package/dist/paperless/p-d7d7f5d0.entry.js +2 -0
  891. package/dist/paperless/p-d7d7f5d0.entry.js.map +1 -0
  892. package/dist/paperless/p-dc01e9eb.entry.js +2 -0
  893. package/dist/paperless/p-dc01e9eb.entry.js.map +1 -0
  894. package/dist/paperless/p-dd2a50d0.entry.js +2 -0
  895. package/dist/paperless/p-dd2a50d0.entry.js.map +1 -0
  896. package/dist/paperless/p-e0f41dd5.entry.js +2 -0
  897. package/dist/paperless/p-e0f41dd5.entry.js.map +1 -0
  898. package/dist/paperless/p-e621e34c.js +2 -0
  899. package/dist/paperless/p-e621e34c.js.map +1 -0
  900. package/dist/paperless/p-ea824ef3.entry.js +2 -0
  901. package/dist/paperless/p-ea824ef3.entry.js.map +1 -0
  902. package/dist/paperless/p-ebc2ae62.entry.js +2 -0
  903. package/dist/paperless/p-ebc2ae62.entry.js.map +1 -0
  904. package/dist/paperless/p-f07793f6.entry.js +2 -0
  905. package/dist/paperless/p-f07793f6.entry.js.map +1 -0
  906. package/dist/paperless/paperless.css +980 -576
  907. package/dist/paperless/paperless.esm.js +2 -1
  908. package/dist/paperless/paperless.esm.js.map +1 -0
  909. package/dist/style/_fonts.scss +70 -0
  910. package/dist/style/_helpers.scss +5 -0
  911. package/dist/style/_mixins.scss +1 -0
  912. package/dist/style/_reset.scss +30 -0
  913. package/dist/style/_tailwind.scss +3 -0
  914. package/dist/style/_typograhpy.scss +29 -0
  915. package/dist/style/_variables.scss +2 -0
  916. package/dist/style/form/_checkbox.scss +111 -0
  917. package/dist/style/form/_input.scss +31 -0
  918. package/dist/style/form/_mixins.scss +108 -0
  919. package/dist/style/form/_radio.scss +58 -0
  920. package/dist/style/form/_textarea.scss +18 -0
  921. package/dist/style/form/index.scss +4 -0
  922. package/dist/style/mixins/_scrollbar.scss +32 -0
  923. package/dist/style/paperless.scss +12 -0
  924. package/dist/sw.js +2 -906
  925. package/dist/sw.js.map +1 -0
  926. package/dist/tailwind/animation.js +72 -2
  927. package/dist/tailwind/border-radius.js +1 -0
  928. package/dist/tailwind/height.js +5 -0
  929. package/dist/tailwind/plugins/safe-area.js +98 -0
  930. package/dist/tailwind/screens.js +8 -0
  931. package/dist/tailwind/shadows.js +11 -5
  932. package/dist/tailwind/spacing.js +10 -0
  933. package/dist/tailwind/width.js +20 -0
  934. package/dist/tailwind/z-index.js +15 -1
  935. package/dist/tailwind.config.js +14 -3
  936. package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
  937. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  938. package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
  939. package/dist/types/components/atoms/button/button.component.d.ts +5 -1
  940. package/dist/types/components/atoms/card-container/card-container.component.d.ts +4 -0
  941. package/dist/types/components/atoms/card-header/card-header.component.d.ts +2 -2
  942. package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
  943. package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
  944. package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
  945. package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
  946. package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
  947. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +8 -0
  948. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +9 -0
  949. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  950. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  951. package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
  952. package/dist/types/components/atoms/label/label.component.d.ts +33 -0
  953. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  954. package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
  955. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +4 -0
  956. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +4 -0
  957. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +9 -0
  958. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
  959. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
  960. package/dist/types/components/atoms/status/status.component.d.ts +1 -1
  961. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +23 -0
  962. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  963. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  964. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  965. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  966. package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
  967. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +14 -4
  968. package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
  969. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  970. package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
  971. package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
  972. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
  973. package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +93 -0
  974. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +33 -5
  975. package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
  976. package/dist/types/components/molecules/input-group/input-group.component.d.ts +68 -0
  977. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  978. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
  979. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  980. package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
  981. package/dist/types/components/molecules/select/select.component.d.ts +139 -0
  982. package/dist/types/components/molecules/stepper/stepper.component.d.ts +21 -0
  983. package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
  984. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
  985. package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
  986. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  987. package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
  988. package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
  989. package/dist/types/components/organisms/modal/modal.component.d.ts +58 -0
  990. package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
  991. package/dist/types/components/organisms/table/table.component.d.ts +240 -0
  992. package/dist/types/components.d.ts +2788 -275
  993. package/dist/types/index.d.ts +2 -0
  994. package/dist/types/stencil-public-runtime.d.ts +91 -19
  995. package/dist/types/types/index.d.ts +2 -0
  996. package/dist/types/types/table.d.ts +27 -0
  997. package/dist/types/types/tailwind.d.ts +2 -0
  998. package/dist/types/utils/icons.d.ts +7 -0
  999. package/dist/types/utils/illustrations.d.ts +4 -0
  1000. package/dist/types/utils/index.d.ts +6 -0
  1001. package/dist/types/utils/localization.d.ts +2 -0
  1002. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  1003. package/dist/types/utils/transformers.d.ts +2 -0
  1004. package/dist/workbox-5b279812.js +2 -0
  1005. package/dist/workbox-5b279812.js.map +1 -0
  1006. package/hydrate/index.d.ts +218 -0
  1007. package/hydrate/index.js +22266 -0
  1008. package/hydrate/package.json +6 -0
  1009. package/loader/index.d.ts +9 -0
  1010. package/loader/package.json +1 -0
  1011. package/package.json +28 -22
  1012. package/dist/build/p-0100c1a2.js +0 -2
  1013. package/dist/build/p-11d24001.entry.js +0 -1
  1014. package/dist/build/p-19d84fe7.entry.js +0 -1
  1015. package/dist/build/p-2120a0b7.entry.js +0 -1
  1016. package/dist/build/p-3b491ca2.entry.js +0 -1
  1017. package/dist/build/p-3f6d3736.entry.js +0 -1
  1018. package/dist/build/p-463f354c.entry.js +0 -1
  1019. package/dist/build/p-4a85b858.entry.js +0 -1
  1020. package/dist/build/p-5101f35f.entry.js +0 -1
  1021. package/dist/build/p-5438d70e.entry.js +0 -1
  1022. package/dist/build/p-63e5f5e1.entry.js +0 -1
  1023. package/dist/build/p-67fc89a6.entry.js +0 -1
  1024. package/dist/build/p-6e60b92a.entry.js +0 -1
  1025. package/dist/build/p-7784ee14.entry.js +0 -1
  1026. package/dist/build/p-864ac423.entry.js +0 -1
  1027. package/dist/build/p-94cef335.entry.js +0 -1
  1028. package/dist/build/p-a7086ffa.js +0 -1
  1029. package/dist/build/p-b68368f3.entry.js +0 -1
  1030. package/dist/build/p-c64e2313.entry.js +0 -1
  1031. package/dist/build/p-ccbddcbb.entry.js +0 -1
  1032. package/dist/build/p-d069673f.entry.js +0 -1
  1033. package/dist/build/p-f50c6e5b.entry.js +0 -1
  1034. package/dist/build/p-fb1e33eb.entry.js +0 -1
  1035. package/dist/build/p-ffeed7c6.entry.js +0 -1
  1036. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
  1037. package/dist/cjs/p-dropdown.cjs.entry.js +0 -141
  1038. package/dist/cjs/p-helper.cjs.entry.js +0 -19
  1039. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +0 -92
  1040. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  1041. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  1042. package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
  1043. package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
  1044. package/dist/cjs/popper-e0c4ed4c.js +0 -1790
  1045. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +0 -7
  1046. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +0 -15
  1047. package/dist/collection/components/molecules/modal/modal.component.js +0 -111
  1048. package/dist/collection/tailwind/grid.js +0 -26
  1049. package/dist/collection/utils/types.js +0 -1
  1050. package/dist/collection/utils/utils.js +0 -3
  1051. package/dist/components/modal-backdrop.component.js +0 -30
  1052. package/dist/components/p-modal-backdrop.js +0 -6
  1053. package/dist/components/popper.js +0 -1788
  1054. package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
  1055. package/dist/esm/p-dropdown.entry.js +0 -137
  1056. package/dist/esm/p-helper.entry.js +0 -15
  1057. package/dist/esm/p-modal-backdrop_5.entry.js +0 -84
  1058. package/dist/esm/p-pagination-item.entry.js +0 -19
  1059. package/dist/esm/p-pagination.entry.js +0 -167
  1060. package/dist/esm/p-segment-container.entry.js +0 -15
  1061. package/dist/esm/p-segment-item.entry.js +0 -25
  1062. package/dist/esm/popper-41c6f9cd.js +0 -1788
  1063. package/dist/paperless/p-0100c1a2.js +0 -2
  1064. package/dist/paperless/p-11d24001.entry.js +0 -1
  1065. package/dist/paperless/p-19d84fe7.entry.js +0 -1
  1066. package/dist/paperless/p-2120a0b7.entry.js +0 -1
  1067. package/dist/paperless/p-3b491ca2.entry.js +0 -1
  1068. package/dist/paperless/p-3f6d3736.entry.js +0 -1
  1069. package/dist/paperless/p-463f354c.entry.js +0 -1
  1070. package/dist/paperless/p-4a85b858.entry.js +0 -1
  1071. package/dist/paperless/p-5101f35f.entry.js +0 -1
  1072. package/dist/paperless/p-5438d70e.entry.js +0 -1
  1073. package/dist/paperless/p-63e5f5e1.entry.js +0 -1
  1074. package/dist/paperless/p-67fc89a6.entry.js +0 -1
  1075. package/dist/paperless/p-6e60b92a.entry.js +0 -1
  1076. package/dist/paperless/p-7784ee14.entry.js +0 -1
  1077. package/dist/paperless/p-864ac423.entry.js +0 -1
  1078. package/dist/paperless/p-94cef335.entry.js +0 -1
  1079. package/dist/paperless/p-a7086ffa.js +0 -1
  1080. package/dist/paperless/p-b68368f3.entry.js +0 -1
  1081. package/dist/paperless/p-c64e2313.entry.js +0 -1
  1082. package/dist/paperless/p-ccbddcbb.entry.js +0 -1
  1083. package/dist/paperless/p-d069673f.entry.js +0 -1
  1084. package/dist/paperless/p-f50c6e5b.entry.js +0 -1
  1085. package/dist/paperless/p-fb1e33eb.entry.js +0 -1
  1086. package/dist/paperless/p-ffeed7c6.entry.js +0 -1
  1087. package/dist/tailwind/grid.js +0 -26
  1088. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +0 -3
  1089. package/dist/types/components/molecules/modal/modal.component.d.ts +0 -25
  1090. package/dist/types/utils/types.d.ts +0 -2
  1091. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,4079 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-94339e77.js';
2
+ import { c as childOf } from './child-of-90a8c4b5.js';
3
+ import { g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as requiredArgs, t as toDate, b as getUTCWeek, c as toInteger, d as getUTCISOWeek, e as getDefaultOptions, l as longFormatters, f as subMilliseconds, h as getTimezoneOffsetInMilliseconds, i as locale, j as isProtectedWeekYearToken, k as throwProtectedError, m as isProtectedDayOfYearToken, n as format, o as isValid, p as isBefore, q as isAfter, u as startOfDay, v as isSameDay } from './index-340e085c.js';
4
+
5
+ /**
6
+ * Days in 1 week.
7
+ *
8
+ * @name daysInWeek
9
+ * @constant
10
+ * @type {number}
11
+ * @default
12
+ */
13
+ /**
14
+ * Milliseconds in 1 minute
15
+ *
16
+ * @name millisecondsInMinute
17
+ * @constant
18
+ * @type {number}
19
+ * @default
20
+ */
21
+
22
+ var millisecondsInMinute = 60000;
23
+ /**
24
+ * Milliseconds in 1 hour
25
+ *
26
+ * @name millisecondsInHour
27
+ * @constant
28
+ * @type {number}
29
+ * @default
30
+ */
31
+
32
+ var millisecondsInHour = 3600000;
33
+ /**
34
+ * Milliseconds in 1 second
35
+ *
36
+ * @name millisecondsInSecond
37
+ * @constant
38
+ * @type {number}
39
+ * @default
40
+ */
41
+
42
+ var millisecondsInSecond = 1000;
43
+
44
+ function assign(target, object) {
45
+ if (target == null) {
46
+ throw new TypeError('assign requires that input parameter not be null or undefined');
47
+ }
48
+
49
+ for (var property in object) {
50
+ if (Object.prototype.hasOwnProperty.call(object, property)) {
51
+ target[property] = object[property];
52
+ }
53
+ }
54
+
55
+ return target;
56
+ }
57
+
58
+ function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$w = function _typeof(obj) { return typeof obj; }; } else { _typeof$w = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$w(obj); }
59
+
60
+ function _inherits$v(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$v(subClass, superClass); }
61
+
62
+ function _setPrototypeOf$v(o, p) { _setPrototypeOf$v = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$v(o, p); }
63
+
64
+ function _createSuper$v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$v(); return function _createSuperInternal() { var Super = _getPrototypeOf$v(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$v(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$v(this, result); }; }
65
+
66
+ function _possibleConstructorReturn$v(self, call) { if (call && (_typeof$w(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$v(self); }
67
+
68
+ function _assertThisInitialized$v(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
69
+
70
+ function _isNativeReflectConstruct$v() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
71
+
72
+ function _getPrototypeOf$v(o) { _getPrototypeOf$v = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$v(o); }
73
+
74
+ function _classCallCheck$w(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
75
+
76
+ function _defineProperties$w(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
77
+
78
+ function _createClass$w(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$w(Constructor.prototype, protoProps); if (staticProps) _defineProperties$w(Constructor, staticProps); return Constructor; }
79
+
80
+ function _defineProperty$v(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
81
+
82
+ var TIMEZONE_UNIT_PRIORITY = 10;
83
+ var Setter = /*#__PURE__*/function () {
84
+ function Setter() {
85
+ _classCallCheck$w(this, Setter);
86
+
87
+ _defineProperty$v(this, "subPriority", 0);
88
+ }
89
+
90
+ _createClass$w(Setter, [{
91
+ key: "validate",
92
+ value: function validate(_utcDate, _options) {
93
+ return true;
94
+ }
95
+ }]);
96
+
97
+ return Setter;
98
+ }();
99
+ var ValueSetter = /*#__PURE__*/function (_Setter) {
100
+ _inherits$v(ValueSetter, _Setter);
101
+
102
+ var _super = _createSuper$v(ValueSetter);
103
+
104
+ function ValueSetter(value, validateValue, setValue, priority, subPriority) {
105
+ var _this;
106
+
107
+ _classCallCheck$w(this, ValueSetter);
108
+
109
+ _this = _super.call(this);
110
+ _this.value = value;
111
+ _this.validateValue = validateValue;
112
+ _this.setValue = setValue;
113
+ _this.priority = priority;
114
+
115
+ if (subPriority) {
116
+ _this.subPriority = subPriority;
117
+ }
118
+
119
+ return _this;
120
+ }
121
+
122
+ _createClass$w(ValueSetter, [{
123
+ key: "validate",
124
+ value: function validate(utcDate, options) {
125
+ return this.validateValue(utcDate, this.value, options);
126
+ }
127
+ }, {
128
+ key: "set",
129
+ value: function set(utcDate, flags, options) {
130
+ return this.setValue(utcDate, flags, this.value, options);
131
+ }
132
+ }]);
133
+
134
+ return ValueSetter;
135
+ }(Setter);
136
+ var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) {
137
+ _inherits$v(DateToSystemTimezoneSetter, _Setter2);
138
+
139
+ var _super2 = _createSuper$v(DateToSystemTimezoneSetter);
140
+
141
+ function DateToSystemTimezoneSetter() {
142
+ var _this2;
143
+
144
+ _classCallCheck$w(this, DateToSystemTimezoneSetter);
145
+
146
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
147
+ args[_key] = arguments[_key];
148
+ }
149
+
150
+ _this2 = _super2.call.apply(_super2, [this].concat(args));
151
+
152
+ _defineProperty$v(_assertThisInitialized$v(_this2), "priority", TIMEZONE_UNIT_PRIORITY);
153
+
154
+ _defineProperty$v(_assertThisInitialized$v(_this2), "subPriority", -1);
155
+
156
+ return _this2;
157
+ }
158
+
159
+ _createClass$w(DateToSystemTimezoneSetter, [{
160
+ key: "set",
161
+ value: function set(date, flags) {
162
+ if (flags.timestampIsSet) {
163
+ return date;
164
+ }
165
+
166
+ var convertedDate = new Date(0);
167
+ convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
168
+ convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
169
+ return convertedDate;
170
+ }
171
+ }]);
172
+
173
+ return DateToSystemTimezoneSetter;
174
+ }(Setter);
175
+
176
+ function _classCallCheck$v(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
177
+
178
+ function _defineProperties$v(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
179
+
180
+ function _createClass$v(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$v(Constructor.prototype, protoProps); if (staticProps) _defineProperties$v(Constructor, staticProps); return Constructor; }
181
+ var Parser = /*#__PURE__*/function () {
182
+ function Parser() {
183
+ _classCallCheck$v(this, Parser);
184
+ }
185
+
186
+ _createClass$v(Parser, [{
187
+ key: "run",
188
+ value: function run(dateString, token, match, options) {
189
+ var result = this.parse(dateString, token, match, options);
190
+
191
+ if (!result) {
192
+ return null;
193
+ }
194
+
195
+ return {
196
+ setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),
197
+ rest: result.rest
198
+ };
199
+ }
200
+ }, {
201
+ key: "validate",
202
+ value: function validate(_utcDate, _value, _options) {
203
+ return true;
204
+ }
205
+ }]);
206
+
207
+ return Parser;
208
+ }();
209
+
210
+ function _typeof$v(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$v = function _typeof(obj) { return typeof obj; }; } else { _typeof$v = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$v(obj); }
211
+
212
+ function _classCallCheck$u(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
213
+
214
+ function _defineProperties$u(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
215
+
216
+ function _createClass$u(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$u(Constructor.prototype, protoProps); if (staticProps) _defineProperties$u(Constructor, staticProps); return Constructor; }
217
+
218
+ function _inherits$u(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$u(subClass, superClass); }
219
+
220
+ function _setPrototypeOf$u(o, p) { _setPrototypeOf$u = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$u(o, p); }
221
+
222
+ function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf$u(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$u(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$u(this, result); }; }
223
+
224
+ function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
225
+
226
+ function _assertThisInitialized$u(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
227
+
228
+ function _isNativeReflectConstruct$u() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
229
+
230
+ function _getPrototypeOf$u(o) { _getPrototypeOf$u = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$u(o); }
231
+
232
+ function _defineProperty$u(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
233
+ var EraParser = /*#__PURE__*/function (_Parser) {
234
+ _inherits$u(EraParser, _Parser);
235
+
236
+ var _super = _createSuper$u(EraParser);
237
+
238
+ function EraParser() {
239
+ var _this;
240
+
241
+ _classCallCheck$u(this, EraParser);
242
+
243
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
244
+ args[_key] = arguments[_key];
245
+ }
246
+
247
+ _this = _super.call.apply(_super, [this].concat(args));
248
+
249
+ _defineProperty$u(_assertThisInitialized$u(_this), "priority", 140);
250
+
251
+ _defineProperty$u(_assertThisInitialized$u(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
252
+
253
+ return _this;
254
+ }
255
+
256
+ _createClass$u(EraParser, [{
257
+ key: "parse",
258
+ value: function parse(dateString, token, match) {
259
+ switch (token) {
260
+ // AD, BC
261
+ case 'G':
262
+ case 'GG':
263
+ case 'GGG':
264
+ return match.era(dateString, {
265
+ width: 'abbreviated'
266
+ }) || match.era(dateString, {
267
+ width: 'narrow'
268
+ });
269
+ // A, B
270
+
271
+ case 'GGGGG':
272
+ return match.era(dateString, {
273
+ width: 'narrow'
274
+ });
275
+ // Anno Domini, Before Christ
276
+
277
+ case 'GGGG':
278
+ default:
279
+ return match.era(dateString, {
280
+ width: 'wide'
281
+ }) || match.era(dateString, {
282
+ width: 'abbreviated'
283
+ }) || match.era(dateString, {
284
+ width: 'narrow'
285
+ });
286
+ }
287
+ }
288
+ }, {
289
+ key: "set",
290
+ value: function set(date, flags, value) {
291
+ flags.era = value;
292
+ date.setUTCFullYear(value, 0, 1);
293
+ date.setUTCHours(0, 0, 0, 0);
294
+ return date;
295
+ }
296
+ }]);
297
+
298
+ return EraParser;
299
+ }(Parser);
300
+
301
+ var numericPatterns = {
302
+ month: /^(1[0-2]|0?\d)/,
303
+ // 0 to 12
304
+ date: /^(3[0-1]|[0-2]?\d)/,
305
+ // 0 to 31
306
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
307
+ // 0 to 366
308
+ week: /^(5[0-3]|[0-4]?\d)/,
309
+ // 0 to 53
310
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
311
+ // 0 to 23
312
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
313
+ // 0 to 24
314
+ hour11h: /^(1[0-1]|0?\d)/,
315
+ // 0 to 11
316
+ hour12h: /^(1[0-2]|0?\d)/,
317
+ // 0 to 12
318
+ minute: /^[0-5]?\d/,
319
+ // 0 to 59
320
+ second: /^[0-5]?\d/,
321
+ // 0 to 59
322
+ singleDigit: /^\d/,
323
+ // 0 to 9
324
+ twoDigits: /^\d{1,2}/,
325
+ // 0 to 99
326
+ threeDigits: /^\d{1,3}/,
327
+ // 0 to 999
328
+ fourDigits: /^\d{1,4}/,
329
+ // 0 to 9999
330
+ anyDigitsSigned: /^-?\d+/,
331
+ singleDigitSigned: /^-?\d/,
332
+ // 0 to 9, -0 to -9
333
+ twoDigitsSigned: /^-?\d{1,2}/,
334
+ // 0 to 99, -0 to -99
335
+ threeDigitsSigned: /^-?\d{1,3}/,
336
+ // 0 to 999, -0 to -999
337
+ fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
338
+
339
+ };
340
+ var timezonePatterns = {
341
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
342
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
343
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
344
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
345
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
346
+ };
347
+
348
+ function mapValue(parseFnResult, mapFn) {
349
+ if (!parseFnResult) {
350
+ return parseFnResult;
351
+ }
352
+
353
+ return {
354
+ value: mapFn(parseFnResult.value),
355
+ rest: parseFnResult.rest
356
+ };
357
+ }
358
+ function parseNumericPattern(pattern, dateString) {
359
+ var matchResult = dateString.match(pattern);
360
+
361
+ if (!matchResult) {
362
+ return null;
363
+ }
364
+
365
+ return {
366
+ value: parseInt(matchResult[0], 10),
367
+ rest: dateString.slice(matchResult[0].length)
368
+ };
369
+ }
370
+ function parseTimezonePattern(pattern, dateString) {
371
+ var matchResult = dateString.match(pattern);
372
+
373
+ if (!matchResult) {
374
+ return null;
375
+ } // Input is 'Z'
376
+
377
+
378
+ if (matchResult[0] === 'Z') {
379
+ return {
380
+ value: 0,
381
+ rest: dateString.slice(1)
382
+ };
383
+ }
384
+
385
+ var sign = matchResult[1] === '+' ? 1 : -1;
386
+ var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
387
+ var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
388
+ var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
389
+ return {
390
+ value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond),
391
+ rest: dateString.slice(matchResult[0].length)
392
+ };
393
+ }
394
+ function parseAnyDigitsSigned(dateString) {
395
+ return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
396
+ }
397
+ function parseNDigits(n, dateString) {
398
+ switch (n) {
399
+ case 1:
400
+ return parseNumericPattern(numericPatterns.singleDigit, dateString);
401
+
402
+ case 2:
403
+ return parseNumericPattern(numericPatterns.twoDigits, dateString);
404
+
405
+ case 3:
406
+ return parseNumericPattern(numericPatterns.threeDigits, dateString);
407
+
408
+ case 4:
409
+ return parseNumericPattern(numericPatterns.fourDigits, dateString);
410
+
411
+ default:
412
+ return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString);
413
+ }
414
+ }
415
+ function parseNDigitsSigned(n, dateString) {
416
+ switch (n) {
417
+ case 1:
418
+ return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
419
+
420
+ case 2:
421
+ return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
422
+
423
+ case 3:
424
+ return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
425
+
426
+ case 4:
427
+ return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
428
+
429
+ default:
430
+ return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString);
431
+ }
432
+ }
433
+ function dayPeriodEnumToHours(dayPeriod) {
434
+ switch (dayPeriod) {
435
+ case 'morning':
436
+ return 4;
437
+
438
+ case 'evening':
439
+ return 17;
440
+
441
+ case 'pm':
442
+ case 'noon':
443
+ case 'afternoon':
444
+ return 12;
445
+
446
+ case 'am':
447
+ case 'midnight':
448
+ case 'night':
449
+ default:
450
+ return 0;
451
+ }
452
+ }
453
+ function normalizeTwoDigitYear(twoDigitYear, currentYear) {
454
+ var isCommonEra = currentYear > 0; // Absolute number of the current year:
455
+ // 1 -> 1 AC
456
+ // 0 -> 1 BC
457
+ // -1 -> 2 BC
458
+
459
+ var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
460
+ var result;
461
+
462
+ if (absCurrentYear <= 50) {
463
+ result = twoDigitYear || 100;
464
+ } else {
465
+ var rangeEnd = absCurrentYear + 50;
466
+ var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
467
+ var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
468
+ result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
469
+ }
470
+
471
+ return isCommonEra ? result : 1 - result;
472
+ }
473
+ function isLeapYearIndex(year) {
474
+ return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
475
+ }
476
+
477
+ function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
478
+
479
+ function _classCallCheck$t(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
480
+
481
+ function _defineProperties$t(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
482
+
483
+ function _createClass$t(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$t(Constructor.prototype, protoProps); if (staticProps) _defineProperties$t(Constructor, staticProps); return Constructor; }
484
+
485
+ function _inherits$t(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$t(subClass, superClass); }
486
+
487
+ function _setPrototypeOf$t(o, p) { _setPrototypeOf$t = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$t(o, p); }
488
+
489
+ function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf$t(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$t(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$t(this, result); }; }
490
+
491
+ function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
492
+
493
+ function _assertThisInitialized$t(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
494
+
495
+ function _isNativeReflectConstruct$t() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
496
+
497
+ function _getPrototypeOf$t(o) { _getPrototypeOf$t = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$t(o); }
498
+
499
+ function _defineProperty$t(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
500
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
501
+ // | Year | y | yy | yyy | yyyy | yyyyy |
502
+ // |----------|-------|----|-------|-------|-------|
503
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
504
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
505
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
506
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
507
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
508
+ var YearParser = /*#__PURE__*/function (_Parser) {
509
+ _inherits$t(YearParser, _Parser);
510
+
511
+ var _super = _createSuper$t(YearParser);
512
+
513
+ function YearParser() {
514
+ var _this;
515
+
516
+ _classCallCheck$t(this, YearParser);
517
+
518
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
519
+ args[_key] = arguments[_key];
520
+ }
521
+
522
+ _this = _super.call.apply(_super, [this].concat(args));
523
+
524
+ _defineProperty$t(_assertThisInitialized$t(_this), "priority", 130);
525
+
526
+ _defineProperty$t(_assertThisInitialized$t(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
527
+
528
+ return _this;
529
+ }
530
+
531
+ _createClass$t(YearParser, [{
532
+ key: "parse",
533
+ value: function parse(dateString, token, match) {
534
+ var valueCallback = function valueCallback(year) {
535
+ return {
536
+ year: year,
537
+ isTwoDigitYear: token === 'yy'
538
+ };
539
+ };
540
+
541
+ switch (token) {
542
+ case 'y':
543
+ return mapValue(parseNDigits(4, dateString), valueCallback);
544
+
545
+ case 'yo':
546
+ return mapValue(match.ordinalNumber(dateString, {
547
+ unit: 'year'
548
+ }), valueCallback);
549
+
550
+ default:
551
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
552
+ }
553
+ }
554
+ }, {
555
+ key: "validate",
556
+ value: function validate(_date, value) {
557
+ return value.isTwoDigitYear || value.year > 0;
558
+ }
559
+ }, {
560
+ key: "set",
561
+ value: function set(date, flags, value) {
562
+ var currentYear = date.getUTCFullYear();
563
+
564
+ if (value.isTwoDigitYear) {
565
+ var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
566
+ date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
567
+ date.setUTCHours(0, 0, 0, 0);
568
+ return date;
569
+ }
570
+
571
+ var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
572
+ date.setUTCFullYear(year, 0, 1);
573
+ date.setUTCHours(0, 0, 0, 0);
574
+ return date;
575
+ }
576
+ }]);
577
+
578
+ return YearParser;
579
+ }(Parser);
580
+
581
+ function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
582
+
583
+ function _classCallCheck$s(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
584
+
585
+ function _defineProperties$s(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
586
+
587
+ function _createClass$s(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$s(Constructor.prototype, protoProps); if (staticProps) _defineProperties$s(Constructor, staticProps); return Constructor; }
588
+
589
+ function _inherits$s(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$s(subClass, superClass); }
590
+
591
+ function _setPrototypeOf$s(o, p) { _setPrototypeOf$s = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$s(o, p); }
592
+
593
+ function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf$s(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$s(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$s(this, result); }; }
594
+
595
+ function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
596
+
597
+ function _assertThisInitialized$s(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
598
+
599
+ function _isNativeReflectConstruct$s() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
600
+
601
+ function _getPrototypeOf$s(o) { _getPrototypeOf$s = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$s(o); }
602
+
603
+ function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
604
+ // Local week-numbering year
605
+ var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
606
+ _inherits$s(LocalWeekYearParser, _Parser);
607
+
608
+ var _super = _createSuper$s(LocalWeekYearParser);
609
+
610
+ function LocalWeekYearParser() {
611
+ var _this;
612
+
613
+ _classCallCheck$s(this, LocalWeekYearParser);
614
+
615
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
616
+ args[_key] = arguments[_key];
617
+ }
618
+
619
+ _this = _super.call.apply(_super, [this].concat(args));
620
+
621
+ _defineProperty$s(_assertThisInitialized$s(_this), "priority", 130);
622
+
623
+ _defineProperty$s(_assertThisInitialized$s(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
624
+
625
+ return _this;
626
+ }
627
+
628
+ _createClass$s(LocalWeekYearParser, [{
629
+ key: "parse",
630
+ value: function parse(dateString, token, match) {
631
+ var valueCallback = function valueCallback(year) {
632
+ return {
633
+ year: year,
634
+ isTwoDigitYear: token === 'YY'
635
+ };
636
+ };
637
+
638
+ switch (token) {
639
+ case 'Y':
640
+ return mapValue(parseNDigits(4, dateString), valueCallback);
641
+
642
+ case 'Yo':
643
+ return mapValue(match.ordinalNumber(dateString, {
644
+ unit: 'year'
645
+ }), valueCallback);
646
+
647
+ default:
648
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
649
+ }
650
+ }
651
+ }, {
652
+ key: "validate",
653
+ value: function validate(_date, value) {
654
+ return value.isTwoDigitYear || value.year > 0;
655
+ }
656
+ }, {
657
+ key: "set",
658
+ value: function set(date, flags, value, options) {
659
+ var currentYear = getUTCWeekYear(date, options);
660
+
661
+ if (value.isTwoDigitYear) {
662
+ var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
663
+ date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
664
+ date.setUTCHours(0, 0, 0, 0);
665
+ return startOfUTCWeek(date, options);
666
+ }
667
+
668
+ var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
669
+ date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
670
+ date.setUTCHours(0, 0, 0, 0);
671
+ return startOfUTCWeek(date, options);
672
+ }
673
+ }]);
674
+
675
+ return LocalWeekYearParser;
676
+ }(Parser);
677
+
678
+ function _typeof$s(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$s = function _typeof(obj) { return typeof obj; }; } else { _typeof$s = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$s(obj); }
679
+
680
+ function _classCallCheck$r(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
681
+
682
+ function _defineProperties$r(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
683
+
684
+ function _createClass$r(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$r(Constructor.prototype, protoProps); if (staticProps) _defineProperties$r(Constructor, staticProps); return Constructor; }
685
+
686
+ function _inherits$r(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$r(subClass, superClass); }
687
+
688
+ function _setPrototypeOf$r(o, p) { _setPrototypeOf$r = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$r(o, p); }
689
+
690
+ function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf$r(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$r(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$r(this, result); }; }
691
+
692
+ function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
693
+
694
+ function _assertThisInitialized$r(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
695
+
696
+ function _isNativeReflectConstruct$r() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
697
+
698
+ function _getPrototypeOf$r(o) { _getPrototypeOf$r = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$r(o); }
699
+
700
+ function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
701
+
702
+ var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
703
+ _inherits$r(ISOWeekYearParser, _Parser);
704
+
705
+ var _super = _createSuper$r(ISOWeekYearParser);
706
+
707
+ function ISOWeekYearParser() {
708
+ var _this;
709
+
710
+ _classCallCheck$r(this, ISOWeekYearParser);
711
+
712
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
713
+ args[_key] = arguments[_key];
714
+ }
715
+
716
+ _this = _super.call.apply(_super, [this].concat(args));
717
+
718
+ _defineProperty$r(_assertThisInitialized$r(_this), "priority", 130);
719
+
720
+ _defineProperty$r(_assertThisInitialized$r(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
721
+
722
+ return _this;
723
+ }
724
+
725
+ _createClass$r(ISOWeekYearParser, [{
726
+ key: "parse",
727
+ value: function parse(dateString, token) {
728
+ if (token === 'R') {
729
+ return parseNDigitsSigned(4, dateString);
730
+ }
731
+
732
+ return parseNDigitsSigned(token.length, dateString);
733
+ }
734
+ }, {
735
+ key: "set",
736
+ value: function set(_date, _flags, value) {
737
+ var firstWeekOfYear = new Date(0);
738
+ firstWeekOfYear.setUTCFullYear(value, 0, 4);
739
+ firstWeekOfYear.setUTCHours(0, 0, 0, 0);
740
+ return startOfUTCISOWeek(firstWeekOfYear);
741
+ }
742
+ }]);
743
+
744
+ return ISOWeekYearParser;
745
+ }(Parser);
746
+
747
+ function _typeof$r(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$r = function _typeof(obj) { return typeof obj; }; } else { _typeof$r = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$r(obj); }
748
+
749
+ function _classCallCheck$q(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
750
+
751
+ function _defineProperties$q(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
752
+
753
+ function _createClass$q(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$q(Constructor.prototype, protoProps); if (staticProps) _defineProperties$q(Constructor, staticProps); return Constructor; }
754
+
755
+ function _inherits$q(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$q(subClass, superClass); }
756
+
757
+ function _setPrototypeOf$q(o, p) { _setPrototypeOf$q = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$q(o, p); }
758
+
759
+ function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf$q(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$q(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$q(this, result); }; }
760
+
761
+ function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
762
+
763
+ function _assertThisInitialized$q(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
764
+
765
+ function _isNativeReflectConstruct$q() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
766
+
767
+ function _getPrototypeOf$q(o) { _getPrototypeOf$q = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$q(o); }
768
+
769
+ function _defineProperty$q(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
770
+ var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
771
+ _inherits$q(ExtendedYearParser, _Parser);
772
+
773
+ var _super = _createSuper$q(ExtendedYearParser);
774
+
775
+ function ExtendedYearParser() {
776
+ var _this;
777
+
778
+ _classCallCheck$q(this, ExtendedYearParser);
779
+
780
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
781
+ args[_key] = arguments[_key];
782
+ }
783
+
784
+ _this = _super.call.apply(_super, [this].concat(args));
785
+
786
+ _defineProperty$q(_assertThisInitialized$q(_this), "priority", 130);
787
+
788
+ _defineProperty$q(_assertThisInitialized$q(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
789
+
790
+ return _this;
791
+ }
792
+
793
+ _createClass$q(ExtendedYearParser, [{
794
+ key: "parse",
795
+ value: function parse(dateString, token) {
796
+ if (token === 'u') {
797
+ return parseNDigitsSigned(4, dateString);
798
+ }
799
+
800
+ return parseNDigitsSigned(token.length, dateString);
801
+ }
802
+ }, {
803
+ key: "set",
804
+ value: function set(date, _flags, value) {
805
+ date.setUTCFullYear(value, 0, 1);
806
+ date.setUTCHours(0, 0, 0, 0);
807
+ return date;
808
+ }
809
+ }]);
810
+
811
+ return ExtendedYearParser;
812
+ }(Parser);
813
+
814
+ function _typeof$q(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$q = function _typeof(obj) { return typeof obj; }; } else { _typeof$q = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$q(obj); }
815
+
816
+ function _classCallCheck$p(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
817
+
818
+ function _defineProperties$p(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
819
+
820
+ function _createClass$p(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$p(Constructor.prototype, protoProps); if (staticProps) _defineProperties$p(Constructor, staticProps); return Constructor; }
821
+
822
+ function _inherits$p(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$p(subClass, superClass); }
823
+
824
+ function _setPrototypeOf$p(o, p) { _setPrototypeOf$p = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$p(o, p); }
825
+
826
+ function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf$p(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$p(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$p(this, result); }; }
827
+
828
+ function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
829
+
830
+ function _assertThisInitialized$p(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
831
+
832
+ function _isNativeReflectConstruct$p() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
833
+
834
+ function _getPrototypeOf$p(o) { _getPrototypeOf$p = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$p(o); }
835
+
836
+ function _defineProperty$p(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
837
+ var QuarterParser = /*#__PURE__*/function (_Parser) {
838
+ _inherits$p(QuarterParser, _Parser);
839
+
840
+ var _super = _createSuper$p(QuarterParser);
841
+
842
+ function QuarterParser() {
843
+ var _this;
844
+
845
+ _classCallCheck$p(this, QuarterParser);
846
+
847
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
848
+ args[_key] = arguments[_key];
849
+ }
850
+
851
+ _this = _super.call.apply(_super, [this].concat(args));
852
+
853
+ _defineProperty$p(_assertThisInitialized$p(_this), "priority", 120);
854
+
855
+ _defineProperty$p(_assertThisInitialized$p(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
856
+
857
+ return _this;
858
+ }
859
+
860
+ _createClass$p(QuarterParser, [{
861
+ key: "parse",
862
+ value: function parse(dateString, token, match) {
863
+ switch (token) {
864
+ // 1, 2, 3, 4
865
+ case 'Q':
866
+ case 'QQ':
867
+ // 01, 02, 03, 04
868
+ return parseNDigits(token.length, dateString);
869
+ // 1st, 2nd, 3rd, 4th
870
+
871
+ case 'Qo':
872
+ return match.ordinalNumber(dateString, {
873
+ unit: 'quarter'
874
+ });
875
+ // Q1, Q2, Q3, Q4
876
+
877
+ case 'QQQ':
878
+ return match.quarter(dateString, {
879
+ width: 'abbreviated',
880
+ context: 'formatting'
881
+ }) || match.quarter(dateString, {
882
+ width: 'narrow',
883
+ context: 'formatting'
884
+ });
885
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
886
+
887
+ case 'QQQQQ':
888
+ return match.quarter(dateString, {
889
+ width: 'narrow',
890
+ context: 'formatting'
891
+ });
892
+ // 1st quarter, 2nd quarter, ...
893
+
894
+ case 'QQQQ':
895
+ default:
896
+ return match.quarter(dateString, {
897
+ width: 'wide',
898
+ context: 'formatting'
899
+ }) || match.quarter(dateString, {
900
+ width: 'abbreviated',
901
+ context: 'formatting'
902
+ }) || match.quarter(dateString, {
903
+ width: 'narrow',
904
+ context: 'formatting'
905
+ });
906
+ }
907
+ }
908
+ }, {
909
+ key: "validate",
910
+ value: function validate(_date, value) {
911
+ return value >= 1 && value <= 4;
912
+ }
913
+ }, {
914
+ key: "set",
915
+ value: function set(date, _flags, value) {
916
+ date.setUTCMonth((value - 1) * 3, 1);
917
+ date.setUTCHours(0, 0, 0, 0);
918
+ return date;
919
+ }
920
+ }]);
921
+
922
+ return QuarterParser;
923
+ }(Parser);
924
+
925
+ function _typeof$p(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$p = function _typeof(obj) { return typeof obj; }; } else { _typeof$p = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$p(obj); }
926
+
927
+ function _classCallCheck$o(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
928
+
929
+ function _defineProperties$o(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
930
+
931
+ function _createClass$o(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$o(Constructor.prototype, protoProps); if (staticProps) _defineProperties$o(Constructor, staticProps); return Constructor; }
932
+
933
+ function _inherits$o(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$o(subClass, superClass); }
934
+
935
+ function _setPrototypeOf$o(o, p) { _setPrototypeOf$o = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$o(o, p); }
936
+
937
+ function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf$o(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$o(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$o(this, result); }; }
938
+
939
+ function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
940
+
941
+ function _assertThisInitialized$o(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
942
+
943
+ function _isNativeReflectConstruct$o() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
944
+
945
+ function _getPrototypeOf$o(o) { _getPrototypeOf$o = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$o(o); }
946
+
947
+ function _defineProperty$o(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
948
+ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
949
+ _inherits$o(StandAloneQuarterParser, _Parser);
950
+
951
+ var _super = _createSuper$o(StandAloneQuarterParser);
952
+
953
+ function StandAloneQuarterParser() {
954
+ var _this;
955
+
956
+ _classCallCheck$o(this, StandAloneQuarterParser);
957
+
958
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
959
+ args[_key] = arguments[_key];
960
+ }
961
+
962
+ _this = _super.call.apply(_super, [this].concat(args));
963
+
964
+ _defineProperty$o(_assertThisInitialized$o(_this), "priority", 120);
965
+
966
+ _defineProperty$o(_assertThisInitialized$o(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
967
+
968
+ return _this;
969
+ }
970
+
971
+ _createClass$o(StandAloneQuarterParser, [{
972
+ key: "parse",
973
+ value: function parse(dateString, token, match) {
974
+ switch (token) {
975
+ // 1, 2, 3, 4
976
+ case 'q':
977
+ case 'qq':
978
+ // 01, 02, 03, 04
979
+ return parseNDigits(token.length, dateString);
980
+ // 1st, 2nd, 3rd, 4th
981
+
982
+ case 'qo':
983
+ return match.ordinalNumber(dateString, {
984
+ unit: 'quarter'
985
+ });
986
+ // Q1, Q2, Q3, Q4
987
+
988
+ case 'qqq':
989
+ return match.quarter(dateString, {
990
+ width: 'abbreviated',
991
+ context: 'standalone'
992
+ }) || match.quarter(dateString, {
993
+ width: 'narrow',
994
+ context: 'standalone'
995
+ });
996
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
997
+
998
+ case 'qqqqq':
999
+ return match.quarter(dateString, {
1000
+ width: 'narrow',
1001
+ context: 'standalone'
1002
+ });
1003
+ // 1st quarter, 2nd quarter, ...
1004
+
1005
+ case 'qqqq':
1006
+ default:
1007
+ return match.quarter(dateString, {
1008
+ width: 'wide',
1009
+ context: 'standalone'
1010
+ }) || match.quarter(dateString, {
1011
+ width: 'abbreviated',
1012
+ context: 'standalone'
1013
+ }) || match.quarter(dateString, {
1014
+ width: 'narrow',
1015
+ context: 'standalone'
1016
+ });
1017
+ }
1018
+ }
1019
+ }, {
1020
+ key: "validate",
1021
+ value: function validate(_date, value) {
1022
+ return value >= 1 && value <= 4;
1023
+ }
1024
+ }, {
1025
+ key: "set",
1026
+ value: function set(date, _flags, value) {
1027
+ date.setUTCMonth((value - 1) * 3, 1);
1028
+ date.setUTCHours(0, 0, 0, 0);
1029
+ return date;
1030
+ }
1031
+ }]);
1032
+
1033
+ return StandAloneQuarterParser;
1034
+ }(Parser);
1035
+
1036
+ function _typeof$o(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$o = function _typeof(obj) { return typeof obj; }; } else { _typeof$o = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$o(obj); }
1037
+
1038
+ function _classCallCheck$n(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1039
+
1040
+ function _defineProperties$n(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1041
+
1042
+ function _createClass$n(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$n(Constructor.prototype, protoProps); if (staticProps) _defineProperties$n(Constructor, staticProps); return Constructor; }
1043
+
1044
+ function _inherits$n(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$n(subClass, superClass); }
1045
+
1046
+ function _setPrototypeOf$n(o, p) { _setPrototypeOf$n = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$n(o, p); }
1047
+
1048
+ function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf$n(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$n(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$n(this, result); }; }
1049
+
1050
+ function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
1051
+
1052
+ function _assertThisInitialized$n(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1053
+
1054
+ function _isNativeReflectConstruct$n() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1055
+
1056
+ function _getPrototypeOf$n(o) { _getPrototypeOf$n = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$n(o); }
1057
+
1058
+ function _defineProperty$n(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1059
+ var MonthParser = /*#__PURE__*/function (_Parser) {
1060
+ _inherits$n(MonthParser, _Parser);
1061
+
1062
+ var _super = _createSuper$n(MonthParser);
1063
+
1064
+ function MonthParser() {
1065
+ var _this;
1066
+
1067
+ _classCallCheck$n(this, MonthParser);
1068
+
1069
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1070
+ args[_key] = arguments[_key];
1071
+ }
1072
+
1073
+ _this = _super.call.apply(_super, [this].concat(args));
1074
+
1075
+ _defineProperty$n(_assertThisInitialized$n(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1076
+
1077
+ _defineProperty$n(_assertThisInitialized$n(_this), "priority", 110);
1078
+
1079
+ return _this;
1080
+ }
1081
+
1082
+ _createClass$n(MonthParser, [{
1083
+ key: "parse",
1084
+ value: function parse(dateString, token, match) {
1085
+ var valueCallback = function valueCallback(value) {
1086
+ return value - 1;
1087
+ };
1088
+
1089
+ switch (token) {
1090
+ // 1, 2, ..., 12
1091
+ case 'M':
1092
+ return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
1093
+ // 01, 02, ..., 12
1094
+
1095
+ case 'MM':
1096
+ return mapValue(parseNDigits(2, dateString), valueCallback);
1097
+ // 1st, 2nd, ..., 12th
1098
+
1099
+ case 'Mo':
1100
+ return mapValue(match.ordinalNumber(dateString, {
1101
+ unit: 'month'
1102
+ }), valueCallback);
1103
+ // Jan, Feb, ..., Dec
1104
+
1105
+ case 'MMM':
1106
+ return match.month(dateString, {
1107
+ width: 'abbreviated',
1108
+ context: 'formatting'
1109
+ }) || match.month(dateString, {
1110
+ width: 'narrow',
1111
+ context: 'formatting'
1112
+ });
1113
+ // J, F, ..., D
1114
+
1115
+ case 'MMMMM':
1116
+ return match.month(dateString, {
1117
+ width: 'narrow',
1118
+ context: 'formatting'
1119
+ });
1120
+ // January, February, ..., December
1121
+
1122
+ case 'MMMM':
1123
+ default:
1124
+ return match.month(dateString, {
1125
+ width: 'wide',
1126
+ context: 'formatting'
1127
+ }) || match.month(dateString, {
1128
+ width: 'abbreviated',
1129
+ context: 'formatting'
1130
+ }) || match.month(dateString, {
1131
+ width: 'narrow',
1132
+ context: 'formatting'
1133
+ });
1134
+ }
1135
+ }
1136
+ }, {
1137
+ key: "validate",
1138
+ value: function validate(_date, value) {
1139
+ return value >= 0 && value <= 11;
1140
+ }
1141
+ }, {
1142
+ key: "set",
1143
+ value: function set(date, _flags, value) {
1144
+ date.setUTCMonth(value, 1);
1145
+ date.setUTCHours(0, 0, 0, 0);
1146
+ return date;
1147
+ }
1148
+ }]);
1149
+
1150
+ return MonthParser;
1151
+ }(Parser);
1152
+
1153
+ function _typeof$n(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$n = function _typeof(obj) { return typeof obj; }; } else { _typeof$n = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$n(obj); }
1154
+
1155
+ function _classCallCheck$m(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1156
+
1157
+ function _defineProperties$m(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1158
+
1159
+ function _createClass$m(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$m(Constructor.prototype, protoProps); if (staticProps) _defineProperties$m(Constructor, staticProps); return Constructor; }
1160
+
1161
+ function _inherits$m(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$m(subClass, superClass); }
1162
+
1163
+ function _setPrototypeOf$m(o, p) { _setPrototypeOf$m = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$m(o, p); }
1164
+
1165
+ function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf$m(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$m(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$m(this, result); }; }
1166
+
1167
+ function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
1168
+
1169
+ function _assertThisInitialized$m(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1170
+
1171
+ function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1172
+
1173
+ function _getPrototypeOf$m(o) { _getPrototypeOf$m = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$m(o); }
1174
+
1175
+ function _defineProperty$m(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1176
+ var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
1177
+ _inherits$m(StandAloneMonthParser, _Parser);
1178
+
1179
+ var _super = _createSuper$m(StandAloneMonthParser);
1180
+
1181
+ function StandAloneMonthParser() {
1182
+ var _this;
1183
+
1184
+ _classCallCheck$m(this, StandAloneMonthParser);
1185
+
1186
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1187
+ args[_key] = arguments[_key];
1188
+ }
1189
+
1190
+ _this = _super.call.apply(_super, [this].concat(args));
1191
+
1192
+ _defineProperty$m(_assertThisInitialized$m(_this), "priority", 110);
1193
+
1194
+ _defineProperty$m(_assertThisInitialized$m(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1195
+
1196
+ return _this;
1197
+ }
1198
+
1199
+ _createClass$m(StandAloneMonthParser, [{
1200
+ key: "parse",
1201
+ value: function parse(dateString, token, match) {
1202
+ var valueCallback = function valueCallback(value) {
1203
+ return value - 1;
1204
+ };
1205
+
1206
+ switch (token) {
1207
+ // 1, 2, ..., 12
1208
+ case 'L':
1209
+ return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
1210
+ // 01, 02, ..., 12
1211
+
1212
+ case 'LL':
1213
+ return mapValue(parseNDigits(2, dateString), valueCallback);
1214
+ // 1st, 2nd, ..., 12th
1215
+
1216
+ case 'Lo':
1217
+ return mapValue(match.ordinalNumber(dateString, {
1218
+ unit: 'month'
1219
+ }), valueCallback);
1220
+ // Jan, Feb, ..., Dec
1221
+
1222
+ case 'LLL':
1223
+ return match.month(dateString, {
1224
+ width: 'abbreviated',
1225
+ context: 'standalone'
1226
+ }) || match.month(dateString, {
1227
+ width: 'narrow',
1228
+ context: 'standalone'
1229
+ });
1230
+ // J, F, ..., D
1231
+
1232
+ case 'LLLLL':
1233
+ return match.month(dateString, {
1234
+ width: 'narrow',
1235
+ context: 'standalone'
1236
+ });
1237
+ // January, February, ..., December
1238
+
1239
+ case 'LLLL':
1240
+ default:
1241
+ return match.month(dateString, {
1242
+ width: 'wide',
1243
+ context: 'standalone'
1244
+ }) || match.month(dateString, {
1245
+ width: 'abbreviated',
1246
+ context: 'standalone'
1247
+ }) || match.month(dateString, {
1248
+ width: 'narrow',
1249
+ context: 'standalone'
1250
+ });
1251
+ }
1252
+ }
1253
+ }, {
1254
+ key: "validate",
1255
+ value: function validate(_date, value) {
1256
+ return value >= 0 && value <= 11;
1257
+ }
1258
+ }, {
1259
+ key: "set",
1260
+ value: function set(date, _flags, value) {
1261
+ date.setUTCMonth(value, 1);
1262
+ date.setUTCHours(0, 0, 0, 0);
1263
+ return date;
1264
+ }
1265
+ }]);
1266
+
1267
+ return StandAloneMonthParser;
1268
+ }(Parser);
1269
+
1270
+ function setUTCWeek(dirtyDate, dirtyWeek, options) {
1271
+ requiredArgs(2, arguments);
1272
+ var date = toDate(dirtyDate);
1273
+ var week = toInteger(dirtyWeek);
1274
+ var diff = getUTCWeek(date, options) - week;
1275
+ date.setUTCDate(date.getUTCDate() - diff * 7);
1276
+ return date;
1277
+ }
1278
+
1279
+ function _typeof$m(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$m = function _typeof(obj) { return typeof obj; }; } else { _typeof$m = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$m(obj); }
1280
+
1281
+ function _classCallCheck$l(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1282
+
1283
+ function _defineProperties$l(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1284
+
1285
+ function _createClass$l(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$l(Constructor.prototype, protoProps); if (staticProps) _defineProperties$l(Constructor, staticProps); return Constructor; }
1286
+
1287
+ function _inherits$l(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$l(subClass, superClass); }
1288
+
1289
+ function _setPrototypeOf$l(o, p) { _setPrototypeOf$l = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$l(o, p); }
1290
+
1291
+ function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf$l(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$l(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$l(this, result); }; }
1292
+
1293
+ function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
1294
+
1295
+ function _assertThisInitialized$l(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1296
+
1297
+ function _isNativeReflectConstruct$l() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1298
+
1299
+ function _getPrototypeOf$l(o) { _getPrototypeOf$l = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$l(o); }
1300
+
1301
+ function _defineProperty$l(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1302
+
1303
+ var LocalWeekParser = /*#__PURE__*/function (_Parser) {
1304
+ _inherits$l(LocalWeekParser, _Parser);
1305
+
1306
+ var _super = _createSuper$l(LocalWeekParser);
1307
+
1308
+ function LocalWeekParser() {
1309
+ var _this;
1310
+
1311
+ _classCallCheck$l(this, LocalWeekParser);
1312
+
1313
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1314
+ args[_key] = arguments[_key];
1315
+ }
1316
+
1317
+ _this = _super.call.apply(_super, [this].concat(args));
1318
+
1319
+ _defineProperty$l(_assertThisInitialized$l(_this), "priority", 100);
1320
+
1321
+ _defineProperty$l(_assertThisInitialized$l(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
1322
+
1323
+ return _this;
1324
+ }
1325
+
1326
+ _createClass$l(LocalWeekParser, [{
1327
+ key: "parse",
1328
+ value: function parse(dateString, token, match) {
1329
+ switch (token) {
1330
+ case 'w':
1331
+ return parseNumericPattern(numericPatterns.week, dateString);
1332
+
1333
+ case 'wo':
1334
+ return match.ordinalNumber(dateString, {
1335
+ unit: 'week'
1336
+ });
1337
+
1338
+ default:
1339
+ return parseNDigits(token.length, dateString);
1340
+ }
1341
+ }
1342
+ }, {
1343
+ key: "validate",
1344
+ value: function validate(_date, value) {
1345
+ return value >= 1 && value <= 53;
1346
+ }
1347
+ }, {
1348
+ key: "set",
1349
+ value: function set(date, _flags, value, options) {
1350
+ return startOfUTCWeek(setUTCWeek(date, value, options), options);
1351
+ }
1352
+ }]);
1353
+
1354
+ return LocalWeekParser;
1355
+ }(Parser);
1356
+
1357
+ function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
1358
+ requiredArgs(2, arguments);
1359
+ var date = toDate(dirtyDate);
1360
+ var isoWeek = toInteger(dirtyISOWeek);
1361
+ var diff = getUTCISOWeek(date) - isoWeek;
1362
+ date.setUTCDate(date.getUTCDate() - diff * 7);
1363
+ return date;
1364
+ }
1365
+
1366
+ function _typeof$l(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$l = function _typeof(obj) { return typeof obj; }; } else { _typeof$l = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$l(obj); }
1367
+
1368
+ function _classCallCheck$k(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1369
+
1370
+ function _defineProperties$k(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1371
+
1372
+ function _createClass$k(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$k(Constructor.prototype, protoProps); if (staticProps) _defineProperties$k(Constructor, staticProps); return Constructor; }
1373
+
1374
+ function _inherits$k(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$k(subClass, superClass); }
1375
+
1376
+ function _setPrototypeOf$k(o, p) { _setPrototypeOf$k = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$k(o, p); }
1377
+
1378
+ function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf$k(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$k(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$k(this, result); }; }
1379
+
1380
+ function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
1381
+
1382
+ function _assertThisInitialized$k(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1383
+
1384
+ function _isNativeReflectConstruct$k() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1385
+
1386
+ function _getPrototypeOf$k(o) { _getPrototypeOf$k = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$k(o); }
1387
+
1388
+ function _defineProperty$k(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1389
+
1390
+ var ISOWeekParser = /*#__PURE__*/function (_Parser) {
1391
+ _inherits$k(ISOWeekParser, _Parser);
1392
+
1393
+ var _super = _createSuper$k(ISOWeekParser);
1394
+
1395
+ function ISOWeekParser() {
1396
+ var _this;
1397
+
1398
+ _classCallCheck$k(this, ISOWeekParser);
1399
+
1400
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1401
+ args[_key] = arguments[_key];
1402
+ }
1403
+
1404
+ _this = _super.call.apply(_super, [this].concat(args));
1405
+
1406
+ _defineProperty$k(_assertThisInitialized$k(_this), "priority", 100);
1407
+
1408
+ _defineProperty$k(_assertThisInitialized$k(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
1409
+
1410
+ return _this;
1411
+ }
1412
+
1413
+ _createClass$k(ISOWeekParser, [{
1414
+ key: "parse",
1415
+ value: function parse(dateString, token, match) {
1416
+ switch (token) {
1417
+ case 'I':
1418
+ return parseNumericPattern(numericPatterns.week, dateString);
1419
+
1420
+ case 'Io':
1421
+ return match.ordinalNumber(dateString, {
1422
+ unit: 'week'
1423
+ });
1424
+
1425
+ default:
1426
+ return parseNDigits(token.length, dateString);
1427
+ }
1428
+ }
1429
+ }, {
1430
+ key: "validate",
1431
+ value: function validate(_date, value) {
1432
+ return value >= 1 && value <= 53;
1433
+ }
1434
+ }, {
1435
+ key: "set",
1436
+ value: function set(date, _flags, value) {
1437
+ return startOfUTCISOWeek(setUTCISOWeek(date, value));
1438
+ }
1439
+ }]);
1440
+
1441
+ return ISOWeekParser;
1442
+ }(Parser);
1443
+
1444
+ function _typeof$k(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$k = function _typeof(obj) { return typeof obj; }; } else { _typeof$k = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$k(obj); }
1445
+
1446
+ function _classCallCheck$j(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1447
+
1448
+ function _defineProperties$j(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1449
+
1450
+ function _createClass$j(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$j(Constructor.prototype, protoProps); if (staticProps) _defineProperties$j(Constructor, staticProps); return Constructor; }
1451
+
1452
+ function _inherits$j(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$j(subClass, superClass); }
1453
+
1454
+ function _setPrototypeOf$j(o, p) { _setPrototypeOf$j = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$j(o, p); }
1455
+
1456
+ function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf$j(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$j(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$j(this, result); }; }
1457
+
1458
+ function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
1459
+
1460
+ function _assertThisInitialized$j(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1461
+
1462
+ function _isNativeReflectConstruct$j() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1463
+
1464
+ function _getPrototypeOf$j(o) { _getPrototypeOf$j = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$j(o); }
1465
+
1466
+ function _defineProperty$j(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1467
+ var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1468
+ var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month
1469
+
1470
+ var DateParser = /*#__PURE__*/function (_Parser) {
1471
+ _inherits$j(DateParser, _Parser);
1472
+
1473
+ var _super = _createSuper$j(DateParser);
1474
+
1475
+ function DateParser() {
1476
+ var _this;
1477
+
1478
+ _classCallCheck$j(this, DateParser);
1479
+
1480
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1481
+ args[_key] = arguments[_key];
1482
+ }
1483
+
1484
+ _this = _super.call.apply(_super, [this].concat(args));
1485
+
1486
+ _defineProperty$j(_assertThisInitialized$j(_this), "priority", 90);
1487
+
1488
+ _defineProperty$j(_assertThisInitialized$j(_this), "subPriority", 1);
1489
+
1490
+ _defineProperty$j(_assertThisInitialized$j(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1491
+
1492
+ return _this;
1493
+ }
1494
+
1495
+ _createClass$j(DateParser, [{
1496
+ key: "parse",
1497
+ value: function parse(dateString, token, match) {
1498
+ switch (token) {
1499
+ case 'd':
1500
+ return parseNumericPattern(numericPatterns.date, dateString);
1501
+
1502
+ case 'do':
1503
+ return match.ordinalNumber(dateString, {
1504
+ unit: 'date'
1505
+ });
1506
+
1507
+ default:
1508
+ return parseNDigits(token.length, dateString);
1509
+ }
1510
+ }
1511
+ }, {
1512
+ key: "validate",
1513
+ value: function validate(date, value) {
1514
+ var year = date.getUTCFullYear();
1515
+ var isLeapYear = isLeapYearIndex(year);
1516
+ var month = date.getUTCMonth();
1517
+
1518
+ if (isLeapYear) {
1519
+ return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
1520
+ } else {
1521
+ return value >= 1 && value <= DAYS_IN_MONTH[month];
1522
+ }
1523
+ }
1524
+ }, {
1525
+ key: "set",
1526
+ value: function set(date, _flags, value) {
1527
+ date.setUTCDate(value);
1528
+ date.setUTCHours(0, 0, 0, 0);
1529
+ return date;
1530
+ }
1531
+ }]);
1532
+
1533
+ return DateParser;
1534
+ }(Parser);
1535
+
1536
+ function _typeof$j(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$j = function _typeof(obj) { return typeof obj; }; } else { _typeof$j = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$j(obj); }
1537
+
1538
+ function _classCallCheck$i(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1539
+
1540
+ function _defineProperties$i(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1541
+
1542
+ function _createClass$i(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$i(Constructor.prototype, protoProps); if (staticProps) _defineProperties$i(Constructor, staticProps); return Constructor; }
1543
+
1544
+ function _inherits$i(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$i(subClass, superClass); }
1545
+
1546
+ function _setPrototypeOf$i(o, p) { _setPrototypeOf$i = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$i(o, p); }
1547
+
1548
+ function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf$i(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$i(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$i(this, result); }; }
1549
+
1550
+ function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
1551
+
1552
+ function _assertThisInitialized$i(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1553
+
1554
+ function _isNativeReflectConstruct$i() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1555
+
1556
+ function _getPrototypeOf$i(o) { _getPrototypeOf$i = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$i(o); }
1557
+
1558
+ function _defineProperty$i(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1559
+ var DayOfYearParser = /*#__PURE__*/function (_Parser) {
1560
+ _inherits$i(DayOfYearParser, _Parser);
1561
+
1562
+ var _super = _createSuper$i(DayOfYearParser);
1563
+
1564
+ function DayOfYearParser() {
1565
+ var _this;
1566
+
1567
+ _classCallCheck$i(this, DayOfYearParser);
1568
+
1569
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1570
+ args[_key] = arguments[_key];
1571
+ }
1572
+
1573
+ _this = _super.call.apply(_super, [this].concat(args));
1574
+
1575
+ _defineProperty$i(_assertThisInitialized$i(_this), "priority", 90);
1576
+
1577
+ _defineProperty$i(_assertThisInitialized$i(_this), "subpriority", 1);
1578
+
1579
+ _defineProperty$i(_assertThisInitialized$i(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
1580
+
1581
+ return _this;
1582
+ }
1583
+
1584
+ _createClass$i(DayOfYearParser, [{
1585
+ key: "parse",
1586
+ value: function parse(dateString, token, match) {
1587
+ switch (token) {
1588
+ case 'D':
1589
+ case 'DD':
1590
+ return parseNumericPattern(numericPatterns.dayOfYear, dateString);
1591
+
1592
+ case 'Do':
1593
+ return match.ordinalNumber(dateString, {
1594
+ unit: 'date'
1595
+ });
1596
+
1597
+ default:
1598
+ return parseNDigits(token.length, dateString);
1599
+ }
1600
+ }
1601
+ }, {
1602
+ key: "validate",
1603
+ value: function validate(date, value) {
1604
+ var year = date.getUTCFullYear();
1605
+ var isLeapYear = isLeapYearIndex(year);
1606
+
1607
+ if (isLeapYear) {
1608
+ return value >= 1 && value <= 366;
1609
+ } else {
1610
+ return value >= 1 && value <= 365;
1611
+ }
1612
+ }
1613
+ }, {
1614
+ key: "set",
1615
+ value: function set(date, _flags, value) {
1616
+ date.setUTCMonth(0, value);
1617
+ date.setUTCHours(0, 0, 0, 0);
1618
+ return date;
1619
+ }
1620
+ }]);
1621
+
1622
+ return DayOfYearParser;
1623
+ }(Parser);
1624
+
1625
+ function setUTCDay(dirtyDate, dirtyDay, options) {
1626
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
1627
+
1628
+ requiredArgs(2, arguments);
1629
+ var defaultOptions = getDefaultOptions();
1630
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
1631
+
1632
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
1633
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
1634
+ }
1635
+
1636
+ var date = toDate(dirtyDate);
1637
+ var day = toInteger(dirtyDay);
1638
+ var currentDay = date.getUTCDay();
1639
+ var remainder = day % 7;
1640
+ var dayIndex = (remainder + 7) % 7;
1641
+ var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
1642
+ date.setUTCDate(date.getUTCDate() + diff);
1643
+ return date;
1644
+ }
1645
+
1646
+ function _typeof$i(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$i = function _typeof(obj) { return typeof obj; }; } else { _typeof$i = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$i(obj); }
1647
+
1648
+ function _classCallCheck$h(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1649
+
1650
+ function _defineProperties$h(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1651
+
1652
+ function _createClass$h(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$h(Constructor.prototype, protoProps); if (staticProps) _defineProperties$h(Constructor, staticProps); return Constructor; }
1653
+
1654
+ function _inherits$h(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$h(subClass, superClass); }
1655
+
1656
+ function _setPrototypeOf$h(o, p) { _setPrototypeOf$h = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$h(o, p); }
1657
+
1658
+ function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf$h(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$h(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$h(this, result); }; }
1659
+
1660
+ function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
1661
+
1662
+ function _assertThisInitialized$h(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1663
+
1664
+ function _isNativeReflectConstruct$h() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1665
+
1666
+ function _getPrototypeOf$h(o) { _getPrototypeOf$h = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$h(o); }
1667
+
1668
+ function _defineProperty$h(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1669
+
1670
+ var DayParser = /*#__PURE__*/function (_Parser) {
1671
+ _inherits$h(DayParser, _Parser);
1672
+
1673
+ var _super = _createSuper$h(DayParser);
1674
+
1675
+ function DayParser() {
1676
+ var _this;
1677
+
1678
+ _classCallCheck$h(this, DayParser);
1679
+
1680
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1681
+ args[_key] = arguments[_key];
1682
+ }
1683
+
1684
+ _this = _super.call.apply(_super, [this].concat(args));
1685
+
1686
+ _defineProperty$h(_assertThisInitialized$h(_this), "priority", 90);
1687
+
1688
+ _defineProperty$h(_assertThisInitialized$h(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
1689
+
1690
+ return _this;
1691
+ }
1692
+
1693
+ _createClass$h(DayParser, [{
1694
+ key: "parse",
1695
+ value: function parse(dateString, token, match) {
1696
+ switch (token) {
1697
+ // Tue
1698
+ case 'E':
1699
+ case 'EE':
1700
+ case 'EEE':
1701
+ return match.day(dateString, {
1702
+ width: 'abbreviated',
1703
+ context: 'formatting'
1704
+ }) || match.day(dateString, {
1705
+ width: 'short',
1706
+ context: 'formatting'
1707
+ }) || match.day(dateString, {
1708
+ width: 'narrow',
1709
+ context: 'formatting'
1710
+ });
1711
+ // T
1712
+
1713
+ case 'EEEEE':
1714
+ return match.day(dateString, {
1715
+ width: 'narrow',
1716
+ context: 'formatting'
1717
+ });
1718
+ // Tu
1719
+
1720
+ case 'EEEEEE':
1721
+ return match.day(dateString, {
1722
+ width: 'short',
1723
+ context: 'formatting'
1724
+ }) || match.day(dateString, {
1725
+ width: 'narrow',
1726
+ context: 'formatting'
1727
+ });
1728
+ // Tuesday
1729
+
1730
+ case 'EEEE':
1731
+ default:
1732
+ return match.day(dateString, {
1733
+ width: 'wide',
1734
+ context: 'formatting'
1735
+ }) || match.day(dateString, {
1736
+ width: 'abbreviated',
1737
+ context: 'formatting'
1738
+ }) || match.day(dateString, {
1739
+ width: 'short',
1740
+ context: 'formatting'
1741
+ }) || match.day(dateString, {
1742
+ width: 'narrow',
1743
+ context: 'formatting'
1744
+ });
1745
+ }
1746
+ }
1747
+ }, {
1748
+ key: "validate",
1749
+ value: function validate(_date, value) {
1750
+ return value >= 0 && value <= 6;
1751
+ }
1752
+ }, {
1753
+ key: "set",
1754
+ value: function set(date, _flags, value, options) {
1755
+ date = setUTCDay(date, value, options);
1756
+ date.setUTCHours(0, 0, 0, 0);
1757
+ return date;
1758
+ }
1759
+ }]);
1760
+
1761
+ return DayParser;
1762
+ }(Parser);
1763
+
1764
+ function _typeof$h(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$h = function _typeof(obj) { return typeof obj; }; } else { _typeof$h = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$h(obj); }
1765
+
1766
+ function _classCallCheck$g(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1767
+
1768
+ function _defineProperties$g(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1769
+
1770
+ function _createClass$g(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$g(Constructor.prototype, protoProps); if (staticProps) _defineProperties$g(Constructor, staticProps); return Constructor; }
1771
+
1772
+ function _inherits$g(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$g(subClass, superClass); }
1773
+
1774
+ function _setPrototypeOf$g(o, p) { _setPrototypeOf$g = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$g(o, p); }
1775
+
1776
+ function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf$g(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$g(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$g(this, result); }; }
1777
+
1778
+ function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
1779
+
1780
+ function _assertThisInitialized$g(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1781
+
1782
+ function _isNativeReflectConstruct$g() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1783
+
1784
+ function _getPrototypeOf$g(o) { _getPrototypeOf$g = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$g(o); }
1785
+
1786
+ function _defineProperty$g(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1787
+
1788
+ var LocalDayParser = /*#__PURE__*/function (_Parser) {
1789
+ _inherits$g(LocalDayParser, _Parser);
1790
+
1791
+ var _super = _createSuper$g(LocalDayParser);
1792
+
1793
+ function LocalDayParser() {
1794
+ var _this;
1795
+
1796
+ _classCallCheck$g(this, LocalDayParser);
1797
+
1798
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1799
+ args[_key] = arguments[_key];
1800
+ }
1801
+
1802
+ _this = _super.call.apply(_super, [this].concat(args));
1803
+
1804
+ _defineProperty$g(_assertThisInitialized$g(_this), "priority", 90);
1805
+
1806
+ _defineProperty$g(_assertThisInitialized$g(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
1807
+
1808
+ return _this;
1809
+ }
1810
+
1811
+ _createClass$g(LocalDayParser, [{
1812
+ key: "parse",
1813
+ value: function parse(dateString, token, match, options) {
1814
+ var valueCallback = function valueCallback(value) {
1815
+ var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1816
+ return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1817
+ };
1818
+
1819
+ switch (token) {
1820
+ // 3
1821
+ case 'e':
1822
+ case 'ee':
1823
+ // 03
1824
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
1825
+ // 3rd
1826
+
1827
+ case 'eo':
1828
+ return mapValue(match.ordinalNumber(dateString, {
1829
+ unit: 'day'
1830
+ }), valueCallback);
1831
+ // Tue
1832
+
1833
+ case 'eee':
1834
+ return match.day(dateString, {
1835
+ width: 'abbreviated',
1836
+ context: 'formatting'
1837
+ }) || match.day(dateString, {
1838
+ width: 'short',
1839
+ context: 'formatting'
1840
+ }) || match.day(dateString, {
1841
+ width: 'narrow',
1842
+ context: 'formatting'
1843
+ });
1844
+ // T
1845
+
1846
+ case 'eeeee':
1847
+ return match.day(dateString, {
1848
+ width: 'narrow',
1849
+ context: 'formatting'
1850
+ });
1851
+ // Tu
1852
+
1853
+ case 'eeeeee':
1854
+ return match.day(dateString, {
1855
+ width: 'short',
1856
+ context: 'formatting'
1857
+ }) || match.day(dateString, {
1858
+ width: 'narrow',
1859
+ context: 'formatting'
1860
+ });
1861
+ // Tuesday
1862
+
1863
+ case 'eeee':
1864
+ default:
1865
+ return match.day(dateString, {
1866
+ width: 'wide',
1867
+ context: 'formatting'
1868
+ }) || match.day(dateString, {
1869
+ width: 'abbreviated',
1870
+ context: 'formatting'
1871
+ }) || match.day(dateString, {
1872
+ width: 'short',
1873
+ context: 'formatting'
1874
+ }) || match.day(dateString, {
1875
+ width: 'narrow',
1876
+ context: 'formatting'
1877
+ });
1878
+ }
1879
+ }
1880
+ }, {
1881
+ key: "validate",
1882
+ value: function validate(_date, value) {
1883
+ return value >= 0 && value <= 6;
1884
+ }
1885
+ }, {
1886
+ key: "set",
1887
+ value: function set(date, _flags, value, options) {
1888
+ date = setUTCDay(date, value, options);
1889
+ date.setUTCHours(0, 0, 0, 0);
1890
+ return date;
1891
+ }
1892
+ }]);
1893
+
1894
+ return LocalDayParser;
1895
+ }(Parser);
1896
+
1897
+ function _typeof$g(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$g = function _typeof(obj) { return typeof obj; }; } else { _typeof$g = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$g(obj); }
1898
+
1899
+ function _classCallCheck$f(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1900
+
1901
+ function _defineProperties$f(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1902
+
1903
+ function _createClass$f(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$f(Constructor.prototype, protoProps); if (staticProps) _defineProperties$f(Constructor, staticProps); return Constructor; }
1904
+
1905
+ function _inherits$f(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$f(subClass, superClass); }
1906
+
1907
+ function _setPrototypeOf$f(o, p) { _setPrototypeOf$f = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$f(o, p); }
1908
+
1909
+ function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf$f(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$f(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$f(this, result); }; }
1910
+
1911
+ function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
1912
+
1913
+ function _assertThisInitialized$f(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1914
+
1915
+ function _isNativeReflectConstruct$f() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1916
+
1917
+ function _getPrototypeOf$f(o) { _getPrototypeOf$f = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$f(o); }
1918
+
1919
+ function _defineProperty$f(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1920
+
1921
+ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
1922
+ _inherits$f(StandAloneLocalDayParser, _Parser);
1923
+
1924
+ var _super = _createSuper$f(StandAloneLocalDayParser);
1925
+
1926
+ function StandAloneLocalDayParser() {
1927
+ var _this;
1928
+
1929
+ _classCallCheck$f(this, StandAloneLocalDayParser);
1930
+
1931
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1932
+ args[_key] = arguments[_key];
1933
+ }
1934
+
1935
+ _this = _super.call.apply(_super, [this].concat(args));
1936
+
1937
+ _defineProperty$f(_assertThisInitialized$f(_this), "priority", 90);
1938
+
1939
+ _defineProperty$f(_assertThisInitialized$f(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
1940
+
1941
+ return _this;
1942
+ }
1943
+
1944
+ _createClass$f(StandAloneLocalDayParser, [{
1945
+ key: "parse",
1946
+ value: function parse(dateString, token, match, options) {
1947
+ var valueCallback = function valueCallback(value) {
1948
+ var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1949
+ return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1950
+ };
1951
+
1952
+ switch (token) {
1953
+ // 3
1954
+ case 'c':
1955
+ case 'cc':
1956
+ // 03
1957
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
1958
+ // 3rd
1959
+
1960
+ case 'co':
1961
+ return mapValue(match.ordinalNumber(dateString, {
1962
+ unit: 'day'
1963
+ }), valueCallback);
1964
+ // Tue
1965
+
1966
+ case 'ccc':
1967
+ return match.day(dateString, {
1968
+ width: 'abbreviated',
1969
+ context: 'standalone'
1970
+ }) || match.day(dateString, {
1971
+ width: 'short',
1972
+ context: 'standalone'
1973
+ }) || match.day(dateString, {
1974
+ width: 'narrow',
1975
+ context: 'standalone'
1976
+ });
1977
+ // T
1978
+
1979
+ case 'ccccc':
1980
+ return match.day(dateString, {
1981
+ width: 'narrow',
1982
+ context: 'standalone'
1983
+ });
1984
+ // Tu
1985
+
1986
+ case 'cccccc':
1987
+ return match.day(dateString, {
1988
+ width: 'short',
1989
+ context: 'standalone'
1990
+ }) || match.day(dateString, {
1991
+ width: 'narrow',
1992
+ context: 'standalone'
1993
+ });
1994
+ // Tuesday
1995
+
1996
+ case 'cccc':
1997
+ default:
1998
+ return match.day(dateString, {
1999
+ width: 'wide',
2000
+ context: 'standalone'
2001
+ }) || match.day(dateString, {
2002
+ width: 'abbreviated',
2003
+ context: 'standalone'
2004
+ }) || match.day(dateString, {
2005
+ width: 'short',
2006
+ context: 'standalone'
2007
+ }) || match.day(dateString, {
2008
+ width: 'narrow',
2009
+ context: 'standalone'
2010
+ });
2011
+ }
2012
+ }
2013
+ }, {
2014
+ key: "validate",
2015
+ value: function validate(_date, value) {
2016
+ return value >= 0 && value <= 6;
2017
+ }
2018
+ }, {
2019
+ key: "set",
2020
+ value: function set(date, _flags, value, options) {
2021
+ date = setUTCDay(date, value, options);
2022
+ date.setUTCHours(0, 0, 0, 0);
2023
+ return date;
2024
+ }
2025
+ }]);
2026
+
2027
+ return StandAloneLocalDayParser;
2028
+ }(Parser);
2029
+
2030
+ function setUTCISODay(dirtyDate, dirtyDay) {
2031
+ requiredArgs(2, arguments);
2032
+ var day = toInteger(dirtyDay);
2033
+
2034
+ if (day % 7 === 0) {
2035
+ day = day - 7;
2036
+ }
2037
+
2038
+ var weekStartsOn = 1;
2039
+ var date = toDate(dirtyDate);
2040
+ var currentDay = date.getUTCDay();
2041
+ var remainder = day % 7;
2042
+ var dayIndex = (remainder + 7) % 7;
2043
+ var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
2044
+ date.setUTCDate(date.getUTCDate() + diff);
2045
+ return date;
2046
+ }
2047
+
2048
+ function _typeof$f(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$f = function _typeof(obj) { return typeof obj; }; } else { _typeof$f = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$f(obj); }
2049
+
2050
+ function _classCallCheck$e(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2051
+
2052
+ function _defineProperties$e(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2053
+
2054
+ function _createClass$e(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$e(Constructor.prototype, protoProps); if (staticProps) _defineProperties$e(Constructor, staticProps); return Constructor; }
2055
+
2056
+ function _inherits$e(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$e(subClass, superClass); }
2057
+
2058
+ function _setPrototypeOf$e(o, p) { _setPrototypeOf$e = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$e(o, p); }
2059
+
2060
+ function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf$e(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$e(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$e(this, result); }; }
2061
+
2062
+ function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
2063
+
2064
+ function _assertThisInitialized$e(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2065
+
2066
+ function _isNativeReflectConstruct$e() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2067
+
2068
+ function _getPrototypeOf$e(o) { _getPrototypeOf$e = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$e(o); }
2069
+
2070
+ function _defineProperty$e(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2071
+
2072
+ var ISODayParser = /*#__PURE__*/function (_Parser) {
2073
+ _inherits$e(ISODayParser, _Parser);
2074
+
2075
+ var _super = _createSuper$e(ISODayParser);
2076
+
2077
+ function ISODayParser() {
2078
+ var _this;
2079
+
2080
+ _classCallCheck$e(this, ISODayParser);
2081
+
2082
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2083
+ args[_key] = arguments[_key];
2084
+ }
2085
+
2086
+ _this = _super.call.apply(_super, [this].concat(args));
2087
+
2088
+ _defineProperty$e(_assertThisInitialized$e(_this), "priority", 90);
2089
+
2090
+ _defineProperty$e(_assertThisInitialized$e(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
2091
+
2092
+ return _this;
2093
+ }
2094
+
2095
+ _createClass$e(ISODayParser, [{
2096
+ key: "parse",
2097
+ value: function parse(dateString, token, match) {
2098
+ var valueCallback = function valueCallback(value) {
2099
+ if (value === 0) {
2100
+ return 7;
2101
+ }
2102
+
2103
+ return value;
2104
+ };
2105
+
2106
+ switch (token) {
2107
+ // 2
2108
+ case 'i':
2109
+ case 'ii':
2110
+ // 02
2111
+ return parseNDigits(token.length, dateString);
2112
+ // 2nd
2113
+
2114
+ case 'io':
2115
+ return match.ordinalNumber(dateString, {
2116
+ unit: 'day'
2117
+ });
2118
+ // Tue
2119
+
2120
+ case 'iii':
2121
+ return mapValue(match.day(dateString, {
2122
+ width: 'abbreviated',
2123
+ context: 'formatting'
2124
+ }) || match.day(dateString, {
2125
+ width: 'short',
2126
+ context: 'formatting'
2127
+ }) || match.day(dateString, {
2128
+ width: 'narrow',
2129
+ context: 'formatting'
2130
+ }), valueCallback);
2131
+ // T
2132
+
2133
+ case 'iiiii':
2134
+ return mapValue(match.day(dateString, {
2135
+ width: 'narrow',
2136
+ context: 'formatting'
2137
+ }), valueCallback);
2138
+ // Tu
2139
+
2140
+ case 'iiiiii':
2141
+ return mapValue(match.day(dateString, {
2142
+ width: 'short',
2143
+ context: 'formatting'
2144
+ }) || match.day(dateString, {
2145
+ width: 'narrow',
2146
+ context: 'formatting'
2147
+ }), valueCallback);
2148
+ // Tuesday
2149
+
2150
+ case 'iiii':
2151
+ default:
2152
+ return mapValue(match.day(dateString, {
2153
+ width: 'wide',
2154
+ context: 'formatting'
2155
+ }) || match.day(dateString, {
2156
+ width: 'abbreviated',
2157
+ context: 'formatting'
2158
+ }) || match.day(dateString, {
2159
+ width: 'short',
2160
+ context: 'formatting'
2161
+ }) || match.day(dateString, {
2162
+ width: 'narrow',
2163
+ context: 'formatting'
2164
+ }), valueCallback);
2165
+ }
2166
+ }
2167
+ }, {
2168
+ key: "validate",
2169
+ value: function validate(_date, value) {
2170
+ return value >= 1 && value <= 7;
2171
+ }
2172
+ }, {
2173
+ key: "set",
2174
+ value: function set(date, _flags, value) {
2175
+ date = setUTCISODay(date, value);
2176
+ date.setUTCHours(0, 0, 0, 0);
2177
+ return date;
2178
+ }
2179
+ }]);
2180
+
2181
+ return ISODayParser;
2182
+ }(Parser);
2183
+
2184
+ function _typeof$e(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$e = function _typeof(obj) { return typeof obj; }; } else { _typeof$e = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$e(obj); }
2185
+
2186
+ function _classCallCheck$d(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2187
+
2188
+ function _defineProperties$d(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2189
+
2190
+ function _createClass$d(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$d(Constructor.prototype, protoProps); if (staticProps) _defineProperties$d(Constructor, staticProps); return Constructor; }
2191
+
2192
+ function _inherits$d(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$d(subClass, superClass); }
2193
+
2194
+ function _setPrototypeOf$d(o, p) { _setPrototypeOf$d = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$d(o, p); }
2195
+
2196
+ function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf$d(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$d(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$d(this, result); }; }
2197
+
2198
+ function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
2199
+
2200
+ function _assertThisInitialized$d(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2201
+
2202
+ function _isNativeReflectConstruct$d() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2203
+
2204
+ function _getPrototypeOf$d(o) { _getPrototypeOf$d = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$d(o); }
2205
+
2206
+ function _defineProperty$d(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2207
+ var AMPMParser = /*#__PURE__*/function (_Parser) {
2208
+ _inherits$d(AMPMParser, _Parser);
2209
+
2210
+ var _super = _createSuper$d(AMPMParser);
2211
+
2212
+ function AMPMParser() {
2213
+ var _this;
2214
+
2215
+ _classCallCheck$d(this, AMPMParser);
2216
+
2217
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2218
+ args[_key] = arguments[_key];
2219
+ }
2220
+
2221
+ _this = _super.call.apply(_super, [this].concat(args));
2222
+
2223
+ _defineProperty$d(_assertThisInitialized$d(_this), "priority", 80);
2224
+
2225
+ _defineProperty$d(_assertThisInitialized$d(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
2226
+
2227
+ return _this;
2228
+ }
2229
+
2230
+ _createClass$d(AMPMParser, [{
2231
+ key: "parse",
2232
+ value: function parse(dateString, token, match) {
2233
+ switch (token) {
2234
+ case 'a':
2235
+ case 'aa':
2236
+ case 'aaa':
2237
+ return match.dayPeriod(dateString, {
2238
+ width: 'abbreviated',
2239
+ context: 'formatting'
2240
+ }) || match.dayPeriod(dateString, {
2241
+ width: 'narrow',
2242
+ context: 'formatting'
2243
+ });
2244
+
2245
+ case 'aaaaa':
2246
+ return match.dayPeriod(dateString, {
2247
+ width: 'narrow',
2248
+ context: 'formatting'
2249
+ });
2250
+
2251
+ case 'aaaa':
2252
+ default:
2253
+ return match.dayPeriod(dateString, {
2254
+ width: 'wide',
2255
+ context: 'formatting'
2256
+ }) || match.dayPeriod(dateString, {
2257
+ width: 'abbreviated',
2258
+ context: 'formatting'
2259
+ }) || match.dayPeriod(dateString, {
2260
+ width: 'narrow',
2261
+ context: 'formatting'
2262
+ });
2263
+ }
2264
+ }
2265
+ }, {
2266
+ key: "set",
2267
+ value: function set(date, _flags, value) {
2268
+ date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
2269
+ return date;
2270
+ }
2271
+ }]);
2272
+
2273
+ return AMPMParser;
2274
+ }(Parser);
2275
+
2276
+ function _typeof$d(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$d = function _typeof(obj) { return typeof obj; }; } else { _typeof$d = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$d(obj); }
2277
+
2278
+ function _classCallCheck$c(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2279
+
2280
+ function _defineProperties$c(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2281
+
2282
+ function _createClass$c(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$c(Constructor.prototype, protoProps); if (staticProps) _defineProperties$c(Constructor, staticProps); return Constructor; }
2283
+
2284
+ function _inherits$c(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$c(subClass, superClass); }
2285
+
2286
+ function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$c(o, p); }
2287
+
2288
+ function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf$c(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$c(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$c(this, result); }; }
2289
+
2290
+ function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
2291
+
2292
+ function _assertThisInitialized$c(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2293
+
2294
+ function _isNativeReflectConstruct$c() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2295
+
2296
+ function _getPrototypeOf$c(o) { _getPrototypeOf$c = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$c(o); }
2297
+
2298
+ function _defineProperty$c(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2299
+ var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
2300
+ _inherits$c(AMPMMidnightParser, _Parser);
2301
+
2302
+ var _super = _createSuper$c(AMPMMidnightParser);
2303
+
2304
+ function AMPMMidnightParser() {
2305
+ var _this;
2306
+
2307
+ _classCallCheck$c(this, AMPMMidnightParser);
2308
+
2309
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2310
+ args[_key] = arguments[_key];
2311
+ }
2312
+
2313
+ _this = _super.call.apply(_super, [this].concat(args));
2314
+
2315
+ _defineProperty$c(_assertThisInitialized$c(_this), "priority", 80);
2316
+
2317
+ _defineProperty$c(_assertThisInitialized$c(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
2318
+
2319
+ return _this;
2320
+ }
2321
+
2322
+ _createClass$c(AMPMMidnightParser, [{
2323
+ key: "parse",
2324
+ value: function parse(dateString, token, match) {
2325
+ switch (token) {
2326
+ case 'b':
2327
+ case 'bb':
2328
+ case 'bbb':
2329
+ return match.dayPeriod(dateString, {
2330
+ width: 'abbreviated',
2331
+ context: 'formatting'
2332
+ }) || match.dayPeriod(dateString, {
2333
+ width: 'narrow',
2334
+ context: 'formatting'
2335
+ });
2336
+
2337
+ case 'bbbbb':
2338
+ return match.dayPeriod(dateString, {
2339
+ width: 'narrow',
2340
+ context: 'formatting'
2341
+ });
2342
+
2343
+ case 'bbbb':
2344
+ default:
2345
+ return match.dayPeriod(dateString, {
2346
+ width: 'wide',
2347
+ context: 'formatting'
2348
+ }) || match.dayPeriod(dateString, {
2349
+ width: 'abbreviated',
2350
+ context: 'formatting'
2351
+ }) || match.dayPeriod(dateString, {
2352
+ width: 'narrow',
2353
+ context: 'formatting'
2354
+ });
2355
+ }
2356
+ }
2357
+ }, {
2358
+ key: "set",
2359
+ value: function set(date, _flags, value) {
2360
+ date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
2361
+ return date;
2362
+ }
2363
+ }]);
2364
+
2365
+ return AMPMMidnightParser;
2366
+ }(Parser);
2367
+
2368
+ function _typeof$c(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$c = function _typeof(obj) { return typeof obj; }; } else { _typeof$c = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$c(obj); }
2369
+
2370
+ function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2371
+
2372
+ function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2373
+
2374
+ function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); return Constructor; }
2375
+
2376
+ function _inherits$b(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$b(subClass, superClass); }
2377
+
2378
+ function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$b(o, p); }
2379
+
2380
+ function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf$b(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$b(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$b(this, result); }; }
2381
+
2382
+ function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
2383
+
2384
+ function _assertThisInitialized$b(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2385
+
2386
+ function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2387
+
2388
+ function _getPrototypeOf$b(o) { _getPrototypeOf$b = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$b(o); }
2389
+
2390
+ function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2391
+
2392
+ var DayPeriodParser = /*#__PURE__*/function (_Parser) {
2393
+ _inherits$b(DayPeriodParser, _Parser);
2394
+
2395
+ var _super = _createSuper$b(DayPeriodParser);
2396
+
2397
+ function DayPeriodParser() {
2398
+ var _this;
2399
+
2400
+ _classCallCheck$b(this, DayPeriodParser);
2401
+
2402
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2403
+ args[_key] = arguments[_key];
2404
+ }
2405
+
2406
+ _this = _super.call.apply(_super, [this].concat(args));
2407
+
2408
+ _defineProperty$b(_assertThisInitialized$b(_this), "priority", 80);
2409
+
2410
+ _defineProperty$b(_assertThisInitialized$b(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
2411
+
2412
+ return _this;
2413
+ }
2414
+
2415
+ _createClass$b(DayPeriodParser, [{
2416
+ key: "parse",
2417
+ value: function parse(dateString, token, match) {
2418
+ switch (token) {
2419
+ case 'B':
2420
+ case 'BB':
2421
+ case 'BBB':
2422
+ return match.dayPeriod(dateString, {
2423
+ width: 'abbreviated',
2424
+ context: 'formatting'
2425
+ }) || match.dayPeriod(dateString, {
2426
+ width: 'narrow',
2427
+ context: 'formatting'
2428
+ });
2429
+
2430
+ case 'BBBBB':
2431
+ return match.dayPeriod(dateString, {
2432
+ width: 'narrow',
2433
+ context: 'formatting'
2434
+ });
2435
+
2436
+ case 'BBBB':
2437
+ default:
2438
+ return match.dayPeriod(dateString, {
2439
+ width: 'wide',
2440
+ context: 'formatting'
2441
+ }) || match.dayPeriod(dateString, {
2442
+ width: 'abbreviated',
2443
+ context: 'formatting'
2444
+ }) || match.dayPeriod(dateString, {
2445
+ width: 'narrow',
2446
+ context: 'formatting'
2447
+ });
2448
+ }
2449
+ }
2450
+ }, {
2451
+ key: "set",
2452
+ value: function set(date, _flags, value) {
2453
+ date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
2454
+ return date;
2455
+ }
2456
+ }]);
2457
+
2458
+ return DayPeriodParser;
2459
+ }(Parser);
2460
+
2461
+ function _typeof$b(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$b = function _typeof(obj) { return typeof obj; }; } else { _typeof$b = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$b(obj); }
2462
+
2463
+ function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2464
+
2465
+ function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2466
+
2467
+ function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }
2468
+
2469
+ function _inherits$a(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$a(subClass, superClass); }
2470
+
2471
+ function _setPrototypeOf$a(o, p) { _setPrototypeOf$a = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$a(o, p); }
2472
+
2473
+ function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf$a(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$a(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$a(this, result); }; }
2474
+
2475
+ function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
2476
+
2477
+ function _assertThisInitialized$a(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2478
+
2479
+ function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2480
+
2481
+ function _getPrototypeOf$a(o) { _getPrototypeOf$a = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$a(o); }
2482
+
2483
+ function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2484
+ var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
2485
+ _inherits$a(Hour1to12Parser, _Parser);
2486
+
2487
+ var _super = _createSuper$a(Hour1to12Parser);
2488
+
2489
+ function Hour1to12Parser() {
2490
+ var _this;
2491
+
2492
+ _classCallCheck$a(this, Hour1to12Parser);
2493
+
2494
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2495
+ args[_key] = arguments[_key];
2496
+ }
2497
+
2498
+ _this = _super.call.apply(_super, [this].concat(args));
2499
+
2500
+ _defineProperty$a(_assertThisInitialized$a(_this), "priority", 70);
2501
+
2502
+ _defineProperty$a(_assertThisInitialized$a(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
2503
+
2504
+ return _this;
2505
+ }
2506
+
2507
+ _createClass$a(Hour1to12Parser, [{
2508
+ key: "parse",
2509
+ value: function parse(dateString, token, match) {
2510
+ switch (token) {
2511
+ case 'h':
2512
+ return parseNumericPattern(numericPatterns.hour12h, dateString);
2513
+
2514
+ case 'ho':
2515
+ return match.ordinalNumber(dateString, {
2516
+ unit: 'hour'
2517
+ });
2518
+
2519
+ default:
2520
+ return parseNDigits(token.length, dateString);
2521
+ }
2522
+ }
2523
+ }, {
2524
+ key: "validate",
2525
+ value: function validate(_date, value) {
2526
+ return value >= 1 && value <= 12;
2527
+ }
2528
+ }, {
2529
+ key: "set",
2530
+ value: function set(date, _flags, value) {
2531
+ var isPM = date.getUTCHours() >= 12;
2532
+
2533
+ if (isPM && value < 12) {
2534
+ date.setUTCHours(value + 12, 0, 0, 0);
2535
+ } else if (!isPM && value === 12) {
2536
+ date.setUTCHours(0, 0, 0, 0);
2537
+ } else {
2538
+ date.setUTCHours(value, 0, 0, 0);
2539
+ }
2540
+
2541
+ return date;
2542
+ }
2543
+ }]);
2544
+
2545
+ return Hour1to12Parser;
2546
+ }(Parser);
2547
+
2548
+ function _typeof$a(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$a = function _typeof(obj) { return typeof obj; }; } else { _typeof$a = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$a(obj); }
2549
+
2550
+ function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2551
+
2552
+ function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2553
+
2554
+ function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }
2555
+
2556
+ function _inherits$9(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$9(subClass, superClass); }
2557
+
2558
+ function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
2559
+
2560
+ function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
2561
+
2562
+ function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
2563
+
2564
+ function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2565
+
2566
+ function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2567
+
2568
+ function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
2569
+
2570
+ function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2571
+ var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
2572
+ _inherits$9(Hour0to23Parser, _Parser);
2573
+
2574
+ var _super = _createSuper$9(Hour0to23Parser);
2575
+
2576
+ function Hour0to23Parser() {
2577
+ var _this;
2578
+
2579
+ _classCallCheck$9(this, Hour0to23Parser);
2580
+
2581
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2582
+ args[_key] = arguments[_key];
2583
+ }
2584
+
2585
+ _this = _super.call.apply(_super, [this].concat(args));
2586
+
2587
+ _defineProperty$9(_assertThisInitialized$9(_this), "priority", 70);
2588
+
2589
+ _defineProperty$9(_assertThisInitialized$9(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
2590
+
2591
+ return _this;
2592
+ }
2593
+
2594
+ _createClass$9(Hour0to23Parser, [{
2595
+ key: "parse",
2596
+ value: function parse(dateString, token, match) {
2597
+ switch (token) {
2598
+ case 'H':
2599
+ return parseNumericPattern(numericPatterns.hour23h, dateString);
2600
+
2601
+ case 'Ho':
2602
+ return match.ordinalNumber(dateString, {
2603
+ unit: 'hour'
2604
+ });
2605
+
2606
+ default:
2607
+ return parseNDigits(token.length, dateString);
2608
+ }
2609
+ }
2610
+ }, {
2611
+ key: "validate",
2612
+ value: function validate(_date, value) {
2613
+ return value >= 0 && value <= 23;
2614
+ }
2615
+ }, {
2616
+ key: "set",
2617
+ value: function set(date, _flags, value) {
2618
+ date.setUTCHours(value, 0, 0, 0);
2619
+ return date;
2620
+ }
2621
+ }]);
2622
+
2623
+ return Hour0to23Parser;
2624
+ }(Parser);
2625
+
2626
+ function _typeof$9(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$9 = function _typeof(obj) { return typeof obj; }; } else { _typeof$9 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$9(obj); }
2627
+
2628
+ function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2629
+
2630
+ function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2631
+
2632
+ function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }
2633
+
2634
+ function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
2635
+
2636
+ function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
2637
+
2638
+ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
2639
+
2640
+ function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
2641
+
2642
+ function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2643
+
2644
+ function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2645
+
2646
+ function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
2647
+
2648
+ function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2649
+ var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
2650
+ _inherits$8(Hour0To11Parser, _Parser);
2651
+
2652
+ var _super = _createSuper$8(Hour0To11Parser);
2653
+
2654
+ function Hour0To11Parser() {
2655
+ var _this;
2656
+
2657
+ _classCallCheck$8(this, Hour0To11Parser);
2658
+
2659
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2660
+ args[_key] = arguments[_key];
2661
+ }
2662
+
2663
+ _this = _super.call.apply(_super, [this].concat(args));
2664
+
2665
+ _defineProperty$8(_assertThisInitialized$8(_this), "priority", 70);
2666
+
2667
+ _defineProperty$8(_assertThisInitialized$8(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
2668
+
2669
+ return _this;
2670
+ }
2671
+
2672
+ _createClass$8(Hour0To11Parser, [{
2673
+ key: "parse",
2674
+ value: function parse(dateString, token, match) {
2675
+ switch (token) {
2676
+ case 'K':
2677
+ return parseNumericPattern(numericPatterns.hour11h, dateString);
2678
+
2679
+ case 'Ko':
2680
+ return match.ordinalNumber(dateString, {
2681
+ unit: 'hour'
2682
+ });
2683
+
2684
+ default:
2685
+ return parseNDigits(token.length, dateString);
2686
+ }
2687
+ }
2688
+ }, {
2689
+ key: "validate",
2690
+ value: function validate(_date, value) {
2691
+ return value >= 0 && value <= 11;
2692
+ }
2693
+ }, {
2694
+ key: "set",
2695
+ value: function set(date, _flags, value) {
2696
+ var isPM = date.getUTCHours() >= 12;
2697
+
2698
+ if (isPM && value < 12) {
2699
+ date.setUTCHours(value + 12, 0, 0, 0);
2700
+ } else {
2701
+ date.setUTCHours(value, 0, 0, 0);
2702
+ }
2703
+
2704
+ return date;
2705
+ }
2706
+ }]);
2707
+
2708
+ return Hour0To11Parser;
2709
+ }(Parser);
2710
+
2711
+ function _typeof$8(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$8 = function _typeof(obj) { return typeof obj; }; } else { _typeof$8 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$8(obj); }
2712
+
2713
+ function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2714
+
2715
+ function _defineProperties$7(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2716
+
2717
+ function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }
2718
+
2719
+ function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
2720
+
2721
+ function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
2722
+
2723
+ function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
2724
+
2725
+ function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
2726
+
2727
+ function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2728
+
2729
+ function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2730
+
2731
+ function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
2732
+
2733
+ function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2734
+ var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
2735
+ _inherits$7(Hour1To24Parser, _Parser);
2736
+
2737
+ var _super = _createSuper$7(Hour1To24Parser);
2738
+
2739
+ function Hour1To24Parser() {
2740
+ var _this;
2741
+
2742
+ _classCallCheck$7(this, Hour1To24Parser);
2743
+
2744
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2745
+ args[_key] = arguments[_key];
2746
+ }
2747
+
2748
+ _this = _super.call.apply(_super, [this].concat(args));
2749
+
2750
+ _defineProperty$7(_assertThisInitialized$7(_this), "priority", 70);
2751
+
2752
+ _defineProperty$7(_assertThisInitialized$7(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
2753
+
2754
+ return _this;
2755
+ }
2756
+
2757
+ _createClass$7(Hour1To24Parser, [{
2758
+ key: "parse",
2759
+ value: function parse(dateString, token, match) {
2760
+ switch (token) {
2761
+ case 'k':
2762
+ return parseNumericPattern(numericPatterns.hour24h, dateString);
2763
+
2764
+ case 'ko':
2765
+ return match.ordinalNumber(dateString, {
2766
+ unit: 'hour'
2767
+ });
2768
+
2769
+ default:
2770
+ return parseNDigits(token.length, dateString);
2771
+ }
2772
+ }
2773
+ }, {
2774
+ key: "validate",
2775
+ value: function validate(_date, value) {
2776
+ return value >= 1 && value <= 24;
2777
+ }
2778
+ }, {
2779
+ key: "set",
2780
+ value: function set(date, _flags, value) {
2781
+ var hours = value <= 24 ? value % 24 : value;
2782
+ date.setUTCHours(hours, 0, 0, 0);
2783
+ return date;
2784
+ }
2785
+ }]);
2786
+
2787
+ return Hour1To24Parser;
2788
+ }(Parser);
2789
+
2790
+ function _typeof$7(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$7 = function _typeof(obj) { return typeof obj; }; } else { _typeof$7 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$7(obj); }
2791
+
2792
+ function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2793
+
2794
+ function _defineProperties$6(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2795
+
2796
+ function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }
2797
+
2798
+ function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
2799
+
2800
+ function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
2801
+
2802
+ function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
2803
+
2804
+ function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
2805
+
2806
+ function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2807
+
2808
+ function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2809
+
2810
+ function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
2811
+
2812
+ function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2813
+ var MinuteParser = /*#__PURE__*/function (_Parser) {
2814
+ _inherits$6(MinuteParser, _Parser);
2815
+
2816
+ var _super = _createSuper$6(MinuteParser);
2817
+
2818
+ function MinuteParser() {
2819
+ var _this;
2820
+
2821
+ _classCallCheck$6(this, MinuteParser);
2822
+
2823
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2824
+ args[_key] = arguments[_key];
2825
+ }
2826
+
2827
+ _this = _super.call.apply(_super, [this].concat(args));
2828
+
2829
+ _defineProperty$6(_assertThisInitialized$6(_this), "priority", 60);
2830
+
2831
+ _defineProperty$6(_assertThisInitialized$6(_this), "incompatibleTokens", ['t', 'T']);
2832
+
2833
+ return _this;
2834
+ }
2835
+
2836
+ _createClass$6(MinuteParser, [{
2837
+ key: "parse",
2838
+ value: function parse(dateString, token, match) {
2839
+ switch (token) {
2840
+ case 'm':
2841
+ return parseNumericPattern(numericPatterns.minute, dateString);
2842
+
2843
+ case 'mo':
2844
+ return match.ordinalNumber(dateString, {
2845
+ unit: 'minute'
2846
+ });
2847
+
2848
+ default:
2849
+ return parseNDigits(token.length, dateString);
2850
+ }
2851
+ }
2852
+ }, {
2853
+ key: "validate",
2854
+ value: function validate(_date, value) {
2855
+ return value >= 0 && value <= 59;
2856
+ }
2857
+ }, {
2858
+ key: "set",
2859
+ value: function set(date, _flags, value) {
2860
+ date.setUTCMinutes(value, 0, 0);
2861
+ return date;
2862
+ }
2863
+ }]);
2864
+
2865
+ return MinuteParser;
2866
+ }(Parser);
2867
+
2868
+ function _typeof$6(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$6 = function _typeof(obj) { return typeof obj; }; } else { _typeof$6 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$6(obj); }
2869
+
2870
+ function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2871
+
2872
+ function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2873
+
2874
+ function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
2875
+
2876
+ function _inherits$5(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$5(subClass, superClass); }
2877
+
2878
+ function _setPrototypeOf$5(o, p) { _setPrototypeOf$5 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$5(o, p); }
2879
+
2880
+ function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$5(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$5(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$5(this, result); }; }
2881
+
2882
+ function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
2883
+
2884
+ function _assertThisInitialized$5(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2885
+
2886
+ function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2887
+
2888
+ function _getPrototypeOf$5(o) { _getPrototypeOf$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$5(o); }
2889
+
2890
+ function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2891
+ var SecondParser = /*#__PURE__*/function (_Parser) {
2892
+ _inherits$5(SecondParser, _Parser);
2893
+
2894
+ var _super = _createSuper$5(SecondParser);
2895
+
2896
+ function SecondParser() {
2897
+ var _this;
2898
+
2899
+ _classCallCheck$5(this, SecondParser);
2900
+
2901
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2902
+ args[_key] = arguments[_key];
2903
+ }
2904
+
2905
+ _this = _super.call.apply(_super, [this].concat(args));
2906
+
2907
+ _defineProperty$5(_assertThisInitialized$5(_this), "priority", 50);
2908
+
2909
+ _defineProperty$5(_assertThisInitialized$5(_this), "incompatibleTokens", ['t', 'T']);
2910
+
2911
+ return _this;
2912
+ }
2913
+
2914
+ _createClass$5(SecondParser, [{
2915
+ key: "parse",
2916
+ value: function parse(dateString, token, match) {
2917
+ switch (token) {
2918
+ case 's':
2919
+ return parseNumericPattern(numericPatterns.second, dateString);
2920
+
2921
+ case 'so':
2922
+ return match.ordinalNumber(dateString, {
2923
+ unit: 'second'
2924
+ });
2925
+
2926
+ default:
2927
+ return parseNDigits(token.length, dateString);
2928
+ }
2929
+ }
2930
+ }, {
2931
+ key: "validate",
2932
+ value: function validate(_date, value) {
2933
+ return value >= 0 && value <= 59;
2934
+ }
2935
+ }, {
2936
+ key: "set",
2937
+ value: function set(date, _flags, value) {
2938
+ date.setUTCSeconds(value, 0);
2939
+ return date;
2940
+ }
2941
+ }]);
2942
+
2943
+ return SecondParser;
2944
+ }(Parser);
2945
+
2946
+ function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$5 = function _typeof(obj) { return typeof obj; }; } else { _typeof$5 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$5(obj); }
2947
+
2948
+ function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2949
+
2950
+ function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2951
+
2952
+ function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
2953
+
2954
+ function _inherits$4(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$4(subClass, superClass); }
2955
+
2956
+ function _setPrototypeOf$4(o, p) { _setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$4(o, p); }
2957
+
2958
+ function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
2959
+
2960
+ function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
2961
+
2962
+ function _assertThisInitialized$4(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2963
+
2964
+ function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2965
+
2966
+ function _getPrototypeOf$4(o) { _getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$4(o); }
2967
+
2968
+ function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2969
+ var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
2970
+ _inherits$4(FractionOfSecondParser, _Parser);
2971
+
2972
+ var _super = _createSuper$4(FractionOfSecondParser);
2973
+
2974
+ function FractionOfSecondParser() {
2975
+ var _this;
2976
+
2977
+ _classCallCheck$4(this, FractionOfSecondParser);
2978
+
2979
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2980
+ args[_key] = arguments[_key];
2981
+ }
2982
+
2983
+ _this = _super.call.apply(_super, [this].concat(args));
2984
+
2985
+ _defineProperty$4(_assertThisInitialized$4(_this), "priority", 30);
2986
+
2987
+ _defineProperty$4(_assertThisInitialized$4(_this), "incompatibleTokens", ['t', 'T']);
2988
+
2989
+ return _this;
2990
+ }
2991
+
2992
+ _createClass$4(FractionOfSecondParser, [{
2993
+ key: "parse",
2994
+ value: function parse(dateString, token) {
2995
+ var valueCallback = function valueCallback(value) {
2996
+ return Math.floor(value * Math.pow(10, -token.length + 3));
2997
+ };
2998
+
2999
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
3000
+ }
3001
+ }, {
3002
+ key: "set",
3003
+ value: function set(date, _flags, value) {
3004
+ date.setUTCMilliseconds(value);
3005
+ return date;
3006
+ }
3007
+ }]);
3008
+
3009
+ return FractionOfSecondParser;
3010
+ }(Parser);
3011
+
3012
+ function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
3013
+
3014
+ function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3015
+
3016
+ function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3017
+
3018
+ function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
3019
+
3020
+ function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$3(subClass, superClass); }
3021
+
3022
+ function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
3023
+
3024
+ function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
3025
+
3026
+ function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
3027
+
3028
+ function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3029
+
3030
+ function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3031
+
3032
+ function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
3033
+
3034
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3035
+
3036
+ var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
3037
+ _inherits$3(ISOTimezoneWithZParser, _Parser);
3038
+
3039
+ var _super = _createSuper$3(ISOTimezoneWithZParser);
3040
+
3041
+ function ISOTimezoneWithZParser() {
3042
+ var _this;
3043
+
3044
+ _classCallCheck$3(this, ISOTimezoneWithZParser);
3045
+
3046
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3047
+ args[_key] = arguments[_key];
3048
+ }
3049
+
3050
+ _this = _super.call.apply(_super, [this].concat(args));
3051
+
3052
+ _defineProperty$3(_assertThisInitialized$3(_this), "priority", 10);
3053
+
3054
+ _defineProperty$3(_assertThisInitialized$3(_this), "incompatibleTokens", ['t', 'T', 'x']);
3055
+
3056
+ return _this;
3057
+ }
3058
+
3059
+ _createClass$3(ISOTimezoneWithZParser, [{
3060
+ key: "parse",
3061
+ value: function parse(dateString, token) {
3062
+ switch (token) {
3063
+ case 'X':
3064
+ return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
3065
+
3066
+ case 'XX':
3067
+ return parseTimezonePattern(timezonePatterns.basic, dateString);
3068
+
3069
+ case 'XXXX':
3070
+ return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
3071
+
3072
+ case 'XXXXX':
3073
+ return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
3074
+
3075
+ case 'XXX':
3076
+ default:
3077
+ return parseTimezonePattern(timezonePatterns.extended, dateString);
3078
+ }
3079
+ }
3080
+ }, {
3081
+ key: "set",
3082
+ value: function set(date, flags, value) {
3083
+ if (flags.timestampIsSet) {
3084
+ return date;
3085
+ }
3086
+
3087
+ return new Date(date.getTime() - value);
3088
+ }
3089
+ }]);
3090
+
3091
+ return ISOTimezoneWithZParser;
3092
+ }(Parser);
3093
+
3094
+ function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
3095
+
3096
+ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3097
+
3098
+ function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3099
+
3100
+ function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
3101
+
3102
+ function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
3103
+
3104
+ function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
3105
+
3106
+ function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
3107
+
3108
+ function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
3109
+
3110
+ function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3111
+
3112
+ function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3113
+
3114
+ function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
3115
+
3116
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3117
+
3118
+ var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
3119
+ _inherits$2(ISOTimezoneParser, _Parser);
3120
+
3121
+ var _super = _createSuper$2(ISOTimezoneParser);
3122
+
3123
+ function ISOTimezoneParser() {
3124
+ var _this;
3125
+
3126
+ _classCallCheck$2(this, ISOTimezoneParser);
3127
+
3128
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3129
+ args[_key] = arguments[_key];
3130
+ }
3131
+
3132
+ _this = _super.call.apply(_super, [this].concat(args));
3133
+
3134
+ _defineProperty$2(_assertThisInitialized$2(_this), "priority", 10);
3135
+
3136
+ _defineProperty$2(_assertThisInitialized$2(_this), "incompatibleTokens", ['t', 'T', 'X']);
3137
+
3138
+ return _this;
3139
+ }
3140
+
3141
+ _createClass$2(ISOTimezoneParser, [{
3142
+ key: "parse",
3143
+ value: function parse(dateString, token) {
3144
+ switch (token) {
3145
+ case 'x':
3146
+ return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
3147
+
3148
+ case 'xx':
3149
+ return parseTimezonePattern(timezonePatterns.basic, dateString);
3150
+
3151
+ case 'xxxx':
3152
+ return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
3153
+
3154
+ case 'xxxxx':
3155
+ return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
3156
+
3157
+ case 'xxx':
3158
+ default:
3159
+ return parseTimezonePattern(timezonePatterns.extended, dateString);
3160
+ }
3161
+ }
3162
+ }, {
3163
+ key: "set",
3164
+ value: function set(date, flags, value) {
3165
+ if (flags.timestampIsSet) {
3166
+ return date;
3167
+ }
3168
+
3169
+ return new Date(date.getTime() - value);
3170
+ }
3171
+ }]);
3172
+
3173
+ return ISOTimezoneParser;
3174
+ }(Parser);
3175
+
3176
+ function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
3177
+
3178
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3179
+
3180
+ function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3181
+
3182
+ function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
3183
+
3184
+ function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
3185
+
3186
+ function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
3187
+
3188
+ function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
3189
+
3190
+ function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
3191
+
3192
+ function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3193
+
3194
+ function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3195
+
3196
+ function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
3197
+
3198
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3199
+ var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
3200
+ _inherits$1(TimestampSecondsParser, _Parser);
3201
+
3202
+ var _super = _createSuper$1(TimestampSecondsParser);
3203
+
3204
+ function TimestampSecondsParser() {
3205
+ var _this;
3206
+
3207
+ _classCallCheck$1(this, TimestampSecondsParser);
3208
+
3209
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3210
+ args[_key] = arguments[_key];
3211
+ }
3212
+
3213
+ _this = _super.call.apply(_super, [this].concat(args));
3214
+
3215
+ _defineProperty$1(_assertThisInitialized$1(_this), "priority", 40);
3216
+
3217
+ _defineProperty$1(_assertThisInitialized$1(_this), "incompatibleTokens", '*');
3218
+
3219
+ return _this;
3220
+ }
3221
+
3222
+ _createClass$1(TimestampSecondsParser, [{
3223
+ key: "parse",
3224
+ value: function parse(dateString) {
3225
+ return parseAnyDigitsSigned(dateString);
3226
+ }
3227
+ }, {
3228
+ key: "set",
3229
+ value: function set(_date, _flags, value) {
3230
+ return [new Date(value * 1000), {
3231
+ timestampIsSet: true
3232
+ }];
3233
+ }
3234
+ }]);
3235
+
3236
+ return TimestampSecondsParser;
3237
+ }(Parser);
3238
+
3239
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
3240
+
3241
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3242
+
3243
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3244
+
3245
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3246
+
3247
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3248
+
3249
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3250
+
3251
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3252
+
3253
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3254
+
3255
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3256
+
3257
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3258
+
3259
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3260
+
3261
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3262
+ var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
3263
+ _inherits(TimestampMillisecondsParser, _Parser);
3264
+
3265
+ var _super = _createSuper(TimestampMillisecondsParser);
3266
+
3267
+ function TimestampMillisecondsParser() {
3268
+ var _this;
3269
+
3270
+ _classCallCheck(this, TimestampMillisecondsParser);
3271
+
3272
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3273
+ args[_key] = arguments[_key];
3274
+ }
3275
+
3276
+ _this = _super.call.apply(_super, [this].concat(args));
3277
+
3278
+ _defineProperty(_assertThisInitialized(_this), "priority", 20);
3279
+
3280
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*');
3281
+
3282
+ return _this;
3283
+ }
3284
+
3285
+ _createClass(TimestampMillisecondsParser, [{
3286
+ key: "parse",
3287
+ value: function parse(dateString) {
3288
+ return parseAnyDigitsSigned(dateString);
3289
+ }
3290
+ }, {
3291
+ key: "set",
3292
+ value: function set(_date, _flags, value) {
3293
+ return [new Date(value), {
3294
+ timestampIsSet: true
3295
+ }];
3296
+ }
3297
+ }]);
3298
+
3299
+ return TimestampMillisecondsParser;
3300
+ }(Parser);
3301
+
3302
+ /*
3303
+ * | | Unit | | Unit |
3304
+ * |-----|--------------------------------|-----|--------------------------------|
3305
+ * | a | AM, PM | A* | Milliseconds in day |
3306
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
3307
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
3308
+ * | d | Day of month | D | Day of year |
3309
+ * | e | Local day of week | E | Day of week |
3310
+ * | f | | F* | Day of week in month |
3311
+ * | g* | Modified Julian day | G | Era |
3312
+ * | h | Hour [1-12] | H | Hour [0-23] |
3313
+ * | i! | ISO day of week | I! | ISO week of year |
3314
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
3315
+ * | k | Hour [1-24] | K | Hour [0-11] |
3316
+ * | l* | (deprecated) | L | Stand-alone month |
3317
+ * | m | Minute | M | Month |
3318
+ * | n | | N | |
3319
+ * | o! | Ordinal number modifier | O* | Timezone (GMT) |
3320
+ * | p | | P | |
3321
+ * | q | Stand-alone quarter | Q | Quarter |
3322
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
3323
+ * | s | Second | S | Fraction of second |
3324
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
3325
+ * | u | Extended year | U* | Cyclic year |
3326
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
3327
+ * | w | Local week of year | W* | Week of month |
3328
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
3329
+ * | y | Year (abs) | Y | Local week-numbering year |
3330
+ * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
3331
+ *
3332
+ * Letters marked by * are not implemented but reserved by Unicode standard.
3333
+ *
3334
+ * Letters marked by ! are non-standard, but implemented by date-fns:
3335
+ * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
3336
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
3337
+ * i.e. 7 for Sunday, 1 for Monday, etc.
3338
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
3339
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
3340
+ * `R` is supposed to be used in conjunction with `I` and `i`
3341
+ * for universal ISO week-numbering date, whereas
3342
+ * `Y` is supposed to be used in conjunction with `w` and `e`
3343
+ * for week-numbering date specific to the locale.
3344
+ */
3345
+
3346
+ var parsers = {
3347
+ G: new EraParser(),
3348
+ y: new YearParser(),
3349
+ Y: new LocalWeekYearParser(),
3350
+ R: new ISOWeekYearParser(),
3351
+ u: new ExtendedYearParser(),
3352
+ Q: new QuarterParser(),
3353
+ q: new StandAloneQuarterParser(),
3354
+ M: new MonthParser(),
3355
+ L: new StandAloneMonthParser(),
3356
+ w: new LocalWeekParser(),
3357
+ I: new ISOWeekParser(),
3358
+ d: new DateParser(),
3359
+ D: new DayOfYearParser(),
3360
+ E: new DayParser(),
3361
+ e: new LocalDayParser(),
3362
+ c: new StandAloneLocalDayParser(),
3363
+ i: new ISODayParser(),
3364
+ a: new AMPMParser(),
3365
+ b: new AMPMMidnightParser(),
3366
+ B: new DayPeriodParser(),
3367
+ h: new Hour1to12Parser(),
3368
+ H: new Hour0to23Parser(),
3369
+ K: new Hour0To11Parser(),
3370
+ k: new Hour1To24Parser(),
3371
+ m: new MinuteParser(),
3372
+ s: new SecondParser(),
3373
+ S: new FractionOfSecondParser(),
3374
+ X: new ISOTimezoneWithZParser(),
3375
+ x: new ISOTimezoneParser(),
3376
+ t: new TimestampSecondsParser(),
3377
+ T: new TimestampMillisecondsParser()
3378
+ };
3379
+
3380
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3381
+
3382
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3383
+
3384
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3385
+
3386
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
3387
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
3388
+ // (one of the certain letters followed by `o`)
3389
+ // - (\w)\1* matches any sequences of the same letter
3390
+ // - '' matches two quote characters in a row
3391
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
3392
+ // except a single quote symbol, which ends the sequence.
3393
+ // Two quote characters do not end the sequence.
3394
+ // If there is no matching single quote
3395
+ // then the sequence will continue until the end of the string.
3396
+ // - . matches any single character unmatched by previous parts of the RegExps
3397
+
3398
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
3399
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
3400
+
3401
+ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
3402
+ var escapedStringRegExp = /^'([^]*?)'?$/;
3403
+ var doubleQuoteRegExp = /''/g;
3404
+ var notWhitespaceRegExp = /\S/;
3405
+ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3406
+ /**
3407
+ * @name parse
3408
+ * @category Common Helpers
3409
+ * @summary Parse the date.
3410
+ *
3411
+ * @description
3412
+ * Return the date parsed from string using the given format string.
3413
+ *
3414
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
3415
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3416
+ *
3417
+ * The characters in the format string wrapped between two single quotes characters (') are escaped.
3418
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
3419
+ *
3420
+ * Format of the format string is based on Unicode Technical Standard #35:
3421
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
3422
+ * with a few additions (see note 5 below the table).
3423
+ *
3424
+ * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
3425
+ * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
3426
+ *
3427
+ * ```javascript
3428
+ * parse('23 AM', 'HH a', new Date())
3429
+ * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
3430
+ * ```
3431
+ *
3432
+ * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
3433
+ *
3434
+ * Accepted format string patterns:
3435
+ * | Unit |Prior| Pattern | Result examples | Notes |
3436
+ * |---------------------------------|-----|---------|-----------------------------------|-------|
3437
+ * | Era | 140 | G..GGG | AD, BC | |
3438
+ * | | | GGGG | Anno Domini, Before Christ | 2 |
3439
+ * | | | GGGGG | A, B | |
3440
+ * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
3441
+ * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
3442
+ * | | | yy | 44, 01, 00, 17 | 4 |
3443
+ * | | | yyy | 044, 001, 123, 999 | 4 |
3444
+ * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
3445
+ * | | | yyyyy | ... | 2,4 |
3446
+ * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
3447
+ * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
3448
+ * | | | YY | 44, 01, 00, 17 | 4,6 |
3449
+ * | | | YYY | 044, 001, 123, 999 | 4 |
3450
+ * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
3451
+ * | | | YYYYY | ... | 2,4 |
3452
+ * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
3453
+ * | | | RR | -43, 01, 00, 17 | 4,5 |
3454
+ * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
3455
+ * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
3456
+ * | | | RRRRR | ... | 2,4,5 |
3457
+ * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
3458
+ * | | | uu | -43, 01, 99, -99 | 4 |
3459
+ * | | | uuu | -043, 001, 123, 999, -999 | 4 |
3460
+ * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
3461
+ * | | | uuuuu | ... | 2,4 |
3462
+ * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
3463
+ * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
3464
+ * | | | QQ | 01, 02, 03, 04 | |
3465
+ * | | | QQQ | Q1, Q2, Q3, Q4 | |
3466
+ * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
3467
+ * | | | QQQQQ | 1, 2, 3, 4 | 4 |
3468
+ * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
3469
+ * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
3470
+ * | | | qq | 01, 02, 03, 04 | |
3471
+ * | | | qqq | Q1, Q2, Q3, Q4 | |
3472
+ * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
3473
+ * | | | qqqqq | 1, 2, 3, 4 | 3 |
3474
+ * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
3475
+ * | | | Mo | 1st, 2nd, ..., 12th | 5 |
3476
+ * | | | MM | 01, 02, ..., 12 | |
3477
+ * | | | MMM | Jan, Feb, ..., Dec | |
3478
+ * | | | MMMM | January, February, ..., December | 2 |
3479
+ * | | | MMMMM | J, F, ..., D | |
3480
+ * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
3481
+ * | | | Lo | 1st, 2nd, ..., 12th | 5 |
3482
+ * | | | LL | 01, 02, ..., 12 | |
3483
+ * | | | LLL | Jan, Feb, ..., Dec | |
3484
+ * | | | LLLL | January, February, ..., December | 2 |
3485
+ * | | | LLLLL | J, F, ..., D | |
3486
+ * | Local week of year | 100 | w | 1, 2, ..., 53 | |
3487
+ * | | | wo | 1st, 2nd, ..., 53th | 5 |
3488
+ * | | | ww | 01, 02, ..., 53 | |
3489
+ * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
3490
+ * | | | Io | 1st, 2nd, ..., 53th | 5 |
3491
+ * | | | II | 01, 02, ..., 53 | 5 |
3492
+ * | Day of month | 90 | d | 1, 2, ..., 31 | |
3493
+ * | | | do | 1st, 2nd, ..., 31st | 5 |
3494
+ * | | | dd | 01, 02, ..., 31 | |
3495
+ * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
3496
+ * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
3497
+ * | | | DD | 01, 02, ..., 365, 366 | 7 |
3498
+ * | | | DDD | 001, 002, ..., 365, 366 | |
3499
+ * | | | DDDD | ... | 2 |
3500
+ * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
3501
+ * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
3502
+ * | | | EEEEE | M, T, W, T, F, S, S | |
3503
+ * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
3504
+ * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
3505
+ * | | | io | 1st, 2nd, ..., 7th | 5 |
3506
+ * | | | ii | 01, 02, ..., 07 | 5 |
3507
+ * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
3508
+ * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
3509
+ * | | | iiiii | M, T, W, T, F, S, S | 5 |
3510
+ * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
3511
+ * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
3512
+ * | | | eo | 2nd, 3rd, ..., 1st | 5 |
3513
+ * | | | ee | 02, 03, ..., 01 | |
3514
+ * | | | eee | Mon, Tue, Wed, ..., Sun | |
3515
+ * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
3516
+ * | | | eeeee | M, T, W, T, F, S, S | |
3517
+ * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
3518
+ * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
3519
+ * | | | co | 2nd, 3rd, ..., 1st | 5 |
3520
+ * | | | cc | 02, 03, ..., 01 | |
3521
+ * | | | ccc | Mon, Tue, Wed, ..., Sun | |
3522
+ * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
3523
+ * | | | ccccc | M, T, W, T, F, S, S | |
3524
+ * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
3525
+ * | AM, PM | 80 | a..aaa | AM, PM | |
3526
+ * | | | aaaa | a.m., p.m. | 2 |
3527
+ * | | | aaaaa | a, p | |
3528
+ * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
3529
+ * | | | bbbb | a.m., p.m., noon, midnight | 2 |
3530
+ * | | | bbbbb | a, p, n, mi | |
3531
+ * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
3532
+ * | | | BBBB | at night, in the morning, ... | 2 |
3533
+ * | | | BBBBB | at night, in the morning, ... | |
3534
+ * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
3535
+ * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
3536
+ * | | | hh | 01, 02, ..., 11, 12 | |
3537
+ * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
3538
+ * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
3539
+ * | | | HH | 00, 01, 02, ..., 23 | |
3540
+ * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
3541
+ * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
3542
+ * | | | KK | 01, 02, ..., 11, 00 | |
3543
+ * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
3544
+ * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
3545
+ * | | | kk | 24, 01, 02, ..., 23 | |
3546
+ * | Minute | 60 | m | 0, 1, ..., 59 | |
3547
+ * | | | mo | 0th, 1st, ..., 59th | 5 |
3548
+ * | | | mm | 00, 01, ..., 59 | |
3549
+ * | Second | 50 | s | 0, 1, ..., 59 | |
3550
+ * | | | so | 0th, 1st, ..., 59th | 5 |
3551
+ * | | | ss | 00, 01, ..., 59 | |
3552
+ * | Seconds timestamp | 40 | t | 512969520 | |
3553
+ * | | | tt | ... | 2 |
3554
+ * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
3555
+ * | | | SS | 00, 01, ..., 99 | |
3556
+ * | | | SSS | 000, 001, ..., 999 | |
3557
+ * | | | SSSS | ... | 2 |
3558
+ * | Milliseconds timestamp | 20 | T | 512969520900 | |
3559
+ * | | | TT | ... | 2 |
3560
+ * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
3561
+ * | | | XX | -0800, +0530, Z | |
3562
+ * | | | XXX | -08:00, +05:30, Z | |
3563
+ * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
3564
+ * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
3565
+ * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
3566
+ * | | | xx | -0800, +0530, +0000 | |
3567
+ * | | | xxx | -08:00, +05:30, +00:00 | 2 |
3568
+ * | | | xxxx | -0800, +0530, +0000, +123456 | |
3569
+ * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
3570
+ * | Long localized date | NA | P | 05/29/1453 | 5,8 |
3571
+ * | | | PP | May 29, 1453 | |
3572
+ * | | | PPP | May 29th, 1453 | |
3573
+ * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
3574
+ * | Long localized time | NA | p | 12:00 AM | 5,8 |
3575
+ * | | | pp | 12:00:00 AM | |
3576
+ * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
3577
+ * | | | PPpp | May 29, 1453, 12:00:00 AM | |
3578
+ * | | | PPPpp | May 29th, 1453 at ... | |
3579
+ * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
3580
+ * Notes:
3581
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
3582
+ * are the same as "stand-alone" units, but are different in some languages.
3583
+ * "Formatting" units are declined according to the rules of the language
3584
+ * in the context of a date. "Stand-alone" units are always nominative singular.
3585
+ * In `format` function, they will produce different result:
3586
+ *
3587
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
3588
+ *
3589
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
3590
+ *
3591
+ * `parse` will try to match both formatting and stand-alone units interchangably.
3592
+ *
3593
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
3594
+ * the single quote characters (see below).
3595
+ * If the sequence is longer than listed in table:
3596
+ * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
3597
+ * as wide as the sequence
3598
+ * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
3599
+ * These variations are marked with "2" in the last column of the table.
3600
+ *
3601
+ * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
3602
+ * These tokens represent the shortest form of the quarter.
3603
+ *
3604
+ * 4. The main difference between `y` and `u` patterns are B.C. years:
3605
+ *
3606
+ * | Year | `y` | `u` |
3607
+ * |------|-----|-----|
3608
+ * | AC 1 | 1 | 1 |
3609
+ * | BC 1 | 1 | 0 |
3610
+ * | BC 2 | 2 | -1 |
3611
+ *
3612
+ * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
3613
+ *
3614
+ * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
3615
+ *
3616
+ * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
3617
+ *
3618
+ * while `uu` will just assign the year as is:
3619
+ *
3620
+ * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
3621
+ *
3622
+ * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
3623
+ *
3624
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
3625
+ * except local week-numbering years are dependent on `options.weekStartsOn`
3626
+ * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
3627
+ * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
3628
+ *
3629
+ * 5. These patterns are not in the Unicode Technical Standard #35:
3630
+ * - `i`: ISO day of week
3631
+ * - `I`: ISO week of year
3632
+ * - `R`: ISO week-numbering year
3633
+ * - `o`: ordinal number modifier
3634
+ * - `P`: long localized date
3635
+ * - `p`: long localized time
3636
+ *
3637
+ * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
3638
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3639
+ *
3640
+ * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
3641
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3642
+ *
3643
+ * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
3644
+ * on the given locale.
3645
+ *
3646
+ * using `en-US` locale: `P` => `MM/dd/yyyy`
3647
+ * using `en-US` locale: `p` => `hh:mm a`
3648
+ * using `pt-BR` locale: `P` => `dd/MM/yyyy`
3649
+ * using `pt-BR` locale: `p` => `HH:mm`
3650
+ *
3651
+ * Values will be assigned to the date in the descending order of its unit's priority.
3652
+ * Units of an equal priority overwrite each other in the order of appearance.
3653
+ *
3654
+ * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
3655
+ * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
3656
+ *
3657
+ * `referenceDate` must be passed for correct work of the function.
3658
+ * If you're not sure which `referenceDate` to supply, create a new instance of Date:
3659
+ * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
3660
+ * In this case parsing will be done in the context of the current date.
3661
+ * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
3662
+ * then `Invalid Date` will be returned.
3663
+ *
3664
+ * The result may vary by locale.
3665
+ *
3666
+ * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
3667
+ *
3668
+ * If parsing failed, `Invalid Date` will be returned.
3669
+ * Invalid Date is a Date, whose time value is NaN.
3670
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
3671
+ *
3672
+ * @param {String} dateString - the string to parse
3673
+ * @param {String} formatString - the string of tokens
3674
+ * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
3675
+ * @param {Object} [options] - an object with options.
3676
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
3677
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
3678
+ * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
3679
+ * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
3680
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3681
+ * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
3682
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3683
+ * @returns {Date} the parsed date
3684
+ * @throws {TypeError} 3 arguments required
3685
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
3686
+ * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
3687
+ * @throws {RangeError} `options.locale` must contain `match` property
3688
+ * @throws {RangeError} 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
3689
+ * @throws {RangeError} 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
3690
+ * @throws {RangeError} 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
3691
+ * @throws {RangeError} 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
3692
+ * @throws {RangeError} format string contains an unescaped latin alphabet character
3693
+ *
3694
+ * @example
3695
+ * // Parse 11 February 2014 from middle-endian format:
3696
+ * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
3697
+ * //=> Tue Feb 11 2014 00:00:00
3698
+ *
3699
+ * @example
3700
+ * // Parse 28th of February in Esperanto locale in the context of 2010 year:
3701
+ * import eo from 'date-fns/locale/eo'
3702
+ * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
3703
+ * locale: eo
3704
+ * })
3705
+ * //=> Sun Feb 28 2010 00:00:00
3706
+ */
3707
+
3708
+ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) {
3709
+ var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
3710
+
3711
+ requiredArgs(3, arguments);
3712
+ var dateString = String(dirtyDateString);
3713
+ var formatString = String(dirtyFormatString);
3714
+ var defaultOptions = getDefaultOptions();
3715
+ var locale$1 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale;
3716
+
3717
+ if (!locale$1.match) {
3718
+ throw new RangeError('locale must contain match property');
3719
+ }
3720
+
3721
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
3722
+
3723
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
3724
+ throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
3725
+ }
3726
+
3727
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
3728
+
3729
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
3730
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
3731
+ }
3732
+
3733
+ if (formatString === '') {
3734
+ if (dateString === '') {
3735
+ return toDate(dirtyReferenceDate);
3736
+ } else {
3737
+ return new Date(NaN);
3738
+ }
3739
+ }
3740
+
3741
+ var subFnOptions = {
3742
+ firstWeekContainsDate: firstWeekContainsDate,
3743
+ weekStartsOn: weekStartsOn,
3744
+ locale: locale$1
3745
+ }; // If timezone isn't specified, it will be set to the system timezone
3746
+
3747
+ var setters = [new DateToSystemTimezoneSetter()];
3748
+ var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
3749
+ var firstCharacter = substring[0];
3750
+
3751
+ if (firstCharacter in longFormatters) {
3752
+ var longFormatter = longFormatters[firstCharacter];
3753
+ return longFormatter(substring, locale$1.formatLong);
3754
+ }
3755
+
3756
+ return substring;
3757
+ }).join('').match(formattingTokensRegExp);
3758
+ var usedTokens = [];
3759
+
3760
+ var _iterator = _createForOfIteratorHelper(tokens),
3761
+ _step;
3762
+
3763
+ try {
3764
+ var _loop = function _loop() {
3765
+ var token = _step.value;
3766
+
3767
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token)) {
3768
+ throwProtectedError(token, formatString, dirtyDateString);
3769
+ }
3770
+
3771
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) {
3772
+ throwProtectedError(token, formatString, dirtyDateString);
3773
+ }
3774
+
3775
+ var firstCharacter = token[0];
3776
+ var parser = parsers[firstCharacter];
3777
+
3778
+ if (parser) {
3779
+ var incompatibleTokens = parser.incompatibleTokens;
3780
+
3781
+ if (Array.isArray(incompatibleTokens)) {
3782
+ var incompatibleToken = usedTokens.find(function (usedToken) {
3783
+ return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;
3784
+ });
3785
+
3786
+ if (incompatibleToken) {
3787
+ throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
3788
+ }
3789
+ } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) {
3790
+ throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
3791
+ }
3792
+
3793
+ usedTokens.push({
3794
+ token: firstCharacter,
3795
+ fullToken: token
3796
+ });
3797
+ var parseResult = parser.run(dateString, token, locale$1.match, subFnOptions);
3798
+
3799
+ if (!parseResult) {
3800
+ return {
3801
+ v: new Date(NaN)
3802
+ };
3803
+ }
3804
+
3805
+ setters.push(parseResult.setter);
3806
+ dateString = parseResult.rest;
3807
+ } else {
3808
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
3809
+ throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
3810
+ } // Replace two single quote characters with one single quote character
3811
+
3812
+
3813
+ if (token === "''") {
3814
+ token = "'";
3815
+ } else if (firstCharacter === "'") {
3816
+ token = cleanEscapedString(token);
3817
+ } // Cut token from string, or, if string doesn't match the token, return Invalid Date
3818
+
3819
+
3820
+ if (dateString.indexOf(token) === 0) {
3821
+ dateString = dateString.slice(token.length);
3822
+ } else {
3823
+ return {
3824
+ v: new Date(NaN)
3825
+ };
3826
+ }
3827
+ }
3828
+ };
3829
+
3830
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
3831
+ var _ret = _loop();
3832
+
3833
+ if (_typeof(_ret) === "object") return _ret.v;
3834
+ } // Check if the remaining input contains something other than whitespace
3835
+
3836
+ } catch (err) {
3837
+ _iterator.e(err);
3838
+ } finally {
3839
+ _iterator.f();
3840
+ }
3841
+
3842
+ if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
3843
+ return new Date(NaN);
3844
+ }
3845
+
3846
+ var uniquePrioritySetters = setters.map(function (setter) {
3847
+ return setter.priority;
3848
+ }).sort(function (a, b) {
3849
+ return b - a;
3850
+ }).filter(function (priority, index, array) {
3851
+ return array.indexOf(priority) === index;
3852
+ }).map(function (priority) {
3853
+ return setters.filter(function (setter) {
3854
+ return setter.priority === priority;
3855
+ }).sort(function (a, b) {
3856
+ return b.subPriority - a.subPriority;
3857
+ });
3858
+ }).map(function (setterArray) {
3859
+ return setterArray[0];
3860
+ });
3861
+ var date = toDate(dirtyReferenceDate);
3862
+
3863
+ if (isNaN(date.getTime())) {
3864
+ return new Date(NaN);
3865
+ } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
3866
+
3867
+
3868
+ var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));
3869
+ var flags = {};
3870
+
3871
+ var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters),
3872
+ _step2;
3873
+
3874
+ try {
3875
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3876
+ var setter = _step2.value;
3877
+
3878
+ if (!setter.validate(utcDate, subFnOptions)) {
3879
+ return new Date(NaN);
3880
+ }
3881
+
3882
+ var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags)
3883
+
3884
+ if (Array.isArray(result)) {
3885
+ utcDate = result[0];
3886
+ assign(flags, result[1]); // Result is date
3887
+ } else {
3888
+ utcDate = result;
3889
+ }
3890
+ }
3891
+ } catch (err) {
3892
+ _iterator2.e(err);
3893
+ } finally {
3894
+ _iterator2.f();
3895
+ }
3896
+
3897
+ return utcDate;
3898
+ }
3899
+
3900
+ function cleanEscapedString(input) {
3901
+ return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
3902
+ }
3903
+
3904
+ const datepickerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.col-start-1{grid-column-start:1!important}.col-start-2{grid-column-start:2!important}.col-start-3{grid-column-start:3!important}.col-start-4{grid-column-start:4!important}.col-start-5{grid-column-start:5!important}.col-start-6{grid-column-start:6!important}.col-start-7{grid-column-start:7!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-0,.-rotate-135{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-315{--tw-rotate:-315deg!important}.-rotate-315,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-90,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate:0deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-270{--tw-rotate:270deg!important}.rotate-270,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-315{--tw-rotate:315deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.items-end{align-items:flex-end!important}.justify-between{justify-content:space-between!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-br-none{border-bottom-right-radius:0!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tr-none{border-top-right-radius:0!important}.border-l-0{border-left-width:0!important}.border-r-0{border-right-width:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-xxs{font-size:.6875rem!important}.text-negative{color:rgb(185 30 40/var(--tw-text-opacity))!important}.text-negative,.text-negative-light{--tw-text-opacity:1!important}.text-negative-light{color:rgb(255 204 211/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column}:host input.read-only{text-overflow:ellipsis}.-rotate-0,.-rotate-135,.-rotate-180,.-rotate-225,.-rotate-25,.-rotate-270,.-rotate-315,.-rotate-45,.-rotate-90,.rotate-0,.rotate-135,.rotate-180,.rotate-225,.rotate-25,.rotate-270,.rotate-315,.rotate-45,.rotate-90,.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.hover\\:text-negative:hover{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
3905
+
3906
+ const Datepicker = class {
3907
+ constructor(hostRef) {
3908
+ registerInstance(this, hostRef);
3909
+ this.valueChange = createEvent(this, "valueChange", 7);
3910
+ this._defaultFormats = {
3911
+ year: 'yyyy',
3912
+ month: 'LLLL, yyyy',
3913
+ day: 'dd-MM-yyyy',
3914
+ };
3915
+ this.placeholder = undefined;
3916
+ this.value = undefined;
3917
+ this.preselectToday = false;
3918
+ this.disabledDates = undefined;
3919
+ this.minDate = undefined;
3920
+ this.maxDate = undefined;
3921
+ this.disableWeekends = false;
3922
+ this.mode = 'day';
3923
+ this.format = 'dd-MM-yyyy';
3924
+ this.size = 'medium';
3925
+ this.prefix = undefined;
3926
+ this.label = undefined;
3927
+ this.helper = undefined;
3928
+ this.error = undefined;
3929
+ this.disabled = false;
3930
+ this._showDropdown = false;
3931
+ this._value = undefined;
3932
+ this._minDate = undefined;
3933
+ this._maxDate = undefined;
3934
+ this._disabledDates = [];
3935
+ }
3936
+ get formattedDate() {
3937
+ if (!this._value) {
3938
+ return;
3939
+ }
3940
+ return format(this._value, this.format);
3941
+ }
3942
+ parseValue(value) {
3943
+ if (!value && this.preselectToday) {
3944
+ value = new Date();
3945
+ }
3946
+ if (typeof value === 'string') {
3947
+ value = new Date(value);
3948
+ }
3949
+ this._setValue(value);
3950
+ }
3951
+ parseMinDate(minDate) {
3952
+ if (typeof minDate === 'string') {
3953
+ minDate = new Date(minDate);
3954
+ }
3955
+ if (!isValid(minDate)) {
3956
+ return;
3957
+ }
3958
+ this._minDate = minDate;
3959
+ if (isBefore(this._value, this._minDate)) {
3960
+ this._setValue(null);
3961
+ }
3962
+ }
3963
+ parseMaxDate(maxDate) {
3964
+ if (typeof maxDate === 'string') {
3965
+ maxDate = new Date(maxDate);
3966
+ }
3967
+ if (!isValid(maxDate)) {
3968
+ return;
3969
+ }
3970
+ this._maxDate = maxDate;
3971
+ if (isAfter(this._value, this._maxDate)) {
3972
+ this._setValue(null);
3973
+ }
3974
+ }
3975
+ parseDisabledDates(disabledDates) {
3976
+ if (typeof disabledDates === 'string') {
3977
+ disabledDates = JSON.parse(disabledDates);
3978
+ }
3979
+ if (!disabledDates || !Array.isArray(disabledDates)) {
3980
+ return;
3981
+ }
3982
+ // normalize all to date
3983
+ this._disabledDates = disabledDates
3984
+ .map((date) => {
3985
+ if (typeof date === 'string') {
3986
+ return new Date(date);
3987
+ }
3988
+ return date;
3989
+ })
3990
+ .filter((date) => isValid(date));
3991
+ if (this._isDisabledDay(this._value)) {
3992
+ this._setValue(null);
3993
+ }
3994
+ }
3995
+ componentWillLoad() {
3996
+ if (this.disabledDates) {
3997
+ this.parseDisabledDates(this.disabledDates);
3998
+ }
3999
+ if (this.minDate) {
4000
+ this.parseMinDate(this.minDate);
4001
+ }
4002
+ if (this.maxDate) {
4003
+ this.parseMaxDate(this.maxDate);
4004
+ }
4005
+ if (this.mode !== 'day' &&
4006
+ this.format === this._defaultFormats['day']) {
4007
+ this.format = this._defaultFormats[this.mode];
4008
+ }
4009
+ this.parseValue(this.value);
4010
+ }
4011
+ render() {
4012
+ return (h(Host, { class: "p-datepicker" }, h("p-dropdown", { disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-input-group", { slot: "trigger", icon: "calendar", iconPosition: "start", size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, error: this.error, disabled: this.disabled, focused: this._showDropdown }, h("input", { slot: "input", type: "text", placeholder: this.placeholder, value: this.formattedDate, class: "p-input cursor-pointer", onFocus: () => this._onFocus(), onInput: (ev) => this._onInput(ev) })), h("div", { slot: "items" }, h("p-calendar", { variant: "embedded", value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
4013
+ }
4014
+ documentClickHandler({ target }) {
4015
+ if (!this._showDropdown || childOf(target, this._el)) {
4016
+ return;
4017
+ }
4018
+ this._showDropdown = false;
4019
+ }
4020
+ _onFocus() {
4021
+ this._showDropdown = true;
4022
+ }
4023
+ _onBlur() {
4024
+ this._showDropdown = false;
4025
+ }
4026
+ _onInput(ev) {
4027
+ if (this._onInputTimeout) {
4028
+ clearTimeout(this._onInputTimeout);
4029
+ this._onInputTimeout = null;
4030
+ }
4031
+ this._onInputTimeout = setTimeout(() => {
4032
+ const value = parse(ev.target.value, this.format, new Date());
4033
+ if (!isValid(value)) {
4034
+ return;
4035
+ }
4036
+ this._setValue(value, false);
4037
+ }, 250);
4038
+ }
4039
+ _setValue(value, blur = true) {
4040
+ if (value === null) {
4041
+ this._value = null;
4042
+ this.valueChange.emit(null);
4043
+ return;
4044
+ }
4045
+ if (!isValid(value)) {
4046
+ return;
4047
+ }
4048
+ if (this._isDisabledDay(value)) {
4049
+ return;
4050
+ }
4051
+ value = startOfDay(value);
4052
+ const isSameValue = isSameDay(value, this._value);
4053
+ if (isSameValue) {
4054
+ return;
4055
+ }
4056
+ if (blur) {
4057
+ this._onBlur();
4058
+ }
4059
+ this._value = value;
4060
+ this.valueChange.emit(value);
4061
+ }
4062
+ _isDisabledDay(day) {
4063
+ return (isBefore(day, this._minDate) ||
4064
+ (isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
4065
+ this._disabledDates.findIndex((date) => isSameDay(date, day)) >= 0);
4066
+ }
4067
+ get _el() { return getElement(this); }
4068
+ static get watchers() { return {
4069
+ "value": ["parseValue"],
4070
+ "minDate": ["parseMinDate"],
4071
+ "maxDate": ["parseMaxDate"],
4072
+ "disabledDates": ["parseDisabledDates"]
4073
+ }; }
4074
+ };
4075
+ Datepicker.style = datepickerComponentCss;
4076
+
4077
+ export { Datepicker as p_datepicker };
4078
+
4079
+ //# sourceMappingURL=p-datepicker.entry.js.map