");t.slotType===t.slotTypes.PRA&&T({adtype:"PRA",event:"rendered",id:t.id,cid:t.cid,callid:t.callid},t.url),n()}catch(e){n({at:"render",desc:e.message},t)}}function X(t,n){var e,o,i,r=window.$(document.getElementById(t.layout.orientation)),a=t.layout.orientation,s=0;try{for(t.bundle=t.bundle||{},t.bundle[a]?e=!1:(e=!0,t.bundle[a]=[]),a=a.split(","),t.block=t.BLOCKS[a[0]],o=0,i=a.length;o");n()}catch(e){n({at:"render",desc:e.message},t)}}N=window,U=N._,B=function(e){var t,i,n,o=e.data;if(i=function(t){t.slotType===t.slotTypes.STA?function e(){N.onresize=function(){},I(),U.exec("pseudo",t||{},function(){N.onresize=e})}():U.exec("callbackPRA",t)},t=function(t){try{var e,n=t.bwUtils=N.bwUtils={topWindowUrl:"",topWindowReferrer:"",inIframe:!1,origin:t.origin},o=t.config;e=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.reveal=!1,t.inif=parseInt(t.inif,10),N.origin=t.origin,t.inif?(N.inIframe=n.inIframe=!0,n.origin=o.origin,0<=t.url.indexOf(o.origin)?(N.topWindowUrl=n.topWindowUrl=t.url,N.topWindowReferrer=n.topWindowReferrer=t.referrer):(0<=t.referrer.indexOf(o.origin)?N.topWindowUrl=n.topWindowUrl=t.referrer:N.topWindowUrl=n.topWindowUrl=o.origin,N.topWindowReferrer=n.topWindowReferrer="")):(N.inIframe=n.inIframe=!1,N.topWindowUrl=n.topWindowUrl=t.url,N.topWindowReferrer=n.topWindowReferrer=t.referrer),t.slotTypes={STA:"STA",PRA:"PRA"},t.slotType=o.slotType||t.slotType,1===t.config.testMode?(I(),U.exec("pseudo",t||{})):(e(t.config)&&i(t),t.slotType===t.slotTypes.STA?t.responsive?function e(){N.onresize=function(){},U.exec("STA",t,function(){N.onresize=e})}():U.exec("STA",t):t.responsive?function e(){N.onresize=function(){},U.exec("PRA",t,function(){N.onresize=e})}():U.exec("PRA",t))}catch(e){i(t)}},n=function(e){var t;for(t in N.doBiddingsData)delete N.doBiddingsData[t];for(t in e)N.doBiddingsData[t]=e[t]},o)if("bidResponse"===o.action)N.doBiddingsGotResponse||(N.doBiddingsGotResponse=!0,n(o.response),o.error?N.doBiddingsNext(o.error):(P(o.response),N.doBiddingsNext()));else if("bidFpc"===o.action){if(o.response)try{N.catUtils.setLocalStorageItem(h,o.response)}catch(e){}}else o.videoSlot&&"test"===o.videoSlot.testMode?(o.height=parseInt(o.height.split("p")[0],10),o.width=parseInt(o.width.split("p")[0],10),f({hookId:"ad-home",data:o,rawVideoData:o.videoSlot.testJson||o.videoSlot.testVast,config:o.config,adtype:o.slotType})):o.config?t(o):"STA"==o.slotType&&function e(t){t.onresize=function(){},U.exec("pseudo",{},function(){t.onresize=e})}(N)},N.addEventListener?N.addEventListener("message",B):N.attachEvent("onmessage",B),U(["PRA","STA","pseudo"],G),U(["PRA","STA","pseudo"],R),U(["PRA","STA","pseudo"],$),U(["PRA","STA"],X),U(["PRA","STA"],y),U(["STA","pseudo"],M),U(["pseudo"],J),U(["callbackPRA"],function(e,t){t(1)}),U(["PRA","callbackPRA"],O)})