prebid.js 7.12.0 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/PULL_REQUEST_TEMPLATE.md +16 -10
- package/.github/codeql/codeql-config.yml +4 -0
- package/.github/workflows/codeql-analysis.yml +73 -0
- package/dist/33acrossBidAdapter.js +1 -1
- package/dist/acuityAdsBidAdapter.js +1 -0
- package/dist/adagioBidAdapter.js +1 -1
- package/dist/adbookpspBidAdapter.js +1 -1
- package/dist/adgenerationBidAdapter.js +1 -1
- package/dist/adrelevantisBidAdapter.js +1 -1
- package/dist/adtrgtmeBidAdapter.js +1 -1
- package/dist/adxcgBidAdapter.js +1 -1
- package/dist/adyoulikeBidAdapter.js +1 -1
- package/dist/ajaBidAdapter.js +1 -1
- package/dist/amxBidAdapter.js +1 -1
- package/dist/amxIdSystem.js +1 -1
- package/dist/aolBidAdapter.js +1 -1
- package/dist/appierAnalyticsAdapter.js +1 -1
- package/dist/appnexusBidAdapter.js +1 -1
- package/dist/asoBidAdapter.js +1 -1
- package/dist/audiencerunBidAdapter.js +1 -1
- package/dist/axonixBidAdapter.js +1 -1
- package/dist/beopBidAdapter.js +1 -1
- package/dist/bidglassBidAdapter.js +1 -1
- package/dist/big-richmediaBidAdapter.js +1 -1
- package/dist/bluebillywigBidAdapter.js +1 -1
- package/dist/brandmetricsRtdProvider.js +1 -1
- package/dist/bridgewellBidAdapter.js +1 -1
- package/dist/brightMountainMediaBidAdapter.js +1 -1
- package/dist/browsiRtdProvider.js +1 -1
- package/dist/cleanioRtdProvider.js +1 -1
- package/dist/concertBidAdapter.js +1 -1
- package/dist/connectadBidAdapter.js +1 -1
- package/dist/consentManagement.js +1 -1
- package/dist/consentManagementUsp.js +1 -1
- package/dist/consumableBidAdapter.js +1 -1
- package/dist/conversantBidAdapter.js +1 -1
- package/dist/craftBidAdapter.js +1 -1
- package/dist/criteoBidAdapter.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/debugging-standalone.js +1 -1
- package/dist/dspxBidAdapter.js +1 -1
- package/dist/enrichmentFpdModule.js +1 -1
- package/dist/eplanningBidAdapter.js +1 -1
- package/dist/finativeBidAdapter.js +1 -1
- package/dist/glimpseBidAdapter.js +1 -1
- package/dist/gmosspBidAdapter.js +1 -1
- package/dist/goldbachBidAdapter.js +1 -1
- package/dist/gridBidAdapter.js +1 -1
- package/dist/gridNMBidAdapter.js +1 -1
- package/dist/gumgumBidAdapter.js +1 -1
- package/dist/h12mediaBidAdapter.js +1 -1
- package/dist/id5IdSystem.js +1 -1
- package/dist/imRtdProvider.js +1 -1
- package/dist/impactifyBidAdapter.js +1 -1
- package/dist/improvedigitalBidAdapter.js +1 -1
- package/dist/inmarBidAdapter.js +1 -1
- package/dist/insticatorBidAdapter.js +1 -1
- package/dist/ixBidAdapter.js +1 -1
- package/dist/jixieBidAdapter.js +1 -1
- package/dist/justpremiumBidAdapter.js +1 -1
- package/dist/konduitAnalyticsAdapter.js +1 -1
- package/dist/kueezBidAdapter.js +1 -1
- package/dist/lassoBidAdapter.js +1 -1
- package/dist/lifestreetBidAdapter.js +1 -0
- package/dist/limelightDigitalBidAdapter.js +1 -1
- package/dist/liveyieldAnalyticsAdapter.js +1 -1
- package/dist/logicadBidAdapter.js +1 -1
- package/dist/loglyliftBidAdapter.js +1 -1
- package/dist/mabidderBidAdapter.js +1 -0
- package/dist/malltvAnalyticsAdapter.js +1 -1
- package/dist/marsmediaBidAdapter.js +1 -1
- package/dist/mediafuseBidAdapter.js +1 -1
- package/dist/mediakeysBidAdapter.js +1 -1
- package/dist/mediasquareBidAdapter.js +1 -1
- package/dist/mgidBidAdapter.js +1 -1
- package/dist/minutemediaBidAdapter.js +1 -1
- package/dist/not-for-prod/prebid.js +132 -127
- package/dist/oguryBidAdapter.js +1 -1
- package/dist/oneKeyIdSystem.js +1 -0
- package/dist/oneKeyRtdProvider.js +1 -0
- package/dist/onetagBidAdapter.js +1 -1
- package/dist/ooloAnalyticsAdapter.js +1 -1
- package/dist/outbrainBidAdapter.js +1 -1
- package/dist/parrableIdSystem.js +1 -1
- package/dist/permutiveRtdProvider.js +1 -1
- package/dist/pixfutureBidAdapter.js +1 -1
- package/dist/prebid-core.js +2 -2
- package/dist/publinkIdSystem.js +1 -1
- package/dist/pubmaticBidAdapter.js +1 -1
- package/dist/pubwiseAnalyticsAdapter.js +1 -1
- package/dist/pxyzBidAdapter.js +1 -1
- package/dist/quantcastBidAdapter.js +1 -1
- package/dist/readpeakBidAdapter.js +1 -1
- package/dist/relaidoBidAdapter.js +1 -1
- package/dist/rhythmoneBidAdapter.js +1 -1
- package/dist/riseBidAdapter.js +1 -1
- package/dist/rtbhouseBidAdapter.js +1 -1
- package/dist/rubiconAnalyticsAdapter.js +1 -1
- package/dist/rubiconBidAdapter.js +1 -1
- package/dist/seedingAllianceBidAdapter.js +1 -1
- package/dist/seedtagBidAdapter.js +1 -1
- package/dist/sharethroughAnalyticsAdapter.js +1 -1
- package/dist/sharethroughBidAdapter.js +1 -1
- package/dist/shinezBidAdapter.js +1 -1
- package/dist/smaatoBidAdapter.js +1 -1
- package/dist/smartadserverBidAdapter.js +1 -1
- package/dist/smartxBidAdapter.js +1 -1
- package/dist/smilewantedBidAdapter.js +1 -1
- package/dist/sonobiBidAdapter.js +1 -1
- package/dist/sovrnAnalyticsAdapter.js +1 -1
- package/dist/sovrnBidAdapter.js +1 -1
- package/dist/sspBCBidAdapter.js +1 -1
- package/dist/sublimeBidAdapter.js +1 -1
- package/dist/synacormediaBidAdapter.js +1 -1
- package/dist/targetVideoBidAdapter.js +1 -1
- package/dist/teadsBidAdapter.js +1 -1
- package/dist/trionBidAdapter.js +1 -1
- package/dist/tripleliftBidAdapter.js +1 -1
- package/dist/trustpidSystem.js +1 -1
- package/dist/ttdBidAdapter.js +1 -1
- package/dist/ucfunnelAnalyticsAdapter.js +1 -1
- package/dist/underdogmediaBidAdapter.js +1 -1
- package/dist/undertoneBidAdapter.js +1 -1
- package/dist/userId.js +1 -1
- package/dist/vidazooBidAdapter.js +1 -1
- package/dist/videobyteBidAdapter.js +1 -1
- package/dist/viewability.js +1 -1
- package/dist/visxBidAdapter.js +1 -1
- package/dist/vuukleBidAdapter.js +1 -1
- package/dist/widespaceBidAdapter.js +1 -1
- package/dist/winrBidAdapter.js +1 -1
- package/dist/yahoosspBidAdapter.js +1 -1
- package/dist/yieldmoBidAdapter.js +1 -1
- package/dist/yieldoneAnalyticsAdapter.js +1 -1
- package/modules/.submodules.json +2 -0
- package/modules/acuityAdsBidAdapter.js +207 -0
- package/modules/acuityAdsBidAdapter.md +79 -0
- package/modules/adgenerationBidAdapter.js +2 -2
- package/modules/adriverBidAdapter.js +1 -1
- package/modules/appnexusBidAdapter.js +13 -93
- package/modules/beopBidAdapter.js +4 -4
- package/modules/browsiRtdProvider.js +1 -1
- package/modules/consentManagement.js +1 -1
- package/modules/consentManagementUsp.js +1 -1
- package/modules/consumableBidAdapter.js +23 -1
- package/modules/currency.js +1 -0
- package/modules/datawrkzBidAdapter.js +13 -13
- package/modules/enrichmentFpdModule.js +11 -0
- package/modules/id5IdSystem.js +2 -2
- package/modules/imRtdProvider.js +20 -7
- package/modules/imRtdProvider.md +3 -1
- package/modules/insticatorBidAdapter.js +1 -1
- package/modules/ixBidAdapter.js +8 -22
- package/modules/ixBidAdapter.md +1 -19
- package/modules/lifestreetBidAdapter.js +143 -0
- package/modules/limelightDigitalBidAdapter.js +2 -1
- package/modules/mabidderBidAdapter.js +60 -0
- package/modules/mabidderBidAdapter.md +31 -0
- package/modules/oneKeyIdSystem.js +78 -0
- package/modules/oneKeyIdSystem.md +109 -0
- package/modules/oneKeyRtdProvider.js +98 -0
- package/modules/oneKeyRtdProvider.md +127 -0
- package/modules/permutiveRtdProvider.js +55 -8
- package/modules/pubmaticBidAdapter.js +14 -0
- package/modules/rtbhouseBidAdapter.js +24 -0
- package/modules/seedtagBidAdapter.md +25 -56
- package/modules/tripleliftBidAdapter.js +20 -1
- package/modules/trustpidSystem.js +6 -42
- package/modules/trustpidSystem.md +10 -10
- package/modules/userId/eids.js +26 -0
- package/modules/userId/userId.md +2 -2
- package/modules/viewability.js +14 -14
- package/modules/yahoosspBidAdapter.js +1 -1
- package/package.json +1 -1
- package/src/auction.js +2 -1
- package/src/native.js +22 -3
- package/src/sizeMapping.js +4 -6
- package/src/utils/promise.js +3 -1
- package/src/utils.js +27 -0
- package/src/video.js +5 -4
- package/test/pages/instream.html +2 -2
- package/test/spec/modules/acuityAdsBidAdapter_spec.js +398 -0
- package/test/spec/modules/appnexusBidAdapter_spec.js +1 -0
- package/test/spec/modules/beopBidAdapter_spec.js +11 -0
- package/test/spec/modules/big-richmediaBidAdapter_spec.js +1 -0
- package/test/spec/modules/consumableBidAdapter_spec.js +19 -0
- package/test/spec/modules/currency_spec.js +22 -0
- package/test/spec/modules/enrichmentFpdModule_spec.js +14 -0
- package/test/spec/modules/imRtdProvider_spec.js +10 -5
- package/test/spec/modules/ixBidAdapter_spec.js +6 -19
- package/test/spec/modules/lifestreetBidAdapter_spec.js +232 -0
- package/test/spec/modules/limelightDigitalBidAdapter_spec.js +59 -7
- package/test/spec/modules/mabidderBidAdapter_spec.js +125 -0
- package/test/spec/modules/oneKeyIdSystem_spec.js +107 -0
- package/test/spec/modules/oneKeyRtdProvider_spec.js +152 -0
- package/test/spec/modules/permutiveRtdProvider_spec.js +152 -2
- package/test/spec/modules/pubmaticBidAdapter_spec.js +16 -0
- package/test/spec/modules/tripleliftBidAdapter_spec.js +18 -0
- package/test/spec/modules/trustpidSystem_spec.js +27 -45
- package/test/spec/native_spec.js +17 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[2881],{92506:function(e,t,r){var n=r(71002),i=r(20265),a=r(44806),o=r(64358),c=r(34614),s=r(14699),d=r(24679),u=r(3193),p=r(35706),l=r(4192),m=window.location.search.match(/bbpbs_debug=true/),b={BIDDER_CODE:"bluebillywig",AUCTION_URL:"$$URL_STARTpbs.bluebillywig.com/openrtb2/auction?pub=$$PUBLICATION",SYNC_URL:"$$URL_STARTpbs.bluebillywig.com/static/cookie-sync.html?pub=$$PUBLICATION",RENDERER_URL:"https://$$PUBLICATION.bbvms.com/r/$$RENDERER.js",DEFAULT_TIMEOUT:5e3,DEFAULT_TTL:300,DEFAULT_WIDTH:768,DEFAULT_HEIGHT:432,DEFAULT_NET_REVENUE:!0,VIDEO_PARAMS:["mimes","minduration","maxduration","protocols","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext"]},g=u.vc.getConfig,y={addSiteAppDevice:function(e,t){"object"===(0,n.Z)(g("app"))?e.app=g("app"):(e.site={},"object"===(0,n.Z)(g("site"))&&(e.site=g("site")),t&&(e.site.page=t)),"object"===(0,n.Z)(g("device"))&&(e.device=g("device")),e.device||(e.device={}),e.device.w||(e.device.w=window.innerWidth),e.device.h||(e.device.h=window.innerHeight)},addSchain:function(e,t){var r=(0,i.Z)(t,"0.schain");r&&(e.source.ext={schain:r})},addCurrency:function(e){var t=g("currency.adServerCurrency");t&&"string"==typeof t?e.cur=[t]:Array.isArray(t)&&t.length&&(e.cur=[t[0]])},addUserIds:function(e,t){var r=(0,i.Z)(t,"0.userId"),n=(0,l.HQ)(r);n.length&&(0,a.Z)(e,"user.ext.eids",n)},substituteUrl:function(e,t,r){return e.replace("$$URL_START",m?"https://dev.":"https://").replace("$$PUBLICATION",t).replace("$$RENDERER",r)},getAuctionUrl:function(e){return y.substituteUrl(b.AUCTION_URL,e)},getSyncUrl:function(e){return y.substituteUrl(b.SYNC_URL,e)},getRendererUrl:function(e,t){return y.substituteUrl(b.RENDERER_URL,e,t)},transformVideoParams:function(e,t){var r=(e=(0,o.deepClone)(e)).playerSize||[b.DEFAULT_WIDTH,b.DEFAULT_HEIGHT];return Array.isArray(r[0])&&(r=r[0]),e.w=r[0],e.h=r[1],e.placement=3,t&&(e=Object.assign(e,t)),Object.keys(e).forEach((function(t){-1===b.VIDEO_PARAMS.indexOf(t)&&delete e[t]})),e},transformRTBToPrebidProps:function(e,t){var r={cpm:e.price,currency:t.cur,netRevenue:b.DEFAULT_NET_REVENUE,bidId:e.impid,requestId:e.impid,creativeId:e.crid,mediaType:d.pX,width:e.w||b.DEFAULT_WIDTH,height:e.h||b.DEFAULT_HEIGHT,ttl:b.DEFAULT_TTL},a=(0,i.Z)(e,"ext.prebid.targeting"),o=(0,i.Z)(e,"ext.prebid.cache");return o&&"object"===(0,n.Z)(o.vastXml)&&o.vastXml.cacheId&&o.vastXml.url?(r.videoCacheKey=o.vastXml.cacheId,r.vastUrl=o.vastXml.url):a&&a.hb_uuid&&a.hb_cache_host&&a.hb_cache_path&&(r.videoCacheKey=a.hb_uuid,r.vastUrl="https://".concat(a.hb_cache_host).concat(a.hb_cache_path,"?uuid=").concat(a.hb_uuid)),e.adm&&(r.ad=e.adm,r.vastXml=e.adm),r.vastUrl||!e.nurl||e.adm||(r.vastUrl=e.nurl),r.meta=e.meta||{},e.adomain&&(r.meta.advertiserDomains=e.adomain),r}},f={bootstrapPlayer:function(e){var t={code:e.adUnitCode};if(e.vastXml?t.vastXml=e.vastXml:e.vastUrl&&(t.vastUrl=e.vastUrl),e.vastXml||e.vastUrl)if(window.bluebillywig&&window.bluebillywig.renderers){var r=f.getRendererId(e.publicationName,e.rendererCode),n=document.getElementById(e.adUnitCode),i=(0,c.sE)(window.bluebillywig.renderers,(function(e){return e._id===r}));i?i.bootstrap(t,n,e.rendererSettings||{}):(0,o.logWarn)("".concat(b.BIDDER_CODE,": Couldn't find a renderer with ").concat(r))}else(0,o.logWarn)("".concat(b.BIDDER_CODE,": renderer code failed to initialize..."));else(0,o.logWarn)("".concat(b.BIDDER_CODE,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,t){var r=p.Th.install({url:e,loaded:!1,adUnitCode:t});try{r.setRender(f.outstreamRender)}catch(e){(0,o.logWarn)("".concat(b.BIDDER_CODE,": Error tying to setRender on renderer"),e)}return r},outstreamRender:function(e){e.renderer.push((function(){f.bootstrapPlayer(e)}))},getRendererId:function(e,t){return"".concat(e,"-").concat(t)}},E={code:b.BIDDER_CODE,supportedMediaTypes:[d.pX],syncStore:{bidders:[]},isBidRequestValid:function(e){if(!e.params)return(0,o.logError)("".concat(b.BIDDER_CODE,": no params set on bid. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("publicationName")||"string"!=typeof e.params.publicationName)return(0,o.logError)("".concat(b.BIDDER_CODE,": no publicationName specified in bid params, or it's not a string. Rejecting bid: "),e),!1;if(!/^\w+\.?\w+$/.test(e.params.publicationName))return(0,o.logError)("".concat(b.BIDDER_CODE,": publicationName must be in format 'publication' or 'publication.environment'. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("rendererCode")||"string"!=typeof e.params.rendererCode)return(0,o.logError)("".concat(b.BIDDER_CODE,": no rendererCode was specified in bid params. Rejecting bid: "),e),!1;if(!/^[\w+_]+$/.test(e.params.rendererCode))return(0,o.logError)("".concat(b.BIDDER_CODE,": rendererCode must be alphanumeric, including underscores. Rejecting bid: "),e),!1;if(!e.params.accountId)return(0,o.logError)("".concat(b.BIDDER_CODE,": no accountId specified in bid params. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("connections"))return(0,o.logError)("".concat(b.BIDDER_CODE,": no connections specified in bid. Rejecting bid: "),e),!1;if(!Array.isArray(e.params.connections))return(0,o.logError)("".concat(b.BIDDER_CODE,": connections is not of type array. Rejecting bid: "),e),!1;for(var t=0;t<e.params.connections.length;t++)if(!e.params.hasOwnProperty(e.params.connections[t]))return(0,o.logError)("".concat(b.BIDDER_CODE,": connection specified in params.connections, but not configured in params. Rejecting bid: "),e),!1;return!e.params.hasOwnProperty("video")||null!==e.params.video&&"object"===(0,n.Z)(e.params.video)?!e.params.hasOwnProperty("rendererSettings")||null!==e.params.rendererSettings&&"object"===(0,n.Z)(e.params.rendererSettings)?e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(d.pX)?e.mediaTypes[d.pX].hasOwnProperty("context")?"outstream"===e.mediaTypes[d.pX].context||((0,o.logError)("".concat(b.BIDDER_CODE,': video.context is invalid, must be "outstream". Rejecting bid: '),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": no context specified in bid. Rejecting bid: "),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": mediaTypes or mediaTypes.video is not specified. Rejecting bid: "),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": params.rendererSettings must be of type object. Rejecting bid: "),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": params.video must be of type object. Rejecting bid: "),e),!1)},buildRequests:function(e,t){var r=this,n=[];e.forEach((function(e){r.syncStore.publicationName||(r.syncStore.publicationName=e.params.publicationName),r.syncStore.accountId||(r.syncStore.accountId=e.params.accountId);var t=e.params.connections.reduce((function(t,n){return t[n]=e.params[n],-1===r.syncStore.bidders.indexOf(n)&&r.syncStore.bidders.push(n),t}),{}),a=y.transformVideoParams((0,i.Z)(e,"mediaTypes.video"),(0,i.Z)(e,"params.video"));n.push({id:e.bidId,ext:t,secure:"https"===window.location.protocol?1:0,video:a})}));var o={id:t.auctionId,source:{tid:t.auctionId},tmax:b.DEFAULT_TIMEOUT,imp:n,test:m?1:0,ext:{prebid:{targeting:{includewinners:!0,includebidderkeys:!1}}}};if(t.gdprConsent){var c=0;"boolean"==typeof t.gdprConsent.gdprApplies&&(c=t.gdprConsent.gdprApplies?1:0),(0,a.Z)(o,"regs.ext.gdpr",c),(0,a.Z)(o,"user.ext.consent",t.gdprConsent.consentString)}return t.uspConsent&&((0,a.Z)(o,"regs.ext.us_privacy",t.uspConsent),this.syncStore.uspConsent=t.uspConsent),1==g("coppa")&&(0,a.Z)(o,"regs.coppa",1),y.addSiteAppDevice(o,t.refererInfo&&t.refererInfo.page),y.addSchain(o,e),y.addCurrency(o),y.addUserIds(o,e),{method:"POST",url:y.getAuctionUrl(e[0].params.publicationName),data:JSON.stringify(o),bidderRequest:t}},interpretResponse:function(e,t){if(!(e=e.body||{}).hasOwnProperty("seatbid")||!Array.isArray(e.seatbid))return[];var r=[];return e.seatbid.forEach((function(n){n.bid&&Array.isArray(n.bid)&&n.bid.forEach((function(n){n=y.transformRTBToPrebidProps(n,e);var i=(0,c.sE)(t.bidderRequest.bids,(function(e){return e.bidId===n.bidId})).params;n.publicationName=i.publicationName,n.rendererCode=i.rendererCode,n.accountId=i.accountId,n.rendererSettings=i.rendererSettings;var a=y.getRendererUrl(n.publicationName,n.rendererCode);n.renderer=f.newRenderer(a,n.adUnitCode),r.push(n)}))})),r},getUserSyncs:function(e,t,r){if(!e.iframeEnabled)return[];var n=[];return r.gdprApplies&&n.push("gdpr=".concat(r.gdprApplies?1:0)),r.gdprApplies&&r.consentString&&n.push("gdpr_consent=".concat(r.consentString)),this.syncStore.uspConsent&&n.push("usp_consent=".concat(this.syncStore.uspConsent)),n.push("accountId=".concat(this.syncStore.accountId)),n.push("bidders=".concat(btoa(JSON.stringify(this.syncStore.bidders)))),n.push("cb=".concat(Date.now(),"-").concat(Math.random().toString().replace(".",""))),m&&n.push("bbpbs_debug=true"),[{type:"iframe",url:"".concat(y.getSyncUrl(this.syncStore.publicationName),"&").concat(n.join("&"))}]}};(0,s.dX)(E),window.pbjs.installedModules.push("bluebillywigBidAdapter")},4192:function(e,t,r){r.d(t,{HQ:function(){return c},Pv:function(){return s},UR:function(){return a}});var n=r(64358),i=r(20265),a={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){var t="";return e.DeviceID&&(t=e.DeviceID.join(",")),t},getUidExt:function(e){return"DeviceID"}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,n.pick)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{atype:3,getSource:function(e){var t;return null!=e&&null!==(t=e.ext)&&void 0!==t&&t.ssp?"".concat(e.ext.ssp,".merkleinc.com"):"merkleinc.com"},getValue:function(e){return e.id},getUidExt:function(e){return e.keyID?{keyID:e.keyID}:e.ext?e.ext:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imppid:{source:"ppid.intimatemerger.com",atype:1},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},tncid:{source:"thenewco.it",atype:3},gravitompId:{source:"gravito.net",atype:1},cpexId:{source:"czechadid.cz",atype:1}};function o(e,t){var r=a[t];if(r&&e){var i={};i.source=(0,n.isFn)(r.getSource)?r.getSource(e):r.source;var o=(0,n.isFn)(r.getValue)?r.getValue(e):e;if((0,n.isStr)(o)){var c={id:o,atype:r.atype};if((0,n.isFn)(r.getUidExt)){var s=r.getUidExt(e);s&&(c.ext=s)}if(i.uids=[c],(0,n.isFn)(r.getEidExt)){var d=r.getEidExt(e);d&&(i.ext=d)}return i}}return null}function c(e){var t=[],r=function(r){if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else if("ftrackId"===r){var n={atype:1,id:(e.ftrackId.DeviceID||[]).join("|"),ext:{}};for(var i in e.ftrackId)n.ext[i]=(e.ftrackId[i]||[]).join("|");t.push(n)}else if(Array.isArray(e[r]))e[r].forEach((function(e,n,i){var a=o(e,r);a&&t.push(a)}));else{var a=o(e[r],r);a&&t.push(a)}};for(var n in e)r(n);return t}function s(e){var t=[];return e.filter((function(e){return(0,n.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(a,r+".source")&&t.push({source:a[r].source,bidders:e.config.bidders})}))})),t}}},function(e){var t;t=92506,e(e.s=t)}]);
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[2881],{92506:function(e,t,r){var n=r(71002),i=r(20265),a=r(44806),o=r(64358),c=r(34614),s=r(14699),d=r(24679),u=r(3193),p=r(35706),l=r(4192),m=window.location.search.match(/bbpbs_debug=true/),b={BIDDER_CODE:"bluebillywig",AUCTION_URL:"$$URL_STARTpbs.bluebillywig.com/openrtb2/auction?pub=$$PUBLICATION",SYNC_URL:"$$URL_STARTpbs.bluebillywig.com/static/cookie-sync.html?pub=$$PUBLICATION",RENDERER_URL:"https://$$PUBLICATION.bbvms.com/r/$$RENDERER.js",DEFAULT_TIMEOUT:5e3,DEFAULT_TTL:300,DEFAULT_WIDTH:768,DEFAULT_HEIGHT:432,DEFAULT_NET_REVENUE:!0,VIDEO_PARAMS:["mimes","minduration","maxduration","protocols","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext"]},y=u.vc.getConfig,f={addSiteAppDevice:function(e,t){"object"===(0,n.Z)(y("app"))?e.app=y("app"):(e.site={},"object"===(0,n.Z)(y("site"))&&(e.site=y("site")),t&&(e.site.page=t)),"object"===(0,n.Z)(y("device"))&&(e.device=y("device")),e.device||(e.device={}),e.device.w||(e.device.w=window.innerWidth),e.device.h||(e.device.h=window.innerHeight)},addSchain:function(e,t){var r=(0,i.Z)(t,"0.schain");r&&(e.source.ext={schain:r})},addCurrency:function(e){var t=y("currency.adServerCurrency");t&&"string"==typeof t?e.cur=[t]:Array.isArray(t)&&t.length&&(e.cur=[t[0]])},addUserIds:function(e,t){var r=(0,i.Z)(t,"0.userId"),n=(0,l.HQ)(r);n.length&&(0,a.Z)(e,"user.ext.eids",n)},substituteUrl:function(e,t,r){return e.replace("$$URL_START",m?"https://dev.":"https://").replace("$$PUBLICATION",t).replace("$$RENDERER",r)},getAuctionUrl:function(e){return f.substituteUrl(b.AUCTION_URL,e)},getSyncUrl:function(e){return f.substituteUrl(b.SYNC_URL,e)},getRendererUrl:function(e,t){return f.substituteUrl(b.RENDERER_URL,e,t)},transformVideoParams:function(e,t){var r=(e=(0,o.deepClone)(e)).playerSize||[b.DEFAULT_WIDTH,b.DEFAULT_HEIGHT];return Array.isArray(r[0])&&(r=r[0]),e.w=r[0],e.h=r[1],e.placement=3,t&&(e=Object.assign(e,t)),Object.keys(e).forEach((function(t){-1===b.VIDEO_PARAMS.indexOf(t)&&delete e[t]})),e},transformRTBToPrebidProps:function(e,t){var r={cpm:e.price,currency:t.cur,netRevenue:b.DEFAULT_NET_REVENUE,bidId:e.impid,requestId:e.impid,creativeId:e.crid,mediaType:d.pX,width:e.w||b.DEFAULT_WIDTH,height:e.h||b.DEFAULT_HEIGHT,ttl:b.DEFAULT_TTL},a=(0,i.Z)(e,"ext.prebid.targeting"),o=(0,i.Z)(e,"ext.prebid.cache");return o&&"object"===(0,n.Z)(o.vastXml)&&o.vastXml.cacheId&&o.vastXml.url?(r.videoCacheKey=o.vastXml.cacheId,r.vastUrl=o.vastXml.url):a&&a.hb_uuid&&a.hb_cache_host&&a.hb_cache_path&&(r.videoCacheKey=a.hb_uuid,r.vastUrl="https://".concat(a.hb_cache_host).concat(a.hb_cache_path,"?uuid=").concat(a.hb_uuid)),e.adm&&(r.ad=e.adm,r.vastXml=e.adm),r.vastUrl||!e.nurl||e.adm||(r.vastUrl=e.nurl),r.meta=e.meta||{},e.adomain&&(r.meta.advertiserDomains=e.adomain),r}},g={bootstrapPlayer:function(e){var t={code:e.adUnitCode};if(e.vastXml?t.vastXml=e.vastXml:e.vastUrl&&(t.vastUrl=e.vastUrl),e.vastXml||e.vastUrl)if(window.bluebillywig&&window.bluebillywig.renderers){var r=g.getRendererId(e.publicationName,e.rendererCode),n=document.getElementById(e.adUnitCode),i=(0,c.sE)(window.bluebillywig.renderers,(function(e){return e._id===r}));i?i.bootstrap(t,n,e.rendererSettings||{}):(0,o.logWarn)("".concat(b.BIDDER_CODE,": Couldn't find a renderer with ").concat(r))}else(0,o.logWarn)("".concat(b.BIDDER_CODE,": renderer code failed to initialize..."));else(0,o.logWarn)("".concat(b.BIDDER_CODE,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,t){var r=p.Th.install({url:e,loaded:!1,adUnitCode:t});try{r.setRender(g.outstreamRender)}catch(e){(0,o.logWarn)("".concat(b.BIDDER_CODE,": Error tying to setRender on renderer"),e)}return r},outstreamRender:function(e){e.renderer.push((function(){g.bootstrapPlayer(e)}))},getRendererId:function(e,t){return"".concat(e,"-").concat(t)}},E={code:b.BIDDER_CODE,supportedMediaTypes:[d.pX],syncStore:{bidders:[]},isBidRequestValid:function(e){if(!e.params)return(0,o.logError)("".concat(b.BIDDER_CODE,": no params set on bid. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("publicationName")||"string"!=typeof e.params.publicationName)return(0,o.logError)("".concat(b.BIDDER_CODE,": no publicationName specified in bid params, or it's not a string. Rejecting bid: "),e),!1;if(!/^\w+\.?\w+$/.test(e.params.publicationName))return(0,o.logError)("".concat(b.BIDDER_CODE,": publicationName must be in format 'publication' or 'publication.environment'. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("rendererCode")||"string"!=typeof e.params.rendererCode)return(0,o.logError)("".concat(b.BIDDER_CODE,": no rendererCode was specified in bid params. Rejecting bid: "),e),!1;if(!/^[\w+_]+$/.test(e.params.rendererCode))return(0,o.logError)("".concat(b.BIDDER_CODE,": rendererCode must be alphanumeric, including underscores. Rejecting bid: "),e),!1;if(!e.params.accountId)return(0,o.logError)("".concat(b.BIDDER_CODE,": no accountId specified in bid params. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("connections"))return(0,o.logError)("".concat(b.BIDDER_CODE,": no connections specified in bid. Rejecting bid: "),e),!1;if(!Array.isArray(e.params.connections))return(0,o.logError)("".concat(b.BIDDER_CODE,": connections is not of type array. Rejecting bid: "),e),!1;for(var t=0;t<e.params.connections.length;t++)if(!e.params.hasOwnProperty(e.params.connections[t]))return(0,o.logError)("".concat(b.BIDDER_CODE,": connection specified in params.connections, but not configured in params. Rejecting bid: "),e),!1;return!e.params.hasOwnProperty("video")||null!==e.params.video&&"object"===(0,n.Z)(e.params.video)?!e.params.hasOwnProperty("rendererSettings")||null!==e.params.rendererSettings&&"object"===(0,n.Z)(e.params.rendererSettings)?e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(d.pX)?e.mediaTypes[d.pX].hasOwnProperty("context")?"outstream"===e.mediaTypes[d.pX].context||((0,o.logError)("".concat(b.BIDDER_CODE,': video.context is invalid, must be "outstream". Rejecting bid: '),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": no context specified in bid. Rejecting bid: "),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": mediaTypes or mediaTypes.video is not specified. Rejecting bid: "),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": params.rendererSettings must be of type object. Rejecting bid: "),e),!1):((0,o.logError)("".concat(b.BIDDER_CODE,": params.video must be of type object. Rejecting bid: "),e),!1)},buildRequests:function(e,t){var r=this,n=[];e.forEach((function(e){r.syncStore.publicationName||(r.syncStore.publicationName=e.params.publicationName),r.syncStore.accountId||(r.syncStore.accountId=e.params.accountId);var t=e.params.connections.reduce((function(t,n){return t[n]=e.params[n],-1===r.syncStore.bidders.indexOf(n)&&r.syncStore.bidders.push(n),t}),{}),a=f.transformVideoParams((0,i.Z)(e,"mediaTypes.video"),(0,i.Z)(e,"params.video"));n.push({id:e.bidId,ext:t,secure:"https"===window.location.protocol?1:0,video:a})}));var o={id:t.auctionId,source:{tid:t.auctionId},tmax:b.DEFAULT_TIMEOUT,imp:n,test:m?1:0,ext:{prebid:{targeting:{includewinners:!0,includebidderkeys:!1}}}};if(t.gdprConsent){var c=0;"boolean"==typeof t.gdprConsent.gdprApplies&&(c=t.gdprConsent.gdprApplies?1:0),(0,a.Z)(o,"regs.ext.gdpr",c),(0,a.Z)(o,"user.ext.consent",t.gdprConsent.consentString)}return t.uspConsent&&((0,a.Z)(o,"regs.ext.us_privacy",t.uspConsent),this.syncStore.uspConsent=t.uspConsent),1==y("coppa")&&(0,a.Z)(o,"regs.coppa",1),f.addSiteAppDevice(o,t.refererInfo&&t.refererInfo.page),f.addSchain(o,e),f.addCurrency(o),f.addUserIds(o,e),{method:"POST",url:f.getAuctionUrl(e[0].params.publicationName),data:JSON.stringify(o),bidderRequest:t}},interpretResponse:function(e,t){if(!(e=e.body||{}).hasOwnProperty("seatbid")||!Array.isArray(e.seatbid))return[];var r=[];return e.seatbid.forEach((function(n){n.bid&&Array.isArray(n.bid)&&n.bid.forEach((function(n){n=f.transformRTBToPrebidProps(n,e);var i=(0,c.sE)(t.bidderRequest.bids,(function(e){return e.bidId===n.bidId})).params;n.publicationName=i.publicationName,n.rendererCode=i.rendererCode,n.accountId=i.accountId,n.rendererSettings=i.rendererSettings;var a=f.getRendererUrl(n.publicationName,n.rendererCode);n.renderer=g.newRenderer(a,n.adUnitCode),r.push(n)}))})),r},getUserSyncs:function(e,t,r){if(!e.iframeEnabled)return[];var n=[];return r.gdprApplies&&n.push("gdpr=".concat(r.gdprApplies?1:0)),r.gdprApplies&&r.consentString&&n.push("gdpr_consent=".concat(r.consentString)),this.syncStore.uspConsent&&n.push("usp_consent=".concat(this.syncStore.uspConsent)),n.push("accountId=".concat(this.syncStore.accountId)),n.push("bidders=".concat(btoa(JSON.stringify(this.syncStore.bidders)))),n.push("cb=".concat(Date.now(),"-").concat(Math.random().toString().replace(".",""))),m&&n.push("bbpbs_debug=true"),[{type:"iframe",url:"".concat(f.getSyncUrl(this.syncStore.publicationName),"&").concat(n.join("&"))}]}};(0,s.dX)(E),window.pbjs.installedModules.push("bluebillywigBidAdapter")},4192:function(e,t,r){r.d(t,{HQ:function(){return c},Pv:function(){return s},UR:function(){return a}});var n=r(64358),i=r(20265),a={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){var t="";return e.DeviceID&&(t=e.DeviceID.join(",")),t},getUidExt:function(e){return"DeviceID"}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,n.pick)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{atype:3,getSource:function(e){var t;return null!=e&&null!==(t=e.ext)&&void 0!==t&&t.ssp?"".concat(e.ext.ssp,".merkleinc.com"):"merkleinc.com"},getValue:function(e){return e.id},getUidExt:function(e){return e.keyID?{keyID:e.keyID}:e.ext?e.ext:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imppid:{source:"ppid.intimatemerger.com",atype:1},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},tncid:{source:"thenewco.it",atype:3},gravitompId:{source:"gravito.net",atype:1},cpexId:{source:"czechadid.cz",atype:1},oneKeyData:{getValue:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0])return e.identifiers[0].value},source:"paf",atype:1,getEidExt:function(e){if(e&&e.preferences)return{preferences:e.preferences}},getUidExt:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0]){var t=e.identifiers[0];return{version:t.version,type:t.type,source:t.source}}}}};function o(e,t){var r=a[t];if(r&&e){var i={};i.source=(0,n.isFn)(r.getSource)?r.getSource(e):r.source;var o=(0,n.isFn)(r.getValue)?r.getValue(e):e;if((0,n.isStr)(o)){var c={id:o,atype:r.atype};if((0,n.isFn)(r.getUidExt)){var s=r.getUidExt(e);s&&(c.ext=s)}if(i.uids=[c],(0,n.isFn)(r.getEidExt)){var d=r.getEidExt(e);d&&(i.ext=d)}return i}}return null}function c(e){var t=[],r=function(r){if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else if("ftrackId"===r){var n={atype:1,id:(e.ftrackId.DeviceID||[]).join("|"),ext:{}};for(var i in e.ftrackId)n.ext[i]=(e.ftrackId[i]||[]).join("|");t.push(n)}else if(Array.isArray(e[r]))e[r].forEach((function(e,n,i){var a=o(e,r);a&&t.push(a)}));else{var a=o(e[r],r);a&&t.push(a)}};for(var n in e)r(n);return t}function s(e){var t=[];return e.filter((function(e){return(0,n.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(a,r+".source")&&t.push({source:a[r].source,bidders:e.config.bidders})}))})),t}}},function(e){var t;t=92506,e(e.s=t)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[8533],{
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[8533],{78814:function(t,e,r){var n=r(92797),a=r(20265),s=r(44806),i=r(64358),d=r(55730),o="brandmetrics",c=o,u=[],p=[1,7];function v(t,e,r){var n=function(n){if(n.available&&n.conf){var i=n.conf.displayOption||{};"pbjs"===i.type&&function(t,e,r,n){var i=(0,a.Z)(e,"params.bidders");i&&i.length>0&&i.forEach((function(e){(0,s.Z)(t,"ortb2Fragments.bidder.".concat(e,".user.ext.data.").concat(r),n)}))}(t,e,i.targetKey||"brandmetrics_survey",n.survey.measurementId)}r()};u.length>0?n(u[u.length-1]):(window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_addeventlistener",val:{event:"surveyloaded",reEmitLast:!0,handler:function(t){u.push(t),1===u.length&&n(t)}}}))}function l(t){return(0,i.mergeDeep)({waitForIt:!1,params:{bidders:[],scriptId:void 0}},t)}var f={name:o,getBidRequestData:function(t,e,r){try{var n=l(r);n.waitForIt?v(t,n,e):e()}catch(t){(0,i.logError)(t)}},init:function(t,e){var r=function(t){var e=!1;if(t&&t.gdpr&&t.gdpr.gdprApplies){var r=t.gdpr;if(r.vendorData){var n=r.vendorData.vendor,a=r.vendorData.purpose,s=!1;n.consents&&(s=n.consents[422]),n.legitimateInterests&&(s=s||n.legitimateInterests[422]);var i=p.map((function(t){return a.consents&&a.consents[t]||a.legitimateInterests&&a.legitimateInterests[t]})).filter((function(t){return!0===t})).length===p.length;e=s&&i}}else if(t.usp){var d=t.usp;e="N"!==d[1]&&"Y"!==d[2]}return e}(e);return r&&function(t){if(t){var e="https://cdn.brandmetrics.com/survey/script/"+(t+".js");(0,d.B)(e,c)}}(l(t).params.scriptId),r}};(0,n.Bx)("realTimeData",f),window.pbjs.installedModules.push("brandmetricsRtdProvider")}},function(t){var e;e=78814,t(t.s=e)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[6931],{55626:function(e,r,i){var n=i(64358),t=i(44806),a=i(14699),s=i(24679),d=i(34614),u=i(70059),f={code:"bridgewell",supportedMediaTypes:[s.Mk,s.B5],isBidRequestValid:function(e){var r=!1;return e&&e.params&&(e.params.cid&&"number"==typeof e.params.cid||e.params.ChannelID)&&(r=!0),r},buildRequests:function(e,r){e=(0,u.lY)(e);var i,t=[],a="https://prebid.scupio.com/recweb/prebid.aspx?cb="+Math.random();(0,n._each)(e,(function(e){i=e.userId,e.params.cid?t.push({cid:e.params.cid,adUnitCode:e.adUnitCode,requestId:e.bidId,mediaTypes:e.mediaTypes||{banner:{sizes:e.sizes}},userIds:i||{}}):t.push({ChannelID:e.params.ChannelID,adUnitCode:e.adUnitCode,requestId:e.bidId,mediaTypes:e.mediaTypes||{banner:{sizes:e.sizes}},userIds:i||{}})}));var s="";return r&&r.refererInfo&&(s=r.refererInfo.page),{method:"POST",url:a,data:{version:{prebid:"7.
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[6931],{55626:function(e,r,i){var n=i(64358),t=i(44806),a=i(14699),s=i(24679),d=i(34614),u=i(70059),f={code:"bridgewell",supportedMediaTypes:[s.Mk,s.B5],isBidRequestValid:function(e){var r=!1;return e&&e.params&&(e.params.cid&&"number"==typeof e.params.cid||e.params.ChannelID)&&(r=!0),r},buildRequests:function(e,r){e=(0,u.lY)(e);var i,t=[],a="https://prebid.scupio.com/recweb/prebid.aspx?cb="+Math.random();(0,n._each)(e,(function(e){i=e.userId,e.params.cid?t.push({cid:e.params.cid,adUnitCode:e.adUnitCode,requestId:e.bidId,mediaTypes:e.mediaTypes||{banner:{sizes:e.sizes}},userIds:i||{}}):t.push({ChannelID:e.params.ChannelID,adUnitCode:e.adUnitCode,requestId:e.bidId,mediaTypes:e.mediaTypes||{banner:{sizes:e.sizes}},userIds:i||{}})}));var s="";return r&&r.refererInfo&&(s=r.refererInfo.page),{method:"POST",url:a,data:{version:{prebid:"7.13.0",bridgewell:"1.1.0"},inIframe:(0,n.inIframe)(),url:s,referrer:r.refererInfo.ref,adUnits:t,refererInfo:r.refererInfo.legacy},validBidRequests:e}},interpretResponse:function(e,r){var i=[];return(0,n._each)(r.validBidRequests,(function(r){var n={};if(e.body){var a=(0,d.sE)(e.body,(function(e){var i=!1;if(e&&!e.consumed){var n=r.mediaTypes,t=r.adUnitCode;if(e.adUnitCode)return e.adUnitCode===t;if(e.width&&e.height&&n)if(n.native)i=!0;else if(n.banner&&n.banner.sizes){var a=e.width,s=e.height,u=n.banner.sizes;i="number"==typeof u[0]?a===u[0]&&s===u[1]:!!(0,d.sE)(u,(function(e){return a===e[0]&&s===e[1]}))}}return i}));if(a){if(a.consumed=!0,"number"!=typeof a.cpm)return;if("boolean"!=typeof a.netRevenue)return;if("string"!=typeof a.currency)return;if("string"!=typeof a.mediaType)return;switch(n.requestId=r.bidId,n.cpm=a.cpm,n.width=a.width,n.height=a.height,n.ttl=a.ttl,n.creativeId=a.id,n.netRevenue=a.netRevenue,n.currency=a.currency,n.mediaType=a.mediaType,a.adomain&&(0,t.Z)(n,"meta.advertiserDomains",Array.isArray(a.adomain)?a.adomain:[a.adomain]),a.mediaType){case s.Mk:if("string"!=typeof a.ad)return;n.ad=a.ad;break;case s.B5:if(!a.native)return;var u=r.mediaTypes.native,f=a.native,o=u.title;if(o&&o.required){if("string"!=typeof f.title)return;if(o.len&&o.len<f.title.length)return}var p=u.body;if(p&&p.required&&"string"!=typeof f.body)return;var c=u.image;if(c&&c.required){if(!f.image)return;if("string"!=typeof f.image.url)return;if(f.image.width!==c.sizes[0]||f.image.height!==c.sizes[1])return}var m=u.sponsoredBy;if(m&&m.required&&"string"!=typeof f.sponsoredBy)return;var l=u.icon;if(l&&l.required){if(!f.icon)return;if("string"!=typeof f.icon.url)return;if(f.icon.width!==l.sizes[0]||f.icon.height!==l.sizes[0])return}if("string"!=typeof f.clickUrl)return;var h=f.clickTrackers;if(!h)return;if(0===h.length)return;var y=f.impressionTrackers;if(!y)return;if(0===y.length)return;n.native=a.native;break;default:return}i.push(n)}}})),i}};(0,a.dX)(f),window.pbjs.installedModules.push("bridgewellBidAdapter")}},function(e){var r;r=55626,e(e.s=r)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[9317],{47428:function(e,i,a){var r=a(71002),n=a(64358),t=a(20265),o=a(44806),d=a(14699),s=a(24679),p=a(3193),c={code:"bmtm",aliases:["brightmountainmedia"],supportedMediaTypes:[s.Mk,s.pX],isBidRequestValid:function(e){return!!(e.bidId&&e.bidder&&e.params&&e.params.placement_id)||0==e.params.placement_id&&1===e.params.test},buildRequests:function(e,i){var a=[],o=[0,0],d={at:2,site:m(i),device:{ua:navigator.userAgent,w:window.top.screen.width,h:window.top.screen.height,js:1,language:navigator.language,dnt:"yes"===navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0},cur:["USD"],tmax:1e3,regs:u(i),user:{},source:{}};return e.forEach((function(e){d.id=(0,n.generateUUID)(),d.imp=[{id:"1",bidfloor:0,bidfloorcur:"USD",secure:"https:"===document.location.protocol?1:0,ext:{placement_id:e.params.placement_id,prebidVersion:"7.
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[9317],{47428:function(e,i,a){var r=a(71002),n=a(64358),t=a(20265),o=a(44806),d=a(14699),s=a(24679),p=a(3193),c={code:"bmtm",aliases:["brightmountainmedia"],supportedMediaTypes:[s.Mk,s.pX],isBidRequestValid:function(e){return!!(e.bidId&&e.bidder&&e.params&&e.params.placement_id)||0==e.params.placement_id&&1===e.params.test},buildRequests:function(e,i){var a=[],o=[0,0],d={at:2,site:m(i),device:{ua:navigator.userAgent,w:window.top.screen.width,h:window.top.screen.height,js:1,language:navigator.language,dnt:"yes"===navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0},cur:["USD"],tmax:1e3,regs:u(i),user:{},source:{}};return e.forEach((function(e){d.id=(0,n.generateUUID)(),d.imp=[{id:"1",bidfloor:0,bidfloorcur:"USD",secure:"https:"===document.location.protocol?1:0,ext:{placement_id:e.params.placement_id,prebidVersion:"7.13.0"}}],(0,t.Z)(e,"mediaTypes.banner")?(e.mediaTypes.banner.sizes&&(o=e.mediaTypes.banner.sizes[0]),d.imp[0].banner={h:o[0],w:o[1]}):(e.mediaTypes.video.playerSize&&(o=e.mediaTypes.video.playerSize[0]),d.imp[0].video={h:o[0],w:o[1],mimes:e.mediaTypes.video.mimes?e.mediaTypes.video.mimes:[],skip:e.mediaTypes.video.skip?1:0,playbackmethod:e.mediaTypes.video.playbackmethod?e.mediaTypes.video.playbackmethod:[],protocols:e.mediaTypes.video.protocols?e.mediaTypes.video.protocols:[],api:e.mediaTypes.video.api?e.mediaTypes.video.api:[],minduration:e.mediaTypes.video.minduration?e.mediaTypes.video.minduration:1,maxduration:e.mediaTypes.video.maxduration?e.mediaTypes.video.maxduration:999}),d.imp[0].bidfloor=function(e,i){if("function"==typeof e.getFloor){var a={};if(a=e.getFloor({currency:"USD",mediaType:"banner",size:i}),"object"===(0,r.Z)(a)&&"USD"===a.currency)return parseFloat(a.floor)}return 0}(e,o),d.user=function(e){if(e)return{ext:{eids:e}};return{}}(e.userIdAsEids),d.source=function(e){if(e)return{ext:{schain:e}};return{}}(e.schain),a.push({method:"POST",url:"".concat("https://one.elitebidder.com/api/hb?sid=").concat(e.params.placement_id),data:JSON.stringify(d),bidRequest:e})})),a},interpretResponse:function(e,i){var a,r,o=i.bidRequest,d=[];try{a=(r=e.body).seatbid[0].bid[0]}catch(e){r=null}if(!(r&&a&&a.adm&&a.price))return(0,n.logWarn)("Bidder ".concat(c.code," no valid bid")),[];var p={requestId:o.bidId,cpm:a.price,currency:r.cur,width:a.w,height:a.h,creativeId:a.crid,mediaType:(0,t.Z)(o,"mediaTypes.banner")?s.Mk:s.pX,ttl:3e3,netRevenue:!0,meta:{advertiserDomains:a.adomain}};return p.mediaType===s.Mk?p.ad=l(a.adm,a.price):p.vastXml=l(a.adm,a.price),d.push(p),d},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"https://console.brightmountainmedia.com:8443/cookieSync"}]}};function m(e){var i={name:window.location.hostname,publisher:{domain:window.location.hostname}};return e&&e.refererInfo&&((0,o.Z)(i,"page",e.refererInfo.page),(0,o.Z)(i,"ref",e.refererInfo.ref)),i}function u(e){var i={coppa:1==p.vc.getConfig("coppa")?1:0};return e&&e.gdprConsent&&((0,o.Z)(i,"ext.gdpr",e.gdprConsent.gdprApplies?1:0),(0,o.Z)(i,"ext.gdprConsentString",e.gdprConsent.consentString||"ALL")),e&&e.uspConsent&&(0,o.Z)(i,"ext.us_privacy",e.uspConsent),i}function l(e,i){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,i)}(0,d.dX)(c),window.pbjs.installedModules.push("brightMountainMediaBidAdapter")}},function(e){var i;i=47428,e(e.s=i)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[3764],{67488:function(t,e,r){var n=r(4942),o=r(64358),i=r(44806),a=r(92797),u=r(48928),c=r(55730),s=r(15164),f=r(34614),l=r(78640),d=r(52021),p=r(5644);function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var v=(0,s.df)(),m={},y=null,w=null,h={};function E(){var t=window.top,e=t.document,r=null;try{r=v.getDataFromLocalStorage("__brtd")}catch(t){(0,o.logError)("unable to parse __brtd")}var n,i,a=g(g(g(g({},{sk:m.siteKey,sw:t.screen&&t.screen.width||-1,sh:t.screen&&t.screen.height||-1,url:"".concat(e.location.protocol,"//").concat(e.location.host).concat(e.location.pathname)}),r?{us:r}:{us:"{}"}),document.referrer?{r:document.referrer}:{}),document.title?{at:document.title}:{});n="//".concat(m.url,"/prebid?").concat((i=a,Object.keys(i).map((function(t){return t+"="+encodeURIComponent(i[t])})).join("&"))),(0,u.O)()(n,{success:function(t,e){if(200===e.status)try{var r=JSON.parse(t);r&&r.p&&r.kn?O({p:r.p,kn:r.kn,pmd:r.pmd,bet:r.bet}):O({}),"PAGEVIEW"===r.bet&&d.j8(p.FP.BILLABLE_EVENT,{vendor:"browsi",type:"pageview",billingId:(0,o.generateUUID)()}),function(t){var e=(0,c.B)(t.u,"browsi");e.async=!0,e.setAttribute("data-sitekey",m.siteKey),e.setAttribute("data-pubkey",m.pubKey),e.setAttribute("prebidbpt","true"),e.setAttribute("id","browsi-tag"),e.setAttribute("src",t.u),e.prebidData=(0,o.deepClone)(t),m.keyName&&(e.prebidData.kn=m.keyName)}(r)}catch(t){(0,o.logError)("unable to parse data"),O({})}else 204===e.status&&O({})},error:function(){O({}),(0,o.logError)("unable to get prediction data")}})}function O(t){y=t,(0,o.isFn)(w)&&(w(),w=null)}function I(t){(0,o.logInfo)("Browsi RTD provider is fetching data for ".concat(t));try{var e=y&&y.p||{};return t.reduce((function(t,r){h[r]=h[r]||0;var n=h[r];if(!r)return t;var i=function(t){var e=(0,o.isGptPubadsDefined)()&&window.googletag.pubads().getSlots();if(!e||!e.length)return null;return(0,f.sE)(e,(function(e){return e.getSlotElementId()===t||e.getAdUnitPath()===t}))||null}(r),a=i?function(t,e){if(t)try{var r=function(t,e,r,n){var o=t.p.replace(/['"]+/g,"").replace(/<DIV_ID>/g,e);r&&(o=o.replace(/<AD_UNIT>/g,r));n&&(o=o.replace(/<KEY_(\w+)>/g,n));t.s&&(o=o.substring(t.s.s,t.s.e));return o}(t,e.getSlotElementId(),e.getAdUnitPath(),(function(t,r){return r&&e.getTargeting(r).join("_")||"NA"}));return r}catch(e){(0,o.logError)("failed to evaluate: ".concat(t))}return e.getSlotElementId()}(y.pmd,i):r,u=e[a];if(t[r]=j(-1),!u)return t;if(u.ps){if(!function(t,e){if(!e||!e.length||!t)return!0;var r=t.getAdUnitPath();return-1!==e.indexOf(r)}(i,u.w))return t;t[r]=j(function(t,e){if(!t||!(0,o.isNumber)(e))return-1;if((0,o.isNumber)(t[e]))return t[e];if(Object.keys(t).length>1)for(;e>0;)if(e--,(0,o.isNumber)(t[e]))return t[e];return-1}(u.ps,n))}return t}),{})}catch(t){return{}}}function j(t){var e=t<0?"NA":(Math.floor(10*t)/10).toFixed(2),r={};return r[D()]=e.toString(),r}function D(){return(m.keyName||y&&y.kn||"browsiViewability").toString()}var k={name:"browsi",getTargetingData:function(t,e,r,n){var i=I(t),a=n.auctionId,u="AD_REQUEST"===y.bet;return t.forEach((function(t){if((0,o.isNumber)(h[t])&&(h[t]=h[t]+1),u){var e=n.adUnits.find((function(e){return e.code===t})).transactionId;d.j8(p.FP.BILLABLE_EVENT,{vendor:"browsi",type:"adRequest",billingId:(0,o.generateUUID)(),transactionId:e,auctionId:a})}})),(0,o.logInfo)("Browsi RTD provider returned targeting data",i,"for",t),i},init:function(t){(m=t.params)&&m.siteKey&&m.pubKey&&m.url?E():(0,o.logError)("missing params for Browsi provider");return!0},getBidRequestData:function(t,e){var r=t.adUnitCodes,o=t.adUnits||(0,l.R)().adUnits||[];r?o=o.filter((function(t){return(0,f.q9)(r,t.code)})):r=o.map((function(t){return t.code})),function(t){y?(w=null,t()):w=t}((function(){var t=I(r);t&&o.forEach((function(e){var r=e.code;t[r]&&(0,i.Z)(e,"ortb2Imp.ext.data.browsi",(0,n.Z)({},D(),t[r][D()]))})),e()}))}};(0,a.Bx)("realTimeData",k),window.pbjs.installedModules.push("browsiRtdProvider")}},function(t){var e;e=67488,t(t.s=e)}]);
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[3764],{67488:function(t,e,r){var n=r(4942),o=r(64358),i=r(44806),a=r(92797),u=r(48928),c=r(55730),s=r(15164),f=r(34614),l=r(78640),d=r(52021),p=r(5644);function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var v=(0,s.df)(),m={},y=null,w=null,h={};function E(){var t=window.top,e=t.document,r=null;try{r=v.getDataFromLocalStorage("__brtd")}catch(t){(0,o.logError)("unable to parse __brtd")}var n,i,a=g(g(g(g({},{sk:m.siteKey,sw:t.screen&&t.screen.width||-1,sh:t.screen&&t.screen.height||-1,url:"".concat(e.location.protocol,"//").concat(e.location.host).concat(e.location.pathname)}),r?{us:r}:{us:"{}"}),document.referrer?{r:document.referrer}:{}),document.title?{at:document.title}:{});n="//".concat(m.url,"/prebid?").concat((i=a,Object.keys(i).map((function(t){return t+"="+encodeURIComponent(i[t])})).join("&"))),(0,u.O)()(n,{success:function(t,e){if(200===e.status)try{var r=JSON.parse(t);r&&r.p&&r.kn?O({p:r.p,kn:r.kn,pmd:r.pmd,bet:r.bet}):O({}),"PAGEVIEW"===r.bet&&d.j8(p.FP.BILLABLE_EVENT,{vendor:"browsi",type:"pageview",billingId:(0,o.generateUUID)()}),function(t){var e=(0,c.B)(t.u,"browsi");e.async=!0,e.setAttribute("data-sitekey",m.siteKey),e.setAttribute("data-pubkey",m.pubKey),e.setAttribute("prebidbpt","true"),e.setAttribute("id","browsi-tag"),e.setAttribute("src",t.u),e.prebidData=(0,o.deepClone)(t),m.keyName&&(e.prebidData.kn=m.keyName)}(r)}catch(t){(0,o.logError)("unable to parse data"),O({})}else 204===e.status&&O({})},error:function(){O({}),(0,o.logError)("unable to get prediction data")}})}function O(t){y=t,(0,o.isFn)(w)&&(w(),w=null)}function I(t){(0,o.logInfo)("Browsi RTD provider is fetching data for ".concat(t));try{var e=y&&y.p||{};return t.reduce((function(t,r){h[r]=h[r]||0;var n=h[r];if(!r)return t;var i=function(t){var e=(0,o.isGptPubadsDefined)()&&window.googletag.pubads().getSlots();if(!e||!e.length)return null;return(0,f.sE)(e,(function(e){return e.getSlotElementId()===t||e.getAdUnitPath()===t}))||null}(r),a=i?function(t,e){if(t)try{var r=function(t,e,r,n){var o=t.p.replace(/['"]+/g,"").replace(/<DIV_ID>/g,e);r&&(o=o.replace(/<AD_UNIT>/g,r));n&&(o=o.replace(/<KEY_(\w+)>/g,n));t.s&&(o=o.substring(t.s.s,t.s.e));return o}(t,e.getSlotElementId(),e.getAdUnitPath(),(function(t,r){return r&&e.getTargeting(r).join("_")||"NA"}));return r}catch(e){(0,o.logError)("failed to evaluate: ".concat(t))}return e.getSlotElementId()}(y.pmd,i):r,u=e[a];if(t[r]=j(-1),!u)return t;if(u.ps){if(!function(t,e){if(!e||!e.length||!t)return!0;var r=t.getAdUnitPath();return-1!==e.indexOf(r)}(i,u.w))return t;t[r]=j(function(t,e){if(!t||!(0,o.isNumber)(e))return-1;if((0,o.isNumber)(t[e]))return t[e];if(Object.keys(t).length>1)for(;e>0;)if(e--,(0,o.isNumber)(t[e]))return t[e];return-1}(u.ps,n))}return t}),{})}catch(t){return{}}}function j(t){var e=t<0?"NA":(Math.floor(10*t)/10).toFixed(2),r={};return r[D()]=e.toString(),r}function D(){return(m.keyName||y&&y.kn||"browsiViewability").toString()}var k={name:"browsi",getTargetingData:function(t,e,r,n){var i=I(t),a=n.auctionId,u=y&&"AD_REQUEST"===y.bet;return t.forEach((function(t){if((0,o.isNumber)(h[t])&&(h[t]=h[t]+1),u){var e=n.adUnits.find((function(e){return e.code===t})).transactionId;d.j8(p.FP.BILLABLE_EVENT,{vendor:"browsi",type:"adRequest",billingId:(0,o.generateUUID)(),transactionId:e,auctionId:a})}})),(0,o.logInfo)("Browsi RTD provider returned targeting data",i,"for",t),i},init:function(t){(m=t.params)&&m.siteKey&&m.pubKey&&m.url?E():(0,o.logError)("missing params for Browsi provider");return!0},getBidRequestData:function(t,e){var r=t.adUnitCodes,o=t.adUnits||(0,l.R)().adUnits||[];r?o=o.filter((function(t){return(0,f.q9)(r,t.code)})):r=o.map((function(t){return t.code})),function(t){y?(w=null,t()):w=t}((function(){var t=I(r);t&&o.forEach((function(e){var r=e.code;t[r]&&(0,i.Z)(e,"ortb2Imp.ext.data.browsi",(0,n.Z)({},D(),t[r][D()]))})),e()}))}};(0,a.Bx)("realTimeData",k),window.pbjs.installedModules.push("browsiRtdProvider")}},function(t){var e;e=67488,t(t.s=e)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[7401],{
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[7401],{84858:function(n,t,e){var r=e(43144),o=e(15671),c=e(60136),i=e(82963),a=e(61120),u=e(89611);function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function s(n,t,e){return s=f()?Reflect.construct.bind():function(n,t,e){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(n,r));return e&&(0,u.Z)(o,e.prototype),o},s.apply(null,arguments)}function p(n){var t="function"==typeof Map?new Map:void 0;return p=function(n){if(null===n||(e=n,-1===Function.toString.call(e).indexOf("[native code]")))return n;var e;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return s(n,arguments,(0,a.Z)(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,u.Z)(r,n)},p(n)}var l=e(92797),d=e(64358),m=e(52021),v=e(5644);function h(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=(0,a.Z)(n);if(t){var o=(0,a.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,i.Z)(this,e)}}var y=function(){},b=function(){},w=0;function g(n){var t=document.createElement("link");t.rel="preload",t.as="script",t.href=n,t.onload=function(){w=1},t.onerror=function(){w=-1},(0,d.insertElement)(t)}function R(n){var t=document.createElement("script");t.type="text/javascript",t.src=n,(0,d.insertElement)(t)}function E(n){n.ad="\x3c!-- pbad://creativeId=".concat(n.creativeId||"","&bidderCode=").concat(n.bidderCode||"","&cpm=").concat(n.cpm||""," --\x3e\n").concat(n.ad)}function x(n,t,e){if(E(e),!(w<t)){var r=(0,d.generateUUID)();e.ad='\n <script type="text/javascript"\n src="'.concat(n,'"\n data-api-integration-mode="prebid"\n data-api-session-uuid="').concat(r,'">\n <\/script>\n <script type="text/javascript">\n var ad = "').concat(encodeURIComponent(e.ad),'";\n var agent = window["').concat(r,'"];\n if (agent && typeof agent.put === "function") {\n agent.put(ad);\n }\n else {\n document.open();\n document.write(decodeURIComponent(ad));\n document.close();\n }\n <\/script>\n ')}}var U=function(n){(0,c.Z)(e,n);var t=h(e);function e(){return(0,o.Z)(this,e),t.apply(this,arguments)}return(0,r.Z)(e)}(p(Error));function B(n){if(!n.params)throw new U("Missing config parameters for clean.io RTD module provider.");if("string"!=typeof n.params.cdnUrl||!/^https?:\/\//.test(n.params.cdnUrl))throw new U('Parameter "cdnUrl" is a required string parameter, which should start with "http(s)://".');if("string"!=typeof n.params.protectionMode)throw new U('Parameter "protectionMode" is a required string parameter.');var t=n.params.cdnUrl;switch(n.params.protectionMode){case"full":y=function(){return R(t)},b=function(n){return E(n)};break;case"bids":y=function(){return g(t)},b=function(n){return x(t,0,n)};break;case"bids-nowait":y=function(){return g(t)},b=function(n){return x(t,1,n)};break;default:throw new U('Parameter "protectionMode" must be one of "full" | "bids" | "bids-nowait".')}}var I=function(){m.on(v.FP.BID_WON,(function(n){m.j8(v.FP.BILLABLE_EVENT,{vendor:"clean.io",billingId:(0,d.generateUUID)(),type:"impression"})}))};function Z(){(0,l.Bx)("realTimeData",{name:"clean.io",init:function(n,t){try{return B(n),y(),I(),I=function(){},!0}catch(n){return n instanceof U&&(0,d.logError)(n.message),!1}},onBidResponseEvent:function(n,t,e){b(n)}})}Z(),window.pbjs.installedModules.push("cleanioRtdProvider")}},function(n){var t;t=84858,n(n.s=t)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[3188],{73109:function(e,n,t){var r=t(71002),s=t(64358),o=t(14699),a=t(15164),i=t(17673),d="concert",u={code:d,isBidRequestValid:function(e){return!!e.params.partnerId||((0,s.logWarn)("Missing partnerId bid parameter"),!1)},buildRequests:function(e,n){(0,s.logMessage)(e),(0,s.logMessage)(n);var t={meta:{prebidVersion:"7.
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[3188],{73109:function(e,n,t){var r=t(71002),s=t(64358),o=t(14699),a=t(15164),i=t(17673),d="concert",u={code:d,isBidRequestValid:function(e){return!!e.params.partnerId||((0,s.logWarn)("Missing partnerId bid parameter"),!1)},buildRequests:function(e,n){(0,s.logMessage)(e),(0,s.logMessage)(n);var t={meta:{prebidVersion:"7.13.0",pageUrl:n.refererInfo.page,screen:[window.screen.width,window.screen.height].join("x"),debug:(0,s.debugTurnedOn)(),uid:c(n),optedOut:g(),adapterVersion:"1.1.1",uspConsent:n.uspConsent,gdprConsent:n.gdprConsent}};return t.slots=e.map((function(e){return{name:e.adUnitCode,bidId:e.bidId,transactionId:e.transactionId,sizes:e.params.sizes||e.sizes,partnerId:e.params.partnerId,slotType:e.params.slotType,adSlot:e.params.slot||e.adUnitCode,placementId:e.params.placementId||"",site:e.params.site||n.refererInfo.page,ref:n.refererInfo.ref}})),(0,s.logMessage)(t),{method:"POST",url:"".concat("https://bids.concert.io","/bids/prebid"),data:JSON.stringify(t)}},interpretResponse:function(e,n){(0,s.logMessage)(e),(0,s.logMessage)(n);var t=e.body;if(!t||"object"!==(0,r.Z)(t))return[];var o;return o=t.bids.map((function(e){return{requestId:e.bidId,cpm:e.cpm,width:e.width,height:e.height,ad:e.ad,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},creativeId:e.creativeId,netRevenue:e.netRevenue,currency:e.currency}})),(0,s.debugTurnedOn)()&&t.debug&&(0,s.logMessage)("CONCERT",t.debug),(0,s.logMessage)(o),o},getUserSyncs:function(e,n,t,r){var s=[];if(e.iframeEnabled&&!g()){var o=[];t&&"boolean"==typeof t.gdprApplies&&o.push("gdpr_applies=".concat(t.gdprApplies?"1":"0")),t&&"string"==typeof t.consentString&&o.push("gdpr_consent=".concat(t.consentString)),r&&"string"==typeof r&&o.push("usp_consent=".concat(r)),s.push({type:"iframe",url:"https://cdn.concert.io/lib/bids/sync.html"+(o.length>0?"?".concat(o.join("&")):"")})}return s},onTimeout:function(e){(0,s.logMessage)("concert bidder timed out"),(0,s.logMessage)(e)},onBidWon:function(e){(0,s.logMessage)("concert bidder won bid"),(0,s.logMessage)(e)}};(0,o.dX)(u);var p=(0,a.df)({bidderCode:d});function c(e){if(g()||!function(e){var n=!("string"===(null==e?void 0:e.uspConsent)&&"1"===(null==e?void 0:e.uspConsent[0])&&"Y"===(null==e?void 0:e.uspConsent[2].toUpperCase())),t=(null==e?void 0:e.gdprConsent)&&(0,i.h)(null==e?void 0:e.gdprConsent);return n||t}(e))return!1;var n="c_uid",t=p.getDataFromLocalStorage(n);return t||(t=(0,s.generateUUID)(),p.setDataInLocalStorage(n,t)),t}function g(){return"true"===p.getDataFromLocalStorage("c_nap")}window.pbjs.installedModules.push("concertBidAdapter")},17673:function(e,n,t){t.d(n,{h:function(){return s}});var r=t(20265);function s(e){return null==e||!e.gdprApplies||!0===(0,r.Z)(e,"vendorData.purpose.consents.1")}}},function(e){var n;n=73109,e(e.s=n)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[1391],{9950:function(e,t,r){var n=r(44806),i=r(64358),o=r(14699),a=r(24679),c=r(3193),s=r(4192),u={code:"connectad",gvlid:138,aliases:["connectadrealtime"],supportedMediaTypes:[a.Mk],isBidRequestValid:function(e){return!(!e.params.networkId||!e.params.siteId)},buildRequests:function(e,t){var r,i,o,a={method:"POST",url:"",data:"",bidRequest:[]};if(e.length<1)return a;var u,d=Object.assign({placements:[],time:Date.now(),user:{},url:(null===(r=t.refererInfo)||void 0===r?void 0:r.page)||window.location.href,referrer:null===(i=t.refererInfo)||void 0===i?void 0:i.ref,referrer_info:null===(o=t.refererInfo)||void 0===o?void 0:o.legacy,screensize:[window.screen.width,window.screen.height].join("x"),dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,language:navigator.language,ua:navigator.userAgent,pversion:"7.
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[1391],{9950:function(e,t,r){var n=r(44806),i=r(64358),o=r(14699),a=r(24679),c=r(3193),s=r(4192),u={code:"connectad",gvlid:138,aliases:["connectadrealtime"],supportedMediaTypes:[a.Mk],isBidRequestValid:function(e){return!(!e.params.networkId||!e.params.siteId)},buildRequests:function(e,t){var r,i,o,a={method:"POST",url:"",data:"",bidRequest:[]};if(e.length<1)return a;var u,d=Object.assign({placements:[],time:Date.now(),user:{},url:(null===(r=t.refererInfo)||void 0===r?void 0:r.page)||window.location.href,referrer:null===(i=t.refererInfo)||void 0===i?void 0:i.ref,referrer_info:null===(o=t.refererInfo)||void 0===o?void 0:o.legacy,screensize:[window.screen.width,window.screen.height].join("x"),dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,language:navigator.language,ua:navigator.userAgent,pversion:"7.13.0"});(!0===c.vc.getConfig("coppa")&&(0,n.Z)(d,"user.coppa",1),e[0].schain&&(0,n.Z)(d,"source.ext.schain",e[0].schain),t.gdprConsent)&&("boolean"==typeof t.gdprConsent.gdprApplies&&(u=t.gdprConsent.gdprApplies?1:0),(0,n.Z)(d,"user.ext.gdpr",u),(0,n.Z)(d,"user.ext.consent",t.gdprConsent.consentString));return t.uspConsent&&(0,n.Z)(d,"user.ext.us_privacy",t.uspConsent),e[0].userId&&(0,n.Z)(d,"user.ext.eids",(0,s.HQ)(e[0].userId)),e.map((function(e){var t=Object.assign({id:e.transactionId,divName:e.bidId,pisze:e.mediaTypes.banner.sizes[0]||e.sizes[0],sizes:e.mediaTypes.banner.sizes,adTypes:f(e.mediaTypes.banner.sizes||e.sizes),bidfloor:p(e),siteId:e.params.siteId,networkId:e.params.networkId});t.networkId&&t.siteId&&d.placements.push(t)})),a.data=JSON.stringify(d),a.bidRequest=e,a.url="https://i.connectad.io/api/v2",a},interpretResponse:function(e,t,r){var n,i,o,a=[];i=t.bidRequest,e=(e||{}).body;for(var c=0;c<i.length;c++)if(n={},o=i[c].bidId,e){var s=e.decisions&&e.decisions[o],u=s&&s.pricing&&s.pricing.clearPrice;s&&u&&(n.requestId=o,n.cpm=u,n.width=s.width,n.height=s.height,n.dealid=s.dealid||null,n.meta={advertiserDomains:s&&s.adomain?s.adomain:[]},n.ad=l(s),n.currency="USD",n.creativeId=s.adId,n.ttl=360,n.netRevenue=!0,a.push(n))}return a},transformBidParams:function(e,t){return(0,i.convertTypes)({siteId:"number",networkId:"number"},e)},getUserSyncs:function(e,t,r,n){var o="https://cdn.connectad.io/connectmyusers.php?";if(r&&(o=(0,i.tryAppendQueryString)(o,"gdpr",r.gdprApplies?1:0)),r&&"string"==typeof r.consentString&&(o=(0,i.tryAppendQueryString)(o,"gdpr_consent",r.consentString)),n&&(o=(0,i.tryAppendQueryString)(o,"us_privacy",n)),!0===c.vc.getConfig("coppa")&&(o=(0,i.tryAppendQueryString)(o,"coppa",1)),e.iframeEnabled)return[{type:"iframe",url:o}];(0,i.logWarn)("Bidder ConnectAd: Please activate iFrame Sync")}},d=[null,"120x90","200x200","468x60","728x90","300x250","160x600","120x600","300x100","180x150","336x280","240x400","234x60","88x31","120x60","120x240","125x125","220x250","250x250","250x90","0x0","200x90","300x50","320x50","320x480","185x185","620x45","300x125","800x250","980x120","980x150","320x150","300x300","200x600","320x500","320x320"];function p(e){var t={};return"function"==typeof e.getFloor&&(t=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})),t.floor||e.params.bidfloor||e.params.floorprice||0}function f(e){var t=[];return e.forEach((function(e){var r=d.indexOf(e[0]+"x"+e[1]);r>=0&&t.push(r)})),t}function l(e){return e.contents&&e.contents[0]&&e.contents[0].body}d[77]="970x90",d[123]="970x250",d[43]="300x600",d[286]="970x66",d[3230]="970x280",d[429]="486x60",d[374]="700x500",d[934]="300x1050",d[1578]="320x100",d[331]="320x250",d[3301]="320x267",d[2730]="728x250",(0,o.dX)(u),window.pbjs.installedModules.push("connectadBidAdapter")},4192:function(e,t,r){r.d(t,{HQ:function(){return c},Pv:function(){return s},UR:function(){return o}});var n=r(64358),i=r(20265),o={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){var t="";return e.DeviceID&&(t=e.DeviceID.join(",")),t},getUidExt:function(e){return"DeviceID"}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,n.pick)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{atype:3,getSource:function(e){var t;return null!=e&&null!==(t=e.ext)&&void 0!==t&&t.ssp?"".concat(e.ext.ssp,".merkleinc.com"):"merkleinc.com"},getValue:function(e){return e.id},getUidExt:function(e){return e.keyID?{keyID:e.keyID}:e.ext?e.ext:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imppid:{source:"ppid.intimatemerger.com",atype:1},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},tncid:{source:"thenewco.it",atype:3},gravitompId:{source:"gravito.net",atype:1},cpexId:{source:"czechadid.cz",atype:1},oneKeyData:{getValue:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0])return e.identifiers[0].value},source:"paf",atype:1,getEidExt:function(e){if(e&&e.preferences)return{preferences:e.preferences}},getUidExt:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0]){var t=e.identifiers[0];return{version:t.version,type:t.type,source:t.source}}}}};function a(e,t){var r=o[t];if(r&&e){var i={};i.source=(0,n.isFn)(r.getSource)?r.getSource(e):r.source;var a=(0,n.isFn)(r.getValue)?r.getValue(e):e;if((0,n.isStr)(a)){var c={id:a,atype:r.atype};if((0,n.isFn)(r.getUidExt)){var s=r.getUidExt(e);s&&(c.ext=s)}if(i.uids=[c],(0,n.isFn)(r.getEidExt)){var u=r.getEidExt(e);u&&(i.ext=u)}return i}}return null}function c(e){var t=[],r=function(r){if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else if("ftrackId"===r){var n={atype:1,id:(e.ftrackId.DeviceID||[]).join("|"),ext:{}};for(var i in e.ftrackId)n.ext[i]=(e.ftrackId[i]||[]).join("|");t.push(n)}else if(Array.isArray(e[r]))e[r].forEach((function(e,n,i){var o=a(e,r);o&&t.push(o)}));else{var o=a(e[r],r);o&&t.push(o)}};for(var n in e)r(n);return t}function s(e){var t=[];return e.filter((function(e){return(0,n.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(o,r+".source")&&t.push({source:o[r].source,bidders:e.config.bidders})}))})),t}}},function(e){var t;t=9950,e(e.s=t)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[1266],{55630:function(n,e,t){var o,a,r,i,c,s,l=t(71002),d=t(4942),u=t(64358),f=t(3193),p=t(9528),g=t(34614),m=!1,v={iab:function(n){var e=n.onSuccess,t=n.onError;function o(n,o){(0,u.logInfo)("Received a response from CMP",n),o?!1===n.gdprApplies||"tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus?w(n,{onSuccess:e,onError:t}):s=n:t("CMP unable to register callback function. Please check CMP setup.")}var a={},r=function(){for(var n,e,t=window;;){try{if("function"==typeof t.__tcfapi){e=t.__tcfapi,n=t;break}}catch(n){}try{if(t.frames.__tcfapiLocator){n=t;break}}catch(n){}if(t===window.top)break;t=t.parent}return{cmpFrame:n,cmpFunction:e}}(),i=r.cmpFrame,c=r.cmpFunction;if(!i)return t("CMP not found.");"function"==typeof c?((0,u.logInfo)("Detected CMP API is directly accessible, calling it now..."),c("addEventListener",2,o)):((0,u.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(n,e,t){var o="__tcfapi",r="".concat(o,"Call");function i(n){var e="".concat(o,"Return"),t="string"==typeof n.data&&(0,g.q9)(n.data,e)?JSON.parse(n.data):n.data;if(t[e]&&t[e].callId){var r=t[e];
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[1266],{55630:function(n,e,t){var o,a,r,i,c,s,l=t(71002),d=t(4942),u=t(64358),f=t(3193),p=t(9528),g=t(34614),m=!1,v={iab:function(n){var e=n.onSuccess,t=n.onError;function o(n,o){(0,u.logInfo)("Received a response from CMP",n),o?!1===n.gdprApplies||"tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus?w(n,{onSuccess:e,onError:t}):s=n:t("CMP unable to register callback function. Please check CMP setup.")}var a={},r=function(){for(var n,e,t=window;;){try{if("function"==typeof t.__tcfapi){e=t.__tcfapi,n=t;break}}catch(n){}try{if(t.frames.__tcfapiLocator){n=t;break}}catch(n){}if(t===window.top)break;t=t.parent}return{cmpFrame:n,cmpFunction:e}}(),i=r.cmpFrame,c=r.cmpFunction;if(!i)return t("CMP not found.");"function"==typeof c?((0,u.logInfo)("Detected CMP API is directly accessible, calling it now..."),c("addEventListener",2,o)):((0,u.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(n,e,t){var o="__tcfapi",r="".concat(o,"Call");function i(n){var e="".concat(o,"Return"),t="string"==typeof n.data&&(0,g.q9)(n.data,e)?JSON.parse(n.data):n.data;if(t[e]&&t[e].callId){var r=t[e];a.hasOwnProperty(r.callId)&&a[r.callId](r.returnValue,r.success)}}window[o]=function(n,t,o,i){var c=Math.random()+"",s=(0,d.Z)({},r,{command:n,version:t,parameter:i,callId:c});a[c]=o,e.postMessage(s,"*")},window.addEventListener("message",i,!1),window[o](n,2,t)}("addEventListener",i,o))},static:function(n){var e=n.onSuccess,t=n.onError;w(i,{onSuccess:e,onError:t})}};function b(n){var e=!1,t=null;function r(o,a,r){if(null!=t&&clearTimeout(t),e=!0,p.rp.setConsentData(o),"function"==typeof n){for(var i=arguments.length,c=new Array(i>3?i-3:0),s=3;s<i;s++)c[s-3]=arguments[s];n.apply(void 0,[a,r].concat(c))}}if((0,g.q9)(Object.keys(v),o)){var i={onSuccess:function(n){return r(n,!1)},onError:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];r.apply(void 0,[null,!0,n].concat(t))}};if(v[o](i),!e){var c=function(){var n=function(n){r(n,!1,"CMP did not load, continuing auction...")};w(s,{onSuccess:n,onError:function(){return n(M(void 0))}})};0===a?c():t=setTimeout(c,a)}}else r(null,!1,"CMP framework (".concat(o,") is not a supported framework. Aborting consentManagement module and resuming auction."))}function y(n,e){var t;t=function(t,o){if(o){var a=u.logWarn;t&&(a=u.logError,o="".concat(o," Canceling auction as per consentManagement config."));for(var r=arguments.length,i=new Array(r>2?r-2:0),c=2;c<r;c++)i[c-2]=arguments[c];a.apply(void 0,[o].concat(i))}t?"function"==typeof e.bidsBackHandler?e.bidsBackHandler():(0,u.logError)("Error executing bidsBackHandler"):n.call(this,e)},c?((0,u.logInfo)("User consent information already known. Pulling internally stored information..."),t(!1)):b(t)}function w(n,e){var t,a,i=e.onSuccess,c=e.onError;"static"===o&&(n=n.getTCData),t=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:r,a=n&&n.tcString,"boolean"==typeof t&&(!0!==t||a&&(0,u.isStr)(a))?i(M(n)):c("CMP returned unexpected value during lookup process.",n)}function M(n){return c={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:r},n&&n.addtlConsent&&(0,u.isStr)(n.addtlConsent)&&(c.addtlConsent=n.addtlConsent),c.apiVersion=2,c}f.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&(n.gdpr||n.usp?n.gdpr:n))&&"object"===(0,l.Z)(n)?((0,u.isStr)(n.cmpApi)?o=n.cmpApi:(o="iab",(0,u.logInfo)("consentManagement config did not specify cmp. Using system default setting (".concat("iab",")."))),(0,u.isNumber)(n.timeout)?a=n.timeout:(a=1e4,(0,u.logInfo)("consentManagement config did not specify timeout. Using system default setting (".concat(1e4,")."))),r=!0===n.defaultGdprScope,(0,u.logInfo)("consentManagement module has been activated..."),"static"===o&&((0,u.isPlainObject)(n.consentData)?(i=n.consentData,a=0):(0,u.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),m||pbjs.requestBids.before(y,50),m=!0,p.rp.enable(),b()):(0,u.logWarn)("consentManagement config not defined, exiting consent manager")}(n.consentManagement)})),window.pbjs.installedModules.push("consentManagement")}},function(n){var e;e=55630,n(n.s=e)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[5160],{9099:function(n,t,e){var a,o,i=e(71002),c=e(64358),s=e(3193),r=e(9528),u=e(78640),l="iab",p=l,f=50,d=!1,g={iab:function(n){var t=n.onSuccess,e=n.onError;var a=(u={},{consentDataCallback:function(n,a){a&&n.uspString&&(u.usPrivacy=n.uspString),u.usPrivacy?P(u,{onSuccess:t,onError:e}):e("Unable to get USP consent string.")}}),o={},i=function(){for(var n,t,e=window;;){try{if("function"==typeof e.__uspapi){t=e.__uspapi,n=e;break}}catch(n){}try{if(e.frames.__uspapiLocator){n=e;break}}catch(n){}if(e===window.top)break;e=e.parent}return{uspapiFrame:n,uspapiFunction:t}}(),s=i.uspapiFrame,r=i.uspapiFunction;var u;if(!s)return e("USP CMP not found.");(0,c.isFn)(r)?((0,c.logInfo)("Detected USP CMP is directly accessible, calling it now..."),r("getUSPData",1,a.consentDataCallback)):((0,c.logInfo)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(n,t,e){function a(n){var t=n&&n.data&&n.data.__uspapiReturn;t&&t.callId&&
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[5160],{9099:function(n,t,e){var a,o,i=e(71002),c=e(64358),s=e(3193),r=e(9528),u=e(78640),l="iab",p=l,f=50,d=!1,g={iab:function(n){var t=n.onSuccess,e=n.onError;var a=(u={},{consentDataCallback:function(n,a){a&&n.uspString&&(u.usPrivacy=n.uspString),u.usPrivacy?P(u,{onSuccess:t,onError:e}):e("Unable to get USP consent string.")}}),o={},i=function(){for(var n,t,e=window;;){try{if("function"==typeof e.__uspapi){t=e.__uspapi,n=e;break}}catch(n){}try{if(e.frames.__uspapiLocator){n=e;break}}catch(n){}if(e===window.top)break;e=e.parent}return{uspapiFrame:n,uspapiFunction:t}}(),s=i.uspapiFrame,r=i.uspapiFunction;var u;if(!s)return e("USP CMP not found.");(0,c.isFn)(r)?((0,c.logInfo)("Detected USP CMP is directly accessible, calling it now..."),r("getUSPData",1,a.consentDataCallback)):((0,c.logInfo)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(n,t,e){function a(n){var t=n&&n.data&&n.data.__uspapiReturn;t&&t.callId&&o.hasOwnProperty(t.callId)&&(o[t.callId](t.returnValue,t.success),delete o[t.callId])}window.__uspapi=function(n,e,a){var i=Math.random()+"",c={__uspapiCall:{command:n,version:e,callId:i}};o[i]=a,t.postMessage(c,"*")},window.addEventListener("message",a,!1),window.__uspapi(n,1,e)}("getUSPData",s,a.consentDataCallback))},static:function(n){var t=n.onSuccess,e=n.onError;P(a,{onSuccess:t,onError:e})}};function m(n){var t=null,e=!1;function a(a,o){if(null!=t&&clearTimeout(t),e=!0,r.nX.setConsentData(a),null!=n){for(var i=arguments.length,c=new Array(i>2?i-2:0),s=2;s<i;s++)c[s-2]=arguments[s];n.apply(void 0,[o].concat(c))}}if(g[p]){var o={onSuccess:a,onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];a.apply(void 0,[null,"".concat(n," Resuming auction without consent data as per consentManagement config.")].concat(e))}};g[p](o),e||(0===f?P(void 0,o):t=setTimeout(o.onError.bind(null,"USPAPI workflow exceeded timeout threshold."),f))}else a(null,"USP framework (".concat(p,") is not a supported framework. Aborting consentManagement module and resuming auction."))}function v(n,t){var e=this;m((function(a){if(null!=a){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];c.logWarn.apply(void 0,[a].concat(i))}n.call(e,t)}))}function P(n,t){var e=t.onSuccess,a=t.onError;!n||!n.usPrivacy?a("USPAPI returned unexpected value during lookup process.",n):(!function(n){n&&n.usPrivacy&&(o=n.usPrivacy)}(n),e(o))}function w(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d||((0,c.logInfo)("USPAPI consentManagement module has been activated".concat(n?"":" using default values (api: '".concat(p,"', timeout: ").concat(f,"ms)"))),(0,u.R)().requestBids.before(v,50)),d=!0,r.nX.enable(),m()}s.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.usp)&&"object"===(0,i.Z)(n)||(0,c.logWarn)("consentManagement.usp config not defined, using defaults"),n&&(0,c.isStr)(n.cmpApi)?p=n.cmpApi:(p=l,(0,c.logInfo)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat(l,")."))),n&&(0,c.isNumber)(n.timeout)?f=n.timeout:(f=50,(0,c.logInfo)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),"static"===p&&((0,c.isPlainObject)(n.consentData)&&(0,c.isPlainObject)(n.consentData.getUSPData)?(n.consentData.getUSPData.uspString&&(a={usPrivacy:n.consentData.getUSPData.uspString}),f=0):(0,c.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),w(!0)}(n.consentManagement)})),setTimeout((function(){return!d&&w()})),window.pbjs.installedModules.push("consentManagementUsp")}},function(n){var t;t=9099,n(n.s=t)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[7439],{86240:function(e,
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[7439],{86240:function(e,r,a){var n=a(64358),s=a(20265),i=a(44806),t=a(3193),d=a(14699),o=a(24679),p=0,u="consumable",c={code:"consumable",supportedMediaTypes:[o.Mk,o.pX],isBidRequestValid:function(e){return!!(e.params.networkId&&e.params.siteId&&e.params.unitId&&e.params.unitName)},buildRequests:function(e,r){var a={method:"POST",url:"",data:"",bidRequest:[]};if(e.length<1)return a;p=e[0].params.siteId,u=e[0].bidder;var d=Object.assign({placements:[],time:Date.now(),url:r.refererInfo.page,referrer:r.refererInfo.ref,source:[{name:"prebidjs",version:"7.13.0"}]},e[0].params);return r&&r.gdprConsent&&(d.gdpr={consent:r.gdprConsent.consentString,applies:"boolean"!=typeof r.gdprConsent.gdprApplies||r.gdprConsent.gdprApplies}),r&&r.uspConsent&&(d.ccpa=r.uspConsent),r&&r.schain&&(d.schain=r.schain),t.vc.getConfig("coppa")&&(d.coppa=!0),e.map((function(e){var r=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes||e.sizes||[],a=Object.assign({divName:e.bidId,adTypes:e.adTypes||m(r)},e.params);a.bidfloor=function(e,r){if(!(0,n.isFn)(e.getFloor))return e.params.bidFloor?e.params.bidFloor:null;var a,s=e.getFloor({currency:"USD",mediaType:e.mediaTypes.video?"video":"banner",size:1===r.length?r[0]:"*"});(0,n.isPlainObject)(s)&&"USD"===s.currency&&!isNaN(parseFloat(s.floor))&&(a=parseFloat(s.floor));return a}(e,r),e.mediaTypes.video&&e.mediaTypes.video.playerSize&&(a.video=e.mediaTypes.video),a.networkId&&a.siteId&&a.unitId&&a.unitName&&d.placements.push(a)})),function(e,r){var a=(0,s.Z)(r,"0.userIdAsEids");(0,n.isArray)(a)&&a.length>0?(0,i.Z)(e,"user.eids",a):(0,i.Z)(e,"user.eids",void 0)}(d,e),a.data=JSON.stringify(d),a.bidRequest=e,a.bidderRequest=r,a.url="https://e.serverbid.com/api/v2",a},interpretResponse:function(e,r){var a,n,s,i,t=[];n=r.bidRequest,e=(e||{}).body;for(var d=0;d<n.length;d++)if(a={},s=(i=n[d]).bidId,e){var o=e.decisions&&e.decisions[s],p=o&&o.pricing&&o.pricing.clearPrice;o&&p&&(a.requestId=s,a.cpm=p,a.width=o.width,a.height=o.height,a.unitId=i.params.unitId,a.unitName=i.params.unitName,a.ad=x(o,a.unitId,a.unitName),a.currency="USD",a.creativeId=o.adId,a.ttl=30,a.netRevenue=!0,a.referrer=r.bidderRequest.refererInfo.page,a.meta={advertiserDomains:o.adomain||[]},o.cats&&o.cats.length>0&&(a.meta.primaryCatId=o.cats[0],o.cats.length>1&&(a.meta.secondaryCatIds=o.cats.slice(1))),o.networkId&&(a.meta.networkId=o.networkId),o.mediaType&&(a.meta.mediaType=o.mediaType,"video"===o.mediaType&&(a.mediaType="video",a.vastUrl=o.vastUrl||void 0,a.vastXml=o.vastXml||void 0,a.videoCacheKey=o.uuid||void 0)),t.push(a))}return t},getUserSyncs:function(e,r){return!e.iframeEnabled||r&&0!==r.length&&r[0].body.bdr&&"cx"===r[0].body.bdr?e.pixelEnabled&&r&&r.length>0?r[0].body.pixels:void(0,n.logWarn)(u+": Please enable iframe based user syncing."):[{type:"iframe",url:"https://sync.serverbid.com/ss/"+p+".html"}]}},l=[null,"120x90","120x90","468x60","728x90","300x250","160x600","120x600","300x100","180x150","336x280","240x400","234x60","88x31","120x60","120x240","125x125","220x250","250x250","250x90","0x0","200x90","300x50","320x50","320x480","185x185","620x45","300x125","800x250"];function m(e){var r=[];return e.forEach((function(e){var a=l.indexOf(e[0]+"x"+e[1]);a>=0&&r.push(a)})),r}function x(e,r,a){var n;return e.contents&&e.contents[0]&&(n=e.contents[0].body),e.vastXml&&(n=e.vastXml),n}l[77]="970x90",l[123]="970x250",l[43]="300x600",l[286]="970x66",l[3230]="970x280",l[429]="486x60",l[374]="700x500",l[934]="300x1050",l[1578]="320x100",l[331]="320x250",l[3301]="320x267",l[2730]="728x250",(0,d.dX)(c),window.pbjs.installedModules.push("consumableBidAdapter")}},function(e){var r;r=86240,e(e.s=r)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[3434],{6564:function(e,r,a){var i=a(89062),t=a(64358),n=a(20265),s=a(44806),o=a(14699),d=a(24679),p=a(15164),c="conversant",u=(0,p.df)({gvlid:24,bidderCode:c}),m={code:c,gvlid:24,aliases:["cnvr"],supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){if(!e||!e.params)return(0,t.logWarn)("conversant: Missing bid parameters"),!1;if(!(0,t.isStr)(e.params.site_id))return(0,t.logWarn)("conversant: site_id must be specified as a string"),!1;if(g(e)){var r=e.params.mimes||(0,n.Z)(e,"mediaTypes.video.mimes");if(r){if(!(0,t.isArray)(r)||!r.every((function(e){return(0,t.isStr)(e)})))return(0,t.logWarn)("conversant: mimes must be an array of strings"),!1}else(0,t.logWarn)("conversant: mimes should be specified for videos")}return!0},buildRequests:function(e,r){var a,i=r&&r.refererInfo?r.refererInfo.page:"",o="",d="",p=null,c="_pubcid",m="https://web.hb.ad.cpe.dotomi.com/cvx/client/hb/ortb/25",f=e.map((function(e){var r=function(e){var r=(0,t.getBidIdParameter)("bidfloor",e.params);if(!r&&(0,t.isFn)(e.getFloor)){var a=e.getFloor({currency:"USD",mediaType:"*",size:"*"});(0,t.isPlainObject)(a)&&!isNaN(a.floor)&&"USD"===a.currency&&(r=a.floor)}return r}(e);o=(0,t.getBidIdParameter)("site_id",e.params)||o,c=(0,t.getBidIdParameter)("pubcid_name",e.params)||c,d=e.auctionId;var a={id:e.bidId,secure:1,bidfloor:r||0,displaymanager:"Prebid.js",displaymanagerver:"7.
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[3434],{6564:function(e,r,a){var i=a(89062),t=a(64358),n=a(20265),s=a(44806),o=a(14699),d=a(24679),p=a(15164),c="conversant",u=(0,p.df)({gvlid:24,bidderCode:c}),m={code:c,gvlid:24,aliases:["cnvr"],supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){if(!e||!e.params)return(0,t.logWarn)("conversant: Missing bid parameters"),!1;if(!(0,t.isStr)(e.params.site_id))return(0,t.logWarn)("conversant: site_id must be specified as a string"),!1;if(g(e)){var r=e.params.mimes||(0,n.Z)(e,"mediaTypes.video.mimes");if(r){if(!(0,t.isArray)(r)||!r.every((function(e){return(0,t.isStr)(e)})))return(0,t.logWarn)("conversant: mimes must be an array of strings"),!1}else(0,t.logWarn)("conversant: mimes should be specified for videos")}return!0},buildRequests:function(e,r){var a,i=r&&r.refererInfo?r.refererInfo.page:"",o="",d="",p=null,c="_pubcid",m="https://web.hb.ad.cpe.dotomi.com/cvx/client/hb/ortb/25",f=e.map((function(e){var r=function(e){var r=(0,t.getBidIdParameter)("bidfloor",e.params);if(!r&&(0,t.isFn)(e.getFloor)){var a=e.getFloor({currency:"USD",mediaType:"*",size:"*"});(0,t.isPlainObject)(a)&&!isNaN(a.floor)&&"USD"===a.currency&&(r=a.floor)}return r}(e);o=(0,t.getBidIdParameter)("site_id",e.params)||o,c=(0,t.getBidIdParameter)("pubcid_name",e.params)||c,d=e.auctionId;var a={id:e.bidId,secure:1,bidfloor:r||0,displaymanager:"Prebid.js",displaymanagerver:"7.13.0"};if(e.ortb2Imp&&(0,t.mergeDeep)(a,e.ortb2Imp),v(e.params.tag_id,a,"tagid"),g(e)){var i=(0,n.Z)(e,"mediaTypes.video")||{},s=l(i.playerSize||e.sizes),u={};s&&s[0]&&(v(s[0].w,u,"w"),v(s[0].h,u,"h")),v(e.params.position||i.pos,u,"pos"),v(e.params.mimes||i.mimes,u,"mimes"),v(e.params.maxduration||i.maxduration,u,"maxduration"),v(e.params.protocols||i.protocols,u,"protocols"),v(e.params.api||i.api,u,"api"),a.video=u}else{var f=(0,n.Z)(e,"mediaTypes.banner")||{},b={format:l(f.sizes||e.sizes)};v(e.params.position||f.pos,b,"pos"),a.banner=b}return e.userId&&e.userId.pubcid?p=e.userId.pubcid:e.crumbs&&e.crumbs.pubcid&&(p=e.crumbs.pubcid),e.params.white_label_url&&(m=e.params.white_label_url),a})),b={id:d,imp:f,site:{id:o,mobile:null!==document.querySelector('meta[name="viewport"][content*="width=device-width"]')?1:0,page:i},device:(a=navigator.language?"language":"userLanguage",{h:screen.height,w:screen.width,dnt:"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNoTrack||"yes"===navigator.doNotTrack?1:0,language:navigator[a].split("-")[0],make:navigator.vendor?navigator.vendor:"",ua:navigator.userAgent}),at:1},h={},y=(0,n.Z)(e,"0.schain");y&&(0,s.Z)(b,"source.ext.schain",y),r&&(r.gdprConsent&&(h.consent=r.gdprConsent.consentString,"boolean"==typeof r.gdprConsent.gdprApplies&&(0,s.Z)(b,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r.uspConsent&&(0,s.Z)(b,"regs.ext.us_privacy",r.uspConsent)),p||(p=function(e){var r;try{if(!(r=u.getCookie(e))){var a=u.getDataFromLocalStorage("".concat(e,"_exp"));(""===a||a&&new Date(a).getTime()-Date.now()>0)&&(r=(r=u.getDataFromLocalStorage(e))?decodeURIComponent(r):r)}(0,t.isStr)(r)&&"{"===r.charAt(0)&&(r=JSON.parse(r))}catch(e){(0,t.logError)(e)}return r}(c)),p&&(h.fpc=p);var w=function(e){var r=e[0],a=[];if((0,t.isArray)(r.userIdAsEids)&&r.userIdAsEids.length>0){var i={"epsilon.com":1,"adserver.org":1,"liveramp.com":1,"criteo.com":1,"id5-sync.com":1,"parrable.com":1,"liveintent.com":1};r.userIdAsEids.forEach((function(e){i.hasOwnProperty(e.source)&&a.push(e)}))}return a}(e);w.length>0&&(h.eids=w),(0,t.isEmpty)(h)||(b.user={ext:h});var I=r.ortb2||{};return(0,t.mergeDeep)(b,I),{method:"POST",url:m,data:b}},interpretResponse:function(e,r){var a=[],i={};return e=e.body,r&&r.data&&r.data.imp&&(0,t._each)(r.data.imp,(function(e){return i[e.id]=e})),e&&(0,t.isArray)(e.seatbid)&&(0,t._each)(e.seatbid,(function(r){(0,t._each)(r.bid,(function(r){var t=parseFloat(r.price);if(t>0&&r.impid){var n=r.adm||"",s=r.nurl||"",o=i[r.impid],d={requestId:r.impid,currency:e.cur||"USD",cpm:t,creativeId:r.crid||"",ttl:300,netRevenue:!0,meta:{}};r.adomain&&r.adomain.length>0&&(d.meta.advertiserDomains=r.adomain),o.video?("<"===n.charAt(0)?d.vastXml=n:d.vastUrl=n,d.mediaType="video",d.width=o.video.w,d.height=o.video.h):(d.ad=n+'<img src="'+s+'" />',d.width=r.w,d.height=r.h),a.push(d)}}))})),a},transformBidParams:function(e,r){return(0,t.convertTypes)({site_id:"string",secure:"number",mobile:"number"},e)},getUserSyncs:function(e,r,a,n){var s={},o=[];if(a&&(s.gdpr=a.gdprApplies?1:0,s.gdpr_consent=encodeURIComponent(a.consentString||"")),n&&(s.us_privacy=encodeURIComponent(n)),r&&r.ext){var d=[{urls:r.ext.fsyncs,type:"iframe"},{urls:r.ext.psyncs,type:"image"}].filter((function(r){return r.urls&&("iframe"===r.type&&e.iframeEnabled||"image"===r.type&&e.pixelEnabled)})).map((function(e){return e.urls.map((function(r){var a=(0,t.parseUrl)(r);return(0,t.mergeDeep)(a.search,s),0===Object.keys(a.search).length&&delete a.search,{type:e.type,url:(0,t.buildUrl)(a)}})).reduce((function(e,r){return e.concat(r)}),[])})).reduce((function(e,r){return e.concat(r)}),[]);o.push.apply(o,(0,i.Z)(d))}return o}};function l(e){var r;return Array.isArray(e)&&(r=2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[{w:e[0],h:e[1]}]:(0,t._map)(e,(function(e){return{w:e[0],h:e[1]}}))),r}function g(e){return"video"===e.mediaType||!!(0,n.Z)(e,"mediaTypes.video")}function v(e,r,a){e&&(r[a]=e)}(0,o.dX)(m),window.pbjs.installedModules.push("conversantBidAdapter")}},function(e){var r;r=6564,e(e.s=r)}]);
|
package/dist/craftBidAdapter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[3347],{12861:function(e,r,t){var n=t(89062),a=t(64358),s=t(14699),o=t(24679),d=t(78653),i=t(34614),u=t(15164),c=t(48928),p=t(17673),f=t(70059),l="craft",y="https://gacraft.jp/prebid-v3",h=(0,u.df)({bidderCode:l}),v={code:l,aliases:["craft"],supportedMediaTypes:[o.Mk],isBidRequestValid:function(e){return!!e.params.sitekey&&!!e.params.placementId&&!function(){try{var e=window.context||window.parent.context;return!(!e||!e.pageViewId)&&e}catch(e){return!1}}()},buildRequests:function(e,r){var t=(e=(0,f.lY)(e)).map(_),a=e[0].schain,s={tags:(0,n.Z)(t),ua:navigator.userAgent,sdk:{version:"7.
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[3347],{12861:function(e,r,t){var n=t(89062),a=t(64358),s=t(14699),o=t(24679),d=t(78653),i=t(34614),u=t(15164),c=t(48928),p=t(17673),f=t(70059),l="craft",y="https://gacraft.jp/prebid-v3",h=(0,u.df)({bidderCode:l}),v={code:l,aliases:["craft"],supportedMediaTypes:[o.Mk],isBidRequestValid:function(e){return!!e.params.sitekey&&!!e.params.placementId&&!function(){try{var e=window.context||window.parent.context;return!(!e||!e.pageViewId)&&e}catch(e){return!1}}()},buildRequests:function(e,r){var t=(e=(0,f.lY)(e)).map(_),a=e[0].schain,s={tags:(0,n.Z)(t),ua:navigator.userAgent,sdk:{version:"7.13.0"},schain:a};if(r&&r.gdprConsent&&(s.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies}),r&&r.uspConsent&&(s.us_privacy=r.uspConsent),r&&r.refererInfo){var o={rd_ref:r.refererInfo.topmostLocation,rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes};r.refererInfo.stack&&(o.rd_stk=r.refererInfo.stack.join(",")),s.referrer_detection=o}var d=function(e,r){var t={};(0,p.h)(null==r?void 0:r.gdprConsent)||(t={withCredentials:!1});var n=JSON.stringify(e);return{method:"POST",url:"".concat(y,"/").concat(e.tags[0].sitekey),data:n,bidderRequest:r,options:t}}(s,r);return d},interpretResponse:function(e,r){var t=this,n=r.bidderRequest;try{e=e.body;var s=[];if(!e)return[];if(e.error){var d="in response for ".concat(n.bidderCode," adapter");return e.error&&(d+=": ".concat(e.error)),(0,a.logError)(d),s}return e.tags&&e.tags.forEach((function(e){var r,d=(r=e)&&r.ads&&r.ads.length&&(0,i.sE)(r.ads,(function(e){return e.rtb}));if(d&&0!==d.cpm&&(0,i.q9)(t.supportedMediaTypes,d.ad_type)){var u=function(e,r,t){var n=(0,a.getBidRequest)(e.uuid,[t]);return{requestId:e.uuid,cpm:r.cpm,currency:"JPY",width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content,ttl:360,creativeId:r.creative_id,netRevenue:!1,dealId:r.deal_id,meta:null,_adUnitCode:n.adUnitCode,_bidKey:e.bid_key,_prebidWon:e.won_url}}(e,d,n);u.mediaType=function(e){var r=e.ad_type;return r===o.pX?o.pX:r===o.B5?o.B5:o.Mk}(d),s.push(u)}})),s}catch(e){return[]}},transformBidParams:function(e,r){return e=(0,a.convertTypes)({sitekey:"string",placementId:"string",keywords:a.transformBidderParamKeywords},e),r&&(g(e.keywords)&&e.keywords.forEach(m),Object.keys(e).forEach((function(r){var t=(0,a.convertCamelToUnderscore)(r);t!==r&&(e[t]=e[r],delete e[r])}))),e},onBidWon:function(e){(0,c.h)(e._prebidWon,null,null,{method:"POST",contentType:"application/json"})}};function g(e){return!!((0,a.isArray)(e)&&e.length>0)}function m(e){g(e.value)&&""===e.value[0]&&delete e.value}function _(e){var r={};for(var t in e.params)r[t]=e.params[t];try{h.hasLocalStorage()&&(r.uid=JSON.parse(h.getDataFromLocalStorage("".concat(e.params.sitekey,"_uid"))))}catch(e){}if(r.sizes=e.sizes,r.primary_size=r.sizes[0],r.ad_types=[],r.uuid=e.bidId,!(0,a.isEmpty)(e.params.keywords)){var n=(0,a.transformBidderParamKeywords)(e.params.keywords);n.length>0&&n.forEach(m),r.keywords=n}var s=(0,i.sE)(d.K.getAdUnits(),(function(r){return e.transactionId===r.transactionId}));return s&&s.mediaTypes&&s.mediaTypes.banner&&r.ad_types.push(o.Mk),0===r.ad_types.length&&delete r.ad_types,r}(0,s.dX)(v),window.pbjs.installedModules.push("craftBidAdapter")},17673:function(e,r,t){t.d(r,{h:function(){return a}});var n=t(20265);function a(e){return null==e||!e.gdprApplies||!0===(0,n.Z)(e,"vendorData.purpose.consents.1")}}},function(e){var r;r=12861,e(e.s=r)}]);
|
package/dist/criteoBidAdapter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[6406],{60241:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _src_utils_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(64358),_src_utils_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(20265),_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(55730),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(14699),_src_config_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3193),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(24679),_src_polyfill_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34614),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1582),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15164),_src_native_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(70059),_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25102),_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17673),GVLID=91,ADAPTER_VERSION=34,BIDDER_CODE="criteo",CDB_ENDPOINT="https://bidder.criteo.com/cdb",PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,storage=(0,_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__.df)({gvlid:GVLID,bidderCode:BIDDER_CODE}),LOG_PREFIX="Criteo: ",FAST_BID_VERSION_PLACEHOLDER="%FAST_BID_VERSION%",FAST_BID_VERSION_CURRENT=123,FAST_BID_VERSION_LATEST="latest",FAST_BID_VERSION_NONE="none",PUBLISHER_TAG_URL_TEMPLATE="https://static.criteo.net/js/ld/publishertag.prebid"+FAST_BID_VERSION_PLACEHOLDER+".js",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",SID_COOKIE_NAME="cto_sid",IDCPY_COOKIE_NAME="cto_idcpy",LWID_COOKIE_NAME="cto_lwid",OPTOUT_COOKIE_NAME="cto_optout",BUNDLE_COOKIE_NAME="cto_bundle",GUID_RETENTION_TIME_HOUR=9360,OPTOUT_RETENTION_TIME_HOUR=43200,spec={code:BIDDER_CODE,gvlid:GVLID,supportedMediaTypes:[_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.Mk,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5],getUserSyncs:function(t,e,r,i){if(canFastBid(_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.fastBidVersion")))return[];var o=(0,_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_4__.nH)(),a="criteoPrebidAdapter";if(t.iframeEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_5__.h)(r)){var s=[];s.push("origin=".concat(a)),s.push("topUrl=".concat(o.domain)),r&&(r.gdprApplies&&s.push("gdpr=".concat(1==r.gdprApplies?1:0)),r.consentString&&s.push("gdpr_consent=".concat(r.consentString))),i&&s.push("us_privacy=".concat(i));var n=Math.random().toString(),_={bundle:readFromAllStorages(BUNDLE_COOKIE_NAME),cw:storage.cookiesAreEnabled(),localWebId:readFromAllStorages(LWID_COOKIE_NAME),lsw:storage.localStorageIsEnabled(),optoutCookie:readFromAllStorages(OPTOUT_COOKIE_NAME),origin:a,requestId:n,secureIdCookie:readFromAllStorages(SID_COOKIE_NAME),tld:o.domain,topUrl:o.domain,uid:readFromAllStorages(IDCPY_COOKIE_NAME),version:"7.12.0".replace(/\./g,"_")};window.addEventListener("message",(function t(e){if(e.data&&"https://gum.criteo.com"==e.origin&&e.data.requestId===n){this.removeEventListener("message",t),e.stopImmediatePropagation();var r=e.data;r.optout?(deleteFromAllStorages(IDCPY_COOKIE_NAME),deleteFromAllStorages(SID_COOKIE_NAME),deleteFromAllStorages(BUNDLE_COOKIE_NAME),deleteFromAllStorages(LWID_COOKIE_NAME),saveOnAllStorages(OPTOUT_COOKIE_NAME,!0,OPTOUT_RETENTION_TIME_HOUR)):(r.uid&&saveOnAllStorages(IDCPY_COOKIE_NAME,r.uid,GUID_RETENTION_TIME_HOUR),r.bundle&&saveOnAllStorages(BUNDLE_COOKIE_NAME,r.bundle,GUID_RETENTION_TIME_HOUR),r.removeSid?deleteFromAllStorages(SID_COOKIE_NAME):r.sid&&saveOnAllStorages(SID_COOKIE_NAME,r.sid,GUID_RETENTION_TIME_HOUR))}}),!0);var d=JSON.stringify(_).replace(/"/g,"%22");return[{type:"iframe",url:"https://gum.criteo.com/syncframe?".concat(s.join("&"),"#").concat(d)}]}return[]},isBidRequestValid:function(t){return!(!t||!t.params||!t.params.zoneId&&!t.params.networkId)&&!(hasVideoMediaType(t)&&!hasValidVideoMediaType(t))},buildRequests:function(t,e){var r,i,o,a;t=(0,_src_native_js__WEBPACK_IMPORTED_MODULE_6__.lY)(t);var s=e.ortb2||{};Object.assign(e,{publisherExt:null===(r=s.site)||void 0===r?void 0:r.ext,userExt:null===(i=s.user)||void 0===i?void 0:i.ext,ceh:_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.ceh"),coppa:_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("coppa")});var n=_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.fastBidVersion"),_=canFastBid(n);if(!publisherTagAvailable()&&_){window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid();var d=getFastBidUrl(n);setTimeout((function(){(0,_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__.B)(d,BIDDER_CODE)}),e.timeout)}if(publisherTagAvailable()){var c=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,t,e,"7.12.0");o=c.buildCdbUrl(),a=c.buildCdbRequest()}else{var p=buildContext(t,e);o=buildCdbUrl(p),a=buildCdbRequest(p,t,e)}if(a)return{method:"POST",url:o,data:a,bidRequests:t}},interpretResponse:function(t,e){var r=t.body||t;if(publisherTagAvailable()){var i=Criteo.PubTag.Adapters.Prebid.GetAdapter(e);if(i)return i.interpretResponse(r,e)}var o=[];return r&&r.slots&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.isArray)(r.slots)&&r.slots.forEach((function(i){var a,s,n,_,d=(0,_src_polyfill_js__WEBPACK_IMPORTED_MODULE_9__.sE)(e.bidRequests,(function(t){return t.adUnitCode===i.impid&&(!t.params.zoneId||parseInt(t.params.zoneId)===i.zoneid)})),c=d.bidId,p={requestId:c,cpm:i.cpm,currency:i.currency,netRevenue:!0,ttl:i.ttl||60,creativeId:i.creativecode,width:i.width,height:i.height,dealId:i.dealCode};if(null!==(a=r.ext)&&void 0!==a&&null!==(s=a.paf)&&void 0!==s&&s.transmission&&null!==(n=i.ext)&&void 0!==n&&null!==(_=n.paf)&&void 0!==_&&_.content_id){var u={content_id:i.ext.paf.content_id,transmission:t.ext.paf.transmission};p.meta=Object.assign({},p.meta,{paf:u})}i.adomain&&(p.meta=Object.assign({},p.meta,{advertiserDomains:i.adomain})),i.native?d.params.nativeCallback?p.ad=createNativeAd(c,i.native,d.params.nativeCallback):(p.native=createPrebidNativeAd(i.native),p.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5):i.video?(p.vastUrl=i.displayurl,p.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX):p.ad=i.creative,o.push(p)})),o},onTimeout:function(t){if(publisherTagAvailable()&&Array.isArray(t)){var e=[];t.forEach((function(t){-1===e.indexOf(t.auctionId)&&(e.push(t.auctionId),Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidTimeout())}))}},onBidWon:function(t){publisherTagAvailable()&&t&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidWon(t)},onSetTargeting:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleSetTargeting(t)}};function readFromAllStorages(t){var e=storage.getCookie(t),r=storage.getDataFromLocalStorage(t);return e||r||void 0}function saveOnAllStorages(t,e,r){var i=new Date;i.setTime(i.getTime()+60*r*60*1e3);var o="expires=".concat(i.toUTCString());storage.setCookie(t,e,o),storage.setDataInLocalStorage(t,e)}function deleteFromAllStorages(t){storage.setCookie(t,"",0),storage.removeDataFromLocalStorage(t)}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(t,e){var r,i="";e&&e.refererInfo&&(i=e.refererInfo.page);var o=(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.parseUrl)(null==e||null===(r=e.refererInfo)||void 0===r?void 0:r.topmostLocation).search,a={url:i,debug:"1"===o.pbt_debug,noLog:"1"===o.pbt_nolog,amp:!1};return t.forEach((function(t){"amp"===t.params.integrationMode&&(a.amp=!0)})),a}function buildCdbUrl(t){var e=CDB_ENDPOINT;e+="?profileId="+PROFILE_ID_INLINE,e+="&av="+String(ADAPTER_VERSION),e+="&wv="+encodeURIComponent("7.12.0"),e+="&cb="+String(Math.floor(99999999999*Math.random())),storage.localStorageIsEnabled()?e+="&lsavail=1":e+="&lsavail=0",t.amp&&(e+="&im=1"),t.debug&&(e+="&debug=1"),t.noLog&&(e+="&nolog=1");var r=readFromAllStorages(BUNDLE_COOKIE_NAME);r&&(e+="&bundle=".concat(r)),readFromAllStorages(OPTOUT_COOKIE_NAME)&&(e+="&optout=1");var i=readFromAllStorages(SID_COOKIE_NAME);i&&(e+="&sid=".concat(i));var o=readFromAllStorages(IDCPY_COOKIE_NAME);return o&&(e+="&idcpy=".concat(o)),e}function checkNativeSendId(t){return!(t.nativeParams&&(t.nativeParams.image&&(!0!==t.nativeParams.image.sendId||!0===t.nativeParams.image.sendTargetingKeys)||t.nativeParams.icon&&(!0!==t.nativeParams.icon.sendId||!0===t.nativeParams.icon.sendTargetingKeys)||t.nativeParams.clickUrl&&(!0!==t.nativeParams.clickUrl.sendId||!0===t.nativeParams.clickUrl.sendTargetingKeys)||t.nativeParams.displayUrl&&(!0!==t.nativeParams.displayUrl.sendId||!0===t.nativeParams.displayUrl.sendTargetingKeys)||t.nativeParams.privacyLink&&(!0!==t.nativeParams.privacyLink.sendId||!0===t.nativeParams.privacyLink.sendTargetingKeys)||t.nativeParams.privacyIcon&&(!0!==t.nativeParams.privacyIcon.sendId||!0===t.nativeParams.privacyIcon.sendTargetingKeys)))}function buildCdbRequest(t,e,r){var i,o,a={publisher:{url:t.url,ext:r.publisherExt},regs:{coppa:!0===r.coppa?1:!1===r.coppa?0:void 0},slots:e.map((function(t){i=t.params.networkId||i,o=t.schain||o;var e={impid:t.adUnitCode,transactionid:t.transactionId,auctionId:t.auctionId};if(t.params.zoneId&&(e.zoneid=t.params.zoneId),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"ortb2Imp.ext")&&(e.ext=t.ortb2Imp.ext),t.params.ext&&(e.ext=Object.assign({},e.ext,t.params.ext)),t.params.publisherSubId&&(e.publishersubid=t.params.publisherSubId),(t.params.nativeCallback||hasNativeMediaType(t))&&(e.native=!0,checkNativeSendId(t)||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)(LOG_PREFIX+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)")),hasBannerMediaType(t)?e.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.banner.sizes"),parseSize):e.sizes=[],hasVideoMediaType(t)){var r={playersizes:parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.video.playerSize"),parseSize),mimes:t.mediaTypes.video.mimes,protocols:t.mediaTypes.video.protocols,maxduration:t.mediaTypes.video.maxduration,api:t.mediaTypes.video.api,skip:t.mediaTypes.video.skip,placement:t.mediaTypes.video.placement,minduration:t.mediaTypes.video.minduration,playbackmethod:t.mediaTypes.video.playbackmethod,startdelay:t.mediaTypes.video.startdelay},a=t.params.video;void 0!==a&&(r.skip=r.skip||a.skip||0,r.placement=r.placement||a.placement,r.minduration=r.minduration||a.minduration,r.playbackmethod=r.playbackmethod||a.playbackmethod,r.startdelay=r.startdelay||a.startdelay||0),e.video=r}return enrichSlotWithFloors(e,t),e}))};return i&&(a.publisher.networkid=i),o&&(a.source={ext:{schain:o}}),a.user={ext:r.userExt},r&&r.ceh&&(a.user.ceh=r.ceh),r&&r.gdprConsent&&(a.gdprConsent={},void 0!==r.gdprConsent.gdprApplies&&(a.gdprConsent.gdprApplies=!!r.gdprConsent.gdprApplies),a.gdprConsent.version=r.gdprConsent.apiVersion,void 0!==r.gdprConsent.consentString&&(a.gdprConsent.consentData=r.gdprConsent.consentString)),r&&r.uspConsent&&(a.user.uspIab=r.uspConsent),a}function parseSizes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return null==t?[]:Array.isArray(t[0])?t.map((function(t){return e(t)})):[e(t)]}function parseSize(t){return t[0]+"x"+t[1]}function hasVideoMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.video")}function hasBannerMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.banner")}function hasNativeMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.native")}function hasValidVideoMediaType(t){var e=!0;if(["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(r){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.video."+r)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"params.video."+r)&&(e=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logError)("Criteo Bid Adapter: mediaTypes.video."+r+" is required"))})),e){var r=t.mediaTypes.video.placement||t.params.video.placement;if("instream"==t.mediaTypes.video.context&&1===r)return!0;if("outstream"==t.mediaTypes.video.context&&1!==r)return!0}return!1}function createPrebidNativeAd(t){return{sendTargetingKeys:!1,title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map((function(t){return t.url}))}}function createNativeAd(t,e,r){var i="criteo_prebid_native_slots";return window[i]=window[i]||{},window[i][t]={callback:r,payload:e},'\n<script type="text/javascript">\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(i,';\n if(!slots){continue;}\n var responseSlot = slots["').concat(t,'"];\n responseSlot.callback(responseSlot.payload);\n break;\n}\n<\/script>')}function enrichSlotWithFloors(t,e){try{var r={};if(e.getFloor){var i,o,a;if(null!==(i=e.mediaTypes)&&void 0!==i&&i.banner)r.banner={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(e,"mediaTypes.banner.sizes")).forEach((function(t){return r.banner[parseSize(t).toString()]=e.getFloor({size:t,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.Mk})}));if(null!==(o=e.mediaTypes)&&void 0!==o&&o.video)r.video={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(e,"mediaTypes.video.playerSize")).forEach((function(t){return r.video[parseSize(t).toString()]=e.getFloor({size:t,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX})}));null!==(a=e.mediaTypes)&&void 0!==a&&a.native&&(r.native={},r.native["*"]=e.getFloor({size:"*",mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5})),Object.keys(r).length>0&&(t.ext||(t.ext={}),Object.assign(t.ext,{floors:r}))}}catch(t){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logError)("Could not parse floors from Prebid: "+t)}}function canFastBid(t){return t!==FAST_BID_VERSION_NONE}function getFastBidUrl(t){var e;if(t===FAST_BID_VERSION_LATEST)e="";else if(t){String(t).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("Specifying a Fastbid version which is not supporting version selection."),e="."+t}else e="."+FAST_BID_VERSION_CURRENT;return PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,e)}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);(0,criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__.T)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logInfo)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(t){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_11__.dX)(spec),window.pbjs.installedModules.push("criteoBidAdapter")},17673:function(t,e,r){r.d(e,{h:function(){return o}});var i=r(20265);function o(t){return null==t||!t.gdprApplies||!0===(0,i.Z)(t,"vendorData.purpose.consents.1")}},44611:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){null!==t&&this.fromHexString(t)}return t.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var t,e=!1,r="",i=this.t,o=this.DB-i*this.DB%4;if(i-- >0)for(o<this.DB&&(t=this[i]>>o)>0&&(e=!0,r=c(t));i>=0;)o<4?(t=(this[i]&(1<<o)-1)<<4-o,t|=this[--i]>>(o+=this.DB-4)):(t=this[i]>>(o-=4)&15,o<=0&&(o+=this.DB,--i)),t>0&&(e=!0),e&&(r+=c(t));return e?r:"0"},t.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=d(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+4>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=4)>=this.DB&&(o-=this.DB))}0,this.clamp(),i&&t.ZERO.subTo(this,this)}},t.prototype.negate=function(){var e=o();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.mod=function(e){var r=o();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(t/this.DB),s=this.s<<r&this.DM,n=this.t-1;n>=0;--n)e[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)e[n]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.multiplyTo=function(e,r){var i=this.abs(),o=e.abs(),a=i.t;for(r.t=a+o.t;--a>=0;)r[a]=0;for(a=0;a<o.t;++a)r[a+i.t]=i.am(0,o[a],r,a,0,i.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.divRemTo=function(e,r,i){var s=e.abs();if(!(s.t<=0)){var n=this.abs();if(n.t<s.t)return null!=r&&r.fromHexString("0"),void(null!=i&&this.copyTo(i));null==i&&(i=o());var _=o(),d=this.s,c=e.s,p=this.DB-a(s[s.t-1]);p>0?(s.lShiftTo(p,_),n.lShiftTo(p,i)):(s.copyTo(_),n.copyTo(i));var u=_.t,l=_[u-1];if(0!=l){var h=l*(1<<this.F1)+(u>1?_[u-2]>>this.F2:0),E=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,v=i.t,T=v-u,O=null==r?o():r;for(_.dlShiftTo(T,O),i.compareTo(O)>=0&&(i[i.t++]=1,i.subTo(O,i)),t.ONE.dlShiftTo(u,O),O.subTo(_,_);_.t<u;)_[_.t++]=0;for(;--T>=0;){var g=i[--v]==l?this.DM:Math.floor(i[v]*E+(i[v-1]+m)*f);if((i[v]+=_.am(0,g,i,T,0,u))<g)for(_.dlShiftTo(T,O),i.subTo(O,i);i[v]<--g;)i.subTo(O,i)}null!=r&&(i.drShiftTo(u,r),d!=c&&t.ZERO.subTo(r,r)),i.t=u,i.clamp(),p>0&&i.rShiftTo(p,i),d<0&&t.ZERO.subTo(i,i)}}},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,o=this.DB-i,a=(1<<i)-1;e[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&a)<<o,e[s-r]=this[s]>>i;i>0&&(e[this.t-r-1]|=(this.s&a)<<o),e.t=this.t-r,e.clamp()}},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.subTo=function(t,e){for(var r=0,i=0,o=Math.min(t.t,this.t);r<o;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new p(e):new u(e),this.exp(t,r)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=o(),s=o(),n=r.convert(this),_=a(e)-1;for(n.copyTo(i);--_>=0;)if(r.sqrTo(i,s),(e&1<<_)>0)r.mulTo(s,n,i);else{var d=i;i=s,s=d}return r.revert(i)},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.am1=function(t,e,r,i,o,a){for(;--a>=0;){var s=e*this[t++]+r[i]+o;o=Math.floor(s/67108864),r[i++]=67108863&s}return o},t.prototype.am2=function(t,e,r,i,o,a){for(var s=32767&e,n=e>>15;--a>=0;){var _=32767&this[t],d=this[t++]>>15,c=n*_+d*s;o=((_=s*_+((32767&c)<<15)+r[i]+(1073741823&o))>>>30)+(c>>>15)+n*d+(o>>>30),r[i++]=1073741823&_}return o},t.prototype.am3=function(t,e,r,i,o,a){for(var s=16383&e,n=e>>14;--a>=0;){var _=16383&this[t],d=this[t++]>>14,c=n*_+d*s;o=((_=s*_+((16383&c)<<14)+r[i]+o)>>28)+(c>>14)+n*d,r[i++]=268435455&_}return o},t}();function o(){return new i(null)}function a(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}e.BigInteger=i,e.nbi=o,e.nbits=a;var s,n,_=[];for(s="0".charCodeAt(0),n=0;n<=9;++n)_[s++]=n;for(s="a".charCodeAt(0),n=10;n<36;++n)_[s++]=n;for(s="A".charCodeAt(0),n=10;n<36;++n)_[s++]=n;function d(t,e){var r=_[t.charCodeAt(e)];return null==r?-1:r}e.intAt=d;function c(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}e.int2char=c;e.b64toHex=function(t){var e,r="",i=0,o=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(e));a<0||(0==i?(r+=c(a>>2),o=3&a,i=1):1==i?(r+=c(o<<2|a>>4),o=15&a,i=2):2==i?(r+=c(o),r+=c(a>>2),o=3&a,i=3):(r+=c(o<<2|a>>4),r+=c(15&a),i=0))}return 1==i&&(r+=c(o<<2)),r},e.removeExtraSymbols=function(t){return t.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),u=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=o();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(i.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=o();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function l(t){var e=o();return e.fromHexString(t.toString()),e}e.nbv=l,i.ZERO=l(0),i.ONE=l(1),"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=i.prototype.am2,r=30):"Netscape"!=navigator.appName?(i.prototype.am=i.prototype.am1,r=26):(i.prototype.am=i.prototype.am3,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r;i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52},94950:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.hash=function(e){e=t.utf8Encode(e||"");for(var r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],o=(e+=String.fromCharCode(128)).length/4+2,a=Math.ceil(o/16),s=new Array(a),n=0;n<a;n++){s[n]=new Array(16);for(var _=0;_<16;_++)s[n][_]=e.charCodeAt(64*n+4*_)<<24|e.charCodeAt(64*n+4*_+1)<<16|e.charCodeAt(64*n+4*_+2)<<8|e.charCodeAt(64*n+4*_+3)<<0}var d=8*(e.length-1)/Math.pow(2,32),c=8*(e.length-1)>>>0;s[a-1][14]=Math.floor(d),s[a-1][15]=c;for(n=0;n<a;n++){for(var p=new Array(64),u=0;u<16;u++)p[u]=s[n][u];for(u=16;u<64;u++)p[u]=t.q1(p[u-2])+p[u-7]+t.q0(p[u-15])+p[u-16]>>>0;var l=i[0],h=i[1],E=i[2],f=i[3],m=i[4],v=i[5],T=i[6],O=i[7];for(u=0;u<64;u++){var g=O+t.z1(m)+t.Ch(m,v,T)+r[u]+p[u],D=t.z0(l)+t.Maj(l,h,E);O=T,T=v,v=m,m=f+g>>>0,f=E,E=h,h=l,l=g+D>>>0}i[0]=i[0]+l>>>0,i[1]=i[1]+h>>>0,i[2]=i[2]+E>>>0,i[3]=i[3]+f>>>0,i[4]=i[4]+m>>>0,i[5]=i[5]+v>>>0,i[6]=i[6]+T>>>0,i[7]=i[7]+O>>>0}var I=new Array(i.length);for(O=0;O<i.length;O++)I[O]=("00000000"+i[O].toString(16)).slice(-8);return I.join("")},t.utf8Encode=function(t){try{return(new TextEncoder).encode(t).reduce((function(t,e){return t+String.fromCharCode(e)}),"")}catch(e){return unescape(encodeURIComponent(t))}},t.ROTR=function(t,e){return e>>>t|e<<32-t},t.z0=function(e){return t.ROTR(2,e)^t.ROTR(13,e)^t.ROTR(22,e)},t.z1=function(e){return t.ROTR(6,e)^t.ROTR(11,e)^t.ROTR(25,e)},t.q0=function(e){return t.ROTR(7,e)^t.ROTR(18,e)^e>>>3},t.q1=function(e){return t.ROTR(17,e)^t.ROTR(19,e)^e>>>10},t.Ch=function(t,e,r){return t&e^~t&r},t.Maj=function(t,e,r){return t&e^t&r^e&r},t}();e.Sha256=r},1582:function(t,e,r){var i=r(44611),o=r(94950);e.T=function(t,e,r,a){var s=new i.BigInteger(i.b64toHex(e)),n=new i.BigInteger(i.b64toHex(r)),_=s.modPowInt(a,n);return i.removeExtraSymbols(_.toHexString())===o.Sha256.hash(t)}}},function(t){var e;e=60241,t(t.s=e)}]);
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[6406],{60241:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _src_utils_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(64358),_src_utils_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(20265),_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(55730),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(14699),_src_config_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3193),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(24679),_src_polyfill_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34614),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1582),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15164),_src_native_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(70059),_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25102),_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17673),GVLID=91,ADAPTER_VERSION=34,BIDDER_CODE="criteo",CDB_ENDPOINT="https://bidder.criteo.com/cdb",PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,storage=(0,_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__.df)({gvlid:GVLID,bidderCode:BIDDER_CODE}),LOG_PREFIX="Criteo: ",FAST_BID_VERSION_PLACEHOLDER="%FAST_BID_VERSION%",FAST_BID_VERSION_CURRENT=123,FAST_BID_VERSION_LATEST="latest",FAST_BID_VERSION_NONE="none",PUBLISHER_TAG_URL_TEMPLATE="https://static.criteo.net/js/ld/publishertag.prebid"+FAST_BID_VERSION_PLACEHOLDER+".js",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",SID_COOKIE_NAME="cto_sid",IDCPY_COOKIE_NAME="cto_idcpy",LWID_COOKIE_NAME="cto_lwid",OPTOUT_COOKIE_NAME="cto_optout",BUNDLE_COOKIE_NAME="cto_bundle",GUID_RETENTION_TIME_HOUR=9360,OPTOUT_RETENTION_TIME_HOUR=43200,spec={code:BIDDER_CODE,gvlid:GVLID,supportedMediaTypes:[_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.Mk,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5],getUserSyncs:function(t,e,r,i){if(canFastBid(_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.fastBidVersion")))return[];var o=(0,_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_4__.nH)(),a="criteoPrebidAdapter";if(t.iframeEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_5__.h)(r)){var s=[];s.push("origin=".concat(a)),s.push("topUrl=".concat(o.domain)),r&&(r.gdprApplies&&s.push("gdpr=".concat(1==r.gdprApplies?1:0)),r.consentString&&s.push("gdpr_consent=".concat(r.consentString))),i&&s.push("us_privacy=".concat(i));var n=Math.random().toString(),_={bundle:readFromAllStorages(BUNDLE_COOKIE_NAME),cw:storage.cookiesAreEnabled(),localWebId:readFromAllStorages(LWID_COOKIE_NAME),lsw:storage.localStorageIsEnabled(),optoutCookie:readFromAllStorages(OPTOUT_COOKIE_NAME),origin:a,requestId:n,secureIdCookie:readFromAllStorages(SID_COOKIE_NAME),tld:o.domain,topUrl:o.domain,uid:readFromAllStorages(IDCPY_COOKIE_NAME),version:"7.13.0".replace(/\./g,"_")};window.addEventListener("message",(function t(e){if(e.data&&"https://gum.criteo.com"==e.origin&&e.data.requestId===n){this.removeEventListener("message",t),e.stopImmediatePropagation();var r=e.data;r.optout?(deleteFromAllStorages(IDCPY_COOKIE_NAME),deleteFromAllStorages(SID_COOKIE_NAME),deleteFromAllStorages(BUNDLE_COOKIE_NAME),deleteFromAllStorages(LWID_COOKIE_NAME),saveOnAllStorages(OPTOUT_COOKIE_NAME,!0,OPTOUT_RETENTION_TIME_HOUR)):(r.uid&&saveOnAllStorages(IDCPY_COOKIE_NAME,r.uid,GUID_RETENTION_TIME_HOUR),r.bundle&&saveOnAllStorages(BUNDLE_COOKIE_NAME,r.bundle,GUID_RETENTION_TIME_HOUR),r.removeSid?deleteFromAllStorages(SID_COOKIE_NAME):r.sid&&saveOnAllStorages(SID_COOKIE_NAME,r.sid,GUID_RETENTION_TIME_HOUR))}}),!0);var d=JSON.stringify(_).replace(/"/g,"%22");return[{type:"iframe",url:"https://gum.criteo.com/syncframe?".concat(s.join("&"),"#").concat(d)}]}return[]},isBidRequestValid:function(t){return!(!t||!t.params||!t.params.zoneId&&!t.params.networkId)&&!(hasVideoMediaType(t)&&!hasValidVideoMediaType(t))},buildRequests:function(t,e){var r,i,o,a;t=(0,_src_native_js__WEBPACK_IMPORTED_MODULE_6__.lY)(t);var s=e.ortb2||{};Object.assign(e,{publisherExt:null===(r=s.site)||void 0===r?void 0:r.ext,userExt:null===(i=s.user)||void 0===i?void 0:i.ext,ceh:_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.ceh"),coppa:_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("coppa")});var n=_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.fastBidVersion"),_=canFastBid(n);if(!publisherTagAvailable()&&_){window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid();var d=getFastBidUrl(n);setTimeout((function(){(0,_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__.B)(d,BIDDER_CODE)}),e.timeout)}if(publisherTagAvailable()){var c=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,t,e,"7.13.0");o=c.buildCdbUrl(),a=c.buildCdbRequest()}else{var p=buildContext(t,e);o=buildCdbUrl(p),a=buildCdbRequest(p,t,e)}if(a)return{method:"POST",url:o,data:a,bidRequests:t}},interpretResponse:function(t,e){var r=t.body||t;if(publisherTagAvailable()){var i=Criteo.PubTag.Adapters.Prebid.GetAdapter(e);if(i)return i.interpretResponse(r,e)}var o=[];return r&&r.slots&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.isArray)(r.slots)&&r.slots.forEach((function(i){var a,s,n,_,d=(0,_src_polyfill_js__WEBPACK_IMPORTED_MODULE_9__.sE)(e.bidRequests,(function(t){return t.adUnitCode===i.impid&&(!t.params.zoneId||parseInt(t.params.zoneId)===i.zoneid)})),c=d.bidId,p={requestId:c,cpm:i.cpm,currency:i.currency,netRevenue:!0,ttl:i.ttl||60,creativeId:i.creativecode,width:i.width,height:i.height,dealId:i.dealCode};if(null!==(a=r.ext)&&void 0!==a&&null!==(s=a.paf)&&void 0!==s&&s.transmission&&null!==(n=i.ext)&&void 0!==n&&null!==(_=n.paf)&&void 0!==_&&_.content_id){var u={content_id:i.ext.paf.content_id,transmission:t.ext.paf.transmission};p.meta=Object.assign({},p.meta,{paf:u})}i.adomain&&(p.meta=Object.assign({},p.meta,{advertiserDomains:i.adomain})),i.native?d.params.nativeCallback?p.ad=createNativeAd(c,i.native,d.params.nativeCallback):(p.native=createPrebidNativeAd(i.native),p.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5):i.video?(p.vastUrl=i.displayurl,p.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX):p.ad=i.creative,o.push(p)})),o},onTimeout:function(t){if(publisherTagAvailable()&&Array.isArray(t)){var e=[];t.forEach((function(t){-1===e.indexOf(t.auctionId)&&(e.push(t.auctionId),Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidTimeout())}))}},onBidWon:function(t){publisherTagAvailable()&&t&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidWon(t)},onSetTargeting:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleSetTargeting(t)}};function readFromAllStorages(t){var e=storage.getCookie(t),r=storage.getDataFromLocalStorage(t);return e||r||void 0}function saveOnAllStorages(t,e,r){var i=new Date;i.setTime(i.getTime()+60*r*60*1e3);var o="expires=".concat(i.toUTCString());storage.setCookie(t,e,o),storage.setDataInLocalStorage(t,e)}function deleteFromAllStorages(t){storage.setCookie(t,"",0),storage.removeDataFromLocalStorage(t)}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(t,e){var r,i="";e&&e.refererInfo&&(i=e.refererInfo.page);var o=(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.parseUrl)(null==e||null===(r=e.refererInfo)||void 0===r?void 0:r.topmostLocation).search,a={url:i,debug:"1"===o.pbt_debug,noLog:"1"===o.pbt_nolog,amp:!1};return t.forEach((function(t){"amp"===t.params.integrationMode&&(a.amp=!0)})),a}function buildCdbUrl(t){var e=CDB_ENDPOINT;e+="?profileId="+PROFILE_ID_INLINE,e+="&av="+String(ADAPTER_VERSION),e+="&wv="+encodeURIComponent("7.13.0"),e+="&cb="+String(Math.floor(99999999999*Math.random())),storage.localStorageIsEnabled()?e+="&lsavail=1":e+="&lsavail=0",t.amp&&(e+="&im=1"),t.debug&&(e+="&debug=1"),t.noLog&&(e+="&nolog=1");var r=readFromAllStorages(BUNDLE_COOKIE_NAME);r&&(e+="&bundle=".concat(r)),readFromAllStorages(OPTOUT_COOKIE_NAME)&&(e+="&optout=1");var i=readFromAllStorages(SID_COOKIE_NAME);i&&(e+="&sid=".concat(i));var o=readFromAllStorages(IDCPY_COOKIE_NAME);return o&&(e+="&idcpy=".concat(o)),e}function checkNativeSendId(t){return!(t.nativeParams&&(t.nativeParams.image&&(!0!==t.nativeParams.image.sendId||!0===t.nativeParams.image.sendTargetingKeys)||t.nativeParams.icon&&(!0!==t.nativeParams.icon.sendId||!0===t.nativeParams.icon.sendTargetingKeys)||t.nativeParams.clickUrl&&(!0!==t.nativeParams.clickUrl.sendId||!0===t.nativeParams.clickUrl.sendTargetingKeys)||t.nativeParams.displayUrl&&(!0!==t.nativeParams.displayUrl.sendId||!0===t.nativeParams.displayUrl.sendTargetingKeys)||t.nativeParams.privacyLink&&(!0!==t.nativeParams.privacyLink.sendId||!0===t.nativeParams.privacyLink.sendTargetingKeys)||t.nativeParams.privacyIcon&&(!0!==t.nativeParams.privacyIcon.sendId||!0===t.nativeParams.privacyIcon.sendTargetingKeys)))}function buildCdbRequest(t,e,r){var i,o,a={publisher:{url:t.url,ext:r.publisherExt},regs:{coppa:!0===r.coppa?1:!1===r.coppa?0:void 0},slots:e.map((function(t){i=t.params.networkId||i,o=t.schain||o;var e={impid:t.adUnitCode,transactionid:t.transactionId,auctionId:t.auctionId};if(t.params.zoneId&&(e.zoneid=t.params.zoneId),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"ortb2Imp.ext")&&(e.ext=t.ortb2Imp.ext),t.params.ext&&(e.ext=Object.assign({},e.ext,t.params.ext)),t.params.publisherSubId&&(e.publishersubid=t.params.publisherSubId),(t.params.nativeCallback||hasNativeMediaType(t))&&(e.native=!0,checkNativeSendId(t)||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)(LOG_PREFIX+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)")),hasBannerMediaType(t)?e.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.banner.sizes"),parseSize):e.sizes=[],hasVideoMediaType(t)){var r={playersizes:parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.video.playerSize"),parseSize),mimes:t.mediaTypes.video.mimes,protocols:t.mediaTypes.video.protocols,maxduration:t.mediaTypes.video.maxduration,api:t.mediaTypes.video.api,skip:t.mediaTypes.video.skip,placement:t.mediaTypes.video.placement,minduration:t.mediaTypes.video.minduration,playbackmethod:t.mediaTypes.video.playbackmethod,startdelay:t.mediaTypes.video.startdelay},a=t.params.video;void 0!==a&&(r.skip=r.skip||a.skip||0,r.placement=r.placement||a.placement,r.minduration=r.minduration||a.minduration,r.playbackmethod=r.playbackmethod||a.playbackmethod,r.startdelay=r.startdelay||a.startdelay||0),e.video=r}return enrichSlotWithFloors(e,t),e}))};return i&&(a.publisher.networkid=i),o&&(a.source={ext:{schain:o}}),a.user={ext:r.userExt},r&&r.ceh&&(a.user.ceh=r.ceh),r&&r.gdprConsent&&(a.gdprConsent={},void 0!==r.gdprConsent.gdprApplies&&(a.gdprConsent.gdprApplies=!!r.gdprConsent.gdprApplies),a.gdprConsent.version=r.gdprConsent.apiVersion,void 0!==r.gdprConsent.consentString&&(a.gdprConsent.consentData=r.gdprConsent.consentString)),r&&r.uspConsent&&(a.user.uspIab=r.uspConsent),a}function parseSizes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return null==t?[]:Array.isArray(t[0])?t.map((function(t){return e(t)})):[e(t)]}function parseSize(t){return t[0]+"x"+t[1]}function hasVideoMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.video")}function hasBannerMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.banner")}function hasNativeMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.native")}function hasValidVideoMediaType(t){var e=!0;if(["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(r){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"mediaTypes.video."+r)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(t,"params.video."+r)&&(e=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logError)("Criteo Bid Adapter: mediaTypes.video."+r+" is required"))})),e){var r=t.mediaTypes.video.placement||t.params.video.placement;if("instream"==t.mediaTypes.video.context&&1===r)return!0;if("outstream"==t.mediaTypes.video.context&&1!==r)return!0}return!1}function createPrebidNativeAd(t){return{sendTargetingKeys:!1,title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map((function(t){return t.url}))}}function createNativeAd(t,e,r){var i="criteo_prebid_native_slots";return window[i]=window[i]||{},window[i][t]={callback:r,payload:e},'\n<script type="text/javascript">\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(i,';\n if(!slots){continue;}\n var responseSlot = slots["').concat(t,'"];\n responseSlot.callback(responseSlot.payload);\n break;\n}\n<\/script>')}function enrichSlotWithFloors(t,e){try{var r={};if(e.getFloor){var i,o,a;if(null!==(i=e.mediaTypes)&&void 0!==i&&i.banner)r.banner={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(e,"mediaTypes.banner.sizes")).forEach((function(t){return r.banner[parseSize(t).toString()]=e.getFloor({size:t,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.Mk})}));if(null!==(o=e.mediaTypes)&&void 0!==o&&o.video)r.video={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_10__.Z)(e,"mediaTypes.video.playerSize")).forEach((function(t){return r.video[parseSize(t).toString()]=e.getFloor({size:t,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX})}));null!==(a=e.mediaTypes)&&void 0!==a&&a.native&&(r.native={},r.native["*"]=e.getFloor({size:"*",mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5})),Object.keys(r).length>0&&(t.ext||(t.ext={}),Object.assign(t.ext,{floors:r}))}}catch(t){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logError)("Could not parse floors from Prebid: "+t)}}function canFastBid(t){return t!==FAST_BID_VERSION_NONE}function getFastBidUrl(t){var e;if(t===FAST_BID_VERSION_LATEST)e="";else if(t){String(t).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("Specifying a Fastbid version which is not supporting version selection."),e="."+t}else e="."+FAST_BID_VERSION_CURRENT;return PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,e)}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);(0,criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__.T)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logInfo)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(t){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_11__.dX)(spec),window.pbjs.installedModules.push("criteoBidAdapter")},17673:function(t,e,r){r.d(e,{h:function(){return o}});var i=r(20265);function o(t){return null==t||!t.gdprApplies||!0===(0,i.Z)(t,"vendorData.purpose.consents.1")}},44611:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){null!==t&&this.fromHexString(t)}return t.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var t,e=!1,r="",i=this.t,o=this.DB-i*this.DB%4;if(i-- >0)for(o<this.DB&&(t=this[i]>>o)>0&&(e=!0,r=c(t));i>=0;)o<4?(t=(this[i]&(1<<o)-1)<<4-o,t|=this[--i]>>(o+=this.DB-4)):(t=this[i]>>(o-=4)&15,o<=0&&(o+=this.DB,--i)),t>0&&(e=!0),e&&(r+=c(t));return e?r:"0"},t.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=d(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+4>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=4)>=this.DB&&(o-=this.DB))}0,this.clamp(),i&&t.ZERO.subTo(this,this)}},t.prototype.negate=function(){var e=o();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.mod=function(e){var r=o();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(t/this.DB),s=this.s<<r&this.DM,n=this.t-1;n>=0;--n)e[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)e[n]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.multiplyTo=function(e,r){var i=this.abs(),o=e.abs(),a=i.t;for(r.t=a+o.t;--a>=0;)r[a]=0;for(a=0;a<o.t;++a)r[a+i.t]=i.am(0,o[a],r,a,0,i.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.divRemTo=function(e,r,i){var s=e.abs();if(!(s.t<=0)){var n=this.abs();if(n.t<s.t)return null!=r&&r.fromHexString("0"),void(null!=i&&this.copyTo(i));null==i&&(i=o());var _=o(),d=this.s,c=e.s,p=this.DB-a(s[s.t-1]);p>0?(s.lShiftTo(p,_),n.lShiftTo(p,i)):(s.copyTo(_),n.copyTo(i));var u=_.t,l=_[u-1];if(0!=l){var h=l*(1<<this.F1)+(u>1?_[u-2]>>this.F2:0),E=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,v=i.t,T=v-u,O=null==r?o():r;for(_.dlShiftTo(T,O),i.compareTo(O)>=0&&(i[i.t++]=1,i.subTo(O,i)),t.ONE.dlShiftTo(u,O),O.subTo(_,_);_.t<u;)_[_.t++]=0;for(;--T>=0;){var g=i[--v]==l?this.DM:Math.floor(i[v]*E+(i[v-1]+m)*f);if((i[v]+=_.am(0,g,i,T,0,u))<g)for(_.dlShiftTo(T,O),i.subTo(O,i);i[v]<--g;)i.subTo(O,i)}null!=r&&(i.drShiftTo(u,r),d!=c&&t.ZERO.subTo(r,r)),i.t=u,i.clamp(),p>0&&i.rShiftTo(p,i),d<0&&t.ZERO.subTo(i,i)}}},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,o=this.DB-i,a=(1<<i)-1;e[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&a)<<o,e[s-r]=this[s]>>i;i>0&&(e[this.t-r-1]|=(this.s&a)<<o),e.t=this.t-r,e.clamp()}},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.subTo=function(t,e){for(var r=0,i=0,o=Math.min(t.t,this.t);r<o;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new p(e):new u(e),this.exp(t,r)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=o(),s=o(),n=r.convert(this),_=a(e)-1;for(n.copyTo(i);--_>=0;)if(r.sqrTo(i,s),(e&1<<_)>0)r.mulTo(s,n,i);else{var d=i;i=s,s=d}return r.revert(i)},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.am1=function(t,e,r,i,o,a){for(;--a>=0;){var s=e*this[t++]+r[i]+o;o=Math.floor(s/67108864),r[i++]=67108863&s}return o},t.prototype.am2=function(t,e,r,i,o,a){for(var s=32767&e,n=e>>15;--a>=0;){var _=32767&this[t],d=this[t++]>>15,c=n*_+d*s;o=((_=s*_+((32767&c)<<15)+r[i]+(1073741823&o))>>>30)+(c>>>15)+n*d+(o>>>30),r[i++]=1073741823&_}return o},t.prototype.am3=function(t,e,r,i,o,a){for(var s=16383&e,n=e>>14;--a>=0;){var _=16383&this[t],d=this[t++]>>14,c=n*_+d*s;o=((_=s*_+((16383&c)<<14)+r[i]+o)>>28)+(c>>14)+n*d,r[i++]=268435455&_}return o},t}();function o(){return new i(null)}function a(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}e.BigInteger=i,e.nbi=o,e.nbits=a;var s,n,_=[];for(s="0".charCodeAt(0),n=0;n<=9;++n)_[s++]=n;for(s="a".charCodeAt(0),n=10;n<36;++n)_[s++]=n;for(s="A".charCodeAt(0),n=10;n<36;++n)_[s++]=n;function d(t,e){var r=_[t.charCodeAt(e)];return null==r?-1:r}e.intAt=d;function c(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}e.int2char=c;e.b64toHex=function(t){var e,r="",i=0,o=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(e));a<0||(0==i?(r+=c(a>>2),o=3&a,i=1):1==i?(r+=c(o<<2|a>>4),o=15&a,i=2):2==i?(r+=c(o),r+=c(a>>2),o=3&a,i=3):(r+=c(o<<2|a>>4),r+=c(15&a),i=0))}return 1==i&&(r+=c(o<<2)),r},e.removeExtraSymbols=function(t){return t.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),u=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=o();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(i.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=o();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function l(t){var e=o();return e.fromHexString(t.toString()),e}e.nbv=l,i.ZERO=l(0),i.ONE=l(1),"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=i.prototype.am2,r=30):"Netscape"!=navigator.appName?(i.prototype.am=i.prototype.am1,r=26):(i.prototype.am=i.prototype.am3,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r;i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52},94950:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.hash=function(e){e=t.utf8Encode(e||"");for(var r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],o=(e+=String.fromCharCode(128)).length/4+2,a=Math.ceil(o/16),s=new Array(a),n=0;n<a;n++){s[n]=new Array(16);for(var _=0;_<16;_++)s[n][_]=e.charCodeAt(64*n+4*_)<<24|e.charCodeAt(64*n+4*_+1)<<16|e.charCodeAt(64*n+4*_+2)<<8|e.charCodeAt(64*n+4*_+3)<<0}var d=8*(e.length-1)/Math.pow(2,32),c=8*(e.length-1)>>>0;s[a-1][14]=Math.floor(d),s[a-1][15]=c;for(n=0;n<a;n++){for(var p=new Array(64),u=0;u<16;u++)p[u]=s[n][u];for(u=16;u<64;u++)p[u]=t.q1(p[u-2])+p[u-7]+t.q0(p[u-15])+p[u-16]>>>0;var l=i[0],h=i[1],E=i[2],f=i[3],m=i[4],v=i[5],T=i[6],O=i[7];for(u=0;u<64;u++){var g=O+t.z1(m)+t.Ch(m,v,T)+r[u]+p[u],D=t.z0(l)+t.Maj(l,h,E);O=T,T=v,v=m,m=f+g>>>0,f=E,E=h,h=l,l=g+D>>>0}i[0]=i[0]+l>>>0,i[1]=i[1]+h>>>0,i[2]=i[2]+E>>>0,i[3]=i[3]+f>>>0,i[4]=i[4]+m>>>0,i[5]=i[5]+v>>>0,i[6]=i[6]+T>>>0,i[7]=i[7]+O>>>0}var I=new Array(i.length);for(O=0;O<i.length;O++)I[O]=("00000000"+i[O].toString(16)).slice(-8);return I.join("")},t.utf8Encode=function(t){try{return(new TextEncoder).encode(t).reduce((function(t,e){return t+String.fromCharCode(e)}),"")}catch(e){return unescape(encodeURIComponent(t))}},t.ROTR=function(t,e){return e>>>t|e<<32-t},t.z0=function(e){return t.ROTR(2,e)^t.ROTR(13,e)^t.ROTR(22,e)},t.z1=function(e){return t.ROTR(6,e)^t.ROTR(11,e)^t.ROTR(25,e)},t.q0=function(e){return t.ROTR(7,e)^t.ROTR(18,e)^e>>>3},t.q1=function(e){return t.ROTR(17,e)^t.ROTR(19,e)^e>>>10},t.Ch=function(t,e,r){return t&e^~t&r},t.Maj=function(t,e,r){return t&e^t&r^e&r},t}();e.Sha256=r},1582:function(t,e,r){var i=r(44611),o=r(94950);e.T=function(t,e,r,a){var s=new i.BigInteger(i.b64toHex(e)),n=new i.BigInteger(i.b64toHex(r)),_=s.modPowInt(a,n);return i.removeExtraSymbols(_.toHexString())===o.Sha256.hash(t)}}},function(t){var e;e=60241,t(t.s=e)}]);
|
package/dist/currency.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.pbjsChunk=self.pbjsChunk||[]).push([[9226],{72663:function(e,n,r){var o,c=r(71002),t=r(64358),i=r(78640),s=r(69626),a=r(5644),u=r(48928),f=r(3193),l=r(92797),d=r(68792),v="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",g=[],y={},p=!1,h=!0,C="USD",b=!1,R={},m={},S=function(){var e;function n(){e=(0,d.P)()}return n(),{done:function(){return e.resolve()},reset:n,promise:function(){return e.promise}}}();function w(e){o?((0,t.logWarn)(e),(0,t.logWarn)("Currency failed loading rates, falling back to currency.defaultRates")):(0,t.logError)(e)}function D(e){y={},b=!0,(0,t.logInfo)("Installing addBidResponse decorator for currency module",arguments),(0,i.R)().convertCurrency=function(e,n,r){return parseFloat(e)*O(n,r)},(0,l.v5)("addBidResponse").before(F,100),h?(h=!1,(0,u.h)(e,{success:function(e){try{R=JSON.parse(e),(0,t.logInfo)("currencyRates set to "+JSON.stringify(R)),p=!0,j(),S.done()}catch(n){w("Failed to parse currencyRates response: "+e)}},error:function(){w.apply(void 0,arguments),S.done()}})):S.done()}function I(){(0,t.logInfo)("Uninstalling addBidResponse decorator for currency module",arguments),(0,l.v5)("addBidResponse").getHooks({hook:F}).remove(),delete(0,i.R)().convertCurrency,C="USD",y={},b=!1,p=!1,h=!0,R={},m={}}function F(e,n,r){if(!r)return e.call(this,n);var o=r.bidderCode||r.bidder;if(m[o]){var c=m[o];r.currency&&c!==r.currency?(0,t.logWarn)("Currency default '".concat(o,": ").concat(c,"' ignored. adapter specified '").concat(r.currency,"'")):r.currency=c}if(r.currency||((0,t.logWarn)('Currency not specified on bid. Defaulted to "USD"'),r.currency="USD"),r.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*O(this.currency,e)).toFixed(3)},r.currency===C)return e.call(this,n,r);g.push(function(e,n,r){return function(){var o=r[1];if(void 0!==o&&"currency"in o&&"cpm"in o){var c=o.currency;try{var i=O(c);1!==i&&(o.cpm=(parseFloat(o.cpm)*i).toFixed(4),o.currency=C)}catch(e){(0,t.logWarn)("Returning NO_BID, getCurrencyConversion threw error: ",e),r[1]=(0,s.m)(a.Q_.NO_BID,o.getIdentifiers())}}return e.apply(n,r)}}(e,this,[n,r])),!b||p?j():e.bail(S.promise())}function j(){for(;g.length>0;)g.shift()()}function O(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,o=null,c="".concat(e,"->").concat(r);if(c in y)o=y[c],(0,t.logMessage)("Using conversionCache value "+o+" for "+c);else if(!1===b){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");o=1}else if(e===r)o=1;else if(e in R.conversions){if(!(r in(n=R.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");o=n[r],(0,t.logInfo)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+o)}else if(r in R.conversions){if(!(e in(n=R.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");o=U(1/n[e],4),(0,t.logInfo)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+o)}else{var i=Object.keys(R.conversions)[0];if(!(e in R.conversions[i]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var s=1/R.conversions[i][e];if(!(r in R.conversions[i]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");var a=R.conversions[i][r];o=U(s*a,4),(0,t.logInfo)("getCurrencyConversion using intermediate "+e+" thru "+i+" to "+r+" conversionRate "+o)}return c in y||((0,t.logMessage)("Adding conversionCache value "+o+" for "+c),y[c]=o),o}function U(e,n){for(var r=1,o=0;o<n;o++)r+="0";return Math.round(e*r)/r}f.vc.getConfig("currency",(function(e){return function(e){var n=v;if("object"===(0,c.Z)(e.rates)&&(R.conversions=e.rates,p=!0,h=!1),"object"===(0,c.Z)(e.defaultRates)&&(o=e.defaultRates,R.conversions=o,p=!0),"string"==typeof e.adServerCurrency){(0,t.logInfo)("enabling currency support",arguments),C=e.adServerCurrency,e.conversionRateFile&&((0,t.logInfo)("currency using override conversionRateFile:",e.conversionRateFile),n=e.conversionRateFile);var r=n.indexOf("$$TODAY$$");if(-1!==r){var i=new Date,s="".concat(i.getMonth()+1),a="".concat(i.getDate());s.length<2&&(s="0".concat(s)),a.length<2&&(a="0".concat(a));var u="".concat(i.getFullYear()).concat(s).concat(a);n="".concat(n.substring(0,r)).concat(u).concat(n.substring(r+9,n.length))}D(n)}else(0,t.logInfo)("disabling currency support"),I();"object"===(0,c.Z)(e.bidderCurrencyDefault)&&(m=e.bidderCurrencyDefault)}(e.currency)})),window.pbjs.installedModules.push("currency")}},function(e){var n;n=72663,e(e.s=n)}]);
|
|
1
|
+
(self.pbjsChunk=self.pbjsChunk||[]).push([[9226],{72663:function(e,n,r){var o,c=r(71002),t=r(64358),i=r(78640),s=r(69626),a=r(5644),u=r(48928),f=r(3193),l=r(92797),d=r(68792),v="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",g=[],y={},p=!1,h=!0,C="USD",b=!1,R={},m={},S=function(){var e;function n(){e=(0,d.P)()}return n(),{done:function(){return e.resolve()},reset:n,promise:function(){return e.promise}}}();function w(e){o?((0,t.logWarn)(e),(0,t.logWarn)("Currency failed loading rates, falling back to currency.defaultRates")):(0,t.logError)(e)}function D(e){y={},b=!0,(0,t.logInfo)("Installing addBidResponse decorator for currency module",arguments),(0,i.R)().convertCurrency=function(e,n,r){return parseFloat(e)*O(n,r)},(0,l.v5)("addBidResponse").before(F,100),h?(h=!1,(0,u.h)(e,{success:function(e){try{R=JSON.parse(e),(0,t.logInfo)("currencyRates set to "+JSON.stringify(R)),y={},p=!0,j(),S.done()}catch(n){w("Failed to parse currencyRates response: "+e)}},error:function(){w.apply(void 0,arguments),S.done()}})):S.done()}function I(){(0,t.logInfo)("Uninstalling addBidResponse decorator for currency module",arguments),(0,l.v5)("addBidResponse").getHooks({hook:F}).remove(),delete(0,i.R)().convertCurrency,C="USD",y={},b=!1,p=!1,h=!0,R={},m={}}function F(e,n,r){if(!r)return e.call(this,n);var o=r.bidderCode||r.bidder;if(m[o]){var c=m[o];r.currency&&c!==r.currency?(0,t.logWarn)("Currency default '".concat(o,": ").concat(c,"' ignored. adapter specified '").concat(r.currency,"'")):r.currency=c}if(r.currency||((0,t.logWarn)('Currency not specified on bid. Defaulted to "USD"'),r.currency="USD"),r.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*O(this.currency,e)).toFixed(3)},r.currency===C)return e.call(this,n,r);g.push(function(e,n,r){return function(){var o=r[1];if(void 0!==o&&"currency"in o&&"cpm"in o){var c=o.currency;try{var i=O(c);1!==i&&(o.cpm=(parseFloat(o.cpm)*i).toFixed(4),o.currency=C)}catch(e){(0,t.logWarn)("Returning NO_BID, getCurrencyConversion threw error: ",e),r[1]=(0,s.m)(a.Q_.NO_BID,o.getIdentifiers())}}return e.apply(n,r)}}(e,this,[n,r])),!b||p?j():e.bail(S.promise())}function j(){for(;g.length>0;)g.shift()()}function O(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,o=null,c="".concat(e,"->").concat(r);if(c in y)o=y[c],(0,t.logMessage)("Using conversionCache value "+o+" for "+c);else if(!1===b){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");o=1}else if(e===r)o=1;else if(e in R.conversions){if(!(r in(n=R.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");o=n[r],(0,t.logInfo)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+o)}else if(r in R.conversions){if(!(e in(n=R.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");o=U(1/n[e],4),(0,t.logInfo)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+o)}else{var i=Object.keys(R.conversions)[0];if(!(e in R.conversions[i]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var s=1/R.conversions[i][e];if(!(r in R.conversions[i]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");var a=R.conversions[i][r];o=U(s*a,4),(0,t.logInfo)("getCurrencyConversion using intermediate "+e+" thru "+i+" to "+r+" conversionRate "+o)}return c in y||((0,t.logMessage)("Adding conversionCache value "+o+" for "+c),y[c]=o),o}function U(e,n){for(var r=1,o=0;o<n;o++)r+="0";return Math.round(e*r)/r}f.vc.getConfig("currency",(function(e){return function(e){var n=v;if("object"===(0,c.Z)(e.rates)&&(R.conversions=e.rates,p=!0,h=!1),"object"===(0,c.Z)(e.defaultRates)&&(o=e.defaultRates,R.conversions=o,p=!0),"string"==typeof e.adServerCurrency){(0,t.logInfo)("enabling currency support",arguments),C=e.adServerCurrency,e.conversionRateFile&&((0,t.logInfo)("currency using override conversionRateFile:",e.conversionRateFile),n=e.conversionRateFile);var r=n.indexOf("$$TODAY$$");if(-1!==r){var i=new Date,s="".concat(i.getMonth()+1),a="".concat(i.getDate());s.length<2&&(s="0".concat(s)),a.length<2&&(a="0".concat(a));var u="".concat(i.getFullYear()).concat(s).concat(a);n="".concat(n.substring(0,r)).concat(u).concat(n.substring(r+9,n.length))}D(n)}else(0,t.logInfo)("disabling currency support"),I();"object"===(0,c.Z)(e.bidderCurrencyDefault)&&(m=e.bidderCurrencyDefault)}(e.currency)})),window.pbjs.installedModules.push("currency")}},function(e){var n;n=72663,e(e.s=n)}]);
|