“)),c=f(y[i.size_id].split(“x”).map(function(e){return Number(e)}),2),s.width=c[0],s.height=c[1]),s.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:l.adUnitCode}),t.push(s)):n.logError(“Rubicon: bidRequest undefined at index position:”.concat(o),r,e),t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,r,n){if(!D&&e.iframeEnabled){var i=””;return r&&”string”==typeof r.consentString&&(“boolean”==typeof r.gdprApplies?i+=”?gdpr=”.concat(Number(r.gdprApplies),”&gdpr_consent=”).concat(r.consentString):i+=”?gdpr_consent=”.concat(r.consentString)),n&&(i+=””.concat(i?”&”:”?”,”us_privacy=”).concat(encodeURIComponent(n))),D=!0,{type:”iframe”,url:”https://”.concat(b.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e){return n.convertTypes({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function h(e,t){var r=o.b.getConfig(“pageUrl”);r=e.params.referrer?e.params.referrer:r||t.refererInfo.referer;return e.params.secure?r.replace(/^http:/i,”https:”):r}function _(e,t){var r=e.params;if(“video”===t){var i=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?i=[r.video.playerWidth,r.video.playerHeight]:Array.isArray(n.deepAccess(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?i=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&0e.length)&&(t=e.length);for(var r=0,n=new Array(t);r’;var i,o}},h=function(e){var t=0=e&&t.innerWidth’+y.vast_url+””:y.vast_string&&(v=y.vast_string),g.pre_market_bids.push({id:y.deal_id,seatbid:[{bid:[{impid:Date.now(),dealid:y.deal_id,price:y.price,adm:v}]}],cur:y.currency,ext:{event_log:[{}]}})}}var h=n.getBidIdParameter(“mimes”,e.params)||[“application/javascript”,”video/mp4″,”video/webm”],_={id:e.bidId,secure:p,video:{w:l,h:f,ext:g,mimes:h}};””!=n.getBidIdParameter(“price_floor”,e.params)&&(_.bidfloor=n.getBidIdParameter(“price_floor”,e.params)),””!=n.getBidIdParameter(“start_delay”,e.params)&&(_.video.startdelay=0+Boolean(n.getBidIdParameter(“start_delay”,e.params))),””!=n.getBidIdParameter(“min_duration”,e.params)&&(_.video.minduration=n.getBidIdParameter(“min_duration”,e.params)),””!=n.getBidIdParameter(“max_duration”,e.params)&&(_.video.maxduration=n.getBidIdParameter(“max_duration”,e.params)),””!=n.getBidIdParameter(“placement_type”,e.params)&&(_.video.ext.placement=n.getBidIdParameter(“placement_type”,e.params)),””!=n.getBidIdParameter(“position”,e.params)&&(_.video.ext.pos=n.getBidIdParameter(“position”,e.params)),e.crumbs&&e.crumbs.pubcid&&(c=e.crumbs.pubcid);var S=navigator.language?”language”:”userLanguage”,I={id:s,imp:_,site:{id:””,page:a,content:”content”},device:{h:screen.height,w:screen.width,dnt:n.getDNT()?1:0,language:navigator[S].split(“-“)[0],make:navigator.vendor?navigator.vendor:””,ua:navigator.userAgent},ext:{wrap_response:1}};n.getBidIdParameter(“number_of_ads”,e.params)&&(I.ext.number_of_ads=n.getBidIdParameter(“number_of_ads”,e.params));var A={};return 1==n.getBidIdParameter(“spotx_all_google_consent”,e.params)&&(A.consented_providers_settings=u),t&&t.gdprConsent&&(A.consent=t.gdprConsent.consentString,void 0!==t.gdprConsent.gdprApplies&&n.deepSetValue(I,”regs.ext.gdpr”,t.gdprConsent.gdprApplies?1:0)),t&&t.uspConsent&&n.deepSetValue(I,”regs.ext.us_privacy”,t.uspConsent),n.deepAccess(e,”userId.id5id.uid”)&&(A.eids=A.eids||[],A.eids.push({source:”id5-sync.com”,uids:[{id:e.userId.id5id.uid,ext:e.userId.id5id.ext||{}}]})),c&&(A.fpc=c),e&&e.schain&&(I.source={ext:{schain:e.schain}}),e&&e.userId&&e.userId.tdid&&(A.eids=A.eids||[],A.eids.push({source:”adserver.org”,uids:[{id:e.userId.tdid,ext:{rtiPartner:”TDID”}}]})),n.isEmpty(A)||(I.user={ext:A}),{method:”POST”,url:”https://search.spotxchange.com/openrtb/2.3/dados/”+s,data:I,bidRequest:t}})},interpretResponse:function(e,t){var r=[],i=e.body;return i&&n.isArray(i.seatbid)&&n._each(i.seatbid,function(e){n._each(e.bid,function(e){var a={};for(var c in t.bidRequest.bids)e.impid==t.bidRequest.bids[c].bidId&&(a=t.bidRequest.bids[c]);n._each(a.params.pre_market_bids,function(t){t.deal_id==e.id&&(e.price=t.price,i.cur=t.currency)});var d={requestId:a.bidId,currency:i.cur||”USD”,cpm:e.price,creativeId:e.crid||””,dealId:e.dealid||””,ttl:360,netRevenue:!0,channel_id:i.id,cache_key:e.ext.cache_key,vastUrl:”https://search.spotxchange.com/ad/vast.html?key=”+e.ext.cache_key,videoCacheKey:e.ext.cache_key,mediaType:s.d,width:e.w,height:e.h};d.meta=d.meta||{},e&&e.adomain&&0e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError(“Invalid attempt to iterate non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.”)}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(o);try{for(d.s();!(a=d.n()).done;){var l=a.value;01e3*e.config.storage.refreshInSeconds),!i||s||n||null!=(u=r)&&u!==U(t)?o=e.submodule.getId(e.config,t,i):”function”==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,t,i)),c.isPlainObject(o)&&(o.id&&(B(e,o.id),i=o.id),”function”==typeof o.callback&&(e.callback=o.callback)),i&&(e.idObj=e.submodule.decode(i,e.config))):e.config.value?e.idObj=e.config.value:(d=e.submodule.getId(e.config,t,void 0),c.isPlainObject(d)&&(“function”==typeof d.callback&&(e.callback=d.callback),d.id&&(e.idObj=e.submodule.decode(d.id,e.config))))}function Y(){var e,t,r,n=(e=D,t=j,Array.isArray(e)?e.reduce(function(e,r){return!r||c.isEmptyStr(r.name)||(!r.storage||c.isEmptyStr(r.storage.type)||c.isEmptyStr(r.storage.name)||-1===t.indexOf(r.storage.type))&&!c.isPlainObject(r.value)&&(r.storage||r.value)||e.push(r),e},[]):[]);n.length&&(r=k.filter(function(e){return!i()(P,function(t){return t.name===e.name})}),P=r.map(function(e){var t=i()(n,function(t){return t.name===e.name});return e.findRootDomain=z,t?{submodule:e,config:t,callback:void 0,idObj:void 0}:null}).filter(function(e){return null!==e}),!x&&P.length&&(Object(d.a)().requestBids.before(G,40),c.logInfo(“”.concat(S,” – usersync config updated for “).concat(P.length,” submodules: “),P.map(function(e){return e.submodule.name})),x=!0))}function X(e){i()(k,function(t){return t.name===e.name})||(k.push(e),Y())}function $(e){P=[],x=!(D=[]),y=void 0,-1!==(j=[w.localStorageIsEnabled()?A:null,w.cookiesAreEnabled()?I:null].filter(function(e){return null!==e})).indexOf(I)&&w.getCookie(C)?c.logInfo(“”.concat(S,” – opt-out cookie found, exit module”)):-1!==j.indexOf(A)&&w.getDataFromLocalStorage(C)?c.logInfo(“”.concat(S,” – opt-out localStorage found, exit module”)):(e.getConfig(function(e){var t=e.userSync;t&&t.userIds&&(D=t.userIds,h=c.isNumber(t.syncDelay)?t.syncDelay:O,_=c.isNumber(t.auctionDelay)?t.auctionDelay:E,Y())}),Object(d.a)().getUserIds=V,Object(d.a)().getUserIdsAsEids=K,Object(d.a)().refreshUserIds=H)}$(o.b),Object(p.c)(“userId”,X)}},[894]),pbjs.processQueue();
}, {}];
window.modules[“visibility.legacy”] = [function(require,module,exports){“use strict”;DS.service(“$visibility”,[“$document”,”$window”,”_throttle”,”Eventify”,function(e,t,n,i){var o,r,h=[];function s(e,t){return et?e:t}function d(e,t,n){!e.preload&&e.preloadThreshhold&&function(e,t,n,i){return t.top=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new r(“shown”,t))},15)):(!n||i1&&(h+=e(r,Math.floor(n/o),i-1,o)),h},this.getVerticallyVisiblePixels=f,this.getViewportHeight=function(){return t.innerHeight||e.documentElement.clientHeight||e.body.clientHeight},this.getViewportWidth=function(){return t.innerWidth||e.documentElement.clientWidth||e.body.clientWidth},this.isElementNotHidden=u,this.isElementInViewport=function(n){var i=n.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(“Invalid attempt to iterate non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.”); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === “string”) return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === “Object” && o.constructor) n = o.constructor.name; if (n === “Map” || n === “Set”) return Array.from(o); if (n === “Arguments” || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i