40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
// Metro module 3931 (f3932).
|
|
import { NitroModules } from "./Module3923";
|
|
let c2236_2 = new Map();
|
|
export function getHybridObjectConstructor(a0) {
|
|
let c13748_0 = a0;
|
|
if (c2236_2.has(a0)) {
|
|
return c2236_2.get(a0);
|
|
}
|
|
const constructorFunc2 = function constructorFunc() {
|
|
const hybridObject = NitroModules.createHybridObject(c13748_0);
|
|
const prototypeOf = Object.getPrototypeOf(hybridObject);
|
|
if (constructorFunc2.prototype !== prototypeOf) {
|
|
constructorFunc2.prototype = prototypeOf;
|
|
constructorFunc2.prototypeInitialized = true;
|
|
}
|
|
return hybridObject;
|
|
};
|
|
constructorFunc2.prototypeInitialized = false;
|
|
Object.defineProperty(constructorFunc2, Symbol.hasInstance, {
|
|
value: (a0) => {
|
|
if (!constructorFunc2.prototypeInitialized) {
|
|
constructorFunc2.prototype = Object.getPrototypeOf(NitroModules.createHybridObject(c13748_0));
|
|
constructorFunc2.prototypeInitialized = true;
|
|
}
|
|
let r23 = Object.getPrototypeOf(a0);
|
|
while (r23 != null) {
|
|
const prototype = constructorFunc2.prototype;
|
|
const r6 = r23;
|
|
if (r6 === prototype) {
|
|
return true;
|
|
}
|
|
r23 = Object.getPrototypeOf(r6);
|
|
}
|
|
return false;
|
|
}
|
|
});
|
|
c2236_2.set(a0, constructorFunc2);
|
|
return constructorFunc2;
|
|
}
|