chrono-node 2.4.2 → 2.5.1

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 (870) hide show
  1. package/.idea/workspace.xml +49 -59
  2. package/README.md +3 -1
  3. package/dist/calculation/mergingCalculation.js +4 -2
  4. package/dist/calculation/mergingCalculation.js.map +1 -1
  5. package/dist/common/casualReferences.d.ts +1 -0
  6. package/dist/common/casualReferences.js +23 -2
  7. package/dist/common/casualReferences.js.map +1 -1
  8. package/dist/esm/calculation/mergingCalculation.d.ts +3 -0
  9. package/dist/esm/calculation/mergingCalculation.js +69 -0
  10. package/dist/esm/calculation/mergingCalculation.js.map +1 -0
  11. package/dist/esm/calculation/years.d.ts +2 -0
  12. package/dist/esm/calculation/years.js +29 -0
  13. package/dist/esm/calculation/years.js.map +1 -0
  14. package/dist/esm/chrono.d.ts +41 -0
  15. package/dist/esm/chrono.js +99 -0
  16. package/dist/esm/chrono.js.map +1 -0
  17. package/dist/esm/common/abstractRefiners.d.ts +11 -0
  18. package/dist/esm/common/abstractRefiners.js +37 -0
  19. package/dist/esm/common/abstractRefiners.js.map +1 -0
  20. package/dist/esm/common/calculation/weekdays.d.ts +7 -0
  21. package/dist/esm/common/calculation/weekdays.js +60 -0
  22. package/dist/esm/common/calculation/weekdays.js.map +1 -0
  23. package/dist/esm/common/casualReferences.d.ts +15 -0
  24. package/dist/esm/common/casualReferences.js +111 -0
  25. package/dist/esm/common/casualReferences.js.map +1 -0
  26. package/dist/esm/common/parsers/AbstractParserWithWordBoundary.d.ts +25 -0
  27. package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js +28 -0
  28. package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js.map +1 -0
  29. package/dist/esm/common/parsers/AbstractTimeExpressionParser.d.ts +26 -0
  30. package/dist/esm/common/parsers/AbstractTimeExpressionParser.js +322 -0
  31. package/dist/esm/common/parsers/AbstractTimeExpressionParser.js.map +1 -0
  32. package/dist/esm/common/parsers/ISOFormatParser.d.ts +17 -0
  33. package/dist/esm/common/parsers/ISOFormatParser.js +62 -0
  34. package/dist/esm/common/parsers/ISOFormatParser.js.map +1 -0
  35. package/dist/esm/common/parsers/SlashDateFormatParser.d.ts +9 -0
  36. package/dist/esm/common/parsers/SlashDateFormatParser.js +64 -0
  37. package/dist/esm/common/parsers/SlashDateFormatParser.js.map +1 -0
  38. package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.d.ts +7 -0
  39. package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js +51 -0
  40. package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js.map +1 -0
  41. package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.d.ts +7 -0
  42. package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js +18 -0
  43. package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js.map +1 -0
  44. package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.d.ts +9 -0
  45. package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js +240 -0
  46. package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js.map +1 -0
  47. package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.d.ts +5 -0
  48. package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js +37 -0
  49. package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js.map +1 -0
  50. package/dist/esm/common/refiners/ForwardDateRefiner.d.ts +5 -0
  51. package/dist/esm/common/refiners/ForwardDateRefiner.js +67 -0
  52. package/dist/esm/common/refiners/ForwardDateRefiner.js.map +1 -0
  53. package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.d.ts +6 -0
  54. package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js +20 -0
  55. package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js.map +1 -0
  56. package/dist/esm/common/refiners/OverlapRemovalRefiner.d.ts +5 -0
  57. package/dist/esm/common/refiners/OverlapRemovalRefiner.js +26 -0
  58. package/dist/esm/common/refiners/OverlapRemovalRefiner.js.map +1 -0
  59. package/dist/esm/common/refiners/UnlikelyFormatFilter.d.ts +8 -0
  60. package/dist/esm/common/refiners/UnlikelyFormatFilter.js +47 -0
  61. package/dist/esm/common/refiners/UnlikelyFormatFilter.js.map +1 -0
  62. package/dist/esm/configurations.d.ts +2 -0
  63. package/dist/esm/configurations.js +19 -0
  64. package/dist/esm/configurations.js.map +1 -0
  65. package/dist/esm/debugging.d.ts +11 -0
  66. package/dist/esm/debugging.js +14 -0
  67. package/dist/esm/debugging.js.map +1 -0
  68. package/dist/esm/index.d.ts +53 -0
  69. package/dist/esm/index.js +36 -0
  70. package/dist/esm/index.js.map +1 -0
  71. package/dist/esm/locales/de/constants.d.ts +20 -0
  72. package/dist/esm/locales/de/constants.js +171 -0
  73. package/dist/esm/locales/de/constants.js.map +1 -0
  74. package/dist/esm/locales/de/index.d.ts +8 -0
  75. package/dist/esm/locales/de/index.js +44 -0
  76. package/dist/esm/locales/de/index.js.map +1 -0
  77. package/dist/esm/locales/de/parsers/DECasualDateParser.d.ts +7 -0
  78. package/dist/esm/locales/de/parsers/DECasualDateParser.js +61 -0
  79. package/dist/esm/locales/de/parsers/DECasualDateParser.js.map +1 -0
  80. package/dist/esm/locales/de/parsers/DECasualTimeParser.d.ts +8 -0
  81. package/dist/esm/locales/de/parsers/DECasualTimeParser.js +69 -0
  82. package/dist/esm/locales/de/parsers/DECasualTimeParser.js.map +1 -0
  83. package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.d.ts +7 -0
  84. package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js +47 -0
  85. package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js.map +1 -0
  86. package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.d.ts +7 -0
  87. package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js +112 -0
  88. package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js.map +1 -0
  89. package/dist/esm/locales/de/parsers/DETimeExpressionParser.d.ts +8 -0
  90. package/dist/esm/locales/de/parsers/DETimeExpressionParser.js +16 -0
  91. package/dist/esm/locales/de/parsers/DETimeExpressionParser.js.map +1 -0
  92. package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.d.ts +8 -0
  93. package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js +32 -0
  94. package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js.map +1 -0
  95. package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
  96. package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js +13 -0
  97. package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
  98. package/dist/esm/locales/de/parsers/DEWeekdayParser.d.ts +7 -0
  99. package/dist/esm/locales/de/parsers/DEWeekdayParser.js +40 -0
  100. package/dist/esm/locales/de/parsers/DEWeekdayParser.js.map +1 -0
  101. package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.d.ts +4 -0
  102. package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js +7 -0
  103. package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js.map +1 -0
  104. package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.d.ts +4 -0
  105. package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js +7 -0
  106. package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js.map +1 -0
  107. package/dist/esm/locales/en/constants.d.ts +29 -0
  108. package/dist/esm/locales/en/constants.js +229 -0
  109. package/dist/esm/locales/en/constants.js.map +1 -0
  110. package/dist/esm/locales/en/index.d.ts +9 -0
  111. package/dist/esm/locales/en/index.js +56 -0
  112. package/dist/esm/locales/en/index.js.map +1 -0
  113. package/dist/esm/locales/en/parsers/ENCasualDateParser.d.ts +7 -0
  114. package/dist/esm/locales/en/parsers/ENCasualDateParser.js +40 -0
  115. package/dist/esm/locales/en/parsers/ENCasualDateParser.js.map +1 -0
  116. package/dist/esm/locales/en/parsers/ENCasualTimeParser.d.ts +6 -0
  117. package/dist/esm/locales/en/parsers/ENCasualTimeParser.js +26 -0
  118. package/dist/esm/locales/en/parsers/ENCasualTimeParser.js.map +1 -0
  119. package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.d.ts +10 -0
  120. package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js +32 -0
  121. package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js.map +1 -0
  122. package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.d.ts +7 -0
  123. package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js +54 -0
  124. package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js.map +1 -0
  125. package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.d.ts +6 -0
  126. package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js +56 -0
  127. package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js.map +1 -0
  128. package/dist/esm/locales/en/parsers/ENMonthNameParser.d.ts +6 -0
  129. package/dist/esm/locales/en/parsers/ENMonthNameParser.js +40 -0
  130. package/dist/esm/locales/en/parsers/ENMonthNameParser.js.map +1 -0
  131. package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.d.ts +7 -0
  132. package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js +51 -0
  133. package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js.map +1 -0
  134. package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.d.ts +7 -0
  135. package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js +15 -0
  136. package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js.map +1 -0
  137. package/dist/esm/locales/en/parsers/ENTimeExpressionParser.d.ts +10 -0
  138. package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js +47 -0
  139. package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js.map +1 -0
  140. package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.d.ts +9 -0
  141. package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js +21 -0
  142. package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js.map +1 -0
  143. package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.d.ts +7 -0
  144. package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js +23 -0
  145. package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js.map +1 -0
  146. package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.d.ts +9 -0
  147. package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js +20 -0
  148. package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js.map +1 -0
  149. package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.d.ts +7 -0
  150. package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js +16 -0
  151. package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js.map +1 -0
  152. package/dist/esm/locales/en/parsers/ENWeekdayParser.d.ts +7 -0
  153. package/dist/esm/locales/en/parsers/ENWeekdayParser.js +40 -0
  154. package/dist/esm/locales/en/parsers/ENWeekdayParser.js.map +1 -0
  155. package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.d.ts +4 -0
  156. package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js +7 -0
  157. package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -0
  158. package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.d.ts +4 -0
  159. package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js +7 -0
  160. package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js.map +1 -0
  161. package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.d.ts +7 -0
  162. package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js +33 -0
  163. package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js.map +1 -0
  164. package/dist/esm/locales/es/constants.d.ts +21 -0
  165. package/dist/esm/locales/es/constants.js +159 -0
  166. package/dist/esm/locales/es/constants.js.map +1 -0
  167. package/dist/esm/locales/es/index.d.ts +8 -0
  168. package/dist/esm/locales/es/index.js +38 -0
  169. package/dist/esm/locales/es/index.js.map +1 -0
  170. package/dist/esm/locales/es/parsers/ESCasualDateParser.d.ts +7 -0
  171. package/dist/esm/locales/es/parsers/ESCasualDateParser.js +23 -0
  172. package/dist/esm/locales/es/parsers/ESCasualDateParser.js.map +1 -0
  173. package/dist/esm/locales/es/parsers/ESCasualTimeParser.d.ts +6 -0
  174. package/dist/esm/locales/es/parsers/ESCasualTimeParser.js +40 -0
  175. package/dist/esm/locales/es/parsers/ESCasualTimeParser.js.map +1 -0
  176. package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.d.ts +7 -0
  177. package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js +46 -0
  178. package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js.map +1 -0
  179. package/dist/esm/locales/es/parsers/ESTimeExpressionParser.d.ts +5 -0
  180. package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js +10 -0
  181. package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js.map +1 -0
  182. package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
  183. package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js +13 -0
  184. package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
  185. package/dist/esm/locales/es/parsers/ESWeekdayParser.d.ts +7 -0
  186. package/dist/esm/locales/es/parsers/ESWeekdayParser.js +41 -0
  187. package/dist/esm/locales/es/parsers/ESWeekdayParser.js.map +1 -0
  188. package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.d.ts +4 -0
  189. package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js +7 -0
  190. package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js.map +1 -0
  191. package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.d.ts +4 -0
  192. package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js +7 -0
  193. package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js.map +1 -0
  194. package/dist/esm/locales/fr/constants.d.ts +23 -0
  195. package/dist/esm/locales/fr/constants.js +161 -0
  196. package/dist/esm/locales/fr/constants.js.map +1 -0
  197. package/dist/esm/locales/fr/index.d.ts +8 -0
  198. package/dist/esm/locales/fr/index.js +44 -0
  199. package/dist/esm/locales/fr/index.js.map +1 -0
  200. package/dist/esm/locales/fr/parsers/FRCasualDateParser.d.ts +7 -0
  201. package/dist/esm/locales/fr/parsers/FRCasualDateParser.js +38 -0
  202. package/dist/esm/locales/fr/parsers/FRCasualDateParser.js.map +1 -0
  203. package/dist/esm/locales/fr/parsers/FRCasualTimeParser.d.ts +7 -0
  204. package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js +40 -0
  205. package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js.map +1 -0
  206. package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.d.ts +7 -0
  207. package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js +48 -0
  208. package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js.map +1 -0
  209. package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.d.ts +7 -0
  210. package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js +97 -0
  211. package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js.map +1 -0
  212. package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.d.ts +8 -0
  213. package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js +16 -0
  214. package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js.map +1 -0
  215. package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.d.ts +8 -0
  216. package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js +18 -0
  217. package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js.map +1 -0
  218. package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.d.ts +8 -0
  219. package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js +33 -0
  220. package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js.map +1 -0
  221. package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.d.ts +7 -0
  222. package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js +13 -0
  223. package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js.map +1 -0
  224. package/dist/esm/locales/fr/parsers/FRWeekdayParser.d.ts +7 -0
  225. package/dist/esm/locales/fr/parsers/FRWeekdayParser.js +36 -0
  226. package/dist/esm/locales/fr/parsers/FRWeekdayParser.js.map +1 -0
  227. package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.d.ts +4 -0
  228. package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js +7 -0
  229. package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js.map +1 -0
  230. package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.d.ts +4 -0
  231. package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js +7 -0
  232. package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js.map +1 -0
  233. package/dist/esm/locales/ja/constants.d.ts +1 -0
  234. package/dist/esm/locales/ja/constants.js +12 -0
  235. package/dist/esm/locales/ja/constants.js.map +1 -0
  236. package/dist/esm/locales/ja/index.d.ts +8 -0
  237. package/dist/esm/locales/ja/index.js +24 -0
  238. package/dist/esm/locales/ja/index.js.map +1 -0
  239. package/dist/esm/locales/ja/parsers/JPCasualDateParser.d.ts +5 -0
  240. package/dist/esm/locales/ja/parsers/JPCasualDateParser.js +36 -0
  241. package/dist/esm/locales/ja/parsers/JPCasualDateParser.js.map +1 -0
  242. package/dist/esm/locales/ja/parsers/JPStandardParser.d.ts +5 -0
  243. package/dist/esm/locales/ja/parsers/JPStandardParser.js +47 -0
  244. package/dist/esm/locales/ja/parsers/JPStandardParser.js.map +1 -0
  245. package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.d.ts +4 -0
  246. package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js +7 -0
  247. package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js.map +1 -0
  248. package/dist/esm/locales/nl/constants.d.ts +25 -0
  249. package/dist/esm/locales/nl/constants.js +204 -0
  250. package/dist/esm/locales/nl/constants.js.map +1 -0
  251. package/dist/esm/locales/nl/index.d.ts +8 -0
  252. package/dist/esm/locales/nl/index.js +55 -0
  253. package/dist/esm/locales/nl/index.js.map +1 -0
  254. package/dist/esm/locales/nl/parsers/NLCasualDateParser.d.ts +7 -0
  255. package/dist/esm/locales/nl/parsers/NLCasualDateParser.js +24 -0
  256. package/dist/esm/locales/nl/parsers/NLCasualDateParser.js.map +1 -0
  257. package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.d.ts +7 -0
  258. package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js +48 -0
  259. package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js.map +1 -0
  260. package/dist/esm/locales/nl/parsers/NLCasualTimeParser.d.ts +6 -0
  261. package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js +50 -0
  262. package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js.map +1 -0
  263. package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.d.ts +10 -0
  264. package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js +32 -0
  265. package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js.map +1 -0
  266. package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.d.ts +6 -0
  267. package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js +60 -0
  268. package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js.map +1 -0
  269. package/dist/esm/locales/nl/parsers/NLMonthNameParser.d.ts +6 -0
  270. package/dist/esm/locales/nl/parsers/NLMonthNameParser.js +35 -0
  271. package/dist/esm/locales/nl/parsers/NLMonthNameParser.js.map +1 -0
  272. package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.d.ts +7 -0
  273. package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js +52 -0
  274. package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js.map +1 -0
  275. package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.d.ts +7 -0
  276. package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js +15 -0
  277. package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js.map +1 -0
  278. package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.d.ts +9 -0
  279. package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js +19 -0
  280. package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js.map +1 -0
  281. package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.d.ts +9 -0
  282. package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js +21 -0
  283. package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js.map +1 -0
  284. package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.d.ts +7 -0
  285. package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js +23 -0
  286. package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js.map +1 -0
  287. package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.d.ts +9 -0
  288. package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js +20 -0
  289. package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js.map +1 -0
  290. package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.d.ts +7 -0
  291. package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js +13 -0
  292. package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js.map +1 -0
  293. package/dist/esm/locales/nl/parsers/NLWeekdayParser.d.ts +7 -0
  294. package/dist/esm/locales/nl/parsers/NLWeekdayParser.js +38 -0
  295. package/dist/esm/locales/nl/parsers/NLWeekdayParser.js.map +1 -0
  296. package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.d.ts +4 -0
  297. package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js +7 -0
  298. package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js.map +1 -0
  299. package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.d.ts +4 -0
  300. package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js +7 -0
  301. package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js.map +1 -0
  302. package/dist/esm/locales/pt/constants.d.ts +8 -0
  303. package/dist/esm/locales/pt/constants.js +81 -0
  304. package/dist/esm/locales/pt/constants.js.map +1 -0
  305. package/dist/esm/locales/pt/index.d.ts +8 -0
  306. package/dist/esm/locales/pt/index.js +36 -0
  307. package/dist/esm/locales/pt/index.js.map +1 -0
  308. package/dist/esm/locales/pt/parsers/PTCasualDateParser.d.ts +7 -0
  309. package/dist/esm/locales/pt/parsers/PTCasualDateParser.js +24 -0
  310. package/dist/esm/locales/pt/parsers/PTCasualDateParser.js.map +1 -0
  311. package/dist/esm/locales/pt/parsers/PTCasualTimeParser.d.ts +6 -0
  312. package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js +40 -0
  313. package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js.map +1 -0
  314. package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.d.ts +7 -0
  315. package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js +46 -0
  316. package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js.map +1 -0
  317. package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.d.ts +5 -0
  318. package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js +10 -0
  319. package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js.map +1 -0
  320. package/dist/esm/locales/pt/parsers/PTWeekdayParser.d.ts +7 -0
  321. package/dist/esm/locales/pt/parsers/PTWeekdayParser.js +41 -0
  322. package/dist/esm/locales/pt/parsers/PTWeekdayParser.js.map +1 -0
  323. package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.d.ts +4 -0
  324. package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js +7 -0
  325. package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js.map +1 -0
  326. package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.d.ts +4 -0
  327. package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js +7 -0
  328. package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js.map +1 -0
  329. package/dist/esm/locales/ru/constants.d.ts +33 -0
  330. package/dist/esm/locales/ru/constants.js +314 -0
  331. package/dist/esm/locales/ru/constants.js.map +1 -0
  332. package/dist/esm/locales/ru/index.d.ts +8 -0
  333. package/dist/esm/locales/ru/index.js +46 -0
  334. package/dist/esm/locales/ru/index.js.map +1 -0
  335. package/dist/esm/locales/ru/parsers/RUCasualDateParser.d.ts +8 -0
  336. package/dist/esm/locales/ru/parsers/RUCasualDateParser.js +30 -0
  337. package/dist/esm/locales/ru/parsers/RUCasualDateParser.js.map +1 -0
  338. package/dist/esm/locales/ru/parsers/RUCasualTimeParser.d.ts +7 -0
  339. package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js +49 -0
  340. package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js.map +1 -0
  341. package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.d.ts +8 -0
  342. package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js +56 -0
  343. package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js.map +1 -0
  344. package/dist/esm/locales/ru/parsers/RUMonthNameParser.d.ts +7 -0
  345. package/dist/esm/locales/ru/parsers/RUMonthNameParser.js +42 -0
  346. package/dist/esm/locales/ru/parsers/RUMonthNameParser.js.map +1 -0
  347. package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.d.ts +8 -0
  348. package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js +54 -0
  349. package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js.map +1 -0
  350. package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.d.ts +12 -0
  351. package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js +54 -0
  352. package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js.map +1 -0
  353. package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.d.ts +8 -0
  354. package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js +19 -0
  355. package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js.map +1 -0
  356. package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.d.ts +8 -0
  357. package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js +26 -0
  358. package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js.map +1 -0
  359. package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.d.ts +8 -0
  360. package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js +19 -0
  361. package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js.map +1 -0
  362. package/dist/esm/locales/ru/parsers/RUWeekdayParser.d.ts +8 -0
  363. package/dist/esm/locales/ru/parsers/RUWeekdayParser.js +46 -0
  364. package/dist/esm/locales/ru/parsers/RUWeekdayParser.js.map +1 -0
  365. package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.d.ts +4 -0
  366. package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js +7 -0
  367. package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js.map +1 -0
  368. package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.d.ts +4 -0
  369. package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js +7 -0
  370. package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js.map +1 -0
  371. package/dist/esm/locales/zh/hans/constants.d.ts +27 -0
  372. package/dist/esm/locales/zh/hans/constants.js +47 -0
  373. package/dist/esm/locales/zh/hans/constants.js.map +1 -0
  374. package/dist/esm/locales/zh/hans/index.d.ts +9 -0
  375. package/dist/esm/locales/zh/hans/index.js +40 -0
  376. package/dist/esm/locales/zh/hans/index.js.map +1 -0
  377. package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.d.ts +7 -0
  378. package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js +133 -0
  379. package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js.map +1 -0
  380. package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.d.ts +6 -0
  381. package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js +67 -0
  382. package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js.map +1 -0
  383. package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.d.ts +6 -0
  384. package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js +73 -0
  385. package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js.map +1 -0
  386. package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.d.ts +7 -0
  387. package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js +65 -0
  388. package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js.map +1 -0
  389. package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.d.ts +6 -0
  390. package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js +433 -0
  391. package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js.map +1 -0
  392. package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.d.ts +7 -0
  393. package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js +41 -0
  394. package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js.map +1 -0
  395. package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.d.ts +4 -0
  396. package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js +7 -0
  397. package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js.map +1 -0
  398. package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.d.ts +4 -0
  399. package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js +7 -0
  400. package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js.map +1 -0
  401. package/dist/esm/locales/zh/hant/constants.d.ts +28 -0
  402. package/dist/esm/locales/zh/hant/constants.js +48 -0
  403. package/dist/esm/locales/zh/hant/constants.js.map +1 -0
  404. package/dist/esm/locales/zh/hant/index.d.ts +9 -0
  405. package/dist/esm/locales/zh/hant/index.js +40 -0
  406. package/dist/esm/locales/zh/hant/index.js.map +1 -0
  407. package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.d.ts +7 -0
  408. package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js +133 -0
  409. package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js.map +1 -0
  410. package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.d.ts +6 -0
  411. package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js +59 -0
  412. package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js.map +1 -0
  413. package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.d.ts +6 -0
  414. package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js +73 -0
  415. package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js.map +1 -0
  416. package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.d.ts +7 -0
  417. package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js +65 -0
  418. package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js.map +1 -0
  419. package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.d.ts +6 -0
  420. package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js +433 -0
  421. package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js.map +1 -0
  422. package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.d.ts +7 -0
  423. package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js +41 -0
  424. package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js.map +1 -0
  425. package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.d.ts +4 -0
  426. package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js +7 -0
  427. package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js.map +1 -0
  428. package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.d.ts +4 -0
  429. package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js +7 -0
  430. package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js.map +1 -0
  431. package/dist/esm/locales/zh/index.d.ts +2 -0
  432. package/dist/esm/locales/zh/index.js +3 -0
  433. package/dist/esm/locales/zh/index.js.map +1 -0
  434. package/dist/esm/results.d.ts +48 -0
  435. package/dist/esm/results.js +201 -0
  436. package/dist/esm/results.js.map +1 -0
  437. package/dist/esm/timezone.d.ts +194 -0
  438. package/dist/esm/timezone.js +203 -0
  439. package/dist/esm/timezone.js.map +1 -0
  440. package/dist/esm/utils/dayjs.d.ts +8 -0
  441. package/dist/esm/utils/dayjs.js +40 -0
  442. package/dist/esm/utils/dayjs.js.map +1 -0
  443. package/dist/esm/utils/pattern.d.ts +7 -0
  444. package/dist/esm/utils/pattern.js +25 -0
  445. package/dist/esm/utils/pattern.js.map +1 -0
  446. package/dist/esm/utils/timeunits.d.ts +7 -0
  447. package/dist/esm/utils/timeunits.js +26 -0
  448. package/dist/esm/utils/timeunits.js.map +1 -0
  449. package/dist/index.d.ts +2 -1
  450. package/dist/index.js +3 -1
  451. package/dist/index.js.map +1 -1
  452. package/dist/locales/de/constants.js +8 -8
  453. package/dist/locales/de/constants.js.map +1 -1
  454. package/dist/locales/de/index.js +2 -0
  455. package/dist/locales/de/index.js.map +1 -1
  456. package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
  457. package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js +16 -0
  458. package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
  459. package/dist/locales/en/constants.js +9 -2
  460. package/dist/locales/en/constants.js.map +1 -1
  461. package/dist/locales/en/parsers/ENCasualDateParser.js +7 -1
  462. package/dist/locales/en/parsers/ENCasualDateParser.js.map +1 -1
  463. package/dist/locales/en/parsers/ENCasualTimeParser.js +27 -26
  464. package/dist/locales/en/parsers/ENCasualTimeParser.js.map +1 -1
  465. package/dist/locales/en/parsers/ENTimeExpressionParser.js +1 -1
  466. package/dist/locales/en/parsers/ENTimeExpressionParser.js.map +1 -1
  467. package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js +1 -1
  468. package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -1
  469. package/dist/locales/es/constants.d.ts +21 -0
  470. package/dist/locales/es/constants.js +165 -0
  471. package/dist/locales/es/constants.js.map +1 -0
  472. package/dist/locales/es/index.d.ts +8 -0
  473. package/dist/locales/es/index.js +48 -0
  474. package/dist/locales/es/index.js.map +1 -0
  475. package/dist/locales/es/parsers/ESCasualDateParser.d.ts +7 -0
  476. package/dist/locales/es/parsers/ESCasualDateParser.js +45 -0
  477. package/dist/locales/es/parsers/ESCasualDateParser.js.map +1 -0
  478. package/dist/locales/es/parsers/ESCasualTimeParser.d.ts +6 -0
  479. package/dist/locales/es/parsers/ESCasualTimeParser.js +46 -0
  480. package/dist/locales/es/parsers/ESCasualTimeParser.js.map +1 -0
  481. package/dist/locales/es/parsers/ESMonthNameLittleEndianParser.d.ts +7 -0
  482. package/dist/locales/es/parsers/ESMonthNameLittleEndianParser.js +49 -0
  483. package/dist/locales/es/parsers/ESMonthNameLittleEndianParser.js.map +1 -0
  484. package/dist/locales/es/parsers/ESTimeExpressionParser.d.ts +5 -0
  485. package/dist/locales/es/parsers/ESTimeExpressionParser.js +13 -0
  486. package/dist/locales/es/parsers/ESTimeExpressionParser.js.map +1 -0
  487. package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
  488. package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js +16 -0
  489. package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
  490. package/dist/locales/es/parsers/ESWeekdayParser.d.ts +7 -0
  491. package/dist/locales/es/parsers/ESWeekdayParser.js +44 -0
  492. package/dist/locales/es/parsers/ESWeekdayParser.js.map +1 -0
  493. package/dist/locales/es/refiners/ESMergeDateRangeRefiner.d.ts +4 -0
  494. package/dist/locales/es/refiners/ESMergeDateRangeRefiner.js +13 -0
  495. package/dist/locales/es/refiners/ESMergeDateRangeRefiner.js.map +1 -0
  496. package/dist/locales/es/refiners/ESMergeDateTimeRefiner.d.ts +4 -0
  497. package/dist/locales/es/refiners/ESMergeDateTimeRefiner.js +13 -0
  498. package/dist/locales/es/refiners/ESMergeDateTimeRefiner.js.map +1 -0
  499. package/dist/locales/nl/constants.js +2 -0
  500. package/dist/locales/nl/constants.js.map +1 -1
  501. package/dist/locales/ru/parsers/RUCasualDateParser.js +5 -1
  502. package/dist/locales/ru/parsers/RUCasualDateParser.js.map +1 -1
  503. package/dist/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js +1 -1
  504. package/dist/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js.map +1 -1
  505. package/package.json +1 -1
  506. package/src/calculation/mergingCalculation.ts +6 -3
  507. package/src/common/casualReferences.ts +31 -2
  508. package/src/index.ts +2 -1
  509. package/src/locales/de/constants.ts +8 -8
  510. package/src/locales/de/index.ts +2 -0
  511. package/src/locales/de/parsers/DETimeUnitWithinFormatParser.ts +15 -0
  512. package/src/locales/en/constants.ts +9 -2
  513. package/src/locales/en/parsers/ENCasualDateParser.ts +10 -1
  514. package/src/locales/en/parsers/ENCasualTimeParser.ts +9 -32
  515. package/src/locales/en/parsers/ENTimeExpressionParser.ts +1 -1
  516. package/src/locales/en/refiners/ENMergeDateRangeRefiner.ts +1 -1
  517. package/src/locales/es/constants.ts +174 -0
  518. package/src/locales/es/index.ts +59 -0
  519. package/src/locales/es/parsers/ESCasualDateParser.ts +31 -0
  520. package/src/locales/es/parsers/ESCasualTimeParser.ts +47 -0
  521. package/src/locales/es/parsers/ESMonthNameLittleEndianParser.ts +60 -0
  522. package/src/locales/es/parsers/ESTimeExpressionParser.ts +20 -0
  523. package/src/locales/es/parsers/ESTimeUnitWithinFormatParser.ts +15 -0
  524. package/src/locales/es/parsers/ESWeekdayParser.ts +50 -0
  525. package/src/locales/es/refiners/ESMergeDateRangeRefiner.ts +15 -0
  526. package/src/locales/es/refiners/ESMergeDateTimeRefiner.ts +10 -0
  527. package/src/locales/nl/constants.ts +2 -0
  528. package/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts +2 -2
  529. package/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts +1 -1
  530. package/src/locales/ru/parsers/RUCasualDateParser.ts +7 -1
  531. package/src/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.ts +1 -1
  532. package/src/locales/ru/refiners/RUMergeDateTimeRefiner.ts +1 -1
  533. package/test/de/de_time_units_within.test.ts +119 -0
  534. package/test/en/en.test.ts +10 -0
  535. package/test/en/en_casual.test.ts +27 -4
  536. package/test/en/en_time_exp.test.ts +60 -0
  537. package/test/en/en_time_units_ago.test.ts +53 -0
  538. package/test/en/en_time_units_casual_relative.test.ts +16 -1
  539. package/test/en/en_time_units_later.test.ts +76 -0
  540. package/test/es/es_casual.test.ts +175 -0
  541. package/test/es/es_month_name_little_endian.test.ts +217 -0
  542. package/test/es/es_slash.test.ts +26 -0
  543. package/test/es/es_time_exp.test.ts +175 -0
  544. package/test/es/es_time_units_within.test.ts +119 -0
  545. package/test/nl/nl_month.test.ts +25 -0
  546. package/test/ru/ru_casual.test.ts +12 -0
  547. package/test/ru/ru_time_units_casual_relative.test.ts +12 -0
  548. package/test/system.test.ts +15 -1
  549. package/coverage/clover.xml +0 -4589
  550. package/coverage/coverage-final.json +0 -138
  551. package/coverage/lcov-report/base.css +0 -224
  552. package/coverage/lcov-report/block-navigation.js +0 -87
  553. package/coverage/lcov-report/favicon.png +0 -0
  554. package/coverage/lcov-report/index.html +0 -641
  555. package/coverage/lcov-report/prettify.css +0 -1
  556. package/coverage/lcov-report/prettify.js +0 -2
  557. package/coverage/lcov-report/results.ts.html +0 -701
  558. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  559. package/coverage/lcov-report/sorter.js +0 -196
  560. package/coverage/lcov-report/src/calculation/index.html +0 -131
  561. package/coverage/lcov-report/src/calculation/mergingCalculation.ts.html +0 -319
  562. package/coverage/lcov-report/src/calculation/weeks.ts.html +0 -199
  563. package/coverage/lcov-report/src/calculation/yearCalculation.ts.html +0 -194
  564. package/coverage/lcov-report/src/calculation/years.ts.html +0 -199
  565. package/coverage/lcov-report/src/chrono.js.html +0 -368
  566. package/coverage/lcov-report/src/chrono.ts.html +0 -649
  567. package/coverage/lcov-report/src/common/abstractRefiners.ts.html +0 -286
  568. package/coverage/lcov-report/src/common/calculation/index.html +0 -116
  569. package/coverage/lcov-report/src/common/calculation/weekdays.ts.html +0 -352
  570. package/coverage/lcov-report/src/common/casualReferences.ts.html +0 -412
  571. package/coverage/lcov-report/src/common/index.html +0 -131
  572. package/coverage/lcov-report/src/common/parsers/AbstractParserWithWordBoundary.ts.html +0 -214
  573. package/coverage/lcov-report/src/common/parsers/AbstractTimeExpressionParser.ts.html +0 -1384
  574. package/coverage/lcov-report/src/common/parsers/ISOFormatParser.ts.html +0 -340
  575. package/coverage/lcov-report/src/common/parsers/SlashDateFormatParser.ts.html +0 -385
  576. package/coverage/lcov-report/src/common/parsers/index.html +0 -161
  577. package/coverage/lcov-report/src/common/refiners/AbstractMergeDateRangeRefiner.ts.html +0 -268
  578. package/coverage/lcov-report/src/common/refiners/AbstractMergeDateTimeRefiner.ts.html +0 -172
  579. package/coverage/lcov-report/src/common/refiners/ExtractTimezoneAbbrRefiner.ts.html +0 -883
  580. package/coverage/lcov-report/src/common/refiners/ExtractTimezoneOffsetRefiner.ts.html +0 -226
  581. package/coverage/lcov-report/src/common/refiners/ForwardDateRefiner.ts.html +0 -334
  582. package/coverage/lcov-report/src/common/refiners/MergeWeekdayComponentRefiner.ts.html +0 -187
  583. package/coverage/lcov-report/src/common/refiners/OverlapRemovalRefiner.ts.html +0 -199
  584. package/coverage/lcov-report/src/common/refiners/UnlikelyFormatFilter.ts.html +0 -265
  585. package/coverage/lcov-report/src/common/refiners/index.html +0 -221
  586. package/coverage/lcov-report/src/configurations.ts.html +0 -154
  587. package/coverage/lcov-report/src/debugging.ts.html +0 -154
  588. package/coverage/lcov-report/src/index.html +0 -191
  589. package/coverage/lcov-report/src/index.ts.html +0 -517
  590. package/coverage/lcov-report/src/locales/de/constants.ts.html +0 -664
  591. package/coverage/lcov-report/src/locales/de/index.html +0 -131
  592. package/coverage/lcov-report/src/locales/de/index.ts.html +0 -238
  593. package/coverage/lcov-report/src/locales/de/parsers/DECasualDateParser.ts.html +0 -325
  594. package/coverage/lcov-report/src/locales/de/parsers/DECasualTimeParser.ts.html +0 -325
  595. package/coverage/lcov-report/src/locales/de/parsers/DEMonthNameLittleEndianParser.ts.html +0 -268
  596. package/coverage/lcov-report/src/locales/de/parsers/DESpecificTimeExpressionParser.ts.html +0 -535
  597. package/coverage/lcov-report/src/locales/de/parsers/DETimeExpressionParser.ts.html +0 -151
  598. package/coverage/lcov-report/src/locales/de/parsers/DETimeUnitRelativeFormatParser.ts.html +0 -211
  599. package/coverage/lcov-report/src/locales/de/parsers/DEWeekdayParser.ts.html +0 -232
  600. package/coverage/lcov-report/src/locales/de/parsers/index.html +0 -206
  601. package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateRangeRefiner.ts.html +0 -130
  602. package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateTimeRefiner.ts.html +0 -115
  603. package/coverage/lcov-report/src/locales/de/refiners/index.html +0 -131
  604. package/coverage/lcov-report/src/locales/en/constants.ts.html +0 -841
  605. package/coverage/lcov-report/src/locales/en/index.html +0 -131
  606. package/coverage/lcov-report/src/locales/en/index.ts.html +0 -382
  607. package/coverage/lcov-report/src/locales/en/parsers/ENCasualDateParser.ts.html +0 -244
  608. package/coverage/lcov-report/src/locales/en/parsers/ENCasualTimeParser.ts.html +0 -238
  609. package/coverage/lcov-report/src/locales/en/parsers/ENCasualYearMonthDayParser.ts.html +0 -232
  610. package/coverage/lcov-report/src/locales/en/parsers/ENDeadlineFormatParser.ts.html +0 -311
  611. package/coverage/lcov-report/src/locales/en/parsers/ENISOFormatParser.ts.html +0 -317
  612. package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameLittleEndianParser.ts.html +0 -292
  613. package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameMiddleEndianParser.ts.html +0 -319
  614. package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameParser.ts.html +0 -271
  615. package/coverage/lcov-report/src/locales/en/parsers/ENRelativeDateFormatParser.ts.html +0 -292
  616. package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatParser.ts.html +0 -443
  617. package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatStartWithYearParser.ts.html +0 -221
  618. package/coverage/lcov-report/src/locales/en/parsers/ENSlashMonthFormatParser.ts.html +0 -163
  619. package/coverage/lcov-report/src/locales/en/parsers/ENTimeExpressionParser.ts.html +0 -250
  620. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts.html +0 -160
  621. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts.html +0 -166
  622. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitDeadlineFormatParser.ts.html +0 -149
  623. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts.html +0 -166
  624. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts.html +0 -163
  625. package/coverage/lcov-report/src/locales/en/parsers/ENWeekdayParser.ts.html +0 -229
  626. package/coverage/lcov-report/src/locales/en/parsers/index.html +0 -311
  627. package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateRangeRefiner.ts.html +0 -136
  628. package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateTimeRefiner.ts.html +0 -124
  629. package/coverage/lcov-report/src/locales/en/refiners/ENMergeRelativeDateRefiner.ts.html +0 -259
  630. package/coverage/lcov-report/src/locales/en/refiners/index.html +0 -146
  631. package/coverage/lcov-report/src/locales/fr/constants.ts.html +0 -637
  632. package/coverage/lcov-report/src/locales/fr/index.html +0 -131
  633. package/coverage/lcov-report/src/locales/fr/index.ts.html +0 -280
  634. package/coverage/lcov-report/src/locales/fr/parsers/FRCasualDateParser.ts.html +0 -223
  635. package/coverage/lcov-report/src/locales/fr/parsers/FRCasualTimeParser.ts.html +0 -232
  636. package/coverage/lcov-report/src/locales/fr/parsers/FRMonthNameLittleEndianParser.ts.html +0 -277
  637. package/coverage/lcov-report/src/locales/fr/parsers/FRSpecificTimeExpressionParser.ts.html +0 -484
  638. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeExpressionParser.ts.html +0 -151
  639. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitAgoFormatParser.ts.html +0 -151
  640. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitRelativeFormatParser.ts.html +0 -214
  641. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitWithinFormatParser.ts.html +0 -130
  642. package/coverage/lcov-report/src/locales/fr/parsers/FRWeekdayParser.ts.html +0 -223
  643. package/coverage/lcov-report/src/locales/fr/parsers/index.html +0 -236
  644. package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateRangeRefiner.ts.html +0 -130
  645. package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateTimeRefiner.ts.html +0 -115
  646. package/coverage/lcov-report/src/locales/fr/refiners/index.html +0 -131
  647. package/coverage/lcov-report/src/locales/ja/constants.ts.html +0 -157
  648. package/coverage/lcov-report/src/locales/ja/index.html +0 -131
  649. package/coverage/lcov-report/src/locales/ja/index.ts.html +0 -214
  650. package/coverage/lcov-report/src/locales/ja/parsers/JPCasualDateParser.ts.html +0 -217
  651. package/coverage/lcov-report/src/locales/ja/parsers/JPStandardParser.ts.html +0 -247
  652. package/coverage/lcov-report/src/locales/ja/parsers/index.html +0 -131
  653. package/coverage/lcov-report/src/locales/ja/refiners/JPMergeDateRangeRefiner.ts.html +0 -124
  654. package/coverage/lcov-report/src/locales/ja/refiners/index.html +0 -116
  655. package/coverage/lcov-report/src/locales/nl/constants.ts.html +0 -796
  656. package/coverage/lcov-report/src/locales/nl/index.html +0 -131
  657. package/coverage/lcov-report/src/locales/nl/index.ts.html +0 -304
  658. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateParser.ts.html +0 -181
  659. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateTimeParser.ts.html +0 -310
  660. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualTimeParser.ts.html +0 -265
  661. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualYearMonthDayParser.ts.html +0 -232
  662. package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameMiddleEndianParser.ts.html +0 -349
  663. package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameParser.ts.html +0 -235
  664. package/coverage/lcov-report/src/locales/nl/parsers/NLRelativeDateFormatParser.ts.html +0 -295
  665. package/coverage/lcov-report/src/locales/nl/parsers/NLSlashMonthFormatParser.ts.html +0 -163
  666. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeExpressionParser.ts.html +0 -163
  667. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitAgoFormatParser.ts.html +0 -163
  668. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.ts.html +0 -166
  669. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitLaterFormatParser.ts.html +0 -166
  670. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitWithinFormatParser.ts.html +0 -130
  671. package/coverage/lcov-report/src/locales/nl/parsers/NLWeekdayParser.ts.html +0 -223
  672. package/coverage/lcov-report/src/locales/nl/parsers/index.html +0 -311
  673. package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts.html +0 -136
  674. package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts.html +0 -124
  675. package/coverage/lcov-report/src/locales/nl/refiners/index.html +0 -131
  676. package/coverage/lcov-report/src/locales/pt/constants.ts.html +0 -343
  677. package/coverage/lcov-report/src/locales/pt/index.html +0 -131
  678. package/coverage/lcov-report/src/locales/pt/index.ts.html +0 -256
  679. package/coverage/lcov-report/src/locales/pt/parsers/PTCasualDateParser.ts.html +0 -181
  680. package/coverage/lcov-report/src/locales/pt/parsers/PTCasualTimeParser.ts.html +0 -226
  681. package/coverage/lcov-report/src/locales/pt/parsers/PTMonthNameLittleEndianParser.ts.html +0 -265
  682. package/coverage/lcov-report/src/locales/pt/parsers/PTTimeExpressionParser.ts.html +0 -145
  683. package/coverage/lcov-report/src/locales/pt/parsers/PTWeekdayParser.ts.html +0 -235
  684. package/coverage/lcov-report/src/locales/pt/parsers/index.html +0 -176
  685. package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateRangeRefiner.ts.html +0 -130
  686. package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateTimeRefiner.ts.html +0 -115
  687. package/coverage/lcov-report/src/locales/pt/refiners/index.html +0 -131
  688. package/coverage/lcov-report/src/locales/ru/constants.ts.html +0 -1111
  689. package/coverage/lcov-report/src/locales/ru/index.html +0 -131
  690. package/coverage/lcov-report/src/locales/ru/index.ts.html +0 -337
  691. package/coverage/lcov-report/src/locales/ru/parsers/RUCasualDateParser.ts.html +0 -217
  692. package/coverage/lcov-report/src/locales/ru/parsers/RUCasualTimeParser.ts.html +0 -253
  693. package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameLittleEndianParser.ts.html +0 -301
  694. package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameParser.ts.html +0 -268
  695. package/coverage/lcov-report/src/locales/ru/parsers/RURelativeDateFormatParser.ts.html +0 -310
  696. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeExpressionParser.ts.html +0 -277
  697. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitAgoFormatParser.ts.html +0 -157
  698. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.ts.html +0 -187
  699. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitWithinFormatParser.ts.html +0 -157
  700. package/coverage/lcov-report/src/locales/ru/parsers/RUWeekdayParser.ts.html +0 -256
  701. package/coverage/lcov-report/src/locales/ru/parsers/index.html +0 -251
  702. package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateRangeRefiner.ts.html +0 -124
  703. package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateTimeRefiner.ts.html +0 -124
  704. package/coverage/lcov-report/src/locales/ru/refiners/index.html +0 -131
  705. package/coverage/lcov-report/src/locales/zh/hans/constants.ts.html +0 -241
  706. package/coverage/lcov-report/src/locales/zh/hans/index.html +0 -131
  707. package/coverage/lcov-report/src/locales/zh/hans/index.ts.html +0 -271
  708. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansCasualDateParser.ts.html +0 -469
  709. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDateParser.ts.html +0 -310
  710. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.ts.html +0 -328
  711. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.ts.html +0 -292
  712. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansTimeExpressionParser.ts.html +0 -1357
  713. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansWeekdayParser.ts.html +0 -223
  714. package/coverage/lcov-report/src/locales/zh/hans/parsers/index.html +0 -191
  715. package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.ts.html +0 -106
  716. package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.ts.html +0 -106
  717. package/coverage/lcov-report/src/locales/zh/hans/refiners/index.html +0 -131
  718. package/coverage/lcov-report/src/locales/zh/hant/constants.ts.html +0 -244
  719. package/coverage/lcov-report/src/locales/zh/hant/index.html +0 -131
  720. package/coverage/lcov-report/src/locales/zh/hant/index.ts.html +0 -274
  721. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantCasualDateParser.ts.html +0 -469
  722. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDateParser.ts.html +0 -289
  723. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.ts.html +0 -328
  724. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.ts.html +0 -292
  725. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantTimeExpressionParser.ts.html +0 -1357
  726. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantWeekdayParser.ts.html +0 -223
  727. package/coverage/lcov-report/src/locales/zh/hant/parsers/index.html +0 -191
  728. package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.ts.html +0 -106
  729. package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.ts.html +0 -106
  730. package/coverage/lcov-report/src/locales/zh/hant/refiners/index.html +0 -131
  731. package/coverage/lcov-report/src/locales/zh/index.html +0 -116
  732. package/coverage/lcov-report/src/locales/zh/index.ts.html +0 -91
  733. package/coverage/lcov-report/src/options.js.html +0 -1085
  734. package/coverage/lcov-report/src/parsers/de/DECasualDateParser.js.html +0 -368
  735. package/coverage/lcov-report/src/parsers/de/DEDeadlineFormatParser.js.html +0 -374
  736. package/coverage/lcov-report/src/parsers/de/DEMonthNameLittleEndianParser.js.html +0 -347
  737. package/coverage/lcov-report/src/parsers/de/DEMonthNameParser.js.html +0 -329
  738. package/coverage/lcov-report/src/parsers/de/DESlashDateFormatParser.js.html +0 -398
  739. package/coverage/lcov-report/src/parsers/de/DETimeAgoFormatParser.js.html +0 -401
  740. package/coverage/lcov-report/src/parsers/de/DETimeExpressionParser.js.html +0 -836
  741. package/coverage/lcov-report/src/parsers/de/DEWeekdayParser.js.html +0 -338
  742. package/coverage/lcov-report/src/parsers/de/index.html +0 -216
  743. package/coverage/lcov-report/src/parsers/en/ENCasualDateParser.js.html +0 -275
  744. package/coverage/lcov-report/src/parsers/en/ENCasualTimeParser.js.html +0 -242
  745. package/coverage/lcov-report/src/parsers/en/ENDeadlineFormatParser.js.html +0 -359
  746. package/coverage/lcov-report/src/parsers/en/ENISOFormatParser.js.html +0 -389
  747. package/coverage/lcov-report/src/parsers/en/ENMonthNameLittleEndianParser.js.html +0 -416
  748. package/coverage/lcov-report/src/parsers/en/ENMonthNameMiddleEndianParser.js.html +0 -437
  749. package/coverage/lcov-report/src/parsers/en/ENMonthNameParser.js.html +0 -320
  750. package/coverage/lcov-report/src/parsers/en/ENRelativeDateFormatParser.js.html +0 -518
  751. package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatParser.js.html +0 -479
  752. package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatStartWithYearParser.js.html +0 -245
  753. package/coverage/lcov-report/src/parsers/en/ENSlashMonthFormatParser.js.html +0 -221
  754. package/coverage/lcov-report/src/parsers/en/ENTimeAgoFormatParser.js.html +0 -287
  755. package/coverage/lcov-report/src/parsers/en/ENTimeExpressionParser.js.html +0 -869
  756. package/coverage/lcov-report/src/parsers/en/ENTimeLaterFormatParser.js.html +0 -305
  757. package/coverage/lcov-report/src/parsers/en/ENWeekdayParser.js.html +0 -356
  758. package/coverage/lcov-report/src/parsers/en/index.html +0 -321
  759. package/coverage/lcov-report/src/parsers/es/ESCasualDateParser.js.html +0 -452
  760. package/coverage/lcov-report/src/parsers/es/ESDeadlineFormatParser.js.html +0 -260
  761. package/coverage/lcov-report/src/parsers/es/ESMonthNameLittleEndianParser.js.html +0 -338
  762. package/coverage/lcov-report/src/parsers/es/ESSlashDateFormatParser.js.html +0 -419
  763. package/coverage/lcov-report/src/parsers/es/ESTimeAgoFormatParser.js.html +0 -341
  764. package/coverage/lcov-report/src/parsers/es/ESTimeExpressionParser.js.html +0 -782
  765. package/coverage/lcov-report/src/parsers/es/ESWeekdayParser.js.html +0 -260
  766. package/coverage/lcov-report/src/parsers/es/index.html +0 -201
  767. package/coverage/lcov-report/src/parsers/fr/FRCasualDateParser.js.html +0 -311
  768. package/coverage/lcov-report/src/parsers/fr/FRDeadlineFormatParser.js.html +0 -359
  769. package/coverage/lcov-report/src/parsers/fr/FRMonthNameLittleEndianParser.js.html +0 -338
  770. package/coverage/lcov-report/src/parsers/fr/FRRelativeDateFormatParser.js.html +0 -545
  771. package/coverage/lcov-report/src/parsers/fr/FRSlashDateFormatParser.js.html +0 -437
  772. package/coverage/lcov-report/src/parsers/fr/FRTimeAgoFormatParser.js.html +0 -341
  773. package/coverage/lcov-report/src/parsers/fr/FRTimeExpressionParser.js.html +0 -803
  774. package/coverage/lcov-report/src/parsers/fr/FRWeekdayParser.js.html +0 -257
  775. package/coverage/lcov-report/src/parsers/fr/index.html +0 -216
  776. package/coverage/lcov-report/src/parsers/index.html +0 -111
  777. package/coverage/lcov-report/src/parsers/ja/JPCasualDateParser.js.html +0 -245
  778. package/coverage/lcov-report/src/parsers/ja/JPStandardParser.js.html +0 -293
  779. package/coverage/lcov-report/src/parsers/ja/index.html +0 -126
  780. package/coverage/lcov-report/src/parsers/nl/NLCasualDateParser.js.html +0 -395
  781. package/coverage/lcov-report/src/parsers/nl/NLCasualTimeParser.js.html +0 -278
  782. package/coverage/lcov-report/src/parsers/nl/NLMonthNameLittleEndianParser.js.html +0 -383
  783. package/coverage/lcov-report/src/parsers/nl/NLMonthNameParser.js.html +0 -320
  784. package/coverage/lcov-report/src/parsers/nl/NLSlashDateFormatParser.js.html +0 -389
  785. package/coverage/lcov-report/src/parsers/nl/NLTimeExpressionParser.js.html +0 -836
  786. package/coverage/lcov-report/src/parsers/nl/NLWeekdayParser.js.html +0 -377
  787. package/coverage/lcov-report/src/parsers/nl/index.html +0 -201
  788. package/coverage/lcov-report/src/parsers/parser.js.html +0 -500
  789. package/coverage/lcov-report/src/parsers/pt/PTCasualDateParser.js.html +0 -449
  790. package/coverage/lcov-report/src/parsers/pt/PTDeadlineFormatParser.js.html +0 -263
  791. package/coverage/lcov-report/src/parsers/pt/PTMonthNameLittleEndianParser.js.html +0 -338
  792. package/coverage/lcov-report/src/parsers/pt/PTSlashDateFormatParser.js.html +0 -419
  793. package/coverage/lcov-report/src/parsers/pt/PTTimeAgoFormatParser.js.html +0 -341
  794. package/coverage/lcov-report/src/parsers/pt/PTTimeExpressionParser.js.html +0 -782
  795. package/coverage/lcov-report/src/parsers/pt/PTWeekdayParser.js.html +0 -260
  796. package/coverage/lcov-report/src/parsers/pt/index.html +0 -201
  797. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantCasualDateParser.js.html +0 -494
  798. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDateParser.js.html +0 -281
  799. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDeadlineFormatParser.js.html +0 -353
  800. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantTimeExpressionParser.js.html +0 -1346
  801. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantWeekdayParser.js.html +0 -239
  802. package/coverage/lcov-report/src/parsers/zh-Hant/index.html +0 -171
  803. package/coverage/lcov-report/src/refiners/ExtractTimezoneAbbrRefiner.js.html +0 -245
  804. package/coverage/lcov-report/src/refiners/ExtractTimezoneOffsetRefiner.js.html +0 -218
  805. package/coverage/lcov-report/src/refiners/ForwardDateRefiner.js.html +0 -239
  806. package/coverage/lcov-report/src/refiners/OverlapRemovalRefiner.js.html +0 -200
  807. package/coverage/lcov-report/src/refiners/UnlikelyFormatFilter.js.html +0 -131
  808. package/coverage/lcov-report/src/refiners/de/DEMergeDateRangeRefiner.js.html +0 -116
  809. package/coverage/lcov-report/src/refiners/de/DEMergeDateTimeRefiner.js.html +0 -377
  810. package/coverage/lcov-report/src/refiners/de/index.html +0 -126
  811. package/coverage/lcov-report/src/refiners/en/ENMergeDateRangeRefiner.js.html +0 -416
  812. package/coverage/lcov-report/src/refiners/en/ENMergeDateTimeRefiner.js.html +0 -533
  813. package/coverage/lcov-report/src/refiners/en/ENPrioritizeSpecificDateRefiner.js.html +0 -422
  814. package/coverage/lcov-report/src/refiners/en/index.html +0 -141
  815. package/coverage/lcov-report/src/refiners/fr/FRMergeDateRangeRefiner.js.html +0 -374
  816. package/coverage/lcov-report/src/refiners/fr/FRMergeDateTimeRefiner.js.html +0 -395
  817. package/coverage/lcov-report/src/refiners/fr/index.html +0 -126
  818. package/coverage/lcov-report/src/refiners/index.html +0 -186
  819. package/coverage/lcov-report/src/refiners/ja/JPMergeDateRangeRefiner.js.html +0 -113
  820. package/coverage/lcov-report/src/refiners/ja/index.html +0 -111
  821. package/coverage/lcov-report/src/refiners/nl/NLMergeDateRangeRefiner.js.html +0 -116
  822. package/coverage/lcov-report/src/refiners/nl/NLMergeDateTimeRefiner.js.html +0 -362
  823. package/coverage/lcov-report/src/refiners/nl/index.html +0 -126
  824. package/coverage/lcov-report/src/refiners/refiner.js.html +0 -239
  825. package/coverage/lcov-report/src/result.js.html +0 -545
  826. package/coverage/lcov-report/src/results.ts.html +0 -916
  827. package/coverage/lcov-report/src/timezone.ts.html +0 -700
  828. package/coverage/lcov-report/src/utils/DE.js.html +0 -308
  829. package/coverage/lcov-report/src/utils/EN.js.html +0 -596
  830. package/coverage/lcov-report/src/utils/ES.js.html +0 -254
  831. package/coverage/lcov-report/src/utils/FR.js.html +0 -302
  832. package/coverage/lcov-report/src/utils/JP.js.html +0 -215
  833. package/coverage/lcov-report/src/utils/NL.js.html +0 -620
  834. package/coverage/lcov-report/src/utils/PT.js.html +0 -263
  835. package/coverage/lcov-report/src/utils/ParserWithWordEndingDetection.ts.html +0 -176
  836. package/coverage/lcov-report/src/utils/ZH-Hant.js.html +0 -236
  837. package/coverage/lcov-report/src/utils/dayjs.ts.html +0 -223
  838. package/coverage/lcov-report/src/utils/index.html +0 -146
  839. package/coverage/lcov-report/src/utils/pattern.ts.html +0 -175
  840. package/coverage/lcov-report/src/utils/timeunits.ts.html +0 -199
  841. package/coverage/lcov-report/test/index.html +0 -116
  842. package/coverage/lcov-report/test/test_util.js.html +0 -299
  843. package/coverage/lcov-report/test/test_util.ts.html +0 -490
  844. package/coverage/lcov.info +0 -7750
  845. package/dist/bundle.js +0 -5047
  846. package/dist/calculation/weeks.d.ts +0 -3
  847. package/dist/calculation/weeks.js +0 -42
  848. package/dist/calculation/weeks.js.map +0 -1
  849. package/dist/main.js +0 -1078
  850. package/docs/assets/css/main.css +0 -2660
  851. package/docs/assets/images/icons.png +0 -0
  852. package/docs/assets/images/icons@2x.png +0 -0
  853. package/docs/assets/images/widgets.png +0 -0
  854. package/docs/assets/images/widgets@2x.png +0 -0
  855. package/docs/assets/js/main.js +0 -248
  856. package/docs/assets/js/search.js +0 -1
  857. package/docs/classes/chrono.html +0 -377
  858. package/docs/enums/meridiem.html +0 -191
  859. package/docs/index.html +0 -329
  860. package/docs/interfaces/parsedcomponents.html +0 -270
  861. package/docs/interfaces/parsedresult.html +0 -283
  862. package/docs/interfaces/parser.html +0 -240
  863. package/docs/interfaces/parsingoption.html +0 -218
  864. package/docs/interfaces/refiner.html +0 -218
  865. package/docs/modules/de.html +0 -298
  866. package/docs/modules/en.html +0 -361
  867. package/docs/modules/fr.html +0 -248
  868. package/docs/modules/ja.html +0 -248
  869. package/docs/modules/nl.html +0 -275
  870. package/docs/modules/pt.html +0 -248
@@ -0,0 +1,26 @@
1
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
2
+ import * as casualReferences from "../../../common/casualReferences";
3
+ const PATTERN = /(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;
4
+ export default class ENCasualTimeParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern() {
6
+ return PATTERN;
7
+ }
8
+ innerExtract(context, match) {
9
+ switch (match[1].toLowerCase()) {
10
+ case "afternoon":
11
+ return casualReferences.afternoon(context.reference);
12
+ case "evening":
13
+ case "night":
14
+ return casualReferences.evening(context.reference);
15
+ case "midnight":
16
+ return casualReferences.midnight(context.reference);
17
+ case "morning":
18
+ return casualReferences.morning(context.reference);
19
+ case "noon":
20
+ case "midday":
21
+ return casualReferences.noon(context.reference);
22
+ }
23
+ return null;
24
+ }
25
+ }
26
+ //# sourceMappingURL=ENCasualTimeParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENCasualTimeParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENCasualTimeParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,KAAK,gBAAgB,MAAM,kCAAkC,CAAC;AAErE,MAAM,OAAO,GAAG,iFAAiF,CAAC;AAElG,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,sCAAsC;IAClF,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE;YAC5B,KAAK,WAAW;gBACZ,OAAO,gBAAgB,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YACzD,KAAK,SAAS,CAAC;YACf,KAAK,OAAO;gBACR,OAAO,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YACvD,KAAK,UAAU;gBACX,OAAO,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YACxD,KAAK,SAAS;gBACV,OAAO,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YACvD,KAAK,MAAM,CAAC;YACZ,KAAK,QAAQ;gBACT,OAAO,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -0,0 +1,10 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
3
+ export default class ENCasualYearMonthDayParser extends AbstractParserWithWordBoundaryChecking {
4
+ innerPattern(): RegExp;
5
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): {
6
+ day: number;
7
+ month: number;
8
+ year: number;
9
+ };
10
+ }
@@ -0,0 +1,32 @@
1
+ import { MONTH_DICTIONARY } from "../constants";
2
+ import { matchAnyPattern } from "../../../utils/pattern";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ const PATTERN = new RegExp(`([0-9]{4})[\\.\\/\\s]` +
5
+ `(?:(${matchAnyPattern(MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]` +
6
+ `([0-9]{1,2})` +
7
+ "(?=\\W|$)", "i");
8
+ const YEAR_NUMBER_GROUP = 1;
9
+ const MONTH_NAME_GROUP = 2;
10
+ const MONTH_NUMBER_GROUP = 3;
11
+ const DATE_NUMBER_GROUP = 4;
12
+ export default class ENCasualYearMonthDayParser extends AbstractParserWithWordBoundaryChecking {
13
+ innerPattern() {
14
+ return PATTERN;
15
+ }
16
+ innerExtract(context, match) {
17
+ const month = match[MONTH_NUMBER_GROUP]
18
+ ? parseInt(match[MONTH_NUMBER_GROUP])
19
+ : MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
20
+ if (month < 1 || month > 12) {
21
+ return null;
22
+ }
23
+ const year = parseInt(match[YEAR_NUMBER_GROUP]);
24
+ const day = parseInt(match[DATE_NUMBER_GROUP]);
25
+ return {
26
+ day: day,
27
+ month: month,
28
+ year: year,
29
+ };
30
+ }
31
+ }
32
+ //# sourceMappingURL=ENCasualYearMonthDayParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENCasualYearMonthDayParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENCasualYearMonthDayParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAShH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,uBAAuB;IACnB,OAAO,eAAe,CAAC,gBAAgB,CAAC,4BAA4B;IACpE,cAAc;IACd,WAAW,EACf,GAAG,CACN,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sCAAsC;IAC1F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,KAAK,GAAG,KAAK,CAAC,kBAAkB,CAAC;YACnC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YACrC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAE9D,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE,EAAE;YACzB,OAAO,IAAI,CAAC;SACf;QAED,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAE/C,OAAO;YACH,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,IAAI;SACb,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,7 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingResult } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENMonthNameLittleEndianParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern(): RegExp;
6
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingResult;
7
+ }
@@ -0,0 +1,54 @@
1
+ import { findYearClosestToRef } from "../../../calculation/years";
2
+ import { MONTH_DICTIONARY } from "../constants";
3
+ import { YEAR_PATTERN, parseYear } from "../constants";
4
+ import { ORDINAL_NUMBER_PATTERN, parseOrdinalNumberPattern } from "../constants";
5
+ import { matchAnyPattern } from "../../../utils/pattern";
6
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
7
+ const PATTERN = new RegExp(`(?:on\\s{0,3})?` +
8
+ `(${ORDINAL_NUMBER_PATTERN})` +
9
+ `(?:` +
10
+ `\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}` +
11
+ `(${ORDINAL_NUMBER_PATTERN})` +
12
+ ")?" +
13
+ `(?:-|/|\\s{0,3}(?:of)?\\s{0,3})` +
14
+ `(${matchAnyPattern(MONTH_DICTIONARY)})` +
15
+ "(?:" +
16
+ `(?:-|/|,?\\s{0,3})` +
17
+ `(${YEAR_PATTERN}(?![^\\s]\\d))` +
18
+ ")?" +
19
+ "(?=\\W|$)", "i");
20
+ const DATE_GROUP = 1;
21
+ const DATE_TO_GROUP = 2;
22
+ const MONTH_NAME_GROUP = 3;
23
+ const YEAR_GROUP = 4;
24
+ export default class ENMonthNameLittleEndianParser extends AbstractParserWithWordBoundaryChecking {
25
+ innerPattern() {
26
+ return PATTERN;
27
+ }
28
+ innerExtract(context, match) {
29
+ const result = context.createParsingResult(match.index, match[0]);
30
+ const month = MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
31
+ const day = parseOrdinalNumberPattern(match[DATE_GROUP]);
32
+ if (day > 31) {
33
+ match.index = match.index + match[DATE_GROUP].length;
34
+ return null;
35
+ }
36
+ result.start.assign("month", month);
37
+ result.start.assign("day", day);
38
+ if (match[YEAR_GROUP]) {
39
+ const yearNumber = parseYear(match[YEAR_GROUP]);
40
+ result.start.assign("year", yearNumber);
41
+ }
42
+ else {
43
+ const year = findYearClosestToRef(context.refDate, day, month);
44
+ result.start.imply("year", year);
45
+ }
46
+ if (match[DATE_TO_GROUP]) {
47
+ const endDate = parseOrdinalNumberPattern(match[DATE_TO_GROUP]);
48
+ result.end = result.start.clone();
49
+ result.end.assign("day", endDate);
50
+ }
51
+ return result;
52
+ }
53
+ }
54
+ //# sourceMappingURL=ENMonthNameLittleEndianParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENMonthNameLittleEndianParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENMonthNameLittleEndianParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAGhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,iBAAiB;IACb,IAAI,sBAAsB,GAAG;IAC7B,KAAK;IACD,oDAAoD;IACpD,IAAI,sBAAsB,GAAG;IACjC,IAAI;IACJ,iCAAiC;IACjC,IAAI,eAAe,CAAC,gBAAgB,CAAC,GAAG;IACxC,KAAK;IACD,oBAAoB;IACpB,IAAI,YAAY,gBAAgB;IACpC,IAAI;IACJ,WAAW,EACf,GAAG,CACN,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,UAAU,GAAG,CAAC,CAAC;AAErB,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,sCAAsC;IAC7F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAElE,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,MAAM,GAAG,GAAG,yBAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,IAAI,GAAG,GAAG,EAAE,EAAE;YAEV,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;YACrD,OAAO,IAAI,CAAC;SACf;QAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEhC,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE;YACnB,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;SAC3C;aAAM;YACH,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;YAC/D,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACpC;QAED,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE;YACtB,MAAM,OAAO,GAAG,yBAAyB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;YAEhE,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAClC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACrC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -0,0 +1,6 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
3
+ export default class ENMonthNameMiddleEndianParser extends AbstractParserWithWordBoundaryChecking {
4
+ innerPattern(): RegExp;
5
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): import("../../../results").ParsingComponents | import("../../../results").ParsingResult;
6
+ }
@@ -0,0 +1,56 @@
1
+ import { findYearClosestToRef } from "../../../calculation/years";
2
+ import { MONTH_DICTIONARY } from "../constants";
3
+ import { ORDINAL_NUMBER_PATTERN, parseOrdinalNumberPattern } from "../constants";
4
+ import { YEAR_PATTERN, parseYear } from "../constants";
5
+ import { matchAnyPattern } from "../../../utils/pattern";
6
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
7
+ const PATTERN = new RegExp(`(${matchAnyPattern(MONTH_DICTIONARY)})` +
8
+ "(?:-|/|\\s*,?\\s*)" +
9
+ `(${ORDINAL_NUMBER_PATTERN})(?!\\s*(?:am|pm))\\s*` +
10
+ "(?:" +
11
+ "(?:to|\\-)\\s*" +
12
+ `(${ORDINAL_NUMBER_PATTERN})\\s*` +
13
+ ")?" +
14
+ "(?:" +
15
+ "(?:-|/|\\s*,?\\s*)" +
16
+ `(${YEAR_PATTERN})` +
17
+ ")?" +
18
+ "(?=\\W|$)(?!\\:\\d)", "i");
19
+ const MONTH_NAME_GROUP = 1;
20
+ const DATE_GROUP = 2;
21
+ const DATE_TO_GROUP = 3;
22
+ const YEAR_GROUP = 4;
23
+ export default class ENMonthNameMiddleEndianParser extends AbstractParserWithWordBoundaryChecking {
24
+ innerPattern() {
25
+ return PATTERN;
26
+ }
27
+ innerExtract(context, match) {
28
+ const month = MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
29
+ const day = parseOrdinalNumberPattern(match[DATE_GROUP]);
30
+ if (day > 31) {
31
+ return null;
32
+ }
33
+ const components = context.createParsingComponents({
34
+ day: day,
35
+ month: month,
36
+ });
37
+ if (match[YEAR_GROUP]) {
38
+ const year = parseYear(match[YEAR_GROUP]);
39
+ components.assign("year", year);
40
+ }
41
+ else {
42
+ const year = findYearClosestToRef(context.refDate, day, month);
43
+ components.imply("year", year);
44
+ }
45
+ if (!match[DATE_TO_GROUP]) {
46
+ return components;
47
+ }
48
+ const endDate = parseOrdinalNumberPattern(match[DATE_TO_GROUP]);
49
+ const result = context.createParsingResult(match.index, match[0]);
50
+ result.start = components;
51
+ result.end = components.clone();
52
+ result.end.assign("day", endDate);
53
+ return result;
54
+ }
55
+ }
56
+ //# sourceMappingURL=ENMonthNameMiddleEndianParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENMonthNameMiddleEndianParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENMonthNameMiddleEndianParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,IAAI,eAAe,CAAC,gBAAgB,CAAC,GAAG;IACpC,oBAAoB;IACpB,IAAI,sBAAsB,wBAAwB;IAClD,KAAK;IACL,gBAAgB;IAChB,IAAI,sBAAsB,OAAO;IACjC,IAAI;IACJ,KAAK;IACL,oBAAoB;IACpB,IAAI,YAAY,GAAG;IACnB,IAAI;IACJ,qBAAqB,EACzB,GAAG,CACN,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,UAAU,GAAG,CAAC,CAAC;AAYrB,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,sCAAsC;IAC7F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,MAAM,GAAG,GAAG,yBAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,IAAI,GAAG,GAAG,EAAE,EAAE;YACV,OAAO,IAAI,CAAC;SACf;QAED,MAAM,UAAU,GAAG,OAAO,CAAC,uBAAuB,CAAC;YAC/C,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,KAAK;SACf,CAAC,CAAC;QAEH,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE;YACnB,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;YAC1C,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACnC;aAAM;YACH,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;YAC/D,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SAClC;QAED,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;YACvB,OAAO,UAAU,CAAC;SACrB;QAGD,MAAM,OAAO,GAAG,yBAAyB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC;QAC1B,MAAM,CAAC,GAAG,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -0,0 +1,6 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
3
+ export default class ENMonthNameParser extends AbstractParserWithWordBoundaryChecking {
4
+ innerPattern(): RegExp;
5
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): import("../../../results").ParsingResult;
6
+ }
@@ -0,0 +1,40 @@
1
+ import { FULL_MONTH_NAME_DICTIONARY, MONTH_DICTIONARY } from "../constants";
2
+ import { findYearClosestToRef } from "../../../calculation/years";
3
+ import { matchAnyPattern } from "../../../utils/pattern";
4
+ import { YEAR_PATTERN, parseYear } from "../constants";
5
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
6
+ const PATTERN = new RegExp(`((?:in)\\s*)?` +
7
+ `(${matchAnyPattern(MONTH_DICTIONARY)})` +
8
+ `\\s*` +
9
+ `(?:` +
10
+ `[,-]?\\s*(${YEAR_PATTERN})?` +
11
+ ")?" +
12
+ "(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)", "i");
13
+ const PREFIX_GROUP = 1;
14
+ const MONTH_NAME_GROUP = 2;
15
+ const YEAR_GROUP = 3;
16
+ export default class ENMonthNameParser extends AbstractParserWithWordBoundaryChecking {
17
+ innerPattern() {
18
+ return PATTERN;
19
+ }
20
+ innerExtract(context, match) {
21
+ const monthName = match[MONTH_NAME_GROUP].toLowerCase();
22
+ if (match[0].length <= 3 && !FULL_MONTH_NAME_DICTIONARY[monthName]) {
23
+ return null;
24
+ }
25
+ const result = context.createParsingResult(match.index + (match[PREFIX_GROUP] || "").length, match.index + match[0].length);
26
+ result.start.imply("day", 1);
27
+ const month = MONTH_DICTIONARY[monthName];
28
+ result.start.assign("month", month);
29
+ if (match[YEAR_GROUP]) {
30
+ const year = parseYear(match[YEAR_GROUP]);
31
+ result.start.assign("year", year);
32
+ }
33
+ else {
34
+ const year = findYearClosestToRef(context.refDate, 1, month);
35
+ result.start.imply("year", year);
36
+ }
37
+ return result;
38
+ }
39
+ }
40
+ //# sourceMappingURL=ENMonthNameParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENMonthNameParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENMonthNameParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,eAAe;IACX,IAAI,eAAe,CAAC,gBAAgB,CAAC,GAAG;IACxC,MAAM;IACN,KAAK;IACL,aAAa,YAAY,IAAI;IAC7B,IAAI;IACJ,kCAAkC,EACtC,GAAG,CACN,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,UAAU,GAAG,CAAC,CAAC;AASrB,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,sCAAsC;IACjF,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC;QAGxD,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE;YAChE,OAAO,IAAI,CAAC;SACf;QAED,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CACtC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAChD,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAChC,CAAC;QACF,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAE7B,MAAM,KAAK,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC1C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAEpC,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE;YACnB,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;YAC1C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACrC;aAAM;YACH,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;YAC7D,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACpC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -0,0 +1,7 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENRelativeDateFormatParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern(): RegExp;
6
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
7
+ }
@@ -0,0 +1,51 @@
1
+ import { TIME_UNIT_DICTIONARY } from "../constants";
2
+ import { ParsingComponents } from "../../../results";
3
+ import dayjs from "dayjs";
4
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
5
+ import { matchAnyPattern } from "../../../utils/pattern";
6
+ const PATTERN = new RegExp(`(this|last|past|next|after\\s*this)\\s*(${matchAnyPattern(TIME_UNIT_DICTIONARY)})(?=\\s*)` + "(?=\\W|$)", "i");
7
+ const MODIFIER_WORD_GROUP = 1;
8
+ const RELATIVE_WORD_GROUP = 2;
9
+ export default class ENRelativeDateFormatParser extends AbstractParserWithWordBoundaryChecking {
10
+ innerPattern() {
11
+ return PATTERN;
12
+ }
13
+ innerExtract(context, match) {
14
+ const modifier = match[MODIFIER_WORD_GROUP].toLowerCase();
15
+ const unitWord = match[RELATIVE_WORD_GROUP].toLowerCase();
16
+ const timeunit = TIME_UNIT_DICTIONARY[unitWord];
17
+ if (modifier == "next" || modifier.startsWith("after")) {
18
+ const timeUnits = {};
19
+ timeUnits[timeunit] = 1;
20
+ return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
21
+ }
22
+ if (modifier == "last" || modifier == "past") {
23
+ const timeUnits = {};
24
+ timeUnits[timeunit] = -1;
25
+ return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
26
+ }
27
+ const components = context.createParsingComponents();
28
+ let date = dayjs(context.reference.instant);
29
+ if (unitWord.match(/week/i)) {
30
+ date = date.add(-date.get("d"), "d");
31
+ components.imply("day", date.date());
32
+ components.imply("month", date.month() + 1);
33
+ components.imply("year", date.year());
34
+ }
35
+ else if (unitWord.match(/month/i)) {
36
+ date = date.add(-date.date() + 1, "d");
37
+ components.imply("day", date.date());
38
+ components.assign("year", date.year());
39
+ components.assign("month", date.month() + 1);
40
+ }
41
+ else if (unitWord.match(/year/i)) {
42
+ date = date.add(-date.date() + 1, "d");
43
+ date = date.add(-date.month(), "month");
44
+ components.imply("day", date.date());
45
+ components.imply("month", date.month() + 1);
46
+ components.assign("year", date.year());
47
+ }
48
+ return components;
49
+ }
50
+ }
51
+ //# sourceMappingURL=ENRelativeDateFormatParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENRelativeDateFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENRelativeDateFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,2CAA2C,eAAe,CAAC,oBAAoB,CAAC,WAAW,GAAG,WAAW,EACzG,GAAG,CACN,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sCAAsC;IAC1F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,QAAQ,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1D,MAAM,QAAQ,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAEhD,IAAI,QAAQ,IAAI,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YACpD,MAAM,SAAS,GAAG,EAAE,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;SACtF;QAED,IAAI,QAAQ,IAAI,MAAM,IAAI,QAAQ,IAAI,MAAM,EAAE;YAC1C,MAAM,SAAS,GAAG,EAAE,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YACzB,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;SACtF;QAED,MAAM,UAAU,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACrD,IAAI,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAG5C,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;YACzB,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACrC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;YAC5C,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;SACzC;aAGI,IAAI,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;YAC/B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACvC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACvC,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;SAChD;aAGI,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACvC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;YAExC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;YAC5C,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ"}
@@ -0,0 +1,7 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENSlashMonthFormatParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern(): RegExp;
6
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
2
+ const PATTERN = new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})" + "", "i");
3
+ const MONTH_GROUP = 1;
4
+ const YEAR_GROUP = 2;
5
+ export default class ENSlashMonthFormatParser extends AbstractParserWithWordBoundaryChecking {
6
+ innerPattern() {
7
+ return PATTERN;
8
+ }
9
+ innerExtract(context, match) {
10
+ const year = parseInt(match[YEAR_GROUP]);
11
+ const month = parseInt(match[MONTH_GROUP]);
12
+ return context.createParsingComponents().imply("day", 1).assign("month", month).assign("year", year);
13
+ }
14
+ }
15
+ //# sourceMappingURL=ENSlashMonthFormatParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENSlashMonthFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENSlashMonthFormatParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,kCAAkC,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;AAEzE,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,UAAU,GAAG,CAAC,CAAC;AAOrB,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sCAAsC;IACxF,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;QAE3C,OAAO,OAAO,CAAC,uBAAuB,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACzG,CAAC;CACJ"}
@@ -0,0 +1,10 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractTimeExpressionParser } from "../../../common/parsers/AbstractTimeExpressionParser";
4
+ export default class ENTimeExpressionParser extends AbstractTimeExpressionParser {
5
+ constructor(strictMode: any);
6
+ followingPhase(): string;
7
+ primaryPrefix(): string;
8
+ primarySuffix(): string;
9
+ extractPrimaryTimeComponents(context: ParsingContext, match: RegExpMatchArray): null | ParsingComponents;
10
+ }
@@ -0,0 +1,47 @@
1
+ import { Meridiem } from "../../../index";
2
+ import { AbstractTimeExpressionParser } from "../../../common/parsers/AbstractTimeExpressionParser";
3
+ export default class ENTimeExpressionParser extends AbstractTimeExpressionParser {
4
+ constructor(strictMode) {
5
+ super(strictMode);
6
+ }
7
+ followingPhase() {
8
+ return "\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*";
9
+ }
10
+ primaryPrefix() {
11
+ return "(?:(?:at|from)\\s*)??";
12
+ }
13
+ primarySuffix() {
14
+ return "(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)";
15
+ }
16
+ extractPrimaryTimeComponents(context, match) {
17
+ const components = super.extractPrimaryTimeComponents(context, match);
18
+ if (components) {
19
+ if (match[0].endsWith("night")) {
20
+ const hour = components.get("hour");
21
+ if (hour >= 6 && hour < 12) {
22
+ components.assign("hour", components.get("hour") + 12);
23
+ components.assign("meridiem", Meridiem.PM);
24
+ }
25
+ else if (hour < 6) {
26
+ components.assign("meridiem", Meridiem.AM);
27
+ }
28
+ }
29
+ if (match[0].endsWith("afternoon")) {
30
+ components.assign("meridiem", Meridiem.PM);
31
+ const hour = components.get("hour");
32
+ if (hour >= 0 && hour <= 6) {
33
+ components.assign("hour", components.get("hour") + 12);
34
+ }
35
+ }
36
+ if (match[0].endsWith("morning")) {
37
+ components.assign("meridiem", Meridiem.AM);
38
+ const hour = components.get("hour");
39
+ if (hour < 12) {
40
+ components.assign("hour", components.get("hour"));
41
+ }
42
+ }
43
+ }
44
+ return components;
45
+ }
46
+ }
47
+ //# sourceMappingURL=ENTimeExpressionParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENTimeExpressionParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeExpressionParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,4BAA4B;IAC5E,YAAY,UAAU;QAClB,KAAK,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;IAED,cAAc;QACV,OAAO,uDAAuD,CAAC;IACnE,CAAC;IAED,aAAa;QACT,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,aAAa;QACT,OAAO,sFAAsF,CAAC;IAClG,CAAC;IAED,4BAA4B,CAAC,OAAuB,EAAE,KAAuB;QACzE,MAAM,UAAU,GAAG,KAAK,CAAC,4BAA4B,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtE,IAAI,UAAU,EAAE;YACZ,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAC5B,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,GAAG,EAAE,EAAE;oBACxB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;oBACvD,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;iBAC9C;qBAAM,IAAI,IAAI,GAAG,CAAC,EAAE;oBACjB,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;iBAC9C;aACJ;YAED,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;gBAChC,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE;oBACxB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;iBAC1D;aACJ;YAED,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;gBAC9B,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpC,IAAI,IAAI,GAAG,EAAE,EAAE;oBACX,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;iBACrD;aACJ;SACJ;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ"}
@@ -0,0 +1,9 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENTimeUnitAgoFormatParser extends AbstractParserWithWordBoundaryChecking {
5
+ private strictMode;
6
+ constructor(strictMode: boolean);
7
+ innerPattern(): RegExp;
8
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
9
+ }
@@ -0,0 +1,21 @@
1
+ import { parseTimeUnits, TIME_UNITS_PATTERN } from "../constants";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ import { reverseTimeUnits } from "../../../utils/timeunits";
5
+ const PATTERN = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=(?:\\W|$))`, "i");
6
+ const STRICT_PATTERN = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}ago(?=(?:\\W|$))`, "i");
7
+ export default class ENTimeUnitAgoFormatParser extends AbstractParserWithWordBoundaryChecking {
8
+ constructor(strictMode) {
9
+ super();
10
+ this.strictMode = strictMode;
11
+ }
12
+ innerPattern() {
13
+ return this.strictMode ? STRICT_PATTERN : PATTERN;
14
+ }
15
+ innerExtract(context, match) {
16
+ const timeUnits = parseTimeUnits(match[1]);
17
+ const outputTimeUnits = reverseTimeUnits(timeUnits);
18
+ return ParsingComponents.createRelativeFromReference(context.reference, outputTimeUnits);
19
+ }
20
+ }
21
+ //# sourceMappingURL=ENTimeUnitAgoFormatParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENTimeUnitAgoFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,IAAI,kBAAkB,8CAA8C,EAAE,GAAG,CAAC,CAAC;AACtG,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,IAAI,kBAAkB,2BAA2B,EAAE,GAAG,CAAC,CAAC;AAE1F,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,sCAAsC;IACzF,YAAoB,UAAmB;QACnC,KAAK,EAAE,CAAC;QADQ,eAAU,GAAV,UAAU,CAAS;IAEvC,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAEpD,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAC7F,CAAC;CACJ"}
@@ -0,0 +1,7 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENTimeUnitCasualRelativeFormatParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern(): RegExp;
6
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
7
+ }
@@ -0,0 +1,23 @@
1
+ import { TIME_UNITS_PATTERN, parseTimeUnits } from "../constants";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ import { reverseTimeUnits } from "../../../utils/timeunits";
5
+ const PATTERN = new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
6
+ export default class ENTimeUnitCasualRelativeFormatParser extends AbstractParserWithWordBoundaryChecking {
7
+ innerPattern() {
8
+ return PATTERN;
9
+ }
10
+ innerExtract(context, match) {
11
+ const prefix = match[1].toLowerCase();
12
+ let timeUnits = parseTimeUnits(match[2]);
13
+ switch (prefix) {
14
+ case "last":
15
+ case "past":
16
+ case "-":
17
+ timeUnits = reverseTimeUnits(timeUnits);
18
+ break;
19
+ }
20
+ return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
21
+ }
22
+ }
23
+ //# sourceMappingURL=ENTimeUnitCasualRelativeFormatParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENTimeUnitCasualRelativeFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,yCAAyC,kBAAkB,YAAY,EAAE,GAAG,CAAC,CAAC;AAEzG,MAAM,CAAC,OAAO,OAAO,oCAAqC,SAAQ,sCAAsC;IACpG,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACtC,IAAI,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,QAAQ,MAAM,EAAE;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,GAAG;gBACJ,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;gBACxC,MAAM;SACb;QAED,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
@@ -0,0 +1,9 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENTimeUnitLaterFormatParser extends AbstractParserWithWordBoundaryChecking {
5
+ private strictMode;
6
+ constructor(strictMode: boolean);
7
+ innerPattern(): RegExp;
8
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
9
+ }
@@ -0,0 +1,20 @@
1
+ import { parseTimeUnits, TIME_UNITS_PATTERN } from "../constants";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ const PATTERN = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}(?:later|after|from now|henceforth|forward|out)` + "(?=(?:\\W|$))", "i");
5
+ const STRICT_PATTERN = new RegExp("" + "(" + TIME_UNITS_PATTERN + ")" + "(later|from now)" + "(?=(?:\\W|$))", "i");
6
+ const GROUP_NUM_TIMEUNITS = 1;
7
+ export default class ENTimeUnitLaterFormatParser extends AbstractParserWithWordBoundaryChecking {
8
+ constructor(strictMode) {
9
+ super();
10
+ this.strictMode = strictMode;
11
+ }
12
+ innerPattern() {
13
+ return this.strictMode ? STRICT_PATTERN : PATTERN;
14
+ }
15
+ innerExtract(context, match) {
16
+ const fragments = parseTimeUnits(match[GROUP_NUM_TIMEUNITS]);
17
+ return ParsingComponents.createRelativeFromReference(context.reference, fragments);
18
+ }
19
+ }
20
+ //# sourceMappingURL=ENTimeUnitLaterFormatParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENTimeUnitLaterFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,IAAI,kBAAkB,0DAA0D,GAAG,eAAe,EAClG,GAAG,CACN,CAAC;AAEF,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,EAAE,GAAG,GAAG,GAAG,kBAAkB,GAAG,GAAG,GAAG,kBAAkB,GAAG,eAAe,EAAE,GAAG,CAAC,CAAC;AACnH,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,sCAAsC;IAC3F,YAAoB,UAAmB;QACnC,KAAK,EAAE,CAAC;QADQ,eAAU,GAAV,UAAU,CAAS;IAEvC,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;QAC7D,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
@@ -0,0 +1,7 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENTimeUnitWithinFormatParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern(context: ParsingContext): RegExp;
6
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
7
+ }
@@ -0,0 +1,16 @@
1
+ import { TIME_UNITS_PATTERN, parseTimeUnits } from "../constants";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ const PATTERN_WITH_PREFIX = new RegExp(`(?:within|in|for)\\s*` +
5
+ `(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
6
+ const PATTERN_WITHOUT_PREFIX = new RegExp(`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
7
+ export default class ENTimeUnitWithinFormatParser extends AbstractParserWithWordBoundaryChecking {
8
+ innerPattern(context) {
9
+ return context.option.forwardDate ? PATTERN_WITHOUT_PREFIX : PATTERN_WITH_PREFIX;
10
+ }
11
+ innerExtract(context, match) {
12
+ const timeUnits = parseTimeUnits(match[1]);
13
+ return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
14
+ }
15
+ }
16
+ //# sourceMappingURL=ENTimeUnitWithinFormatParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ENTimeUnitWithinFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAClC,uBAAuB;IACnB,kEAAkE,kBAAkB,YAAY,EACpG,GAAG,CACN,CAAC;AAEF,MAAM,sBAAsB,GAAG,IAAI,MAAM,CACrC,kEAAkE,kBAAkB,YAAY,EAChG,GAAG,CACN,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,sCAAsC;IAC5F,YAAY,CAAC,OAAuB;QAChC,OAAO,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IACrF,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
@@ -0,0 +1,7 @@
1
+ import { ParsingContext } from "../../../chrono";
2
+ import { ParsingComponents } from "../../../results";
3
+ import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
4
+ export default class ENWeekdayParser extends AbstractParserWithWordBoundaryChecking {
5
+ innerPattern(): RegExp;
6
+ innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
7
+ }