decord/source/13676_isForced.js

44 lines
999 B
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 13676
// Function ID: 13677
2026-07-29 08:29:29 +00:00
// Name: isForced
2026-08-12 06:57:52 +00:00
// Dependencies: [13663, 13641]
2026-07-29 08:29:29 +00:00
2026-08-12 06:57:52 +00:00
// Module 13676 (isForced)
2026-07-29 08:29:29 +00:00
const re2 = /#|\.prototype\./;
function isForced(arg0, arg1) {
2026-08-04 21:03:28 +00:00
if (typeof fn !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
const str2 = String(arg0).replace(closure_2, ".");
const tmp2 = obj[str2.toLowerCase(str2)];
let tmp3 = tmp2 === P;
if (!tmp3) {
if (tmp2 === N) {
tmp3 = tmp5;
} else {
let tmp7Result = dependencyMap;
2026-08-12 06:57:52 +00:00
if (require(13663) /* all */(arg1)) {
tmp7Result = tmp7(13641);
2026-07-29 08:29:29 +00:00
let tmp7ResultResult = tmp7Result(arg1);
} else {
tmp7ResultResult = arg1;
}
tmp7 = require;
}
}
return tmp3;
}
const fn = (arg0) => {
const str = String(arg0);
return String(arg0).replace(closure_2, ".").toLowerCase();
};
isForced.normalize = fn;
const obj = {};
isForced.data = obj;
isForced.NATIVE = "N";
const N = "N";
isForced.POLYFILL = "P";
const P = "P";
export default isForced;