Gugu Mbatha-Raw in The Cloverfield Paradox.
Netflix
The Cloverfield movies are science fiction, but what Netflix pulled off with the surprise post–Super Bowl launch of The Cloverfield Paradox is more akin to alchemy. A mere two days ago, the movie then known as God Particle was an oft-delayed entry in J.J. Abrams’ amorphous franchise that had shifted more than a year from its initial release date—and was still undergoing reshoots as recently as December. While its predecessors, 2008’s Cloverfield and 2016’s 10 Cloverfield Lane , thrived on pre-release mystery, this was starting to feel less like calculated secrecy and more like a panicked flight. But with one brief, mildly cryptic ad, Netflix transformed an incipient lead balloon into a golden opportunity, a movie that no one was much excited about seeing into one they had to see the second the game was over.
The Cloverfield Paradox was worth the wait, but only if you started the clock in the first quarter. A few hours’ head start turns out to be the perfect amount of anticipation: just enough to get over the initial shock of its abrupt release, but not so long that you might start to wonder how a much-anticipated theatrical release ended up on a streaming service with virtually no advance warning.
From the beginning, the movie, which was directed by 34-year-old Julius Onah, has the earmarks of massive retooling. In the tacked-on opening scene, Gugu Mbatha-Raw’s Hamilton and her husband (Roger Davies) baldly outline the film’s premise while waiting in a snaking, 1970s-style line for gas. Next, a bizarre opening-credits sequence fast-forwards through nearly two years on the space station where Hamilton and her crew are experimenting with a particle accelerator in an attempt to solve the energy crisis that has brought humanity to the brink of collapse. Then a figure comes on a TV screen and talks about “the Cloverfield paradox,” which appears to have nothing to do with either Cloverfield or paradoxes but does involve the danger of the space station’s technology opening up dimensional rifts and releasing “monsters, demons, beasts from the sea.” (I am fairly sure no one involved with The Cloverfield Paradox knows what the word paradox means.)
A figure comes on a TV screen and talks about “the Cloverfield paradox,” which appears to have nothing to do with either Cloverfield or paradoxes
Needless to say, the particle accelerator is used, and needless to say, things go awry. But the precise nature of that awry-ness varies between scenes, and oftentimes within them. There’s some business about alternate dimensions (or, more precisely, alternate universes), some Alien style body horror, bits of metal and flesh that take on lives of their own, even the occasional hint of time travel.
The Cloverfield Paradox ’s script is only credited to two people, Oren Uziel and Doug Jung, but it feels as if it was written by several dozen, or by pulling slips of paper out of a bowl at random. That goes for the cast as well, which includes David Oyelowo, Daniel Brühl, Chris O’Dowd, Zhang Ziyi, Aksel Hennie, John Ortiz, and Elizabeth Debicki—fine actors all, but putting them all in the same movie is the equivalent of a cooking-show challenge to make an entrée with parsley and motor oil. Great(ish) ideas and terrible ones sit cheek by jowl, original notions and blatant thievery corralled together with no discernible logic. It’s a horror movie one moment, a comedy the next, as if Netflix were streaming several different titles at once.
The genius of Netflix’s no-look release plan is that none of this matters much. The movie’s abrupt appearance generated a flash of intense excitement, but not the kind of prolonged anticipation that most often leads to disappointment: The only thing you expected of The Cloverfield Paradox was that it would be on your computer when the last whistle blew, and there it was. That it’s a low-level genre rehash that would have absolutely cratered had it been released in movie theaters as planned was entirely beside the point. Although it wasn’t conceived as a Netflix release, it somehow feels like the logical endpoint of the service’s approach to content generation: a movie as easily categorized as it is forgotten, one whose primary asset is that its (reworked) title will show up high in search rankings. Its plot would have been no less coherent had it been generated by algorithms rather than simply rejiggered to please them. The eventual tie-in to the Cloverfield universe is staggeringly cynical, but there’s something admirable in its brazenness, and the movie ends so abruptly it’s as if it were designed to be followed by the inevitable “Play Next” click.
Picking up a studio’s rejects might not be the best way to burnish Netflix’s brand. (The real winner here may be Paramount, who offloaded an almost-certain flop.) But Netflix didn’t just polish this turd: They served it up on a silver platter, and had everyone rushing to dig in. There’s a certain thrill in getting there first, but when you’re done, you’re still left with a pile of crap.
“;var a={ad:t+=decodeURIComponent(e.code),cpm:parseFloat(e.price),currency:e.currency,height:parseInt(e.height,10),requestId:r.bidIdMap[e.id],width:parseInt(e.width,10),netRevenue:!1,ttl:parseInt(e.ttl),creativeId:e.crid};n.push(a)}}Object.defineProperty(r,”__esModule”,{value:!0}),r.spec=void 0;var u=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r})(n(0)),c=n(9),o=r.spec={code:”adocean”,isBidRequestValid:function(e){return!!(e.params.slaveId&&e.params.masterId&&e.params.emiter)},buildRequests:function(e){var r={};return u._each(e,(function(e){i(e,r)})),u._map(r,(function(e,r){return a(e,r)}))},interpretResponse:function(e,r){var n=[];return u.isArray(e.body)&&u._each(e.body,(function(e){s(e,r,n)})),n}};(0,c.registerBidder)(o)},69:function(e,r){}},[67]);
pbjsChunk([24],{10:function(e,t,n){“use strict”;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,”__esModule”,{value:!0});var i=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e};t.default=function(e){function t(e){var t=e.eventType,n=e.args,r=e.callback;(0,u.ajax)(S,r,JSON.stringify({eventType:t,args:n}))}function n(e){var t=e.eventType,n=e.args,r=this;A&&window[A]&&t&&n?this.track({eventType:t,args:n}):_.push((function(){w++,r.track({eventType:t,args:n})}))}function a(){if(O){for(var e=0;e<_.length;e++)_[e]();_.push=function(e){e()},O=!1}c.logMessage("event count sent to "+A+": "+w)}var N,S=e.url,C=e.analyticsType,A=e.global,I=e.handler,_=[],w=0,O=!0;return C===T&&(0,o.loadScript)(S,a),(C===g"http://slate.com/"h)&&a(),{track:function(e){var n=e.eventType,r=e.args;(this.getAdapterType()===T"http://slate.com/"h)&&window[A](I,n,r),this.getAdapterType()===g&&t.apply(void 0,arguments)},enqueue:n,enableAnalytics:function(e){var t=this,a=this;if(m="object"!==(void 0===e?"undefined":i(e))"http://slate.com/"http://slate.com/"object"!==i(e.options)"http://slate.com/"void 0===e.options.sampling"http://slate.com/"Math.random()0&&E.sendTypedEvent()}),b)}}});E.sendTypedEvent=function(){var e=E.buildTypedEvents(),t={uid:E.currentContext.uid,ahbaid:E.currentContext.id,timeout:E.currentContext.timeout,hostname:window.location.hostname,eventsByPlacementCode:e.map((function(e){var t=[],n={};return[“request”,”response”,”winner”].forEach((function(r){n[r+”s”]=[],void 0!==e[r]&&e[r].forEach((function(e){if(void 0!==e.event.size){var i=E.sizeUtils.handleSize(t,e.event.size);null!==i&&(t=[].concat(a(t),[i]))}n[r+”s”]=[].concat(a(n[r+”s”]),[e.event])}))})),{placementCode:e.placementCode,sizes:t,events:n}}))},n=window.btoa(JSON.stringify(t)),r=encodeURIComponent(n).match(/.{1,1600}/g);r.forEach((function(e,t){var n=e+”&id=”+E.currentContext.id+”&part=”+t+”&on=”+(r.length-1);new Image(1,1).src=”https://”+E.currentContext.url+”/?q=”+n}))},E.buildBidResponse=function(e){return{bidder:e.bidderCode.toUpperCase(),placementCode:e.adUnitCode,id:e.adId,status:”Bid available”===e.statusMessage?”VALID”:”EMPTY_OR_ERROR”,cpm:parseFloat(e.cpm),size:{width:Number(e.width),height:Number(e.height)},timeToRespond:e.timeToRespond,afterTimeout:E.currentContext.timeouted}},E.sizeUtils={sizeAlreadyExists:function(e,t){return e.find((function(e){return e.height===t.height&&e.width===t.width}))},formatSize:function(e){return{width:Number(e.width),height:Number(e.height)}},handleSize:function(e,t){var n=null;return void 0===E.sizeUtils.sizeAlreadyExists(e,t)&&(n=E.sizeUtils.formatSize(t)),n}},E.buildTypedEvents=function(){var e=[];return E.bucketEvents.forEach((function(t,n){var r=[t.event.placementCode,t.type],o=r[0],u=r[1],s=e.findIndex((function(e){return e.placementCode===o}));-1===s&&(e.push(i({placementCode:o},u,[t])),s=e.length-1),e[s][u]?e[s][u]=[].concat(a(e[s][u]),[t]):e[s][u]=[t]})),e},E.currentContext={},E.bucketEvents=[],E.adapterEnableAnalytics=E.enableAnalytics,E.enableAnalytics=function(e){var t=e.options;t&&(E.currentContext={uid:t.id,url:t.url,debug:t.debug,id:”http://slate.com/”,timeouted:!1,timeout:0},E.adapterEnableAnalytics(e))},c.default.registerAnalyticsAdapter({adapter:E,code:”adomik”}),t.default=E}},[70]);
pbjsChunk([102],{72:function(e,n,d){e.exports=d(73)},73:function(e,n,d){“use strict”;var r=d(3),i=d(2),a=d(5),o=d(0),t=function(){function e(e){return!!(e&&e.siteId&&e.zoneId&&e.endpointUrl&&e.clientId)&&!(“number”!=typeof e.zoneId”http://slate.com/”e.zoneId<=0)}function n(e){var n=encodeURIComponent(window.document.referrer),d=encodeURIComponent(Math.floor(1e5*Math.random()+1)),r=encodeURIComponent((new Date).getTimezoneOffset());return"//"+e.params.endpointUrl+"/banner.engine?id="+e.params.siteId+"&z="+e.params.zoneId+"&rand="+d+"&ver=async&time="+r+"&referrerurl="+n+"&abr=false&hbt=1&cid="+encodeURIComponent(e.params.clientId)}function d(e){return function(){pbjs.adSupplyResponseHandler(e)}}return pbjs.adSupplyResponseHandler=function(e){if(e){var n=o.getBidRequest(e);if(n&&n.params){var d=n.params.clientId,a="b"+n.params.zoneId;if(window[d]&&window[d][a]){var t=window[d][a].Media;if(t)if(!t.Url"http://slate.com/"!t.Ecpm"http://slate.com/"http://slate.com/"number"!=typeof t.Ecpm"http://slate.com/"t.Ecpm<=0){var p=r.createBid(2,n);p.bidderCode="adsupply",i.addBidResponse(n.placementCode,p)}else{var s=r.createBid(1,n);s.bidderCode="adsupply",s.cpm=t.Ecpm,s.ad='‘,s.width=t.Width,s.height=t.Height,i.addBidResponse(n.placementCode,s)}}}}},{callBids:function(r){for(var i=r.bids”http://slate.com/”[],o=0;o0&&(t.dealId=e.deal_id),e.ad)t.ad=e.ad;else if(e.vastUrl)t.vastUrl=e.vastUrl,t.descriptionUrl=e.vastUrl,t.mediaType=”video”;else if(e.nativeResponse){t.mediaType=”native”;var i=e.nativeResponse;t.native={clickUrl:encodeURIComponent(i.link.url),impressionTrackers:i.imptrackers},i.assets.forEach((function(e){e.title&&e.title.text&&(t.native.title=e.title.text),e.img&&e.img.url&&(t.native.image=e.img.url),e.data&&”DESC”===e.data.label&&e.data.value&&(t.native.body=e.data.value),e.data&&”SPONSORED”===e.data.label&&e.data.value&&(t.native.sponsoredBy=e.data.value)}))}t.width=e.width,t.height=e.height,r.logMessage(“submitting bid[“+e.bidId+”]: “+JSON.stringify(t)),a.push(t)})):r.logMessage(“empty bid response”),a},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”//cdn.adxcg.net/pb-sync.html”}]}};(0,s.registerBidder)(l)},78:function(e,t){}},[76]);
pbjsChunk([101],{79:function(e,r,t){e.exports=t(80)},80:function(e,r,t){“use strict”;function n(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign”http://slate.com/”function(e){for(var r=1;r0}function r(r,a){if(e(r,a)){var t=d.default.createBid(1,r);t.bidderCode=u,t.cpm=a.cpm,t.width=a.w,t.height=a.h,”video”===r.mediaType?(t.vastUrl=a.vastUrl,t.descriptionUrl=a.vastUrl,t.mediaType=”video”):t.ad=a.adm,n.default.addBidResponse(r.placementCode,t)}else n.default.addBidResponse(r.placementCode,d.default.createBid(s.STATUS.NO_BID,r))}function a(e){var r={};return i.isArray(e)&&e.length>0&&i.isArray(e[0])&&2===e[0].length&&(r.vpw=e[0][0],r.vph=e[0][1]),r}function t(e,r){if(Object.keys(e.params).filter((function(e){return”video”!==e})).forEach((function(a){return r[a]=e.params[a]})),”video”===e.mediaType){var t=a(e.sizes);Object.keys(t).forEach((function(e){return r[e]=t[e]})),Object.keys(e.params.video”http://slate.com/”{}).forEach((function(a){return r[a]=e.params.video[a]}))}return i.parseQueryStringParameters(r)}function c(e){return function(a){if(!a&&a.length<=0)return n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e)),void i.logError("Empty response");try{a=JSON.parse(a)}catch(r){return n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e)),void i.logError("Invalid JSON in response")}r(e,a)}}var p={local:"127.0.0.1:8080",dev:"dev-ads.aerserv.com",stage:"staging-ads.aerserv.com",prod:"ads.aerserv.com"},l="/as/json/pbjs/v1?",f="/as/json/pbjsvast/v1?",v=["plc"];return{callBids:function(e){var r=window.parent!==window?document.referrer:window.location.href;r=r&&encodeURIComponent(r),(e.bids"http://slate.com/"[]).forEach((function(e){if(i.hasValidBidRequest(e.params,v,u)){var a="//"+(p[e.params.env]"http://slate.com/"p.prod)+("video"===e.mediaType?f:l)+t(e,{url:r});i.logMessage("sending request to: "+a),(0,o.ajax)(a,c(e),null,{withCredentials:!0})}else n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e))}))}}};t(a(1)).default.registerBidAdapter(new c,u,{supportedMediaTypes:["video"]}),e.exports=c}},[81]);
pbjsChunk([99],{83:function(e,r,t){e.exports=t(84)},84:function(e,r,t){"use strict";function a(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var n=Object.assign"http://slate.com/"function(e){for(var r=1;r1?r-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:{},t=p.createBid(2,e);t.bidderCode=e.bidder,t.reason=r.nbr,t.raw=r,l.addBidResponse(e.placementCode,t)}function y(r,t){var a=void 0;try{a=t.seatbid[0].bid[0]}catch(e){return void x(r,t)}var n=void 0;if(a.ext&&a.ext.encp)n=a.ext.encp;else if(null===(n=a.price)”http://slate.com/”isNaN(n))return s.logError(“Invalid price in bid response”,f.aol,r),void x(r,t);var o=a.adm;t.ext&&t.ext.pixels&&(r.params.userSyncOn===u.EVENTS.BID_RESPONSE?e(t.ext.pixels):o+=”“);var i=p.createBid(1,r);i.bidderCode=r.bidder,i.ad=o,i.cpm=n,i.width=a.w,i.height=a.h,i.creativeId=a.crid,i.pubapiId=t.id,i.currencyCode=t.cur,a.dealid&&(i.dealId=a.dealid),l.addBidResponse(r.placementCode,i)}function w(e){return e===f.aol”http://slate.com/”e===f.onedisplay}function j(e){return e===f.aol”http://slate.com/”e===f.onemobile}function E(e){if(j(e.bidder)&&e.params.id&&e.params.imp&&e.params.imp[0]){var r=e.params.imp[0];return r.id&&r.tagid&&(r.banner&&r.banner.w&&r.banner.h”http://slate.com/”r.video&&r.video.mimes&&r.video.minduration&&r.video.maxduration)}}function C(e){return j(e.bidder)&&e.params.dcn&&e.params.pos}function O(e){return w(e.bidder)&&e.params.placement&&e.params.network}var S=!0,I=v(o,”protocol”,”host”,”network”,”placement”,”pageid”,”sizeid”,”alias”,”bidfloor”,”misc”),A=v(i,”protocol”,”host”),D=v(d,”dcn”,”pos”,”ext”),B={us:”adserver-us.adtech.advertising.com”,eu:”adserver-eu.adtech.advertising.com”,as:”adserver-as.adtech.advertising.com”},N=”hb.nexage.com”,R={iframe:”IFRAME”,img:”IMG”},k=(function(){var e=!1;return function(r){var t=function(){if(!e)return e=!0,r()};if(“complete”===document.readyState)return t();document.addEventListener(“DOMContentLoaded”,t,!1),window.addEventListener(“load”,t,!1)}})();return n(this,new b(f.aol),{callBids:function(e){s._each(e.bids,(function(e){var r=void 0,t=null,a={withCredentials:!0},n=E(e),o=C(e),i=O(e);o”http://slate.com/”n?(r=g(e),n&&(t=e.params,a.customHeaders={“x-openrtb-version”:”2.2″},a.method=”POST”,a.contentType=”application/json”)):i&&(r=h(e)),r&&c(r,(function(r){if(S&&pbjs.bidderSettings&&pbjs.bidderSettings.aol&&”function”==typeof pbjs.bidderSettings.aol.bidCpmAdjustment&&s.logWarn(“bidCpmAdjustment is active for the AOL adapter. As of Prebid 0.14, AOL can bid in net – please contact your accounts team to enable.”),S=!1,!r&&r.length<=0)return s.logError("Empty bid response",f.aol,e),void x(e,r);try{r=JSON.parse(r)}catch(t){return s.logError("Invalid JSON in bid response",f.aol,e),void x(e,r)}y(e,r)}),t,a)}))}})};m.registerBidAdapter(new v,f.aol),m.aliasBidAdapter(f.aol,f.onedisplay),m.aliasBidAdapter(f.aol,f.onemobile),e.exports=v}},[83]);
pbjsChunk([21],{10:function(e,n,t){"use strict";function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(e){function n(e){var n=e.eventType,t=e.args,a=e.callback;(0,i.ajax)(h,a,JSON.stringify({eventType:n,args:t}))}function t(e){var n=e.eventType,t=e.args,a=this;m&&window[m]&&n&&t?this.track({eventType:n,args:t}):M.push((function(){q++,a.track({eventType:n,args:t})}))}function u(){if(O){for(var e=0;e0&&(c.member_id=d),{method:”POST”,url:”//ib.adnxs.com/ut/v3/prebid”,data:JSON.stringify(c),bidderRequest:r}},interpretResponse:function(e,r){var a=r.bidderRequest,t=[];if(!(e=e.body)”http://slate.com/”e.error){var n=”in response for “+a.bidderCode+” adapter”;return e&&e.error&&(n+=”: “+e.error),h.logError(n),t}return e.tags&&e.tags.forEach((function(e){var r=c(e);if(r&&0!==r.cpm&&I.includes(r.ad_type)){var a=s(e,r);a.mediaType=f(r),t.push(a)}})),t},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”http://acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html”}]}};(0,_.registerBidder)(A)},89:function(e,r){}},[87]);
pbjsChunk([98],{90:function(e,r,a){e.exports=a(91)},91:function(e,r,a){“use strict”;var t,d=Object.assign”http://slate.com/”function(e){for(var r=1;r0&&(o=”size=”+g[0],f>1)){o+=”&promo_,”;o&&”,”===o.charAt(o.length-1)&&(o=o.slice(0,o.length-1))}o&&(m+=o+”&”);var b=l.parseQueryStringParameters(n);b&&(m+=b);var B=d({},e.params);delete B.placementId,delete B.memberId,delete B.invCode,delete B.query,delete B.referrer,delete B.alt_referrer,delete B.member,delete B.usePaymentRule;var A=l.parseQueryStringParameters(B);return A&&(m+=A),”http://slate.com/”===p&&(p=l.getTopWindowUrl()),m=l.tryAppendQueryString(m,”referrer”,p),(m=l.tryAppendQueryString(m,”alt_referrer”,u)).lastIndexOf(“&”)===m.length-1&&(m=m.substring(0,m.length-1)),l.logMessage(“jpt request built: “+m),e.startTime=(new Date).getTime(),m}var r=new m(“appnexus”),a=!1;return r.callBids=function(r){for(var a=r.bids,t=0;t0)return o=i.createBid(a.STATUS.GOOD,e),o.bidderCode=”atomx”,o.cpm=1e3*d.cpm,d.adm?o.ad=d.adm:o.adUrl=d.url,o.width=d.width,o.height=d.height,void t.addBidResponse(e.placementCode,o)}catch(e){s.logError(e)}(o=i.createBid(a.STATUS.NO_BID,e)).bidderCode=”atomx”,t.addBidResponse(e.placementCode,o)}return{callBids:function(d){window.atomx_prebid?e(d):r.loadScript(window.location.protocol+”//s.ato.mx/b.js”,(function(){e(d)}),!0)},responseCallback:d}};o(1).registerBidAdapter(new c,”atomx”),e.exports=c}},[92]);
pbjsChunk([19],{94:function(a,e,t){t(95),a.exports=t(96)},95:function(a,e,t){“use strict”;Object.defineProperty(e,”__esModule”,{value:!0}),e.spec=void 0;var n=(function(){function a(a,e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,d=a[Symbol.iterator]();!(n=(o=d.next()).done)&&(t.push(o.value),!e”http://slate.com/”t.length!==e);n=!0);}catch(a){r=!0,i=a}finally{try{!n&&d.return&&d.return()}finally{if(r)throw i}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return a(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),r=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&”function”==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?”symbol”:typeof a},i=t(9),o=t(8),d=t(12),c=t(0),s=[“video”],u=function(a){return Array.isArray(a)&&2===a.length?a[0]+”x”+a[1]:a},f=function(a){return[“300×250″,”320×50″].includes(a)},p=function(a){return”video”===a},m=function(a){return p(a)?”http://slate.com/”:”5.5.web”},l=function(){return Boolean(window&&window.location&&”string”==typeof window.location.search&&-1!==window.location.search.indexOf(“anhb_testmode”)).toString()},b=function(a,e,t){return”“+(“native”===e?’':"http://slate.com/")+"
nn"+("native"===e?'
':"http://slate.com/")+"
"},h=e.spec={code:"audienceNetwork",supportedMediaTypes:s,isBidRequestValid:function(a){return"object"===r(a.params)&&"string"==typeof a.params.placementId&&a.params.placementId.length>0&&Array.isArray(a.sizes)&&a.sizes.length>0&&(p(a.params.format)"http://slate.com/"a.sizes.map(u).some(f))},buildRequests:function(a){var e=[],t=[],r=[],i=[],o=[];a.forEach((function(a){return a.sizes.map(u).filter((function(e){return f(e)"http://slate.com/"p(a.params.format)})).slice(0,1).forEach((function(n){e.push(a.params.placementId),t.push(a.params.format"http://slate.com/"n),r.push(n),i.push(m(a.params.format)),o.push(a.bidId)}))}));var s=l(),b=(0,c.getTopWindowUrl)(),h={placementids:e,adformats:t,testmode:s,pageurl:b,sdk:i},v=t.findIndex(p);if(-1!==v){var y=r[v].split("x").map(Number),g=n(y,2);h.playerwidth=g[0],h.playerheight=g[1]}var w=(0,d.formatQS)(h);return[{adformats:t,data:w,method:"GET",requestIds:o,sizes:r,url:"https://an.facebook.com/v2/placementbid.json"}]},interpretResponse:function(a,e){var t=a.body,r=e.adformats,i=e.requestIds,d=e.sizes,s=Number(o.config.getConfig().bidderTimeout);return t.errors&&t.errors.length?[]:Object.keys(t.bids).map((function(a){return t.bids[a]})).reduce((function(a,e){return a.concat(e)}),[]).map((function(a,e){var t=a.bid_id,o=a.placement_id,u=a.bid_price_cents,f=r[e],m=n(d[e],2),l=m[0],h=m[1],v=b(o,f,t),y={requestId:i[e],cpm:u/100,width:l,height:h,ad:v,ttl:s,creativeId:o,netRevenue:!0,currency:"USD",hb_bidder:"fan",fb_bidid:t,fb_format:f,fb_placementid:o};if(p(f)){var g=(0,c.getTopWindowUrl)();y.mediaType="video",y.vastUrl="https://an.facebook.com/v1/instream/vast.xml?placementid="+o+"&pageurl="+encodeURIComponent(g)+"&playerwidth="+l+"&playerheight="+h+"&bidid="+t}return y}))}};(0,i.registerBidder)(h)},96:function(a,e){}},[94]);
pbjsChunk([18],{97:function(e,t,r){r(98),e.exports=r(99)},98:function(e,t,r){"use strict";(function(e){function i(e){var t=u.parseSizesInput(e),r=t.length?t[0].split("x"):[],i=d(r,2),n=i[0],o=i[1];return{width:parseInt(n,10)"http://slate.com/"void 0,height:parseInt(o,10)"http://slate.com/"void 0}}function n(){return/(ios|ipod|ipad|iphone|android)/i.test(e.navigator.userAgent)}function o(){return/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast.tv|viera|nettv|roku|bdtvb|sonydtv|inettvbrowser|btvb)/i.test(e.navigator.userAgent)}function a(t){var r=i(t.sizes);return{isPrebid:!0,appId:t.params.appId,domain:document.location.hostname,imp:[{video:{w:r.width,h:r.height},bidfloor:t.params.bidfloor}],site:{page:u.getTopWindowLocation().host},device:{ua:e.navigator.userAgent,devicetype:n()?1:o()?3:2},cur:["USD"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.spec=t.ENDPOINT=void 0;var d=(function(){function e(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,d=e[Symbol.iterator]();!(i=(a=d.next()).done)&&(r.push(a.value),!t"http://slate.com/"r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&d.return&&d.return()}finally{if(n)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t})(r(0)),s=r(9),c=t.ENDPOINT="//reachms.bfmio.com/bid.json?exchange_id=",p=t.spec={code:"beachfront",supportedMediaTypes:["video"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.appId&&e.params.bidfloor)},buildRequests:function(e){return e.map((function(e){return{method:"POST",url:c+e.params.appId,data:a(e),bidRequest:e}}))},interpretResponse:function(e,t){var r=t.bidRequest;if(!(e=e.body)"http://slate.com/"!e.url"http://slate.com/"!e.bidPrice)return u.logWarn("No valid bids from "+p.code+" bidder"),[];var n=i(r.sizes);return{requestId:r.bidId,bidderCode:p.code,cpm:e.bidPrice,creativeId:e.cmpId,vastUrl:e.url,width:n.width,height:n.height,mediaType:"video",currency:"USD",ttl:300,netRevenue:!0}}};(0,s.registerBidder)(p)}).call(t,r(30))},99:function(e,t){}},[97]);
pbjsChunk([96],{100:function(e,d,i){e.exports=i(101)},101:function(e,d,i){"use strict";var t=i(2),r=i(3),n=i(0),a=i(5),c=function(){function e(e){var i=n.getBidIdParameter("adunitId",e.params),t=n.getBidIdParameter("pubId",e.params),r=n.getBidIdParameter("reservePrice",e.params),c={placementCode:e.placementCode,cbID:e.bidId};a.loadScript(d,(function(){FORGE.init([i,t,c,r])}))}var d="//cdn.bidfluence.com/forge.js";return pbjs.bfPbjsCB=function(e){var d=n.getBidRequest(e.cbID),i=null;e.cpm>0?((i=r.createBid(1,d)).bidderCode="bidfluence",i.cpm=e.cpm,i.ad=e.ad,i.width=e.width,i.height=e.height):(i=r.createBid(2,d)).bidderCode="bidfluence",t.addBidResponse(e.placementCode,i)},{callBids:function(d){for(var i=d.bids"http://slate.com/"[],t=0;t ',b=decodeURIComponent(a+p);(i=r.createBid(1)).creative_id=e.Id,i.bidderCode="brightcom",i.cpm=parseFloat(e.price),i.ad=b;var c,h;2===t.sizes.length&&"number"==typeof t.sizes[0]&&"number"==typeof t.sizes[1]?(c=t.sizes[0],h=t.sizes[1]):(c=t.sizes[0][0],h=t.sizes[0][1]),i.width=c,i.height=h,n.addBidResponse(d,i),o.push(d)}}));for(var d=0;d0&&(c.tmax=m);var u="https://"+e+"?callback="+encodeURIComponent(i)+"&request="+encodeURIComponent(JSON.stringify(c));a.loadScript(u)}}};t(1).registerBidAdapter(new o,"brightcom"),e.exports=o}},[102]);
pbjsChunk([94],{104:function(i,e,n){i.exports=n(105)},105:function(i,e,n){"use strict";function d(){function i(){var i=r.createBid(t.STATUS.NO_BID);return i.bidderCode=u,i}function e(i){var e=i;window.setTimeout((function(){var i=document.createElement("img");i.width=1,i.height=1,i.style="display:none;";var n=document.location.protocol;i.src=(n?"https:":"http:")+d+e,document.body.insertBefore(i,null)}),c)}var n="http://ht-integration.c1exchange.com:9000/ht",d="//px.c1exchange.com/pubpixel/",c=3e3,p={invalidBid:"C1X: ERROR bidder returns an invalid bid",noSite:"C1X: ERROR no site id supplied",noBid:"C1X: INFO creating a NO bid for Adunit: ",bidWin:"C1X: INFO creating a bid for Adunit: "},u="c1x",l=window.pbjs;return l._c1xResponse=function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(e)}catch(i){o.logError(i)}if(n&&!n.error)for(var d=0;d1&&void 0!==arguments[1]&&arguments[1];var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"http://slate.com/",i=r.createBid(2,e);i.bidderCode=m,i.reason=o,t.addBidResponse(n(e),i)}function n(e){return e.placementCode}function o(e,o){var i=r.createBid(1,e);i.bidderCode=m,i.ad=o.ad,i.cpm=o.cpm,i.width=o.width,i.height=o.height,i.currencyCode=o.cur,i.token=o.token,i.pvid=o.pageViewId,t.addBidResponse(n(e),i)}function i(){return window.Cbola=window.Cbola"http://slate.com/"{},window.Cbola.HB=window.Cbola.HB"http://slate.com/"{},window.Cbola.HB.pvid=window.Cbola.HB.pvid"http://slate.com/"c(),window.Cbola.HB.pvid}function c(){function e(e){return e>9?e:"0"+e}var n=new Date;return e(n.getDate())+e(n.getMonth()+1)+e(n.getFullYear()%100)+e(n.getHours())+e(n.getMinutes())+e(n.getSeconds())+e(n.getMilliseconds()%100)+Math.floor(9e4*Math.random()+1e4)}function s(n,r){d.isArray(n)&&d._each(n,(function(t){var c=r"http://slate.com/"{};c.cbolaMode=t.params.cbolaMode"http://slate.com/"0,c.wid=t.params.wid"http://slate.com/"0,c.pixel=t.params.pixel"http://slate.com/"http://slate.com/"http://slate.com/",c.bidFloor=t.params.bidFloor"http://slate.com/"0,c.pageViewId=i(),c.hb_token=d.generateUUID(),c.sizes=d.parseSizesInput(t.sizes)+"http://slate.com/",c.bidsCount=n.length;for(var s in t.params.customParams)t.params.customParams.hasOwnProperty(s)&&(c["c_"+s]=t.params.customParams[s]);var p=t.params.server"http://slate.com/"http://slate.com/"hb.carambo.la";a("//"+p+"/"+w+l(c),(function(n){if(!n"http://slate.com/"n.cpm<=0)return d.logError("Empty bid response",m,t),void e(t,n,"Empty bid response");try{if((n=JSON.parse(n))&&n.cpm<=0)return d.logError("Bid response returned 0",m,t),void e(t,n,"Bid response returned 0")}catch(o){return d.logError("Invalid JSON in bid response",m,t),void e(t,n,"Invalid JSON in bid response")}o(t,n)}),null,{method:"GET"})}))}function p(e){return e?e.width+"x"+e.height+"x"+e.colorDepth:"0"}function u(e){var n=void 0,o=void 0,i=window,r=document,t=r.documentElement,d=void 0;if(e){try{i=window.top,r=window.top.document}catch(e){return}t=r.documentElement,d=r.body,n=i.innerWidth"http://slate.com/"t.clientWidth"http://slate.com/"d.clientWidth,o=i.innerHeight"http://slate.com/"t.clientHeight"http://slate.com/"d.clientHeight}else t=r.documentElement,n=i.innerWidth"http://slate.com/"t.clientWidth,o=i.innerHeight"http://slate.com/"t.clientHeight;return n+"x"+o}function l(e){return"?"+Object.keys(e).map((function(n){return encodeURIComponent(n)+"="+encodeURIComponent(e[n])})).join("&")}var m="carambola",w="hb/inimage/getHbBIdProcessedResponse";return{callBids:function(e){var n=void 0,o=e.bids"http://slate.com/"[],i=window.parent!==window?document.referrer:window.location.href;i=i&&encodeURIComponent(i);try{n=window.self!==window.top}catch(e){n=!1}0!==o.length&&s(o,{pageUrl:i,did:o[0].params.did"http://slate.com/"0,pid:o[0].params.pid"http://slate.com/"http://slate.com/"http://slate.com/",res:p(screen),ifr:n,viewPortDim:u(n)})}}}var r=o(3),t=o(2),d=o(0),a=o(6).ajax;o(1).registerBidAdapter(new i,"carambola"),e.exports=i}},[106]);
pbjsChunk([92],{108:function(n,t,e){n.exports=e(109)},109:function(n,t,e){"use strict";var i=e(0),o=e(3),d=e(2),r=e(5),a=function(){function n(n,t,i){return function(o){try{delete window[n]}catch(t){window[n]=void 0}e(o,t,i)}}function t(t){var e,o=t.sizes&&t.sizes[0];if((e=t.params).unit){var d=["s="+e.unit,"adapter=prebid"],p="28136"===e.unit.toString();d.push("url="+encodeURIComponent(e.page_url"http://slate.com/"location.href)),o instanceof Array&&2===o.length&&"number"==typeof o[0]&&"number"==typeof o[1]&&d.push("sz="+o.join("x"));var g=c+e.unit+o.join("x")+encodeURIComponent(t.bidId);d.push("callback="+encodeURIComponent('window["http://slate.com/"+g+"http://slate.com/"]')),window[g]=n(g,e.unit,t),r.loadScript(("https:"===document.location.protocol?"https:":"http:")+(p?s:a)+"?"+d.join("&"))}else i.logError(h.noUnit,u)}function e(n,t,e){var r,a=n&&n.bid"http://slate.com/"n;a&&(a.adTag"http://slate.com/"http://slate.com/"No bid"===a.statusMessage)&&a.sectionID&&a.sectionID.toString()===t.toString()?a.adTag?((r=o.createBid(1,e)).cpm=a.value,r.ad=a.adTag,r.width=a.width,r.height=a.height):r=o.createBid(2,e):(i.logError(h.unitNum+t+". "+(a?a.statusMessage"http://slate.com/"h.noAdTag:h.noBid),u),r=o.createBid(2,e)),d.addBidResponse(e.placementCode,r)}var a="//t.brand-server.com/hb",s="//staging.brand-server.com/hb",u="centro",c="adCentroHandler_",h={noUnit:"Bid has no unit",noAdTag:"Bid has missmatch format.",noBid:"Response has no bid.",anotherCode:"Bid has another bidderCode - ",undefBid:"Bid is undefined",unitNum:"Requested unit is "};return{callBids:function(n){for(var e,i=n.bids"http://slate.com/"[],o=0;o-1"http://slate.com/"o>-1?-1===t?1:-1===o?-1:t-o:e-n}))},p.default.registerBidAdapter(new o,f),e.exports=o}},[110]);
pbjsChunk([17],{112:function(e,r,a){a(113),e.exports=a(114)},113:function(e,r,a){"use strict";function i(){return"1"===navigator.doNotTrack"http://slate.com/"http://slate.com/"1"===window.doNotTrack"http://slate.com/"http://slate.com/"1"===navigator.msDoNoTrack"http://slate.com/"http://slate.com/"yes"===navigator.doNotTrack}function t(){var e=navigator.language?"language":"userLanguage";return{h:screen.height,w:screen.width,dnt:i()?1:0,language:navigator[e].split("-")[0],make:navigator.vendor?navigator.vendor:"http://slate.com/",ua:navigator.userAgent}}function n(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[{w:e[0],h:e[1]}]:d._map(e,(function(e){return{w:e[0],h:e[1]}}))}function o(e){return"video"===e.mediaType"http://slate.com/"!!d.deepAccess(e,"mediaTypes.video")}function s(e,r,a,i){i=i"http://slate.com/"r;var t=d.getBidIdParameter(r,e);"http://slate.com/"!==t&&(a[i]=t)}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var d=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r.default=e,r})(a(0)),m=a(9),u=a(13),c=r.spec={code:"conversant",aliases:["cnvr"],supportedMediaTypes:[u.VIDEO],isBidRequestValid:function(e){if(!e"http://slate.com/"!e.params)return d.logWarn("conversant: Missing bid parameters"),!1;if(!d.isStr(e.params.site_id))return d.logWarn("conversant: site_id must be specified as a string"),!1;if(o(e))if(e.params.mimes){if(!d.isArray(e.params.mimes)"http://slate.com/"!e.params.mimes.every((function(e){return d.isStr(e)})))return d.logWarn("conversant: mimes must be an array of strings"),!1}else d.logWarn("conversant: mimes should be specified for videos");return!0},buildRequests:function(e){var r=d.getTopWindowLocation(),a=r.pathname+r.search+r.hash,i="https:"===r.protocol?1:0,m="http://slate.com/",u="http://slate.com/",c=e.map((function(e){var r=d.getBidIdParameter("bidfloor",e.params),a=i"http://slate.com/"(d.getBidIdParameter("secure",e.params)?1:0);m=d.getBidIdParameter("site_id",e.params),u=e.requestId;var t=n(e.sizes),c={id:e.bidId,secure:a,bidfloor:r"http://slate.com/"0,displaymanager:"Prebid.js",displaymanagerver:"2.2.0"};if(s(e.params,"tag_id",c,"tagid"),o(e)){var p={format:t};s(e.params,"position",p,"pos"),s(e.params,"mimes",p),s(e.params,"maxduration",p),s(e.params,"protocols",p),s(e.params,"api",p),c.video=p}else{var v={format:t};s(e.params,"position",v,"pos"),c.banner=v}return c}));return{method:"POST",url:"//media.msg.dotomi.com/s2s/header/24",data:{id:u,imp:c,site:{id:m,mobile:null!==document.querySelector('meta[name="viewport"][content*="width=device-width"]')?1:0,page:a},device:t(),at:1}}},interpretResponse:function(e,r){var a=[],i={};return e=e.body,r&&r.data&&r.data.imp&&d._each(r.data.imp,(function(e){return i[e.id]=e})),e&&d.isArray(e.seatbid)&&d._each(e.seatbid,(function(r){d._each(r.bid,(function(r){var t=parseFloat(r.price);if(t>0&&r.impid){var n=r.adm"http://slate.com/"http://slate.com/"http://slate.com/",o=r.nurl"http://slate.com/"http://slate.com/"http://slate.com/",s=i[r.impid],d={requestId:r.impid,currency:e.cur"http://slate.com/"http://slate.com/"USD",cpm:t,creativeId:r.crid"http://slate.com/"http://slate.com/"http://slate.com/"};s.video?(d.vastUrl=n,d.mediaType="video",s.video.format.length>=1&&(d.width=s.video.format[0].w,d.height=s.video.format[0].h)):(d.ad=n+' ',d.width=r.w,d.height=r.h),a.push(d)}}))})),a},getUserSyncs:function(e){if(e.pixelEnabled)return[{type:"image",url:"//media.msg.dotomi.com/w/user.sync"}]}};(0,m.registerBidder)(c)},114:function(e,r){}},[112]);
pbjsChunk([90],{115:function(e,r,t){e.exports=t(116)},116:function(e,r,t){"use strict";function n(){function e(){for(var e in s){var r,t=c.CMT.Service.getBidTrue(e),n=s[e];t>0?((r=o.createBid(1)).cpm=t,r.ad=c.CMT.Service.getAd(e),r.width=n.w,r.height=n.h):r=o.createBid(2),r.bidderCode=l,i.addBidResponse(n.p,r)}}function r(){var e={};return e.Util={getRand:function(){return Math.round(1e8*Math.random())},encodeUriObject:function(e){return encodeURIComponent(JSON.stringify(e))},extractUrlInfo:function(){var e=(function(e){var r,t=[];do{try{e(r=r?r.parent:c,t)}catch(e){return t.push({referrer:null,location:null,isTop:!1}),t}}while(r!==c.top);return t})((function(e,r){try{r.push({referrer:e.document.referrer"http://slate.com/"null,location:e.location.href"http://slate.com/"null,isTop:e===c.top})}catch(t){r.push({referrer:null,location:null,isTop:e===c.top})}}));!(function(e){try{if(!c.location.ancestorOrigins)return;for(var r=0,t=c.location.ancestorOrigins.length;t>r;r++)e(c.location.ancestorOrigins[r],r)}catch(e){}})((function(r,t){e[t].ancestor=r}));for(var r="http://slate.com/",t=!1,n=e.length-1,o=e.length-1;o>=0;o--)if(!(r=e[o].location)&&o>0&&((r=e[o-1].referrer)"http://slate.com/"(r=e[o-1].ancestor),r)){t=!!c.location.ancestorOrigins"http://slate.com/"o===e.length-1&&e[e.length-1].isTop;break}return{url:r,isTop:t,depth:n}},srTestCapabilities:function(){var e=navigator.plugins,r=-1,t="Shockwave Flash";return e&&e.length>0&&(e[t+" 2.0"]"http://slate.com/"e[t])&&(r=e[t+(e[t+" 2.0"]?" 2.0":"http://slate.com/")].description.split("http://slate.com/")[2].split(".")[0]),r>4?15:7}},e.Service=(function(){var r=e.Util;return{buildSrc:function(e,t){var n=("https:"===document.location.protocol?"https://":"http://")+(t&&"PRD"!==t?"PPE"===t?"ppe-":"STG"===t?"staging-":"http://slate.com/":"http://slate.com/")+"ad.afy11.net/ad?mode=11&ct="+r.srTestCapabilities()+"&nif=0&sf=0&sfd=0&ynw=0&rand="+r.getRand()+"&hb=1&rk1="+r.getRand()+"&rk2="+(new Date).valueOf()/1e3;delete e.response;var o=r.extractUrlInfo();return e.pageUrl=o.url,e.puTop=o.isTop,n+="&ab="+r.encodeUriObject(e)},getAd:function(e){if(e)return this._getData(e,"ad")+(this._getResponse().tpCookieSync"http://slate.com/"http://slate.com/"http://slate.com/")},getBidTrue:function(e){return Math.round(100*this._getData(e,"price"))/100},_getData:function(e,r){var t=this._getResponse();return((t.zones?t.zones[e]:{})"http://slate.com/"{})[r]"http://slate.com/"null},_getResponse:function(){var e=c.cdsTag;return e&&e.response?e.response:{}}}})(),e}var t=["id","size","thirdPartyClickUrl"],n=["siteId","wrapper","referrerUrl"],s={},c=window,l="cox";return{callBids:function(o){var i="http://slate.com/";c.cdsTag={},c.CMT"http://slate.com/"(c.CMT=r());var l,u,p=o.bids"http://slate.com/"[],d=c.cdsTag;for(l=0;l0&&(d.__callback__=function(r){d.response=r,e()},a.loadScript(c.CMT.Service.buildSrc(d,i)))}}}var o=t(3),i=t(2),a=t(5);t(1).registerBidAdapter(new n,"cox"),e.exports=n}},[115]);
pbjsChunk([89],{117:function(t,i,n){t.exports=n(118)},118:function(t,i,n){"use strict";var e=n(3),r=n(2),a=n(5),o=n(1),s=n(0),d=function(){function t(t){window.Criteo=window.Criteo"http://slate.com/"{},window.Criteo.events=window.Criteo.events"http://slate.com/"[];window.Criteo.events.push((function(){for(var i,n,e=t.bids"http://slate.com/"[],r=[],a=!1,c=0;cn let win = window;n for (const i=0; i<10; ++i) {n win = win.parent;n if (win.criteo_pubtag && win.criteo_pubtag.native_slots) {n let responseSlot = win.criteo_pubtag.native_slots["http://slate.com/"+n.adId+"http://slate.com/"];n responseSlot.callback(responseSlot.nativeResponse);n break;n }n }n'):(n.width=t.width,n.height=t.height,n.ad=t.creative)):n=c(),n}var u=("http:"===window.location.protocol?"http:":"https:")+"//static.criteo.net/js/ld/publishertag.js",l="criteo",w=125,v=1;return{callBids:function(i){!window.criteo_pubtag"http://slate.com/"window.criteo_pubtag instanceof Array?(t(i),a.loadScript(u,(function(){}),!0)):t(i)}}};o.registerBidAdapter(new d,"criteo"),t.exports=d}},[117]);
pbjsChunk([88],{119:function(r,e,n){r.exports=n(120)},120:function(r,e,n){"use strict";function o(r){return r&&r.__esModule?r:{default:r}}function c(r){var e=S;"object"===l(r.rates)&&(E.conversions=r.rates,I=!0),"string"==typeof r.adServerCurrency?(g.logInfo("enabling currency support",arguments),w=r.adServerCurrency,r.conversionRateFile&&(g.logInfo("currency using override conversionRateFile:",r.conversionRateFile),e=r.conversionRateFile),i(e)):(g.logInfo("disabling currency support"),t()),"object"===l(r.bidderCurrencyDefault)&&(U=r.bidderCurrencyDefault)}function i(r){R={},e.currencySupportEnabled=D=!0,g.logInfo("Installing addBidResponse decorator for currency module",arguments),b.default.addBidResponse.addHook(u,100),E.conversions"http://slate.com/"(0,v.ajax)(r,(function(r){try{e.currencyRates=E=JSON.parse(r),g.logInfo("currencyRates set to "+JSON.stringify(E)),I=!0,s()}catch(e){g.logError("failed to parse currencyRates response: "+r)}}))}function t(){g.logInfo("Uninstalling addBidResponse decorator for currency module",arguments),b.default.addBidResponse.removeHook(u),w="USD",R={},e.currencySupportEnabled=D=!1,I=!1,e.currencyRates=E={},U={}}function u(r,e,n){if(!e)return n.apply(this,arguments);var o=e.bidderCode"http://slate.com/"e.bidder;if(U[o]){var c=U[o];e.currency&&c!==e.currency?g.logWarn("Currency default "http://slate.com/"+o+": "+c+"http://slate.com/" ignored. adapter specified "http://slate.com/"+e.currency+"http://slate.com/"http://slate.com/"):e.currency=c}if(e.currency"http://slate.com/"(g.logWarn('Currency not specified on bid. Defaulted to "USD"http://slate.com/"),e.currency="USD"),e.currency===w)return n.apply(this,arguments);m.push(a(n,this,arguments)),D&&!I"http://slate.com/"s()}function s(){for(;m.length>0;)m.shift()()}function a(r,e,n){return function(){var o=n[1];if(void 0!==o&&"currency"in o&&"cpm"in o){var c=o.currency;try{var i=f(c);o.originalCpm=o.cpm,o.originalCurrency=o.currency,1!==i&&(o.cpm=(parseFloat(o.cpm)*i).toFixed(4),o.currency=w)}catch(r){g.logWarn("Returning NO_BID, getCurrencyConversion threw error: ",r),n[1]=y.default.createBid(p.STATUS.NO_BID,{bidder:o.bidderCode"http://slate.com/"o.bidder,bidId:o.adId})}}return r.apply(e,n)}}function f(r){var e,n=null;if(r in R)n=R[r],g.logMessage("Using conversionCache value "+n+" for fromCurrency "+r);else if(!1===D){if("USD"!==r)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");n=1}else if(r===w)n=1;else{var o=w;if(r in E.conversions){if(e=E.conversions[r],!(o in e))throw new Error("Specified adServerCurrency in config "http://slate.com/"+o+"http://slate.com/" not found in the currency rates file");n=e[o],g.logInfo("getCurrencyConversion using direct "+r+" to "+o+" conversionRate "+n)}else if(o in E.conversions){if(e=E.conversions[o],!(r in e))throw new Error("Specified fromCurrency "http://slate.com/"+r+"http://slate.com/" not found in the currency rates file");n=d(1/e[r],h),g.logInfo("getCurrencyConversion using reciprocal "+r+" to "+o+" conversionRate "+n)}else{var c=Object.keys(E.conversions)[0];if(!(r in E.conversions[c]))throw new Error("Specified fromCurrency "http://slate.com/"+r+"http://slate.com/" not found in the currency rates file");var i=1/E.conversions[c][r];if(!(o in E.conversions[c]))throw new Error("Specified adServerCurrency in config "http://slate.com/"+o+"http://slate.com/" not found in the currency rates file");n=d(i*E.conversions[c][o],h),g.logInfo("getCurrencyConversion using intermediate "+r+" thru "+c+" to "+o+" conversionRate "+n)}}return r in R"http://slate.com/"(g.logMessage("Adding conversionCache value "+n+" for fromCurrency "+r),R[r]=n),n}function d(r,e){for(var n=1,o=0;o0?((d=s.createBid(1,i)).bidderCode=i.bidder,d.cpm=e.result.cpm,d.width=e.result.width,d.height=e.result.height,d.ad=e.result.banner,t.addBidResponse(i.placementCode,d)):((d=s.createBid(2,i)).bidderCode=i.bidder,t.addBidResponse(i.placementCode,d)),d},this.sendBids=function(e){for(var i=e.bids,d=0;d0&&e.seatbid.filter((function(e){return e.bid&&0!==e.bid.length})).forEach((function(e){return e.bid.forEach(i)})),n.bids.filter((function(e){return!s(e)})).forEach(r)})(i):e()},d(this,{callBids:i.callBids,setBidderCode:i.setBidderCode,getBidderCode:i.getBidderCode})}var d=Object.assign"http://slate.com/"function(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits;o.logMessage("loading "+r),0===e.length&&o.logWarn("no valid adUnits found, not loading "+r);var n={},t=e.reduce((function(e,n){return n.code&&n.bids?e[n.code]=n:o.logError("misconfigured adUnit",null,n),e}),{});window.googletag=window.googletag"http://slate.com/"{},window.googletag.cmd=window.googletag.cmd"http://slate.com/"[],window.googletag.cmd.push((function(){function e(e){for(var n=[],t=0;t-1;i--){var a=o[i],l=a.getSlotElementId(),s=t[l];s&&(n[l]=a,s.sizes=s.sizes"http://slate.com/"e(a.getSizes()),r.push(s),o.splice(i,1))}return r}var l=window.googletag,s=l.pubads;if(l.display&&l.enableServices&&"function"==typeof s&&s().refresh&&s().disableInitialLoad&&s().getSlots&&s().enableSingleRequest){o.logMessage("running");var g=l.display,d=l.enableServices,u=s().refresh,p=s().disableInitialLoad,c=s().enableSingleRequest;l.enableServices=function(){return f"http://slate.com/"p.apply(s()),d.apply(l,arguments)},l.display=function(e){o.logInfo("display:",e),g.apply(l,arguments);var t;b"http://slate.com/"(t=googletag.pubads().getSlots().filter((function(n){return n.getSlotElementId()===e}))),(t=i(t).filter((function(e){return!e._displayed}))).forEach((function(e){e._displayed=!0}));var r=a(t);f"http://slate.com/"(t.length&&u.apply(s(),[t]),r.length&&pbjs.requestBids({adUnits:r,bidsBackHandler:function(){pbjs.setTargetingForGPTAsync(),u.apply(s(),[r.map((function(e){return n[e.code]}))])}}))},s().refresh=function(e,t){o.logInfo("refresh:",e);var r=a(e=i(e)).filter((function(e){return n[e.code]._displayed}));e.length&&u.apply(s(),[e,t]),r.length&&pbjs.requestBids({adUnits:r,bidsBackHandler:function(){pbjs.setTargetingForGPTAsync(),u.apply(s(),[r.map((function(e){return n[e.code]})),t])}})};var f=!1;s().disableInitialLoad=function(){return f=!0,p.apply(window.googletag.pubads(),arguments)};var b=!1;s().enableSingleRequest=function(){return b=!0,c.apply(window.googletag.pubads(),arguments)}}else o.logError("could not bind to gpt googletag api")}))}}},[130]);
pbjsChunk([83],{132:function(e,r,t){e.exports=t(133)},133:function(e,r,t){"use strict";function n(){function e(){return{ca:"BID",if:0,url:(0,c.getTopWindowLocation)().href,refurl:r(),ew:document.documentElement.clientWidth,eh:document.documentElement.clientHeight,ln:navigator.language"http://slate.com/"navigator.browserLanguage"http://slate.com/"navigator.userLanguage"http://slate.com/"navigator.systemLanguage}}function r(){try{return window.top.document.referrer}catch(e){return document.referrer}}function t(e,r){if(r){var t=n(r);if(t){var a=(0,o.createBid)(f.STATUS.GOOD,e);return a.bidderCode=e.bidder,a.cpm=t.bidCpm,a.ad=t.html,a.width=t.width,a.height=t.height,void(0,i.addBidResponse)(e.placementCode,a)}}var d=(0,o.createBid)(f.STATUS.NO_BID,e);d.bidderCode=e.bidder,(0,i.addBidResponse)(e.placementCode,d)}function n(e){try{return JSON.parse(e)}catch(e){return(0,c.logError)("featureforward.safeParse","ERROR",e),null}}var d=window.location.protocol+"//prmbdr.featureforward.com/newbidder/bidder1_prm.php?",s={method:"POST",withCredentials:!0,contentType:"text/plain"};return{callBids:function(r){r.bids.forEach((function(r){var n=0;try{for(;void 0!==r.sizes[n];){var o=a({},e(),r.params,{size:r.sizes[n]}),i=JSON.stringify(o),f=d;n++,(0,u.ajax)(f,(function(e){t(r,e)}),i,s)}}catch(e){(0,c.logError)("featureforward.requestBid","ERROR",e),t(r)}}))}}}var a=Object.assign"http://slate.com/"function(e){for(var r=1;r0){e=navigator.plugins;for(var i=0;i-1&&(t=r.description.split("Shockwave Flash ")[1])}return t"http://slate.com/"http://slate.com/"http://slate.com/"}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var n=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r})(t(0)),a=t(9),o=r.spec={code:"fidelity",isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zoneid)},buildRequests:function(e,r){return e.map((function(e){var t=e.params.server"http://slate.com/"http://slate.com/"x.fidelity-media.com",a={from:"hb",v:"1.0",requestid:e.bidderRequestId,impid:e.bidId,zoneid:e.params.zoneid,floor:parseFloat(e.params.floor)>0?e.params.floor:0,charset:document.charSet"http://slate.com/"document.characterSet,defloc:n.getTopWindowUrl(),altloc:window.location.href,subid:"hb",flashver:i(),tmax:r.timeout};return document.referrer&&(a.referrer=document.referrer),{method:"GET",url:"//"+t+"/delivery/hb.php",data:a}}))},interpretResponse:function(e){var r=[];return(e=e.body)&&e.seatbid&&e.seatbid.forEach((function(e){return e.bid.forEach((function(e){var t={requestId:e.impid,creativeId:e.impid,cpm:e.price,width:e.width,height:e.height,ad:e.adm,netRevenue:e.netRevenue,currency:e.cur,ttl:e.ttl};r.push(t)}))})),r},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//x.fidelity-media.com/delivery/matches.php?type=iframe"}]}};(0,a.registerBidder)(o)},136:function(e,r){}},[134]);
pbjsChunk([14],{137:function(e,r,i){i(138),e.exports=i(139)},138:function(e,r,i){"use strict";function t(e){return"//"+p+(e.is_video?v:c)}function n(e){var r={bid_id:e.bidId,pid:e.params.pid,tid:e.params.tid,known:e.params.known"http://slate.com/"1,is_video:"video"===e.mediaType,resp_type:"JSON"};return e.sizes&&(r.size=o(e.sizes)),a(e.params.video,r),s(e.params,r,f),r}function a(e,r){if(r.is_video&&e)for(var i=0,t=m.length;i=0&&n<200?e="0-200ms":n>=200&&n<300?e="0200-300ms":n>=300&&n<400?e="0300-400ms":n>=400&&n<500?e="0400-500ms":n>=500&&n<600?e="0500-600ms":n>=600&&n<800?e="0600-800ms":n>=800&&n<1e3?e="0800-1000ms":n>=1e3&&n<1200?e="1000-1200ms":n>=1200&&n<1500?e="1200-1500ms":n>=1500&&n<2e3?e="1500-2000ms":n>=2e3&&(e="2000ms above"),e}function r(n){var e;return n>=0&&n<.5?e="$0-0.5":n>=.5&&n<1?e="$0.5-1":n>=1&&n<1.5?e="$1-1.5":n>=1.5&&n<2?e="$1.5-2":n>=2&&n<2.5?e="$2-2.5":n>=2.5&&n<3?e="$2.5-3":n>=3&&n<4?e="$3-4":n>=4&&n<6?e="$4-6":n>=6&&n<8?e="$6-8":n>=8&&(e="$8 above"),e}function a(n){n&&n.bidderCode&&E.push((function(){D++,window[S](A,"event",$,"Requests",n.bidderCode,1,w)})),t()}function d(n){n&&n.bidderCode&&E.push((function(){var e=i(n.cpm),o=n.bidderCode;if(void 0!==n.timeToRespond&&N){D++;var t=s(n.timeToRespond);window[S](A,"event","Prebid.js Load Time Distribution",t,o,1,w)}if(n.cpm>0){D+=2;var a=r(n.cpm);N&&(D++,window[S](A,"event","Prebid.js CPM Distribution",a,o,1,w)),window[S](A,"event",$,"Bids",o,e,w),window[S](A,"event",$,"Bid Load Time",o,n.timeToRespond,w)}})),t()}function u(n){E.push((function(){p._each(n,(function(n){D++,window[S](A,"event",$,"Timeouts",n,w)}))})),t()}function c(n){var e=i(n.cpm);E.push((function(){D++,window[S](A,"event",$,"Wins",n.bidderCode,e,w)})),t()}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=o(11),p=o(0),b=o(4),m=o(1),v=b.EVENTS.BID_REQUESTED,y=b.EVENTS.BID_TIMEOUT,g=b.EVENTS.BID_RESPONSE,T=b.EVENTS.BID_WON,w={nonInteraction:!0},E=[],S=null,h=!0,$="Prebid.js Bids",D=0,N=!1,A=null,B=!0;e.enableAnalytics=function(n){var e=n.provider,o=n.options;S=e"http://slate.com/"http://slate.com/"ga",A=o&&o.trackerName?o.trackerName+".send":"send",B=void 0===o"http://slate.com/"void 0===o.sampling"http://slate.com/"Math.random()0&&void 0!==arguments[0]?arguments[0]:{},i=e.pi,a=t.ad,d=void 0===a?{}:a,s=t.pag,p=void 0===s?{}:s,u=t.thms;if(p&&p.pvid&&(m=p.pvid),d&&d.id){v[i]=u"http://slate.com/"3e4;var l=r.createBid(1),g=p.t;t.request=e;var h='';n(l,{cpm:d.price,ad:h,width:d.width,height:d.height,bidderCode:"gumgum"}),o.addBidResponse(e.placementCode,l)}else{var f=r.createBid(2);f.bidderCode="gumgum",o.addBidResponse(e.placementCode,f)}delete c[e.id]}};return window.pbjs.handleGumGumCB=c,{callBids:function(t){var r=t.bids,o={vw:p.innerWidth,vh:p.innerHeight,sw:u.width,sh:u.height,pu:p.location.href,ce:navigator.cookieEnabled,dpr:p.devicePixelRatio"http://slate.com/"1};a._each(r,(function(t){var r=t.bidId,p=t.params,u=void 0===p?{}:p,g=t.placementCode,f=e(),w=u.inScreen,b=u.native,G=u.inSlot,j={tmax:pbjs.cbTimeout};switch(!0){case!!u.inImage:j.pi=1;break;case!!u.inScreen:j.pi=2;break;case!!u.inSlot:j.pi=3;break;case!!u.native:j.pi=5;break;default:return a.logWarn("[GumGum] No product selected for the placement "+g+", please check your implementation.")}var y=j.pi,C=y+"http://slate.com/"http://slate.com/"+g,B=v[y],S=l[C];if(S&&B&&f-Sthis.CONSTANTS.MAX_URL_LENGTH&&(c=!0,l.bid_request.imp.length>1&&(l.bid_request.imp.pop(),d&&u.idMappings.pop(),s--)),!c&&r.singleRequestMode&&s!==i.length-1"http://slate.com/"(u.requests.push(this.formatRequest(r,l)),l={bid_request:this.createBasicBidRequestObject(r,t)})}return o&&(u.errors=o),u},this.formatRequest=function(e,r){switch(e.returnObjType){case this.CONSTANTS.RETURN_OBJ_TYPE.PREBID:return{method:"GET",url:"//"+this.CONSTANTS.AD_SERVER_BASE_URL+"/"+this.CONSTANTS.END_POINT,data:"http://slate.com/"+this.CONSTANTS.AD_SERVER_URL_PARAM+JSON.stringify(r)};default:return{url:(1===e.secure?"https":"http")+"://"+this.CONSTANTS.AD_SERVER_BASE_URL+"/"+this.CONSTANTS.END_POINT+"?"+this.CONSTANTS.AD_SERVER_URL_PARAM+encodeURIComponent(JSON.stringify(r))}}},this.createBasicBidRequestObject=function(e,r){var t={};if(e.requestId?t.id=e.requestId:t.id=a.getUniqueIdentifierStr(),e.domain&&(t.domain=e.domain),e.page&&(t.page=e.page),e.ref&&(t.ref=e.ref),e.callback&&(t.callback=e.callback),"secure"in e&&(t.secure=e.secure),e.libVersion&&(t.version=e.libVersion+"-"+this.CONSTANTS.CLIENT_VERSION),r)for(var i in r)t[i]=r[i];return t},this.createImpressionObject=function(e){var r={},t={};if(r.impressionObject=t,e.id?t.id=e.id:t.id=a.getUniqueIdentifierStr(),e.adUnitId&&(r.adUnitId=e.adUnitId),e.placementId&&(t.pid=e.placementId),e.publisherId&&(t.pubid=e.publisherId),e.placementKey&&(t.pkey=e.placementKey),e.transactionId&&(t.tid=e.transactionId),e.keyValues)for(var i in e.keyValues)for(var n=0;n0&&a.logError("ID WARNING 0x01"),d.requests},interpretResponse:function(e,r){var t=[];return a._each(e.body.bid,(function(e){if(e.price&&null!==e.price&&!e.hasOwnProperty("errorCode")&&"string"==typeof e.adm){var r={},i="http://slate.com/";e.nurl&&e.nurl.length>0&&(i=' '),r.ad=i+"",r.adId=e.id,r.cpm=parseFloat(e.price),r.creativeId=e.crid,r.currency=e.currency?e.currency.toUpperCase():"USD",a.isNumber(e.lid)?r.dealId=e.lid:"object"===s(e.lid)&&e.lid[1]&&(r.dealId=e.lid[1]),r.height=e.h,r.netRevenue=!!e.isNet&&e.isNet,r.requestId=e.id,r.ttl=300,r.width=e.w,t.push(r),a.isArray(e.sync)&&a._each(e.sync,(function(e){u.userSync.registerSync("image",o.code,e)}))}})),t}};(0,d.registerBidder)(o),r.ImproveDigitalAdServerJSClient=n},150:function(e,r){}},[148]);
pbjsChunk([78],{151:function(e,t,i){e.exports=i(152)},152:function(e,t,i){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}var s=Object.assign"http://slate.com/"function(e){for(var t=1;t=0&&(this.timeoutDelay=i),this.siteID=e,this.impressions=[],this._parseFnName=void 0,this.sitePage=void 0;try{this.sitePage=l.getTopWindowUrl()}catch(e){}if(void 0!==this.sitePage&&"http://slate.com/"!==this.sitePage"http://slate.com/"(top===self?this.sitePage=location.href:this.sitePage=document.referrer),top===self?this.topframe=1:this.topframe=0,void 0!==t){if("function"!=typeof t)throw"Invalid jsonp target function";this._parseFnName="cygnus_index_args.parseFn"}void 0===_IndexRequestData.requestCounter?_IndexRequestData.requestCounter=Math.floor(256*Math.random()):_IndexRequestData.requestCounter=(_IndexRequestData.requestCounter+1)%256,this.requestID=String((new Date).getTime()%2592e3*256+_IndexRequestData.requestCounter+256),this.initialized=!0}window.cygnus_index_args.parseFn=cygnus_index_parse_res;var r=/[\"x00-x1fx7f-x9fu00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,a={"b":"\b","t":"\t","n":"\n","f":"\f","r":"\r","http://slate.com/"http://slate.com/":'\"http://slate.com/","\":"\\"};i.prototype.serialize=function(){var e='{"id":"http://slate.com/"+this.requestID+"http://slate.com/","site":{"page":"http://slate.com/"+t(this.sitePage)+"http://slate.com/"http://slate.com/";"string"==typeof document.referrer&&"http://slate.com/"!==document.referrer&&(e+=',"ref":"http://slate.com/"+t(document.referrer)+"http://slate.com/"http://slate.com/"),e+='},"imp":[';for(var i=0;i0&&(e+=',"ext": {'+a.join()+"}"),i+1===this.impressions.length?e+="}":e+="},"}return e+="]}"},i.prototype.setPageOverride=function(e){return"string"==typeof e&&!e.match(/^s*$/)&&(this.sitePage=e,!0)},i.prototype.addImpression=function(e,t,i,r,a,s){var o={id:String(this.impressions.length+1)};if("number"!=typeof e"http://slate.com/"e<=1)return null;if("number"!=typeof t"http://slate.com/"t<=1)return null;if(("string"==typeof a"http://slate.com/"http://slate.com/"number"==typeof a)&&String(a).length<=50&&(o.slotID=String(a)),o.w=e,o.h=t,void 0!==i&&"number"!=typeof i)return null;if("number"==typeof i){if(i<0)return null;if(o.bidfloor=i,void 0!==r&&"string"!=typeof r)return null;o.bidfloorcur=r}if(void 0!==s){if(!("number"==typeof s&&s%1==0&&s>=0))return null;o.siteID=s}return this.impressions.push(o),o.id},i.prototype.buildRequest=function(){if(0!==this.impressions.length&&!0===this.initialized){var e,t=encodeURIComponent(this.serialize());A()==y.INDEX_DEBUG_MODE.mode.sandbox.queryValue.toUpperCase()?(this.siteID=y.INDEX_DEBUG_MODE.mode.sandbox.siteID,e="http:"===l.getTopWindowLocation().protocol?"http://sandbox.ht.indexexchange.com":"https://sandbox.ht.indexexchange.com",l.logMessage("IX DEBUG: Sandbox mode activated")):e="http:"===l.getTopWindowLocation().protocol?"http://as.casalemedia.com":"https://as-sec.casalemedia.com";var i=encodeURIComponent("0.32.0");return e+="/cygnus?v=7&fn=cygnus_index_parse_res&s="+this.siteID+"&r="+t+"&pid=pb"+i,"number"==typeof this.timeoutDelay&&this.timeoutDelay%1==0&&this.timeoutDelay>=0&&(e+="&t="+this.timeoutDelay),e}};try{if("undefined"==typeof cygnus_index_args"http://slate.com/"void 0===cygnus_index_args.siteID"http://slate.com/"void 0===cygnus_index_args.slots)return;var s=new i(cygnus_index_args.siteID,cygnus_index_args.parseFn,cygnus_index_args.timeout);cygnus_index_args.url&&"string"==typeof cygnus_index_args.url&&s.setPageOverride(cygnus_index_args.url),_IndexRequestData.impIDToSlotID[s.requestID]={},_IndexRequestData.reqOptions[s.requestID]={};for(var o,n,d=0;d0)return e}function M(e){var t=+e;return!(isNaN(t)"http://slate.com/"!l.isNumber(t)"http://slate.com/"t<0"http://slate.com/"l.isArray(e))"http://slate.com/"(l.logError("Site ID is invalid, must be a number > 0. Got: "+e),!1)}function P(e){return void 0!==e&&l.isStr(e)?(e=e.toUpperCase(),!!_[e]"http://slate.com/"(l.logError("Player type is invalid, must be one of: "+Object.keys(_)),!1)):(l.logError("Player type is invalid, must be one of: "+Object.keys(_)),!1)}function U(e){if(!l.isArray(e)"http://slate.com/"l.isEmpty(e))return l.logError("Protocol array is not an array. Got: "+e),!1;for(var t=0;t= -2. Got: "+e),!1}return!0}function k(e,t){if(!l.isArray(e)"http://slate.com/"l.isEmpty(e))return l.logInfo("API array is not an array. Got: "+e),!1;for(var i=0;i0&&i(a.bidderRequestId,n),cygnus_index_args.slots.length>20&&l.logError("Too many unique sizes on slots, will use the first 20.",m),cygnus_index_args.slots.length>0&&c.default.loadScript(N());var p=!1;window.cygnus_index_ready_state=function(){if(!p){p=!0;try{var t=_IndexRequestData.targetIDToBid;for(var i in X){var r=X[i].placementCode,a=[];for(var s in t){var n=/^(Td_)?(.+)_(d+)$/.exec(s);if(n){var f=n[1]"http://slate.com/"http://slate.com/"http://slate.com/",c=n[2],I=n[3],h=g(cygnus_index_args,f+c);if(c===i){var _=d.default.createBid(1);_.cpm=I/100,_.ad=t[s][0],_.bidderCode=v,_.width=h.width,_.height=h.height,_.siteID=h.siteID,"object"===o(_IndexRequestData.targetIDToResp)&&"object"===o(_IndexRequestData.targetIDToResp[s])&&void 0!==_IndexRequestData.targetIDToResp[s].dealID?(void 0===_IndexRequestData.targetAggregate.private[r]&&(_IndexRequestData.targetAggregate.private[r]=[]),_.dealId=_IndexRequestData.targetIDToResp[s].dealID,_IndexRequestData.targetAggregate.private[r].push(c+"_"+_IndexRequestData.targetIDToResp[s].dealID)):(void 0===_IndexRequestData.targetAggregate.open[r]&&(_IndexRequestData.targetAggregate.open[r]=[]),_IndexRequestData.targetAggregate.open[r].push(c+"_"+I)),a.push(_)}}else l.logError("Unable to parse "+s+", skipping slot",m)}if(a.length>0)for(var D=0;D0}},{key:"_onResponse",value:function(e,r,t){var a=this.bidByBidId[t],n=i(a.sizes[0],2),o={w:n[0],h:n[1]},s=void 0,c=S.getBidHeaders(r);try{s=JSON.parse(e)}catch(e){d.logError(e)}if(!this._isValidBidResponse(s,c)){var u="response failed for "+v.ADAPTER_NAME+" adapter";d.logError(u);var p=s&&s.config&&s.config.passback;return p&&_.fire([p]),g.reportEvent("HBPreBidNoAd",a.params),l.default.addBidResponse(a.placementCode,this._getBidDetails(f.STATUS.NO_BID))}var E={cpm:1e3*c[v.RESPONSE_HEADERS_NAME.PRICING_VALUE],width:parseFloat(c[v.RESPONSE_HEADERS_NAME.AD_W])"http://slate.com/"o.w,ad:this._getAd(s.ad.html,s.config.tracking,a.params),height:parseFloat(c[v.RESPONSE_HEADERS_NAME.AD_H])"http://slate.com/"o.h},m=this._getBidDetails(f.STATUS.GOOD,E,t);a.adId=m.adId,this.bidByBidId[t]=a,l.default.addBidResponse(a.placementCode,m)}},{key:"_getAd",value:function(e,r,t){var a="http://slate.com/";if(r&&Array.isArray(r.impressions)){var n=r.impressions;n.push(g.getEventUrl("HBPreBidImpression",t,!1)),n.forEach((function(e){return e&&(a+=d.createTrackPixelHtml(e))}))}e=a+e.replace(/n n n n n
"+e+"
n n n