(function(){var ew=function(a,b){return b.innerText&&b.innerText.length>=a.NF?(a.Qo=dw.JB,b):null};Object.freeze({rP:1,$P:3});var dw=Object.freeze({gC:1,DB:2,JB:3});var fw=class{zb(a){OBR._jsc.y(function*(){const b=`${OBR.g.Bq}api/loggerBatch/dwpm_pixel_measurement`;try{OBR.g.tl&&navigator.sendBeacon(b,JSON.stringify(a))}catch(c){}})}},gw=new fw;var hw=class{constructor(a){this.j=a;this.Jk=[];this.Qo=dw.DB;this.Pu=a.l("distanceMeasureRate",0);this.Ou=a.l("distanceFromElementSelector","");this.NF=a.l("complianceMinTextLength",150);this.gp()}gp(){try{if((OBR.g.vv||this.Pu===1||OBR.i.Ej(this.Pu-1)===1)&&this.j){var a=this.Ou?document.querySelectorAll(this.Ou):null,b=null;if(a&&a.length!==0){a=[...a];let c=null;for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.nodeName.toUpperCase()==="P"&&f.innerText){if(c=ew(this,f))break}else for(let e=f.children.length-
1;e>=0;e--){let h=f.children[e];if(h.nodeName.toUpperCase()==="P"&&h.innerText&&(c=ew(this,h)))break}}b=c}else this.Qo=dw.gC;this.zb(b)}}catch(c){}}zb(a){var b=this.j.A().getBoundingClientRect();const c=a&&a.getBoundingClientRect();b=Math.abs(b.top);const d=c&&Math.abs(c.top+c.height),f=d&&Math.abs(b-d);a={timestamp:Date.now(),publisherId:this.j.o("pid","0")||"NA",sourceId:this.j.o("sid","0")||"NA",documentId:this.j.o("did","-1")||"NA",documentUrl:window.location.href||"NA",pvId:this.j.o("pvId","-1")||
"NA",requestId:this.j.o("req_id","-1")||"NA",widgetId:this.j.o("widgetJsId",this.j.D())||"NA",status:this.Qo,height:a&&Math.round(c.height)||0,width:a&&Math.round(c.width)||0,xTop:a&&Math.round(c.left)||0,xBottom:a&&Math.round(c.left)||0,yTop:a&&Math.abs(Math.round(c.top))||0,yBottom:Math.round(d)||0,yWidget:Math.round(b)||0,distance:Math.round(f)||0,idx:this.j.G()};this.Jk.push(a);gw.zb(this.Jk)}};OBR.Hs=OBR.Hs||{init:a=>{new hw(a)}};OBR.v.T(OBR.v.B.Zl);}).call(window);
