decord/source/__polyfill/03xxx/module_3801.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

73 lines
2.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Module ID: 3801
// Function ID: 3802
// Dependencies: [2037, 2036]
// Module 3801
import module_2037 from "module_2037" /* 2037 */;
import module_2036 from "module_2036" /* 2036 */;
if (!module_2037) {
const obj2 = { default: module_2037 };
let obj = obj2;
} else {
obj = module_2037;
}
if (!module_2036) {
const obj4 = { default: module_2036 };
let obj3 = obj4;
} else {
obj3 = module_2036;
}
const date = {
ordinalNumber: obj.default({
matchPattern: /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,
parsePattern: /\d+/i,
valueCallback(match) {
return parseInt(match, 10);
}
}),
era: null,
quarter: null,
month: null,
day: null,
dayPeriod: null
};
const obj6 = { matchPatterns: { narrow: /^(B\.?C\.?|A\.?D\.?)/i, abbreviated: /^(紀元[前後]|西暦)/i, wide: /^(紀元[前後]|西暦)/i }, defaultMatchWidth: "wide", parsePatterns: null, defaultParseWidth: "any" };
const obj7 = { narrow: null, any: null };
const items = [/^B/i, /^A/i];
obj7.narrow = items;
const items1 = [/^(紀元前)/i, /^(西暦|紀元後)/i];
obj7.any = items1;
obj6.parsePatterns = obj7;
date.era = obj3.default(obj6);
const obj8 = {
matchPatterns: { narrow: /^[1234]/i, abbreviated: /^Q[1234]/i, wide: /^第[1234一二三四1234]四半期/i },
defaultMatchWidth: "wide",
parsePatterns: null,
defaultParseWidth: "any",
valueCallback(arg0) {
return arg0 + 1;
}
};
const obj9 = { any: null };
const items2 = [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i];
obj9.any = items2;
obj8.parsePatterns = obj9;
date.quarter = obj3.default(obj8);
const obj10 = { matchPatterns: { narrow: /^([123456789]|1[012])/, abbreviated: /^([123456789]|1[012])月/i, wide: /^([123456789]|1[012])月/i }, defaultMatchWidth: "wide", parsePatterns: null, defaultParseWidth: "any" };
const obj11 = { any: null };
const items3 = [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/];
obj11.any = items3;
obj10.parsePatterns = obj11;
date.month = obj3.default(obj10);
const obj12 = { matchPatterns: { narrow: /^[日月火水木金土]/, short: /^[日月火水木金土]/, abbreviated: /^[日月火水木金土]/, wide: /^[日月火水木金土]曜日/ }, defaultMatchWidth: "wide", parsePatterns: null, defaultParseWidth: "any" };
const obj13 = { any: null };
const items4 = [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/];
obj13.any = items4;
obj12.parsePatterns = obj13;
date.day = obj3.default(obj12);
const obj14 = { matchPatterns: { any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^(A|午前)/i, pm: /^(P|午後)/i, midnight: /^深夜|真夜中/i, noon: /^正午/i, morning: /^朝/i, afternoon: /^午後/i, evening: /^夜/i, night: /^深夜/i } }, defaultParseWidth: "any" };
date.dayPeriod = obj3.default(obj14);
export default date;
export default exports.default;