“));var m=b[i.size_id].split(“x”).map(function(e){return Number(e)}),v=(0,r.Z)(m,2);f.width=v[0],f.height=v[1]}f.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:p.adUnitCode}),t.push(f)}else(0,o.logError)(“Rubicon: bidRequest undefined at index position:”.concat(s),n,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!C&&e.iframeEnabled){var i={};return n&&(“boolean”==typeof n.gdprApplies&&(i.gdpr=Number(n.gdprApplies)),”string”==typeof n.consentString&&(i.gdpr_consent=n.consentString)),r&&(i.us_privacy=encodeURIComponent(r)),i=Object.keys(i).length?”?”.concat((0,o.formatQS)(i)):””,C=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”https://news.google.com/__i/rss/rd/articles/,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,t){return(0,o.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function _(e,t){var n;return n=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?n.replace(/^http:/i,”https:”):n}function E(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector(“div[id^=’google_ads’]”))&&t.style.setProperty(“display”https://news.google.com/__i/rss/rd/articles/,”none”),function(e){var t=e.querySelector(“script[id^=’sas_script’]”),n=t&&t.nextSibling;n&&”iframe”===n.localName&&n.style.setProperty(“display”https://news.google.com/__i/rss/rd/articles/,”none”)}(n);var r=e.renderer.getConfig();e.renderer.push(function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:n,align:r.align||”center”,position:r.position||”append”},closeButton:r.closeButton||!1,label:r.label||void 0,collapse:r.collapse||!0})})}function I(e,t){var n=e.params;if(“video”===t){var r=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?r=[n.video.playerWidth,n.video.playerHeight]:Array.isArray((0,s.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?r=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(r=e.sizes[0]),r}var i=[];return Array.isArray(n.sizes)?i=n.sizes:void 0!==(0,s.Z)(e,”mediaTypes.banner.sizes”)?i=S(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=S(e.sizes):(0,o.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var t=[15,2,9];return i.sort(function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return r>-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n})}()}function T(e,t,n){var r={user:{ext:{data:v({},e.params.visitor)}},site:{ext:{data:v({},e.params.inventory)}}};e.params.keywords&&(r.site.keywords=(0,o.isArray)(e.params.keywords)?e.params.keywords.join(“https://news.google.com/__i/rss/rd/articles/,”):e.params.keywords);var i=(0,o.mergeDeep)({},e.ortb2||{},r),c=(0,s.Z)(e.ortb2Imp,”ext”)||{},d=(0,s.Z)(e.ortb2Imp,”ext.data”)||{},u=(0,s.Z)(e,”ortb2Imp.ext.gpid”),p={user:[4],site:[1,2,5,6]},f={user:”tg_v.”,site:”tg_i.”,adserver:”tg_i.dfp_ad_unit_code”,pbadslot:”tg_i.pbadslot”,keywords:”kw”},g=function(e,t,n){return”data”===t&&Array.isArray(e)?e.filter(function(e){return e.segment&&(0,s.Z)(e,”ext.segtax”)&&p[n]&&-1!==p[n].indexOf((0,s.Z)(e,”ext.segtax”))}).map(function(e){var t=e.segment.filter(function(e){return e.id}).reduce(function(e,t){return e.push(t.id),e},[]);if(t.length>0)return t.toString()}).toString():”object”===(0,a.Z)(e)&&!Array.isArray(e)||void 0===e?void 0:Array.isArray(e)?e.filter(function(e){if(“object”!==(0,a.Z)(e)&&void 0!==e)return e.toString();(0,o.logWarn)(“Rubicon: Filtered value: “,e,”for key”,t,”: … Read more