Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
33 lines
946 B
JavaScript
33 lines
946 B
JavaScript
// Module ID: 14367
|
|
// Function ID: 14368
|
|
// Dependencies: [14288, 14368]
|
|
// Exports: getSupportedCalendars
|
|
|
|
// Module 14367
|
|
const require = globalThis.__r;
|
|
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const getSupportedCalendars = function getSupportedCalendars(locale) {
|
|
_require = locale;
|
|
const calendars = require("module_14368").calendars;
|
|
return calendars.filter((item) => (function isSupportedCalendar(item, arg1) {
|
|
let str = arg1;
|
|
if (undefined === arg1) {
|
|
str = "en";
|
|
}
|
|
try {
|
|
const concat = "".concat;
|
|
const combined = "".concat(str, "-u-ca-");
|
|
const memoizedDateTimeFormat = locale(closure_1_1[0]).createMemoizedDateTimeFormat(combined.concat(item));
|
|
if ("gregory" === item) {
|
|
if ("gregory" === memoizedDateTimeFormat.resolvedOptions().calendar) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
} catch (err) {
|
|
}
|
|
})(item, closure_0));
|
|
};
|