import{V as u}from"./chunks/config-Cj0OpXlx.js";import{W as f}from"./chunks/WindowMessageProxy-BVPEo9io.js";(async function(){try{let t=f.getInstance(window).getProxy();{let o=0,i=100,g=console.error;console.error=async function(e){if(g(e),o>i||(o++,!e?.message&&!e?.stack)||Object.keys(e).length===0||e?.message?.includes("MediaDecryptionError"))return;let r="unknown";try{r=await t.getPhone()}catch{}await t.doRequest("javascript-errors","POST",{time:new Date().toLocaleString("es-AR",{timeZone:"America/Argentina/Buenos_Aires"}),event:"error",error:JSON.stringify(e),user:r,errorType:"log",appVersion:u},2,1)},window.onerror=async function(e,r,a,l){if(o>i||!r.includes("iinbhdejcemjafkabjokgeaffgnmijbh"))return;o++;let s="unkown";try{s=await t.getPhone()}catch{}let c={time:new Date().toLocaleString("es-AR",{timeZone:"America/Argentina/Buenos_Aires"}),event:"error",error:e.toString(),source:r,lineno:a,colno:l,appVersion:u,user:s,userAgent:"",errorType:"error"};try{c.userAgent=navigator.userAgent}catch{}await t.doRequest("javascript-errors","POST",c,2,1)}}}catch(n){console.error("could not load errors.ts properly",n)}})();
