main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;

View File

@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;

View File

@@ -0,0 +1,119 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "1びょうみまん",
other: "{{count}}びょうみまん",
oneWithSuffix: "やく1びょう",
otherWithSuffix: "やく{{count}}びょう",
},
xSeconds: {
one: "1びょう",
other: "{{count}}びょう",
},
halfAMinute: "30びょう",
lessThanXMinutes: {
one: "1ぷんみまん",
other: "{{count}}ふんみまん",
oneWithSuffix: "やく1ぷん",
otherWithSuffix: "やく{{count}}ふん",
},
xMinutes: {
one: "1ぷん",
other: "{{count}}ふん",
},
aboutXHours: {
one: "やく1じかん",
other: "やく{{count}}じかん",
},
xHours: {
one: "1じかん",
other: "{{count}}じかん",
},
xDays: {
one: "1にち",
other: "{{count}}にち",
},
aboutXWeeks: {
one: "やく1しゅうかん",
other: "やく{{count}}しゅうかん",
},
xWeeks: {
one: "1しゅうかん",
other: "{{count}}しゅうかん",
},
aboutXMonths: {
one: "やく1かげつ",
other: "やく{{count}}かげつ",
},
xMonths: {
one: "1かげつ",
other: "{{count}}かげつ",
},
aboutXYears: {
one: "やく1ねん",
other: "やく{{count}}ねん",
},
xYears: {
one: "1ねん",
other: "{{count}}ねん",
},
overXYears: {
one: "1ねんいじょう",
other: "{{count}}ねんいじょう",
},
almostXYears: {
one: "1ねんちかく",
other: "{{count}}ねんちかく",
},
};
const formatDistance = (token, count, options) => {
options = options || {};
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
if (options.addSuffix && tokenValue.oneWithSuffix) {
result = tokenValue.oneWithSuffix;
} else {
result = tokenValue.one;
}
} else {
if (options.addSuffix && tokenValue.otherWithSuffix) {
result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
}
if (options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result + "あと";
} else {
return result + "まえ";
}
}
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -0,0 +1,115 @@
const formatDistanceLocale = {
lessThanXSeconds: {
one: "1びょうみまん",
other: "{{count}}びょうみまん",
oneWithSuffix: "やく1びょう",
otherWithSuffix: "やく{{count}}びょう",
},
xSeconds: {
one: "1びょう",
other: "{{count}}びょう",
},
halfAMinute: "30びょう",
lessThanXMinutes: {
one: "1ぷんみまん",
other: "{{count}}ふんみまん",
oneWithSuffix: "やく1ぷん",
otherWithSuffix: "やく{{count}}ふん",
},
xMinutes: {
one: "1ぷん",
other: "{{count}}ふん",
},
aboutXHours: {
one: "やく1じかん",
other: "やく{{count}}じかん",
},
xHours: {
one: "1じかん",
other: "{{count}}じかん",
},
xDays: {
one: "1にち",
other: "{{count}}にち",
},
aboutXWeeks: {
one: "やく1しゅうかん",
other: "やく{{count}}しゅうかん",
},
xWeeks: {
one: "1しゅうかん",
other: "{{count}}しゅうかん",
},
aboutXMonths: {
one: "やく1かげつ",
other: "やく{{count}}かげつ",
},
xMonths: {
one: "1かげつ",
other: "{{count}}かげつ",
},
aboutXYears: {
one: "やく1ねん",
other: "やく{{count}}ねん",
},
xYears: {
one: "1ねん",
other: "{{count}}ねん",
},
overXYears: {
one: "1ねんいじょう",
other: "{{count}}ねんいじょう",
},
almostXYears: {
one: "1ねんちかく",
other: "{{count}}ねんちかく",
},
};
export const formatDistance = (token, count, options) => {
options = options || {};
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
if (options.addSuffix && tokenValue.oneWithSuffix) {
result = tokenValue.oneWithSuffix;
} else {
result = tokenValue.one;
}
} else {
if (options.addSuffix && tokenValue.otherWithSuffix) {
result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
}
if (options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result + "あと";
} else {
return result + "まえ";
}
}
return result;
};

View File

@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;

View File

@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;

View File

@@ -0,0 +1,41 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
const dateFormats = {
full: "yねんMがつdにちEEEE",
long: "yねんMがつdにち",
medium: "y/MM/dd",
short: "y/MM/dd",
};
const timeFormats = {
full: "Hじmmふんssびょう zzzz",
long: "H:mm:ss z",
medium: "H:mm:ss",
short: "H:mm",
};
const dateTimeFormats = {
full: "{{date}} {{time}}",
long: "{{date}} {{time}}",
medium: "{{date}} {{time}}",
short: "{{date}} {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});

View File

@@ -0,0 +1,39 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
const dateFormats = {
full: "yねんMがつdにちEEEE",
long: "yねんMがつdにち",
medium: "y/MM/dd",
short: "y/MM/dd",
};
const timeFormats = {
full: "Hじmmふんssびょう zzzz",
long: "H:mm:ss z",
medium: "H:mm:ss",
short: "H:mm",
};
const dateTimeFormats = {
full: "{{date}} {{time}}",
long: "{{date}} {{time}}",
medium: "{{date}} {{time}}",
short: "{{date}} {{time}}",
};
export const formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full",
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full",
}),
};

View File

@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;

View File

@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;

View File

@@ -0,0 +1,16 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "せんしゅうのeeeeのp",
yesterday: "きのうのp",
today: "きょうのp",
tomorrow: "あしたのp",
nextWeek: "よくしゅうのeeeeのp",
other: "P",
};
const formatRelative = (token, _date, _baseDate, _options) => {
return formatRelativeLocale[token];
};
exports.formatRelative = formatRelative;

View File

@@ -0,0 +1,12 @@
const formatRelativeLocale = {
lastWeek: "せんしゅうのeeeeのp",
yesterday: "きのうのp",
today: "きょうのp",
tomorrow: "あしたのp",
nextWeek: "よくしゅうのeeeeのp",
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) => {
return formatRelativeLocale[token];
};

View File

@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;

View File

@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;

188
node_modules/date-fns/locale/ja-Hira/_lib/localize.js generated vendored Normal file
View File

@@ -0,0 +1,188 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
const eraValues = {
narrow: ["BC", "AC"],
abbreviated: ["きげんぜん", "せいれき"],
wide: ["きげんぜん", "せいれき"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
wide: ["だい1しはんき", "だい2しはんき", "だい3しはんき", "だい4しはんき"],
};
const monthValues = {
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
abbreviated: [
"1がつ",
"2がつ",
"3がつ",
"4がつ",
"5がつ",
"6がつ",
"7がつ",
"8がつ",
"9がつ",
"10がつ",
"11がつ",
"12がつ",
],
wide: [
"1がつ",
"2がつ",
"3がつ",
"4がつ",
"5がつ",
"6がつ",
"7がつ",
"8がつ",
"9がつ",
"10がつ",
"11がつ",
"12がつ",
],
};
const dayValues = {
narrow: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"],
short: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"],
abbreviated: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"],
wide: [
"にちようび",
"げつようび",
"かようび",
"すいようび",
"もくようび",
"きんようび",
"どようび",
],
};
const dayPeriodValues = {
narrow: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
abbreviated: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
wide: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
abbreviated: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
wide: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
};
const ordinalNumber = (dirtyNumber, options) => {
const number = Number(dirtyNumber);
const unit = String(options?.unit);
switch (unit) {
case "year":
return `${number}ねん`;
case "quarter":
return `だい${number}しはんき`;
case "month":
return `${number}がつ`;
case "week":
return `だい${number}しゅう`;
case "date":
return `${number}にち`;
case "hour":
return `${number}`;
case "minute":
return `${number}ふん`;
case "second":
return `${number}びょう`;
default:
return `${number}`;
}
};
const localize = (exports.localize = {
ordinalNumber: ordinalNumber,
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(quarter) - 1,
}),
month: (0, _index.buildLocalizeFn)({
values: monthValues,
defaultWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
});

185
node_modules/date-fns/locale/ja-Hira/_lib/localize.mjs generated vendored Normal file
View File

@@ -0,0 +1,185 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
const eraValues = {
narrow: ["BC", "AC"],
abbreviated: ["きげんぜん", "せいれき"],
wide: ["きげんぜん", "せいれき"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
wide: ["だい1しはんき", "だい2しはんき", "だい3しはんき", "だい4しはんき"],
};
const monthValues = {
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
abbreviated: [
"1がつ",
"2がつ",
"3がつ",
"4がつ",
"5がつ",
"6がつ",
"7がつ",
"8がつ",
"9がつ",
"10がつ",
"11がつ",
"12がつ",
],
wide: [
"1がつ",
"2がつ",
"3がつ",
"4がつ",
"5がつ",
"6がつ",
"7がつ",
"8がつ",
"9がつ",
"10がつ",
"11がつ",
"12がつ",
],
};
const dayValues = {
narrow: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"],
short: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"],
abbreviated: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"],
wide: [
"にちようび",
"げつようび",
"かようび",
"すいようび",
"もくようび",
"きんようび",
"どようび",
],
};
const dayPeriodValues = {
narrow: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
abbreviated: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
wide: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
abbreviated: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
wide: {
am: "ごぜん",
pm: "ごご",
midnight: "しんや",
noon: "しょうご",
morning: "あさ",
afternoon: "ごご",
evening: "よる",
night: "しんや",
},
};
const ordinalNumber = (dirtyNumber, options) => {
const number = Number(dirtyNumber);
const unit = String(options?.unit);
switch (unit) {
case "year":
return `${number}ねん`;
case "quarter":
return `だい${number}しはんき`;
case "month":
return `${number}がつ`;
case "week":
return `だい${number}しゅう`;
case "date":
return `${number}にち`;
case "hour":
return `${number}`;
case "minute":
return `${number}ふん`;
case "second":
return `${number}びょう`;
default:
return `${number}`;
}
};
export const localize = {
ordinalNumber: ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(quarter) - 1,
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};

View File

@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;

2
node_modules/date-fns/locale/ja-Hira/_lib/match.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;

122
node_modules/date-fns/locale/ja-Hira/_lib/match.js generated vendored Normal file
View File

@@ -0,0 +1,122 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_lib/buildMatchPatternFn.js");
const matchOrdinalNumberPattern =
/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(B\.?C\.?|A\.?D\.?)/i,
abbreviated: /^(きげん[前後]|せいれき)/i,
wide: /^(きげん[前後]|せいれき)/i,
};
const parseEraPatterns = {
narrow: [/^B/i, /^A/i],
any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^Q[1234]/i,
wide: /^だい[1234一二三四]しはんき/i,
};
const parseQuarterPatterns = {
any: [/(1|一|)/i, /(2|二|)/i, /(3|三|)/i, /(4|四|)/i],
};
const matchMonthPatterns = {
narrow: /^([123456789]|1[012])/,
abbreviated: /^([123456789]|1[012])がつ/i,
wide: /^([123456789]|1[012])がつ/i,
};
const parseMonthPatterns = {
any: [
/^1\D/,
/^2/,
/^3/,
/^4/,
/^5/,
/^6/,
/^7/,
/^8/,
/^9/,
/^10/,
/^11/,
/^12/,
],
};
const matchDayPatterns = {
narrow: /^(にち|げつ|か|すい|もく|きん|ど)/,
short: /^(にち|げつ|か|すい|もく|きん|ど)/,
abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/,
wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/,
};
const parseDayPatterns = {
any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/],
};
const matchDayPeriodPatterns = {
any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^(A|ごぜん)/i,
pm: /^(P|ごご)/i,
midnight: /^しんや|まよなか/i,
noon: /^しょうご/i,
morning: /^あさ/i,
afternoon: /^ごご/i,
evening: /^よる/i,
night: /^しんや/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function (value) {
return parseInt(value, 10);
},
}),
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});

119
node_modules/date-fns/locale/ja-Hira/_lib/match.mjs generated vendored Normal file
View File

@@ -0,0 +1,119 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
const matchOrdinalNumberPattern =
/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(B\.?C\.?|A\.?D\.?)/i,
abbreviated: /^(きげん[前後]|せいれき)/i,
wide: /^(きげん[前後]|せいれき)/i,
};
const parseEraPatterns = {
narrow: [/^B/i, /^A/i],
any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^Q[1234]/i,
wide: /^だい[1234一二三四]しはんき/i,
};
const parseQuarterPatterns = {
any: [/(1|一|)/i, /(2|二|)/i, /(3|三|)/i, /(4|四|)/i],
};
const matchMonthPatterns = {
narrow: /^([123456789]|1[012])/,
abbreviated: /^([123456789]|1[012])がつ/i,
wide: /^([123456789]|1[012])がつ/i,
};
const parseMonthPatterns = {
any: [
/^1\D/,
/^2/,
/^3/,
/^4/,
/^5/,
/^6/,
/^7/,
/^8/,
/^9/,
/^10/,
/^11/,
/^12/,
],
};
const matchDayPatterns = {
narrow: /^(にち|げつ|か|すい|もく|きん|ど)/,
short: /^(にち|げつ|か|すい|もく|きん|ど)/,
abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/,
wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/,
};
const parseDayPatterns = {
any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/],
};
const matchDayPeriodPatterns = {
any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^(A|ごぜん)/i,
pm: /^(P|ごご)/i,
midnight: /^しんや|まよなか/i,
noon: /^しょうご/i,
morning: /^あさ/i,
afternoon: /^ごご/i,
evening: /^よる/i,
night: /^しんや/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function (value) {
return parseInt(value, 10);
},
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};