decord/source/13224_match.js

39 lines
989 B
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 13224
// Function ID: 101827
2026-07-20 16:05:17 +00:00
// Name: match
2026-07-24 07:16:23 +00:00
// Dependencies: [13225, 13236, 13237]
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
// Module 13224 (match)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.LookupSupportedLocales = undefined;
arg5.ResolveLocale = undefined;
arg5.match = function match(arg0, arg1, arg2, algorithm) {
2026-07-23 10:11:24 +00:00
const _require = arg2;
2026-07-24 07:16:23 +00:00
const result = _require(13236).CanonicalizeLocaleList(arg0);
2026-07-20 16:05:17 +00:00
const obj = {};
let str;
if (null != algorithm) {
str = algorithm.algorithm;
}
if (!str) {
str = "best fit";
}
obj.localeMatcher = str;
2026-07-24 07:16:23 +00:00
return _require(13225).ResolveLocale(arg1, result, obj, [], {}, () => closure_0).locale;
2026-07-20 16:05:17 +00:00
};
let obj = {
enumerable: true,
get() {
2026-07-24 07:16:23 +00:00
return require(13237) /* LookupSupportedLocales */.LookupSupportedLocales;
2026-07-20 16:05:17 +00:00
}
};
Object.defineProperty(arg5, "LookupSupportedLocales", obj);
obj = {
enumerable: true,
get() {
2026-07-24 07:16:23 +00:00
return require(13225) /* ResolveLocale */.ResolveLocale;
2026-07-20 16:05:17 +00:00
}
};
Object.defineProperty(arg5, "ResolveLocale", obj);