chrono-node 2.5.0 → 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.
- package/.idea/workspace.xml +45 -62
- package/README.md +3 -1
- package/dist/calculation/mergingCalculation.js +4 -2
- package/dist/calculation/mergingCalculation.js.map +1 -1
- package/dist/esm/calculation/mergingCalculation.d.ts +3 -0
- package/dist/esm/calculation/mergingCalculation.js +69 -0
- package/dist/esm/calculation/mergingCalculation.js.map +1 -0
- package/dist/esm/calculation/years.d.ts +2 -0
- package/dist/esm/calculation/years.js +29 -0
- package/dist/esm/calculation/years.js.map +1 -0
- package/dist/esm/chrono.d.ts +41 -0
- package/dist/esm/chrono.js +99 -0
- package/dist/esm/chrono.js.map +1 -0
- package/dist/esm/common/abstractRefiners.d.ts +11 -0
- package/dist/esm/common/abstractRefiners.js +37 -0
- package/dist/esm/common/abstractRefiners.js.map +1 -0
- package/dist/esm/common/calculation/weekdays.d.ts +7 -0
- package/dist/esm/common/calculation/weekdays.js +60 -0
- package/dist/esm/common/calculation/weekdays.js.map +1 -0
- package/dist/esm/common/casualReferences.d.ts +15 -0
- package/dist/esm/common/casualReferences.js +111 -0
- package/dist/esm/common/casualReferences.js.map +1 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.d.ts +25 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js +28 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js.map +1 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.d.ts +26 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.js +322 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.js.map +1 -0
- package/dist/esm/common/parsers/ISOFormatParser.d.ts +17 -0
- package/dist/esm/common/parsers/ISOFormatParser.js +62 -0
- package/dist/esm/common/parsers/ISOFormatParser.js.map +1 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.d.ts +9 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.js +64 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.js.map +1 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.d.ts +7 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js +51 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.d.ts +7 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js +18 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.d.ts +9 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js +240 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js +37 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.js +67 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.js.map +1 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.d.ts +6 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js +20 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js.map +1 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.js +26 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.js.map +1 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.d.ts +8 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.js +47 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.js.map +1 -0
- package/dist/esm/configurations.d.ts +2 -0
- package/dist/esm/configurations.js +19 -0
- package/dist/esm/configurations.js.map +1 -0
- package/dist/esm/debugging.d.ts +11 -0
- package/dist/esm/debugging.js +14 -0
- package/dist/esm/debugging.js.map +1 -0
- package/dist/esm/index.d.ts +53 -0
- package/dist/esm/index.js +36 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/locales/de/constants.d.ts +20 -0
- package/dist/esm/locales/de/constants.js +171 -0
- package/dist/esm/locales/de/constants.js.map +1 -0
- package/dist/esm/locales/de/index.d.ts +8 -0
- package/dist/esm/locales/de/index.js +44 -0
- package/dist/esm/locales/de/index.js.map +1 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.js +61 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.js +69 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js +47 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js +112 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.js +16 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js +32 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.js +40 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.js.map +1 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/en/constants.d.ts +29 -0
- package/dist/esm/locales/en/constants.js +229 -0
- package/dist/esm/locales/en/constants.js.map +1 -0
- package/dist/esm/locales/en/index.d.ts +9 -0
- package/dist/esm/locales/en/index.js +56 -0
- package/dist/esm/locales/en/index.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.js +26 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.d.ts +10 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js +32 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js +54 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js +56 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js +51 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js +15 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.d.ts +10 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js +47 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.d.ts +9 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js +21 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js +23 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.d.ts +9 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js +20 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js +16 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.d.ts +7 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js +33 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js.map +1 -0
- package/dist/esm/locales/es/constants.d.ts +21 -0
- package/dist/esm/locales/es/constants.js +159 -0
- package/dist/esm/locales/es/constants.js.map +1 -0
- package/dist/esm/locales/es/index.d.ts +8 -0
- package/dist/esm/locales/es/index.js +38 -0
- package/dist/esm/locales/es/index.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.js +23 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.js +40 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js +46 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.d.ts +5 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js +10 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.js +41 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.js.map +1 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/fr/constants.d.ts +23 -0
- package/dist/esm/locales/fr/constants.js +161 -0
- package/dist/esm/locales/fr/constants.js.map +1 -0
- package/dist/esm/locales/fr/index.d.ts +8 -0
- package/dist/esm/locales/fr/index.js +44 -0
- package/dist/esm/locales/fr/index.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.js +38 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js +40 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js +48 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js +97 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js +16 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js +18 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js +33 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.js +36 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.js.map +1 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/ja/constants.d.ts +1 -0
- package/dist/esm/locales/ja/constants.js +12 -0
- package/dist/esm/locales/ja/constants.js.map +1 -0
- package/dist/esm/locales/ja/index.d.ts +8 -0
- package/dist/esm/locales/ja/index.js +24 -0
- package/dist/esm/locales/ja/index.js.map +1 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.d.ts +5 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.js +36 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.js.map +1 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.d.ts +5 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.js +47 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.js.map +1 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/nl/constants.d.ts +25 -0
- package/dist/esm/locales/nl/constants.js +204 -0
- package/dist/esm/locales/nl/constants.js.map +1 -0
- package/dist/esm/locales/nl/index.d.ts +8 -0
- package/dist/esm/locales/nl/index.js +55 -0
- package/dist/esm/locales/nl/index.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.js +24 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js +48 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js +50 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.d.ts +10 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js +32 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js +60 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.js +35 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js +52 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js +15 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js +19 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js +21 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js +23 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js +20 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.js +38 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.js.map +1 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/pt/constants.d.ts +8 -0
- package/dist/esm/locales/pt/constants.js +81 -0
- package/dist/esm/locales/pt/constants.js.map +1 -0
- package/dist/esm/locales/pt/index.d.ts +8 -0
- package/dist/esm/locales/pt/index.js +36 -0
- package/dist/esm/locales/pt/index.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.js +24 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js +40 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js +46 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.d.ts +5 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js +10 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.js +41 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.js.map +1 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/ru/constants.d.ts +33 -0
- package/dist/esm/locales/ru/constants.js +314 -0
- package/dist/esm/locales/ru/constants.js.map +1 -0
- package/dist/esm/locales/ru/index.d.ts +8 -0
- package/dist/esm/locales/ru/index.js +46 -0
- package/dist/esm/locales/ru/index.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.js +30 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.d.ts +7 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js +49 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js +56 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.d.ts +7 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.js +42 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js +54 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.d.ts +12 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js +54 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js +19 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js +26 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js +19 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.js +46 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.js.map +1 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hans/constants.d.ts +27 -0
- package/dist/esm/locales/zh/hans/constants.js +47 -0
- package/dist/esm/locales/zh/hans/constants.js.map +1 -0
- package/dist/esm/locales/zh/hans/index.d.ts +9 -0
- package/dist/esm/locales/zh/hans/index.js +40 -0
- package/dist/esm/locales/zh/hans/index.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js +133 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js +67 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js +73 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js +65 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js +433 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js +41 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hant/constants.d.ts +28 -0
- package/dist/esm/locales/zh/hant/constants.js +48 -0
- package/dist/esm/locales/zh/hant/constants.js.map +1 -0
- package/dist/esm/locales/zh/hant/index.d.ts +9 -0
- package/dist/esm/locales/zh/hant/index.js +40 -0
- package/dist/esm/locales/zh/hant/index.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js +133 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js +59 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js +73 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js +65 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js +433 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js +41 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/index.d.ts +2 -0
- package/dist/esm/locales/zh/index.js +3 -0
- package/dist/esm/locales/zh/index.js.map +1 -0
- package/dist/esm/results.d.ts +48 -0
- package/dist/esm/results.js +201 -0
- package/dist/esm/results.js.map +1 -0
- package/dist/esm/timezone.d.ts +194 -0
- package/dist/esm/timezone.js +203 -0
- package/dist/esm/timezone.js.map +1 -0
- package/dist/esm/utils/dayjs.d.ts +8 -0
- package/dist/esm/utils/dayjs.js +40 -0
- package/dist/esm/utils/dayjs.js.map +1 -0
- package/dist/esm/utils/pattern.d.ts +7 -0
- package/dist/esm/utils/pattern.js +25 -0
- package/dist/esm/utils/pattern.js.map +1 -0
- package/dist/esm/utils/timeunits.d.ts +7 -0
- package/dist/esm/utils/timeunits.js +26 -0
- package/dist/esm/utils/timeunits.js.map +1 -0
- package/dist/locales/de/constants.js +8 -8
- package/dist/locales/de/constants.js.map +1 -1
- package/dist/locales/de/index.js +2 -0
- package/dist/locales/de/index.js.map +1 -1
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js +16 -0
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
- package/dist/locales/en/constants.js +3 -2
- package/dist/locales/en/constants.js.map +1 -1
- package/dist/locales/en/parsers/ENCasualDateParser.js +7 -1
- package/dist/locales/en/parsers/ENCasualDateParser.js.map +1 -1
- package/dist/locales/en/parsers/ENTimeExpressionParser.js +1 -1
- package/dist/locales/en/parsers/ENTimeExpressionParser.js.map +1 -1
- package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js +1 -1
- package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -1
- package/dist/locales/es/constants.d.ts +13 -0
- package/dist/locales/es/constants.js +82 -1
- package/dist/locales/es/constants.js.map +1 -1
- package/dist/locales/es/index.js +2 -0
- package/dist/locales/es/index.js.map +1 -1
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js +16 -0
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/locales/nl/constants.js +2 -0
- package/dist/locales/nl/constants.js.map +1 -1
- package/dist/locales/ru/parsers/RUCasualDateParser.js +5 -1
- package/dist/locales/ru/parsers/RUCasualDateParser.js.map +1 -1
- package/package.json +1 -1
- package/src/calculation/mergingCalculation.ts +6 -3
- package/src/locales/de/constants.ts +8 -8
- package/src/locales/de/index.ts +2 -0
- package/src/locales/de/parsers/DETimeUnitWithinFormatParser.ts +15 -0
- package/src/locales/en/constants.ts +3 -2
- package/src/locales/en/parsers/ENCasualDateParser.ts +10 -1
- package/src/locales/en/parsers/ENTimeExpressionParser.ts +1 -1
- package/src/locales/en/refiners/ENMergeDateRangeRefiner.ts +1 -1
- package/src/locales/es/constants.ts +89 -0
- package/src/locales/es/index.ts +3 -1
- package/src/locales/es/parsers/ESTimeUnitWithinFormatParser.ts +15 -0
- package/src/locales/nl/constants.ts +2 -0
- package/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts +2 -2
- package/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts +1 -1
- package/src/locales/ru/parsers/RUCasualDateParser.ts +7 -1
- package/test/de/de_time_units_within.test.ts +119 -0
- package/test/en/en.test.ts +10 -0
- package/test/en/en_time_exp.test.ts +60 -0
- package/test/en/en_time_units_ago.test.ts +36 -0
- package/test/en/en_time_units_casual_relative.test.ts +16 -1
- package/test/en/en_time_units_later.test.ts +46 -0
- package/test/es/es_time_units_within.test.ts +119 -0
- package/test/nl/nl_month.test.ts +25 -0
- package/test/ru/ru_casual.test.ts +12 -0
- package/test/system.test.ts +15 -1
- package/coverage/clover.xml +0 -4771
- package/coverage/coverage-final.json +0 -147
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -686
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/results.ts.html +0 -701
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/calculation/index.html +0 -131
- package/coverage/lcov-report/src/calculation/mergingCalculation.ts.html +0 -319
- package/coverage/lcov-report/src/calculation/weeks.ts.html +0 -199
- package/coverage/lcov-report/src/calculation/yearCalculation.ts.html +0 -194
- package/coverage/lcov-report/src/calculation/years.ts.html +0 -199
- package/coverage/lcov-report/src/chrono.js.html +0 -368
- package/coverage/lcov-report/src/chrono.ts.html +0 -649
- package/coverage/lcov-report/src/common/abstractRefiners.ts.html +0 -286
- package/coverage/lcov-report/src/common/calculation/index.html +0 -116
- package/coverage/lcov-report/src/common/calculation/weekdays.ts.html +0 -352
- package/coverage/lcov-report/src/common/casualReferences.ts.html +0 -499
- package/coverage/lcov-report/src/common/index.html +0 -131
- package/coverage/lcov-report/src/common/parsers/AbstractParserWithWordBoundary.ts.html +0 -214
- package/coverage/lcov-report/src/common/parsers/AbstractTimeExpressionParser.ts.html +0 -1384
- package/coverage/lcov-report/src/common/parsers/ISOFormatParser.ts.html +0 -340
- package/coverage/lcov-report/src/common/parsers/SlashDateFormatParser.ts.html +0 -385
- package/coverage/lcov-report/src/common/parsers/index.html +0 -161
- package/coverage/lcov-report/src/common/refiners/AbstractMergeDateRangeRefiner.ts.html +0 -268
- package/coverage/lcov-report/src/common/refiners/AbstractMergeDateTimeRefiner.ts.html +0 -172
- package/coverage/lcov-report/src/common/refiners/ExtractTimezoneAbbrRefiner.ts.html +0 -883
- package/coverage/lcov-report/src/common/refiners/ExtractTimezoneOffsetRefiner.ts.html +0 -226
- package/coverage/lcov-report/src/common/refiners/ForwardDateRefiner.ts.html +0 -334
- package/coverage/lcov-report/src/common/refiners/MergeWeekdayComponentRefiner.ts.html +0 -187
- package/coverage/lcov-report/src/common/refiners/OverlapRemovalRefiner.ts.html +0 -199
- package/coverage/lcov-report/src/common/refiners/UnlikelyFormatFilter.ts.html +0 -265
- package/coverage/lcov-report/src/common/refiners/index.html +0 -221
- package/coverage/lcov-report/src/configurations.ts.html +0 -154
- package/coverage/lcov-report/src/debugging.ts.html +0 -154
- package/coverage/lcov-report/src/index.html +0 -191
- package/coverage/lcov-report/src/index.ts.html +0 -520
- package/coverage/lcov-report/src/locales/de/constants.ts.html +0 -664
- package/coverage/lcov-report/src/locales/de/index.html +0 -131
- package/coverage/lcov-report/src/locales/de/index.ts.html +0 -238
- package/coverage/lcov-report/src/locales/de/parsers/DECasualDateParser.ts.html +0 -325
- package/coverage/lcov-report/src/locales/de/parsers/DECasualTimeParser.ts.html +0 -325
- package/coverage/lcov-report/src/locales/de/parsers/DEMonthNameLittleEndianParser.ts.html +0 -268
- package/coverage/lcov-report/src/locales/de/parsers/DESpecificTimeExpressionParser.ts.html +0 -535
- package/coverage/lcov-report/src/locales/de/parsers/DETimeExpressionParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/de/parsers/DETimeUnitRelativeFormatParser.ts.html +0 -211
- package/coverage/lcov-report/src/locales/de/parsers/DEWeekdayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/de/parsers/index.html +0 -206
- package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/de/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/en/constants.ts.html +0 -859
- package/coverage/lcov-report/src/locales/en/index.html +0 -131
- package/coverage/lcov-report/src/locales/en/index.ts.html +0 -382
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualDateParser.ts.html +0 -244
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualTimeParser.ts.html +0 -169
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualYearMonthDayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/en/parsers/ENDeadlineFormatParser.ts.html +0 -311
- package/coverage/lcov-report/src/locales/en/parsers/ENISOFormatParser.ts.html +0 -317
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameLittleEndianParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameMiddleEndianParser.ts.html +0 -319
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameParser.ts.html +0 -271
- package/coverage/lcov-report/src/locales/en/parsers/ENRelativeDateFormatParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatParser.ts.html +0 -443
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatStartWithYearParser.ts.html +0 -221
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashMonthFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeExpressionParser.ts.html +0 -250
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts.html +0 -160
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitDeadlineFormatParser.ts.html +0 -149
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/en/parsers/ENWeekdayParser.ts.html +0 -229
- package/coverage/lcov-report/src/locales/en/parsers/index.html +0 -311
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateRangeRefiner.ts.html +0 -136
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeRelativeDateRefiner.ts.html +0 -259
- package/coverage/lcov-report/src/locales/en/refiners/index.html +0 -146
- package/coverage/lcov-report/src/locales/es/constants.ts.html +0 -340
- package/coverage/lcov-report/src/locales/es/index.html +0 -131
- package/coverage/lcov-report/src/locales/es/index.ts.html +0 -256
- package/coverage/lcov-report/src/locales/es/parsers/ESCasualDateParser.ts.html +0 -178
- package/coverage/lcov-report/src/locales/es/parsers/ESCasualTimeParser.ts.html +0 -226
- package/coverage/lcov-report/src/locales/es/parsers/ESMonthNameLittleEndianParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/es/parsers/ESTimeExpressionParser.ts.html +0 -145
- package/coverage/lcov-report/src/locales/es/parsers/ESWeekdayParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/es/parsers/index.html +0 -176
- package/coverage/lcov-report/src/locales/es/refiners/ESMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/es/refiners/ESMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/es/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/fr/constants.ts.html +0 -637
- package/coverage/lcov-report/src/locales/fr/index.html +0 -131
- package/coverage/lcov-report/src/locales/fr/index.ts.html +0 -280
- package/coverage/lcov-report/src/locales/fr/parsers/FRCasualDateParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/fr/parsers/FRCasualTimeParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/fr/parsers/FRMonthNameLittleEndianParser.ts.html +0 -277
- package/coverage/lcov-report/src/locales/fr/parsers/FRSpecificTimeExpressionParser.ts.html +0 -484
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeExpressionParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitAgoFormatParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitRelativeFormatParser.ts.html +0 -214
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitWithinFormatParser.ts.html +0 -130
- package/coverage/lcov-report/src/locales/fr/parsers/FRWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/fr/parsers/index.html +0 -236
- package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/fr/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/constants.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ja/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/index.ts.html +0 -214
- package/coverage/lcov-report/src/locales/ja/parsers/JPCasualDateParser.ts.html +0 -217
- package/coverage/lcov-report/src/locales/ja/parsers/JPStandardParser.ts.html +0 -247
- package/coverage/lcov-report/src/locales/ja/parsers/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/refiners/JPMergeDateRangeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ja/refiners/index.html +0 -116
- package/coverage/lcov-report/src/locales/nl/constants.ts.html +0 -796
- package/coverage/lcov-report/src/locales/nl/index.html +0 -131
- package/coverage/lcov-report/src/locales/nl/index.ts.html +0 -304
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateParser.ts.html +0 -181
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateTimeParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualTimeParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualYearMonthDayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameMiddleEndianParser.ts.html +0 -349
- package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/nl/parsers/NLRelativeDateFormatParser.ts.html +0 -295
- package/coverage/lcov-report/src/locales/nl/parsers/NLSlashMonthFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeExpressionParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitAgoFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitLaterFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitWithinFormatParser.ts.html +0 -130
- package/coverage/lcov-report/src/locales/nl/parsers/NLWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/nl/parsers/index.html +0 -311
- package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts.html +0 -136
- package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/nl/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/pt/constants.ts.html +0 -343
- package/coverage/lcov-report/src/locales/pt/index.html +0 -131
- package/coverage/lcov-report/src/locales/pt/index.ts.html +0 -256
- package/coverage/lcov-report/src/locales/pt/parsers/PTCasualDateParser.ts.html +0 -181
- package/coverage/lcov-report/src/locales/pt/parsers/PTCasualTimeParser.ts.html +0 -226
- package/coverage/lcov-report/src/locales/pt/parsers/PTMonthNameLittleEndianParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/pt/parsers/PTTimeExpressionParser.ts.html +0 -145
- package/coverage/lcov-report/src/locales/pt/parsers/PTWeekdayParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/pt/parsers/index.html +0 -176
- package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/pt/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/ru/constants.ts.html +0 -1111
- package/coverage/lcov-report/src/locales/ru/index.html +0 -131
- package/coverage/lcov-report/src/locales/ru/index.ts.html +0 -337
- package/coverage/lcov-report/src/locales/ru/parsers/RUCasualDateParser.ts.html +0 -217
- package/coverage/lcov-report/src/locales/ru/parsers/RUCasualTimeParser.ts.html +0 -253
- package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameLittleEndianParser.ts.html +0 -301
- package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameParser.ts.html +0 -268
- package/coverage/lcov-report/src/locales/ru/parsers/RURelativeDateFormatParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeExpressionParser.ts.html +0 -277
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitAgoFormatParser.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.ts.html +0 -187
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitWithinFormatParser.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ru/parsers/RUWeekdayParser.ts.html +0 -256
- package/coverage/lcov-report/src/locales/ru/parsers/index.html +0 -251
- package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateRangeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ru/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hans/constants.ts.html +0 -241
- package/coverage/lcov-report/src/locales/zh/hans/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hans/index.ts.html +0 -271
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansCasualDateParser.ts.html +0 -469
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDateParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.ts.html +0 -328
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansTimeExpressionParser.ts.html +0 -1357
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/zh/hans/parsers/index.html +0 -191
- package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hans/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hant/constants.ts.html +0 -244
- package/coverage/lcov-report/src/locales/zh/hant/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hant/index.ts.html +0 -274
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantCasualDateParser.ts.html +0 -469
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDateParser.ts.html +0 -289
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.ts.html +0 -328
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantTimeExpressionParser.ts.html +0 -1357
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/zh/hant/parsers/index.html +0 -191
- package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hant/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/index.html +0 -116
- package/coverage/lcov-report/src/locales/zh/index.ts.html +0 -91
- package/coverage/lcov-report/src/options.js.html +0 -1085
- package/coverage/lcov-report/src/parsers/de/DECasualDateParser.js.html +0 -368
- package/coverage/lcov-report/src/parsers/de/DEDeadlineFormatParser.js.html +0 -374
- package/coverage/lcov-report/src/parsers/de/DEMonthNameLittleEndianParser.js.html +0 -347
- package/coverage/lcov-report/src/parsers/de/DEMonthNameParser.js.html +0 -329
- package/coverage/lcov-report/src/parsers/de/DESlashDateFormatParser.js.html +0 -398
- package/coverage/lcov-report/src/parsers/de/DETimeAgoFormatParser.js.html +0 -401
- package/coverage/lcov-report/src/parsers/de/DETimeExpressionParser.js.html +0 -836
- package/coverage/lcov-report/src/parsers/de/DEWeekdayParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/de/index.html +0 -216
- package/coverage/lcov-report/src/parsers/en/ENCasualDateParser.js.html +0 -275
- package/coverage/lcov-report/src/parsers/en/ENCasualTimeParser.js.html +0 -242
- package/coverage/lcov-report/src/parsers/en/ENDeadlineFormatParser.js.html +0 -359
- package/coverage/lcov-report/src/parsers/en/ENISOFormatParser.js.html +0 -389
- package/coverage/lcov-report/src/parsers/en/ENMonthNameLittleEndianParser.js.html +0 -416
- package/coverage/lcov-report/src/parsers/en/ENMonthNameMiddleEndianParser.js.html +0 -437
- package/coverage/lcov-report/src/parsers/en/ENMonthNameParser.js.html +0 -320
- package/coverage/lcov-report/src/parsers/en/ENRelativeDateFormatParser.js.html +0 -518
- package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatParser.js.html +0 -479
- package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatStartWithYearParser.js.html +0 -245
- package/coverage/lcov-report/src/parsers/en/ENSlashMonthFormatParser.js.html +0 -221
- package/coverage/lcov-report/src/parsers/en/ENTimeAgoFormatParser.js.html +0 -287
- package/coverage/lcov-report/src/parsers/en/ENTimeExpressionParser.js.html +0 -869
- package/coverage/lcov-report/src/parsers/en/ENTimeLaterFormatParser.js.html +0 -305
- package/coverage/lcov-report/src/parsers/en/ENWeekdayParser.js.html +0 -356
- package/coverage/lcov-report/src/parsers/en/index.html +0 -321
- package/coverage/lcov-report/src/parsers/es/ESCasualDateParser.js.html +0 -452
- package/coverage/lcov-report/src/parsers/es/ESDeadlineFormatParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/es/ESMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/es/ESSlashDateFormatParser.js.html +0 -419
- package/coverage/lcov-report/src/parsers/es/ESTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/es/ESTimeExpressionParser.js.html +0 -782
- package/coverage/lcov-report/src/parsers/es/ESWeekdayParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/es/index.html +0 -201
- package/coverage/lcov-report/src/parsers/fr/FRCasualDateParser.js.html +0 -311
- package/coverage/lcov-report/src/parsers/fr/FRDeadlineFormatParser.js.html +0 -359
- package/coverage/lcov-report/src/parsers/fr/FRMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/fr/FRRelativeDateFormatParser.js.html +0 -545
- package/coverage/lcov-report/src/parsers/fr/FRSlashDateFormatParser.js.html +0 -437
- package/coverage/lcov-report/src/parsers/fr/FRTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/fr/FRTimeExpressionParser.js.html +0 -803
- package/coverage/lcov-report/src/parsers/fr/FRWeekdayParser.js.html +0 -257
- package/coverage/lcov-report/src/parsers/fr/index.html +0 -216
- package/coverage/lcov-report/src/parsers/index.html +0 -111
- package/coverage/lcov-report/src/parsers/ja/JPCasualDateParser.js.html +0 -245
- package/coverage/lcov-report/src/parsers/ja/JPStandardParser.js.html +0 -293
- package/coverage/lcov-report/src/parsers/ja/index.html +0 -126
- package/coverage/lcov-report/src/parsers/nl/NLCasualDateParser.js.html +0 -395
- package/coverage/lcov-report/src/parsers/nl/NLCasualTimeParser.js.html +0 -278
- package/coverage/lcov-report/src/parsers/nl/NLMonthNameLittleEndianParser.js.html +0 -383
- package/coverage/lcov-report/src/parsers/nl/NLMonthNameParser.js.html +0 -320
- package/coverage/lcov-report/src/parsers/nl/NLSlashDateFormatParser.js.html +0 -389
- package/coverage/lcov-report/src/parsers/nl/NLTimeExpressionParser.js.html +0 -836
- package/coverage/lcov-report/src/parsers/nl/NLWeekdayParser.js.html +0 -377
- package/coverage/lcov-report/src/parsers/nl/index.html +0 -201
- package/coverage/lcov-report/src/parsers/parser.js.html +0 -500
- package/coverage/lcov-report/src/parsers/pt/PTCasualDateParser.js.html +0 -449
- package/coverage/lcov-report/src/parsers/pt/PTDeadlineFormatParser.js.html +0 -263
- package/coverage/lcov-report/src/parsers/pt/PTMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/pt/PTSlashDateFormatParser.js.html +0 -419
- package/coverage/lcov-report/src/parsers/pt/PTTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/pt/PTTimeExpressionParser.js.html +0 -782
- package/coverage/lcov-report/src/parsers/pt/PTWeekdayParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/pt/index.html +0 -201
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantCasualDateParser.js.html +0 -494
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDateParser.js.html +0 -281
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDeadlineFormatParser.js.html +0 -353
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantTimeExpressionParser.js.html +0 -1346
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantWeekdayParser.js.html +0 -239
- package/coverage/lcov-report/src/parsers/zh-Hant/index.html +0 -171
- package/coverage/lcov-report/src/refiners/ExtractTimezoneAbbrRefiner.js.html +0 -245
- package/coverage/lcov-report/src/refiners/ExtractTimezoneOffsetRefiner.js.html +0 -218
- package/coverage/lcov-report/src/refiners/ForwardDateRefiner.js.html +0 -239
- package/coverage/lcov-report/src/refiners/OverlapRemovalRefiner.js.html +0 -200
- package/coverage/lcov-report/src/refiners/UnlikelyFormatFilter.js.html +0 -131
- package/coverage/lcov-report/src/refiners/de/DEMergeDateRangeRefiner.js.html +0 -116
- package/coverage/lcov-report/src/refiners/de/DEMergeDateTimeRefiner.js.html +0 -377
- package/coverage/lcov-report/src/refiners/de/index.html +0 -126
- package/coverage/lcov-report/src/refiners/en/ENMergeDateRangeRefiner.js.html +0 -416
- package/coverage/lcov-report/src/refiners/en/ENMergeDateTimeRefiner.js.html +0 -533
- package/coverage/lcov-report/src/refiners/en/ENPrioritizeSpecificDateRefiner.js.html +0 -422
- package/coverage/lcov-report/src/refiners/en/index.html +0 -141
- package/coverage/lcov-report/src/refiners/fr/FRMergeDateRangeRefiner.js.html +0 -374
- package/coverage/lcov-report/src/refiners/fr/FRMergeDateTimeRefiner.js.html +0 -395
- package/coverage/lcov-report/src/refiners/fr/index.html +0 -126
- package/coverage/lcov-report/src/refiners/index.html +0 -186
- package/coverage/lcov-report/src/refiners/ja/JPMergeDateRangeRefiner.js.html +0 -113
- package/coverage/lcov-report/src/refiners/ja/index.html +0 -111
- package/coverage/lcov-report/src/refiners/nl/NLMergeDateRangeRefiner.js.html +0 -116
- package/coverage/lcov-report/src/refiners/nl/NLMergeDateTimeRefiner.js.html +0 -362
- package/coverage/lcov-report/src/refiners/nl/index.html +0 -126
- package/coverage/lcov-report/src/refiners/refiner.js.html +0 -239
- package/coverage/lcov-report/src/result.js.html +0 -545
- package/coverage/lcov-report/src/results.ts.html +0 -916
- package/coverage/lcov-report/src/timezone.ts.html +0 -700
- package/coverage/lcov-report/src/utils/DE.js.html +0 -308
- package/coverage/lcov-report/src/utils/EN.js.html +0 -596
- package/coverage/lcov-report/src/utils/ES.js.html +0 -254
- package/coverage/lcov-report/src/utils/FR.js.html +0 -302
- package/coverage/lcov-report/src/utils/JP.js.html +0 -215
- package/coverage/lcov-report/src/utils/NL.js.html +0 -620
- package/coverage/lcov-report/src/utils/PT.js.html +0 -263
- package/coverage/lcov-report/src/utils/ParserWithWordEndingDetection.ts.html +0 -176
- package/coverage/lcov-report/src/utils/ZH-Hant.js.html +0 -236
- package/coverage/lcov-report/src/utils/dayjs.ts.html +0 -223
- package/coverage/lcov-report/src/utils/index.html +0 -146
- package/coverage/lcov-report/src/utils/pattern.ts.html +0 -175
- package/coverage/lcov-report/src/utils/timeunits.ts.html +0 -199
- package/coverage/lcov-report/test/index.html +0 -116
- package/coverage/lcov-report/test/test_util.js.html +0 -299
- package/coverage/lcov-report/test/test_util.ts.html +0 -490
- package/coverage/lcov.info +0 -8049
- package/dist/bundle.js +0 -5047
- package/dist/calculation/weeks.d.ts +0 -3
- package/dist/calculation/weeks.js +0 -42
- package/dist/calculation/weeks.js.map +0 -1
- package/dist/main.js +0 -1078
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/chrono.html +0 -377
- package/docs/enums/meridiem.html +0 -191
- package/docs/index.html +0 -329
- package/docs/interfaces/parsedcomponents.html +0 -270
- package/docs/interfaces/parsedresult.html +0 -283
- package/docs/interfaces/parser.html +0 -240
- package/docs/interfaces/parsingoption.html +0 -218
- package/docs/interfaces/refiner.html +0 -218
- package/docs/modules/de.html +0 -298
- package/docs/modules/en.html +0 -361
- package/docs/modules/fr.html +0 -248
- package/docs/modules/ja.html +0 -248
- package/docs/modules/nl.html +0 -275
- package/docs/modules/pt.html +0 -248
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZHHansCasualDateParser.js","sourceRoot":"","sources":["../../../../../../src/locales/zh/hans/parsers/ZHHansCasualDateParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,2DAA2D,CAAC;AAGnH,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,sCAAsC;IACtF,YAAY,CAAC,OAAuB;QAChC,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K,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;iBACjC;aACJ;SACJ;QAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QAC/C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QAEhD,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 ZHHansDateParser extends AbstractParserWithWordBoundaryChecking {
|
|
4
|
+
innerPattern(): RegExp;
|
|
5
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): import("../../../../results").ParsingResult;
|
|
6
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
import { NUMBER, zhStringToNumber, zhStringToYear } from "../constants";
|
|
4
|
+
const YEAR_GROUP = 1;
|
|
5
|
+
const MONTH_GROUP = 2;
|
|
6
|
+
const DAY_GROUP = 3;
|
|
7
|
+
export default class ZHHansDateParser extends AbstractParserWithWordBoundaryChecking {
|
|
8
|
+
innerPattern() {
|
|
9
|
+
return new RegExp("(" +
|
|
10
|
+
"\\d{2,4}|" +
|
|
11
|
+
"[" +
|
|
12
|
+
Object.keys(NUMBER).join("") +
|
|
13
|
+
"]{4}|" +
|
|
14
|
+
"[" +
|
|
15
|
+
Object.keys(NUMBER).join("") +
|
|
16
|
+
"]{2}" +
|
|
17
|
+
")?" +
|
|
18
|
+
"(?:\\s*)" +
|
|
19
|
+
"(?:年)?" +
|
|
20
|
+
"(?:[\\s|,|,]*)" +
|
|
21
|
+
"(" +
|
|
22
|
+
"\\d{1,2}|" +
|
|
23
|
+
"[" +
|
|
24
|
+
Object.keys(NUMBER).join("") +
|
|
25
|
+
"]{1,3}" +
|
|
26
|
+
")" +
|
|
27
|
+
"(?:\\s*)" +
|
|
28
|
+
"(?:月)" +
|
|
29
|
+
"(?:\\s*)" +
|
|
30
|
+
"(" +
|
|
31
|
+
"\\d{1,2}|" +
|
|
32
|
+
"[" +
|
|
33
|
+
Object.keys(NUMBER).join("") +
|
|
34
|
+
"]{1,3}" +
|
|
35
|
+
")?" +
|
|
36
|
+
"(?:\\s*)" +
|
|
37
|
+
"(?:日|号)?");
|
|
38
|
+
}
|
|
39
|
+
innerExtract(context, match) {
|
|
40
|
+
const startMoment = dayjs(context.refDate);
|
|
41
|
+
const result = context.createParsingResult(match.index, match[0]);
|
|
42
|
+
let month = parseInt(match[MONTH_GROUP]);
|
|
43
|
+
if (isNaN(month))
|
|
44
|
+
month = zhStringToNumber(match[MONTH_GROUP]);
|
|
45
|
+
result.start.assign("month", month);
|
|
46
|
+
if (match[DAY_GROUP]) {
|
|
47
|
+
let day = parseInt(match[DAY_GROUP]);
|
|
48
|
+
if (isNaN(day))
|
|
49
|
+
day = zhStringToNumber(match[DAY_GROUP]);
|
|
50
|
+
result.start.assign("day", day);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
result.start.imply("day", startMoment.date());
|
|
54
|
+
}
|
|
55
|
+
if (match[YEAR_GROUP]) {
|
|
56
|
+
let year = parseInt(match[YEAR_GROUP]);
|
|
57
|
+
if (isNaN(year))
|
|
58
|
+
year = zhStringToYear(match[YEAR_GROUP]);
|
|
59
|
+
result.start.assign("year", year);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
result.start.imply("year", startMoment.year());
|
|
63
|
+
}
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=ZHHansDateParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZHHansDateParser.js","sourceRoot":"","sources":["../../../../../../src/locales/zh/hans/parsers/ZHHansDateParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,2DAA2D,CAAC;AACnH,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,sCAAsC;IAChF,YAAY;QAER,OAAO,IAAI,MAAM,CACb,GAAG;YACC,WAAW;YACX,GAAG;YACH,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,OAAO;YACP,GAAG;YACH,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,MAAM;YACN,IAAI;YACJ,UAAU;YACV,QAAQ;YACR,gBAAgB;YAChB,GAAG;YACH,WAAW;YACX,GAAG;YACH,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,QAAQ;YACR,GAAG;YACH,UAAU;YACV,OAAO;YACP,UAAU;YACV,GAAG;YACH,WAAW;YACX,GAAG;YACH,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,QAAQ;YACR,IAAI;YACJ,UAAU;YACV,UAAU,CACjB,CAAC;IACN,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,WAAW,GAAG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IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../../chrono";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
export default class ZHHansDeadlineFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
4
|
+
innerPattern(): RegExp;
|
|
5
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): import("../../../../results").ParsingResult;
|
|
6
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
import { NUMBER, zhStringToNumber } from "../constants";
|
|
4
|
+
const PATTERN = new RegExp("(\\d+|[" +
|
|
5
|
+
Object.keys(NUMBER).join("") +
|
|
6
|
+
"]+|半|几)(?:\\s*)" +
|
|
7
|
+
"(?:个)?" +
|
|
8
|
+
"(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)" +
|
|
9
|
+
"(?:(?:之|过)?后|(?:之)?内)", "i");
|
|
10
|
+
const NUMBER_GROUP = 1;
|
|
11
|
+
const UNIT_GROUP = 2;
|
|
12
|
+
export default class ZHHansDeadlineFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
13
|
+
innerPattern() {
|
|
14
|
+
return PATTERN;
|
|
15
|
+
}
|
|
16
|
+
innerExtract(context, match) {
|
|
17
|
+
const result = context.createParsingResult(match.index, match[0]);
|
|
18
|
+
let number = parseInt(match[NUMBER_GROUP]);
|
|
19
|
+
if (isNaN(number)) {
|
|
20
|
+
number = zhStringToNumber(match[NUMBER_GROUP]);
|
|
21
|
+
}
|
|
22
|
+
if (isNaN(number)) {
|
|
23
|
+
const string = match[NUMBER_GROUP];
|
|
24
|
+
if (string === "几") {
|
|
25
|
+
number = 3;
|
|
26
|
+
}
|
|
27
|
+
else if (string === "半") {
|
|
28
|
+
number = 0.5;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
let date = dayjs(context.refDate);
|
|
35
|
+
const unit = match[UNIT_GROUP];
|
|
36
|
+
const unitAbbr = unit[0];
|
|
37
|
+
if (unitAbbr.match(/[日天星礼月年]/)) {
|
|
38
|
+
if (unitAbbr == "日" || unitAbbr == "天") {
|
|
39
|
+
date = date.add(number, "d");
|
|
40
|
+
}
|
|
41
|
+
else if (unitAbbr == "星" || unitAbbr == "礼") {
|
|
42
|
+
date = date.add(number * 7, "d");
|
|
43
|
+
}
|
|
44
|
+
else if (unitAbbr == "月") {
|
|
45
|
+
date = date.add(number, "month");
|
|
46
|
+
}
|
|
47
|
+
else if (unitAbbr == "年") {
|
|
48
|
+
date = date.add(number, "year");
|
|
49
|
+
}
|
|
50
|
+
result.start.assign("year", date.year());
|
|
51
|
+
result.start.assign("month", date.month() + 1);
|
|
52
|
+
result.start.assign("day", date.date());
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
if (unitAbbr == "秒") {
|
|
56
|
+
date = date.add(number, "second");
|
|
57
|
+
}
|
|
58
|
+
else if (unitAbbr == "分") {
|
|
59
|
+
date = date.add(number, "minute");
|
|
60
|
+
}
|
|
61
|
+
else if (unitAbbr == "小" || unitAbbr == "钟") {
|
|
62
|
+
date = date.add(number, "hour");
|
|
63
|
+
}
|
|
64
|
+
result.start.imply("year", date.year());
|
|
65
|
+
result.start.imply("month", date.month() + 1);
|
|
66
|
+
result.start.imply("day", date.date());
|
|
67
|
+
result.start.assign("hour", date.hour());
|
|
68
|
+
result.start.assign("minute", date.minute());
|
|
69
|
+
result.start.assign("second", date.second());
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=ZHHansDeadlineFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZHHansDe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AG,EAAE;YACxB,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;SACrC;aAAM,IAAI,QAAQ,IAAI,GAAG,IAAI,QAAQ,IAAI,GAAG,EAAE;YAC3C,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SACnC;QAED,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;QAC9C,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACzC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC7C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC7C,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../../chrono";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
import { ParsingResult } from "../../../../results";
|
|
4
|
+
export default class ZHHansRelationWeekdayParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingResult;
|
|
7
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
import { WEEKDAY_OFFSET } from "../constants";
|
|
4
|
+
const PATTERN = new RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>" + Object.keys(WEEKDAY_OFFSET).join("|") + ")");
|
|
5
|
+
export default class ZHHansRelationWeekdayParser extends AbstractParserWithWordBoundaryChecking {
|
|
6
|
+
innerPattern() {
|
|
7
|
+
return PATTERN;
|
|
8
|
+
}
|
|
9
|
+
innerExtract(context, match) {
|
|
10
|
+
const result = context.createParsingResult(match.index, match[0]);
|
|
11
|
+
const dayOfWeek = match.groups.weekday;
|
|
12
|
+
const offset = WEEKDAY_OFFSET[dayOfWeek];
|
|
13
|
+
if (offset === undefined)
|
|
14
|
+
return null;
|
|
15
|
+
let modifier = null;
|
|
16
|
+
const prefix = match.groups.prefix;
|
|
17
|
+
if (prefix == "上") {
|
|
18
|
+
modifier = "last";
|
|
19
|
+
}
|
|
20
|
+
else if (prefix == "下") {
|
|
21
|
+
modifier = "next";
|
|
22
|
+
}
|
|
23
|
+
else if (prefix == "这") {
|
|
24
|
+
modifier = "this";
|
|
25
|
+
}
|
|
26
|
+
let startMoment = dayjs(context.refDate);
|
|
27
|
+
let startMomentFixed = false;
|
|
28
|
+
const refOffset = startMoment.day();
|
|
29
|
+
if (modifier == "last" || modifier == "past") {
|
|
30
|
+
startMoment = startMoment.day(offset - 7);
|
|
31
|
+
startMomentFixed = true;
|
|
32
|
+
}
|
|
33
|
+
else if (modifier == "next") {
|
|
34
|
+
startMoment = startMoment.day(offset + 7);
|
|
35
|
+
startMomentFixed = true;
|
|
36
|
+
}
|
|
37
|
+
else if (modifier == "this") {
|
|
38
|
+
startMoment = startMoment.day(offset);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
if (Math.abs(offset - 7 - refOffset) < Math.abs(offset - refOffset)) {
|
|
42
|
+
startMoment = startMoment.day(offset - 7);
|
|
43
|
+
}
|
|
44
|
+
else if (Math.abs(offset + 7 - refOffset) < Math.abs(offset - refOffset)) {
|
|
45
|
+
startMoment = startMoment.day(offset + 7);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
startMoment = startMoment.day(offset);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
result.start.assign("weekday", offset);
|
|
52
|
+
if (startMomentFixed) {
|
|
53
|
+
result.start.assign("day", startMoment.date());
|
|
54
|
+
result.start.assign("month", startMoment.month() + 1);
|
|
55
|
+
result.start.assign("year", startMoment.year());
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
result.start.imply("day", startMoment.date());
|
|
59
|
+
result.start.imply("month", startMoment.month() + 1);
|
|
60
|
+
result.start.imply("year", startMoment.year());
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=ZHHansRelationWeekdayParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZHHansRelationWeekdayParser.js","sourceRoot":"","sources":["../../../../../../src/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,2DAA2D,CAAC;AAEnH,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,8CAA8C,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAC/F,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,sCAAsC;IAC3F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,KA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"../../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
export default class ZHHansTimeExpressionParser extends AbstractParserWithWordBoundaryChecking {
|
|
4
|
+
innerPattern(): RegExp;
|
|
5
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): import("../../../../results").ParsingResult;
|
|
6
|
+
}
|