@paperless/core 0.1.0-alpha.437 → 0.1.0-alpha.439

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 (378) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{paperless/p-e3f29ba8.entry.js → build/p-0410ec1e.entry.js} +2 -2
  3. package/dist/{paperless/p-756c06ec.entry.js → build/p-1d6b036c.entry.js} +2 -2
  4. package/dist/build/{p-58b52568.entry.js → p-1f55126f.entry.js} +2 -2
  5. package/dist/build/{p-b7b1de31.entry.js → p-322be6d8.entry.js} +2 -2
  6. package/dist/build/{p-5d118f66.entry.js → p-33b6520e.entry.js} +2 -2
  7. package/dist/build/{p-f07793f6.entry.js → p-3bd4c1c1.entry.js} +2 -2
  8. package/dist/build/{p-a3fcf8b6.entry.js → p-3d458d5a.entry.js} +2 -2
  9. package/dist/build/{p-0cb97c5e.entry.js → p-47e461b7.entry.js} +2 -2
  10. package/dist/build/{p-b13a0ee4.entry.js → p-49104ffe.entry.js} +2 -2
  11. package/dist/{paperless/p-a2bd1a79.entry.js → build/p-4939be3e.entry.js} +2 -2
  12. package/dist/{paperless/p-ac7b48ff.entry.js → build/p-4b99a4fe.entry.js} +2 -2
  13. package/dist/build/{p-464569dc.entry.js → p-5e5f3eaa.entry.js} +2 -2
  14. package/dist/build/{p-ea824ef3.entry.js → p-688264c9.entry.js} +2 -2
  15. package/dist/build/{p-d012d066.entry.js → p-6a7584cc.entry.js} +2 -2
  16. package/dist/build/p-6ccf5cdd.js +3 -0
  17. package/dist/build/p-6ccf5cdd.js.map +1 -0
  18. package/dist/build/{p-ebc2ae62.entry.js → p-733a0d79.entry.js} +2 -2
  19. package/dist/{paperless/p-ef2eee59.entry.js → build/p-7b16e066.entry.js} +2 -2
  20. package/dist/build/{p-45dfd940.entry.js → p-7e26a901.entry.js} +2 -2
  21. package/dist/build/{p-cccc37c0.entry.js → p-81a99f72.entry.js} +2 -2
  22. package/dist/{paperless/p-6f82a1e7.entry.js → build/p-8569fa3c.entry.js} +2 -2
  23. package/dist/{paperless/p-c87da93e.entry.js → build/p-86b47461.entry.js} +2 -2
  24. package/dist/build/p-89f5e9c9.entry.js +2 -0
  25. package/dist/build/p-89f5e9c9.entry.js.map +1 -0
  26. package/dist/build/{p-1b5292a3.entry.js → p-8f453ef2.entry.js} +2 -2
  27. package/dist/{paperless/p-57411b2b.entry.js → build/p-a0790d7b.entry.js} +2 -2
  28. package/dist/build/{p-31afbb45.entry.js → p-a233bac3.entry.js} +2 -2
  29. package/dist/{paperless/p-5a31cb9e.entry.js → build/p-a751f1a4.entry.js} +2 -2
  30. package/dist/build/p-ae248aef.js +2 -0
  31. package/dist/build/p-ae248aef.js.map +1 -0
  32. package/dist/build/{p-3d8b5cc4.entry.js → p-af38f227.entry.js} +2 -2
  33. package/dist/{paperless/p-93fb216c.entry.js → build/p-af92e53c.entry.js} +2 -2
  34. package/dist/build/{p-7b94bc6a.entry.js → p-b5b591c7.entry.js} +2 -2
  35. package/dist/{paperless/p-78948e08.entry.js → build/p-b62e6ab2.entry.js} +2 -2
  36. package/dist/{paperless/p-5236b565.entry.js → build/p-c6d9e720.entry.js} +2 -2
  37. package/dist/{paperless/p-f34ed23f.entry.js → build/p-c942022f.entry.js} +2 -2
  38. package/dist/build/p-c942022f.entry.js.map +1 -0
  39. package/dist/build/{p-ebd4ba56.entry.js → p-ca2abe98.entry.js} +2 -2
  40. package/dist/build/{p-b0eeab26.entry.js → p-cfd0a2bb.entry.js} +2 -2
  41. package/dist/build/{p-10ad607e.entry.js → p-e8a815d7.entry.js} +2 -2
  42. package/dist/build/{p-036a82fc.entry.js → p-e9dc7598.entry.js} +2 -2
  43. package/dist/build/p-e9dc7598.entry.js.map +1 -0
  44. package/dist/build/{p-e0d7a4ee.entry.js → p-efdeae92.entry.js} +2 -2
  45. package/dist/{paperless/p-8fb43cc7.entry.js → build/p-f215bf8c.entry.js} +2 -2
  46. package/dist/build/{p-c6ef7b79.entry.js → p-f3207ec2.entry.js} +2 -2
  47. package/dist/build/{p-0a3f2fe8.entry.js → p-f429073e.entry.js} +2 -2
  48. package/dist/build/{p-dc01e9eb.entry.js → p-f59afce6.entry.js} +2 -2
  49. package/dist/{paperless/p-471be252.entry.js → build/p-f695dc3c.entry.js} +2 -2
  50. package/dist/build/{p-78ce77d2.entry.js → p-f9aaa75c.entry.js} +2 -2
  51. package/dist/build/p-fef32402.js +2 -0
  52. package/dist/{cjs/floating-ui.dom.esm-4cb215a4.js.map → build/p-fef32402.js.map} +1 -1
  53. package/dist/build/paperless.css +1 -1
  54. package/dist/build/paperless.esm.js +1 -1
  55. package/dist/build/paperless.esm.js.map +1 -1
  56. package/dist/cjs/{floating-ui.dom.esm-4cb215a4.js → floating-ui.dom.esm-62336770.js} +19 -9
  57. package/dist/cjs/floating-ui.dom.esm-62336770.js.map +1 -0
  58. package/dist/cjs/{index-040ec3f9.js → index-b59a0544.js} +65 -224
  59. package/dist/cjs/index-b59a0544.js.map +1 -0
  60. package/dist/cjs/{index-13ea09e0.js → index-dfc4dfec.js} +82 -34
  61. package/dist/cjs/index-dfc4dfec.js.map +1 -0
  62. package/dist/cjs/loader.cjs.js +2 -2
  63. package/dist/cjs/loader.cjs.js.map +1 -1
  64. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  65. package/dist/cjs/p-attachment.cjs.entry.js +2 -2
  66. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  67. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  68. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  69. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  70. package/dist/cjs/p-calendar.cjs.entry.js +9 -28
  71. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  72. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  73. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  74. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  75. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  76. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  77. package/dist/cjs/p-datepicker.cjs.entry.js +435 -1476
  78. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  79. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  80. package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
  81. package/dist/cjs/p-drawer.cjs.entry.js +1 -1
  82. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
  83. package/dist/cjs/p-dropdown_2.cjs.entry.js +3 -3
  84. package/dist/cjs/p-helper_3.cjs.entry.js +3 -3
  85. package/dist/cjs/p-illustration_6.cjs.entry.js +1 -1
  86. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  87. package/dist/cjs/p-label_3.cjs.entry.js +1 -1
  88. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  89. package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
  90. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  91. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  92. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  93. package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
  94. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/p-select.cjs.entry.js +1 -1
  96. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  97. package/dist/cjs/p-status.cjs.entry.js +1 -1
  98. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  99. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  100. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  101. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  102. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  103. package/dist/cjs/p-table-column.cjs.entry.js +1 -1
  104. package/dist/cjs/p-table.cjs.entry.js +1 -1
  105. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  106. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  107. package/dist/cjs/p-tooltip.cjs.entry.js +6 -4
  108. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
  109. package/dist/cjs/paperless.cjs.js +2 -2
  110. package/dist/cjs/paperless.cjs.js.map +1 -1
  111. package/dist/collection/collection-manifest.json +1 -1
  112. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
  113. package/dist/collection/components/atoms/button/button.component.css +1 -1
  114. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  115. package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -1
  116. package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -1
  117. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -1
  118. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  119. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  120. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  121. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  122. package/dist/collection/components/atoms/label/label.component.css +1 -1
  123. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  124. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  125. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  126. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  127. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  128. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  129. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  130. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  131. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -1
  132. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  133. package/dist/collection/components/atoms/tooltip/tooltip.component.js +3 -1
  134. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
  135. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -1
  136. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -1
  137. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
  138. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  139. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  140. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  141. package/dist/collection/components/molecules/profile/profile.component.css +1 -1
  142. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
  143. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -1
  144. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -1
  145. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -1
  146. package/dist/collection/components/organisms/drawer/drawer.component.css +1 -1
  147. package/dist/collection/components/organisms/table/table.component.css +1 -1
  148. package/dist/components/calendar.component.js +71 -250
  149. package/dist/components/calendar.component.js.map +1 -1
  150. package/dist/components/dropdown-menu-container.component.js +1 -1
  151. package/dist/components/dropdown.component.js +1 -1
  152. package/dist/components/floating-ui.dom.esm.js +18 -8
  153. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  154. package/dist/components/helper.component.js +1 -1
  155. package/dist/components/input-group.component.js +1 -1
  156. package/dist/components/p-attachment.js +1 -1
  157. package/dist/components/p-datepicker.js +433 -1474
  158. package/dist/components/p-datepicker.js.map +1 -1
  159. package/dist/components/tooltip.component.js +4 -2
  160. package/dist/components/tooltip.component.js.map +1 -1
  161. package/dist/esm/{floating-ui.dom.esm-82b72251.js → floating-ui.dom.esm-314a52b2.js} +19 -9
  162. package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +1 -0
  163. package/dist/esm/{index-94339e77.js → index-2c1bdb40.js} +82 -34
  164. package/dist/esm/index-2c1bdb40.js.map +1 -0
  165. package/dist/esm/{index-340e085c.js → index-934ac6da.js} +65 -225
  166. package/dist/esm/index-934ac6da.js.map +1 -0
  167. package/dist/esm/loader.js +3 -3
  168. package/dist/esm/loader.js.map +1 -1
  169. package/dist/esm/p-accordion.entry.js +1 -1
  170. package/dist/esm/p-attachment.entry.js +2 -2
  171. package/dist/esm/p-avatar-group.entry.js +1 -1
  172. package/dist/esm/p-avatar.entry.js +1 -1
  173. package/dist/esm/p-backdrop.entry.js +1 -1
  174. package/dist/esm/p-button_3.entry.js +1 -1
  175. package/dist/esm/p-calendar.entry.js +9 -28
  176. package/dist/esm/p-calendar.entry.js.map +1 -1
  177. package/dist/esm/p-card-body.entry.js +1 -1
  178. package/dist/esm/p-card-container.entry.js +1 -1
  179. package/dist/esm/p-card-header.entry.js +1 -1
  180. package/dist/esm/p-content-slider.entry.js +1 -1
  181. package/dist/esm/p-counter.entry.js +1 -1
  182. package/dist/esm/p-datepicker.entry.js +434 -1475
  183. package/dist/esm/p-datepicker.entry.js.map +1 -1
  184. package/dist/esm/p-divider.entry.js +1 -1
  185. package/dist/esm/p-drawer-body_3.entry.js +1 -1
  186. package/dist/esm/p-drawer.entry.js +1 -1
  187. package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
  188. package/dist/esm/p-dropdown_2.entry.js +3 -3
  189. package/dist/esm/p-helper_3.entry.js +3 -3
  190. package/dist/esm/p-illustration_6.entry.js +1 -1
  191. package/dist/esm/p-info-panel.entry.js +1 -1
  192. package/dist/esm/p-label_3.entry.js +1 -1
  193. package/dist/esm/p-layout.entry.js +1 -1
  194. package/dist/esm/p-modal-body_4.entry.js +1 -1
  195. package/dist/esm/p-modal.entry.js +1 -1
  196. package/dist/esm/p-navbar.entry.js +1 -1
  197. package/dist/esm/p-navigation-item.entry.js +1 -1
  198. package/dist/esm/p-page-size-select_3.entry.js +1 -1
  199. package/dist/esm/p-profile.entry.js +1 -1
  200. package/dist/esm/p-select.entry.js +1 -1
  201. package/dist/esm/p-slider-indicator.entry.js +1 -1
  202. package/dist/esm/p-status.entry.js +1 -1
  203. package/dist/esm/p-stepper-item.entry.js +1 -1
  204. package/dist/esm/p-stepper-line.entry.js +1 -1
  205. package/dist/esm/p-stepper.entry.js +1 -1
  206. package/dist/esm/p-tab-group.entry.js +1 -1
  207. package/dist/esm/p-tab-item.entry.js +1 -1
  208. package/dist/esm/p-table-column.entry.js +1 -1
  209. package/dist/esm/p-table.entry.js +1 -1
  210. package/dist/esm/p-toast-container.entry.js +1 -1
  211. package/dist/esm/p-toast.entry.js +1 -1
  212. package/dist/esm/p-tooltip.entry.js +6 -4
  213. package/dist/esm/p-tooltip.entry.js.map +1 -1
  214. package/dist/esm/paperless.js +3 -3
  215. package/dist/esm/paperless.js.map +1 -1
  216. package/dist/index.html +1 -1
  217. package/dist/{build/p-e3f29ba8.entry.js → paperless/p-0410ec1e.entry.js} +2 -2
  218. package/dist/{build/p-756c06ec.entry.js → paperless/p-1d6b036c.entry.js} +2 -2
  219. package/dist/paperless/{p-58b52568.entry.js → p-1f55126f.entry.js} +2 -2
  220. package/dist/paperless/{p-b7b1de31.entry.js → p-322be6d8.entry.js} +2 -2
  221. package/dist/paperless/{p-5d118f66.entry.js → p-33b6520e.entry.js} +2 -2
  222. package/dist/paperless/{p-f07793f6.entry.js → p-3bd4c1c1.entry.js} +2 -2
  223. package/dist/paperless/{p-a3fcf8b6.entry.js → p-3d458d5a.entry.js} +2 -2
  224. package/dist/paperless/{p-0cb97c5e.entry.js → p-47e461b7.entry.js} +2 -2
  225. package/dist/paperless/{p-b13a0ee4.entry.js → p-49104ffe.entry.js} +2 -2
  226. package/dist/{build/p-a2bd1a79.entry.js → paperless/p-4939be3e.entry.js} +2 -2
  227. package/dist/{build/p-ac7b48ff.entry.js → paperless/p-4b99a4fe.entry.js} +2 -2
  228. package/dist/paperless/{p-464569dc.entry.js → p-5e5f3eaa.entry.js} +2 -2
  229. package/dist/paperless/{p-ea824ef3.entry.js → p-688264c9.entry.js} +2 -2
  230. package/dist/paperless/{p-d012d066.entry.js → p-6a7584cc.entry.js} +2 -2
  231. package/dist/paperless/p-6ccf5cdd.js +3 -0
  232. package/dist/paperless/p-6ccf5cdd.js.map +1 -0
  233. package/dist/paperless/{p-ebc2ae62.entry.js → p-733a0d79.entry.js} +2 -2
  234. package/dist/{build/p-ef2eee59.entry.js → paperless/p-7b16e066.entry.js} +2 -2
  235. package/dist/paperless/{p-45dfd940.entry.js → p-7e26a901.entry.js} +2 -2
  236. package/dist/paperless/{p-cccc37c0.entry.js → p-81a99f72.entry.js} +2 -2
  237. package/dist/{build/p-6f82a1e7.entry.js → paperless/p-8569fa3c.entry.js} +2 -2
  238. package/dist/{build/p-c87da93e.entry.js → paperless/p-86b47461.entry.js} +2 -2
  239. package/dist/paperless/p-89f5e9c9.entry.js +2 -0
  240. package/dist/paperless/p-89f5e9c9.entry.js.map +1 -0
  241. package/dist/paperless/{p-1b5292a3.entry.js → p-8f453ef2.entry.js} +2 -2
  242. package/dist/{build/p-57411b2b.entry.js → paperless/p-a0790d7b.entry.js} +2 -2
  243. package/dist/paperless/{p-31afbb45.entry.js → p-a233bac3.entry.js} +2 -2
  244. package/dist/{build/p-5a31cb9e.entry.js → paperless/p-a751f1a4.entry.js} +2 -2
  245. package/dist/paperless/p-ae248aef.js +2 -0
  246. package/dist/paperless/p-ae248aef.js.map +1 -0
  247. package/dist/paperless/{p-3d8b5cc4.entry.js → p-af38f227.entry.js} +2 -2
  248. package/dist/{build/p-93fb216c.entry.js → paperless/p-af92e53c.entry.js} +2 -2
  249. package/dist/paperless/{p-7b94bc6a.entry.js → p-b5b591c7.entry.js} +2 -2
  250. package/dist/{build/p-78948e08.entry.js → paperless/p-b62e6ab2.entry.js} +2 -2
  251. package/dist/{build/p-5236b565.entry.js → paperless/p-c6d9e720.entry.js} +2 -2
  252. package/dist/{build/p-f34ed23f.entry.js → paperless/p-c942022f.entry.js} +2 -2
  253. package/dist/paperless/p-c942022f.entry.js.map +1 -0
  254. package/dist/paperless/{p-ebd4ba56.entry.js → p-ca2abe98.entry.js} +2 -2
  255. package/dist/paperless/{p-b0eeab26.entry.js → p-cfd0a2bb.entry.js} +2 -2
  256. package/dist/paperless/{p-10ad607e.entry.js → p-e8a815d7.entry.js} +2 -2
  257. package/dist/paperless/{p-036a82fc.entry.js → p-e9dc7598.entry.js} +2 -2
  258. package/dist/paperless/p-e9dc7598.entry.js.map +1 -0
  259. package/dist/paperless/{p-e0d7a4ee.entry.js → p-efdeae92.entry.js} +2 -2
  260. package/dist/{build/p-8fb43cc7.entry.js → paperless/p-f215bf8c.entry.js} +2 -2
  261. package/dist/paperless/{p-c6ef7b79.entry.js → p-f3207ec2.entry.js} +2 -2
  262. package/dist/paperless/{p-0a3f2fe8.entry.js → p-f429073e.entry.js} +2 -2
  263. package/dist/paperless/{p-dc01e9eb.entry.js → p-f59afce6.entry.js} +2 -2
  264. package/dist/{build/p-471be252.entry.js → paperless/p-f695dc3c.entry.js} +2 -2
  265. package/dist/paperless/{p-78ce77d2.entry.js → p-f9aaa75c.entry.js} +2 -2
  266. package/dist/paperless/p-fef32402.js +2 -0
  267. package/dist/paperless/p-fef32402.js.map +1 -0
  268. package/dist/paperless/paperless.css +1 -1
  269. package/dist/paperless/paperless.esm.js +1 -1
  270. package/dist/paperless/paperless.esm.js.map +1 -1
  271. package/dist/sw.js +1 -1
  272. package/dist/sw.js.map +1 -1
  273. package/dist/types/stencil-public-runtime.d.ts +1 -0
  274. package/hydrate/index.js +583 -1785
  275. package/package.json +6 -6
  276. package/dist/build/p-036a82fc.entry.js.map +0 -1
  277. package/dist/build/p-07c853db.entry.js +0 -2
  278. package/dist/build/p-07c853db.entry.js.map +0 -1
  279. package/dist/build/p-ac1af618.js +0 -3
  280. package/dist/build/p-ac1af618.js.map +0 -1
  281. package/dist/build/p-b273ac6d.js +0 -2
  282. package/dist/build/p-b273ac6d.js.map +0 -1
  283. package/dist/build/p-e621e34c.js +0 -2
  284. package/dist/build/p-e621e34c.js.map +0 -1
  285. package/dist/build/p-f34ed23f.entry.js.map +0 -1
  286. package/dist/cjs/index-040ec3f9.js.map +0 -1
  287. package/dist/cjs/index-13ea09e0.js.map +0 -1
  288. package/dist/esm/floating-ui.dom.esm-82b72251.js.map +0 -1
  289. package/dist/esm/index-340e085c.js.map +0 -1
  290. package/dist/esm/index-94339e77.js.map +0 -1
  291. package/dist/paperless/p-036a82fc.entry.js.map +0 -1
  292. package/dist/paperless/p-07c853db.entry.js +0 -2
  293. package/dist/paperless/p-07c853db.entry.js.map +0 -1
  294. package/dist/paperless/p-ac1af618.js +0 -3
  295. package/dist/paperless/p-ac1af618.js.map +0 -1
  296. package/dist/paperless/p-b273ac6d.js +0 -2
  297. package/dist/paperless/p-b273ac6d.js.map +0 -1
  298. package/dist/paperless/p-e621e34c.js +0 -2
  299. package/dist/paperless/p-e621e34c.js.map +0 -1
  300. package/dist/paperless/p-f34ed23f.entry.js.map +0 -1
  301. /package/dist/build/{p-e3f29ba8.entry.js.map → p-0410ec1e.entry.js.map} +0 -0
  302. /package/dist/build/{p-756c06ec.entry.js.map → p-1d6b036c.entry.js.map} +0 -0
  303. /package/dist/build/{p-58b52568.entry.js.map → p-1f55126f.entry.js.map} +0 -0
  304. /package/dist/build/{p-b7b1de31.entry.js.map → p-322be6d8.entry.js.map} +0 -0
  305. /package/dist/build/{p-5d118f66.entry.js.map → p-33b6520e.entry.js.map} +0 -0
  306. /package/dist/build/{p-f07793f6.entry.js.map → p-3bd4c1c1.entry.js.map} +0 -0
  307. /package/dist/build/{p-a3fcf8b6.entry.js.map → p-3d458d5a.entry.js.map} +0 -0
  308. /package/dist/build/{p-0cb97c5e.entry.js.map → p-47e461b7.entry.js.map} +0 -0
  309. /package/dist/build/{p-b13a0ee4.entry.js.map → p-49104ffe.entry.js.map} +0 -0
  310. /package/dist/build/{p-a2bd1a79.entry.js.map → p-4939be3e.entry.js.map} +0 -0
  311. /package/dist/build/{p-ac7b48ff.entry.js.map → p-4b99a4fe.entry.js.map} +0 -0
  312. /package/dist/build/{p-464569dc.entry.js.map → p-5e5f3eaa.entry.js.map} +0 -0
  313. /package/dist/build/{p-ea824ef3.entry.js.map → p-688264c9.entry.js.map} +0 -0
  314. /package/dist/build/{p-d012d066.entry.js.map → p-6a7584cc.entry.js.map} +0 -0
  315. /package/dist/build/{p-ebc2ae62.entry.js.map → p-733a0d79.entry.js.map} +0 -0
  316. /package/dist/build/{p-ef2eee59.entry.js.map → p-7b16e066.entry.js.map} +0 -0
  317. /package/dist/build/{p-45dfd940.entry.js.map → p-7e26a901.entry.js.map} +0 -0
  318. /package/dist/build/{p-cccc37c0.entry.js.map → p-81a99f72.entry.js.map} +0 -0
  319. /package/dist/build/{p-6f82a1e7.entry.js.map → p-8569fa3c.entry.js.map} +0 -0
  320. /package/dist/build/{p-c87da93e.entry.js.map → p-86b47461.entry.js.map} +0 -0
  321. /package/dist/build/{p-1b5292a3.entry.js.map → p-8f453ef2.entry.js.map} +0 -0
  322. /package/dist/build/{p-57411b2b.entry.js.map → p-a0790d7b.entry.js.map} +0 -0
  323. /package/dist/build/{p-31afbb45.entry.js.map → p-a233bac3.entry.js.map} +0 -0
  324. /package/dist/build/{p-5a31cb9e.entry.js.map → p-a751f1a4.entry.js.map} +0 -0
  325. /package/dist/build/{p-3d8b5cc4.entry.js.map → p-af38f227.entry.js.map} +0 -0
  326. /package/dist/build/{p-93fb216c.entry.js.map → p-af92e53c.entry.js.map} +0 -0
  327. /package/dist/build/{p-7b94bc6a.entry.js.map → p-b5b591c7.entry.js.map} +0 -0
  328. /package/dist/build/{p-78948e08.entry.js.map → p-b62e6ab2.entry.js.map} +0 -0
  329. /package/dist/build/{p-5236b565.entry.js.map → p-c6d9e720.entry.js.map} +0 -0
  330. /package/dist/build/{p-ebd4ba56.entry.js.map → p-ca2abe98.entry.js.map} +0 -0
  331. /package/dist/build/{p-b0eeab26.entry.js.map → p-cfd0a2bb.entry.js.map} +0 -0
  332. /package/dist/build/{p-10ad607e.entry.js.map → p-e8a815d7.entry.js.map} +0 -0
  333. /package/dist/build/{p-e0d7a4ee.entry.js.map → p-efdeae92.entry.js.map} +0 -0
  334. /package/dist/build/{p-8fb43cc7.entry.js.map → p-f215bf8c.entry.js.map} +0 -0
  335. /package/dist/build/{p-c6ef7b79.entry.js.map → p-f3207ec2.entry.js.map} +0 -0
  336. /package/dist/build/{p-0a3f2fe8.entry.js.map → p-f429073e.entry.js.map} +0 -0
  337. /package/dist/build/{p-dc01e9eb.entry.js.map → p-f59afce6.entry.js.map} +0 -0
  338. /package/dist/build/{p-471be252.entry.js.map → p-f695dc3c.entry.js.map} +0 -0
  339. /package/dist/build/{p-78ce77d2.entry.js.map → p-f9aaa75c.entry.js.map} +0 -0
  340. /package/dist/paperless/{p-e3f29ba8.entry.js.map → p-0410ec1e.entry.js.map} +0 -0
  341. /package/dist/paperless/{p-756c06ec.entry.js.map → p-1d6b036c.entry.js.map} +0 -0
  342. /package/dist/paperless/{p-58b52568.entry.js.map → p-1f55126f.entry.js.map} +0 -0
  343. /package/dist/paperless/{p-b7b1de31.entry.js.map → p-322be6d8.entry.js.map} +0 -0
  344. /package/dist/paperless/{p-5d118f66.entry.js.map → p-33b6520e.entry.js.map} +0 -0
  345. /package/dist/paperless/{p-f07793f6.entry.js.map → p-3bd4c1c1.entry.js.map} +0 -0
  346. /package/dist/paperless/{p-a3fcf8b6.entry.js.map → p-3d458d5a.entry.js.map} +0 -0
  347. /package/dist/paperless/{p-0cb97c5e.entry.js.map → p-47e461b7.entry.js.map} +0 -0
  348. /package/dist/paperless/{p-b13a0ee4.entry.js.map → p-49104ffe.entry.js.map} +0 -0
  349. /package/dist/paperless/{p-a2bd1a79.entry.js.map → p-4939be3e.entry.js.map} +0 -0
  350. /package/dist/paperless/{p-ac7b48ff.entry.js.map → p-4b99a4fe.entry.js.map} +0 -0
  351. /package/dist/paperless/{p-464569dc.entry.js.map → p-5e5f3eaa.entry.js.map} +0 -0
  352. /package/dist/paperless/{p-ea824ef3.entry.js.map → p-688264c9.entry.js.map} +0 -0
  353. /package/dist/paperless/{p-d012d066.entry.js.map → p-6a7584cc.entry.js.map} +0 -0
  354. /package/dist/paperless/{p-ebc2ae62.entry.js.map → p-733a0d79.entry.js.map} +0 -0
  355. /package/dist/paperless/{p-ef2eee59.entry.js.map → p-7b16e066.entry.js.map} +0 -0
  356. /package/dist/paperless/{p-45dfd940.entry.js.map → p-7e26a901.entry.js.map} +0 -0
  357. /package/dist/paperless/{p-cccc37c0.entry.js.map → p-81a99f72.entry.js.map} +0 -0
  358. /package/dist/paperless/{p-6f82a1e7.entry.js.map → p-8569fa3c.entry.js.map} +0 -0
  359. /package/dist/paperless/{p-c87da93e.entry.js.map → p-86b47461.entry.js.map} +0 -0
  360. /package/dist/paperless/{p-1b5292a3.entry.js.map → p-8f453ef2.entry.js.map} +0 -0
  361. /package/dist/paperless/{p-57411b2b.entry.js.map → p-a0790d7b.entry.js.map} +0 -0
  362. /package/dist/paperless/{p-31afbb45.entry.js.map → p-a233bac3.entry.js.map} +0 -0
  363. /package/dist/paperless/{p-5a31cb9e.entry.js.map → p-a751f1a4.entry.js.map} +0 -0
  364. /package/dist/paperless/{p-3d8b5cc4.entry.js.map → p-af38f227.entry.js.map} +0 -0
  365. /package/dist/paperless/{p-93fb216c.entry.js.map → p-af92e53c.entry.js.map} +0 -0
  366. /package/dist/paperless/{p-7b94bc6a.entry.js.map → p-b5b591c7.entry.js.map} +0 -0
  367. /package/dist/paperless/{p-78948e08.entry.js.map → p-b62e6ab2.entry.js.map} +0 -0
  368. /package/dist/paperless/{p-5236b565.entry.js.map → p-c6d9e720.entry.js.map} +0 -0
  369. /package/dist/paperless/{p-ebd4ba56.entry.js.map → p-ca2abe98.entry.js.map} +0 -0
  370. /package/dist/paperless/{p-b0eeab26.entry.js.map → p-cfd0a2bb.entry.js.map} +0 -0
  371. /package/dist/paperless/{p-10ad607e.entry.js.map → p-e8a815d7.entry.js.map} +0 -0
  372. /package/dist/paperless/{p-e0d7a4ee.entry.js.map → p-efdeae92.entry.js.map} +0 -0
  373. /package/dist/paperless/{p-8fb43cc7.entry.js.map → p-f215bf8c.entry.js.map} +0 -0
  374. /package/dist/paperless/{p-c6ef7b79.entry.js.map → p-f3207ec2.entry.js.map} +0 -0
  375. /package/dist/paperless/{p-0a3f2fe8.entry.js.map → p-f429073e.entry.js.map} +0 -0
  376. /package/dist/paperless/{p-dc01e9eb.entry.js.map → p-f59afce6.entry.js.map} +0 -0
  377. /package/dist/paperless/{p-471be252.entry.js.map → p-f695dc3c.entry.js.map} +0 -0
  378. /package/dist/paperless/{p-78ce77d2.entry.js.map → p-f9aaa75c.entry.js.map} +0 -0
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-13ea09e0.js');
5
+ const index$1 = require('./index-dfc4dfec.js');
6
6
  const childOf = require('./child-of-e472f812.js');
7
- const index = require('./index-040ec3f9.js');
7
+ const index = require('./index-b59a0544.js');
8
8
 
9
9
  /**
10
10
  * Days in 1 week.
@@ -14,6 +14,7 @@ const index = require('./index-040ec3f9.js');
14
14
  * @type {number}
15
15
  * @default
16
16
  */
17
+
17
18
  /**
18
19
  * Milliseconds in 1 minute
19
20
  *
@@ -22,8 +23,8 @@ const index = require('./index-040ec3f9.js');
22
23
  * @type {number}
23
24
  * @default
24
25
  */
25
-
26
26
  var millisecondsInMinute = 60000;
27
+
27
28
  /**
28
29
  * Milliseconds in 1 hour
29
30
  *
@@ -32,8 +33,8 @@ var millisecondsInMinute = 60000;
32
33
  * @type {number}
33
34
  * @default
34
35
  */
35
-
36
36
  var millisecondsInHour = 3600000;
37
+
37
38
  /**
38
39
  * Milliseconds in 1 second
39
40
  *
@@ -42,88 +43,249 @@ var millisecondsInHour = 3600000;
42
43
  * @type {number}
43
44
  * @default
44
45
  */
45
-
46
46
  var millisecondsInSecond = 1000;
47
47
 
48
48
  function assign(target, object) {
49
49
  if (target == null) {
50
50
  throw new TypeError('assign requires that input parameter not be null or undefined');
51
51
  }
52
-
53
52
  for (var property in object) {
54
53
  if (Object.prototype.hasOwnProperty.call(object, property)) {
55
54
  target[property] = object[property];
56
55
  }
57
56
  }
58
-
59
57
  return target;
60
58
  }
61
59
 
62
- 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); }
60
+ function _arrayLikeToArray(arr, len) {
61
+ if (len == null || len > arr.length) len = arr.length;
62
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
63
+ return arr2;
64
+ }
63
65
 
64
- 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); }
66
+ function _unsupportedIterableToArray(o, minLen) {
67
+ if (!o) return;
68
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
69
+ var n = Object.prototype.toString.call(o).slice(8, -1);
70
+ if (n === "Object" && o.constructor) n = o.constructor.name;
71
+ if (n === "Map" || n === "Set") return Array.from(o);
72
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
73
+ }
65
74
 
66
- function _setPrototypeOf$v(o, p) { _setPrototypeOf$v = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$v(o, p); }
75
+ function _createForOfIteratorHelper(o, allowArrayLike) {
76
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
77
+ if (!it) {
78
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
79
+ if (it) o = it;
80
+ var i = 0;
81
+ var F = function F() {};
82
+ return {
83
+ s: F,
84
+ n: function n() {
85
+ if (i >= o.length) return {
86
+ done: true
87
+ };
88
+ return {
89
+ done: false,
90
+ value: o[i++]
91
+ };
92
+ },
93
+ e: function e(_e) {
94
+ throw _e;
95
+ },
96
+ f: F
97
+ };
98
+ }
99
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
100
+ }
101
+ var normalCompletion = true,
102
+ didErr = false,
103
+ err;
104
+ return {
105
+ s: function s() {
106
+ it = it.call(o);
107
+ },
108
+ n: function n() {
109
+ var step = it.next();
110
+ normalCompletion = step.done;
111
+ return step;
112
+ },
113
+ e: function e(_e2) {
114
+ didErr = true;
115
+ err = _e2;
116
+ },
117
+ f: function f() {
118
+ try {
119
+ if (!normalCompletion && it["return"] != null) it["return"]();
120
+ } finally {
121
+ if (didErr) throw err;
122
+ }
123
+ }
124
+ };
125
+ }
126
+
127
+ function _assertThisInitialized(self) {
128
+ if (self === void 0) {
129
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
130
+ }
131
+ return self;
132
+ }
133
+
134
+ function _setPrototypeOf(o, p) {
135
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
136
+ o.__proto__ = p;
137
+ return o;
138
+ };
139
+ return _setPrototypeOf(o, p);
140
+ }
67
141
 
68
- 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); }; }
142
+ function _inherits(subClass, superClass) {
143
+ if (typeof superClass !== "function" && superClass !== null) {
144
+ throw new TypeError("Super expression must either be null or a function");
145
+ }
146
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
147
+ constructor: {
148
+ value: subClass,
149
+ writable: true,
150
+ configurable: true
151
+ }
152
+ });
153
+ Object.defineProperty(subClass, "prototype", {
154
+ writable: false
155
+ });
156
+ if (superClass) _setPrototypeOf(subClass, superClass);
157
+ }
69
158
 
70
- function _possibleConstructorReturn$v(self, call) { if (call && (_typeof$w(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$v(self); }
159
+ function _getPrototypeOf(o) {
160
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
161
+ return o.__proto__ || Object.getPrototypeOf(o);
162
+ };
163
+ return _getPrototypeOf(o);
164
+ }
71
165
 
72
- function _assertThisInitialized$v(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
166
+ function _isNativeReflectConstruct() {
167
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
168
+ if (Reflect.construct.sham) return false;
169
+ if (typeof Proxy === "function") return true;
170
+ try {
171
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
172
+ return true;
173
+ } catch (e) {
174
+ return false;
175
+ }
176
+ }
73
177
 
74
- 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; } }
178
+ function _possibleConstructorReturn(self, call) {
179
+ if (call && (index._typeof(call) === "object" || typeof call === "function")) {
180
+ return call;
181
+ } else if (call !== void 0) {
182
+ throw new TypeError("Derived constructors may only return object or undefined");
183
+ }
184
+ return _assertThisInitialized(self);
185
+ }
75
186
 
76
- function _getPrototypeOf$v(o) { _getPrototypeOf$v = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$v(o); }
187
+ function _createSuper(Derived) {
188
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
189
+ return function _createSuperInternal() {
190
+ var Super = _getPrototypeOf(Derived),
191
+ result;
192
+ if (hasNativeReflectConstruct) {
193
+ var NewTarget = _getPrototypeOf(this).constructor;
194
+ result = Reflect.construct(Super, arguments, NewTarget);
195
+ } else {
196
+ result = Super.apply(this, arguments);
197
+ }
198
+ return _possibleConstructorReturn(this, result);
199
+ };
200
+ }
77
201
 
78
- function _classCallCheck$w(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
202
+ function _classCallCheck(instance, Constructor) {
203
+ if (!(instance instanceof Constructor)) {
204
+ throw new TypeError("Cannot call a class as a function");
205
+ }
206
+ }
79
207
 
80
- 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); } }
208
+ function _toPrimitive(input, hint) {
209
+ if (index._typeof(input) !== "object" || input === null) return input;
210
+ var prim = input[Symbol.toPrimitive];
211
+ if (prim !== undefined) {
212
+ var res = prim.call(input, hint || "default");
213
+ if (index._typeof(res) !== "object") return res;
214
+ throw new TypeError("@@toPrimitive must return a primitive value.");
215
+ }
216
+ return (hint === "string" ? String : Number)(input);
217
+ }
81
218
 
82
- function _createClass$w(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$w(Constructor.prototype, protoProps); if (staticProps) _defineProperties$w(Constructor, staticProps); return Constructor; }
219
+ function _toPropertyKey(arg) {
220
+ var key = _toPrimitive(arg, "string");
221
+ return index._typeof(key) === "symbol" ? key : String(key);
222
+ }
83
223
 
84
- 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; }
224
+ function _defineProperties(target, props) {
225
+ for (var i = 0; i < props.length; i++) {
226
+ var descriptor = props[i];
227
+ descriptor.enumerable = descriptor.enumerable || false;
228
+ descriptor.configurable = true;
229
+ if ("value" in descriptor) descriptor.writable = true;
230
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
231
+ }
232
+ }
233
+ function _createClass(Constructor, protoProps, staticProps) {
234
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
235
+ if (staticProps) _defineProperties(Constructor, staticProps);
236
+ Object.defineProperty(Constructor, "prototype", {
237
+ writable: false
238
+ });
239
+ return Constructor;
240
+ }
241
+
242
+ function _defineProperty(obj, key, value) {
243
+ key = _toPropertyKey(key);
244
+ if (key in obj) {
245
+ Object.defineProperty(obj, key, {
246
+ value: value,
247
+ enumerable: true,
248
+ configurable: true,
249
+ writable: true
250
+ });
251
+ } else {
252
+ obj[key] = value;
253
+ }
254
+ return obj;
255
+ }
85
256
 
86
257
  var TIMEZONE_UNIT_PRIORITY = 10;
87
258
  var Setter = /*#__PURE__*/function () {
88
259
  function Setter() {
89
- _classCallCheck$w(this, Setter);
90
-
91
- _defineProperty$v(this, "subPriority", 0);
260
+ _classCallCheck(this, Setter);
261
+ _defineProperty(this, "priority", void 0);
262
+ _defineProperty(this, "subPriority", 0);
92
263
  }
93
-
94
- _createClass$w(Setter, [{
264
+ _createClass(Setter, [{
95
265
  key: "validate",
96
266
  value: function validate(_utcDate, _options) {
97
267
  return true;
98
268
  }
99
269
  }]);
100
-
101
270
  return Setter;
102
271
  }();
103
272
  var ValueSetter = /*#__PURE__*/function (_Setter) {
104
- _inherits$v(ValueSetter, _Setter);
105
-
106
- var _super = _createSuper$v(ValueSetter);
107
-
273
+ _inherits(ValueSetter, _Setter);
274
+ var _super = _createSuper(ValueSetter);
108
275
  function ValueSetter(value, validateValue, setValue, priority, subPriority) {
109
276
  var _this;
110
-
111
- _classCallCheck$w(this, ValueSetter);
112
-
277
+ _classCallCheck(this, ValueSetter);
113
278
  _this = _super.call(this);
114
279
  _this.value = value;
115
280
  _this.validateValue = validateValue;
116
281
  _this.setValue = setValue;
117
282
  _this.priority = priority;
118
-
119
283
  if (subPriority) {
120
284
  _this.subPriority = subPriority;
121
285
  }
122
-
123
286
  return _this;
124
287
  }
125
-
126
- _createClass$w(ValueSetter, [{
288
+ _createClass(ValueSetter, [{
127
289
  key: "validate",
128
290
  value: function validate(utcDate, options) {
129
291
  return this.validateValue(utcDate, this.value, options);
@@ -134,68 +296,51 @@ var ValueSetter = /*#__PURE__*/function (_Setter) {
134
296
  return this.setValue(utcDate, flags, this.value, options);
135
297
  }
136
298
  }]);
137
-
138
299
  return ValueSetter;
139
300
  }(Setter);
140
301
  var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) {
141
- _inherits$v(DateToSystemTimezoneSetter, _Setter2);
142
-
143
- var _super2 = _createSuper$v(DateToSystemTimezoneSetter);
144
-
302
+ _inherits(DateToSystemTimezoneSetter, _Setter2);
303
+ var _super2 = _createSuper(DateToSystemTimezoneSetter);
145
304
  function DateToSystemTimezoneSetter() {
146
305
  var _this2;
147
-
148
- _classCallCheck$w(this, DateToSystemTimezoneSetter);
149
-
306
+ _classCallCheck(this, DateToSystemTimezoneSetter);
150
307
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
151
308
  args[_key] = arguments[_key];
152
309
  }
153
-
154
310
  _this2 = _super2.call.apply(_super2, [this].concat(args));
155
-
156
- _defineProperty$v(_assertThisInitialized$v(_this2), "priority", TIMEZONE_UNIT_PRIORITY);
157
-
158
- _defineProperty$v(_assertThisInitialized$v(_this2), "subPriority", -1);
159
-
311
+ _defineProperty(_assertThisInitialized(_this2), "priority", TIMEZONE_UNIT_PRIORITY);
312
+ _defineProperty(_assertThisInitialized(_this2), "subPriority", -1);
160
313
  return _this2;
161
314
  }
162
-
163
- _createClass$w(DateToSystemTimezoneSetter, [{
315
+ _createClass(DateToSystemTimezoneSetter, [{
164
316
  key: "set",
165
317
  value: function set(date, flags) {
166
318
  if (flags.timestampIsSet) {
167
319
  return date;
168
320
  }
169
-
170
321
  var convertedDate = new Date(0);
171
322
  convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
172
323
  convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
173
324
  return convertedDate;
174
325
  }
175
326
  }]);
176
-
177
327
  return DateToSystemTimezoneSetter;
178
328
  }(Setter);
179
329
 
180
- function _classCallCheck$v(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
181
-
182
- 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); } }
183
-
184
- function _createClass$v(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$v(Constructor.prototype, protoProps); if (staticProps) _defineProperties$v(Constructor, staticProps); return Constructor; }
185
330
  var Parser = /*#__PURE__*/function () {
186
331
  function Parser() {
187
- _classCallCheck$v(this, Parser);
332
+ _classCallCheck(this, Parser);
333
+ _defineProperty(this, "incompatibleTokens", void 0);
334
+ _defineProperty(this, "priority", void 0);
335
+ _defineProperty(this, "subPriority", void 0);
188
336
  }
189
-
190
- _createClass$v(Parser, [{
337
+ _createClass(Parser, [{
191
338
  key: "run",
192
339
  value: function run(dateString, token, match, options) {
193
340
  var result = this.parse(dateString, token, match, options);
194
-
195
341
  if (!result) {
196
342
  return null;
197
343
  }
198
-
199
344
  return {
200
345
  setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),
201
346
  rest: result.rest
@@ -207,57 +352,24 @@ var Parser = /*#__PURE__*/function () {
207
352
  return true;
208
353
  }
209
354
  }]);
210
-
211
355
  return Parser;
212
356
  }();
213
357
 
214
- 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); }
215
-
216
- function _classCallCheck$u(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
217
-
218
- 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); } }
219
-
220
- function _createClass$u(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$u(Constructor.prototype, protoProps); if (staticProps) _defineProperties$u(Constructor, staticProps); return Constructor; }
221
-
222
- 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); }
223
-
224
- function _setPrototypeOf$u(o, p) { _setPrototypeOf$u = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$u(o, p); }
225
-
226
- 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); }; }
227
-
228
- function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
229
-
230
- function _assertThisInitialized$u(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
231
-
232
- 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; } }
233
-
234
- function _getPrototypeOf$u(o) { _getPrototypeOf$u = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$u(o); }
235
-
236
- 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; }
237
358
  var EraParser = /*#__PURE__*/function (_Parser) {
238
- _inherits$u(EraParser, _Parser);
239
-
240
- var _super = _createSuper$u(EraParser);
241
-
359
+ _inherits(EraParser, _Parser);
360
+ var _super = _createSuper(EraParser);
242
361
  function EraParser() {
243
362
  var _this;
244
-
245
- _classCallCheck$u(this, EraParser);
246
-
363
+ _classCallCheck(this, EraParser);
247
364
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
248
365
  args[_key] = arguments[_key];
249
366
  }
250
-
251
367
  _this = _super.call.apply(_super, [this].concat(args));
252
-
253
- _defineProperty$u(_assertThisInitialized$u(_this), "priority", 140);
254
-
255
- _defineProperty$u(_assertThisInitialized$u(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
256
-
368
+ _defineProperty(_assertThisInitialized(_this), "priority", 140);
369
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
257
370
  return _this;
258
371
  }
259
-
260
- _createClass$u(EraParser, [{
372
+ _createClass(EraParser, [{
261
373
  key: "parse",
262
374
  value: function parse(dateString, token, match) {
263
375
  switch (token) {
@@ -271,13 +383,11 @@ var EraParser = /*#__PURE__*/function (_Parser) {
271
383
  width: 'narrow'
272
384
  });
273
385
  // A, B
274
-
275
386
  case 'GGGGG':
276
387
  return match.era(dateString, {
277
388
  width: 'narrow'
278
389
  });
279
390
  // Anno Domini, Before Christ
280
-
281
391
  case 'GGGG':
282
392
  default:
283
393
  return match.era(dateString, {
@@ -298,7 +408,6 @@ var EraParser = /*#__PURE__*/function (_Parser) {
298
408
  return date;
299
409
  }
300
410
  }]);
301
-
302
411
  return EraParser;
303
412
  }(Parser);
304
413
 
@@ -323,6 +432,7 @@ var numericPatterns = {
323
432
  // 0 to 59
324
433
  second: /^[0-5]?\d/,
325
434
  // 0 to 59
435
+
326
436
  singleDigit: /^\d/,
327
437
  // 0 to 9
328
438
  twoDigits: /^\d{1,2}/,
@@ -331,6 +441,7 @@ var numericPatterns = {
331
441
  // 0 to 999
332
442
  fourDigits: /^\d{1,4}/,
333
443
  // 0 to 9999
444
+
334
445
  anyDigitsSigned: /^-?\d+/,
335
446
  singleDigitSigned: /^-?\d/,
336
447
  // 0 to 9, -0 to -9
@@ -339,8 +450,8 @@ var numericPatterns = {
339
450
  threeDigitsSigned: /^-?\d{1,3}/,
340
451
  // 0 to 999, -0 to -999
341
452
  fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
342
-
343
453
  };
454
+
344
455
  var timezonePatterns = {
345
456
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
346
457
  basic: /^([+-])(\d{2})(\d{2})|Z/,
@@ -353,7 +464,6 @@ function mapValue(parseFnResult, mapFn) {
353
464
  if (!parseFnResult) {
354
465
  return parseFnResult;
355
466
  }
356
-
357
467
  return {
358
468
  value: mapFn(parseFnResult.value),
359
469
  rest: parseFnResult.rest
@@ -361,11 +471,9 @@ function mapValue(parseFnResult, mapFn) {
361
471
  }
362
472
  function parseNumericPattern(pattern, dateString) {
363
473
  var matchResult = dateString.match(pattern);
364
-
365
474
  if (!matchResult) {
366
475
  return null;
367
476
  }
368
-
369
477
  return {
370
478
  value: parseInt(matchResult[0], 10),
371
479
  rest: dateString.slice(matchResult[0].length)
@@ -373,19 +481,17 @@ function parseNumericPattern(pattern, dateString) {
373
481
  }
374
482
  function parseTimezonePattern(pattern, dateString) {
375
483
  var matchResult = dateString.match(pattern);
376
-
377
484
  if (!matchResult) {
378
485
  return null;
379
- } // Input is 'Z'
380
-
486
+ }
381
487
 
488
+ // Input is 'Z'
382
489
  if (matchResult[0] === 'Z') {
383
490
  return {
384
491
  value: 0,
385
492
  rest: dateString.slice(1)
386
493
  };
387
494
  }
388
-
389
495
  var sign = matchResult[1] === '+' ? 1 : -1;
390
496
  var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
391
497
  var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
@@ -402,16 +508,12 @@ function parseNDigits(n, dateString) {
402
508
  switch (n) {
403
509
  case 1:
404
510
  return parseNumericPattern(numericPatterns.singleDigit, dateString);
405
-
406
511
  case 2:
407
512
  return parseNumericPattern(numericPatterns.twoDigits, dateString);
408
-
409
513
  case 3:
410
514
  return parseNumericPattern(numericPatterns.threeDigits, dateString);
411
-
412
515
  case 4:
413
516
  return parseNumericPattern(numericPatterns.fourDigits, dateString);
414
-
415
517
  default:
416
518
  return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString);
417
519
  }
@@ -420,16 +522,12 @@ function parseNDigitsSigned(n, dateString) {
420
522
  switch (n) {
421
523
  case 1:
422
524
  return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
423
-
424
525
  case 2:
425
526
  return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
426
-
427
527
  case 3:
428
528
  return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
429
-
430
529
  case 4:
431
530
  return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
432
-
433
531
  default:
434
532
  return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString);
435
533
  }
@@ -438,15 +536,12 @@ function dayPeriodEnumToHours(dayPeriod) {
438
536
  switch (dayPeriod) {
439
537
  case 'morning':
440
538
  return 4;
441
-
442
539
  case 'evening':
443
540
  return 17;
444
-
445
541
  case 'pm':
446
542
  case 'noon':
447
543
  case 'afternoon':
448
544
  return 12;
449
-
450
545
  case 'am':
451
546
  case 'midnight':
452
547
  case 'night':
@@ -455,14 +550,13 @@ function dayPeriodEnumToHours(dayPeriod) {
455
550
  }
456
551
  }
457
552
  function normalizeTwoDigitYear(twoDigitYear, currentYear) {
458
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
553
+ var isCommonEra = currentYear > 0;
554
+ // Absolute number of the current year:
459
555
  // 1 -> 1 AC
460
556
  // 0 -> 1 BC
461
557
  // -1 -> 2 BC
462
-
463
558
  var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
464
559
  var result;
465
-
466
560
  if (absCurrentYear <= 50) {
467
561
  result = twoDigitYear || 100;
468
562
  } else {
@@ -471,36 +565,12 @@ function normalizeTwoDigitYear(twoDigitYear, currentYear) {
471
565
  var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
472
566
  result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
473
567
  }
474
-
475
568
  return isCommonEra ? result : 1 - result;
476
569
  }
477
570
  function isLeapYearIndex(year) {
478
571
  return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
479
572
  }
480
573
 
481
- 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); }
482
-
483
- function _classCallCheck$t(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
484
-
485
- 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); } }
486
-
487
- function _createClass$t(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$t(Constructor.prototype, protoProps); if (staticProps) _defineProperties$t(Constructor, staticProps); return Constructor; }
488
-
489
- 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); }
490
-
491
- function _setPrototypeOf$t(o, p) { _setPrototypeOf$t = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$t(o, p); }
492
-
493
- 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); }; }
494
-
495
- function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
496
-
497
- function _assertThisInitialized$t(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
498
-
499
- 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; } }
500
-
501
- function _getPrototypeOf$t(o) { _getPrototypeOf$t = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$t(o); }
502
-
503
- 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; }
504
574
  // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
505
575
  // | Year | y | yy | yyy | yyyy | yyyyy |
506
576
  // |----------|-------|----|-------|-------|-------|
@@ -510,29 +580,20 @@ function _defineProperty$t(obj, key, value) { if (key in obj) { Object.definePro
510
580
  // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
511
581
  // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
512
582
  var YearParser = /*#__PURE__*/function (_Parser) {
513
- _inherits$t(YearParser, _Parser);
514
-
515
- var _super = _createSuper$t(YearParser);
516
-
583
+ _inherits(YearParser, _Parser);
584
+ var _super = _createSuper(YearParser);
517
585
  function YearParser() {
518
586
  var _this;
519
-
520
- _classCallCheck$t(this, YearParser);
521
-
587
+ _classCallCheck(this, YearParser);
522
588
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
523
589
  args[_key] = arguments[_key];
524
590
  }
525
-
526
591
  _this = _super.call.apply(_super, [this].concat(args));
527
-
528
- _defineProperty$t(_assertThisInitialized$t(_this), "priority", 130);
529
-
530
- _defineProperty$t(_assertThisInitialized$t(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
531
-
592
+ _defineProperty(_assertThisInitialized(_this), "priority", 130);
593
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
532
594
  return _this;
533
595
  }
534
-
535
- _createClass$t(YearParser, [{
596
+ _createClass(YearParser, [{
536
597
  key: "parse",
537
598
  value: function parse(dateString, token, match) {
538
599
  var valueCallback = function valueCallback(year) {
@@ -541,16 +602,13 @@ var YearParser = /*#__PURE__*/function (_Parser) {
541
602
  isTwoDigitYear: token === 'yy'
542
603
  };
543
604
  };
544
-
545
605
  switch (token) {
546
606
  case 'y':
547
607
  return mapValue(parseNDigits(4, dateString), valueCallback);
548
-
549
608
  case 'yo':
550
609
  return mapValue(match.ordinalNumber(dateString, {
551
610
  unit: 'year'
552
611
  }), valueCallback);
553
-
554
612
  default:
555
613
  return mapValue(parseNDigits(token.length, dateString), valueCallback);
556
614
  }
@@ -564,72 +622,37 @@ var YearParser = /*#__PURE__*/function (_Parser) {
564
622
  key: "set",
565
623
  value: function set(date, flags, value) {
566
624
  var currentYear = date.getUTCFullYear();
567
-
568
625
  if (value.isTwoDigitYear) {
569
626
  var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
570
627
  date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
571
628
  date.setUTCHours(0, 0, 0, 0);
572
629
  return date;
573
630
  }
574
-
575
631
  var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
576
632
  date.setUTCFullYear(year, 0, 1);
577
633
  date.setUTCHours(0, 0, 0, 0);
578
634
  return date;
579
635
  }
580
636
  }]);
581
-
582
637
  return YearParser;
583
638
  }(Parser);
584
639
 
585
- 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); }
586
-
587
- function _classCallCheck$s(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
588
-
589
- 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); } }
590
-
591
- function _createClass$s(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$s(Constructor.prototype, protoProps); if (staticProps) _defineProperties$s(Constructor, staticProps); return Constructor; }
592
-
593
- 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); }
594
-
595
- function _setPrototypeOf$s(o, p) { _setPrototypeOf$s = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$s(o, p); }
596
-
597
- 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); }; }
598
-
599
- function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
600
-
601
- function _assertThisInitialized$s(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
602
-
603
- 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; } }
604
-
605
- function _getPrototypeOf$s(o) { _getPrototypeOf$s = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$s(o); }
606
-
607
- 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; }
608
640
  // Local week-numbering year
609
641
  var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
610
- _inherits$s(LocalWeekYearParser, _Parser);
611
-
612
- var _super = _createSuper$s(LocalWeekYearParser);
613
-
642
+ _inherits(LocalWeekYearParser, _Parser);
643
+ var _super = _createSuper(LocalWeekYearParser);
614
644
  function LocalWeekYearParser() {
615
645
  var _this;
616
-
617
- _classCallCheck$s(this, LocalWeekYearParser);
618
-
646
+ _classCallCheck(this, LocalWeekYearParser);
619
647
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
620
648
  args[_key] = arguments[_key];
621
649
  }
622
-
623
650
  _this = _super.call.apply(_super, [this].concat(args));
624
-
625
- _defineProperty$s(_assertThisInitialized$s(_this), "priority", 130);
626
-
627
- _defineProperty$s(_assertThisInitialized$s(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
628
-
651
+ _defineProperty(_assertThisInitialized(_this), "priority", 130);
652
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
629
653
  return _this;
630
654
  }
631
-
632
- _createClass$s(LocalWeekYearParser, [{
655
+ _createClass(LocalWeekYearParser, [{
633
656
  key: "parse",
634
657
  value: function parse(dateString, token, match) {
635
658
  var valueCallback = function valueCallback(year) {
@@ -638,16 +661,13 @@ var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
638
661
  isTwoDigitYear: token === 'YY'
639
662
  };
640
663
  };
641
-
642
664
  switch (token) {
643
665
  case 'Y':
644
666
  return mapValue(parseNDigits(4, dateString), valueCallback);
645
-
646
667
  case 'Yo':
647
668
  return mapValue(match.ordinalNumber(dateString, {
648
669
  unit: 'year'
649
670
  }), valueCallback);
650
-
651
671
  default:
652
672
  return mapValue(parseNDigits(token.length, dateString), valueCallback);
653
673
  }
@@ -661,78 +681,41 @@ var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
661
681
  key: "set",
662
682
  value: function set(date, flags, value, options) {
663
683
  var currentYear = index.getUTCWeekYear(date, options);
664
-
665
684
  if (value.isTwoDigitYear) {
666
685
  var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
667
686
  date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
668
687
  date.setUTCHours(0, 0, 0, 0);
669
688
  return index.startOfUTCWeek(date, options);
670
689
  }
671
-
672
690
  var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
673
691
  date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
674
692
  date.setUTCHours(0, 0, 0, 0);
675
693
  return index.startOfUTCWeek(date, options);
676
694
  }
677
695
  }]);
678
-
679
696
  return LocalWeekYearParser;
680
697
  }(Parser);
681
698
 
682
- 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); }
683
-
684
- function _classCallCheck$r(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
685
-
686
- 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); } }
687
-
688
- function _createClass$r(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$r(Constructor.prototype, protoProps); if (staticProps) _defineProperties$r(Constructor, staticProps); return Constructor; }
689
-
690
- 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); }
691
-
692
- function _setPrototypeOf$r(o, p) { _setPrototypeOf$r = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$r(o, p); }
693
-
694
- 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); }; }
695
-
696
- function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
697
-
698
- function _assertThisInitialized$r(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
699
-
700
- 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; } }
701
-
702
- function _getPrototypeOf$r(o) { _getPrototypeOf$r = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$r(o); }
703
-
704
- 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; }
705
-
706
699
  var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
707
- _inherits$r(ISOWeekYearParser, _Parser);
708
-
709
- var _super = _createSuper$r(ISOWeekYearParser);
710
-
700
+ _inherits(ISOWeekYearParser, _Parser);
701
+ var _super = _createSuper(ISOWeekYearParser);
711
702
  function ISOWeekYearParser() {
712
703
  var _this;
713
-
714
- _classCallCheck$r(this, ISOWeekYearParser);
715
-
704
+ _classCallCheck(this, ISOWeekYearParser);
716
705
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
717
706
  args[_key] = arguments[_key];
718
707
  }
719
-
720
708
  _this = _super.call.apply(_super, [this].concat(args));
721
-
722
- _defineProperty$r(_assertThisInitialized$r(_this), "priority", 130);
723
-
724
- _defineProperty$r(_assertThisInitialized$r(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
725
-
709
+ _defineProperty(_assertThisInitialized(_this), "priority", 130);
710
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
726
711
  return _this;
727
712
  }
728
-
729
- _createClass$r(ISOWeekYearParser, [{
713
+ _createClass(ISOWeekYearParser, [{
730
714
  key: "parse",
731
715
  value: function parse(dateString, token) {
732
716
  if (token === 'R') {
733
717
  return parseNDigitsSigned(4, dateString);
734
718
  }
735
-
736
719
  return parseNDigitsSigned(token.length, dateString);
737
720
  }
738
721
  }, {
@@ -744,63 +727,29 @@ var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
744
727
  return index.startOfUTCISOWeek(firstWeekOfYear);
745
728
  }
746
729
  }]);
747
-
748
730
  return ISOWeekYearParser;
749
731
  }(Parser);
750
732
 
751
- 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); }
752
-
753
- function _classCallCheck$q(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
754
-
755
- 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); } }
756
-
757
- function _createClass$q(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$q(Constructor.prototype, protoProps); if (staticProps) _defineProperties$q(Constructor, staticProps); return Constructor; }
758
-
759
- 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); }
760
-
761
- function _setPrototypeOf$q(o, p) { _setPrototypeOf$q = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$q(o, p); }
762
-
763
- 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); }; }
764
-
765
- function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
766
-
767
- function _assertThisInitialized$q(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
768
-
769
- 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; } }
770
-
771
- function _getPrototypeOf$q(o) { _getPrototypeOf$q = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$q(o); }
772
-
773
- 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; }
774
733
  var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
775
- _inherits$q(ExtendedYearParser, _Parser);
776
-
777
- var _super = _createSuper$q(ExtendedYearParser);
778
-
734
+ _inherits(ExtendedYearParser, _Parser);
735
+ var _super = _createSuper(ExtendedYearParser);
779
736
  function ExtendedYearParser() {
780
737
  var _this;
781
-
782
- _classCallCheck$q(this, ExtendedYearParser);
783
-
738
+ _classCallCheck(this, ExtendedYearParser);
784
739
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
785
740
  args[_key] = arguments[_key];
786
741
  }
787
-
788
742
  _this = _super.call.apply(_super, [this].concat(args));
789
-
790
- _defineProperty$q(_assertThisInitialized$q(_this), "priority", 130);
791
-
792
- _defineProperty$q(_assertThisInitialized$q(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
793
-
743
+ _defineProperty(_assertThisInitialized(_this), "priority", 130);
744
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
794
745
  return _this;
795
746
  }
796
-
797
- _createClass$q(ExtendedYearParser, [{
747
+ _createClass(ExtendedYearParser, [{
798
748
  key: "parse",
799
749
  value: function parse(dateString, token) {
800
750
  if (token === 'u') {
801
751
  return parseNDigitsSigned(4, dateString);
802
752
  }
803
-
804
753
  return parseNDigitsSigned(token.length, dateString);
805
754
  }
806
755
  }, {
@@ -811,57 +760,24 @@ var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
811
760
  return date;
812
761
  }
813
762
  }]);
814
-
815
763
  return ExtendedYearParser;
816
764
  }(Parser);
817
765
 
818
- 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); }
819
-
820
- function _classCallCheck$p(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
821
-
822
- 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); } }
823
-
824
- function _createClass$p(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$p(Constructor.prototype, protoProps); if (staticProps) _defineProperties$p(Constructor, staticProps); return Constructor; }
825
-
826
- 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); }
827
-
828
- function _setPrototypeOf$p(o, p) { _setPrototypeOf$p = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$p(o, p); }
829
-
830
- 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); }; }
831
-
832
- function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
833
-
834
- function _assertThisInitialized$p(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
835
-
836
- 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; } }
837
-
838
- function _getPrototypeOf$p(o) { _getPrototypeOf$p = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$p(o); }
839
-
840
- 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; }
841
766
  var QuarterParser = /*#__PURE__*/function (_Parser) {
842
- _inherits$p(QuarterParser, _Parser);
843
-
844
- var _super = _createSuper$p(QuarterParser);
845
-
767
+ _inherits(QuarterParser, _Parser);
768
+ var _super = _createSuper(QuarterParser);
846
769
  function QuarterParser() {
847
770
  var _this;
848
-
849
- _classCallCheck$p(this, QuarterParser);
850
-
771
+ _classCallCheck(this, QuarterParser);
851
772
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
852
773
  args[_key] = arguments[_key];
853
774
  }
854
-
855
775
  _this = _super.call.apply(_super, [this].concat(args));
856
-
857
- _defineProperty$p(_assertThisInitialized$p(_this), "priority", 120);
858
-
859
- _defineProperty$p(_assertThisInitialized$p(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
860
-
776
+ _defineProperty(_assertThisInitialized(_this), "priority", 120);
777
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
861
778
  return _this;
862
779
  }
863
-
864
- _createClass$p(QuarterParser, [{
780
+ _createClass(QuarterParser, [{
865
781
  key: "parse",
866
782
  value: function parse(dateString, token, match) {
867
783
  switch (token) {
@@ -871,13 +787,11 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
871
787
  // 01, 02, 03, 04
872
788
  return parseNDigits(token.length, dateString);
873
789
  // 1st, 2nd, 3rd, 4th
874
-
875
790
  case 'Qo':
876
791
  return match.ordinalNumber(dateString, {
877
792
  unit: 'quarter'
878
793
  });
879
794
  // Q1, Q2, Q3, Q4
880
-
881
795
  case 'QQQ':
882
796
  return match.quarter(dateString, {
883
797
  width: 'abbreviated',
@@ -887,14 +801,12 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
887
801
  context: 'formatting'
888
802
  });
889
803
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
890
-
891
804
  case 'QQQQQ':
892
805
  return match.quarter(dateString, {
893
806
  width: 'narrow',
894
807
  context: 'formatting'
895
808
  });
896
809
  // 1st quarter, 2nd quarter, ...
897
-
898
810
  case 'QQQQ':
899
811
  default:
900
812
  return match.quarter(dateString, {
@@ -922,57 +834,24 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
922
834
  return date;
923
835
  }
924
836
  }]);
925
-
926
837
  return QuarterParser;
927
838
  }(Parser);
928
839
 
929
- 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); }
930
-
931
- function _classCallCheck$o(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
932
-
933
- 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); } }
934
-
935
- function _createClass$o(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$o(Constructor.prototype, protoProps); if (staticProps) _defineProperties$o(Constructor, staticProps); return Constructor; }
936
-
937
- 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); }
938
-
939
- function _setPrototypeOf$o(o, p) { _setPrototypeOf$o = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$o(o, p); }
940
-
941
- 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); }; }
942
-
943
- function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
944
-
945
- function _assertThisInitialized$o(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
946
-
947
- 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; } }
948
-
949
- function _getPrototypeOf$o(o) { _getPrototypeOf$o = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$o(o); }
950
-
951
- 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; }
952
840
  var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
953
- _inherits$o(StandAloneQuarterParser, _Parser);
954
-
955
- var _super = _createSuper$o(StandAloneQuarterParser);
956
-
841
+ _inherits(StandAloneQuarterParser, _Parser);
842
+ var _super = _createSuper(StandAloneQuarterParser);
957
843
  function StandAloneQuarterParser() {
958
844
  var _this;
959
-
960
- _classCallCheck$o(this, StandAloneQuarterParser);
961
-
845
+ _classCallCheck(this, StandAloneQuarterParser);
962
846
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
963
847
  args[_key] = arguments[_key];
964
848
  }
965
-
966
849
  _this = _super.call.apply(_super, [this].concat(args));
967
-
968
- _defineProperty$o(_assertThisInitialized$o(_this), "priority", 120);
969
-
970
- _defineProperty$o(_assertThisInitialized$o(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
971
-
850
+ _defineProperty(_assertThisInitialized(_this), "priority", 120);
851
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
972
852
  return _this;
973
853
  }
974
-
975
- _createClass$o(StandAloneQuarterParser, [{
854
+ _createClass(StandAloneQuarterParser, [{
976
855
  key: "parse",
977
856
  value: function parse(dateString, token, match) {
978
857
  switch (token) {
@@ -982,13 +861,11 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
982
861
  // 01, 02, 03, 04
983
862
  return parseNDigits(token.length, dateString);
984
863
  // 1st, 2nd, 3rd, 4th
985
-
986
864
  case 'qo':
987
865
  return match.ordinalNumber(dateString, {
988
866
  unit: 'quarter'
989
867
  });
990
868
  // Q1, Q2, Q3, Q4
991
-
992
869
  case 'qqq':
993
870
  return match.quarter(dateString, {
994
871
  width: 'abbreviated',
@@ -998,14 +875,12 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
998
875
  context: 'standalone'
999
876
  });
1000
877
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1001
-
1002
878
  case 'qqqqq':
1003
879
  return match.quarter(dateString, {
1004
880
  width: 'narrow',
1005
881
  context: 'standalone'
1006
882
  });
1007
883
  // 1st quarter, 2nd quarter, ...
1008
-
1009
884
  case 'qqqq':
1010
885
  default:
1011
886
  return match.quarter(dateString, {
@@ -1033,79 +908,42 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
1033
908
  return date;
1034
909
  }
1035
910
  }]);
1036
-
1037
911
  return StandAloneQuarterParser;
1038
912
  }(Parser);
1039
913
 
1040
- 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); }
1041
-
1042
- function _classCallCheck$n(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1043
-
1044
- 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); } }
1045
-
1046
- function _createClass$n(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$n(Constructor.prototype, protoProps); if (staticProps) _defineProperties$n(Constructor, staticProps); return Constructor; }
1047
-
1048
- 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); }
1049
-
1050
- function _setPrototypeOf$n(o, p) { _setPrototypeOf$n = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$n(o, p); }
1051
-
1052
- 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); }; }
1053
-
1054
- function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
1055
-
1056
- function _assertThisInitialized$n(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1057
-
1058
- 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; } }
1059
-
1060
- function _getPrototypeOf$n(o) { _getPrototypeOf$n = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$n(o); }
1061
-
1062
- 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; }
1063
914
  var MonthParser = /*#__PURE__*/function (_Parser) {
1064
- _inherits$n(MonthParser, _Parser);
1065
-
1066
- var _super = _createSuper$n(MonthParser);
1067
-
915
+ _inherits(MonthParser, _Parser);
916
+ var _super = _createSuper(MonthParser);
1068
917
  function MonthParser() {
1069
918
  var _this;
1070
-
1071
- _classCallCheck$n(this, MonthParser);
1072
-
919
+ _classCallCheck(this, MonthParser);
1073
920
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1074
921
  args[_key] = arguments[_key];
1075
922
  }
1076
-
1077
923
  _this = _super.call.apply(_super, [this].concat(args));
1078
-
1079
- _defineProperty$n(_assertThisInitialized$n(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1080
-
1081
- _defineProperty$n(_assertThisInitialized$n(_this), "priority", 110);
1082
-
924
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
925
+ _defineProperty(_assertThisInitialized(_this), "priority", 110);
1083
926
  return _this;
1084
927
  }
1085
-
1086
- _createClass$n(MonthParser, [{
928
+ _createClass(MonthParser, [{
1087
929
  key: "parse",
1088
930
  value: function parse(dateString, token, match) {
1089
931
  var valueCallback = function valueCallback(value) {
1090
932
  return value - 1;
1091
933
  };
1092
-
1093
934
  switch (token) {
1094
935
  // 1, 2, ..., 12
1095
936
  case 'M':
1096
937
  return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
1097
938
  // 01, 02, ..., 12
1098
-
1099
939
  case 'MM':
1100
940
  return mapValue(parseNDigits(2, dateString), valueCallback);
1101
941
  // 1st, 2nd, ..., 12th
1102
-
1103
942
  case 'Mo':
1104
943
  return mapValue(match.ordinalNumber(dateString, {
1105
944
  unit: 'month'
1106
945
  }), valueCallback);
1107
946
  // Jan, Feb, ..., Dec
1108
-
1109
947
  case 'MMM':
1110
948
  return match.month(dateString, {
1111
949
  width: 'abbreviated',
@@ -1115,14 +953,12 @@ var MonthParser = /*#__PURE__*/function (_Parser) {
1115
953
  context: 'formatting'
1116
954
  });
1117
955
  // J, F, ..., D
1118
-
1119
956
  case 'MMMMM':
1120
957
  return match.month(dateString, {
1121
958
  width: 'narrow',
1122
959
  context: 'formatting'
1123
960
  });
1124
961
  // January, February, ..., December
1125
-
1126
962
  case 'MMMM':
1127
963
  default:
1128
964
  return match.month(dateString, {
@@ -1150,79 +986,42 @@ var MonthParser = /*#__PURE__*/function (_Parser) {
1150
986
  return date;
1151
987
  }
1152
988
  }]);
1153
-
1154
989
  return MonthParser;
1155
990
  }(Parser);
1156
991
 
1157
- 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); }
1158
-
1159
- function _classCallCheck$m(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1160
-
1161
- 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); } }
1162
-
1163
- function _createClass$m(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$m(Constructor.prototype, protoProps); if (staticProps) _defineProperties$m(Constructor, staticProps); return Constructor; }
1164
-
1165
- 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); }
1166
-
1167
- function _setPrototypeOf$m(o, p) { _setPrototypeOf$m = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$m(o, p); }
1168
-
1169
- 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); }; }
1170
-
1171
- function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
1172
-
1173
- function _assertThisInitialized$m(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1174
-
1175
- 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; } }
1176
-
1177
- function _getPrototypeOf$m(o) { _getPrototypeOf$m = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$m(o); }
1178
-
1179
- 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; }
1180
992
  var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
1181
- _inherits$m(StandAloneMonthParser, _Parser);
1182
-
1183
- var _super = _createSuper$m(StandAloneMonthParser);
1184
-
993
+ _inherits(StandAloneMonthParser, _Parser);
994
+ var _super = _createSuper(StandAloneMonthParser);
1185
995
  function StandAloneMonthParser() {
1186
996
  var _this;
1187
-
1188
- _classCallCheck$m(this, StandAloneMonthParser);
1189
-
997
+ _classCallCheck(this, StandAloneMonthParser);
1190
998
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1191
999
  args[_key] = arguments[_key];
1192
1000
  }
1193
-
1194
1001
  _this = _super.call.apply(_super, [this].concat(args));
1195
-
1196
- _defineProperty$m(_assertThisInitialized$m(_this), "priority", 110);
1197
-
1198
- _defineProperty$m(_assertThisInitialized$m(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1199
-
1002
+ _defineProperty(_assertThisInitialized(_this), "priority", 110);
1003
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1200
1004
  return _this;
1201
1005
  }
1202
-
1203
- _createClass$m(StandAloneMonthParser, [{
1006
+ _createClass(StandAloneMonthParser, [{
1204
1007
  key: "parse",
1205
1008
  value: function parse(dateString, token, match) {
1206
1009
  var valueCallback = function valueCallback(value) {
1207
1010
  return value - 1;
1208
1011
  };
1209
-
1210
1012
  switch (token) {
1211
1013
  // 1, 2, ..., 12
1212
1014
  case 'L':
1213
1015
  return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
1214
1016
  // 01, 02, ..., 12
1215
-
1216
1017
  case 'LL':
1217
1018
  return mapValue(parseNDigits(2, dateString), valueCallback);
1218
1019
  // 1st, 2nd, ..., 12th
1219
-
1220
1020
  case 'Lo':
1221
1021
  return mapValue(match.ordinalNumber(dateString, {
1222
1022
  unit: 'month'
1223
1023
  }), valueCallback);
1224
1024
  // Jan, Feb, ..., Dec
1225
-
1226
1025
  case 'LLL':
1227
1026
  return match.month(dateString, {
1228
1027
  width: 'abbreviated',
@@ -1232,14 +1031,12 @@ var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
1232
1031
  context: 'standalone'
1233
1032
  });
1234
1033
  // J, F, ..., D
1235
-
1236
1034
  case 'LLLLL':
1237
1035
  return match.month(dateString, {
1238
1036
  width: 'narrow',
1239
1037
  context: 'standalone'
1240
1038
  });
1241
1039
  // January, February, ..., December
1242
-
1243
1040
  case 'LLLL':
1244
1041
  default:
1245
1042
  return match.month(dateString, {
@@ -1267,7 +1064,6 @@ var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
1267
1064
  return date;
1268
1065
  }
1269
1066
  }]);
1270
-
1271
1067
  return StandAloneMonthParser;
1272
1068
  }(Parser);
1273
1069
 
@@ -1280,65 +1076,30 @@ function setUTCWeek(dirtyDate, dirtyWeek, options) {
1280
1076
  return date;
1281
1077
  }
1282
1078
 
1283
- 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); }
1284
-
1285
- function _classCallCheck$l(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1286
-
1287
- 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); } }
1288
-
1289
- function _createClass$l(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$l(Constructor.prototype, protoProps); if (staticProps) _defineProperties$l(Constructor, staticProps); return Constructor; }
1290
-
1291
- 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); }
1292
-
1293
- function _setPrototypeOf$l(o, p) { _setPrototypeOf$l = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$l(o, p); }
1294
-
1295
- 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); }; }
1296
-
1297
- function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
1298
-
1299
- function _assertThisInitialized$l(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1300
-
1301
- 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; } }
1302
-
1303
- function _getPrototypeOf$l(o) { _getPrototypeOf$l = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$l(o); }
1304
-
1305
- 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; }
1306
-
1307
1079
  var LocalWeekParser = /*#__PURE__*/function (_Parser) {
1308
- _inherits$l(LocalWeekParser, _Parser);
1309
-
1310
- var _super = _createSuper$l(LocalWeekParser);
1311
-
1080
+ _inherits(LocalWeekParser, _Parser);
1081
+ var _super = _createSuper(LocalWeekParser);
1312
1082
  function LocalWeekParser() {
1313
1083
  var _this;
1314
-
1315
- _classCallCheck$l(this, LocalWeekParser);
1316
-
1084
+ _classCallCheck(this, LocalWeekParser);
1317
1085
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1318
1086
  args[_key] = arguments[_key];
1319
1087
  }
1320
-
1321
1088
  _this = _super.call.apply(_super, [this].concat(args));
1322
-
1323
- _defineProperty$l(_assertThisInitialized$l(_this), "priority", 100);
1324
-
1325
- _defineProperty$l(_assertThisInitialized$l(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
1326
-
1089
+ _defineProperty(_assertThisInitialized(_this), "priority", 100);
1090
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
1327
1091
  return _this;
1328
1092
  }
1329
-
1330
- _createClass$l(LocalWeekParser, [{
1093
+ _createClass(LocalWeekParser, [{
1331
1094
  key: "parse",
1332
1095
  value: function parse(dateString, token, match) {
1333
1096
  switch (token) {
1334
1097
  case 'w':
1335
1098
  return parseNumericPattern(numericPatterns.week, dateString);
1336
-
1337
1099
  case 'wo':
1338
1100
  return match.ordinalNumber(dateString, {
1339
1101
  unit: 'week'
1340
1102
  });
1341
-
1342
1103
  default:
1343
1104
  return parseNDigits(token.length, dateString);
1344
1105
  }
@@ -1354,7 +1115,6 @@ var LocalWeekParser = /*#__PURE__*/function (_Parser) {
1354
1115
  return index.startOfUTCWeek(setUTCWeek(date, value, options), options);
1355
1116
  }
1356
1117
  }]);
1357
-
1358
1118
  return LocalWeekParser;
1359
1119
  }(Parser);
1360
1120
 
@@ -1367,65 +1127,30 @@ function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
1367
1127
  return date;
1368
1128
  }
1369
1129
 
1370
- 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); }
1371
-
1372
- function _classCallCheck$k(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1373
-
1374
- 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); } }
1375
-
1376
- function _createClass$k(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$k(Constructor.prototype, protoProps); if (staticProps) _defineProperties$k(Constructor, staticProps); return Constructor; }
1377
-
1378
- 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); }
1379
-
1380
- function _setPrototypeOf$k(o, p) { _setPrototypeOf$k = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$k(o, p); }
1381
-
1382
- 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); }; }
1383
-
1384
- function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
1385
-
1386
- function _assertThisInitialized$k(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1387
-
1388
- 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; } }
1389
-
1390
- function _getPrototypeOf$k(o) { _getPrototypeOf$k = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$k(o); }
1391
-
1392
- 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; }
1393
-
1394
1130
  var ISOWeekParser = /*#__PURE__*/function (_Parser) {
1395
- _inherits$k(ISOWeekParser, _Parser);
1396
-
1397
- var _super = _createSuper$k(ISOWeekParser);
1398
-
1131
+ _inherits(ISOWeekParser, _Parser);
1132
+ var _super = _createSuper(ISOWeekParser);
1399
1133
  function ISOWeekParser() {
1400
1134
  var _this;
1401
-
1402
- _classCallCheck$k(this, ISOWeekParser);
1403
-
1135
+ _classCallCheck(this, ISOWeekParser);
1404
1136
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1405
1137
  args[_key] = arguments[_key];
1406
1138
  }
1407
-
1408
1139
  _this = _super.call.apply(_super, [this].concat(args));
1409
-
1410
- _defineProperty$k(_assertThisInitialized$k(_this), "priority", 100);
1411
-
1412
- _defineProperty$k(_assertThisInitialized$k(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
1413
-
1140
+ _defineProperty(_assertThisInitialized(_this), "priority", 100);
1141
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
1414
1142
  return _this;
1415
1143
  }
1416
-
1417
- _createClass$k(ISOWeekParser, [{
1144
+ _createClass(ISOWeekParser, [{
1418
1145
  key: "parse",
1419
1146
  value: function parse(dateString, token, match) {
1420
1147
  switch (token) {
1421
1148
  case 'I':
1422
1149
  return parseNumericPattern(numericPatterns.week, dateString);
1423
-
1424
1150
  case 'Io':
1425
1151
  return match.ordinalNumber(dateString, {
1426
1152
  unit: 'week'
1427
1153
  });
1428
-
1429
1154
  default:
1430
1155
  return parseNDigits(token.length, dateString);
1431
1156
  }
@@ -1441,73 +1166,38 @@ var ISOWeekParser = /*#__PURE__*/function (_Parser) {
1441
1166
  return index.startOfUTCISOWeek(setUTCISOWeek(date, value));
1442
1167
  }
1443
1168
  }]);
1444
-
1445
1169
  return ISOWeekParser;
1446
1170
  }(Parser);
1447
1171
 
1448
- 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); }
1449
-
1450
- function _classCallCheck$j(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1451
-
1452
- 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); } }
1453
-
1454
- function _createClass$j(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$j(Constructor.prototype, protoProps); if (staticProps) _defineProperties$j(Constructor, staticProps); return Constructor; }
1455
-
1456
- 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); }
1457
-
1458
- function _setPrototypeOf$j(o, p) { _setPrototypeOf$j = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$j(o, p); }
1459
-
1460
- 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); }; }
1461
-
1462
- function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
1463
-
1464
- function _assertThisInitialized$j(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1465
-
1466
- 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; } }
1467
-
1468
- function _getPrototypeOf$j(o) { _getPrototypeOf$j = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$j(o); }
1469
-
1470
- 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; }
1471
1172
  var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1472
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month
1173
+ var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1473
1174
 
1175
+ // Day of the month
1474
1176
  var DateParser = /*#__PURE__*/function (_Parser) {
1475
- _inherits$j(DateParser, _Parser);
1476
-
1477
- var _super = _createSuper$j(DateParser);
1478
-
1177
+ _inherits(DateParser, _Parser);
1178
+ var _super = _createSuper(DateParser);
1479
1179
  function DateParser() {
1480
1180
  var _this;
1481
-
1482
- _classCallCheck$j(this, DateParser);
1483
-
1181
+ _classCallCheck(this, DateParser);
1484
1182
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1485
1183
  args[_key] = arguments[_key];
1486
1184
  }
1487
-
1488
1185
  _this = _super.call.apply(_super, [this].concat(args));
1489
-
1490
- _defineProperty$j(_assertThisInitialized$j(_this), "priority", 90);
1491
-
1492
- _defineProperty$j(_assertThisInitialized$j(_this), "subPriority", 1);
1493
-
1494
- _defineProperty$j(_assertThisInitialized$j(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1495
-
1186
+ _defineProperty(_assertThisInitialized(_this), "priority", 90);
1187
+ _defineProperty(_assertThisInitialized(_this), "subPriority", 1);
1188
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
1496
1189
  return _this;
1497
1190
  }
1498
-
1499
- _createClass$j(DateParser, [{
1191
+ _createClass(DateParser, [{
1500
1192
  key: "parse",
1501
1193
  value: function parse(dateString, token, match) {
1502
1194
  switch (token) {
1503
1195
  case 'd':
1504
1196
  return parseNumericPattern(numericPatterns.date, dateString);
1505
-
1506
1197
  case 'do':
1507
1198
  return match.ordinalNumber(dateString, {
1508
1199
  unit: 'date'
1509
1200
  });
1510
-
1511
1201
  default:
1512
1202
  return parseNDigits(token.length, dateString);
1513
1203
  }
@@ -1518,7 +1208,6 @@ var DateParser = /*#__PURE__*/function (_Parser) {
1518
1208
  var year = date.getUTCFullYear();
1519
1209
  var isLeapYear = isLeapYearIndex(year);
1520
1210
  var month = date.getUTCMonth();
1521
-
1522
1211
  if (isLeapYear) {
1523
1212
  return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
1524
1213
  } else {
@@ -1533,71 +1222,35 @@ var DateParser = /*#__PURE__*/function (_Parser) {
1533
1222
  return date;
1534
1223
  }
1535
1224
  }]);
1536
-
1537
1225
  return DateParser;
1538
1226
  }(Parser);
1539
1227
 
1540
- 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); }
1541
-
1542
- function _classCallCheck$i(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1543
-
1544
- 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); } }
1545
-
1546
- function _createClass$i(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$i(Constructor.prototype, protoProps); if (staticProps) _defineProperties$i(Constructor, staticProps); return Constructor; }
1547
-
1548
- 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); }
1549
-
1550
- function _setPrototypeOf$i(o, p) { _setPrototypeOf$i = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$i(o, p); }
1551
-
1552
- 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); }; }
1553
-
1554
- function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
1555
-
1556
- function _assertThisInitialized$i(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1557
-
1558
- 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; } }
1559
-
1560
- function _getPrototypeOf$i(o) { _getPrototypeOf$i = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$i(o); }
1561
-
1562
- 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; }
1563
1228
  var DayOfYearParser = /*#__PURE__*/function (_Parser) {
1564
- _inherits$i(DayOfYearParser, _Parser);
1565
-
1566
- var _super = _createSuper$i(DayOfYearParser);
1567
-
1229
+ _inherits(DayOfYearParser, _Parser);
1230
+ var _super = _createSuper(DayOfYearParser);
1568
1231
  function DayOfYearParser() {
1569
1232
  var _this;
1570
-
1571
- _classCallCheck$i(this, DayOfYearParser);
1572
-
1233
+ _classCallCheck(this, DayOfYearParser);
1573
1234
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1574
1235
  args[_key] = arguments[_key];
1575
1236
  }
1576
-
1577
1237
  _this = _super.call.apply(_super, [this].concat(args));
1578
-
1579
- _defineProperty$i(_assertThisInitialized$i(_this), "priority", 90);
1580
-
1581
- _defineProperty$i(_assertThisInitialized$i(_this), "subpriority", 1);
1582
-
1583
- _defineProperty$i(_assertThisInitialized$i(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
1584
-
1238
+ _defineProperty(_assertThisInitialized(_this), "priority", 90);
1239
+ _defineProperty(_assertThisInitialized(_this), "subpriority", 1);
1240
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
1585
1241
  return _this;
1586
1242
  }
1587
-
1588
- _createClass$i(DayOfYearParser, [{
1243
+ _createClass(DayOfYearParser, [{
1589
1244
  key: "parse",
1590
1245
  value: function parse(dateString, token, match) {
1591
1246
  switch (token) {
1592
1247
  case 'D':
1593
1248
  case 'DD':
1594
1249
  return parseNumericPattern(numericPatterns.dayOfYear, dateString);
1595
-
1596
1250
  case 'Do':
1597
1251
  return match.ordinalNumber(dateString, {
1598
1252
  unit: 'date'
1599
1253
  });
1600
-
1601
1254
  default:
1602
1255
  return parseNDigits(token.length, dateString);
1603
1256
  }
@@ -1607,7 +1260,6 @@ var DayOfYearParser = /*#__PURE__*/function (_Parser) {
1607
1260
  value: function validate(date, value) {
1608
1261
  var year = date.getUTCFullYear();
1609
1262
  var isLeapYear = isLeapYearIndex(year);
1610
-
1611
1263
  if (isLeapYear) {
1612
1264
  return value >= 1 && value <= 366;
1613
1265
  } else {
@@ -1622,21 +1274,19 @@ var DayOfYearParser = /*#__PURE__*/function (_Parser) {
1622
1274
  return date;
1623
1275
  }
1624
1276
  }]);
1625
-
1626
1277
  return DayOfYearParser;
1627
1278
  }(Parser);
1628
1279
 
1629
1280
  function setUTCDay(dirtyDate, dirtyDay, options) {
1630
1281
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
1631
-
1632
1282
  index.requiredArgs(2, arguments);
1633
1283
  var defaultOptions = index.getDefaultOptions();
1634
- var weekStartsOn = index.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
1284
+ var weekStartsOn = index.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);
1635
1285
 
1286
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
1636
1287
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
1637
1288
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
1638
1289
  }
1639
-
1640
1290
  var date = index.toDate(dirtyDate);
1641
1291
  var day = index.toInteger(dirtyDay);
1642
1292
  var currentDay = date.getUTCDay();
@@ -1647,54 +1297,21 @@ function setUTCDay(dirtyDate, dirtyDay, options) {
1647
1297
  return date;
1648
1298
  }
1649
1299
 
1650
- 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); }
1651
-
1652
- function _classCallCheck$h(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1653
-
1654
- 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); } }
1655
-
1656
- function _createClass$h(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$h(Constructor.prototype, protoProps); if (staticProps) _defineProperties$h(Constructor, staticProps); return Constructor; }
1657
-
1658
- 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); }
1659
-
1660
- function _setPrototypeOf$h(o, p) { _setPrototypeOf$h = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$h(o, p); }
1661
-
1662
- 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); }; }
1663
-
1664
- function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
1665
-
1666
- function _assertThisInitialized$h(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1667
-
1668
- 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; } }
1669
-
1670
- function _getPrototypeOf$h(o) { _getPrototypeOf$h = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$h(o); }
1671
-
1672
- 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; }
1673
-
1674
1300
  var DayParser = /*#__PURE__*/function (_Parser) {
1675
- _inherits$h(DayParser, _Parser);
1676
-
1677
- var _super = _createSuper$h(DayParser);
1678
-
1301
+ _inherits(DayParser, _Parser);
1302
+ var _super = _createSuper(DayParser);
1679
1303
  function DayParser() {
1680
1304
  var _this;
1681
-
1682
- _classCallCheck$h(this, DayParser);
1683
-
1305
+ _classCallCheck(this, DayParser);
1684
1306
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1685
1307
  args[_key] = arguments[_key];
1686
1308
  }
1687
-
1688
1309
  _this = _super.call.apply(_super, [this].concat(args));
1689
-
1690
- _defineProperty$h(_assertThisInitialized$h(_this), "priority", 90);
1691
-
1692
- _defineProperty$h(_assertThisInitialized$h(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
1693
-
1310
+ _defineProperty(_assertThisInitialized(_this), "priority", 90);
1311
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
1694
1312
  return _this;
1695
1313
  }
1696
-
1697
- _createClass$h(DayParser, [{
1314
+ _createClass(DayParser, [{
1698
1315
  key: "parse",
1699
1316
  value: function parse(dateString, token, match) {
1700
1317
  switch (token) {
@@ -1713,14 +1330,12 @@ var DayParser = /*#__PURE__*/function (_Parser) {
1713
1330
  context: 'formatting'
1714
1331
  });
1715
1332
  // T
1716
-
1717
1333
  case 'EEEEE':
1718
1334
  return match.day(dateString, {
1719
1335
  width: 'narrow',
1720
1336
  context: 'formatting'
1721
1337
  });
1722
1338
  // Tu
1723
-
1724
1339
  case 'EEEEEE':
1725
1340
  return match.day(dateString, {
1726
1341
  width: 'short',
@@ -1730,7 +1345,6 @@ var DayParser = /*#__PURE__*/function (_Parser) {
1730
1345
  context: 'formatting'
1731
1346
  });
1732
1347
  // Tuesday
1733
-
1734
1348
  case 'EEEE':
1735
1349
  default:
1736
1350
  return match.day(dateString, {
@@ -1761,65 +1375,30 @@ var DayParser = /*#__PURE__*/function (_Parser) {
1761
1375
  return date;
1762
1376
  }
1763
1377
  }]);
1764
-
1765
1378
  return DayParser;
1766
1379
  }(Parser);
1767
1380
 
1768
- 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); }
1769
-
1770
- function _classCallCheck$g(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1771
-
1772
- 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); } }
1773
-
1774
- function _createClass$g(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$g(Constructor.prototype, protoProps); if (staticProps) _defineProperties$g(Constructor, staticProps); return Constructor; }
1775
-
1776
- 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); }
1777
-
1778
- function _setPrototypeOf$g(o, p) { _setPrototypeOf$g = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$g(o, p); }
1779
-
1780
- 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); }; }
1781
-
1782
- function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
1783
-
1784
- function _assertThisInitialized$g(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1785
-
1786
- 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; } }
1787
-
1788
- function _getPrototypeOf$g(o) { _getPrototypeOf$g = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$g(o); }
1789
-
1790
- 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; }
1791
-
1792
1381
  var LocalDayParser = /*#__PURE__*/function (_Parser) {
1793
- _inherits$g(LocalDayParser, _Parser);
1794
-
1795
- var _super = _createSuper$g(LocalDayParser);
1796
-
1382
+ _inherits(LocalDayParser, _Parser);
1383
+ var _super = _createSuper(LocalDayParser);
1797
1384
  function LocalDayParser() {
1798
1385
  var _this;
1799
-
1800
- _classCallCheck$g(this, LocalDayParser);
1801
-
1386
+ _classCallCheck(this, LocalDayParser);
1802
1387
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1803
1388
  args[_key] = arguments[_key];
1804
1389
  }
1805
-
1806
1390
  _this = _super.call.apply(_super, [this].concat(args));
1807
-
1808
- _defineProperty$g(_assertThisInitialized$g(_this), "priority", 90);
1809
-
1810
- _defineProperty$g(_assertThisInitialized$g(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
1811
-
1391
+ _defineProperty(_assertThisInitialized(_this), "priority", 90);
1392
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
1812
1393
  return _this;
1813
1394
  }
1814
-
1815
- _createClass$g(LocalDayParser, [{
1395
+ _createClass(LocalDayParser, [{
1816
1396
  key: "parse",
1817
1397
  value: function parse(dateString, token, match, options) {
1818
1398
  var valueCallback = function valueCallback(value) {
1819
1399
  var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1820
1400
  return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1821
1401
  };
1822
-
1823
1402
  switch (token) {
1824
1403
  // 3
1825
1404
  case 'e':
@@ -1827,13 +1406,11 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
1827
1406
  // 03
1828
1407
  return mapValue(parseNDigits(token.length, dateString), valueCallback);
1829
1408
  // 3rd
1830
-
1831
1409
  case 'eo':
1832
1410
  return mapValue(match.ordinalNumber(dateString, {
1833
1411
  unit: 'day'
1834
1412
  }), valueCallback);
1835
1413
  // Tue
1836
-
1837
1414
  case 'eee':
1838
1415
  return match.day(dateString, {
1839
1416
  width: 'abbreviated',
@@ -1846,14 +1423,12 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
1846
1423
  context: 'formatting'
1847
1424
  });
1848
1425
  // T
1849
-
1850
1426
  case 'eeeee':
1851
1427
  return match.day(dateString, {
1852
1428
  width: 'narrow',
1853
1429
  context: 'formatting'
1854
1430
  });
1855
1431
  // Tu
1856
-
1857
1432
  case 'eeeeee':
1858
1433
  return match.day(dateString, {
1859
1434
  width: 'short',
@@ -1863,7 +1438,6 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
1863
1438
  context: 'formatting'
1864
1439
  });
1865
1440
  // Tuesday
1866
-
1867
1441
  case 'eeee':
1868
1442
  default:
1869
1443
  return match.day(dateString, {
@@ -1894,65 +1468,30 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
1894
1468
  return date;
1895
1469
  }
1896
1470
  }]);
1897
-
1898
1471
  return LocalDayParser;
1899
1472
  }(Parser);
1900
1473
 
1901
- 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); }
1902
-
1903
- function _classCallCheck$f(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1904
-
1905
- 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); } }
1906
-
1907
- function _createClass$f(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$f(Constructor.prototype, protoProps); if (staticProps) _defineProperties$f(Constructor, staticProps); return Constructor; }
1908
-
1909
- 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); }
1910
-
1911
- function _setPrototypeOf$f(o, p) { _setPrototypeOf$f = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$f(o, p); }
1912
-
1913
- 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); }; }
1914
-
1915
- function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
1916
-
1917
- function _assertThisInitialized$f(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1918
-
1919
- 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; } }
1920
-
1921
- function _getPrototypeOf$f(o) { _getPrototypeOf$f = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$f(o); }
1922
-
1923
- 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; }
1924
-
1925
1474
  var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
1926
- _inherits$f(StandAloneLocalDayParser, _Parser);
1927
-
1928
- var _super = _createSuper$f(StandAloneLocalDayParser);
1929
-
1475
+ _inherits(StandAloneLocalDayParser, _Parser);
1476
+ var _super = _createSuper(StandAloneLocalDayParser);
1930
1477
  function StandAloneLocalDayParser() {
1931
1478
  var _this;
1932
-
1933
- _classCallCheck$f(this, StandAloneLocalDayParser);
1934
-
1479
+ _classCallCheck(this, StandAloneLocalDayParser);
1935
1480
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1936
1481
  args[_key] = arguments[_key];
1937
1482
  }
1938
-
1939
1483
  _this = _super.call.apply(_super, [this].concat(args));
1940
-
1941
- _defineProperty$f(_assertThisInitialized$f(_this), "priority", 90);
1942
-
1943
- _defineProperty$f(_assertThisInitialized$f(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
1944
-
1484
+ _defineProperty(_assertThisInitialized(_this), "priority", 90);
1485
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
1945
1486
  return _this;
1946
1487
  }
1947
-
1948
- _createClass$f(StandAloneLocalDayParser, [{
1488
+ _createClass(StandAloneLocalDayParser, [{
1949
1489
  key: "parse",
1950
1490
  value: function parse(dateString, token, match, options) {
1951
1491
  var valueCallback = function valueCallback(value) {
1952
1492
  var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1953
1493
  return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1954
1494
  };
1955
-
1956
1495
  switch (token) {
1957
1496
  // 3
1958
1497
  case 'c':
@@ -1960,13 +1499,11 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
1960
1499
  // 03
1961
1500
  return mapValue(parseNDigits(token.length, dateString), valueCallback);
1962
1501
  // 3rd
1963
-
1964
1502
  case 'co':
1965
1503
  return mapValue(match.ordinalNumber(dateString, {
1966
1504
  unit: 'day'
1967
1505
  }), valueCallback);
1968
1506
  // Tue
1969
-
1970
1507
  case 'ccc':
1971
1508
  return match.day(dateString, {
1972
1509
  width: 'abbreviated',
@@ -1979,14 +1516,12 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
1979
1516
  context: 'standalone'
1980
1517
  });
1981
1518
  // T
1982
-
1983
1519
  case 'ccccc':
1984
1520
  return match.day(dateString, {
1985
1521
  width: 'narrow',
1986
1522
  context: 'standalone'
1987
1523
  });
1988
1524
  // Tu
1989
-
1990
1525
  case 'cccccc':
1991
1526
  return match.day(dateString, {
1992
1527
  width: 'short',
@@ -1996,7 +1531,6 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
1996
1531
  context: 'standalone'
1997
1532
  });
1998
1533
  // Tuesday
1999
-
2000
1534
  case 'cccc':
2001
1535
  default:
2002
1536
  return match.day(dateString, {
@@ -2027,18 +1561,15 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
2027
1561
  return date;
2028
1562
  }
2029
1563
  }]);
2030
-
2031
1564
  return StandAloneLocalDayParser;
2032
1565
  }(Parser);
2033
1566
 
2034
1567
  function setUTCISODay(dirtyDate, dirtyDay) {
2035
1568
  index.requiredArgs(2, arguments);
2036
1569
  var day = index.toInteger(dirtyDay);
2037
-
2038
1570
  if (day % 7 === 0) {
2039
1571
  day = day - 7;
2040
1572
  }
2041
-
2042
1573
  var weekStartsOn = 1;
2043
1574
  var date = index.toDate(dirtyDate);
2044
1575
  var currentDay = date.getUTCDay();
@@ -2049,64 +1580,29 @@ function setUTCISODay(dirtyDate, dirtyDay) {
2049
1580
  return date;
2050
1581
  }
2051
1582
 
2052
- 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); }
2053
-
2054
- function _classCallCheck$e(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2055
-
2056
- 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); } }
2057
-
2058
- function _createClass$e(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$e(Constructor.prototype, protoProps); if (staticProps) _defineProperties$e(Constructor, staticProps); return Constructor; }
2059
-
2060
- 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); }
2061
-
2062
- function _setPrototypeOf$e(o, p) { _setPrototypeOf$e = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$e(o, p); }
2063
-
2064
- 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); }; }
2065
-
2066
- function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
2067
-
2068
- function _assertThisInitialized$e(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2069
-
2070
- 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; } }
2071
-
2072
- function _getPrototypeOf$e(o) { _getPrototypeOf$e = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$e(o); }
2073
-
2074
- 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; }
2075
-
2076
1583
  var ISODayParser = /*#__PURE__*/function (_Parser) {
2077
- _inherits$e(ISODayParser, _Parser);
2078
-
2079
- var _super = _createSuper$e(ISODayParser);
2080
-
1584
+ _inherits(ISODayParser, _Parser);
1585
+ var _super = _createSuper(ISODayParser);
2081
1586
  function ISODayParser() {
2082
1587
  var _this;
2083
-
2084
- _classCallCheck$e(this, ISODayParser);
2085
-
1588
+ _classCallCheck(this, ISODayParser);
2086
1589
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2087
1590
  args[_key] = arguments[_key];
2088
1591
  }
2089
-
2090
1592
  _this = _super.call.apply(_super, [this].concat(args));
2091
-
2092
- _defineProperty$e(_assertThisInitialized$e(_this), "priority", 90);
2093
-
2094
- _defineProperty$e(_assertThisInitialized$e(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
2095
-
1593
+ _defineProperty(_assertThisInitialized(_this), "priority", 90);
1594
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
2096
1595
  return _this;
2097
1596
  }
2098
-
2099
- _createClass$e(ISODayParser, [{
1597
+ _createClass(ISODayParser, [{
2100
1598
  key: "parse",
2101
1599
  value: function parse(dateString, token, match) {
2102
1600
  var valueCallback = function valueCallback(value) {
2103
1601
  if (value === 0) {
2104
1602
  return 7;
2105
1603
  }
2106
-
2107
1604
  return value;
2108
1605
  };
2109
-
2110
1606
  switch (token) {
2111
1607
  // 2
2112
1608
  case 'i':
@@ -2114,13 +1610,11 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
2114
1610
  // 02
2115
1611
  return parseNDigits(token.length, dateString);
2116
1612
  // 2nd
2117
-
2118
1613
  case 'io':
2119
1614
  return match.ordinalNumber(dateString, {
2120
1615
  unit: 'day'
2121
1616
  });
2122
1617
  // Tue
2123
-
2124
1618
  case 'iii':
2125
1619
  return mapValue(match.day(dateString, {
2126
1620
  width: 'abbreviated',
@@ -2133,14 +1627,12 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
2133
1627
  context: 'formatting'
2134
1628
  }), valueCallback);
2135
1629
  // T
2136
-
2137
1630
  case 'iiiii':
2138
1631
  return mapValue(match.day(dateString, {
2139
1632
  width: 'narrow',
2140
1633
  context: 'formatting'
2141
1634
  }), valueCallback);
2142
1635
  // Tu
2143
-
2144
1636
  case 'iiiiii':
2145
1637
  return mapValue(match.day(dateString, {
2146
1638
  width: 'short',
@@ -2150,7 +1642,6 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
2150
1642
  context: 'formatting'
2151
1643
  }), valueCallback);
2152
1644
  // Tuesday
2153
-
2154
1645
  case 'iiii':
2155
1646
  default:
2156
1647
  return mapValue(match.day(dateString, {
@@ -2181,57 +1672,24 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
2181
1672
  return date;
2182
1673
  }
2183
1674
  }]);
2184
-
2185
1675
  return ISODayParser;
2186
1676
  }(Parser);
2187
1677
 
2188
- 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); }
2189
-
2190
- function _classCallCheck$d(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2191
-
2192
- 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); } }
2193
-
2194
- function _createClass$d(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$d(Constructor.prototype, protoProps); if (staticProps) _defineProperties$d(Constructor, staticProps); return Constructor; }
2195
-
2196
- 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); }
2197
-
2198
- function _setPrototypeOf$d(o, p) { _setPrototypeOf$d = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$d(o, p); }
2199
-
2200
- 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); }; }
2201
-
2202
- function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
2203
-
2204
- function _assertThisInitialized$d(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2205
-
2206
- 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; } }
2207
-
2208
- function _getPrototypeOf$d(o) { _getPrototypeOf$d = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$d(o); }
2209
-
2210
- 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; }
2211
1678
  var AMPMParser = /*#__PURE__*/function (_Parser) {
2212
- _inherits$d(AMPMParser, _Parser);
2213
-
2214
- var _super = _createSuper$d(AMPMParser);
2215
-
1679
+ _inherits(AMPMParser, _Parser);
1680
+ var _super = _createSuper(AMPMParser);
2216
1681
  function AMPMParser() {
2217
1682
  var _this;
2218
-
2219
- _classCallCheck$d(this, AMPMParser);
2220
-
1683
+ _classCallCheck(this, AMPMParser);
2221
1684
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2222
1685
  args[_key] = arguments[_key];
2223
1686
  }
2224
-
2225
1687
  _this = _super.call.apply(_super, [this].concat(args));
2226
-
2227
- _defineProperty$d(_assertThisInitialized$d(_this), "priority", 80);
2228
-
2229
- _defineProperty$d(_assertThisInitialized$d(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
2230
-
1688
+ _defineProperty(_assertThisInitialized(_this), "priority", 80);
1689
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
2231
1690
  return _this;
2232
1691
  }
2233
-
2234
- _createClass$d(AMPMParser, [{
1692
+ _createClass(AMPMParser, [{
2235
1693
  key: "parse",
2236
1694
  value: function parse(dateString, token, match) {
2237
1695
  switch (token) {
@@ -2245,13 +1703,11 @@ var AMPMParser = /*#__PURE__*/function (_Parser) {
2245
1703
  width: 'narrow',
2246
1704
  context: 'formatting'
2247
1705
  });
2248
-
2249
1706
  case 'aaaaa':
2250
1707
  return match.dayPeriod(dateString, {
2251
1708
  width: 'narrow',
2252
1709
  context: 'formatting'
2253
1710
  });
2254
-
2255
1711
  case 'aaaa':
2256
1712
  default:
2257
1713
  return match.dayPeriod(dateString, {
@@ -2273,57 +1729,24 @@ var AMPMParser = /*#__PURE__*/function (_Parser) {
2273
1729
  return date;
2274
1730
  }
2275
1731
  }]);
2276
-
2277
1732
  return AMPMParser;
2278
1733
  }(Parser);
2279
1734
 
2280
- 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); }
2281
-
2282
- function _classCallCheck$c(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2283
-
2284
- 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); } }
2285
-
2286
- function _createClass$c(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$c(Constructor.prototype, protoProps); if (staticProps) _defineProperties$c(Constructor, staticProps); return Constructor; }
2287
-
2288
- 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); }
2289
-
2290
- function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$c(o, p); }
2291
-
2292
- 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); }; }
2293
-
2294
- function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
2295
-
2296
- function _assertThisInitialized$c(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2297
-
2298
- 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; } }
2299
-
2300
- function _getPrototypeOf$c(o) { _getPrototypeOf$c = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$c(o); }
2301
-
2302
- 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; }
2303
1735
  var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
2304
- _inherits$c(AMPMMidnightParser, _Parser);
2305
-
2306
- var _super = _createSuper$c(AMPMMidnightParser);
2307
-
1736
+ _inherits(AMPMMidnightParser, _Parser);
1737
+ var _super = _createSuper(AMPMMidnightParser);
2308
1738
  function AMPMMidnightParser() {
2309
1739
  var _this;
2310
-
2311
- _classCallCheck$c(this, AMPMMidnightParser);
2312
-
1740
+ _classCallCheck(this, AMPMMidnightParser);
2313
1741
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2314
1742
  args[_key] = arguments[_key];
2315
1743
  }
2316
-
2317
1744
  _this = _super.call.apply(_super, [this].concat(args));
2318
-
2319
- _defineProperty$c(_assertThisInitialized$c(_this), "priority", 80);
2320
-
2321
- _defineProperty$c(_assertThisInitialized$c(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
2322
-
1745
+ _defineProperty(_assertThisInitialized(_this), "priority", 80);
1746
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
2323
1747
  return _this;
2324
1748
  }
2325
-
2326
- _createClass$c(AMPMMidnightParser, [{
1749
+ _createClass(AMPMMidnightParser, [{
2327
1750
  key: "parse",
2328
1751
  value: function parse(dateString, token, match) {
2329
1752
  switch (token) {
@@ -2337,13 +1760,11 @@ var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
2337
1760
  width: 'narrow',
2338
1761
  context: 'formatting'
2339
1762
  });
2340
-
2341
1763
  case 'bbbbb':
2342
1764
  return match.dayPeriod(dateString, {
2343
1765
  width: 'narrow',
2344
1766
  context: 'formatting'
2345
1767
  });
2346
-
2347
1768
  case 'bbbb':
2348
1769
  default:
2349
1770
  return match.dayPeriod(dateString, {
@@ -2365,58 +1786,24 @@ var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
2365
1786
  return date;
2366
1787
  }
2367
1788
  }]);
2368
-
2369
1789
  return AMPMMidnightParser;
2370
1790
  }(Parser);
2371
1791
 
2372
- 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); }
2373
-
2374
- function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2375
-
2376
- 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); } }
2377
-
2378
- function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); return Constructor; }
2379
-
2380
- 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); }
2381
-
2382
- function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$b(o, p); }
2383
-
2384
- 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); }; }
2385
-
2386
- function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
2387
-
2388
- function _assertThisInitialized$b(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2389
-
2390
- 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; } }
2391
-
2392
- function _getPrototypeOf$b(o) { _getPrototypeOf$b = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$b(o); }
2393
-
2394
- 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; }
2395
-
2396
1792
  var DayPeriodParser = /*#__PURE__*/function (_Parser) {
2397
- _inherits$b(DayPeriodParser, _Parser);
2398
-
2399
- var _super = _createSuper$b(DayPeriodParser);
2400
-
1793
+ _inherits(DayPeriodParser, _Parser);
1794
+ var _super = _createSuper(DayPeriodParser);
2401
1795
  function DayPeriodParser() {
2402
1796
  var _this;
2403
-
2404
- _classCallCheck$b(this, DayPeriodParser);
2405
-
1797
+ _classCallCheck(this, DayPeriodParser);
2406
1798
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2407
1799
  args[_key] = arguments[_key];
2408
1800
  }
2409
-
2410
1801
  _this = _super.call.apply(_super, [this].concat(args));
2411
-
2412
- _defineProperty$b(_assertThisInitialized$b(_this), "priority", 80);
2413
-
2414
- _defineProperty$b(_assertThisInitialized$b(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
2415
-
1802
+ _defineProperty(_assertThisInitialized(_this), "priority", 80);
1803
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
2416
1804
  return _this;
2417
1805
  }
2418
-
2419
- _createClass$b(DayPeriodParser, [{
1806
+ _createClass(DayPeriodParser, [{
2420
1807
  key: "parse",
2421
1808
  value: function parse(dateString, token, match) {
2422
1809
  switch (token) {
@@ -2430,13 +1817,11 @@ var DayPeriodParser = /*#__PURE__*/function (_Parser) {
2430
1817
  width: 'narrow',
2431
1818
  context: 'formatting'
2432
1819
  });
2433
-
2434
1820
  case 'BBBBB':
2435
1821
  return match.dayPeriod(dateString, {
2436
1822
  width: 'narrow',
2437
1823
  context: 'formatting'
2438
1824
  });
2439
-
2440
1825
  case 'BBBB':
2441
1826
  default:
2442
1827
  return match.dayPeriod(dateString, {
@@ -2458,68 +1843,33 @@ var DayPeriodParser = /*#__PURE__*/function (_Parser) {
2458
1843
  return date;
2459
1844
  }
2460
1845
  }]);
2461
-
2462
1846
  return DayPeriodParser;
2463
1847
  }(Parser);
2464
1848
 
2465
- 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); }
2466
-
2467
- function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2468
-
2469
- 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); } }
2470
-
2471
- function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }
2472
-
2473
- 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); }
2474
-
2475
- function _setPrototypeOf$a(o, p) { _setPrototypeOf$a = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$a(o, p); }
2476
-
2477
- 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); }; }
2478
-
2479
- function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
2480
-
2481
- function _assertThisInitialized$a(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2482
-
2483
- 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; } }
2484
-
2485
- function _getPrototypeOf$a(o) { _getPrototypeOf$a = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$a(o); }
2486
-
2487
- 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; }
2488
1849
  var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
2489
- _inherits$a(Hour1to12Parser, _Parser);
2490
-
2491
- var _super = _createSuper$a(Hour1to12Parser);
2492
-
1850
+ _inherits(Hour1to12Parser, _Parser);
1851
+ var _super = _createSuper(Hour1to12Parser);
2493
1852
  function Hour1to12Parser() {
2494
1853
  var _this;
2495
-
2496
- _classCallCheck$a(this, Hour1to12Parser);
2497
-
1854
+ _classCallCheck(this, Hour1to12Parser);
2498
1855
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2499
1856
  args[_key] = arguments[_key];
2500
1857
  }
2501
-
2502
1858
  _this = _super.call.apply(_super, [this].concat(args));
2503
-
2504
- _defineProperty$a(_assertThisInitialized$a(_this), "priority", 70);
2505
-
2506
- _defineProperty$a(_assertThisInitialized$a(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
2507
-
1859
+ _defineProperty(_assertThisInitialized(_this), "priority", 70);
1860
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
2508
1861
  return _this;
2509
1862
  }
2510
-
2511
- _createClass$a(Hour1to12Parser, [{
1863
+ _createClass(Hour1to12Parser, [{
2512
1864
  key: "parse",
2513
1865
  value: function parse(dateString, token, match) {
2514
1866
  switch (token) {
2515
1867
  case 'h':
2516
1868
  return parseNumericPattern(numericPatterns.hour12h, dateString);
2517
-
2518
1869
  case 'ho':
2519
1870
  return match.ordinalNumber(dateString, {
2520
1871
  unit: 'hour'
2521
1872
  });
2522
-
2523
1873
  default:
2524
1874
  return parseNDigits(token.length, dateString);
2525
1875
  }
@@ -2533,7 +1883,6 @@ var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
2533
1883
  key: "set",
2534
1884
  value: function set(date, _flags, value) {
2535
1885
  var isPM = date.getUTCHours() >= 12;
2536
-
2537
1886
  if (isPM && value < 12) {
2538
1887
  date.setUTCHours(value + 12, 0, 0, 0);
2539
1888
  } else if (!isPM && value === 12) {
@@ -2541,72 +1890,36 @@ var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
2541
1890
  } else {
2542
1891
  date.setUTCHours(value, 0, 0, 0);
2543
1892
  }
2544
-
2545
1893
  return date;
2546
1894
  }
2547
1895
  }]);
2548
-
2549
1896
  return Hour1to12Parser;
2550
1897
  }(Parser);
2551
1898
 
2552
- 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); }
2553
-
2554
- function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2555
-
2556
- 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); } }
2557
-
2558
- function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }
2559
-
2560
- 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); }
2561
-
2562
- function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
2563
-
2564
- 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); }; }
2565
-
2566
- function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
2567
-
2568
- function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2569
-
2570
- 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; } }
2571
-
2572
- function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
2573
-
2574
- 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; }
2575
1899
  var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
2576
- _inherits$9(Hour0to23Parser, _Parser);
2577
-
2578
- var _super = _createSuper$9(Hour0to23Parser);
2579
-
1900
+ _inherits(Hour0to23Parser, _Parser);
1901
+ var _super = _createSuper(Hour0to23Parser);
2580
1902
  function Hour0to23Parser() {
2581
1903
  var _this;
2582
-
2583
- _classCallCheck$9(this, Hour0to23Parser);
2584
-
1904
+ _classCallCheck(this, Hour0to23Parser);
2585
1905
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2586
1906
  args[_key] = arguments[_key];
2587
1907
  }
2588
-
2589
1908
  _this = _super.call.apply(_super, [this].concat(args));
2590
-
2591
- _defineProperty$9(_assertThisInitialized$9(_this), "priority", 70);
2592
-
2593
- _defineProperty$9(_assertThisInitialized$9(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
2594
-
1909
+ _defineProperty(_assertThisInitialized(_this), "priority", 70);
1910
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
2595
1911
  return _this;
2596
1912
  }
2597
-
2598
- _createClass$9(Hour0to23Parser, [{
1913
+ _createClass(Hour0to23Parser, [{
2599
1914
  key: "parse",
2600
1915
  value: function parse(dateString, token, match) {
2601
1916
  switch (token) {
2602
1917
  case 'H':
2603
1918
  return parseNumericPattern(numericPatterns.hour23h, dateString);
2604
-
2605
1919
  case 'Ho':
2606
1920
  return match.ordinalNumber(dateString, {
2607
1921
  unit: 'hour'
2608
1922
  });
2609
-
2610
1923
  default:
2611
1924
  return parseNDigits(token.length, dateString);
2612
1925
  }
@@ -2617,74 +1930,39 @@ var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
2617
1930
  return value >= 0 && value <= 23;
2618
1931
  }
2619
1932
  }, {
2620
- key: "set",
2621
- value: function set(date, _flags, value) {
2622
- date.setUTCHours(value, 0, 0, 0);
2623
- return date;
2624
- }
2625
- }]);
2626
-
2627
- return Hour0to23Parser;
2628
- }(Parser);
2629
-
2630
- 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); }
2631
-
2632
- function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2633
-
2634
- 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); } }
2635
-
2636
- function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }
2637
-
2638
- 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); }
2639
-
2640
- function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
2641
-
2642
- 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); }; }
2643
-
2644
- function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
2645
-
2646
- function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2647
-
2648
- 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; } }
2649
-
2650
- function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
1933
+ key: "set",
1934
+ value: function set(date, _flags, value) {
1935
+ date.setUTCHours(value, 0, 0, 0);
1936
+ return date;
1937
+ }
1938
+ }]);
1939
+ return Hour0to23Parser;
1940
+ }(Parser);
2651
1941
 
2652
- 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; }
2653
1942
  var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
2654
- _inherits$8(Hour0To11Parser, _Parser);
2655
-
2656
- var _super = _createSuper$8(Hour0To11Parser);
2657
-
1943
+ _inherits(Hour0To11Parser, _Parser);
1944
+ var _super = _createSuper(Hour0To11Parser);
2658
1945
  function Hour0To11Parser() {
2659
1946
  var _this;
2660
-
2661
- _classCallCheck$8(this, Hour0To11Parser);
2662
-
1947
+ _classCallCheck(this, Hour0To11Parser);
2663
1948
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2664
1949
  args[_key] = arguments[_key];
2665
1950
  }
2666
-
2667
1951
  _this = _super.call.apply(_super, [this].concat(args));
2668
-
2669
- _defineProperty$8(_assertThisInitialized$8(_this), "priority", 70);
2670
-
2671
- _defineProperty$8(_assertThisInitialized$8(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
2672
-
1952
+ _defineProperty(_assertThisInitialized(_this), "priority", 70);
1953
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
2673
1954
  return _this;
2674
1955
  }
2675
-
2676
- _createClass$8(Hour0To11Parser, [{
1956
+ _createClass(Hour0To11Parser, [{
2677
1957
  key: "parse",
2678
1958
  value: function parse(dateString, token, match) {
2679
1959
  switch (token) {
2680
1960
  case 'K':
2681
1961
  return parseNumericPattern(numericPatterns.hour11h, dateString);
2682
-
2683
1962
  case 'Ko':
2684
1963
  return match.ordinalNumber(dateString, {
2685
1964
  unit: 'hour'
2686
1965
  });
2687
-
2688
1966
  default:
2689
1967
  return parseNDigits(token.length, dateString);
2690
1968
  }
@@ -2698,78 +1976,41 @@ var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
2698
1976
  key: "set",
2699
1977
  value: function set(date, _flags, value) {
2700
1978
  var isPM = date.getUTCHours() >= 12;
2701
-
2702
1979
  if (isPM && value < 12) {
2703
1980
  date.setUTCHours(value + 12, 0, 0, 0);
2704
1981
  } else {
2705
1982
  date.setUTCHours(value, 0, 0, 0);
2706
1983
  }
2707
-
2708
1984
  return date;
2709
1985
  }
2710
1986
  }]);
2711
-
2712
1987
  return Hour0To11Parser;
2713
1988
  }(Parser);
2714
1989
 
2715
- 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); }
2716
-
2717
- function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2718
-
2719
- 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); } }
2720
-
2721
- function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }
2722
-
2723
- 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); }
2724
-
2725
- function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
2726
-
2727
- 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); }; }
2728
-
2729
- function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
2730
-
2731
- function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2732
-
2733
- 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; } }
2734
-
2735
- function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
2736
-
2737
- 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; }
2738
1990
  var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
2739
- _inherits$7(Hour1To24Parser, _Parser);
2740
-
2741
- var _super = _createSuper$7(Hour1To24Parser);
2742
-
1991
+ _inherits(Hour1To24Parser, _Parser);
1992
+ var _super = _createSuper(Hour1To24Parser);
2743
1993
  function Hour1To24Parser() {
2744
1994
  var _this;
2745
-
2746
- _classCallCheck$7(this, Hour1To24Parser);
2747
-
1995
+ _classCallCheck(this, Hour1To24Parser);
2748
1996
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2749
1997
  args[_key] = arguments[_key];
2750
1998
  }
2751
-
2752
1999
  _this = _super.call.apply(_super, [this].concat(args));
2753
-
2754
- _defineProperty$7(_assertThisInitialized$7(_this), "priority", 70);
2755
-
2756
- _defineProperty$7(_assertThisInitialized$7(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
2757
-
2000
+ _defineProperty(_assertThisInitialized(_this), "priority", 70);
2001
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
2758
2002
  return _this;
2759
2003
  }
2760
-
2761
- _createClass$7(Hour1To24Parser, [{
2004
+ _createClass(Hour1To24Parser, [{
2762
2005
  key: "parse",
2763
2006
  value: function parse(dateString, token, match) {
2764
2007
  switch (token) {
2765
2008
  case 'k':
2766
2009
  return parseNumericPattern(numericPatterns.hour24h, dateString);
2767
-
2768
2010
  case 'ko':
2769
2011
  return match.ordinalNumber(dateString, {
2770
2012
  unit: 'hour'
2771
2013
  });
2772
-
2773
2014
  default:
2774
2015
  return parseNDigits(token.length, dateString);
2775
2016
  }
@@ -2787,68 +2028,33 @@ var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
2787
2028
  return date;
2788
2029
  }
2789
2030
  }]);
2790
-
2791
2031
  return Hour1To24Parser;
2792
2032
  }(Parser);
2793
2033
 
2794
- 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); }
2795
-
2796
- function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2797
-
2798
- 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); } }
2799
-
2800
- function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }
2801
-
2802
- 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); }
2803
-
2804
- function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
2805
-
2806
- 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); }; }
2807
-
2808
- function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
2809
-
2810
- function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2811
-
2812
- 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; } }
2813
-
2814
- function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
2815
-
2816
- 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; }
2817
2034
  var MinuteParser = /*#__PURE__*/function (_Parser) {
2818
- _inherits$6(MinuteParser, _Parser);
2819
-
2820
- var _super = _createSuper$6(MinuteParser);
2821
-
2035
+ _inherits(MinuteParser, _Parser);
2036
+ var _super = _createSuper(MinuteParser);
2822
2037
  function MinuteParser() {
2823
2038
  var _this;
2824
-
2825
- _classCallCheck$6(this, MinuteParser);
2826
-
2039
+ _classCallCheck(this, MinuteParser);
2827
2040
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2828
2041
  args[_key] = arguments[_key];
2829
2042
  }
2830
-
2831
2043
  _this = _super.call.apply(_super, [this].concat(args));
2832
-
2833
- _defineProperty$6(_assertThisInitialized$6(_this), "priority", 60);
2834
-
2835
- _defineProperty$6(_assertThisInitialized$6(_this), "incompatibleTokens", ['t', 'T']);
2836
-
2044
+ _defineProperty(_assertThisInitialized(_this), "priority", 60);
2045
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']);
2837
2046
  return _this;
2838
2047
  }
2839
-
2840
- _createClass$6(MinuteParser, [{
2048
+ _createClass(MinuteParser, [{
2841
2049
  key: "parse",
2842
2050
  value: function parse(dateString, token, match) {
2843
2051
  switch (token) {
2844
2052
  case 'm':
2845
2053
  return parseNumericPattern(numericPatterns.minute, dateString);
2846
-
2847
2054
  case 'mo':
2848
2055
  return match.ordinalNumber(dateString, {
2849
2056
  unit: 'minute'
2850
2057
  });
2851
-
2852
2058
  default:
2853
2059
  return parseNDigits(token.length, dateString);
2854
2060
  }
@@ -2865,68 +2071,33 @@ var MinuteParser = /*#__PURE__*/function (_Parser) {
2865
2071
  return date;
2866
2072
  }
2867
2073
  }]);
2868
-
2869
2074
  return MinuteParser;
2870
2075
  }(Parser);
2871
2076
 
2872
- 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); }
2873
-
2874
- function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2875
-
2876
- 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); } }
2877
-
2878
- function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
2879
-
2880
- 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); }
2881
-
2882
- function _setPrototypeOf$5(o, p) { _setPrototypeOf$5 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$5(o, p); }
2883
-
2884
- 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); }; }
2885
-
2886
- function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
2887
-
2888
- function _assertThisInitialized$5(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2889
-
2890
- 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; } }
2891
-
2892
- function _getPrototypeOf$5(o) { _getPrototypeOf$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$5(o); }
2893
-
2894
- 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; }
2895
2077
  var SecondParser = /*#__PURE__*/function (_Parser) {
2896
- _inherits$5(SecondParser, _Parser);
2897
-
2898
- var _super = _createSuper$5(SecondParser);
2899
-
2078
+ _inherits(SecondParser, _Parser);
2079
+ var _super = _createSuper(SecondParser);
2900
2080
  function SecondParser() {
2901
2081
  var _this;
2902
-
2903
- _classCallCheck$5(this, SecondParser);
2904
-
2082
+ _classCallCheck(this, SecondParser);
2905
2083
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2906
2084
  args[_key] = arguments[_key];
2907
2085
  }
2908
-
2909
2086
  _this = _super.call.apply(_super, [this].concat(args));
2910
-
2911
- _defineProperty$5(_assertThisInitialized$5(_this), "priority", 50);
2912
-
2913
- _defineProperty$5(_assertThisInitialized$5(_this), "incompatibleTokens", ['t', 'T']);
2914
-
2087
+ _defineProperty(_assertThisInitialized(_this), "priority", 50);
2088
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']);
2915
2089
  return _this;
2916
2090
  }
2917
-
2918
- _createClass$5(SecondParser, [{
2091
+ _createClass(SecondParser, [{
2919
2092
  key: "parse",
2920
2093
  value: function parse(dateString, token, match) {
2921
2094
  switch (token) {
2922
2095
  case 's':
2923
2096
  return parseNumericPattern(numericPatterns.second, dateString);
2924
-
2925
2097
  case 'so':
2926
2098
  return match.ordinalNumber(dateString, {
2927
2099
  unit: 'second'
2928
2100
  });
2929
-
2930
2101
  default:
2931
2102
  return parseNDigits(token.length, dateString);
2932
2103
  }
@@ -2943,63 +2114,29 @@ var SecondParser = /*#__PURE__*/function (_Parser) {
2943
2114
  return date;
2944
2115
  }
2945
2116
  }]);
2946
-
2947
2117
  return SecondParser;
2948
2118
  }(Parser);
2949
2119
 
2950
- 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); }
2951
-
2952
- function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2953
-
2954
- 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); } }
2955
-
2956
- function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
2957
-
2958
- 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); }
2959
-
2960
- function _setPrototypeOf$4(o, p) { _setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$4(o, p); }
2961
-
2962
- 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); }; }
2963
-
2964
- function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
2965
-
2966
- function _assertThisInitialized$4(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2967
-
2968
- 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; } }
2969
-
2970
- function _getPrototypeOf$4(o) { _getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$4(o); }
2971
-
2972
- 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; }
2973
2120
  var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
2974
- _inherits$4(FractionOfSecondParser, _Parser);
2975
-
2976
- var _super = _createSuper$4(FractionOfSecondParser);
2977
-
2121
+ _inherits(FractionOfSecondParser, _Parser);
2122
+ var _super = _createSuper(FractionOfSecondParser);
2978
2123
  function FractionOfSecondParser() {
2979
2124
  var _this;
2980
-
2981
- _classCallCheck$4(this, FractionOfSecondParser);
2982
-
2125
+ _classCallCheck(this, FractionOfSecondParser);
2983
2126
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2984
2127
  args[_key] = arguments[_key];
2985
2128
  }
2986
-
2987
2129
  _this = _super.call.apply(_super, [this].concat(args));
2988
-
2989
- _defineProperty$4(_assertThisInitialized$4(_this), "priority", 30);
2990
-
2991
- _defineProperty$4(_assertThisInitialized$4(_this), "incompatibleTokens", ['t', 'T']);
2992
-
2130
+ _defineProperty(_assertThisInitialized(_this), "priority", 30);
2131
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']);
2993
2132
  return _this;
2994
2133
  }
2995
-
2996
- _createClass$4(FractionOfSecondParser, [{
2134
+ _createClass(FractionOfSecondParser, [{
2997
2135
  key: "parse",
2998
2136
  value: function parse(dateString, token) {
2999
2137
  var valueCallback = function valueCallback(value) {
3000
2138
  return Math.floor(value * Math.pow(10, -token.length + 3));
3001
2139
  };
3002
-
3003
2140
  return mapValue(parseNDigits(token.length, dateString), valueCallback);
3004
2141
  }
3005
2142
  }, {
@@ -3009,73 +2146,35 @@ var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
3009
2146
  return date;
3010
2147
  }
3011
2148
  }]);
3012
-
3013
2149
  return FractionOfSecondParser;
3014
2150
  }(Parser);
3015
2151
 
3016
- 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); }
3017
-
3018
- function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3019
-
3020
- 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); } }
3021
-
3022
- function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
3023
-
3024
- 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); }
3025
-
3026
- function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
3027
-
3028
- 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); }; }
3029
-
3030
- function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
3031
-
3032
- function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3033
-
3034
- 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; } }
3035
-
3036
- function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
3037
-
3038
- 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; }
3039
-
3040
2152
  var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
3041
- _inherits$3(ISOTimezoneWithZParser, _Parser);
3042
-
3043
- var _super = _createSuper$3(ISOTimezoneWithZParser);
3044
-
2153
+ _inherits(ISOTimezoneWithZParser, _Parser);
2154
+ var _super = _createSuper(ISOTimezoneWithZParser);
3045
2155
  function ISOTimezoneWithZParser() {
3046
2156
  var _this;
3047
-
3048
- _classCallCheck$3(this, ISOTimezoneWithZParser);
3049
-
2157
+ _classCallCheck(this, ISOTimezoneWithZParser);
3050
2158
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3051
2159
  args[_key] = arguments[_key];
3052
2160
  }
3053
-
3054
2161
  _this = _super.call.apply(_super, [this].concat(args));
3055
-
3056
- _defineProperty$3(_assertThisInitialized$3(_this), "priority", 10);
3057
-
3058
- _defineProperty$3(_assertThisInitialized$3(_this), "incompatibleTokens", ['t', 'T', 'x']);
3059
-
2162
+ _defineProperty(_assertThisInitialized(_this), "priority", 10);
2163
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'x']);
3060
2164
  return _this;
3061
2165
  }
3062
-
3063
- _createClass$3(ISOTimezoneWithZParser, [{
2166
+ _createClass(ISOTimezoneWithZParser, [{
3064
2167
  key: "parse",
3065
2168
  value: function parse(dateString, token) {
3066
2169
  switch (token) {
3067
2170
  case 'X':
3068
2171
  return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
3069
-
3070
2172
  case 'XX':
3071
2173
  return parseTimezonePattern(timezonePatterns.basic, dateString);
3072
-
3073
2174
  case 'XXXX':
3074
2175
  return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
3075
-
3076
2176
  case 'XXXXX':
3077
2177
  return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
3078
-
3079
2178
  case 'XXX':
3080
2179
  default:
3081
2180
  return parseTimezonePattern(timezonePatterns.extended, dateString);
@@ -3087,77 +2186,38 @@ var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
3087
2186
  if (flags.timestampIsSet) {
3088
2187
  return date;
3089
2188
  }
3090
-
3091
2189
  return new Date(date.getTime() - value);
3092
2190
  }
3093
2191
  }]);
3094
-
3095
2192
  return ISOTimezoneWithZParser;
3096
2193
  }(Parser);
3097
2194
 
3098
- 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); }
3099
-
3100
- function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3101
-
3102
- 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); } }
3103
-
3104
- function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
3105
-
3106
- 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); }
3107
-
3108
- function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
3109
-
3110
- 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); }; }
3111
-
3112
- function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
3113
-
3114
- function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3115
-
3116
- 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; } }
3117
-
3118
- function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
3119
-
3120
- 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; }
3121
-
3122
2195
  var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
3123
- _inherits$2(ISOTimezoneParser, _Parser);
3124
-
3125
- var _super = _createSuper$2(ISOTimezoneParser);
3126
-
2196
+ _inherits(ISOTimezoneParser, _Parser);
2197
+ var _super = _createSuper(ISOTimezoneParser);
3127
2198
  function ISOTimezoneParser() {
3128
2199
  var _this;
3129
-
3130
- _classCallCheck$2(this, ISOTimezoneParser);
3131
-
2200
+ _classCallCheck(this, ISOTimezoneParser);
3132
2201
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3133
2202
  args[_key] = arguments[_key];
3134
2203
  }
3135
-
3136
2204
  _this = _super.call.apply(_super, [this].concat(args));
3137
-
3138
- _defineProperty$2(_assertThisInitialized$2(_this), "priority", 10);
3139
-
3140
- _defineProperty$2(_assertThisInitialized$2(_this), "incompatibleTokens", ['t', 'T', 'X']);
3141
-
2205
+ _defineProperty(_assertThisInitialized(_this), "priority", 10);
2206
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'X']);
3142
2207
  return _this;
3143
2208
  }
3144
-
3145
- _createClass$2(ISOTimezoneParser, [{
2209
+ _createClass(ISOTimezoneParser, [{
3146
2210
  key: "parse",
3147
2211
  value: function parse(dateString, token) {
3148
2212
  switch (token) {
3149
2213
  case 'x':
3150
2214
  return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
3151
-
3152
2215
  case 'xx':
3153
2216
  return parseTimezonePattern(timezonePatterns.basic, dateString);
3154
-
3155
2217
  case 'xxxx':
3156
2218
  return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
3157
-
3158
2219
  case 'xxxxx':
3159
2220
  return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
3160
-
3161
2221
  case 'xxx':
3162
2222
  default:
3163
2223
  return parseTimezonePattern(timezonePatterns.extended, dateString);
@@ -3169,61 +2229,27 @@ var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
3169
2229
  if (flags.timestampIsSet) {
3170
2230
  return date;
3171
2231
  }
3172
-
3173
2232
  return new Date(date.getTime() - value);
3174
2233
  }
3175
2234
  }]);
3176
-
3177
2235
  return ISOTimezoneParser;
3178
2236
  }(Parser);
3179
2237
 
3180
- 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); }
3181
-
3182
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3183
-
3184
- 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); } }
3185
-
3186
- function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
3187
-
3188
- 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); }
3189
-
3190
- function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
3191
-
3192
- 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); }; }
3193
-
3194
- function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
3195
-
3196
- function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3197
-
3198
- 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; } }
3199
-
3200
- function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
3201
-
3202
- 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; }
3203
2238
  var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
3204
- _inherits$1(TimestampSecondsParser, _Parser);
3205
-
3206
- var _super = _createSuper$1(TimestampSecondsParser);
3207
-
2239
+ _inherits(TimestampSecondsParser, _Parser);
2240
+ var _super = _createSuper(TimestampSecondsParser);
3208
2241
  function TimestampSecondsParser() {
3209
2242
  var _this;
3210
-
3211
- _classCallCheck$1(this, TimestampSecondsParser);
3212
-
2243
+ _classCallCheck(this, TimestampSecondsParser);
3213
2244
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3214
2245
  args[_key] = arguments[_key];
3215
2246
  }
3216
-
3217
2247
  _this = _super.call.apply(_super, [this].concat(args));
3218
-
3219
- _defineProperty$1(_assertThisInitialized$1(_this), "priority", 40);
3220
-
3221
- _defineProperty$1(_assertThisInitialized$1(_this), "incompatibleTokens", '*');
3222
-
2248
+ _defineProperty(_assertThisInitialized(_this), "priority", 40);
2249
+ _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*');
3223
2250
  return _this;
3224
2251
  }
3225
-
3226
- _createClass$1(TimestampSecondsParser, [{
2252
+ _createClass(TimestampSecondsParser, [{
3227
2253
  key: "parse",
3228
2254
  value: function parse(dateString) {
3229
2255
  return parseAnyDigitsSigned(dateString);
@@ -3236,56 +2262,23 @@ var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
3236
2262
  }];
3237
2263
  }
3238
2264
  }]);
3239
-
3240
2265
  return TimestampSecondsParser;
3241
2266
  }(Parser);
3242
2267
 
3243
- 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); }
3244
-
3245
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3246
-
3247
- 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); } }
3248
-
3249
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3250
-
3251
- 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); }
3252
-
3253
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3254
-
3255
- 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); }; }
3256
-
3257
- function _possibleConstructorReturn(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3258
-
3259
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3260
-
3261
- 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; } }
3262
-
3263
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3264
-
3265
- 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; }
3266
2268
  var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
3267
2269
  _inherits(TimestampMillisecondsParser, _Parser);
3268
-
3269
2270
  var _super = _createSuper(TimestampMillisecondsParser);
3270
-
3271
2271
  function TimestampMillisecondsParser() {
3272
2272
  var _this;
3273
-
3274
2273
  _classCallCheck(this, TimestampMillisecondsParser);
3275
-
3276
2274
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3277
2275
  args[_key] = arguments[_key];
3278
2276
  }
3279
-
3280
2277
  _this = _super.call.apply(_super, [this].concat(args));
3281
-
3282
2278
  _defineProperty(_assertThisInitialized(_this), "priority", 20);
3283
-
3284
2279
  _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*');
3285
-
3286
2280
  return _this;
3287
2281
  }
3288
-
3289
2282
  _createClass(TimestampMillisecondsParser, [{
3290
2283
  key: "parse",
3291
2284
  value: function parse(dateString) {
@@ -3299,7 +2292,6 @@ var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
3299
2292
  }];
3300
2293
  }
3301
2294
  }]);
3302
-
3303
2295
  return TimestampMillisecondsParser;
3304
2296
  }(Parser);
3305
2297
 
@@ -3346,7 +2338,6 @@ var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
3346
2338
  * `Y` is supposed to be used in conjunction with `w` and `e`
3347
2339
  * for week-numbering date specific to the locale.
3348
2340
  */
3349
-
3350
2341
  var parsers = {
3351
2342
  G: new EraParser(),
3352
2343
  y: new YearParser(),
@@ -3381,13 +2372,6 @@ var parsers = {
3381
2372
  T: new TimestampMillisecondsParser()
3382
2373
  };
3383
2374
 
3384
- 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); }
3385
-
3386
- 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; } } }; }
3387
-
3388
- 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); }
3389
-
3390
- 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; }
3391
2375
  // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
3392
2376
  // (one of the certain letters followed by `o`)
3393
2377
  // - (\w)\1* matches any sequences of the same letter
@@ -3398,15 +2382,16 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
3398
2382
  // If there is no matching single quote
3399
2383
  // then the sequence will continue until the end of the string.
3400
2384
  // - . matches any single character unmatched by previous parts of the RegExps
2385
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
3401
2386
 
3402
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
2387
+ // This RegExp catches symbols escaped by quotes, and also
3403
2388
  // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
3404
-
3405
2389
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
3406
2390
  var escapedStringRegExp = /^'([^]*?)'?$/;
3407
2391
  var doubleQuoteRegExp = /''/g;
3408
2392
  var notWhitespaceRegExp = /\S/;
3409
2393
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2394
+
3410
2395
  /**
3411
2396
  * @name parse
3412
2397
  * @category Common Helpers
@@ -3708,32 +2693,28 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3708
2693
  * })
3709
2694
  * //=> Sun Feb 28 2010 00:00:00
3710
2695
  */
3711
-
3712
2696
  function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) {
3713
2697
  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;
3714
-
3715
2698
  index.requiredArgs(3, arguments);
3716
2699
  var dateString = String(dirtyDateString);
3717
2700
  var formatString = String(dirtyFormatString);
3718
2701
  var defaultOptions = index.getDefaultOptions();
3719
2702
  var locale = (_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 : index.locale;
3720
-
3721
2703
  if (!locale.match) {
3722
2704
  throw new RangeError('locale must contain match property');
3723
2705
  }
2706
+ var firstWeekContainsDate = index.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);
3724
2707
 
3725
- var firstWeekContainsDate = index.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
3726
-
2708
+ // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
3727
2709
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
3728
2710
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
3729
2711
  }
2712
+ var weekStartsOn = index.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);
3730
2713
 
3731
- var weekStartsOn = index.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
3732
-
2714
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
3733
2715
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
3734
2716
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
3735
2717
  }
3736
-
3737
2718
  if (formatString === '') {
3738
2719
  if (dateString === '') {
3739
2720
  return index.toDate(dirtyReferenceDate);
@@ -3741,86 +2722,73 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
3741
2722
  return new Date(NaN);
3742
2723
  }
3743
2724
  }
3744
-
3745
2725
  var subFnOptions = {
3746
2726
  firstWeekContainsDate: firstWeekContainsDate,
3747
2727
  weekStartsOn: weekStartsOn,
3748
2728
  locale: locale
3749
- }; // If timezone isn't specified, it will be set to the system timezone
2729
+ };
3750
2730
 
2731
+ // If timezone isn't specified, it will be set to the system timezone
3751
2732
  var setters = [new DateToSystemTimezoneSetter()];
3752
2733
  var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
3753
2734
  var firstCharacter = substring[0];
3754
-
3755
2735
  if (firstCharacter in index.longFormatters) {
3756
2736
  var longFormatter = index.longFormatters[firstCharacter];
3757
2737
  return longFormatter(substring, locale.formatLong);
3758
2738
  }
3759
-
3760
2739
  return substring;
3761
2740
  }).join('').match(formattingTokensRegExp);
3762
2741
  var usedTokens = [];
3763
-
3764
2742
  var _iterator = _createForOfIteratorHelper(tokens),
3765
- _step;
3766
-
2743
+ _step;
3767
2744
  try {
3768
2745
  var _loop = function _loop() {
3769
2746
  var token = _step.value;
3770
-
3771
2747
  if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && index.isProtectedWeekYearToken(token)) {
3772
2748
  index.throwProtectedError(token, formatString, dirtyDateString);
3773
2749
  }
3774
-
3775
2750
  if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && index.isProtectedDayOfYearToken(token)) {
3776
2751
  index.throwProtectedError(token, formatString, dirtyDateString);
3777
2752
  }
3778
-
3779
2753
  var firstCharacter = token[0];
3780
2754
  var parser = parsers[firstCharacter];
3781
-
3782
2755
  if (parser) {
3783
2756
  var incompatibleTokens = parser.incompatibleTokens;
3784
-
3785
2757
  if (Array.isArray(incompatibleTokens)) {
3786
2758
  var incompatibleToken = usedTokens.find(function (usedToken) {
3787
2759
  return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;
3788
2760
  });
3789
-
3790
2761
  if (incompatibleToken) {
3791
2762
  throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
3792
2763
  }
3793
2764
  } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) {
3794
2765
  throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
3795
2766
  }
3796
-
3797
2767
  usedTokens.push({
3798
2768
  token: firstCharacter,
3799
2769
  fullToken: token
3800
2770
  });
3801
2771
  var parseResult = parser.run(dateString, token, locale.match, subFnOptions);
3802
-
3803
2772
  if (!parseResult) {
3804
2773
  return {
3805
2774
  v: new Date(NaN)
3806
2775
  };
3807
2776
  }
3808
-
3809
2777
  setters.push(parseResult.setter);
3810
2778
  dateString = parseResult.rest;
3811
2779
  } else {
3812
2780
  if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
3813
2781
  throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
3814
- } // Replace two single quote characters with one single quote character
3815
-
2782
+ }
3816
2783
 
2784
+ // Replace two single quote characters with one single quote character
3817
2785
  if (token === "''") {
3818
2786
  token = "'";
3819
2787
  } else if (firstCharacter === "'") {
3820
2788
  token = cleanEscapedString(token);
3821
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
3822
-
2789
+ }
3823
2790
 
2791
+ // Cut token from string, or, if string doesn't match the token, return Invalid Date
3824
2792
  if (dateString.indexOf(token) === 0) {
3825
2793
  dateString = dateString.slice(token.length);
3826
2794
  } else {
@@ -3830,23 +2798,20 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
3830
2798
  }
3831
2799
  }
3832
2800
  };
3833
-
3834
2801
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
3835
2802
  var _ret = _loop();
2803
+ if (index._typeof(_ret) === "object") return _ret.v;
2804
+ }
3836
2805
 
3837
- if (_typeof(_ret) === "object") return _ret.v;
3838
- } // Check if the remaining input contains something other than whitespace
3839
-
2806
+ // Check if the remaining input contains something other than whitespace
3840
2807
  } catch (err) {
3841
2808
  _iterator.e(err);
3842
2809
  } finally {
3843
2810
  _iterator.f();
3844
2811
  }
3845
-
3846
2812
  if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
3847
2813
  return new Date(NaN);
3848
2814
  }
3849
-
3850
2815
  var uniquePrioritySetters = setters.map(function (setter) {
3851
2816
  return setter.priority;
3852
2817
  }).sort(function (a, b) {
@@ -3863,31 +2828,27 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
3863
2828
  return setterArray[0];
3864
2829
  });
3865
2830
  var date = index.toDate(dirtyReferenceDate);
3866
-
3867
2831
  if (isNaN(date.getTime())) {
3868
2832
  return new Date(NaN);
3869
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
3870
-
2833
+ }
3871
2834
 
2835
+ // Convert the date in system timezone to the same date in UTC+00:00 timezone.
3872
2836
  var utcDate = index.subMilliseconds(date, index.getTimezoneOffsetInMilliseconds(date));
3873
2837
  var flags = {};
3874
-
3875
2838
  var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters),
3876
- _step2;
3877
-
2839
+ _step2;
3878
2840
  try {
3879
2841
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3880
2842
  var setter = _step2.value;
3881
-
3882
2843
  if (!setter.validate(utcDate, subFnOptions)) {
3883
2844
  return new Date(NaN);
3884
2845
  }
3885
-
3886
- var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags)
3887
-
2846
+ var result = setter.set(utcDate, flags, subFnOptions);
2847
+ // Result is tuple (date, flags)
3888
2848
  if (Array.isArray(result)) {
3889
2849
  utcDate = result[0];
3890
- assign(flags, result[1]); // Result is date
2850
+ assign(flags, result[1]);
2851
+ // Result is date
3891
2852
  } else {
3892
2853
  utcDate = result;
3893
2854
  }
@@ -3897,15 +2858,13 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
3897
2858
  } finally {
3898
2859
  _iterator2.f();
3899
2860
  }
3900
-
3901
2861
  return utcDate;
3902
2862
  }
3903
-
3904
2863
  function cleanEscapedString(input) {
3905
2864
  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
3906
2865
  }
3907
2866
 
3908
- const datepickerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.absolute{position:absolute!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}";
2867
+ const datepickerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.absolute{position:absolute!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}.hover\\:text-negative:hover{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.-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}.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}";
3909
2868
 
3910
2869
  const Datepicker = class {
3911
2870
  constructor(hostRef) {