decord/source/3872_map.js

52 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 3872
// Function ID: 32136
2026-07-20 16:05:17 +00:00
// Name: map
2026-07-23 10:11:24 +00:00
// Dependencies: [3864]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 3872 (map)
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
const map = new Map();
arg5.getHybridObjectConstructor = function getHybridObjectConstructor(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
if (map.has(arg0)) {
return map.get(arg0);
} else {
function constructorFunc() {
2026-07-23 10:11:24 +00:00
const NitroModules = callback(constructorFunc[0]).NitroModules;
const hybridObject = NitroModules.createHybridObject(callback);
2026-07-20 16:05:17 +00:00
const prototypeOf = Object.getPrototypeOf(hybridObject);
if (constructorFunc.prototype !== prototypeOf) {
constructorFunc.prototype = prototypeOf;
constructorFunc.prototypeInitialized = true;
}
return hybridObject;
}
constructorFunc.prototypeInitialized = false;
2026-07-23 10:11:24 +00:00
let _Object = Object;
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol;
const obj = {
value(arg0) {
if (!constructorFunc.prototypeInitialized) {
2026-07-23 10:11:24 +00:00
const NitroModules = callback(constructorFunc[0]).NitroModules;
2026-07-20 16:05:17 +00:00
const _Object = Object;
2026-07-23 10:11:24 +00:00
constructorFunc.prototype = Object.getPrototypeOf(NitroModules.createHybridObject(callback));
2026-07-20 16:05:17 +00:00
constructorFunc.prototypeInitialized = true;
}
let prototypeOf = Object.getPrototypeOf(arg0);
if (null != prototypeOf) {
while (prototypeOf !== constructorFunc.prototype) {
let _Object2 = Object;
prototypeOf = Object.getPrototypeOf(prototypeOf);
}
return true;
}
return false;
}
};
Object.defineProperty(constructorFunc, Symbol.hasInstance, obj);
const result = map.set(arg0, constructorFunc);
return constructorFunc;
}
};