
(function(){

if(window.__runtimeGovernor)
return;

window.__runtimeGovernor=true;

const native=
window.setInterval;

const active=
new Map();

window.setInterval=
function(fn,ms){

const key=

(
typeof fn==='function'
?
fn.toString()
:
String(fn)
)
.substring(0,150);

if(
active.has(key)
){

clearInterval(
active.get(key)
);

}

const id=
native(
fn,
Math.max(
30000,
ms||30000
)
);

active.set(
key,
id
);

return id;

};

window.__runtimeStats=
active;

})();
