diff --git a/chrono.out.js b/chrono.out.js index d41af62..2f02275 100644 --- a/chrono.out.js +++ b/chrono.out.js @@ -140,7 +140,7 @@ else { return dateTimeComponent; } exports.mergeDateTimeComponent = mergeDateTimeComponent; - }, { "../types": 163, "../utils/dayjs": 164 }], 3: [function (require, module, exports) { + }, { "../types": 164, "../utils/dayjs": 165 }], 3: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -177,7 +177,7 @@ else { return dateMoment.year(); } exports.findYearClosestToRef = findYearClosestToRef; - }, { "dayjs": 167 }], 4: [function (require, module, exports) { + }, { "dayjs": 168 }], 4: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -292,7 +292,7 @@ else { return ParsingContext; }()); exports.ParsingContext = ParsingContext; - }, { "./locales/en/configuration": 34, "./results": 161 }], 5: [function (require, module, exports) { + }, { "./locales/en/configuration": 34, "./results": 162 }], 5: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MergingRefiner = exports.Filter = void 0; @@ -414,7 +414,7 @@ else { return backwardCount; } exports.getBackwardDaysToWeekday = getBackwardDaysToWeekday; - }, { "../../results": 161, "../../types": 163, "../../utils/timeunits": 166 }], 7: [function (require, module, exports) { + }, { "../../results": 162, "../../types": 164, "../../utils/timeunits": 167 }], 7: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -561,7 +561,7 @@ else { return component; } exports.noon = noon; - }, { "../results": 161, "../types": 163, "../utils/dayjs": 164, "dayjs": 167 }], 8: [function (require, module, exports) { + }, { "../results": 162, "../types": 164, "../utils/dayjs": 165, "dayjs": 168 }], 8: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractParserWithWordBoundaryChecking = void 0; @@ -937,7 +937,7 @@ else { return AbstractTimeExpressionParser; }()); exports.AbstractTimeExpressionParser = AbstractTimeExpressionParser; - }, { "../../types": 163 }], 10: [function (require, module, exports) { + }, { "../../types": 164 }], 10: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractParserWithWordBoundary_1 = require("./AbstractParserWithWordBoundary"); @@ -947,7 +947,7 @@ else { "(?:" + ":([0-9]{1,2})(?:\\.(\\d{1,4}))?" + ")?" + - "(?:" + + "(" + "Z|([+-]\\d{2}):?(\\d{2})?" + ")?" + ")?" + @@ -959,8 +959,9 @@ else { var MINUTE_NUMBER_GROUP = 5; var SECOND_NUMBER_GROUP = 6; var MILLISECOND_NUMBER_GROUP = 7; - var TZD_HOUR_OFFSET_GROUP = 8; - var TZD_MINUTE_OFFSET_GROUP = 9; + var TZD_GROUP = 8; + var TZD_HOUR_OFFSET_GROUP = 9; + var TZD_MINUTE_OFFSET_GROUP = 10; var ISOFormatParser = /** @class */ (function (_super) { __extends(ISOFormatParser, _super); function ISOFormatParser() { @@ -970,39 +971,40 @@ else { return PATTERN; }; ISOFormatParser.prototype.innerExtract = function (context, match) { - var components = {}; - components["year"] = parseInt(match[YEAR_NUMBER_GROUP]); - components["month"] = parseInt(match[MONTH_NUMBER_GROUP]); - components["day"] = parseInt(match[DATE_NUMBER_GROUP]); + var components = context.createParsingComponents({ + "year": parseInt(match[YEAR_NUMBER_GROUP]), + "month": parseInt(match[MONTH_NUMBER_GROUP]), + "day": parseInt(match[DATE_NUMBER_GROUP]), + }); if (match[HOUR_NUMBER_GROUP] != null) { - components["hour"] = parseInt(match[HOUR_NUMBER_GROUP]); - components["minute"] = parseInt(match[MINUTE_NUMBER_GROUP]); + components.assign("hour", parseInt(match[HOUR_NUMBER_GROUP])); + components.assign("minute", parseInt(match[MINUTE_NUMBER_GROUP])); if (match[SECOND_NUMBER_GROUP] != null) { - components["second"] = parseInt(match[SECOND_NUMBER_GROUP]); + components.assign("second", parseInt(match[SECOND_NUMBER_GROUP])); } if (match[MILLISECOND_NUMBER_GROUP] != null) { - components["millisecond"] = parseInt(match[MILLISECOND_NUMBER_GROUP]); - } - if (match[TZD_HOUR_OFFSET_GROUP] == null) { - components["timezoneOffset"] = 0; - } - else { - var hourOffset = parseInt(match[TZD_HOUR_OFFSET_GROUP]); - var minuteOffset = 0; - if (match[TZD_MINUTE_OFFSET_GROUP] != null) { - minuteOffset = parseInt(match[TZD_MINUTE_OFFSET_GROUP]); - } - var offset = hourOffset * 60; - if (offset < 0) { - offset -= minuteOffset; - } - else { - offset += minuteOffset; + components.assign("millisecond", parseInt(match[MILLISECOND_NUMBER_GROUP])); + } + if (match[TZD_GROUP] != null) { + var offset = 0; + if (match[TZD_HOUR_OFFSET_GROUP]) { + var hourOffset = parseInt(match[TZD_HOUR_OFFSET_GROUP]); + var minuteOffset = 0; + if (match[TZD_MINUTE_OFFSET_GROUP] != null) { + minuteOffset = parseInt(match[TZD_MINUTE_OFFSET_GROUP]); + } + offset = hourOffset * 60; + if (offset < 0) { + offset -= minuteOffset; + } + else { + offset += minuteOffset; + } } - components["timezoneOffset"] = offset; + components.assign("timezoneOffset", offset); } } - return components; + return components.addTag("parser/ISOFormatParser"); }; return ISOFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); @@ -1030,18 +1032,25 @@ else { }; SlashDateFormatParser.prototype.extract = function (context, match) { var _c; - if (match[OPENING_GROUP].length == 0 && match.index > 0 && match.index < context.text.length) { - var previousChar = context.text[match.index - 1]; - if (previousChar >= "0" && previousChar <= "9") { + var index = match.index + match[OPENING_GROUP].length; + var indexEnd = match.index + match[0].length - match[ENDING_GROUP].length; + if (index > 0) { + var textBefore = context.text.substring(0, index); + if (textBefore.match("\\d/?$")) { return; } } - var index = match.index + match[OPENING_GROUP].length; - var text = match[0].substr(match[OPENING_GROUP].length, match[0].length - match[OPENING_GROUP].length - match[ENDING_GROUP].length); + if (indexEnd < context.text.length) { + var textAfter = context.text.substring(indexEnd); + if (textAfter.match("^/?\\d")) { + return; + } + } + var text = context.text.substring(index, indexEnd); if (text.match(/^\d\.\d$/) || text.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)) { return; } - if (!match[YEAR_GROUP] && match[0].indexOf("/") < 0) { + if (!match[YEAR_GROUP] && text.indexOf("/") < 0) { return; } var result = context.createParsingResult(index, text); @@ -1227,7 +1236,7 @@ else { return ExtractTimezoneAbbrRefiner; }()); exports.default = ExtractTimezoneAbbrRefiner; - }, { "../../timezone": 162 }], 15: [function (require, module, exports) { + }, { "../../timezone": 163 }], 15: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TIMEZONE_OFFSET_PATTERN = new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?", "i"); @@ -1282,6 +1291,7 @@ else { function ForwardDateRefiner() { } ForwardDateRefiner.prototype.refine = function (context, results) { + var _this = this; if (!context.option.forwardDate) { return results; } @@ -1297,6 +1307,9 @@ else { dayjs_2.implySimilarDate(result.end, refMoment); } } + context.debug(function () { + console.log("".concat(_this.constructor.name, " adjusted ").concat(result, " time result (").concat(result.start, ")")); + }); } if (result.start.isOnlyWeekdayComponent() && refMoment.isAfter(result.start.dayjs())) { if (refMoment.day() >= result.start.get("weekday")) { @@ -1309,7 +1322,7 @@ else { result.start.imply("month", refMoment.month() + 1); result.start.imply("year", refMoment.year()); context.debug(function () { - console.log("Forward weekly adjusted for ".concat(result, " (").concat(result.start, ")")); + console.log("".concat(_this.constructor.name, " adjusted ").concat(result, " weekday (").concat(result.start, ")")); }); if (result.end && result.end.isOnlyWeekdayComponent()) { if (refMoment.day() > result.end.get("weekday")) { @@ -1322,7 +1335,7 @@ else { result.end.imply("month", refMoment.month() + 1); result.end.imply("year", refMoment.year()); context.debug(function () { - console.log("Forward weekly adjusted for ".concat(result, " (").concat(result.end, ")")); + console.log("".concat(_this.constructor.name, " adjusted ").concat(result, " weekday (").concat(result.end, ")")); }); } } @@ -1330,12 +1343,12 @@ else { for (var i = 0; i < 3 && refMoment.isAfter(result.start.dayjs()); i++) { result.start.imply("year", result.start.get("year") + 1); context.debug(function () { - console.log("Forward yearly adjusted for ".concat(result, " (").concat(result.start, ")")); + console.log("".concat(_this.constructor.name, " adjusted ").concat(result, " year (").concat(result.start, ")")); }); if (result.end && !result.end.isCertain("year")) { result.end.imply("year", result.end.get("year") + 1); context.debug(function () { - console.log("Forward yearly adjusted for ".concat(result, " (").concat(result.end, ")")); + console.log("".concat(_this.constructor.name, " adjusted ").concat(result, " month (").concat(result.start, ")")); }); } } @@ -1346,7 +1359,7 @@ else { return ForwardDateRefiner; }()); exports.default = ForwardDateRefiner; - }, { "../../utils/dayjs": 164, "dayjs": 167 }], 17: [function (require, module, exports) { + }, { "../../utils/dayjs": 165, "dayjs": 168 }], 17: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var abstractRefiners_1 = require("../abstractRefiners"); @@ -1568,7 +1581,7 @@ else { return exports.casual.parseDate(text, ref, option); } exports.parseDate = parseDate; - }, { "./chrono": 4, "./locales/de": 23, "./locales/en": 36, "./locales/es": 56, "./locales/fr": 66, "./locales/ja": 79, "./locales/nl": 84, "./locales/pt": 102, "./locales/ru": 111, "./locales/uk": 126, "./locales/zh": 160, "./results": 161, "./types": 163 }], 22: [function (require, module, exports) { + }, { "./chrono": 4, "./locales/de": 23, "./locales/en": 36, "./locales/es": 57, "./locales/fr": 67, "./locales/ja": 80, "./locales/nl": 85, "./locales/pt": 103, "./locales/ru": 112, "./locales/uk": 127, "./locales/zh": 161, "./results": 162, "./types": 164 }], 22: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0; @@ -1745,7 +1758,7 @@ else { var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../calculation/years": 3, "../../utils/pattern": 165 }], 23: [function (require, module, exports) { + }, { "../../calculation/years": 3, "../../utils/pattern": 166 }], 23: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -1810,7 +1823,7 @@ else { }, strictMode); } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/parsers/ISOFormatParser": 10, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/DECasualDateParser": 24, "./parsers/DECasualTimeParser": 25, "./parsers/DEMonthNameLittleEndianParser": 26, "./parsers/DESpecificTimeExpressionParser": 27, "./parsers/DETimeExpressionParser": 28, "./parsers/DETimeUnitRelativeFormatParser": 29, "./parsers/DETimeUnitWithinFormatParser": 30, "./parsers/DEWeekdayParser": 31, "./refiners/DEMergeDateRangeRefiner": 32, "./refiners/DEMergeDateTimeRefiner": 33 }], 24: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/ISOFormatParser": 10, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/DECasualDateParser": 24, "./parsers/DECasualTimeParser": 25, "./parsers/DEMonthNameLittleEndianParser": 26, "./parsers/DESpecificTimeExpressionParser": 27, "./parsers/DETimeExpressionParser": 28, "./parsers/DETimeUnitRelativeFormatParser": 29, "./parsers/DETimeUnitWithinFormatParser": 30, "./parsers/DEWeekdayParser": 31, "./refiners/DEMergeDateRangeRefiner": 32, "./refiners/DEMergeDateTimeRefiner": 33 }], 24: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -1907,7 +1920,7 @@ else { return DECasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = DECasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/dayjs": 164, "./DECasualTimeParser": 25, "dayjs": 167 }], 25: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/dayjs": 165, "./DECasualTimeParser": 25, "dayjs": 168 }], 25: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -1987,7 +2000,7 @@ else { return DECasualTimeParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = DECasualTimeParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163, "../../../utils/dayjs": 164, "../../../utils/timeunits": 166, "dayjs": 167 }], 26: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164, "../../../utils/dayjs": 165, "../../../utils/timeunits": 167, "dayjs": 168 }], 26: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -2042,7 +2055,7 @@ else { return DEMonthNameLittleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = DEMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 22 }], 27: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 22 }], 27: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../../../types"); @@ -2160,7 +2173,7 @@ else { return DESpecificTimeExpressionParser; }()); exports.default = DESpecificTimeExpressionParser; - }, { "../../../types": 163 }], 28: [function (require, module, exports) { + }, { "../../../types": 164 }], 28: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractTimeExpressionParser_1 = require("../../../common/parsers/AbstractTimeExpressionParser"); @@ -2221,7 +2234,7 @@ else { return DETimeUnitAgoFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = DETimeUnitAgoFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/pattern": 165, "../../../utils/timeunits": 166, "../constants": 22 }], 30: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/pattern": 166, "../../../utils/timeunits": 167, "../constants": 22 }], 30: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -2242,7 +2255,7 @@ else { return DETimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = DETimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 22 }], 31: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 22 }], 31: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -2290,7 +2303,7 @@ else { return DEWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = DEWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 22 }], 32: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 22 }], 32: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -2336,7 +2349,7 @@ else { var ENMonthNameLittleEndianParser_1 = __importDefault(require("./parsers/ENMonthNameLittleEndianParser")); var ENMonthNameMiddleEndianParser_1 = __importDefault(require("./parsers/ENMonthNameMiddleEndianParser")); var ENMonthNameParser_1 = __importDefault(require("./parsers/ENMonthNameParser")); - var ENCasualYearMonthDayParser_1 = __importDefault(require("./parsers/ENCasualYearMonthDayParser")); + var ENYearMonthDayParser_1 = __importDefault(require("./parsers/ENYearMonthDayParser")); var ENSlashMonthFormatParser_1 = __importDefault(require("./parsers/ENSlashMonthFormatParser")); var ENTimeExpressionParser_1 = __importDefault(require("./parsers/ENTimeExpressionParser")); var ENTimeUnitAgoFormatParser_1 = __importDefault(require("./parsers/ENTimeUnitAgoFormatParser")); @@ -2353,6 +2366,7 @@ else { var ENMergeRelativeAfterDateRefiner_1 = __importDefault(require("./refiners/ENMergeRelativeAfterDateRefiner")); var ENMergeRelativeFollowByDateRefiner_1 = __importDefault(require("./refiners/ENMergeRelativeFollowByDateRefiner")); var OverlapRemovalRefiner_1 = __importDefault(require("../../common/refiners/OverlapRemovalRefiner")); + var ENExtractYearSuffixRefiner_1 = __importDefault(require("./refiners/ENExtractYearSuffixRefiner")); var ENDefaultConfiguration = /** @class */ (function () { function ENDefaultConfiguration() { } @@ -2376,7 +2390,6 @@ else { new ENMonthNameLittleEndianParser_1.default(), new ENMonthNameMiddleEndianParser_1.default(littleEndian), new ENWeekdayParser_1.default(), - new ENCasualYearMonthDayParser_1.default(), new ENSlashMonthFormatParser_1.default(), new ENTimeExpressionParser_1.default(strictMode), new ENTimeUnitAgoFormatParser_1.default(strictMode), @@ -2384,17 +2397,19 @@ else { ], refiners: [new ENMergeDateTimeRefiner_1.default()], }, strictMode); + options.parsers.unshift(new ENYearMonthDayParser_1.default(strictMode)); options.refiners.unshift(new ENMergeRelativeFollowByDateRefiner_1.default()); options.refiners.unshift(new ENMergeRelativeAfterDateRefiner_1.default()); options.refiners.unshift(new OverlapRemovalRefiner_1.default()); options.refiners.push(new ENMergeDateTimeRefiner_1.default()); + options.refiners.push(new ENExtractYearSuffixRefiner_1.default()); options.refiners.push(new ENMergeDateRangeRefiner_1.default()); return options; }; return ENDefaultConfiguration; }()); exports.default = ENDefaultConfiguration; - }, { "../../common/parsers/SlashDateFormatParser": 11, "../../common/refiners/OverlapRemovalRefiner": 18, "../../configurations": 20, "./parsers/ENCasualDateParser": 37, "./parsers/ENCasualTimeParser": 38, "./parsers/ENCasualYearMonthDayParser": 39, "./parsers/ENMonthNameLittleEndianParser": 40, "./parsers/ENMonthNameMiddleEndianParser": 41, "./parsers/ENMonthNameParser": 42, "./parsers/ENRelativeDateFormatParser": 43, "./parsers/ENSlashMonthFormatParser": 44, "./parsers/ENTimeExpressionParser": 45, "./parsers/ENTimeUnitAgoFormatParser": 46, "./parsers/ENTimeUnitCasualRelativeFormatParser": 47, "./parsers/ENTimeUnitLaterFormatParser": 48, "./parsers/ENTimeUnitWithinFormatParser": 49, "./parsers/ENWeekdayParser": 50, "./refiners/ENMergeDateRangeRefiner": 51, "./refiners/ENMergeDateTimeRefiner": 52, "./refiners/ENMergeRelativeAfterDateRefiner": 53, "./refiners/ENMergeRelativeFollowByDateRefiner": 54 }], 35: [function (require, module, exports) { + }, { "../../common/parsers/SlashDateFormatParser": 11, "../../common/refiners/OverlapRemovalRefiner": 18, "../../configurations": 20, "./parsers/ENCasualDateParser": 37, "./parsers/ENCasualTimeParser": 38, "./parsers/ENMonthNameLittleEndianParser": 39, "./parsers/ENMonthNameMiddleEndianParser": 40, "./parsers/ENMonthNameParser": 41, "./parsers/ENRelativeDateFormatParser": 42, "./parsers/ENSlashMonthFormatParser": 43, "./parsers/ENTimeExpressionParser": 44, "./parsers/ENTimeUnitAgoFormatParser": 45, "./parsers/ENTimeUnitCasualRelativeFormatParser": 46, "./parsers/ENTimeUnitLaterFormatParser": 47, "./parsers/ENTimeUnitWithinFormatParser": 48, "./parsers/ENWeekdayParser": 49, "./parsers/ENYearMonthDayParser": 50, "./refiners/ENExtractYearSuffixRefiner": 51, "./refiners/ENMergeDateRangeRefiner": 52, "./refiners/ENMergeDateTimeRefiner": 53, "./refiners/ENMergeRelativeAfterDateRefiner": 54, "./refiners/ENMergeRelativeFollowByDateRefiner": 55 }], 35: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_NO_ABBR_PATTERN = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.TIME_UNIT_DICTIONARY_NO_ABBR = exports.ORDINAL_WORD_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.FULL_MONTH_NAME_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0; @@ -2585,15 +2600,21 @@ else { remainingText = remainingText.substring(match[0].length).trim(); match = SINGLE_TIME_UNIT_REGEX.exec(remainingText); } + if (Object.keys(fragments).length == 0) { + return null; + } return fragments; } exports.parseTimeUnits = parseTimeUnits; function collectDateTimeFragment(fragments, match) { + if (match[0].match(/^[a-zA-Z]+$/)) { + return; + } var num = parseNumberPattern(match[1]); var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../calculation/years": 3, "../../utils/pattern": 165 }], 36: [function (require, module, exports) { + }, { "../../calculation/years": 3, "../../utils/pattern": 166 }], 36: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -2622,7 +2643,7 @@ else { return exports.casual.parseDate(text, ref, option); } exports.parseDate = parseDate; - }, { "../../chrono": 4, "../../results": 161, "../../types": 163, "./configuration": 34 }], 37: [function (require, module, exports) { + }, { "../../chrono": 4, "../../results": 162, "../../types": 164, "./configuration": 34 }], 37: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -2704,7 +2725,7 @@ else { return ENCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENCasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/dayjs": 164, "dayjs": 167 }], 38: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/dayjs": 165, "dayjs": 168 }], 38: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -2773,46 +2794,6 @@ else { }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENCasualTimeParser; }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 39: [function (require, module, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var constants_1 = require("../constants"); - var pattern_1 = require("../../../utils/pattern"); - var AbstractParserWithWordBoundary_1 = require("../../../common/parsers/AbstractParserWithWordBoundary"); - var PATTERN = new RegExp("([0-9]{4})[\\.\\/\\s]" + - "(?:(".concat(pattern_1.matchAnyPattern(constants_1.MONTH_DICTIONARY), ")|([0-9]{1,2}))[\\.\\/\\s]") + - "([0-9]{1,2})" + - "(?=\\W|$)", "i"); - var YEAR_NUMBER_GROUP = 1; - var MONTH_NAME_GROUP = 2; - var MONTH_NUMBER_GROUP = 3; - var DATE_NUMBER_GROUP = 4; - var ENCasualYearMonthDayParser = /** @class */ (function (_super) { - __extends(ENCasualYearMonthDayParser, _super); - function ENCasualYearMonthDayParser() { - return _super !== null && _super.apply(this, arguments) || this; - } - ENCasualYearMonthDayParser.prototype.innerPattern = function () { - return PATTERN; - }; - ENCasualYearMonthDayParser.prototype.innerExtract = function (context, match) { - var month = match[MONTH_NUMBER_GROUP] - ? parseInt(match[MONTH_NUMBER_GROUP]) - : constants_1.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()]; - if (month < 1 || month > 12) { - return null; - } - var year = parseInt(match[YEAR_NUMBER_GROUP]); - var day = parseInt(match[DATE_NUMBER_GROUP]); - return { - day: day, - month: month, - year: year, - }; - }; - return ENCasualYearMonthDayParser; - }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); - exports.default = ENCasualYearMonthDayParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 35 }], 40: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -2874,7 +2855,7 @@ else { return ENMonthNameLittleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 35 }], 41: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 35 }], 40: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -2947,7 +2928,7 @@ else { return ENMonthNameMiddleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENMonthNameMiddleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 35 }], 42: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 35 }], 41: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -2996,7 +2977,7 @@ else { return ENMonthNameParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENMonthNameParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 35 }], 43: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 35 }], 42: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3058,7 +3039,7 @@ else { return ENRelativeDateFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENRelativeDateFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/pattern": 165, "../constants": 35, "dayjs": 167 }], 44: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/pattern": 166, "../constants": 35, "dayjs": 168 }], 43: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractParserWithWordBoundary_1 = require("../../../common/parsers/AbstractParserWithWordBoundary"); @@ -3081,7 +3062,7 @@ else { return ENSlashMonthFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENSlashMonthFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 45: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 44: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../../../types"); @@ -3134,7 +3115,7 @@ else { return ENTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = ENTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9, "../../../types": 163 }], 46: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9, "../../../types": 164 }], 45: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3155,13 +3136,16 @@ else { }; ENTimeUnitAgoFormatParser.prototype.innerExtract = function (context, match) { var timeUnits = constants_1.parseTimeUnits(match[1]); + if (!timeUnits) { + return null; + } var outputTimeUnits = timeunits_1.reverseTimeUnits(timeUnits); return results_1.ParsingComponents.createRelativeFromReference(context.reference, outputTimeUnits); }; return ENTimeUnitAgoFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENTimeUnitAgoFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 35 }], 47: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 35 }], 46: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3184,6 +3168,9 @@ else { ENTimeUnitCasualRelativeFormatParser.prototype.innerExtract = function (context, match) { var prefix = match[1].toLowerCase(); var timeUnits = constants_1.parseTimeUnits(match[2]); + if (!timeUnits) { + return null; + } switch (prefix) { case "last": case "past": @@ -3196,7 +3183,7 @@ else { return ENTimeUnitCasualRelativeFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENTimeUnitCasualRelativeFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 35 }], 48: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 35 }], 47: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3216,13 +3203,16 @@ else { return this.strictMode ? STRICT_PATTERN : PATTERN; }; ENTimeUnitLaterFormatParser.prototype.innerExtract = function (context, match) { - var fragments = constants_1.parseTimeUnits(match[GROUP_NUM_TIMEUNITS]); - return results_1.ParsingComponents.createRelativeFromReference(context.reference, fragments); + var timeUnits = constants_1.parseTimeUnits(match[GROUP_NUM_TIMEUNITS]); + if (!timeUnits) { + return null; + } + return results_1.ParsingComponents.createRelativeFromReference(context.reference, timeUnits); }; return ENTimeUnitLaterFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENTimeUnitLaterFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 35 }], 49: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 35 }], 48: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3252,12 +3242,15 @@ else { return null; } var timeUnits = constants_1.parseTimeUnits(match[1]); + if (!timeUnits) { + return null; + } return results_1.ParsingComponents.createRelativeFromReference(context.reference, timeUnits); }; return ENTimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENTimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 35 }], 50: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 35 }], 49: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3305,7 +3298,92 @@ else { return ENWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ENWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 35 }], 51: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 35 }], 50: [function (require, module, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var constants_1 = require("../constants"); + var pattern_1 = require("../../../utils/pattern"); + var AbstractParserWithWordBoundary_1 = require("../../../common/parsers/AbstractParserWithWordBoundary"); + var PATTERN = new RegExp("([0-9]{4})[-\\.\\/\\s]" + + "(?:(".concat(pattern_1.matchAnyPattern(constants_1.MONTH_DICTIONARY), ")|([0-9]{1,2}))[-\\.\\/\\s]") + + "([0-9]{1,2})" + + "(?=\\W|$)", "i"); + var YEAR_NUMBER_GROUP = 1; + var MONTH_NAME_GROUP = 2; + var MONTH_NUMBER_GROUP = 3; + var DATE_NUMBER_GROUP = 4; + var ENYearMonthDayParser = /** @class */ (function (_super) { + __extends(ENYearMonthDayParser, _super); + function ENYearMonthDayParser(strictMonthDateOrder) { + var _this = _super.call(this) || this; + _this.strictMonthDateOrder = strictMonthDateOrder; + return _this; + } + ENYearMonthDayParser.prototype.innerPattern = function () { + return PATTERN; + }; + ENYearMonthDayParser.prototype.innerExtract = function (context, match) { + var _c; + var year = parseInt(match[YEAR_NUMBER_GROUP]); + var day = parseInt(match[DATE_NUMBER_GROUP]); + var month = match[MONTH_NUMBER_GROUP] + ? parseInt(match[MONTH_NUMBER_GROUP]) + : constants_1.MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()]; + if (month < 1 || month > 12) { + if (this.strictMonthDateOrder) { + return null; + } + if (day >= 1 && day <= 12) { + _c = [day, month], month = _c[0], day = _c[1]; + } + } + if (day < 1 || day > 31) { + return null; + } + return { + day: day, + month: month, + year: year, + }; + }; + return ENYearMonthDayParser; + }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); + exports.default = ENYearMonthDayParser; + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 35 }], 51: [function (require, module, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var constants_1 = require("../constants"); + var YEAR_SUFFIX_PATTERN = new RegExp("^\\s*(".concat(constants_1.YEAR_PATTERN, ")"), "i"); + var YEAR_GROUP = 1; + var ENExtractYearSuffixRefiner = /** @class */ (function () { + function ENExtractYearSuffixRefiner() { + } + ENExtractYearSuffixRefiner.prototype.refine = function (context, results) { + results.forEach(function (result) { + if (!result.start.isDateWithUnknownYear()) { + return; + } + var suffix = context.text.substring(result.index + result.text.length); + var match = YEAR_SUFFIX_PATTERN.exec(suffix); + if (!match) { + return; + } + context.debug(function () { + console.log("Extracting year: '".concat(match[0], "' into : ").concat(result)); + }); + var year = constants_1.parseYear(match[YEAR_GROUP]); + if (result.end != null) { + result.end.assign("year", year); + } + result.start.assign("year", year); + result.text += match[0]; + }); + return results; + }; + return ENExtractYearSuffixRefiner; + }()); + exports.default = ENExtractYearSuffixRefiner; + }, { "../constants": 35 }], 52: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3323,7 +3401,7 @@ else { return ENMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = ENMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 52: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 53: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3336,12 +3414,12 @@ else { return _super !== null && _super.apply(this, arguments) || this; } ENMergeDateTimeRefiner.prototype.patternBetween = function () { - return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|:)?\\s*$"); + return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$"); }; return ENMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = ENMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 53: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 54: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var abstractRefiners_1 = require("../../../common/abstractRefiners"); @@ -3376,7 +3454,7 @@ else { return ENMergeRelativeAfterDateRefiner; }(abstractRefiners_1.MergingRefiner)); exports.default = ENMergeRelativeAfterDateRefiner; - }, { "../../../common/abstractRefiners": 5, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 35 }], 54: [function (require, module, exports) { + }, { "../../../common/abstractRefiners": 5, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 35 }], 55: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var abstractRefiners_1 = require("../../../common/abstractRefiners"); @@ -3417,7 +3495,7 @@ else { return ENMergeRelativeFollowByDateRefiner; }(abstractRefiners_1.MergingRefiner)); exports.default = ENMergeRelativeFollowByDateRefiner; - }, { "../../../common/abstractRefiners": 5, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 35 }], 55: [function (require, module, exports) { + }, { "../../../common/abstractRefiners": 5, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 35 }], 56: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0; @@ -3582,7 +3660,7 @@ else { var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../utils/pattern": 165 }], 56: [function (require, module, exports) { + }, { "../../utils/pattern": 166 }], 57: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3641,7 +3719,7 @@ else { }, strictMode); } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/ESCasualDateParser": 57, "./parsers/ESCasualTimeParser": 58, "./parsers/ESMonthNameLittleEndianParser": 59, "./parsers/ESTimeExpressionParser": 60, "./parsers/ESTimeUnitWithinFormatParser": 61, "./parsers/ESWeekdayParser": 62, "./refiners/ESMergeDateRangeRefiner": 63, "./refiners/ESMergeDateTimeRefiner": 64 }], 57: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/ESCasualDateParser": 58, "./parsers/ESCasualTimeParser": 59, "./parsers/ESMonthNameLittleEndianParser": 60, "./parsers/ESTimeExpressionParser": 61, "./parsers/ESTimeUnitWithinFormatParser": 62, "./parsers/ESWeekdayParser": 63, "./refiners/ESMergeDateRangeRefiner": 64, "./refiners/ESMergeDateTimeRefiner": 65 }], 58: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -3697,7 +3775,7 @@ else { return ESCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ESCasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 58: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 59: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3748,7 +3826,7 @@ else { return ESCasualTimeParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ESCasualTimeParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163, "../../../utils/dayjs": 164, "dayjs": 167 }], 59: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164, "../../../utils/dayjs": 165, "dayjs": 168 }], 60: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -3802,7 +3880,7 @@ else { return ESMonthNameLittleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ESMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 55 }], 60: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 56 }], 61: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractTimeExpressionParser_1 = require("../../../common/parsers/AbstractTimeExpressionParser"); @@ -3820,7 +3898,7 @@ else { return ESTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = ESTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 61: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 62: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3841,7 +3919,7 @@ else { return ESTimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ESTimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 55 }], 62: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 56 }], 63: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -3890,7 +3968,7 @@ else { return ESWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ESWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 55 }], 63: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 56 }], 64: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3908,7 +3986,7 @@ else { return ESMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = ESMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 64: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 65: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -3926,7 +4004,7 @@ else { return ESMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = ESMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 65: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 66: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0; @@ -4094,7 +4172,7 @@ else { var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../utils/pattern": 165 }], 66: [function (require, module, exports) { + }, { "../../utils/pattern": 166 }], 67: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -4159,7 +4237,7 @@ else { }, strictMode); } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/FRCasualDateParser": 67, "./parsers/FRCasualTimeParser": 68, "./parsers/FRMonthNameLittleEndianParser": 69, "./parsers/FRSpecificTimeExpressionParser": 70, "./parsers/FRTimeExpressionParser": 71, "./parsers/FRTimeUnitAgoFormatParser": 72, "./parsers/FRTimeUnitRelativeFormatParser": 73, "./parsers/FRTimeUnitWithinFormatParser": 74, "./parsers/FRWeekdayParser": 75, "./refiners/FRMergeDateRangeRefiner": 76, "./refiners/FRMergeDateTimeRefiner": 77 }], 67: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/FRCasualDateParser": 68, "./parsers/FRCasualTimeParser": 69, "./parsers/FRMonthNameLittleEndianParser": 70, "./parsers/FRSpecificTimeExpressionParser": 71, "./parsers/FRTimeExpressionParser": 72, "./parsers/FRTimeUnitAgoFormatParser": 73, "./parsers/FRTimeUnitRelativeFormatParser": 74, "./parsers/FRTimeUnitWithinFormatParser": 75, "./parsers/FRWeekdayParser": 76, "./refiners/FRMergeDateRangeRefiner": 77, "./refiners/FRMergeDateTimeRefiner": 78 }], 68: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -4233,7 +4311,7 @@ else { return FRCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRCasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163, "../../../utils/dayjs": 164, "dayjs": 167 }], 68: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164, "../../../utils/dayjs": 165, "dayjs": 168 }], 69: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../../../types"); @@ -4281,7 +4359,7 @@ else { return FRCasualTimeParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRCasualTimeParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163 }], 69: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164 }], 70: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -4337,7 +4415,7 @@ else { return FRMonthNameLittleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 65 }], 70: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 66 }], 71: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../../../types"); @@ -4440,7 +4518,7 @@ else { return FRSpecificTimeExpressionParser; }()); exports.default = FRSpecificTimeExpressionParser; - }, { "../../../types": 163 }], 71: [function (require, module, exports) { + }, { "../../../types": 164 }], 72: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractTimeExpressionParser_1 = require("../../../common/parsers/AbstractTimeExpressionParser"); @@ -4464,7 +4542,7 @@ else { return FRTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = FRTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 72: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 73: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -4487,7 +4565,7 @@ else { return FRTimeUnitAgoFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRTimeUnitAgoFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 65 }], 73: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 66 }], 74: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -4525,7 +4603,7 @@ else { return FRTimeUnitAgoFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRTimeUnitAgoFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/pattern": 165, "../../../utils/timeunits": 166, "../constants": 65 }], 74: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/pattern": 166, "../../../utils/timeunits": 167, "../constants": 66 }], 75: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -4546,7 +4624,7 @@ else { return FRTimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRTimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 65 }], 75: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 66 }], 76: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -4590,7 +4668,7 @@ else { return FRWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = FRWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 65 }], 76: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 66 }], 77: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -4608,7 +4686,7 @@ else { return FRMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = FRMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 77: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 78: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -4626,7 +4704,7 @@ else { return FRMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = FRMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 78: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 79: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toHankaku = void 0; @@ -4642,7 +4720,7 @@ else { function alphaNum(token) { return String.fromCharCode(token.charCodeAt(0) - 65248); } - }, {}], 79: [function (require, module, exports) { + }, {}], 80: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -4684,7 +4762,7 @@ else { }; } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../results": 161, "../../types": 163, "./parsers/JPCasualDateParser": 80, "./parsers/JPStandardParser": 81, "./refiners/JPMergeDateRangeRefiner": 82 }], 80: [function (require, module, exports) { + }, { "../../chrono": 4, "../../results": 162, "../../types": 164, "./parsers/JPCasualDateParser": 81, "./parsers/JPStandardParser": 82, "./refiners/JPMergeDateRangeRefiner": 83 }], 81: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -4776,7 +4854,7 @@ else { return JPCasualDateParser; }()); exports.default = JPCasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../types": 163, "dayjs": 167 }], 81: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../types": 164, "dayjs": 168 }], 82: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -4832,7 +4910,7 @@ else { return JPStandardParser; }()); exports.default = JPStandardParser; - }, { "../../../calculation/years": 3, "../constants": 78, "dayjs": 167 }], 82: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../constants": 79, "dayjs": 168 }], 83: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -4850,7 +4928,7 @@ else { return JPMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = JPMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 83: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 84: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.ORDINAL_WORD_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0; @@ -5063,7 +5141,7 @@ else { var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../calculation/years": 3, "../../utils/pattern": 165 }], 84: [function (require, module, exports) { + }, { "../../calculation/years": 3, "../../utils/pattern": 166 }], 85: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5139,7 +5217,7 @@ else { }, strictMode); } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/NLCasualDateParser": 85, "./parsers/NLCasualDateTimeParser": 86, "./parsers/NLCasualTimeParser": 87, "./parsers/NLCasualYearMonthDayParser": 88, "./parsers/NLMonthNameMiddleEndianParser": 89, "./parsers/NLMonthNameParser": 90, "./parsers/NLRelativeDateFormatParser": 91, "./parsers/NLSlashMonthFormatParser": 92, "./parsers/NLTimeExpressionParser": 93, "./parsers/NLTimeUnitAgoFormatParser": 94, "./parsers/NLTimeUnitCasualRelativeFormatParser": 95, "./parsers/NLTimeUnitLaterFormatParser": 96, "./parsers/NLTimeUnitWithinFormatParser": 97, "./parsers/NLWeekdayParser": 98, "./refiners/NLMergeDateRangeRefiner": 99, "./refiners/NLMergeDateTimeRefiner": 100 }], 85: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/NLCasualDateParser": 86, "./parsers/NLCasualDateTimeParser": 87, "./parsers/NLCasualTimeParser": 88, "./parsers/NLCasualYearMonthDayParser": 89, "./parsers/NLMonthNameMiddleEndianParser": 90, "./parsers/NLMonthNameParser": 91, "./parsers/NLRelativeDateFormatParser": 92, "./parsers/NLSlashMonthFormatParser": 93, "./parsers/NLTimeExpressionParser": 94, "./parsers/NLTimeUnitAgoFormatParser": 95, "./parsers/NLTimeUnitCasualRelativeFormatParser": 96, "./parsers/NLTimeUnitLaterFormatParser": 97, "./parsers/NLTimeUnitWithinFormatParser": 98, "./parsers/NLWeekdayParser": 99, "./refiners/NLMergeDateRangeRefiner": 100, "./refiners/NLMergeDateTimeRefiner": 101 }], 86: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -5196,7 +5274,7 @@ else { return NLCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLCasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 86: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 87: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5255,7 +5333,7 @@ else { return NLCasualDateTimeParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLCasualDateTimeParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163, "../../../utils/dayjs": 164, "dayjs": 167 }], 87: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164, "../../../utils/dayjs": 165, "dayjs": 168 }], 88: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5316,7 +5394,7 @@ else { return NLCasualTimeParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLCasualTimeParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163, "../../../utils/dayjs": 164, "dayjs": 167 }], 88: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164, "../../../utils/dayjs": 165, "dayjs": 168 }], 89: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -5356,7 +5434,7 @@ else { return NLCasualYearMonthDayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLCasualYearMonthDayParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 83 }], 89: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 84 }], 90: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -5424,7 +5502,7 @@ else { return NLMonthNameMiddleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLMonthNameMiddleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 83 }], 90: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 84 }], 91: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -5467,7 +5545,7 @@ else { return NLMonthNameParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLMonthNameParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 83 }], 91: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 84 }], 92: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5530,7 +5608,7 @@ else { return NLRelativeDateFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLRelativeDateFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/pattern": 165, "../constants": 83, "dayjs": 167 }], 92: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/pattern": 166, "../constants": 84, "dayjs": 168 }], 93: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractParserWithWordBoundary_1 = require("../../../common/parsers/AbstractParserWithWordBoundary"); @@ -5553,7 +5631,7 @@ else { return NLSlashMonthFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLSlashMonthFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 93: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 94: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractTimeExpressionParser_1 = require("../../../common/parsers/AbstractTimeExpressionParser"); @@ -5580,7 +5658,7 @@ else { return NLTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = NLTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 94: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 95: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -5607,7 +5685,7 @@ else { return NLTimeUnitAgoFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLTimeUnitAgoFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 83 }], 95: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 84 }], 96: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -5640,7 +5718,7 @@ else { return NLTimeUnitCasualRelativeFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLTimeUnitCasualRelativeFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 83 }], 96: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 84 }], 97: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -5666,7 +5744,7 @@ else { return NLTimeUnitLaterFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLTimeUnitLaterFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 83 }], 97: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 84 }], 98: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -5687,7 +5765,7 @@ else { return NLTimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLTimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 83 }], 98: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 84 }], 99: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../../nl/constants"); @@ -5733,7 +5811,7 @@ else { return NLWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = NLWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../../nl/constants": 83 }], 99: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../../nl/constants": 84 }], 100: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5751,7 +5829,7 @@ else { return NLMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = NLMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 100: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 101: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5769,7 +5847,7 @@ else { return NLMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = NLMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 101: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 102: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseYear = exports.YEAR_PATTERN = exports.MONTH_DICTIONARY = exports.WEEKDAY_DICTIONARY = void 0; @@ -5854,7 +5932,7 @@ else { return parseInt(match); } exports.parseYear = parseYear; - }, {}], 102: [function (require, module, exports) { + }, {}], 103: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -5911,7 +5989,7 @@ else { }, strictMode); } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/PTCasualDateParser": 103, "./parsers/PTCasualTimeParser": 104, "./parsers/PTMonthNameLittleEndianParser": 105, "./parsers/PTTimeExpressionParser": 106, "./parsers/PTWeekdayParser": 107, "./refiners/PTMergeDateRangeRefiner": 108, "./refiners/PTMergeDateTimeRefiner": 109 }], 103: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/PTCasualDateParser": 104, "./parsers/PTCasualTimeParser": 105, "./parsers/PTMonthNameLittleEndianParser": 106, "./parsers/PTTimeExpressionParser": 107, "./parsers/PTWeekdayParser": 108, "./refiners/PTMergeDateRangeRefiner": 109, "./refiners/PTMergeDateTimeRefiner": 110 }], 104: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -5968,7 +6046,7 @@ else { return PTCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = PTCasualDateParser; - }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 104: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../common/parsers/AbstractParserWithWordBoundary": 8 }], 105: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -6019,7 +6097,7 @@ else { return PTCasualTimeParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = PTCasualTimeParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 163, "../../../utils/dayjs": 164, "dayjs": 167 }], 105: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../types": 164, "../../../utils/dayjs": 165, "dayjs": 168 }], 106: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -6073,7 +6151,7 @@ else { return PTMonthNameLittleEndianParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = PTMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 101 }], 106: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 102 }], 107: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AbstractTimeExpressionParser_1 = require("../../../common/parsers/AbstractTimeExpressionParser"); @@ -6091,7 +6169,7 @@ else { return PTTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = PTTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 107: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9 }], 108: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -6140,7 +6218,7 @@ else { return PTWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = PTWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 165, "../constants": 101 }], 108: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../utils/pattern": 166, "../constants": 102 }], 109: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -6158,7 +6236,7 @@ else { return PTMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = PTMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 109: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 110: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -6176,7 +6254,7 @@ else { return PTMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = PTMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 110: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 111: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.ORDINAL_WORD_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.FULL_MONTH_NAME_DICTIONARY = exports.WEEKDAY_DICTIONARY = exports.REGEX_PARTS = void 0; @@ -6480,7 +6558,7 @@ else { var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../calculation/years": 3, "../../utils/pattern": 165 }], 111: [function (require, module, exports) { + }, { "../../calculation/years": 3, "../../utils/pattern": 166 }], 112: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -6545,7 +6623,7 @@ else { }, strictMode); } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/RUCasualDateParser": 113, "./parsers/RUCasualTimeParser": 114, "./parsers/RUMonthNameLittleEndianParser": 115, "./parsers/RUMonthNameParser": 116, "./parsers/RURelativeDateFormatParser": 117, "./parsers/RUTimeExpressionParser": 118, "./parsers/RUTimeUnitAgoFormatParser": 119, "./parsers/RUTimeUnitCasualRelativeFormatParser": 120, "./parsers/RUTimeUnitWithinFormatParser": 121, "./parsers/RUWeekdayParser": 122, "./refiners/RUMergeDateRangeRefiner": 123, "./refiners/RUMergeDateTimeRefiner": 124 }], 112: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/RUCasualDateParser": 114, "./parsers/RUCasualTimeParser": 115, "./parsers/RUMonthNameLittleEndianParser": 116, "./parsers/RUMonthNameParser": 117, "./parsers/RURelativeDateFormatParser": 118, "./parsers/RUTimeExpressionParser": 119, "./parsers/RUTimeUnitAgoFormatParser": 120, "./parsers/RUTimeUnitCasualRelativeFormatParser": 121, "./parsers/RUTimeUnitWithinFormatParser": 122, "./parsers/RUWeekdayParser": 123, "./refiners/RUMergeDateRangeRefiner": 124, "./refiners/RUMergeDateTimeRefiner": 125 }], 113: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractParserWithLeftRightBoundaryChecking = exports.AbstractParserWithLeftBoundaryChecking = void 0; @@ -6579,7 +6657,7 @@ else { return AbstractParserWithLeftRightBoundaryChecking; }(AbstractParserWithLeftBoundaryChecking)); exports.AbstractParserWithLeftRightBoundaryChecking = AbstractParserWithLeftRightBoundaryChecking; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 110 }], 113: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 111 }], 114: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -6641,7 +6719,7 @@ else { return RUCasualDateParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = RUCasualDateParser; - }, { "../../../common/casualReferences": 7, "./AbstractParserWithWordBoundaryChecking": 112 }], 114: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "./AbstractParserWithWordBoundaryChecking": 113 }], 115: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -6720,7 +6798,7 @@ else { return RUCasualTimeParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = RUCasualTimeParser; - }, { "../../../common/casualReferences": 7, "../../../utils/dayjs": 164, "./AbstractParserWithWordBoundaryChecking": 112, "dayjs": 167 }], 115: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../utils/dayjs": 165, "./AbstractParserWithWordBoundaryChecking": 113, "dayjs": 168 }], 116: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -6779,7 +6857,7 @@ else { return RUMonthNameLittleEndianParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = RUMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../utils/pattern": 165, "../constants": 110, "./AbstractParserWithWordBoundaryChecking": 112 }], 116: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../utils/pattern": 166, "../constants": 111, "./AbstractParserWithWordBoundaryChecking": 113 }], 117: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -6825,7 +6903,7 @@ else { return RUMonthNameParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftBoundaryChecking)); exports.default = RUMonthNameParser; - }, { "../../../calculation/years": 3, "../../../utils/pattern": 165, "../constants": 110, "./AbstractParserWithWordBoundaryChecking": 112 }], 117: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../utils/pattern": 166, "../constants": 111, "./AbstractParserWithWordBoundaryChecking": 113 }], 118: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -6886,7 +6964,7 @@ else { return RURelativeDateFormatParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = RURelativeDateFormatParser; - }, { "../../../results": 161, "../../../utils/pattern": 165, "../constants": 110, "./AbstractParserWithWordBoundaryChecking": 112, "dayjs": 167 }], 118: [function (require, module, exports) { + }, { "../../../results": 162, "../../../utils/pattern": 166, "../constants": 111, "./AbstractParserWithWordBoundaryChecking": 113, "dayjs": 168 }], 119: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../../../types"); @@ -6945,7 +7023,7 @@ else { return RUTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = RUTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9, "../../../types": 163, "../constants": 110 }], 119: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9, "../../../types": 164, "../constants": 111 }], 120: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -6968,7 +7046,7 @@ else { return RUTimeUnitAgoFormatParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftBoundaryChecking)); exports.default = RUTimeUnitAgoFormatParser; - }, { "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 110, "./AbstractParserWithWordBoundaryChecking": 112 }], 120: [function (require, module, exports) { + }, { "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 111, "./AbstractParserWithWordBoundaryChecking": 113 }], 121: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -6998,7 +7076,7 @@ else { return RUTimeUnitCasualRelativeFormatParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = RUTimeUnitCasualRelativeFormatParser; - }, { "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 110, "./AbstractParserWithWordBoundaryChecking": 112 }], 121: [function (require, module, exports) { + }, { "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 111, "./AbstractParserWithWordBoundaryChecking": 113 }], 122: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7025,7 +7103,7 @@ else { return RUTimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = RUTimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 110 }], 122: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 111 }], 123: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7074,7 +7152,7 @@ else { return RUWeekdayParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = RUWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../utils/pattern": 165, "../constants": 110, "./AbstractParserWithWordBoundaryChecking": 112 }], 123: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../utils/pattern": 166, "../constants": 111, "./AbstractParserWithWordBoundaryChecking": 113 }], 124: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -7092,7 +7170,7 @@ else { return RUMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = RUMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 124: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 125: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -7110,7 +7188,7 @@ else { return RUMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = RUMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 125: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 126: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYearPattern = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTIONARY = exports.ORDINAL_WORD_DICTIONARY = exports.INTEGER_WORD_DICTIONARY = exports.MONTH_DICTIONARY = exports.FULL_MONTH_NAME_DICTIONARY = exports.WEEKDAY_DICTIONARY = exports.REGEX_PARTS = void 0; @@ -7411,7 +7489,7 @@ else { var unit = exports.TIME_UNIT_DICTIONARY[match[2].toLowerCase()]; fragments[unit] = num; } - }, { "../../calculation/years": 3, "../../utils/pattern": 165 }], 126: [function (require, module, exports) { + }, { "../../calculation/years": 3, "../../utils/pattern": 166 }], 127: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -7477,9 +7555,9 @@ else { return exports.casual.parseDate(text, ref, option); } exports.parseDate = parseDate; - }, { "../../chrono": 4, "../../common/parsers/ISOFormatParser": 10, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 161, "../../types": 163, "./parsers/UKCasualDateParser": 128, "./parsers/UKCasualTimeParser": 129, "./parsers/UKMonthNameLittleEndianParser": 130, "./parsers/UKMonthNameParser": 131, "./parsers/UKRelativeDateFormatParser": 132, "./parsers/UKTimeExpressionParser": 133, "./parsers/UKTimeUnitAgoFormatParser": 134, "./parsers/UKTimeUnitCasualRelativeFormatParser": 135, "./parsers/UKTimeUnitWithinFormatParser": 136, "./parsers/UKWeekdayParser": 137, "./refiners/UKMergeDateRangeRefiner": 138, "./refiners/UKMergeDateTimeRefiner": 139 }], 127: [function (require, module, exports) { - arguments[4][112][0].apply(exports, arguments); - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 125, "dup": 112 }], 128: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/parsers/ISOFormatParser": 10, "../../common/parsers/SlashDateFormatParser": 11, "../../configurations": 20, "../../results": 162, "../../types": 164, "./parsers/UKCasualDateParser": 129, "./parsers/UKCasualTimeParser": 130, "./parsers/UKMonthNameLittleEndianParser": 131, "./parsers/UKMonthNameParser": 132, "./parsers/UKRelativeDateFormatParser": 133, "./parsers/UKTimeExpressionParser": 134, "./parsers/UKTimeUnitAgoFormatParser": 135, "./parsers/UKTimeUnitCasualRelativeFormatParser": 136, "./parsers/UKTimeUnitWithinFormatParser": 137, "./parsers/UKWeekdayParser": 138, "./refiners/UKMergeDateRangeRefiner": 139, "./refiners/UKMergeDateTimeRefiner": 140 }], 128: [function (require, module, exports) { + arguments[4][113][0].apply(exports, arguments); + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 126, "dup": 113 }], 129: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -7541,7 +7619,7 @@ else { return UKCasualDateParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = UKCasualDateParser; - }, { "../../../common/casualReferences": 7, "./AbstractParserWithWordBoundaryChecking": 127 }], 129: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "./AbstractParserWithWordBoundaryChecking": 128 }], 130: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -7623,7 +7701,7 @@ else { return UKCasualTimeParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = UKCasualTimeParser; - }, { "../../../common/casualReferences": 7, "../../../utils/dayjs": 164, "./AbstractParserWithWordBoundaryChecking": 127, "dayjs": 167 }], 130: [function (require, module, exports) { + }, { "../../../common/casualReferences": 7, "../../../utils/dayjs": 165, "./AbstractParserWithWordBoundaryChecking": 128, "dayjs": 168 }], 131: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var years_1 = require("../../../calculation/years"); @@ -7682,7 +7760,7 @@ else { return UKMonthNameLittleEndianParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = UKMonthNameLittleEndianParser; - }, { "../../../calculation/years": 3, "../../../utils/pattern": 165, "../constants": 125, "./AbstractParserWithWordBoundaryChecking": 127 }], 131: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../utils/pattern": 166, "../constants": 126, "./AbstractParserWithWordBoundaryChecking": 128 }], 132: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7728,7 +7806,7 @@ else { return UkMonthNameParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftBoundaryChecking)); exports.default = UkMonthNameParser; - }, { "../../../calculation/years": 3, "../../../utils/pattern": 165, "../constants": 125, "./AbstractParserWithWordBoundaryChecking": 127 }], 132: [function (require, module, exports) { + }, { "../../../calculation/years": 3, "../../../utils/pattern": 166, "../constants": 126, "./AbstractParserWithWordBoundaryChecking": 128 }], 133: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -7796,7 +7874,7 @@ else { return UKRelativeDateFormatParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = UKRelativeDateFormatParser; - }, { "../../../results": 161, "../../../utils/pattern": 165, "../constants": 125, "./AbstractParserWithWordBoundaryChecking": 127, "dayjs": 167 }], 133: [function (require, module, exports) { + }, { "../../../results": 162, "../../../utils/pattern": 166, "../constants": 126, "./AbstractParserWithWordBoundaryChecking": 128, "dayjs": 168 }], 134: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../../../types"); @@ -7855,7 +7933,7 @@ else { return UKTimeExpressionParser; }(AbstractTimeExpressionParser_1.AbstractTimeExpressionParser)); exports.default = UKTimeExpressionParser; - }, { "../../../common/parsers/AbstractTimeExpressionParser": 9, "../../../types": 163, "../constants": 125 }], 134: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractTimeExpressionParser": 9, "../../../types": 164, "../constants": 126 }], 135: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7878,7 +7956,7 @@ else { return UKTimeUnitAgoFormatParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftBoundaryChecking)); exports.default = UKTimeUnitAgoFormatParser; - }, { "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 125, "./AbstractParserWithWordBoundaryChecking": 127 }], 135: [function (require, module, exports) { + }, { "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 126, "./AbstractParserWithWordBoundaryChecking": 128 }], 136: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7908,7 +7986,7 @@ else { return UKTimeUnitCasualRelativeFormatParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = UKTimeUnitCasualRelativeFormatParser; - }, { "../../../results": 161, "../../../utils/timeunits": 166, "../constants": 125, "./AbstractParserWithWordBoundaryChecking": 127 }], 136: [function (require, module, exports) { + }, { "../../../results": 162, "../../../utils/timeunits": 167, "../constants": 126, "./AbstractParserWithWordBoundaryChecking": 128 }], 137: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7935,7 +8013,7 @@ else { return UKTimeUnitWithinFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = UKTimeUnitWithinFormatParser; - }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 161, "../constants": 125 }], 137: [function (require, module, exports) { + }, { "../../../common/parsers/AbstractParserWithWordBoundary": 8, "../../../results": 162, "../constants": 126 }], 138: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); @@ -7985,7 +8063,7 @@ else { return UKWeekdayParser; }(AbstractParserWithWordBoundaryChecking_1.AbstractParserWithLeftRightBoundaryChecking)); exports.default = UKWeekdayParser; - }, { "../../../common/calculation/weekdays": 6, "../../../utils/pattern": 165, "../constants": 125, "./AbstractParserWithWordBoundaryChecking": 127 }], 138: [function (require, module, exports) { + }, { "../../../common/calculation/weekdays": 6, "../../../utils/pattern": 166, "../constants": 126, "./AbstractParserWithWordBoundaryChecking": 128 }], 139: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8003,7 +8081,7 @@ else { return UKMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = UKMergeDateRangeRefiner; - }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 139: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 140: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8021,7 +8099,7 @@ else { return UKMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = UKMergeDateTimeRefiner; - }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 140: [function (require, module, exports) { + }, { "../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 141: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.zhStringToYear = exports.zhStringToNumber = exports.WEEKDAY_OFFSET = exports.NUMBER = void 0; @@ -8073,7 +8151,7 @@ else { return parseInt(string); } exports.zhStringToYear = zhStringToYear; - }, {}], 141: [function (require, module, exports) { + }, {}], 142: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8131,7 +8209,7 @@ else { return configuration; } exports.createConfiguration = createConfiguration; - }, { "../../../chrono": 4, "../../../common/refiners/ExtractTimezoneOffsetRefiner": 15, "../../../configurations": 20, "../../../results": 161, "../../../types": 163, "./parsers/ZHHansCasualDateParser": 142, "./parsers/ZHHansDateParser": 143, "./parsers/ZHHansDeadlineFormatParser": 144, "./parsers/ZHHansRelationWeekdayParser": 145, "./parsers/ZHHansTimeExpressionParser": 146, "./parsers/ZHHansWeekdayParser": 147, "./refiners/ZHHansMergeDateRangeRefiner": 148, "./refiners/ZHHansMergeDateTimeRefiner": 149 }], 142: [function (require, module, exports) { + }, { "../../../chrono": 4, "../../../common/refiners/ExtractTimezoneOffsetRefiner": 15, "../../../configurations": 20, "../../../results": 162, "../../../types": 164, "./parsers/ZHHansCasualDateParser": 143, "./parsers/ZHHansDateParser": 144, "./parsers/ZHHansDeadlineFormatParser": 145, "./parsers/ZHHansRelationWeekdayParser": 146, "./parsers/ZHHansTimeExpressionParser": 147, "./parsers/ZHHansWeekdayParser": 148, "./refiners/ZHHansMergeDateRangeRefiner": 149, "./refiners/ZHHansMergeDateTimeRefiner": 150 }], 143: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8275,7 +8353,7 @@ else { return ZHHansCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHansCasualDateParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "dayjs": 167 }], 143: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "dayjs": 168 }], 144: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8353,7 +8431,7 @@ else { return ZHHansDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHansDateParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 140, "dayjs": 167 }], 144: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 141, "dayjs": 168 }], 145: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8437,7 +8515,7 @@ else { return ZHHansDeadlineFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHansDeadlineFormatParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 140, "dayjs": 167 }], 145: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 141, "dayjs": 168 }], 146: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8513,7 +8591,7 @@ else { return ZHHansRelationWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHansRelationWeekdayParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 140, "dayjs": 167 }], 146: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 141, "dayjs": 168 }], 147: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -8957,7 +9035,7 @@ else { return ZHHansTimeExpressionParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHansTimeExpressionParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 140, "dayjs": 167 }], 147: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 141, "dayjs": 168 }], 148: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9009,7 +9087,7 @@ else { return ZHHansWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHansWeekdayParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 140, "dayjs": 167 }], 148: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 141, "dayjs": 168 }], 149: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9027,7 +9105,7 @@ else { return ZHHansMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = ZHHansMergeDateRangeRefiner; - }, { "../../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 149: [function (require, module, exports) { + }, { "../../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 150: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9045,7 +9123,7 @@ else { return ZHHansMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = ZHHansMergeDateTimeRefiner; - }, { "../../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 150: [function (require, module, exports) { + }, { "../../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 151: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.zhStringToYear = exports.zhStringToNumber = exports.WEEKDAY_OFFSET = exports.NUMBER = void 0; @@ -9098,7 +9176,7 @@ else { return parseInt(string); } exports.zhStringToYear = zhStringToYear; - }, {}], 151: [function (require, module, exports) { + }, {}], 152: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9156,7 +9234,7 @@ else { return configuration; } exports.createConfiguration = createConfiguration; - }, { "../../../chrono": 4, "../../../common/refiners/ExtractTimezoneOffsetRefiner": 15, "../../../configurations": 20, "../../../results": 161, "../../../types": 163, "./parsers/ZHHantCasualDateParser": 152, "./parsers/ZHHantDateParser": 153, "./parsers/ZHHantDeadlineFormatParser": 154, "./parsers/ZHHantRelationWeekdayParser": 155, "./parsers/ZHHantTimeExpressionParser": 156, "./parsers/ZHHantWeekdayParser": 157, "./refiners/ZHHantMergeDateRangeRefiner": 158, "./refiners/ZHHantMergeDateTimeRefiner": 159 }], 152: [function (require, module, exports) { + }, { "../../../chrono": 4, "../../../common/refiners/ExtractTimezoneOffsetRefiner": 15, "../../../configurations": 20, "../../../results": 162, "../../../types": 164, "./parsers/ZHHantCasualDateParser": 153, "./parsers/ZHHantDateParser": 154, "./parsers/ZHHantDeadlineFormatParser": 155, "./parsers/ZHHantRelationWeekdayParser": 156, "./parsers/ZHHantTimeExpressionParser": 157, "./parsers/ZHHantWeekdayParser": 158, "./refiners/ZHHantMergeDateRangeRefiner": 159, "./refiners/ZHHantMergeDateTimeRefiner": 160 }], 153: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9300,7 +9378,7 @@ else { return ZHHantCasualDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHantCasualDateParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "dayjs": 167 }], 153: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "dayjs": 168 }], 154: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9370,7 +9448,7 @@ else { return ZHHantDateParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHantDateParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 150, "dayjs": 167 }], 154: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 151, "dayjs": 168 }], 155: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9454,7 +9532,7 @@ else { return ZHHantDeadlineFormatParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHantDeadlineFormatParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 150, "dayjs": 167 }], 155: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 151, "dayjs": 168 }], 156: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9530,7 +9608,7 @@ else { return ZHHantRelationWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHantRelationWeekdayParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 150, "dayjs": 167 }], 156: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 151, "dayjs": 168 }], 157: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -9974,7 +10052,7 @@ else { return ZHHantTimeExpressionParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHantTimeExpressionParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 150, "dayjs": 167 }], 157: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 151, "dayjs": 168 }], 158: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -10026,7 +10104,7 @@ else { return ZHHantWeekdayParser; }(AbstractParserWithWordBoundary_1.AbstractParserWithWordBoundaryChecking)); exports.default = ZHHantWeekdayParser; - }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 150, "dayjs": 167 }], 158: [function (require, module, exports) { + }, { "../../../../common/parsers/AbstractParserWithWordBoundary": 8, "../constants": 151, "dayjs": 168 }], 159: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -10044,7 +10122,7 @@ else { return ZHHantMergeDateRangeRefiner; }(AbstractMergeDateRangeRefiner_1.default)); exports.default = ZHHantMergeDateRangeRefiner; - }, { "../../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 159: [function (require, module, exports) { + }, { "../../../../common/refiners/AbstractMergeDateRangeRefiner": 12 }], 160: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -10062,7 +10140,7 @@ else { return ZHHantMergeDateTimeRefiner; }(AbstractMergeDateTimeRefiner_1.default)); exports.default = ZHHantMergeDateTimeRefiner; - }, { "../../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 160: [function (require, module, exports) { + }, { "../../../../common/refiners/AbstractMergeDateTimeRefiner": 13 }], 161: [function (require, module, exports) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) { if (k2 === undefined) @@ -10156,7 +10234,7 @@ else { return configuration; } exports.createConfiguration = createConfiguration; - }, { "../../chrono": 4, "../../common/refiners/ExtractTimezoneOffsetRefiner": 15, "../../configurations": 20, "../../results": 161, "../../types": 163, "./hans": 141, "./hans/parsers/ZHHansDateParser": 143, "./hans/parsers/ZHHansDeadlineFormatParser": 144, "./hans/parsers/ZHHansRelationWeekdayParser": 145, "./hans/parsers/ZHHansTimeExpressionParser": 146, "./hans/parsers/ZHHansWeekdayParser": 147, "./hant": 151, "./hant/parsers/ZHHantCasualDateParser": 152, "./hant/parsers/ZHHantDateParser": 153, "./hant/parsers/ZHHantDeadlineFormatParser": 154, "./hant/parsers/ZHHantRelationWeekdayParser": 155, "./hant/parsers/ZHHantTimeExpressionParser": 156, "./hant/parsers/ZHHantWeekdayParser": 157, "./hant/refiners/ZHHantMergeDateRangeRefiner": 158, "./hant/refiners/ZHHantMergeDateTimeRefiner": 159 }], 161: [function (require, module, exports) { + }, { "../../chrono": 4, "../../common/refiners/ExtractTimezoneOffsetRefiner": 15, "../../configurations": 20, "../../results": 162, "../../types": 164, "./hans": 142, "./hans/parsers/ZHHansDateParser": 144, "./hans/parsers/ZHHansDeadlineFormatParser": 145, "./hans/parsers/ZHHansRelationWeekdayParser": 146, "./hans/parsers/ZHHansTimeExpressionParser": 147, "./hans/parsers/ZHHansWeekdayParser": 148, "./hant": 152, "./hant/parsers/ZHHantCasualDateParser": 153, "./hant/parsers/ZHHantDateParser": 154, "./hant/parsers/ZHHantDeadlineFormatParser": 155, "./hant/parsers/ZHHantRelationWeekdayParser": 156, "./hant/parsers/ZHHantTimeExpressionParser": 157, "./hant/parsers/ZHHantWeekdayParser": 158, "./hant/refiners/ZHHantMergeDateRangeRefiner": 159, "./hant/refiners/ZHHantMergeDateTimeRefiner": 160 }], 162: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -10262,7 +10340,7 @@ else { return !this.isCertain("hour") && !this.isCertain("minute") && !this.isCertain("second"); }; ParsingComponents.prototype.isOnlyTime = function () { - return !this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month"); + return (!this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month") && !this.isCertain("year")); }; ParsingComponents.prototype.isOnlyWeekdayComponent = function () { return this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month"); @@ -10337,10 +10415,13 @@ else { components.assign("month", date.month() + 1); components.assign("year", date.year()); } + else if (fragments["week"]) { + components.assign("day", date.date()); + components.assign("month", date.month() + 1); + components.assign("year", date.year()); + components.imply("weekday", date.day()); + } else { - if (fragments["week"]) { - components.imply("weekday", date.day()); - } components.imply("day", date.date()); if (fragments["month"]) { components.assign("month", date.month() + 1); @@ -10397,7 +10478,7 @@ else { return ParsingResult; }()); exports.ParsingResult = ParsingResult; - }, { "./timezone": 162, "./utils/dayjs": 164, "dayjs": 167, "dayjs/plugin/quarterOfYear": 168 }], 162: [function (require, module, exports) { + }, { "./timezone": 163, "./utils/dayjs": 165, "dayjs": 168, "dayjs/plugin/quarterOfYear": 169 }], 163: [function (require, module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -10681,7 +10762,7 @@ else { return matchedTimezone.timezoneOffsetNonDst; } exports.toTimezoneOffset = toTimezoneOffset; - }, { "./types": 163, "dayjs": 167 }], 163: [function (require, module, exports) { + }, { "./types": 164, "dayjs": 168 }], 164: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Month = exports.Weekday = exports.Meridiem = void 0; @@ -10715,7 +10796,7 @@ else { Month[Month["NOVEMBER"] = 11] = "NOVEMBER"; Month[Month["DECEMBER"] = 12] = "DECEMBER"; })(Month = exports.Month || (exports.Month = {})); - }, {}], 164: [function (require, module, exports) { + }, {}], 165: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.implySimilarTime = exports.implySimilarDate = exports.assignSimilarTime = exports.assignSimilarDate = exports.implyTheNextDay = exports.assignTheNextDay = void 0; @@ -10764,7 +10845,7 @@ else { component.imply("millisecond", targetDayJs.millisecond()); } exports.implySimilarTime = implySimilarTime; - }, { "../types": 163 }], 165: [function (require, module, exports) { + }, { "../types": 164 }], 166: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.matchAnyPattern = exports.extractTerms = exports.repeatedTimeunitPattern = void 0; @@ -10796,7 +10877,7 @@ else { return "(?:".concat(joinedTerms, ")"); } exports.matchAnyPattern = matchAnyPattern; - }, {}], 166: [function (require, module, exports) { + }, {}], 167: [function (require, module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addImpliedTimeUnits = exports.reverseTimeUnits = void 0; @@ -10827,7 +10908,7 @@ else { return output; } exports.addImpliedTimeUnits = addImpliedTimeUnits; - }, {}], 167: [function (require, module, exports) { + }, {}], 168: [function (require, module, exports) { !function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e(); }(this, (function () { "use strict"; var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function (t) { var e = ["th", "st", "nd", "rd"], n = t % 100; return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]"; } }, m = function (t, e, n) { var r = String(t); return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t; }, v = { s: m, z: function (t) { var e = -t.utcOffset(), n = Math.abs(e), r = Math.floor(n / 60), i = n % 60; return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0"); }, m: function t(e, n) { if (e.date() < n.date()) @@ -10933,7 +11014,7 @@ else { return this.$L; var n = this.clone(), r = w(t, e, !0); return r && (n.$L = r), n; }, m.clone = function () { return b.w(this.$d, this); }, m.toDate = function () { return new Date(this.valueOf()); }, m.toJSON = function () { return this.isValid() ? this.toISOString() : null; }, m.toISOString = function () { return this.$d.toISOString(); }, m.toString = function () { return this.$d.toUTCString(); }, M; }(), k = _.prototype; return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function (t) { k[t[1]] = function (e) { return this.$g(e, t[0], t[1]); }; })), O.extend = function (t, e) { return t.$i || (t(e, _, O), t.$i = !0), O; }, O.locale = w, O.isDayjs = S, O.unix = function (t) { return O(1e3 * t); }, O.en = D[g], O.Ls = D, O.p = {}, O; })); - }, {}], 168: [function (require, module, exports) { + }, {}], 169: [function (require, module, exports) { !function (t, n) { "object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_quarterOfYear = n(); }(this, (function () { "use strict"; var t = "month", n = "quarter"; diff --git a/package-lock.json b/package-lock.json index 609a2e4..92ee752 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,28 +1,28 @@ { "name": "go-chrono", - "version": "2.7.6", + "version": "2.7.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "go-chrono", - "version": "2.7.6", + "version": "2.7.7", "dependencies": { - "chrono-node": "=2.7.6" + "chrono-node": "=2.7.7" }, "devDependencies": { - "@types/node": "^20.6.0", + "@types/node": "^22.5.5", "browserify": "^17.0.0", - "typescript": "^4.4.2" + "typescript": "^5.6.2" } }, "node_modules/@types/node": { - "version": "20.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.13.0.tgz", - "integrity": "sha512-FM6AOb3khNkNIXPnHFDYaHerSv8uN22C91z098AnGccVu+Pcdhi+pNUFDi0iLmPIsVE0JBD0KVS7mzUYt4nRzQ==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", "dev": true, "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "node_modules/acorn": { @@ -381,9 +381,9 @@ } }, "node_modules/chrono-node": { - "version": "2.7.6", - "resolved": "https://registry.npmjs.org/chrono-node/-/chrono-node-2.7.6.tgz", - "integrity": "sha512-yugKSRLHc6B6kXxm/DwNc94zhaddAjCSO9IOGH3w7NIWNM+gUoLl/2/XLndiw4I+XhU4H2LOhC5Ab2JjS6JWsA==", + "version": "2.7.7", + "resolved": "https://registry.npmjs.org/chrono-node/-/chrono-node-2.7.7.tgz", + "integrity": "sha512-p3S7gotuTPu5oqhRL2p1fLwQXGgdQaRTtWR3e8Di9P1Pa9mzkK5DWR5AWBieMUh2ZdOnPgrK+zCrbbtyuA+D/Q==", "dependencies": { "dayjs": "^1.10.0" }, @@ -530,9 +530,9 @@ "dev": true }, "node_modules/dayjs": { - "version": "1.11.11", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz", - "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==" + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" }, "node_modules/define-data-property": { "version": "1.1.4", @@ -656,9 +656,9 @@ } }, "node_modules/elliptic": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", - "integrity": "sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==", + "version": "6.5.7", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", + "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", "dev": true, "dependencies": { "bn.js": "^4.11.9", @@ -1027,12 +1027,15 @@ } }, "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", + "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", "dev": true, "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -1214,10 +1217,13 @@ } }, "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1393,9 +1399,9 @@ "dev": true }, "node_modules/qs": { - "version": "6.12.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.1.tgz", - "integrity": "sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, "dependencies": { "side-channel": "^1.0.6" @@ -1766,16 +1772,16 @@ "dev": true }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/umd": { @@ -1804,19 +1810,22 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "dev": true }, "node_modules/url": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.3.tgz", - "integrity": "sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==", + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz", + "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", "dev": true, "dependencies": { "punycode": "^1.4.1", - "qs": "^6.11.2" + "qs": "^6.12.3" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/util": { diff --git a/package.json b/package.json index b2fd496..e367492 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "version": "2.7.6", + "version": "2.7.7", "dependencies": { - "chrono-node": "=2.7.6" + "chrono-node": "=2.7.7" }, "devDependencies": { - "@types/node": "^20.6.0", + "@types/node": "^22.5.5", "browserify": "^17.0.0", - "typescript": "^4.4.2" + "typescript": "^5.6.2" } }