decord/source/13621_getSupportedUnits.js
2026-08-13 17:34:28 +00:00

26 lines
785 B
JavaScript

// Module ID: 13621
// Function ID: 13622
// Name: getSupportedUnits
// Dependencies: [13532, 13622]
// Module 13621 (getSupportedUnits)
const require = arg1;
const dependencyMap = arg6;
arg5.getSupportedUnits = function getSupportedUnits(locale) {
const _require = locale;
const units = _require(13622).units;
return units.filter((arg0) => (function isSupported(arg0, closure_0) {
let str = closure_0;
if (undefined === closure_0) {
str = "en";
}
try {
const obj = { style: "unit", unit: null };
obj[1] = arg0;
const memoizedNumberFormat = callback(table[0]).createMemoizedNumberFormat(str, obj);
return memoizedNumberFormat.resolvedOptions().unit === arg0;
} catch (err) {
return false;
}
})(arg0, closure_0));
};