var hk1d = 'hk1d_3884223693'; var hk_visit_id = '343736'; var hk_pid = '143'; (()=>{function n(...e){console.log("hike:",...e)}n("script running");var a="https://us-central1-vocal-inquiry-349813.cloudfunctions.net/data_trailblazer";(function(){n("main function()");let e=new Object,r=function(){n("return_detected_context()");let o=new Array;return document.querySelectorAll("iframe").forEach(function(c){let t=new Object;try{t.title=c.contentWindow.document.querySelector(".title").textContent}catch(i){}try{t.body=c.contentWindow.document.querySelector(".body").textContent}catch(i){}try{c.contentWindow.document.querySelector(".x-layout").onclick=function(i){return t.action="click",l([t]),n("clicked:",JSON.stringify(t)),!0}}catch(i){}try{t.brand_name=c.contentWindow.document.querySelector(".url-container").textContent}catch(i){}Object.values(t).length>0&&(t.action="impression",o.push(t))}),o},l=function(o){if(n("hk_caller()"),o==null&&(o=r()),e.hk1d=hk1d,e.visit_id=hk_visit_id,e.pid=hk_pid,e.datetime=new Date().toISOString(),e.ads=o,e.ads.length==0){n("data_obj.ads.length = 0");return}let d=new Headers({"Content-Type":"application/json"});n("writer:",JSON.stringify(e));let c={method:"POST",headers:d,body:JSON.stringify(e)};fetch(a,c).then(t=>console.log(t))};setTimeout(l,5e3)})();})();