decord/source/module_3439.js

40 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-08-03 11:20:01 +00:00
// Module ID: 3439
// Function ID: 3440
2026-08-05 07:35:12 +00:00
// Dependencies: [1956, 1957]
2026-07-20 16:05:17 +00:00
2026-08-03 11:20:01 +00:00
// Module 3439
2026-08-04 08:36:32 +00:00
import buildMatchFn from "buildMatchFn";
2026-08-05 07:35:12 +00:00
import buildMatchPatternFn from "buildMatchPatternFn";
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
if (!buildMatchFn) {
2026-07-29 08:29:29 +00:00
let obj = { default: null };
2026-08-05 07:35:12 +00:00
obj[0] = buildMatchFn;
2026-07-29 08:29:29 +00:00
} else {
2026-08-05 07:35:12 +00:00
obj = buildMatchFn;
2026-07-29 08:29:29 +00:00
}
2026-08-05 07:35:12 +00:00
if (!buildMatchPatternFn) {
2026-07-29 08:29:29 +00:00
obj = { default: null };
2026-08-05 07:35:12 +00:00
obj[0] = buildMatchPatternFn;
2026-07-29 08:29:29 +00:00
let obj2 = obj;
} else {
2026-08-05 07:35:12 +00:00
obj2 = buildMatchPatternFn;
2026-07-29 08:29:29 +00:00
}
obj2 = {
2026-08-05 07:35:12 +00:00
matchPattern: /^(\d+)?/i,
2026-07-25 08:10:48 +00:00
parsePattern: /\d+/i,
2026-07-29 08:29:29 +00:00
valueCallback(joined) {
return parseInt(joined, 10);
2026-07-25 08:10:48 +00:00
}
};
2026-08-05 07:35:12 +00:00
const items = [/^p/i, /^n/i];
const items1 = [/1/i, /2/i, /3/i, /4/i];
const items2 = [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i];
const items3 = [/^s/i, /^l/i, /^m/i, /^k/i, /^m/i, /^c/i, /^l/i, /^s/i, /^w/i, /^p/i, /^l/i, /^g/i];
const items4 = [/^st/i, /^lu/i, /^mar/i, /^k/i, /^maj/i, /^c/i, /^lip/i, /^si/i, /^w/i, /^p/i, /^lis/i, /^g/i];
const items5 = [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i];
const items6 = [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i];
const items7 = [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i];
2026-07-23 10:11:24 +00:00
2026-08-05 07:35:12 +00:00
export default { ordinalNumber: obj2.default(obj2), era: obj.default({ matchPatterns: obj3, defaultMatchWidth: "wide", parsePatterns: { any: items }, defaultParseWidth: "any" }), quarter: obj.default(obj4), month: obj.default({ matchPatterns: obj6, defaultMatchWidth: "wide", parsePatterns: { narrow: items3, any: items4 }, defaultParseWidth: "any" }), day: obj.default({ matchPatterns: obj7, defaultMatchWidth: "wide", parsePatterns: { narrow: items5, abbreviated: items6, any: items7 }, defaultParseWidth: "any" }), dayPeriod: obj.default({ matchPatterns: obj8, defaultMatchWidth: "any", parsePatterns: { narrow: obj9, any: obj10 }, defaultParseWidth: "any" }) };
2026-07-20 16:05:17 +00:00
export default exports.default;