text: pbjsChunk([132],{455:function(e,t,n){e.exports=n(456)},456:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return a});var i=n(1).registerBidder,s="onetag",d="banner";function o(e){var t={},n=e.params;t.adUnitCode=e.adUnitCode,t.bidId=e.bidId,t.bidderRequestId=e.bidderRequestId,t.auctionId=e.auctionId,t.transactionId=e.transactionId,t.sizes=[];for(var r=e.sizes,i=0,s=r.length;i<s;i++){var d=r[i];t.sizes.push({width:d[0],height:d[1]})}return t.pubId=n.pubId,n.type&&(t.type=n.type),n.pubClick&&(t.click=n.pubClick),n.dealId&&(t.dealId=n.dealId),t}var a={code:s,supportedMediaTypes:[d],isBidRequestValid:function(e){return void 0!==e&&e.bidder===s&&void 0!==e.params&&("string"==typeof e.params.pubId&&void 0!==e.sizes&&0!==e.sizes.length)},buildRequests:function(e,t){var n=r({bids:e.map(o)},function(){var e,t,n,r,i,s,d,o,a;for(e=window,t=e.document,n=t.location.href,r=t.referrer,i=0,d=encodeURIComponent,o=new Date,a=screen;e!==e.parent;)try{s=e.parent,n=s.location.href,r=s.document.referrer,e=s}catch(d){i=top!==e.parent?2:1;break}return{location:d(n),referrer:d(r)||"0",masked:i,wWidth:e.innerWidth,wHeight:e.innerHeight,oWidth:e.outerWidth,oHeight:e.outerHeight,sWidth:a.width,sHeight:a.height,aWidth:a.availWidth,aHeight:a.availHeight,sLeft:"screenLeft"in e?e.screenLeft:e.screenX,sTop:"screenTop"in e?e.screenTop:e.screenY,hLength:history.length,date:o.toUTCString(),timeOffset:o.getTimezoneOffset()}}());return t&&t.gdprConsent&&(n.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:t.gdprConsent.gdprApplies}),t&&t.uspConsent&&(n.usPrivacy=t.uspConsent),{method:"POST",url:"https://onetag-sys.com/prebid-request",data:JSON.stringify(n)}},interpretResponse:function(e,t){var n=e.body,r=[];if("string"==typeof e)try{n=JSON.parse(e)}catch(e){return r}return!n||n.nobid&&!0===n.nobid||n.bids&&n.bids.forEach(function(e){r.push({requestId:e.requestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creativeId,dealId:e.dealId?e.dealId:"",currency:e.currency,netRevenue:!1,mediaType:r.type?r.type:d,ad:e.ad,ttl:e.ttl||300})}),r},getUserSyncs:function(e,t,n,r){var i=[];if(e.iframeEnabled){var s="?cb="+(new Date).getTime();n&&"string"==typeof n.consentString&&(s+="&gdpr_consent="+n.consentString,"boolean"==typeof n.gdprApplies&&(s+="&gdpr="+(n.gdprApplies?1:0))),r&&"string"==typeof r&&(s+="&us_privacy="+r),i.push({type:"iframe",url:"https://onetag-sys.com/usync/"+s})}return i}};i(a)}},[455]);