Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
73 lines
3.1 KiB
JavaScript
73 lines
3.1 KiB
JavaScript
// Module ID: 3824
|
|
// Function ID: 3825
|
|
// Dependencies: [2035, 2036]
|
|
|
|
// Module 3824
|
|
import module_2035 from "module_2035" /* 2035 */;
|
|
import module_2036 from "module_2036" /* 2036 */;
|
|
|
|
if (!module_2035) {
|
|
const obj2 = { default: module_2035 };
|
|
let obj = obj2;
|
|
} else {
|
|
obj = module_2035;
|
|
}
|
|
if (!module_2036) {
|
|
const obj4 = { default: module_2036 };
|
|
let obj3 = obj4;
|
|
} else {
|
|
obj3 = module_2036;
|
|
}
|
|
const date = {
|
|
ordinalNumber: obj3.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: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i }, defaultMatchWidth: "wide", parsePatterns: null, defaultParseWidth: "any" };
|
|
const obj7 = { any: null };
|
|
const items = [/^f/i, /^e/i];
|
|
obj7.any = items;
|
|
obj6.parsePatterns = obj7;
|
|
date.era = obj.default(obj6);
|
|
const obj8 = {
|
|
matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](\.)? kvartal/i },
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: null,
|
|
defaultParseWidth: "any",
|
|
valueCallback(arg0) {
|
|
return arg0 + 1;
|
|
}
|
|
};
|
|
const obj9 = { any: null };
|
|
const items1 = [/1/i, /2/i, /3/i, /4/i];
|
|
obj9.any = items1;
|
|
obj8.parsePatterns = obj9;
|
|
date.quarter = obj.default(obj8);
|
|
const obj10 = { matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i }, defaultMatchWidth: "wide", parsePatterns: null, defaultParseWidth: "any" };
|
|
const obj11 = { narrow: null, any: null };
|
|
const items2 = [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i];
|
|
obj11.narrow = items2;
|
|
const items3 = [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i];
|
|
obj11.any = items3;
|
|
obj10.parsePatterns = obj11;
|
|
date.month = obj.default(obj10);
|
|
const obj12 = { matchPatterns: { narrow: /^[smtofl]/i, short: /^(sø|ma|ti|on|to|fr|lø)/i, abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i }, defaultMatchWidth: "wide", parsePatterns: null, defaultParseWidth: "any" };
|
|
const obj13 = { any: null };
|
|
const items4 = [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i];
|
|
obj13.any = items4;
|
|
obj12.parsePatterns = obj13;
|
|
date.day = obj.default(obj12);
|
|
const obj14 = { matchPatterns: { narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a(\.?\s?m\.?)?$/i, pm: /^p(\.?\s?m\.?)?$/i, midnight: /^midn/i, noon: /^midd/i, morning: /morgen/i, afternoon: /ettermiddag/i, evening: /kveld/i, night: /natt/i } }, defaultParseWidth: "any" };
|
|
date.dayPeriod = obj.default(obj14);
|
|
|
|
export default date;
|
|
export default exports.default;
|