decord/source/13765__window.js

39 lines
955 B
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 13765
// Function ID: 13766
2026-07-29 08:29:29 +00:00
// Name: _window
2026-07-20 16:05:17 +00:00
// Dependencies: []
2026-08-12 06:57:52 +00:00
// Module 13765 (_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-07-20 16:05:17 +00:00
let closure_0 = performanceNow();
2026-07-23 10:11:24 +00:00
return () => outer1_1() - closure_0;
2026-07-20 16:05:17 +00:00
};