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;

105
node_modules/date-fns/locale/is/_lib/formatDistance.js generated vendored Normal file
View File

@@ -0,0 +1,105 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "minna en 1 sekúnda",
other: "minna en {{count}} sekúndur",
},
xSeconds: {
one: "1 sekúnda",
other: "{{count}} sekúndur",
},
halfAMinute: "hálf mínúta",
lessThanXMinutes: {
one: "minna en 1 mínúta",
other: "minna en {{count}} mínútur",
},
xMinutes: {
one: "1 mínúta",
other: "{{count}} mínútur",
},
aboutXHours: {
one: "u.þ.b. 1 klukkustund",
other: "u.þ.b. {{count}} klukkustundir",
},
xHours: {
one: "1 klukkustund",
other: "{{count}} klukkustundir",
},
xDays: {
one: "1 dagur",
other: "{{count}} dagar",
},
aboutXWeeks: {
one: "um viku",
other: "um {{count}} vikur",
},
xWeeks: {
one: "1 viku",
other: "{{count}} vikur",
},
aboutXMonths: {
one: "u.þ.b. 1 mánuður",
other: "u.þ.b. {{count}} mánuðir",
},
xMonths: {
one: "1 mánuður",
other: "{{count}} mánuðir",
},
aboutXYears: {
one: "u.þ.b. 1 ár",
other: "u.þ.b. {{count}} ár",
},
xYears: {
one: "1 ár",
other: "{{count}} ár",
},
overXYears: {
one: "meira en 1 ár",
other: "meira en {{count}} ár",
},
almostXYears: {
one: "næstum 1 ár",
other: "næstum {{count}} ár",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", count.toString());
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "í " + result;
} else {
return result + " síðan";
}
}
return result;
};
exports.formatDistance = formatDistance;

101
node_modules/date-fns/locale/is/_lib/formatDistance.mjs generated vendored Normal file
View File

@@ -0,0 +1,101 @@
const formatDistanceLocale = {
lessThanXSeconds: {
one: "minna en 1 sekúnda",
other: "minna en {{count}} sekúndur",
},
xSeconds: {
one: "1 sekúnda",
other: "{{count}} sekúndur",
},
halfAMinute: "hálf mínúta",
lessThanXMinutes: {
one: "minna en 1 mínúta",
other: "minna en {{count}} mínútur",
},
xMinutes: {
one: "1 mínúta",
other: "{{count}} mínútur",
},
aboutXHours: {
one: "u.þ.b. 1 klukkustund",
other: "u.þ.b. {{count}} klukkustundir",
},
xHours: {
one: "1 klukkustund",
other: "{{count}} klukkustundir",
},
xDays: {
one: "1 dagur",
other: "{{count}} dagar",
},
aboutXWeeks: {
one: "um viku",
other: "um {{count}} vikur",
},
xWeeks: {
one: "1 viku",
other: "{{count}} vikur",
},
aboutXMonths: {
one: "u.þ.b. 1 mánuður",
other: "u.þ.b. {{count}} mánuðir",
},
xMonths: {
one: "1 mánuður",
other: "{{count}} mánuðir",
},
aboutXYears: {
one: "u.þ.b. 1 ár",
other: "u.þ.b. {{count}} ár",
},
xYears: {
one: "1 ár",
other: "{{count}} ár",
},
overXYears: {
one: "meira en 1 ár",
other: "meira en {{count}} ár",
},
almostXYears: {
one: "næstum 1 ár",
other: "næstum {{count}} ár",
},
};
export const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", count.toString());
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "í " + result;
} else {
return result + " síðan";
}
}
return result;
};

View File

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

2
node_modules/date-fns/locale/is/_lib/formatLong.d.ts generated vendored Normal file
View File

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

41
node_modules/date-fns/locale/is/_lib/formatLong.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
const dateFormats = {
full: "EEEE, do MMMM y",
long: "do MMMM y",
medium: "do MMM y",
short: "d.MM.y",
};
const timeFormats = {
full: "'kl'. HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm",
};
const dateTimeFormats = {
full: "{{date}} 'kl.' {{time}}",
long: "{{date}} 'kl.' {{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",
}),
});

39
node_modules/date-fns/locale/is/_lib/formatLong.mjs generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
const dateFormats = {
full: "EEEE, do MMMM y",
long: "do MMMM y",
medium: "do MMM y",
short: "d.MM.y",
};
const timeFormats = {
full: "'kl'. HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm",
};
const dateTimeFormats = {
full: "{{date}} 'kl.' {{time}}",
long: "{{date}} 'kl.' {{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;

15
node_modules/date-fns/locale/is/_lib/formatRelative.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'síðasta' dddd 'kl.' p",
yesterday: "'í gær kl.' p",
today: "'í dag kl.' p",
tomorrow: "'á morgun kl.' p",
nextWeek: "dddd 'kl.' p",
other: "P",
};
const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];
exports.formatRelative = formatRelative;

View File

@@ -0,0 +1,11 @@
const formatRelativeLocale = {
lastWeek: "'síðasta' dddd 'kl.' p",
yesterday: "'í gær kl.' p",
today: "'í dag kl.' p",
tomorrow: "'á morgun kl.' p",
nextWeek: "dddd 'kl.' p",
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];

2
node_modules/date-fns/locale/is/_lib/localize.d.mts generated vendored Normal file
View File

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

2
node_modules/date-fns/locale/is/_lib/localize.d.ts generated vendored Normal file
View File

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

168
node_modules/date-fns/locale/is/_lib/localize.js generated vendored Normal file
View File

@@ -0,0 +1,168 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
const eraValues = {
narrow: ["f.Kr.", "e.Kr."],
abbreviated: ["f.Kr.", "e.Kr."],
wide: ["fyrir Krist", "eftir Krist"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1F", "2F", "3F", "4F"],
wide: ["1. fjórðungur", "2. fjórðungur", "3. fjórðungur", "4. fjórðungur"],
};
const monthValues = {
narrow: ["J", "F", "M", "A", "M", "J", "J", "Á", "S", "Ó", "N", "D"],
abbreviated: [
"jan.",
"feb.",
"mars",
"apríl",
"maí",
"júní",
"júlí",
"ágúst",
"sept.",
"okt.",
"nóv.",
"des.",
],
wide: [
"janúar",
"febrúar",
"mars",
"apríl",
"maí",
"júní",
"júlí",
"ágúst",
"september",
"október",
"nóvember",
"desember",
],
};
const dayValues = {
narrow: ["S", "M", "Þ", "M", "F", "F", "L"],
short: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"],
abbreviated: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."],
wide: [
"sunnudagur",
"mánudagur",
"þriðjudagur",
"miðvikudagur",
"fimmtudagur",
"föstudagur",
"laugardagur",
],
};
const dayPeriodValues = {
narrow: {
am: "f",
pm: "e",
midnight: "miðnætti",
noon: "hádegi",
morning: "morgunn",
afternoon: "síðdegi",
evening: "kvöld",
night: "nótt",
},
abbreviated: {
am: "f.h.",
pm: "e.h.",
midnight: "miðnætti",
noon: "hádegi",
morning: "morgunn",
afternoon: "síðdegi",
evening: "kvöld",
night: "nótt",
},
wide: {
am: "fyrir hádegi",
pm: "eftir hádegi",
midnight: "miðnætti",
noon: "hádegi",
morning: "morgunn",
afternoon: "síðdegi",
evening: "kvöld",
night: "nótt",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "f",
pm: "e",
midnight: "á miðnætti",
noon: "á hádegi",
morning: "að morgni",
afternoon: "síðdegis",
evening: "um kvöld",
night: "um nótt",
},
abbreviated: {
am: "f.h.",
pm: "e.h.",
midnight: "á miðnætti",
noon: "á hádegi",
morning: "að morgni",
afternoon: "síðdegis",
evening: "um kvöld",
night: "um nótt",
},
wide: {
am: "fyrir hádegi",
pm: "eftir hádegi",
midnight: "á miðnætti",
noon: "á hádegi",
morning: "að morgni",
afternoon: "síðdegis",
evening: "um kvöld",
night: "um nótt",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
return number + ".";
};
const localize = (exports.localize = {
ordinalNumber,
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => 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",
}),
});

166
node_modules/date-fns/locale/is/_lib/localize.mjs generated vendored Normal file
View File

@@ -0,0 +1,166 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
const eraValues = {
narrow: ["f.Kr.", "e.Kr."],
abbreviated: ["f.Kr.", "e.Kr."],
wide: ["fyrir Krist", "eftir Krist"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1F", "2F", "3F", "4F"],
wide: ["1. fjórðungur", "2. fjórðungur", "3. fjórðungur", "4. fjórðungur"],
};
const monthValues = {
narrow: ["J", "F", "M", "A", "M", "J", "J", "Á", "S", "Ó", "N", "D"],
abbreviated: [
"jan.",
"feb.",
"mars",
"apríl",
"maí",
"júní",
"júlí",
"ágúst",
"sept.",
"okt.",
"nóv.",
"des.",
],
wide: [
"janúar",
"febrúar",
"mars",
"apríl",
"maí",
"júní",
"júlí",
"ágúst",
"september",
"október",
"nóvember",
"desember",
],
};
const dayValues = {
narrow: ["S", "M", "Þ", "M", "F", "F", "L"],
short: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"],
abbreviated: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."],
wide: [
"sunnudagur",
"mánudagur",
"þriðjudagur",
"miðvikudagur",
"fimmtudagur",
"föstudagur",
"laugardagur",
],
};
const dayPeriodValues = {
narrow: {
am: "f",
pm: "e",
midnight: "miðnætti",
noon: "hádegi",
morning: "morgunn",
afternoon: "síðdegi",
evening: "kvöld",
night: "nótt",
},
abbreviated: {
am: "f.h.",
pm: "e.h.",
midnight: "miðnætti",
noon: "hádegi",
morning: "morgunn",
afternoon: "síðdegi",
evening: "kvöld",
night: "nótt",
},
wide: {
am: "fyrir hádegi",
pm: "eftir hádegi",
midnight: "miðnætti",
noon: "hádegi",
morning: "morgunn",
afternoon: "síðdegi",
evening: "kvöld",
night: "nótt",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "f",
pm: "e",
midnight: "á miðnætti",
noon: "á hádegi",
morning: "að morgni",
afternoon: "síðdegis",
evening: "um kvöld",
night: "um nótt",
},
abbreviated: {
am: "f.h.",
pm: "e.h.",
midnight: "á miðnætti",
noon: "á hádegi",
morning: "að morgni",
afternoon: "síðdegis",
evening: "um kvöld",
night: "um nótt",
},
wide: {
am: "fyrir hádegi",
pm: "eftir hádegi",
midnight: "á miðnætti",
noon: "á hádegi",
morning: "að morgni",
afternoon: "síðdegis",
evening: "um kvöld",
night: "um nótt",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
return number + ".";
};
export const localize = {
ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};

2
node_modules/date-fns/locale/is/_lib/match.d.mts generated vendored Normal file
View File

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

2
node_modules/date-fns/locale/is/_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;

137
node_modules/date-fns/locale/is/_lib/match.js generated vendored Normal file
View File

@@ -0,0 +1,137 @@
"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: /^(f\.Kr\.|e\.Kr\.)/i,
abbreviated: /^(f\.Kr\.|e\.Kr\.)/i,
wide: /^(fyrir Krist|eftir Krist)/i,
};
const parseEraPatterns = {
any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]\.?/i,
abbreviated: /^q[1234]\.?/i,
wide: /^[1234]\.? fjórðungur/i,
};
const parseQuarterPatterns = {
any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i],
};
const matchMonthPatterns = {
narrow: /^[jfmásónd]/i,
abbreviated:
/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,
wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i,
};
const parseMonthPatterns = {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^j/i,
/^j/i,
/^á/i,
/^s/i,
/^ó/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^maí/i,
/^jún/i,
/^júl/i,
/^áu/i,
/^s/i,
/^ó/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[smtwf]/i,
short: /^(su|má|þr|mi|fi|fö|la)/i,
abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i,
wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i,
};
const parseDayPatterns = {
narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i],
any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i],
};
const matchDayPeriodPatterns = {
narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,
any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^f/i,
pm: /^e/i,
midnight: /^mi/i,
noon: /^há/i,
morning: /morgunn/i,
afternoon: /síðdegi/i,
evening: /kvöld/i,
night: /nótt/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => 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",
}),
});

134
node_modules/date-fns/locale/is/_lib/match.mjs generated vendored Normal file
View File

@@ -0,0 +1,134 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
const matchOrdinalNumberPattern = /^(\d+)(\.)?/i;
const parseOrdinalNumberPattern = /\d+(\.)?/i;
const matchEraPatterns = {
narrow: /^(f\.Kr\.|e\.Kr\.)/i,
abbreviated: /^(f\.Kr\.|e\.Kr\.)/i,
wide: /^(fyrir Krist|eftir Krist)/i,
};
const parseEraPatterns = {
any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]\.?/i,
abbreviated: /^q[1234]\.?/i,
wide: /^[1234]\.? fjórðungur/i,
};
const parseQuarterPatterns = {
any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i],
};
const matchMonthPatterns = {
narrow: /^[jfmásónd]/i,
abbreviated:
/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,
wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i,
};
const parseMonthPatterns = {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^j/i,
/^j/i,
/^á/i,
/^s/i,
/^ó/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^maí/i,
/^jún/i,
/^júl/i,
/^áu/i,
/^s/i,
/^ó/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[smtwf]/i,
short: /^(su|má|þr|mi|fi|fö|la)/i,
abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i,
wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i,
};
const parseDayPatterns = {
narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i],
any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i],
};
const matchDayPeriodPatterns = {
narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,
any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^f/i,
pm: /^e/i,
midnight: /^mi/i,
noon: /^há/i,
morning: /morgunn/i,
afternoon: /síðdegi/i,
evening: /kvöld/i,
night: /nótt/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => 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",
}),
};