“];return o.forEach(t=>{const n=t.stacktrace;n&&n.frames&&(n.frames=n.frames.map(t=>(function(t,e,n,r){return t.filename===n&&t.lineno&&e.length?(function(t,e,n=5){if(void 0===e.lineno)return;const r=t.length,o=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-n),o).map(t=>Object(T.b)(t,0)),e.context_line=Object(T.b)(t[Math.min(r-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,r),o+1+n).map(t=>Object(T.b)(t,0))}(e,t,r),t):t})(t,s,r,e)))}),t})(t,e)}});we(“ContextLines”,wp);function kp(){qi.document?qi.document.addEventListener(“visibilitychange”,()=>{const t=Co();if(qi.document.hidden&&t){const e=”cancelled”,{op:n,status:r}=yt(t);Hi&&k.c.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag(“visibilitychange”,”document.hidden”),t.end()}}):Hi&&k.c.warn(“[Tracing] Could not set up background tab detection due to lack of global document”)}function xp(t){return[{type:”span”},t]}function Tp(t){return”number”==typeof t&&isFinite(t)}function Ep(t,{startTimestamp:e,…n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,…n})}const Cp=2147483647;function Ip(t){return t/1e3}function Op(){return qi&&qi.addEventListener&&qi.performance}let Rp,Mp,Lp=0,Dp={};function Ap(){const t=Op();if(t&&V){t.mark&&qi.performance.mark(“sentry-tracing-init”);const e=function(t){return Os(“fid”,t,Ts,ys)}(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=Ip(V),r=Ip(e.startTime);Hi&&k.c.log(“[Measurements] Adding FID”),Dp.fid={value:t.value,unit:”millisecond”},Dp[“mark.fid”]={value:n+r,unit:”second”}}),n=function(t,e=!1){return Os(“cls”,t,xs,gs,e)}(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Hi&&k.c.log(“[Measurements] Adding CLS”),Dp.cls={value:t.value,unit:””},Mp=e)},!0),r=Ss(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Hi&&k.c.log(“[Measurements] Adding LCP”),Dp.lcp={value:t.value,unit:”millisecond”},Rp=e)},!0),o=function(t){return Os(“ttfb”,t,Cs,vs)}(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Hi&&k.c.log(“[Measurements] Adding TTFB”),Dp.ttfb={value:t.value,unit:”millisecond”})});return()=>{e(),n(),r(),o()}}return()=>void 0}function Np(){ws(“longtask”,({entries:t})=>{for(const e of t){const t=Co();if(!t)return;const n=Ip(V+e.startTime),r=Ip(e.duration);t.startChild({description:”Main UI thread blocked”,op:”ui.long-task”,origin:”auto.ui.browser.metrics”,startTimestamp:n,endTimestamp:n+r})}})}function jp(){ws(“event”,({entries:t})=>{for(const e of t){const t=Co();if(!t)return;if(“click”===e.name){const n=Ip(V+e.startTime),r=Ip(e.duration),o={description:Object(sr.d)(e.target),op:`ui.interaction.${e.name}`,origin:”auto.ui.browser.metrics”,startTimestamp:n,endTimestamp:n+r},i=Object(sr.a)(e.target);i&&(o.attributes={“ui.component_name”:i}),t.startChild(o)}}})}function Pp(t,e){if(Op()&&V){const n=function(t,e){return function(t){return Os(“inp”,t,Is,bs)}(({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find(t=>t.duration===n.value&&void 0!==$p[t.name]),o=le();if(!r||!o)return;const i=$p[r.name],s=o.getOptions(),a=Ip(V+r.startTime),c=Ip(n.value),u=void 0!==r.interactionId?t[r.interactionId]:void 0;if(void 0===u)return;const{routeName:l,parentContext:d,activeTransaction:p,user:h,replayId:f}=u,m=void 0!==h?h.email||h.id||h.ip_address:void 0,g=void 0!==p?p.getProfileId():void 0,y=new ni({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:Object(sr.d)(r.target),attributes:{release:s.release,environment:s.environment,transaction:l,…void 0!==m&&””!==m?{user:m}:{},…void 0!==g?{profile_id:g}:{},…void 0!==f?{replay_id:f}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:”millisecond”}}}),_=function(t,e,n){if(!Lo(e))return!1;let r;r=void 0!==t&&”function”==typeof e.tracesSampler?e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{…t.data,…t.attributes},location:qi.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;if(!li(r))return Hi&&k.c.warn(“[Tracing] Discarding interaction span because of invalid sample rate.”),!1;if(!0===r)return n;if(!1===r)return 0;return r*n}(d,s,e);if(_)if(Math.random()<_){const t=y?function(t,e){const n={sent_at:(new Date).toISOString()};return e&&(n.dsn=Ne(e)),rn(n,t.map(xp))}([y],o.getDsn()):void 0,e=o&&o.getTransport();e&&t&&e.send(t).then(null,t=>{Hi&&k.c.error(“Error while sending interaction:”,t)})}else;})}(t,e);return()=>{n()}}return()=>void 0}const $p={click:”click”,pointerdown:”click”,pointerup:”click”,mousedown:”click”,mouseup:”click”,touchstart:”click”,touchend:”click”,mouseover:”hover”,mouseout:”hover”,mouseenter:”hover”,mouseleave:”hover”,pointerover:”hover”,pointerout:”hover”,pointerenter:”hover”,pointerleave:”hover”,dragstart:”drag”,dragend:”drag”,drag:”drag”,dragenter:”drag”,dragleave:”drag”,dragover:”drag”,drop:”drag”,keydown:”press”,keyup:”press”,keypress:”press”,input:”press”};function Fp(t){const e=Op();if(!e||!qi.performance.getEntries||!V)return;Hi&&k.c.log(“[Tracing] Adding & adjusting spans using Performance API”);const n=Ip(V),r=e.getEntries(),{op:o,start_timestamp:i}=yt(t);if(r.slice(Lp).forEach(e=>{const r=Ip(e.startTime),o=Ip(e.duration);if(!(“navigation”===t.op&&i&&n+r{Bp(t,e,r,n)}),Bp(t,e,”secureConnection”,n,”TLS/SSL”,”connectEnd”),Bp(t,e,”fetch”,n,”cache”,”domainLookupStart”),Bp(t,e,”domainLookup”,n,”DNS”),function(t,e,n){e.responseEnd&&(Ep(t,{op:”browser”,origin:”auto.browser.browser.metrics”,description:”request”,startTimestamp:n+Ip(e.requestStart),endTimestamp:n+Ip(e.responseEnd)}),Ep(t,{op:”browser”,origin:”auto.browser.browser.metrics”,description:”response”,startTimestamp:n+Ip(e.responseStart),endTimestamp:n+Ip(e.responseEnd)}))}(t,e,n)}(t,e,n);break;case”mark”:case”paint”:case”measure”:{!function(t,e,n,r,o){const i=o+n,s=i+r;Ep(t,{description:e.name,endTimestamp:s,op:e.entryType,origin:”auto.resource.browser.metrics”,startTimestamp:i})}(t,e,r,o,n);const i=Zi(),s=e.startTime{if(!Dp[t]||!i||n>=i)return;const e=Dp[t].value,r=n+Ip(e),o=Math.abs(1e3*(r-i)),s=o-e;Hi&&k.c.log(`[Measurements] Normalized ${t} from ${e} to ${o} (${s})`),Dp[t].value=o});const e=Dp[“mark.fid”];e&&Dp.fid&&(Ep(t,{description:”first input delay”,endTimestamp:e.value+Ip(Dp.fid.value),op:”ui.action”,origin:”auto.ui.browser.metrics”,startTimestamp:e.value}),delete Dp[“mark.fid”]),”fcp”in Dp||delete Dp.cls,Object.keys(Dp).forEach(t=>{mi(t,Dp[t].value,Dp[t].unit)}),function(t){Rp&&(Hi&&k.c.log(“[Measurements] Adding LCP Data”),Rp.element&&t.setTag(“lcp.element”,Object(sr.d)(Rp.element)),Rp.id&&t.setTag(“lcp.id”,Rp.id),Rp.url&&t.setTag(“lcp.url”,Rp.url.trim().slice(0,200)),t.setTag(“lcp.size”,Rp.size));Mp&&Mp.sources&&(Hi&&k.c.log(“[Measurements] Adding CLS Data”),Mp.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,Object(sr.d)(e.node))))}(t)}Rp=void 0,Mp=void 0,Dp={}}function Bp(t,e,n,r,o,i){const s=i?e[i]:e[`${n}End`],a=e[`${n}Start`];a&&s&&Ep(t,{op:”browser”,origin:”auto.browser.browser.metrics”,description:o||n,startTimestamp:r+Ip(a),endTimestamp:r+Ip(s)})}function Up(t,e,n,r){const o=e[n];null!=o&&o0&&t.setAttribute(“http.response_content_length”,e)}}else e.error&&t.setStatus(“internal_error”);t.end()}(n,t),delete r[e]))}const s=pe(),a=le(),{method:c,url:u}=t.fetchData,l=function(t){try{const e=new URL(t);return e.href}catch(t){return}}(u),d=l?ur(l).host:void 0,p=i?jo({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:”fetch”,”http.method”:c,”http.url”:l,”server.address”:d,[Jo]:o},op:”http.client”}):void 0;if(p&&(t.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(t.fetchData.url)&&a){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,o){const i=o||n.getSpan(),s=Nt(),{traceId:a,spanId:c,sampled:u,dsc:l}={…s.getPropagationContext(),…n.getPropagationContext()},d=i?ft(i):lt(a,c,u),p=it(l||(i?bt(i):vt(a,e,n))),h=r.headers||(“undefined”!=typeof Request&&Object(j.g)(t,Request)?t.headers:void 0);if(h){if(“undefined”!=typeof Headers&&Object(j.g)(h,Headers)){const t=new Headers(h);return t.append(“sentry-trace”,d),p&&t.append(tt,p),t}if(Array.isArray(h)){const t=[…h,[“sentry-trace”,d]];return p&&t.push([tt,p]),t}{const t=”baggage”in h?h.baggage:void 0,e=[];return Array.isArray(t)?e.push(…t):t&&e.push(t),p&&e.push(p),{…h,”sentry-trace”:d,baggage:e.length>0?e.join(“,”):void 0}}}return{“sentry-trace”:d,baggage:p}}(e,a,s,n,p)}return p}const zp=[“localhost”,/^\/(?!\/)/],qp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:zp,tracePropagationTargets:zp};function Gp(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s}={traceFetch:qp.traceFetch,traceXHR:qp.traceXHR,…t},a=”function”==typeof i?i:t=>!0,c=t=>(function(t,e){return Object(T.c)(t,e||zp)})(t,r||o),u={};e&&nr(t=>{const e=Hp(t,a,c,u);if(e){const n=Yp(t.fetchData.url),r=n?ur(n).host:void 0;e.setAttributes({“http.url”:n,”server.address”:r})}s&&e&&Wp(e)}),n&&tr(t=>{const e=function(t,e,n,r){const o=t.xhr,i=o&&o[Qn];if(!Lo()||!o||o.__sentry_own_request__||!i)return;const s=e(i.url);if(t.endTimestamp&&s){const t=o.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==i.status_code&&(ti(e,i.status_code),e.end(),delete r[t]))}const a=pe(),c=Nt(),u=Yp(i.url),l=u?ur(u).host:void 0,d=s?jo({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:”xhr”,”http.method”:i.method,”http.url”:u,url:i.url,”server.address”:l,[Jo]:”auto.http.browser”},op:”http.client”}):void 0;d&&(o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d);const p=le();if(o.setRequestHeader&&n(i.url)&&p){const{traceId:t,spanId:e,sampled:n,dsc:r}={…c.getPropagationContext(),…a.getPropagationContext()},i=d?ft(d):lt(t,e,n),s=it(r||(d?bt(d):vt(t,p,a)));!function(t,e,n){try{t.setRequestHeader(“sentry-trace”,e),n&&t.setRequestHeader(tt,n)}catch(t){}}(o,i,s)}return d}(t,a,c,u);s&&e&&Wp(e)})}function Wp(t){const{url:e}=yt(t).data||{};if(!e||”string”!=typeof e)return;const n=ws(“resource”,({entries:r})=>{r.forEach(r=>{if(function(t){return”resource”===t.entryType&&”initiatorType”in t&&”string”==typeof t.nextHopProtocol&&(“fetch”===t.initiatorType||”xmlhttprequest”===t.initiatorType)}(r)&&r.name.endsWith(e)){(function(t){const{name:e,version:n}=function(t){let e=”unknown”,n=”unknown”,r=””;for(const o of t){if(“https://valor.globo.com/”===o){[e,n]=t.split(“https://valor.globo.com/”);break}if(!isNaN(Number(o))){e=”h”===r?”http”:r,n=t.split(r)[1];break}r+=o}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push([“network.protocol.version”,n],[“network.protocol.name”,e]),!V)return r;return[…r,[“http.request.redirect_start”,Vp(t.redirectStart)],[“http.request.fetch_start”,Vp(t.fetchStart)],[“http.request.domain_lookup_start”,Vp(t.domainLookupStart)],[“http.request.domain_lookup_end”,Vp(t.domainLookupEnd)],[“http.request.connect_start”,Vp(t.connectStart)],[“http.request.secure_connection_start”,Vp(t.secureConnectionStart)],[“http.request.connection_end”,Vp(t.connectEnd)],[“http.request.request_start”,Vp(t.requestStart)],[“http.request.response_start”,Vp(t.responseStart)],[“http.request.response_end”,Vp(t.responseEnd)]]})(r).forEach(e=>t.setAttribute(…e)),setTimeout(n)}})})}function Vp(t=0){return((V||performance.timeOrigin)+t)/1e3}function Yp(t){try{return new URL(t,qi.location.origin).href}catch(t){return}}const Jp=”BrowserTracing”,Kp={…oi,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!qi||!qi.location)return void(Hi&&k.c.warn(“Could not initialize routing instrumentation due to invalid location”));let r,o=qi.location.href;e&&(r=t({name:qi.location.pathname,startTimestamp:V?V/1e3:void 0,op:”pageload”,origin:”auto.pageload.browser”,metadata:{source:”url”}})),n&&en(({to:e,from:n})=>{void 0===n&&o&&-1!==o.indexOf(e)?o=void 0:n!==e&&(o=void 0,r&&(Hi&&k.c.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=t({name:qi.location.pathname,op:”navigation”,origin:”auto.navigation.browser”,metadata:{source:”url”}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},…qp},Xp=10;class Zp{constructor(t){this.name=Jp,this._hasSetTracePropagationTargets=!1,fi(),Hi&&(this._hasSetTracePropagationTargets=!(!t||!t.tracePropagationTargets&&!t.tracingOrigins)),this.options={…Kp,…t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Ap(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Pp(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Np(),this.options._experiments.enableInteractions&&jp(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;const n=e().getClient(),r=n&&n.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:i,startTransactionOnPageLoad:s,markBackgroundTransactions:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,f=h||this.options.tracePropagationTargets;Hi&&this._hasSetTracePropagationTargets&&h&&k.c.warn(“[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.”),o(t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},s,i),a&&kp(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Gp({traceFetch:c,traceXHR:u,tracePropagationTargets:f,shouldCreateSpanForRequest:l,enableHTTPTimings:d})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(Hi&&k.c.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const e=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s=”pageload”===t.op;let a;if(s){const e=s?Qp(“sentry-trace”):””,n=s?Qp(“baggage”):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:c}=ut(e,n);a={traceId:r,parentSpanId:i,parentSampled:c,…t,metadata:{…t.metadata,dynamicSamplingContext:o},trimEnd:!0}}else a={trimEnd:!0,…t};const c=”function”==typeof n?n(a):a,u=void 0===c?{…a,sampled:!1}:c;u.metadata=u.name!==a.name?{…u.metadata,source:”custom”}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,!1===u.sampled&&Hi&&k.c.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),Hi&&k.c.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:l}=qi,d=hi(e,u,r,o,!0,{location:l},i,s);return s&&qi.document&&(qi.document.addEventListener(“readystatechange”,()=>{[“interactive”,”complete”].includes(qi.document.readyState)&&d.sendAutoFinishSignal()}),[“interactive”,”complete”].includes(qi.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(t=>{this._collectWebVitals(),Fp(t)}),d}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,o=”ui.action.click”,i=Co();if(i&&i.op&&[“navigation”,”pageload”].includes(i.op))return void(Hi&&k.c.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason(“interactionInterrupted”),t.end(),t=void 0),!this._getCurrentHub)return void(Hi&&k.c.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(Hi&&k.c.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const s=this._getCurrentHub(),{location:a}=qi,c={name:this._latestRoute.name,op:o,trimEnd:!0,data:{[Wo]:this._latestRoute.context?function(t){const e=t.attributes&&t.attributes[Wo],n=t.data&&t.data[Wo],r=t.metadata&&t.metadata.source;return e||n||r}(this._latestRoute.context):”url”}};t=hi(s,c,e,n,!0,{location:a},r)};[“click”].forEach(t=>{qi.document&&addEventListener(t,e,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:t})=>{const e=le(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName(“Replay”):void 0,r=void 0!==n?n.getReplayId():void 0,o=Co(),i=pe(),s=void 0!==i?i.getUser():void 0;t.forEach(t=>{if(function(t){return”duration”in t}(t)){const e=t.interactionId;if(void 0===e)return;const n=this._interactionIdToRouteNameMapping[e],i=t.duration,a=t.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce((t,e)=>this._interactionIdToRouteNameMapping[t].durationthis._interactionIdToRouteNameMapping[t]).some(t=>t.duration===i&&t.startTime===a))return}if(!e)return;if(n)n.duration=Math.max(n.duration,i);else if(c.lengththis._interactionIdToRouteNameMapping[u].duration){const t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=Xp&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:i,parentContext:n,user:s,activeTransaction:o,replayId:r,startTime:a})}}})};ws(“event”,t),ws(“first-input”,t)}}function Qp(t){const e=Object(sr.b)(`meta[name=${t}]`);return e?e.getAttribute(“content”):void 0}const th={…oi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},…qp},eh=(t={})=>{const e=!!Hi&&!(!t.tracePropagationTargets&&!t.tracingOrigins);fi(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const n={…th,…t},r=Ap(),o={};n.enableInp&&Pp(o,n.interactionsSampleRate),n.enableLongTask&&Np(),n._experiments.enableInteractions&&jp();const i={name:void 0,context:void 0};function s(t){const e=At(),{beforeStartSpan:o,idleTimeout:s,finalTimeout:a,heartbeatInterval:c}=n,u=”pageload”===t.op;let l;if(u){const e=u?oh(“sentry-trace”):””,n=u?oh(“baggage”):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:s}=ut(e,n);l={traceId:r,parentSpanId:i,parentSampled:s,…t,metadata:{…t.metadata,dynamicSamplingContext:o},trimEnd:!0}}else l={trimEnd:!0,…t};const d=o?o(l):l;d.metadata=d.name!==l.name?{…d.metadata,source:”custom”}:d.metadata,i.name=d.name,i.context=d,!1===d.sampled&&Hi&&k.c.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),Hi&&k.c.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:p}=qi,h=hi(e,d,s,a,!0,{location:p},c,u);return u&&qi.document&&(qi.document.addEventListener(“readystatechange”,()=>{[“interactive”,”complete”].includes(qi.document.readyState)&&h.sendAutoFinishSignal()}),[“interactive”,”complete”].includes(qi.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(t=>{r(),Fp(t)}),h}return{name:”BrowserTracing”,setupOnce:()=>{},afterAllSetup(t){const r=t.getOptions(),{markBackgroundSpan:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:p}=n,h=r&&r.tracePropagationTargets,f=h||n.tracePropagationTargets;let m;Hi&&e&&h&&k.c.warn(“[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.”);let g=qi.location&&qi.location.href;if(t.on&&(t.on(“startNavigationSpan”,t=>{m&&(Hi&&k.c.log(`[Tracing] Finishing current transaction with op: ${yt(m).op}`),m.end()),m=s({op:”navigation”,…t})}),t.on(“startPageLoadSpan”,t=>{m&&(Hi&&k.c.log(`[Tracing] Finishing current transaction with op: ${yt(m).op}`),m.end()),m=s({op:”pageload”,…t})})),n.instrumentPageLoad&&t.emit&&qi.location){const e={name:qi.location.pathname,startTimestamp:V?V/1e3:void 0,origin:”auto.pageload.browser”,attributes:{[Wo]:”url”}};nh(t,e)}n.instrumentNavigation&&t.emit&&qi.location&&en(({to:e,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(e))g=void 0;else if(n!==e){g=void 0;const e={name:qi.location.pathname,origin:”auto.navigation.browser”,attributes:{[Wo]:”url”}};rh(t,e)}}),a&&kp(),p.enableInteractions&&function(t,e){let n;const r=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=t,s=”ui.action.click”,a=Co();if(a&&a.op&&[“navigation”,”pageload”].includes(a.op))return void(Hi&&k.c.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason(“interactionInterrupted”),n.end(),n=void 0),!e.name)return void(Hi&&k.c.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const{location:c}=qi,u={name:e.name,op:s,trimEnd:!0,data:{[Wo]:e.context?function(t){const e=t.attributes&&t.attributes[Wo],n=t.data&&t.data[Wo],r=t.metadata&&t.metadata.source;return e||n||r}(e.context):”url”}};n=hi(At(),u,r,o,!0,{location:c},i)};[“click”].forEach(t=>{qi.document&&addEventListener(t,r,{once:!1,capture:!0})})}(n,i),n.enableInp&&function(t,e){const n=({entries:n})=>{const r=le(),o=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName(“Replay”):void 0,i=void 0!==o?o.getReplayId():void 0,s=Co(),a=pe(),c=void 0!==a?a.getUser():void 0;n.forEach(n=>{if(function(t){return”duration”in t}(n)){const r=n.interactionId;if(void 0===r)return;const o=t[r],a=n.duration,u=n.startTime,l=Object.keys(t),d=l.length>0?l.reduce((e,n)=>t[e].durationt[e]).some(t=>t.duration===a&&t.startTime===u);if(e)return}if(!r)return;if(o)o.duration=Math.max(o.duration,a);else if(l.lengtht[d].duration){const n=e.name,o=e.context;n&&o&&(d&&Object.keys(t).length>=ih&&delete t[d],t[r]={routeName:n,duration:a,parentContext:o,user:c,activeTransaction:s,replayId:i,startTime:u})}}})};ws(“event”,n),ws(“first-input”,n)}(o,i),Gp({traceFetch:c,traceXHR:u,tracePropagationTargets:f,shouldCreateSpanForRequest:l,enableHTTPTimings:d})},options:n}};function nh(t,e){if(!t.emit)return;t.emit(“startPageLoadSpan”,e);const n=Po();return”pageload”===(n&&yt(n).op)?n:void 0}function rh(t,e){if(!t.emit)return;t.emit(“startNavigationSpan”,e);const n=Po();return”navigation”===(n&&yt(n).op)?n:void 0}function oh(t){const e=Object(sr.b)(`meta[name=${t}]`);return e?e.getAttribute(“content”):void 0}const ih=10;const sh=100,ah=5e3,ch=36e5;function uh(t,e){A&&k.c.info(`[Offline]: ${t}`,e)}function lh(t){return e=>{const n=t(e),r=e.createStore?e.createStore(e):void 0;let o,i=ah;function s(t,n,r){return!function(t,e){return sn(t,(t,n)=>e.includes(n))}(t,[“replay_event”,”replay_recording”,”client_report”])&&(!e.shouldStore||e.shouldStore(t,n,r))}function a(t){r&&(o&&clearTimeout(o),”number”!=typeof(o=setTimeout(async()=>{o=void 0;const t=await r.pop();t&&(uh(“Attempting to send previously queued event”),u(t).catch(t=>{uh(“Failed to retry sending”,t)}))},t))&&o.unref&&o.unref())}function c(){o||(a(i),i=Math.min(2*i,ch))}async function u(t){try{const e=await n.send(t);let o=sh;if(e)if(e.headers&&e.headers[“retry-after”])o=co(e.headers[“retry-after”]);else if((e.statusCode||0)>=400)return e;return a(o),i=ah,e}catch(e){if(r&&await s(t,e,i))return await r.insert(t),c(),uh(“Error sending. Event queued”,e),{};throw e}}return e.flushAtStartup&&c(),{send:u,flush:t=>n.flush(t)}}}function dh(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=(()=>e(t.result)),t.onabort=t.onerror=(()=>n(t.error))})}function ph(t){return dh(t.getAllKeys())}function hh(t){let e;function n(){return void 0==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=(()=>n.result.createObjectStore(e));const r=dh(n);return t=>r.then(n=>t(n.transaction(e,”readwrite”).objectStore(e)))}(t.dbName||”sentry-offline”,t.storeName||”queue”)),e}return{insert:async e=>{try{const r=await cn(e,t.textEncoder);await function(t,e,n){return t(t=>ph(t).then(r=>{if(!(r.length>=n))return t.put(e,Math.max(…r,0)+1),dh(t.transaction)}))}(n(),r,t.maxQueueSize||30)}catch(t){}},pop:async()=>{try{const e=await function(t){return t(t=>ph(t).then(e=>{if(0!==e.length)return dh(t.get(e[0])).then(n=>(t.delete(e[0]),dh(t.transaction).then(()=>n)))}))}(n());if(e)return function(t,e,n){let r=”string”==typeof t?e.encode(t):t;function o(t){const e=r.subarray(0,t);return r=r.subarray(t+1),e}function i(){let t=r.indexOf(10);return t<0&&(t=r.length),JSON.parse(n.decode(o(t)))}const s=i(),a=[];for(;r.length;){const t=i(),e=”number”==typeof t.length?t.length:void 0;a.push([t,e?o(e):i()])}return[s,a]}(e,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(t){}}}}function fh(t){return function(t){return e=>t({…e,createStore:hh})}(lh(t))}const mh=1e6,gh=String(0),yh=”main”;let _h=””,vh=””,bh=””,Sh=jn.navigator&&jn.navigator.userAgent||””,wh=””;const kh=jn.navigator&&jn.navigator.language||jn.navigator&&jn.navigator.languages&&jn.navigator.languages[0]||””;const xh=jn.navigator&&jn.navigator.userAgentData;function Th(t){return function(t){return!(“thread_metadata”in t)}(t)?function(t){let e=void 0,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[gh]:{name:yh}}};if(!t.samples.length)return r;const o=t.samples[0].timestamp,i=”number”==typeof performance.timeOrigin?performance.timeOrigin:V||0,s=i-(V||i);for(let i=0;i{let r;const s=i.get(n);s?r=s:(r=o(n),i.set(n,r));for(let o=r.length-1;o>=0;o–){const i=r[o],s=i&&i.filename;if(i&&s){t[s]=e[n];break}}return t},{}),c=[];for(const e of t)e&&a[e]&&c.push({type:”sourcemap”,code_file:e,debug_id:a[e]});return c}(n.resources)},profile:i,transactions:[{name:r.transaction||””,id:r.event_id||C(),trace_id:o,active_thread_id:gh,relative_start_ns:”0″,relative_end_ns:(1e6*(a-s)).toFixed(0)}]}}function Ch(t){return”pageload”===t.op}(function(t){return”object”==typeof t&&null!==t&&”getHighEntropyValues”in t})(xh)&&xh.getHighEntropyValues([“architecture”,”model”,”platform”,”platformVersion”,”fullVersionList”]).then(t=>{if(_h=t.platform||””,bh=t.architecture||””,wh=t.model||””,vh=t.platformVersion||””,t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];Sh=`${e.brand} ${e.version}`}}).catch(t=>void 0);const Ih=new WeakMap;let Oh=!1;const Rh=3e4;function Mh(t){if(Oh)return En&&k.c.log(“[Profiling] Profiling has been disabled for the duration of the current user session.”),!1;if(!t.isRecording())return En&&k.c.log(“[Profiling] Discarding profile because transaction was not sampled.”),!1;const e=le(),n=e&&e.getOptions();if(!n)return En&&k.c.log(“[Profiling] Profiling disabled, no options found.”),!1;const r=n.profilesSampleRate;return function(t){return”number”!=typeof t&&”boolean”!=typeof t||”number”==typeof t&&isNaN(t)?(En&&k.c.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):!0===t||!1===t||!(t<0||t>1)||(En&&k.c.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${t}.`),!1)}(r)?r?!!(!0===r||Math.random()(i&&(jn.clearTimeout(i),i=void 0),En&&k.c.log(`[Profiling] stopped profiling of transaction: ${yt(t).description}`),e?(function(t,e){if(Dh.set(t,e),Dh.size>30){const t=Dh.keys().next().value;Dh.delete(t)}}(r,e),null):(En&&k.c.log(`[Profiling] profiler returned null profile for: ${yt(t).description}`,”this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started”),null))).catch(t=>(En&&k.c.log(“[Profiling] error while stopping profiler:”,t),null)):null}let i=jn.setTimeout(()=>{En&&k.c.log(“[Profiling] max profile duration elapsed, stopping profiling for:”,yt(t).description),o()},Rh);const s=t.end.bind(t);return t.end=function(){return t?(o().then(()=>{t.setContext(“profile”,{profile_id:r,start_timestamp:e}),s()},()=>{s()}),t):s()},t}const Ph=ke(()=>({name:”BrowserProfiling”,setupOnce(){},setup(t){const e=pe().getTransaction();e&&Ch(e)&&Mh(e)&&jh(e),”function”==typeof t.on?(t.on(“startTransaction”,t=>{Mh(t)&&jh(t)}),t.on(“beforeEnvelope”,t=>{if(!Dh.size)return;const e=function(t){const e=[];return sn(t,(t,n)=>{if(“transaction”===n)for(let n=1;n=1e4&&(clearInterval(n),t(!1))},100)}).then(function(t){t&&!c&&l()});case 21:case”end”:return t.stop()}},t,null,[[3,9]])}))),document.addEventListener(“DOMContentLoaded”,function(){(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent)||/Android.*Version\/(\d)\.(\d)/i.test(navigator.userAgent))&&document.querySelectorAll(“details.share-gift”).forEach(function(t){t.style.display=”none”})})}]);
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,”a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=””,n(n.s=0)}([function(e,t,n){“use strict”;n.r(t);n(1);window.onload=function(){setTimeout(function(){var e=window.TESTETETE.DATA.split(“https://valor.globo.com/”),t=document.getElementById(“li-recommendation-unit”);window.TESTETESTE2={DATA:e},”expressao-de-opiniao”===e[0]||”conteudo-de-marca”===e[0]||”patrocinado”===e[0]||”informe-publicitario”===e[0]?t.style.display=”none”:t.style.display=”block”},2e3)}},function(e,t,n){}]);
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=0)}([function(e,t,r){“use strict”;r.r(t);r(1)},function(e,t,r){}]);
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=3)}([,,,function(e,t,r){“use strict”;r.r(t);r(4)},function(e,t,r){}]);
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,”a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=””,n(n.s=1)}([function(e,t,n){“use strict”;n.d(t,”a”,(function(){return m}));const i=”impressionViewable”,r=”slotRenderEnded”,a=(e,t)=>{window.setTimeout((function n(){window[e]?t():window.setTimeout(n,50)}),50)};class s{constructor(e,t=[],n){this.isMabActive=e,this.currentChannel=window.cdaaas.SETTINGS.CHANNEL,this.currentTenant=window.cdaaas.SETTINGS.SITE_ID,this.tenants=t,this.interval=void 0,this.triggerZone={},this.triggerZoneMap=new Map,this.mab=void 0,this.adContainers=document.querySelectorAll(“.mc-has-ad-lazyload”),this.gptExperiment=n,this.bannersCropped=[]}getPositionExperiment(e){if(this.tenants.length>0&&this.currentTenant&&this.currentChannel&&e){const t=this.tenants.filter(e=>e.name===this.currentTenant)[0]||[];return(t.channels&&t.channels.filter(e=>e.channel===this.currentChannel)[0]||[]).positions.filter(t=>t.position===e)[0]||{}||””}return””}resolveAllPromisses(e){return e&&Array.isArray(e)?Promise.all(Array.from(e,([e,t])=>Promise.resolve(t).then(t=>[e,t]))).then(e=>new Map(e)):new Promise(e=>e(new Map))}extractExperiment(e,t,n){if(n){const e=t&&t.split(“__”)[0]||””;return n&&n.size>0&&n.get(e)||{}}return{}}generateExperiments(){const e=[],t=[];for(const n of this.adContainers){const i=n.getAttribute(“data-id”).split(“__”)[0],r=this.getPositionExperiment(i).experiment;if(!t.includes(i)){t.push(i);const n=this.mab.choose(r);e.push([i,n])}}return e}__configureTriggerZone(e){for(const[t,n]of e)this.triggerZone[t]=screen.height*+n.arm.split(“:”).splice(-1)[0];this.triggerZone.default=2*screen.height}__configureMAB(e){const{googletag:t,utag_data:n,GloboAB:a}=window;if(a&&t&&”function”==typeof t.pubads&&n&&n[“ut.env”]){const t=new a(n[“ut.env”]||”qa”);t.options().skipImpression();const s=t.mab();e.setMabClient(s);const o=e.generateExperiments();e.resolveAllPromisses(o).then(t=>{e.setTzMap(t),window.googletag.pubads().addEventListener(i,t=>e.__bannerListenerCallback(t,e,i)),window.googletag.pubads().addEventListener(r,t=>e.__bannerListenerCallback(t,e,r)),e.__triggerBasicServices()},t=>{console.warn(“(MC Ads) Mab Promise Rejection, using default value instead”,t),e.__triggerBasicServices()}).catch(()=>{console.warn(“(MC Ads) Some problems ocurring when fetch MAB Values, using default value instead”),e.__triggerBasicServices()}),clearInterval(this.interval)}}__bannerListenerCallback(e,t,n){const a=e.slot.getSlotElementId();{const e=this.extractExperiment(t.currentChannel,a,t.triggerZoneMap);if(a&&Object.keys(e).length>0)switch(n){case i:t.mab.reward(e);break;case r:t.mab.increment(e)}}}thisTenantHaveMab(){return this.tenants.filter(e=>e.name===this.currentTenant)[0]}start(){const e=this;this.isMabActive&&this.tenants.length>0&&this.thisTenantHaveMab()?this.interval=setInterval(()=>this.__configureMAB(e),500):(this.__triggerBasicServices(),this.__configureABTriggers())}__configureABTriggers(){const e=[“banner_materia1″,”banner_materia2″,”banner_materia”],t=(t,n)=>{if((“desktop”!==this.currentChannel||”banner_materia1″!==n)&&(t=>e.includes(t.split(“__”)[0]))(n))switch(t){case”conversion”:this.gptExperiment&&this.gptExperiment.conversion();break;case”impression”:this.gptExperiment&&this.gptExperiment.impression()}};if(this.gptExperiment){const e=setInterval(()=>{window.googletag&&window.googletag.pubads&&(window.googletag.pubads().addEventListener(r,e=>t(“impression”,e.slot.getSlotElementId())),window.googletag.pubads().addEventListener(i,e=>t(“conversion”,e.slot.getSlotElementId())),clearInterval(e))},500)}}__triggerBasicServices(){this.__configureTriggerZone(this.triggerZoneMap),this.__watchTriggerZone(),this.__watchAdsVisibility()}__watchAdsVisibility(){const e=e=>{const t=e.getAttribute(“data-id”)&&e.getAttribute(“data-id”).split(“__”)[0],n=this.triggerZone[t]||this.triggerZone.de;window.ScrollSpy.add({el:e,offset:n,ctx:this,callback:e=>{this.__initBanner(e)}})};let t=!!document.getElementById(“banner_materia2”);this.adContainers.forEach(n=>{const i=document.querySelector(“.mc-article-body”);if(“banner_materia2″===n.getAttribute(“data-id”)){if(t)return void(e=>{const t=e.closest(‘[data-block-type=”ads”]’)||e.parentNode;t&&(t.style.display=”none”)})(n);t=!0}if(n.closest(“.cropped-block”)&&i.classList.contains(“cropped”))return this.bannersCropped.push(n);e(n)});const n=document.getElementById(“mc-read-more-btn”);n&&n.addEventListener(“click”,()=>this.bannersCropped.forEach(e))}__initBanner(e){a(“bannerLazyLoading”,()=>this.__defineBanner(e))}__defineBanner(e){const t=e.getAttribute(“data-id”);e.setAttribute(“id”,t);const n=this.extractExperiment(this.currentChannel,t,this.triggerZoneMap),i={};i.gptLazyload=this.gptExperiment&&”lazyload-nativo-google”===this.gptExperiment.alternative||!1,this.thisTenantHaveMab()&&(i.abAlternative=(()=>{if(n&&n.abAlternative)return”(control)”===n.abAlternative.split(” “)[0]?”control”:”mab”})()),setTimeout(this.__createIntersection(e,t,i),0)}__throttle(e,t=100,n){let i,r;return()=>{const a=n||this,s=+new Date,o=arguments;i&&s{i=s,e.apply(a,o)},t)):(i=s,e.apply(a,o))}}__watchTriggerZone(){window.addEventListener(“resize”,this.__throttle(()=>this.__configureTriggerZone(this.triggerZoneMap)),!1)}setMabClient(e){this.mab=e}setTzMap(e){this.triggerZoneMap=e}__createIntersection(e,t,n){const i={rootMargin:2*window.innerHeight+”px”,threshold:.5};new IntersectionObserver((function(e,i){e.forEach(e=>{e.isIntersecting&&(window.bannerLazyLoading(t,n),i.unobserve(e.target))})}),i).observe(e)}}function o(){const e=[];document.addEventListener(“adserver-ad-rendered”,t=>{let n,i,r=0,a=null;if(t.publicidade_visivel){if(n=document.querySelector(`#${t.id_elemento}.mc-has-reveal`),!n||!ScrollSpy||!getComputedStyle||e.indexOf(t.id_elemento)>=0)return;e.push(t.id_elemento),a=n.parentNode;const s=function(){let e;return”undefined”!=typeof pageYOffset?pageYOffset:(e=document.documentElement,e=e.clientHeight?e:document.body,e.scrollTop)}();if(a.getBoundingClientRect().top+s{a.style.height=r+”px”})}})}})}const c=[“redeglobo”],l=e=>{if(c.includes(window.cdaaas.SETTINGS.SITE_ID))try{a(“GloboAB”,async()=>{const t=new GloboAB(“prod”),n=await t.choose(“multicontent-redeglobo-lazyload-gpt”);e(n)})}catch(t){e()}else e()},d=(e,t,n)=>`mc-${e}-lazy-load-advwblt.v2:${t}:${n}`,g=e=>[{position:”banner_materia2″,experiment:d(e,”smart”,”banner-materia2″)},{position:”banner_materia”,experiment:d(e,”smart”,”banner-materia”)},{position:”banner_materia1″,experiment:d(e,”smart”,”banner-materia1″)}],u=e=>[{position:”banner_materia2″,experiment:d(e,”desktop”,”banner-materia2″)},{position:”banner_materia”,experiment:d(e,”desktop”,”banner-materia”)}],p=[];[“g1″,”ge”,”gshow”].forEach(e=>p.push({name:e,channels:[{channel:”smart”,positions:g(e)},{channel:”desktop”,positions:u(e)}]}));const h=e=>{e?new s(!1,[],e).start():new s(!0,p).start(),o()},m=()=>{l(h)}},function(e,t,n){“use strict”;n.r(t);var i=n(0);n(2);Object(i.a)()},function(e,t,n){}]);
//]]>