decord/source/6366_getGlobalSingleton.js

27 lines
638 B
JavaScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 6366
// Function ID: 6367
2026-07-20 16:05:17 +00:00
// Name: getGlobalSingleton
2026-07-30 10:14:41 +00:00
// Dependencies: [6367]
2026-07-20 16:05:17 +00:00
2026-07-30 10:14:41 +00:00
// Module 6366 (getGlobalSingleton)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.GLOBAL_OBJ = globalThis;
arg5.getGlobalSingleton = function getGlobalSingleton(arg0, arg1, arg2) {
let tmp = arg2;
if (!arg2) {
tmp = globalThis;
}
const tmp2 = tmp.__SENTRY__ || {};
tmp.__SENTRY__ = tmp2;
2026-07-30 10:14:41 +00:00
const tmp3 = tmp2[require(undefined, 6367).SDK_VERSION] || {};
tmp2[require(6367).SDK_VERSION] = tmp3;
2026-07-20 16:05:17 +00:00
let tmp4 = tmp3[arg0];
if (!tmp4) {
const tmp6 = arg1();
tmp3[arg0] = tmp6;
tmp4 = tmp6;
}
return tmp4;
};