decord/source/13894__window.js

39 lines
954 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13894
// Function ID: 13895
2026-07-29 08:29:29 +00:00
// Name: _window
2026-07-20 16:05:17 +00:00
// Dependencies: []
2026-08-25 06:04:03 +00:00
// Module 13894 (_window)
2026-07-20 16:05:17 +00:00
arg5.start = undefined;
2026-08-04 21:03:28 +00:00
let _window = typeof window !== "undefined";
if (typeof window !== "undefined") {
2026-07-29 08:29:29 +00:00
_window = window;
}
if (_window) {
const _window2 = window;
2026-07-20 16:05:17 +00:00
let webkitPerformance = window.performance;
if (!webkitPerformance) {
2026-07-29 08:29:29 +00:00
const _window3 = window;
2026-07-20 16:05:17 +00:00
webkitPerformance = window.msPerformance;
}
if (!webkitPerformance) {
2026-07-29 08:29:29 +00:00
const _window4 = window;
2026-07-20 16:05:17 +00:00
webkitPerformance = window.webkitPerformance;
}
2026-07-29 08:29:29 +00:00
_window = webkitPerformance;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
function performanceNow(arg0) {
2026-07-20 16:05:17 +00:00
return Date.now();
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
if (nativePerformanceNow.nativePerformanceNow) {
performanceNow = nativePerformanceNow.nativePerformanceNow;
2026-07-29 08:29:29 +00:00
} else if (_window) {
2026-07-20 16:05:17 +00:00
performanceNow = function performanceNow() {
2026-07-29 08:29:29 +00:00
return _window.now && _window.now();
2026-07-20 16:05:17 +00:00
};
}
2026-07-29 08:29:29 +00:00
arg5.start = () => {
2026-08-24 06:08:38 +00:00
closure_0 = performanceNow();
return () => closure_1_1() - closure_0;
2026-07-20 16:05:17 +00:00
};