Skip to content

Instantly share code, notes, and snippets.

@cspags
Created November 22, 2017 05:53
Show Gist options
  • Save cspags/beb40fbfaaebf9479eee76252260867a to your computer and use it in GitHub Desktop.
Save cspags/beb40fbfaaebf9479eee76252260867a to your computer and use it in GitHub Desktop.
/* prebid.js v0.24.0
Updated : 2017-11-22 */
!(function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)})([(function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){e.forEach((function(e){if(c(e.called)===R)try{e.call(),e.called=!0}catch(t){_.logError("Error processing command :","prebid.js",t)}}))}function a(e){var t=w._bidsRequested.map((function(e){return e.bids.map((function(e){return e.placementCode}))})).reduce(p.flatten).filter(p.uniques);return _.contains(t,e)?!0:(_.logError('The "'+e+'" placement is not defined.'),void 0)}function o(){w._bidsRequested=[],w._bidsReceived=w._bidsReceived.filter((function(e){return!w._adUnitCodes.includes(e.adUnitCode)}))}function d(e,t,r){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=r)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c="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},u=r(1),p=r(2),l=r(4),f=r(7);r(88);var m=r(23),g=r(13),h=r(136),b=r(86),v=r(14),y=r(22),w=u.getGlobal(),I=r(3),_=r(2),B=r(12),S=r(5),C=r(11),A=r(9),x=r(137),T=r(138),E="function",R="undefined",O="object",j=I.EVENTS.BID_WON,D=I.EVENTS.SET_TARGETING,N=!1,k=[],U={bidWon:a};w._bidsRequested=[],w._bidsReceived=[],w._adUnitCodes=[],w._winningBids=[],w._adsReceived=[],w._sendAllBids=!1,w.bidderSettings=w.bidderSettings||{},w.bidderTimeout=w.bidderTimeout||3e3,w.cbTimeout=w.cbTimeout||200,w.timeoutBuffer=200,w.logging=w.logging||!1,w.publisherDomain=w.publisherDomain||window.location.origin,w.libLoaded=!0,w.version="v0.24.0",_.logInfo("Prebid.js v0.24.0 loaded"),w.adUnits=w.adUnits||[],w.cookieSyncDelay=w.cookieSyncDelay||100,w.cmd.push=function(e){if(("undefined"==typeof e?"undefined":c(e))===E)try{e.call()}catch(t){_.logError("Error processing command :"+t.message)}else _.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},w.que.push=w.cmd.push,w.getAdserverTargetingForAdUnitCodeStr=function(e){if(_.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=w.getAdserverTargetingForAdUnitCode(e);return _.transformAdServerTargetingObj(t)}_.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},w.getAdserverTargetingForAdUnitCode=function(e){return w.getAdserverTargeting(e)[e]},w.getAdserverTargeting=function(e){return _.logInfo("Invoking pbjs.getAdserverTargeting",arguments),T.getAllTargeting(e).map((function(e){return n({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return n({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))})).reduce((function(e,t){return s(t,e)}),{}))})).reduce((function(e,t){var r=Object.keys(t)[0];return e[r]=s({},e[r],t[r]),e}),{})},w.getBidResponses=function(){_.logInfo("Invoking pbjs.getBidResponses",arguments);var e=w._bidsReceived.filter(p.adUnitsFilter.bind(this,w._adUnitCodes)),t=e&&e.length&&e[e.length-1].requestId;return e.map((function(e){return e.adUnitCode})).filter(p.uniques).map((function(r){return e.filter((function(e){return e.requestId===t&&e.adUnitCode===r}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return n({},e[0].adUnitCode,{bids:e})})).reduce((function(e,t){return s(e,t)}),{})},w.getBidResponsesForAdUnitCode=function(e){var t=w._bidsReceived.filter((function(t){return t.adUnitCode===e}));return{bids:t}},w.setTargetingForGPTAsync=function(e){if(_.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),!p.isGptPubadsDefined())return _.logError("window.googletag is not defined on the page"),void 0;var t=T.getAllTargeting(e);T.resetPresetTargeting(t),T.setTargeting(t),A.emit(D)},w.setTargetingForAst=function(){return _.logInfo("Invoking pbjs.setTargetingForAn",arguments),T.isApntagDefined()?(T.setTargetingForAst(),A.emit(D),void 0):(_.logError("window.apntag is not defined on the page"),void 0)},w.allBidsAvailable=function(){return _.logInfo("Invoking pbjs.allBidsAvailable",arguments),B.bidsBackAll()},w.renderAd=function(e,t){if(_.logInfo("Invoking pbjs.renderAd",arguments),_.logMessage("Calling renderAd with adId :"+t),e&&t)try{var r=w._bidsReceived.find((function(e){return e.adId===t}));if(r){r.ad=_.replaceAuctionPrice(r.ad,r.cpm),r.url=_.replaceAuctionPrice(r.url,r.cpm),w._winningBids.push(r),A.emit(j,r);var n=r.height,i=r.width,a=r.ad,o=r.mediaType,s=r.adUrl,c=r.renderer;if(c&&c.url)c.render(r);else if(e===document&&!_.inIframe()||"video"===o)_.logError("Error trying to write ad. Ad render call ad id "+t+" was prevented from writing to the main document.");else if(a)e.write(a),e.close(),d(e,i,n);else if(s){var u=_.createInvisibleIframe();u.height=n,u.width=i,u.style.display="inline",u.src=s,_.insertElement(u,e,"body"),d(e,i,n)}else _.logError("Error trying to write ad. No ad for bid response id: "+t)}else _.logError("Error trying to write ad. Cannot find ad by given id : "+t)}catch(p){_.logError("Error trying to write ad Id :"+t+" to the page:"+p.message)}else _.logError("Error trying to write ad Id :"+t+" to the page. Missing document or adId")},w.removeAdUnit=function(e){if(_.logInfo("Invoking pbjs.removeAdUnit",arguments),e)for(var t=0;t<w.adUnits.length;t++)w.adUnits[t].code===e&&w.adUnits.splice(t,1)},w.clearAuction=function(){N=!1,b.syncCookies(w.cookieSyncDelay),_.logMessage("Prebid auction cleared"),k.length&&k.shift()()},w.requestBids=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,r=e.timeout,n=e.adUnits,i=e.adUnitCodes;A.emit("requestBids");var a=w.cbTimeout=r||w.bidderTimeout;n=n||w.adUnits,_.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?n=n.filter((function(e){return i.includes(e.code)})):i=n&&n.map((function(e){return e.code}));var d=n.filter(l.videoAdUnit).filter(l.hasNonVideoBidder);if(d.forEach((function(e){_.logError("adUnit "+e.code+" has 'mediaType' set to 'video' but contains a bidder that doesn't support video. No Prebid demand requests will be triggered for this adUnit.");for(var t=0;t<n.length;t++)n[t].code===e.code&&n.splice(t,1)})),n.filter(f.nativeAdUnit).filter(f.hasNonNativeBidder).forEach((function(e){var t=e.bids.filter((function(e){return!f.nativeBidder(e)})).map((function(e){return e.bidder})).join(", ");_.logError("adUnit "+e.code+" has 'mediaType' set to 'native' but contains non-native bidder(s) "+t+". No Prebid demand requests will be triggered for those bidders."),e.bids=e.bids.filter(f.nativeBidder)})),N)return k.push((function(){w.requestBids({bidsBackHandler:t,timeout:a,adUnits:n,adUnitCodes:i})})),void 0;if(N=!0,w._adUnitCodes=i,B.externalCallbackReset(),o(),!n||0===n.length)return _.logMessage("No adUnits configured. No bids requested."),("undefined"==typeof t?"undefined":c(t))===E&&B.addOneTimeCallback(t,!1),B.executeCallback(),void 0;var s=!0,u=B.executeCallback.bind(B,s),p=setTimeout(u,a);y.setAjaxTimeout(a),("undefined"==typeof t?"undefined":c(t))===E&&B.addOneTimeCallback(t,p),S.callBids({adUnits:n,adUnitCodes:i,cbTimeout:a}),0===w._bidsRequested.length&&B.executeCallback()},w.addAdUnits=function(e){_.logInfo("Invoking pbjs.addAdUnits",arguments),_.isArray(e)?(e.forEach((function(e){return e.transactionId=_.generateUUID()})),w.adUnits.push.apply(w.adUnits,e)):("undefined"==typeof e?"undefined":c(e))===O&&(e.transactionId=_.generateUUID(),w.adUnits.push(e))},w.onEvent=function(e,t,r){return _.logInfo("Invoking pbjs.onEvent",arguments),_.isFn(t)?r&&!U[e].call(null,r)?(_.logError('The id provided is not valid for event "'+e+'" and no handler was set.'),void 0):(A.on(e,t,r),void 0):(_.logError('The event handler provided is not a function and was not set on event "'+e+'".'),void 0)},w.offEvent=function(e,t,r){_.logInfo("Invoking pbjs.offEvent",arguments),(!r||U[e].call(null,r))&&A.off(e,t,r)},w.addCallback=function(e,t){_.logInfo("Invoking pbjs.addCallback",arguments);var r=null;return e&&t&&("undefined"==typeof t?"undefined":c(t))===E?(r=_.getUniqueIdentifierStr,B.addCallback(r,t,e),r):(_.logError("error registering callback. Check method signature"),r)},w.removeCallback=function(){return null},w.registerBidAdapter=function(e,t){_.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{S.registerBidAdapter(e(),t)}catch(r){_.logError("Error registering bidder adapter : "+r.message)}},w.registerAnalyticsAdapter=function(e){_.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{S.registerAnalyticsAdapter(e)}catch(t){_.logError("Error registering analytics adapter : "+t.message)}},w.bidsAvailableForAdapter=function(e){_.logInfo("Invoking pbjs.bidsAvailableForAdapter",arguments),w._bidsRequested.find((function(t){return t.bidderCode===e})).bids.map((function(t){return s(t,C.createBid(1),{bidderCode:e,adUnitCode:t.placementCode})})).map((function(e){return w._bidsReceived.push(e)}))},w.createBid=function(e){return _.logInfo("Invoking pbjs.createBid",arguments),C.createBid(e)},w.addBidResponse=function(e,t){_.logInfo("Invoking pbjs.addBidResponse",arguments),B.addBidResponse(e,t)},w.loadScript=function(e,t,r){_.logInfo("Invoking pbjs.loadScript",arguments),v.loadScript(e,t,r)},w.enableAnalytics=function(e){e&&!_.isEmpty(e)?(_.logInfo("Invoking pbjs.enableAnalytics for: ",e),S.enableAnalytics(e)):_.logError("pbjs.enableAnalytics should be called with option {}")},w.aliasBidder=function(e,t){_.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?S.aliasBidAdapter(e,t):_.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},w.setPriceGranularity=function(e){if(_.logInfo("Invoking pbjs.setPriceGranularity",arguments),!e)return _.logError("Prebid Error: no value passed to `setPriceGranularity()`"),void 0;if("string"==typeof e)B.setPriceGranularity(e);else if("object"===("undefined"==typeof e?"undefined":c(e))){if(!g.isValidePriceConfig(e))return _.logError("Invalid custom price value passed to `setPriceGranularity()`"),void 0;B.setCustomPriceBucket(e),B.setPriceGranularity(I.GRANULARITY_OPTIONS.CUSTOM),_.logMessage("Using custom price granularity")}},w.enableSendAllBids=function(){w._sendAllBids=!0},w.getAllWinningBids=function(){return w._winningBids},w.buildMasterVideoTagFromAdserverTag=function(e,t){_.logInfo("Invoking pbjs.buildMasterVideoTagFromAdserverTag",arguments);var r=m.parse(e);if(0===w._bidsReceived.length)return e;var n="";if("dfp"!==t.adserver.toLowerCase())return _.logError("Only DFP adserver is supported"),void 0;var i=x.dfpAdserver(t,r);return i.verifyAdserverTag()||_.logError("Invalid adserverTag, required google params are missing in query string"),i.appendQueryParams(),n=m.format(i.urlComponents)},w.setBidderSequence=function(e){e===I.ORDER.RANDOM&&S.setBidderSequence(I.ORDER.RANDOM)},w.getHighestCpmBids=function(e){return T.getWinningBids(e)},w.setS2SConfig=function(e){if(!_.contains(Object.keys(e),"accountId"))return _.logError("accountId missing in Server to Server config"),void 0;if(!_.contains(Object.keys(e),"bidders"))return _.logError("bidders missing in Server to Server config"),void 0;var t=s({enabled:!1,endpoint:I.S2S.DEFAULT_ENDPOINT,timeout:1e3,maxBids:1,adapter:"prebidServer"},e);S.setS2SConfig(t)},w.cmd.push((function(){return h.listenMessagesFromCreative()})),i(w.cmd),i(w.que)}),(function(e,t){"use strict";function r(){return window.pbjs}Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobal=r,window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]}),(function(e,t,r){"use strict";function n(){return k()+Math.random().toString(16).substr(2)}function i(){return window.console&&window.console.log}function a(e,t,r){return r.indexOf(e)===t}function o(e,t){return e.concat(t)}function d(e){return pbjs._bidsRequested.map((function(t){return t.bids.find((function(t){return t.bidId===e}))})).find((function(e){return e}))}function s(e){return Object.keys(e)}function c(e,t){return e[t]}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(o,[])})).reduce(o).filter(a)}function p(){return window.googletag&&t.isFn(window.googletag.pubads)&&t.isFn(window.googletag.pubads().getSlots)?!0:void 0}function l(e,t){return e.cpm===t.cpm?e.timeToRespond>t.timeToRespond?t:e:e.cpm<t.cpm?t:e}function f(e){for(var t=e.length;t>0;){var r=Math.floor(Math.random()*t);t--;var n=e[t];e[t]=e[r],e[r]=n}return e}function m(e,t){return e.includes(t&&t.placementCode||t&&t.adUnitCode)}function g(e){return e.defaultView&&e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)}function h(e){return JSON.parse(JSON.stringify(e))}function b(){try{return window.self!==window.top}catch(e){return!0}}function v(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function y(e,t){return e?e.replace(/\$\{AUCTION_PRICE\}/g,t):void 0}function w(e){return pbjs._bidsRequested.find((function(t){return t.bidderCode===e}))}function I(e,t){return pbjs._bidsRequested.find((function(r){return r.bids.filter((function(r){return r.bidder===e&&r.placementCode===t})).length>0}))||{start:null,requestId:null}}Object.defineProperty(t,"__esModule",{value:!0});var _="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.uniques=a,t.flatten=o,t.getBidRequest=d,t.getKeys=s,t.getValue=c,t.getBidderCodes=u,t.isGptPubadsDefined=p,t.getHighestCpm=l,t.shuffle=f,t.adUnitsFilter=m,t.isSrcdocSupported=g,t.cloneJson=h,t.inIframe=b,t.isSafariBrowser=v,t.replaceAuctionPrice=y,t.getBidderRequestAllAdUnits=w,t.getBidderRequest=I;var B=r(3),S="object",C="string",A="number",x=!1,T="Array",E="String",R="Function",O="Number",j=Object.prototype.toString,D=null;try{D=console.info.bind(window.console)}catch(N){}t.replaceTokenInString=function(e,t,r){return this._each(t,(function(t,n){t=void 0===t?"":t;var i=r+n.toUpperCase()+r,a=new RegExp(i,"g");e=e.replace(a,t)})),e};var k=(function(){var e=0;return function(){return e++,e}})();t.getUniqueIdentifierStr=n,t.generateUUID=function M(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,M)},t.getBidIdParameter=function(e,t){return t&&t[e]?t[e]:""},t.tryAppendQueryString=function(e,t,r){return r?e+=t+"="+encodeURIComponent(r)+"&":e},t.parseQueryStringParameters=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t+=r+"="+encodeURIComponent(e[r])+"&");return t},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?s(e).map((function(t){return t+"="+encodeURIComponent(c(e,t))})).join("&"):""},t.parseSizesInput=function(e){var t=[];if(("undefined"==typeof e?"undefined":_(e))===C){var r=e.split(","),n=/^(\d)+x(\d)+$/i;if(r)for(var i in r)q(r,i)&&r[i].match(n)&&t.push(r[i])}else if(("undefined"==typeof e?"undefined":_(e))===S){var a=e.length;if(a>0)if(2===a&&_(e[0])===A&&_(e[1])===A)t.push(this.parseGPTSingleSizeArray(e));else for(var o=0;a>o;o++)t.push(this.parseGPTSingleSizeArray(e[o]))}return t},t.parseGPTSingleSizeArray=function(e){return!this.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1])?void 0:e[0]+"x"+e[1]},t.getTopWindowLocation=function(){var e=void 0;try{e=window.top.location}catch(t){e=window.location}return e},t.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(t){e=""}return e},t.logWarn=function(e){P()&&console.warn&&console.warn("WARNING: "+e)},t.logInfo=function(e,t){P()&&i()&&D&&(t&&0!==t.length||(t=""),D("INFO: "+e+(""===t?"":" : params : "),t))},t.logMessage=function(e){P()&&i()&&console.log("MESSAGE: "+e)},t.hasConsoleLogger=i;var U=(function(e){return e?window.console.error?"error":"log":""})(i()),P=function(){return pbjs.logging===!1&&x===!1&&(pbjs.logging="TRUE"===z(B.DEBUG_MODE).toUpperCase(),x=!0),!!pbjs.logging};t.debugTurnedOn=P,t.logError=function(e,t,r){var n=t||"ERROR";P()&&i()&&console[U](console,n+": "+e,r||"")},t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=n(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e};var z=function(e){var t="[\\?&]"+e+"=([^&#]*)",r=new RegExp(t),n=r.exec(window.location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))};t.hasValidBidRequest=function(e,t,r){function n(e,r){r===t[a]&&(i=!0)}for(var i=!1,a=0;a<t.length;a++)if(i=!1,this._each(e,n),!i)return this.logError("Params are missing for bid request. One of these required paramaters are missing: "+t,r),!1;return!0},t.addEventHandler=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!0):e.attachEvent&&e.attachEvent("on"+t,r)},t.isA=function(e,t){return j.call(e)==="[object "+t+"]"},t.isFn=function(e){return this.isA(e,R)},t.isStr=function(e){return this.isA(e,E)},t.isArray=function(e){return this.isA(e,T)},t.isNumber=function(e){return this.isA(e,O)},t.isEmpty=function(e){if(!e)return!0;if(this.isArray(e)||this.isStr(e))return!(e.length>0);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0},t.isEmptyStr=function(e){return this.isStr(e)&&(!e||0===e.length)},t._each=function(e,t){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(t,this);var r=0,n=e.length;if(n>0)for(;n>r;r++)t(e[r],r,e);else for(r in e)hasOwnProperty.call(e,r)&&t.call(this,e[r],r)}},t.contains=function(e,t){if(this.isEmpty(e))return!1;if(this.isFn(e.indexOf))return-1!==e.indexOf(t);for(var r=e.length;r--;)if(e[r]===t)return!0;return!1},t.indexOf=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:void 0})(),t._map=function(e,t){if(this.isEmpty(e))return[];if(this.isFn(e.map))return e.map(t);var r=[];return this._each(e,(function(n,i){r.push(t(n,i,e))})),r};var q=function(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):"undefined"!=typeof e[t]&&e.constructor.prototype[t]!==e[t]};t.insertElement=function(e,t,r){t=t||document;var n=void 0;n=r?t.getElementsByTagName(r):t.getElementsByTagName("head");try{n=n.length?n:t.getElementsByTagName("body"),n.length&&(n=n[0],n.insertBefore(e,n.firstChild))}catch(i){}},t.insertPixel=function(e){var t=new Image;t.id=this.getUniqueIdentifierStr(),t.src=e,t.height=0,t.width=0,t.style.display="none",t.onload=function(){try{this.parentNode.removeChild(this)}catch(e){}},this.insertElement(t)},t.insertCookieSyncIframe=function(e,t){var r=this.createTrackPixelIframeHtml(e,t),n=document.createElement("div");n.innerHTML=r;var i=n.firstChild;this.insertElement(i)},t.createTrackPixelHtml=function(e){if(!e)return"";var t=encodeURI(e),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+t+'"></div>'},t.createTrackPixelIframeHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0;return e?(t&&(e=encodeURI(e)),'<iframe frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0" hspace="0" vspace="0" height="0" style="height:0p;width:0p;display:none;" scrolling="no" src="'+e+'"></iframe>'):""},t.getIframeDocument=function(e){if(e){var t=void 0;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(r){this.logError("Cannot get iframe document",r)}return t}},t.getValueString=function(e,t,r){return void 0===t||null===t?r:this.isStr(t)?t:this.isNumber(t)?t.toString():(this.logWarn("Unsuported type for param: "+e+" required type: String"),void 0)}}),(function(e){e.exports={JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},REPO_AND_VERSION:"prebid_prebid_0.24.0",DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},objectType_function:"function",objectType_undefined:"undefined",objectType_object:"object",objectType_string:"string",objectType_number:"number",EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},ORDER:{RANDOM:"random"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:["hb_bidder","hb_adid","hb_pb","hb_size","hb_deal"],S2S:{DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/auction"}}}),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasNonVideoBidder=t.videoAdUnit=void 0;{var n=r(5),i=(t.videoAdUnit=function(e){return"video"===e.mediaType},function(e){return!n.videoAdapters.includes(e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter(i).length}}}),(function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=e.bidderCode,r=e.requestId,n=e.bidderRequestId,i=e.adUnits;return i.map((function(e){return e.bids.filter((function(e){return e.bidder===t})).map((function(t){var i=e.sizes;if(e.sizeMapping){var a=c.mapSizes(e);if(""===a)return"";i=a}return e.nativeParams&&(t=d({},t,{nativeParams:p["default"](e.nativeParams)})),d({},t,{placementCode:e.code,mediaType:e.mediaType,transactionId:e.transactionId,sizes:i,bidId:t.bid_id||f.getUniqueIdentifierStr(),bidderRequestId:n,requestId:r})}))})).reduce(s.flatten,[]).filter((function(e){return""!==e}))}function a(e){var t=[],r=f.parseSizesInput(e.sizes);return r.forEach((function(e){var r=e.split("x"),n={w:parseInt(r[0]),h:parseInt(r[1])};t.push(n)})),t}var o="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},d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s=r(2),c=r(6),u=r(7),p=n(u),l=r(8),f=r(2),m=r(3),g=r(9),h={};t.bidderRegistry=h;var b={},v={},y=null;t.callBids=function(e){var t=e.adUnits,r=e.cbTimeout,n=f.generateUUID(),o=Date.now(),d={timestamp:o,requestId:n};g.emit(m.EVENTS.AUCTION_INIT,d);var u=s.getBidderCodes(t);if(y===m.ORDER.RANDOM&&(u=s.shuffle(u)),b.enabled){var p=b.bidders;u=u.filter((function(e){return!p.includes(e)}));var l=f.cloneJson(t);l.forEach((function(e){e.sizeMapping&&(e.sizes=c.mapSizes(e),delete e.sizeMapping),e.sizes=a(e),e.bids=e.bids.filter((function(e){return p.includes(e.bidder)})).map((function(e){return e.bid_id=f.getUniqueIdentifierStr(),e}))}));var v=f.generateUUID();p.forEach((function(e){var t=f.getUniqueIdentifierStr(),r={bidderCode:e,requestId:n,bidderRequestId:t,tid:v,bids:i({bidderCode:e,requestId:n,bidderRequestId:t,adUnits:l}),start:(new Date).getTime(),auctionStart:o,timeout:b.timeout};pbjs._bidsRequested.push(r)}));var w={tid:v,ad_units:l},I=h[b.adapter];f.logMessage("CALLING S2S HEADER BIDDERS ==== "+p.join(",")),I.setConfig(b),I.callBids(w)}u.forEach((function(e){var a=h[e];if(a){var d=f.getUniqueIdentifierStr(),s={bidderCode:e,requestId:n,bidderRequestId:d,bids:i({bidderCode:e,requestId:n,bidderRequestId:d,adUnits:t}),start:(new Date).getTime(),auctionStart:o,timeout:r};s.bids&&0!==s.bids.length&&(f.logMessage("CALLING BIDDER ======= "+e),pbjs._bidsRequested.push(s),g.emit(m.EVENTS.BID_REQUESTED,s),a.callBids(s))}else f.logError("Adapter trying to be called which does not exist: "+e+" adaptermanager.callBids")}))},t.registerBidAdapter=function(e,t){e&&t?o(e.callBids)===m.objectType_function?h[t]=e:f.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):f.logError("bidAdaptor or bidderCode not specified")},t.aliasBidAdapter=function(e,t){var r=h[t];if(("undefined"==typeof r?"undefined":o(r))===m.objectType_undefined){var n=h[e];if(("undefined"==typeof n?"undefined":o(n))===m.objectType_undefined)f.logError('bidderCode "'+e+'" is not an existing bidder.',"adaptermanager.aliasBidAdapter");else try{var i=null;n instanceof l.BaseAdapter?f.logError(e+" bidder does not currently support aliasing.","adaptermanager.aliasBidAdapter"):(i=n.createNew(),i.setBidderCode(t),this.registerBidAdapter(i,t))}catch(a){f.logError(e+" bidder does not currently support aliasing.","adaptermanager.aliasBidAdapter")}}else f.logMessage('alias name "'+t+'" has been already specified.')},t.registerAnalyticsAdapter=function(e){var t=e.adapter,r=e.code;t&&r?o(t.enableAnalytics)===m.objectType_function?(t.code=r,v[r]=t):f.logError('Prebid Error: Analytics adaptor error for analytics "'+r+'"\n analytics adapter must implement an enableAnalytics() function'):f.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},t.enableAnalytics=function(e){f.isArray(e)||(e=[e]),f._each(e,(function(e){var t=v[e.provider];t?t.enableAnalytics(e):f.logError("Prebid Error: no analytics adapter found in registry for\n "+e.provider+".")}))},t.setBidderSequence=function(e){y=e},t.setS2SConfig=function(e){b=e};var w=r(10);t.registerBidAdapter(new w,"aardvark");var I=r(16);t.registerBidAdapter(new I,"adblade");var _=r(17);t.registerBidAdapter(new _,"adbund");var B=r(18);t.registerBidAdapter(new B,"adbutler");var S=r(19);t.registerBidAdapter(new S,"adequant");var C=r(20);t.registerBidAdapter(new C,"adform");var A=r(21);t.registerBidAdapter(new A,"adkernel");var x=r(24);t.registerBidAdapter(new x,"admedia");var T=r(25);t.registerBidAdapter(new T,"bidfluence");var E=r(26);t.registerBidAdapter(new E,"vertamedia");var R=r(27);t.registerBidAdapter(new R,"aol");var O=r(28);t.registerBidAdapter(new O,"appnexus");var j=r(29);t.registerBidAdapter(new j,"appnexusAst");var D=r(31);t.registerBidAdapter(new D,"beachfront");var N=r(32);t.registerBidAdapter(new N,"audienceNetwork");var k=r(33);t.registerBidAdapter(new k,"conversant");var U=r(34);t.registerBidAdapter(new U,"districtmDMX");var P=r(35);t.registerBidAdapter(new P,"fidelity");var z=r(36);t.registerBidAdapter(new z,"gumgum");var q=r(37);t.registerBidAdapter(new q,"hiromedia");var M=r(38);t.registerBidAdapter(new M,"indexExchange");var G=r(39);t.registerBidAdapter(new G,"innity");var L=r(40);t.registerBidAdapter(new L,"kruxlink");var W=r(41);t.registerBidAdapter(new W,"getintent");var F=r(42);t.registerBidAdapter(new F,"inneractive");var H=r(43);t.registerBidAdapter(new H,"komoona");var V=r(44);t.registerBidAdapter(new V,"lifestreet");var J=r(45);t.registerBidAdapter(new J,"mantis");var Q=r(46);t.registerBidAdapter(new Q,"openx");var Y=r(47);t.registerBidAdapter(new Y,"piximedia");var X=r(48);t.registerBidAdapter(new X,"pubmatic");var K=r(49);t.registerBidAdapter(new K,"pubgears");var $=r(50);t.registerBidAdapter(new $,"pulsepoint");var Z=r(51);t.registerBidAdapter(new Z,"pulsepointLite");var et=r(52);t.registerBidAdapter(new et,"quantcast");var tt=r(53);t.registerBidAdapter(new tt,"rhythmone");var rt=r(54);t.registerBidAdapter(new rt,"rubicon");var nt=r(55);t.registerBidAdapter(new nt,"smartyads");var it=r(56);t.registerBidAdapter(new it,"huddledmasses");var at=r(57);t.registerBidAdapter(new at,"smartadserver");var ot=r(58);t.registerBidAdapter(new ot,"sekindoUM");var dt=r(59);t.registerBidAdapter(new dt,"serverbid");var st=r(60);t.registerBidAdapter(new st,"sonobi");var ct=r(61);t.registerBidAdapter(new ct,"sovrn");var ut=r(62);t.registerBidAdapter(new ut,"springserve");var pt=r(63);t.registerBidAdapter(new pt,"thoughtleadr");var lt=r(64);t.registerBidAdapter(new lt,"stickyadstv");var ft=r(65);t.registerBidAdapter(new ft,"triplelift");var mt=r(66);t.registerBidAdapter(new mt,"twenga");var gt=r(67);t.registerBidAdapter(new gt,"yieldbot");var ht=r(68);t.registerBidAdapter(new ht,"nginad");var bt=r(69);t.registerBidAdapter(new bt,"brightcom");var vt=r(70);t.registerBidAdapter(new vt,"wideorbit");var yt=r(71);t.registerBidAdapter(new yt,"jcm");var wt=r(72);t.registerBidAdapter(new wt,"underdogmedia");var It=r(73);t.registerBidAdapter(new It,"memeglobal");var _t=r(74);t.registerBidAdapter(new _t,"criteo");var Bt=r(75);t.registerBidAdapter(new Bt,"centro");var St=r(76);t.registerBidAdapter(new St,"xhb");var Ct=r(77);t.registerBidAdapter(new Ct,"sharethrough");var At=r(78);t.registerBidAdapter(new At,"roxot");var xt=r(79);t.registerBidAdapter(new xt,"vertoz");var Tt=r(80);t.registerBidAdapter(new Tt,"widespace");var Et=r(81);t.registerBidAdapter(new Et,"admixer");var Rt=r(82);t.registerBidAdapter(new Rt,"atomx");var Ot=r(83);t.registerBidAdapter(new Ot,"tapsense");var jt=r(84);t.registerBidAdapter(new jt,"trion");var Dt=r(85);t.registerBidAdapter(new Dt,"prebidServer");var Nt=r(87);t.registerBidAdapter(new Nt,"adsupply"),t.aliasBidAdapter("appnexus","brealtime"),t.aliasBidAdapter("appnexus","pagescience"),t.aliasBidAdapter("appnexus","defymedia"),t.aliasBidAdapter("appnexus","gourmetads"),t.aliasBidAdapter("appnexus","matomy"),t.aliasBidAdapter("rubicon","rubiconLite"),t.aliasBidAdapter("appnexus","featureforward"),t.aliasBidAdapter("appnexus","oftmedia"),t.aliasBidAdapter("adkernel","headbidding"),t.aliasBidAdapter("stickyadstv","freewheel-ssp"),t.videoAdapters=["appnexusAst","vertamedia","beachfront","rubicon","getintent","rhythmone"]}),(function(e,t,r){"use strict";function n(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}function i(e){if(!a(e.sizeMapping))return e.sizes;var t=o();if(!t){var r=e.sizeMapping.reduce((function(e,t){return e.minWidth<t.minWidth?t:e}));return r.sizes&&r.sizes.length?r.sizes:e.sizes}var n="",i=e.sizeMapping.find((function(e){return t>e.minWidth}));return i&&i.sizes&&i.sizes.length?(n=i.sizes,c.logMessage("AdUnit : "+e.code+" resized based on device width to : "+n)):c.logMessage("AdUnit : "+e.code+" not mapped to any sizes for device width. This request will be suppressed."),n}function a(e){return c.isArray(e)&&e.length>0?!0:(c.logInfo("No size mapping defined"),!1)}function o(e){var t=e||u||window,r=t.document;return t.innerWidth?t.innerWidth:r.body.clientWidth?r.body.clientWidth:r.documentElement.clientWidth?r.documentElement.clientWidth:0}function d(e){u=e}Object.defineProperty(t,"__esModule",{value:!0}),t.setWindow=t.getScreenWidth=t.mapSizes=void 0;var s=r(2),c=n(s),u=void 0;t.mapSizes=i,t.getScreenWidth=o,t.setWindow=d}),(function(e,t,r){"use strict";function n(e){return e&&e.type&&i(e.type)?p[e.type]:e}function i(e){return e&&Object.keys(p).includes(e)?!0:(d.logError(e+" nativeParam is not supported"),!1)}function a(e){var t=d.getBidRequest(e.adId);if(!t)return!1;var r=t.nativeParams;if(!r)return!0;var n=Object.keys(r).filter((function(e){return r[e].required})),i=Object.keys(e.native);return n.every((function(e){return i.includes(e)}))}function o(e){var t=e.native&&e.native.impressionTrackers;(t||[]).forEach((function(e){d.insertPixel(e)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.hasNonNativeBidder=t.nativeBidder=t.nativeAdUnit=t.NATIVE_TARGETING_KEYS=t.NATIVE_KEYS=void 0,t["default"]=n,t.nativeBidIsValid=a,t.fireNativeImpressions=o;{var d=r(2),s=["appnexusAst"],c=t.NATIVE_KEYS={title:"hb_native_title",body:"hb_native_body",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl"},u=(t.NATIVE_TARGETING_KEYS=Object.keys(c).map((function(e){return c[e]})),{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}),p={image:u},l=(t.nativeAdUnit=function(e){return"native"===e.mediaType},t.nativeBidder=function(e){return s.includes(e.bidder)
});t.hasNonNativeBidder=function(e){return e.bids.filter((function(e){return!l(e)})).length}}}),(function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});{var n=(function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();t.BaseAdapter=(function(){function e(t){r(this,e),this.code=t}return n(e,[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"callBids",value:function(){throw"adapter implementation must override callBids method"}}]),e})()}}),(function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=r(2),a=r(3),o=Array.prototype.slice,d=Array.prototype.push,s=i._map(a.EVENTS,(function(e){return e})),c=a.EVENT_ID_PATHS,u=[];e.exports=(function(){function e(e,t){i.logMessage("Emitting event for: "+e);var n=t[0]||{},a=c[e],o=n[a],s=r[e]||{que:[]},p=i._map(s,(function(e,t){return t})),l=[];u.push({eventType:e,args:n,id:o}),o&&i.contains(p,o)&&d.apply(l,s[o].que),d.apply(l,s.que),i._each(l,(function(e){if(e)try{e.apply(null,t)}catch(r){i.logError("Error executing handler:","events.js",r)}}))}function t(e){return i.contains(s,e)}var r={},a={};return a.on=function(e,n,a){if(t(e)){var o=r[e]||{que:[]};a?(o[a]=o[a]||{que:[]},o[a].que.push(n)):o.que.push(n),r[e]=o}else i.logError("Wrong event name : "+e+" Valid event names :"+s)},a.emit=function(t){var r=o.call(arguments,1);e(t,r)},a.off=function(e,t,n){var a=r[e];i.isEmpty(a)||i.isEmpty(a.que)&&i.isEmpty(a[n])||n&&(i.isEmpty(a[n])||i.isEmpty(a[n].que))||(n?i._each(a[n].que,(function(e){var r=a[n].que;e===t&&r.splice(i.indexOf.call(r,e),1)})):i._each(a.que,(function(e){var r=a.que;e===t&&r.splice(i.indexOf.call(r,e),1)})),r[e]=a)},a.get=function(){return r},a.getEvents=function(){var e=[];return i._each(u,(function(t){var r=n({},t);e.push(r)})),e},a})()}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(14),d=r(15),s=r(3),c="aardvarkResponse",u="aardvarkRequests",p="aardvark",l="thor.rtk.io",f="thor.rtk.io",m=f,g=function(e,t,r){var i=n.getTopWindowLocation(),a="",d=[],s=[];i=i?i.host:l;for(var c,f,g,h,b=0,v=r.length;v>b;b+=1)c=r[b],f=n.getBidIdParameter("ai",c.params),g=n.getBidIdParameter("sc",c.params),f&&f.length&&g&&g.length&&(h=n.getBidIdParameter("host",c.params),h&&(m=h),a.length||(a=f),g&&d.push(g),s.push(g+"="+c.bidId),pbjs[u][e][c.bidId]=c);return a.length&&d.length?(o.loadScript(["//"+m+"/",a,"/",d.join("_"),"/aardvark/?jsonp=pbjs.",t,"&rtkreferer=",i,"&",s.join("&")].join("")),void 0):n.logWarn("Bad bid request params given for adapter $"+e+" ("+p+")")},h=function(e,t){if(t.error)return n.logWarn("Aardvark bid received with an error, ignoring... ["+t.error+"]");if(!t.cid)return n.logWarn("Aardvark bid received without a callback id, ignoring...");var r=pbjs[u][e][t.cid];if(!r)return n.logWarn("Aardvark request not found: "+t.cid);if(r.params.sc!==t.id)return n.logWarn("Aardvark bid received with a non matching shortcode "+t.id+" instead of "+r.params.sc);var o=i.createBid(s.STATUS.GOOD,r);o.bidderCode=r.bidder,o.cpm=t.cpm,o.ad=t.adm+n.createTrackPixelHtml(decodeURIComponent(t.nurl)),o.width=r.sizes[0][0],o.height=r.sizes[0][1],a.addBidResponse(r.placementCode,o),pbjs[u][e][t.cid].responded=!0},b=function(e,t){pbjs[t]=function(t){t.forEach((function(t){h(e,t)}));for(var r in pbjs[u][e])if(pbjs[u][e].hasOwnProperty(r)){var n=pbjs[u][e][r];if(!n.responded){var o=i.createBid(s.STATUS.NO_BID,n);o.bidderCode=n.bidder,a.addBidResponse(n.placementCode,o)}}}},v=function(){var e=d.createNew(p);return pbjs[u]=pbjs[u]||{},e.callBids=function(t){var r=e.getBidderCode(),n=c;return r!==p&&(n=[c,r].join("_")),pbjs[u][r]={},b(r,n),g(r,n,t.bids||[])},{callBids:e.callBids,setBidderCode:e.setBidderCode,createNew:t.createNew}};t.createNew=function(){return new v},e.exports=v}),(function(e,t,r){"use strict";function n(e,t){function r(){switch(a){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}var n=t&&t.bidId||i.getUniqueIdentifierStr(),a=e||0;this.bidderCode="",this.width=0,this.height=0,this.statusMessage=r(),this.adId=n,this.getStatusCode=function(){return a},this.getSize=function(){return this.width+"x"+this.height}}var i=r(2);t.createBid=function(){return new(Function.prototype.bind.apply(n,[null].concat(Array.prototype.slice.call(arguments))))}}),(function(e,t,r){"use strict";function n(){return(new Date).getTime()}function i(e){return e.bidderCode}function a(e){return e.bidder}function o(e){var t=this,r=pbjs._bidsRequested.map((function(r){return r.bids.filter(y.adUnitsFilter.bind(t,pbjs._adUnitCodes)).filter((function(t){return t.placementCode===e}))})).reduce(y.flatten,[]).map((function(e){return"indexExchange"===e.bidder?e.sizes.length:1})).reduce(d,0),n=pbjs._bidsReceived.filter((function(t){return t.adUnitCode===e})).length;return r===n}function d(e,t){return e+t}function s(){var e=pbjs._bidsRequested.map((function(e){return e.bids})).reduce(y.flatten,[]).filter(y.adUnitsFilter.bind(this,pbjs._adUnitCodes)).map((function(e){return"indexExchange"===e.bidder?e.sizes.length:1})).reduce((function(e,t){return e+t}),0),t=pbjs._bidsReceived.filter(y.adUnitsFilter.bind(this,pbjs._adUnitCodes)).length;return e===t}function c(e,t){var r={},n=pbjs.bidderSettings;if(t&&n){var i=g();u(r,i,t)}return e&&t&&n&&n[e]&&n[e][_.JSON_MAPPING.ADSERVER_TARGETING]?(u(r,n[e],t),t.alwaysUseBid=n[e].alwaysUseBid,t.sendStandardTargeting=n[e].sendStandardTargeting):R[e]&&(u(r,R[e],t),t.alwaysUseBid=R[e].alwaysUseBid,t.sendStandardTargeting=R[e].sendStandardTargeting),t.native&&Object.keys(t.native).forEach((function(e){var n=I.NATIVE_KEYS[e],i=t.native[e];n&&(r[n]=i)})),r}function u(e,t,r){var n=t[_.JSON_MAPPING.ADSERVER_TARGETING];return r.size=r.getSize(),S._each(n,(function(n){var i=n.key,a=n.val;if(e[i]&&S.logWarn("The key: "+i+" is getting ovewritten"),S.isFn(a))try{a=a(r)}catch(o){S.logError("bidmanager","ERROR",o)}("undefined"==typeof t.suppressEmptyKeys||t.suppressEmptyKeys!==!0)&&"hb_deal"!==i||!S.isEmptyStr(a)&&null!==a&&void 0!==a?e[i]=a:S.logInfo("suppressing empty key '"+i+"' from adserver targeting")})),e}function p(e){var t=[e];l(x.byAdUnit,t)}function l(e,t){var r=this;S.isArray(e)&&e.forEach((function(e){var n=t||pbjs._adUnitCodes,i=[pbjs._bidsReceived.filter(y.adUnitsFilter.bind(r,n)).reduce(f,{})];e.apply(pbjs,i)}))}function f(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function m(e){var t=e.bidderCode,r=e.cpm;if(t&&pbjs.bidderSettings&&pbjs.bidderSettings[t]&&b(pbjs.bidderSettings[t].bidCpmAdjustment)===A)try{r=pbjs.bidderSettings[t].bidCpmAdjustment.call(null,e.cpm,v({},e))}catch(n){S.logError("Error during bid adjustment","bidmanager.js",n)}r>=0&&(e.cpm=r)}function g(){var e=pbjs.bidderSettings;return e[_.JSON_MAPPING.BD_SETTING_STANDARD]||(e[_.JSON_MAPPING.BD_SETTING_STANDARD]={adserverTargeting:[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return T===_.GRANULARITY_OPTIONS.AUTO?e.pbAg:T===_.GRANULARITY_OPTIONS.DENSE?e.pbDg:T===_.GRANULARITY_OPTIONS.LOW?e.pbLg:T===_.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:T===_.GRANULARITY_OPTIONS.HIGH?e.pbHg:T===_.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_deal",val:function(e){return e.dealId}}]}),e[_.JSON_MAPPING.BD_SETTING_STANDARD]}function h(){return g()[_.JSON_MAPPING.ADSERVER_TARGETING]}var b="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},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y=r(2),w=r(13),I=r(7),_=r(3),B=_.EVENTS.AUCTION_END,S=r(2),C=r(9),A="function",x={byAdUnit:[],all:[],oneTime:null,timer:!1},T=_.GRANULARITY_OPTIONS.MEDIUM,E=void 0,R={};t.setCustomPriceBucket=function(e){E=e},t.getTimedOutBidders=function(){return pbjs._bidsRequested.map(i).filter(y.uniques).filter((function(e){return pbjs._bidsReceived.map(a).filter(y.uniques).indexOf(e)<0}))},t.bidsBackAll=function(){return s()},t.addBidResponse=function(e,r){if(!e)return S.logWarn("No adUnitCode supplied to addBidResponse, response discarded"),void 0;if(r){if("native"===r.mediaType&&!I.nativeBidIsValid(r))return S.logError("Native bid response does not contain all required assets. This bid won't be addeed to the auction"),void 0;var i=y.getBidderRequest(r.bidderCode,e),a=i.requestId,d=i.start;if(v(r,{requestId:a,responseTimestamp:n(),requestTimestamp:d,cpm:parseFloat(r.cpm)||0,bidder:r.bidderCode,adUnitCode:e}),r.timeToRespond=r.responseTimestamp-r.requestTimestamp,r.timeToRespond>pbjs.cbTimeout+pbjs.timeoutBuffer){var u=!0;t.executeCallback(u)}C.emit(_.EVENTS.BID_ADJUSTMENT,r),C.emit(_.EVENTS.BID_RESPONSE,r);var l=w.getPriceBucketString(r.cpm,E);r.pbLg=l.low,r.pbMg=l.med,r.pbHg=l.high,r.pbAg=l.auto,r.pbDg=l.dense,r.pbCg=l.custom;var f={};r.bidderCode&&(r.cpm>0||r.dealId)&&(f=c(r.bidderCode,r)),r.adserverTargeting=f,pbjs._bidsReceived.push(r)}r&&r.adUnitCode&&o(r.adUnitCode)&&p(r.adUnitCode),s()&&t.executeCallback()},t.getKeyValueTargetingPairs=function(){return c.apply(void 0,arguments)},t.setPriceGranularity=function(e){var t=_.GRANULARITY_OPTIONS;Object.keys(t).filter((function(r){return e===t[r]}))?T=e:(S.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default."),T=_.GRANULARITY_OPTIONS.MEDIUM)},t.registerDefaultBidderSetting=function(e,t){R[e]=t},t.executeCallback=function(e){if(!e&&x.timer&&clearTimeout(x.timer),x.all.called!==!0&&(l(x.all),x.all.called=!0,e)){var r=t.getTimedOutBidders();r.length&&C.emit(_.EVENTS.BID_TIMEOUT,r)}if(x.oneTime){C.emit(B);try{l([x.oneTime])}catch(n){S.logError("Error executing bidsBackHandler",null,n)}finally{x.oneTime=null,x.timer=!1,pbjs.clearAuction()}}},t.externalCallbackReset=function(){x.all.called=!1},t.addOneTimeCallback=function(e,t){x.oneTime=e,x.timer=t},t.addCallback=function(e,t,r){t.id=e,_.CB.TYPE.ALL_BIDS_BACK===r?x.all.push(t):_.CB.TYPE.AD_UNIT_BIDS_BACK===r&&x.byAdUnit.push(t)},C.on(_.EVENTS.BID_ADJUSTMENT,(function(e){m(e)})),t.adjustBids=function(){return m.apply(void 0,arguments)},t.getStandardBidderAdServerTargeting=h}),(function(e,t){"use strict";function r(e,t){var r=0;return r=parseFloat(e),isNaN(r)&&(r=""),{low:""===r?"":n(e,d),med:""===r?"":n(e,s),high:""===r?"":n(e,c),auto:""===r?"":n(e,p),dense:""===r?"":n(e,u),custom:""===r?"":n(e,t)}}function n(e,t){var r="";if(!i(t))return r;var n=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),d=t.buckets.find((function(t){if(e>n.max){var i=t.precision||o;r=t.max.toFixed(i)}else if(e<=t.max&&e>=t.min)return t}));return d&&(r=a(e,d.increment,d.precision)),r}function i(e){if(!e||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach((function(e){"undefined"!=typeof e.min&&e.max&&e.increment||(t=!1)})),t}function a(e,t,r){r||(r=o);var n=1/t;return(Math.floor(e*n)/n).toFixed(r)}Object.defineProperty(t,"__esModule",{value:!0});var o=2,d={buckets:[{min:0,max:5,increment:.5}]},s={buckets:[{min:0,max:20,increment:.1}]},c={buckets:[{min:0,max:20,increment:.01}]},u={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},p={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};t.getPriceBucketString=r,t.isValidePriceConfig=i}),(function(e,t,r){"use strict";function n(e,t){var r=document.createElement("script");r.type="text/javascript",r.async=!0,t&&"function"==typeof t&&(r.readyState?r.onreadystatechange=function(){("loaded"===r.readyState||"complete"===r.readyState)&&(r.onreadystatechange=null,t())}:r.onload=function(){t()}),r.src=e;var n=document.getElementsByTagName("head");n=n.length?n:document.getElementsByTagName("body"),n.length&&(n=n[0],n.insertBefore(r,n.firstChild))}var i=r(2),a={};t.loadScript=function(e,t,r){return e?(r?a[e]?t&&"function"==typeof t&&(a[e].loaded?t():a[e].callbacks.push(t)):(a[e]={loaded:!1,callbacks:[]},t&&"function"==typeof t&&a[e].callbacks.push(t),n(e,(function(){a[e].loaded=!0;try{for(var t=0;t<a[e].callbacks.length;t++)a[e].callbacks[t]()}catch(r){i.logError("Error executing callback","adloader.js:loadScript",r)}}))):n(e,t),void 0):(i.logError("Error attempting to request empty URL","adloader.js:loadScript"),void 0)}}),(function(e,t){"use strict";function r(e){function t(e){i=e}function r(){return i}function n(){}var i=e;return{callBids:n,setBidderCode:t,getBidderCode:r}}t.createNew=function(e){return new r(e)}}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(14),d=function(){function e(e){var t=e.bids||[],i=n.getTopWindowUrl(),a=n.getTopWindowLocation(),s=a.hostname,c=0,u={};t.length>0&&(c=""+t[0].params.partnerId),n._each(t,(function(t){t.sizes[0]instanceof Array||(t.sizes=[t.sizes]),n._each(t.sizes,(function(r){var n=r[0]+"x"+r[1];u[n]=u[n]||{site:{id:c,page:i,domain:s,publisher:{id:c,name:i,domain:s}},id:e.requestId,imp:[],device:{ua:window.navigator.userAgent},cur:["USD"],user:{}},u[n].imp.push({id:t.bidId,bidfloor:t.params.bidFloor||d,tag:t.placementCode,banner:{w:r[0],h:r[1]},secure:0+("https"===a.protocol)})}))})),n._each(u,(function(e){o.loadScript(n.tryAppendQueryString(n.tryAppendQueryString(r,"callback","pbjs.adbladeResponse"),"json",JSON.stringify(e)))}))}var t="adblade",r="//rtb.adblade.com/prebidjs/bid?",d=1e-10;return pbjs.adbladeResponse=function(e){var r=/\$(%7B|\{)AUCTION_ID(%7D|\})/gi,o=/\$(%7B|\{)AUCTION_PRICE(%7D|\})/gi,d=/\$(%7B|\{)CLICK_URL(%7D|\})/gi;if("undefined"!=typeof e&&e.hasOwnProperty("seatbid")&&!n.isEmpty(e.seatbid))n._each(e.seatbid,(function(e){n._each(e.bid,(function(e){var s=n.getBidRequest(e.impid),c=e.adm+n.createTrackPixelHtml(e.nurl);c=c.replace(r,e.impid),c=c.replace(d,""),c=c.replace(o,e.price);var u=i.createBid(1);u.bidderCode=t,u.cpm=e.price,u.ad=c,u.width=e.w,u.height=e.h,a.addBidResponse(s.placementCode,u)}))}));else{var s=pbjs._bidsRequested.find((function(e){return e.bidderCode===t})).bids;if(s.length>0){var c=i.createBid(2);c.bidderCode=t,a.addBidResponse(s[0].placementCode,c)}}},{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=r(3),a=r(2),o=r(11),d=r(12),s=r(14),c=function(){function e(e){var t,r=[];for(t in e)e.hasOwnProperty(t)&&r.push(t+"="+encodeURIComponent(e[t]));return r.join("&")}function t(e){return function(t){var r;t&&t.cpm?(r=o.createBid(i.STATUS.GOOD),r.bidderCode="adbund",n(r,t)):(r=o.createBid(i.STATUS.NO_BID),r.bidderCode="adbund"),d.addBidResponse(e.placementCode,r)}}function r(r){var i={referrer:a.getTopWindowUrl(),domain:a.getTopWindowLocation().hostname,ua:window.navigator.userAgent},o=n({},r.params,i);o.sizes=JSON.stringify(o.sizes||r.sizes),o.callback="pbjs.adbundResponse",pbjs.adbundResponse=t(r),s.loadScript(l+"?"+e(o))}function c(e){(e.bids||[]).forEach((function(e){r(e)}))}var u=(new Date).getTimezoneOffset(),p=["http://us-east-engine.adbund.xyz/prebid/ad/get","http://us-west-engine.adbund.xyz/prebid/ad/get"],l=p[0>u?0:1];return{callBids:c}};e.exports=c}),(function(e,t,r){"use strict";var n=r(2),i=r(14),a=r(12),o=r(11),d=function(){function e(e){for(var d=e.bids||[],s={},c={},u=Math.floor(1e7*Math.random()),p=0;p<d.length;p++){var l,f=d[p],m=n.getBidIdParameter("zoneID",f.params);m in c||(c[m]=0),l=m+"_"+c[m],s[l]={},s[l].bidId=f.bidId;var g=t(f,c[m],u);c[m]++,i.loadScript(g)}pbjs.adbutlerCB=function(e){var t,i,d,c={},u=e.zone_id+"_"+e.place,p=parseInt(e.width),l=parseInt(e.height),f=!1,m=!0,g=s[u]?n.getBidRequest(s[u].bidId):null;g&&("SUCCESS"===e.status?(t=e.cpm,i=n.getBidIdParameter("minCPM",g.params),d=n.getBidIdParameter("maxCPM",g.params),""!==i&&t<parseFloat(i)&&(m=!1),""!==d&&t>parseFloat(d)&&(m=!1),n._each(g.sizes,(function(e){p===e[0]&&l===e[1]&&(f=!0)})),m&&f?(c=o.createBid(1,g),c.bidderCode="adbutler",c.cpm=t,c.width=p,c.height=l,c.ad=e.ad_code,c.ad+=r(e.tracking_pixels)):(c=o.createBid(2,g),c.bidderCode="adbutler")):(c=o.createBid(2,g),c.bidderCode="adbutler"),a.addBidResponse(g.placementCode,c))}}function t(e,t,r){var i=n.getBidIdParameter("accountID",e.params),a=n.getBidIdParameter("zoneID",e.params),o=n.getBidIdParameter("keyword",e.params),d=n.getBidIdParameter("domain",e.params);("undefined"==typeof d||0===d.length)&&(d="servedbyadbutler.com");var s=location.protocol+"//"+d+"/adserve/;type=hbr;";return s+="ID="+encodeURIComponent(i)+";",s+="setID="+encodeURIComponent(a)+";",s+="pid="+encodeURIComponent(r)+";",s+="place="+encodeURIComponent(t)+";",""!==o&&(s+="kw="+encodeURIComponent(o)+";"),s+="jsonpfunc=pbjs.adbutlerCB;",s+="click=CLICK_MACRO_PLACEHOLDER"}function r(e){var t="";return n._each(e,(function(e){var r='<img height="0" width="0" border="0" style="display:none;" src="';r+=e,r+='">',t+=r})),t}return{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n="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},i=r(11),a=r(12),o=r(14),d=r(2),s=r(3);e.exports=function(){function e(e){for(var i=[],a=null,s=[],c=null,u=[],p={},l=e.bids||[],f=0;f<l.length;f++){var m=l[f],g=m.params||{};p[m.placementCode]=!0,a=g.publisher_id.toString()||a;var h=g.bidfloor||.01;c=g.cats||c,("undefined"==typeof c?"undefined":n(c))===d.objectType_string&&(c=c.split(" "));for(var b=d.parseSizesInput(m.sizes),v=0;v<b.length;v++)s.push(b[v]+"_"+h),u.push(m.placementCode)}a&&i.push("a="+a),c&&i.push("c="+c.join("+")),s&&i.push("s="+s.join("+")),o.loadScript(r+i.join("&"),(function(){t(u,p)}))}function t(e,t){var r,n,o=window.adequant_creatives;if(o&&o.seatbid)for(var c=0;c<o.seatbid.length;c++){var u=o.seatbid[c].bid[0];r=e[parseInt(u.impid,10)-1],r&&t[r]&&(n=i.createBid(s.STATUS.GOOD),n.bidderCode="adequant",n.cpm=u.price,n.ad=u.adm,n.width=u.w,n.height=u.h,a.addBidResponse(r,n),t[r]=!1)}for(r in t)t[r]&&(n=i.createBid(s.STATUS.NO_BID),n.bidderCode="adequant",a.addBidResponse(r,n),d.logMessage("No bid response from Adequant for placement code "+r))}var r="https://rex.adequant.com/rex/c2s_prebid?";return{callBids:e}}}),(function(e,t,r){"use strict";function n(){function e(e){var n,o,d,s,c,u,p,l=e.bids,f=[],m="_adf_"+i.getUniqueIdentifierStr(),g=[["adxDomain","adx.adform.net"],["url",null],["tid",null],["callback","pbjs."+m]];for(s=0,p=l.length;p>s;s++){for(n=l[s],c=0,u=g.length;u>c;c++)d=g[c][0],o=n[d]||n.params[d],o&&(n[d]=n.params[d]=null,g[c][1]=o);f.push(t(n.params))}for(f.unshift("//"+g[0][1]+"/adx/?rp=4"),s=1,p=g.length;p>s;s++)d=g[s][0],o=g[s][1],o&&f.push(g[s][0]+"="+encodeURIComponent(o));pbjs[m]=r(l),a.loadScript(f.join("&"))}function t(e){var t,r=[];for(t in e)e.hasOwnProperty(t)&&e[t]&&r.push(t,"=",e[t],"&");return n(r.join("").slice(0,-1))}function r(e){function t(e,t){for(var r=0,n=t.length;n>r;r++)if(e.width===t[r][0]&&e.height===t[r][1])return!0;return!1}return function(r){for(var n,i,a,c="adform",u=0,p=r.length;p>u;u++)i=r[u],a=e[u],i&&"banner"===i.response&&t(i,a.sizes)?(n=d.createBid(s.GOOD,a),n.bidderCode=c,n.cpm=i.win_bid,n.cur=i.win_cur,n.ad=i.banner,n.width=i.width,n.height=i.height,n.dealId=i.deal_id,o.addBidResponse(a.placementCode,n)):(n=d.createBid(s.NO_BID,a),n.bidderCode=c,o.addBidResponse(a.placementCode,n))}}function n(e){var t,r,n,i,a,o,d,s=[],u=0,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";for(e=c(e);u<e.length;)t=e.charCodeAt(u++),r=e.charCodeAt(u++),n=e.charCodeAt(u++),i=t>>2,a=(3&t)<<4|r>>4,o=(15&r)<<2|n>>6,d=63&n,isNaN(r)?o=d=64:isNaN(n)&&(d=64),s.push(p.charAt(i),p.charAt(a)),64!==o&&s.push(p.charAt(o)),64!==d&&s.push(p.charAt(d));return s.join("")}function c(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);128>n?t+=String.fromCharCode(n):n>127&&2048>n?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}return{callBids:e}}var i=r(2),a=r(14),o=r(12),d=r(11),s=r(3).STATUS;e.exports=n}),(function(e,t,r){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(12),d=i(o),s=r(11),c=i(s),u=r(2),p=n(u),l=r(22),f=r(15),m=i(f),g=function h(){function e(){function e(e,i,o,d){var s=r(e),c=t(o),u=n(i,c);l.ajax(s,(function(e){e=""===e?b:JSON.parse(e),p._each(c.imp,(function(t){var r=!1;p._each(e.seatbid[0].bid,(function(e){r||e.impid!==t.id||(r=!0,d(a[t.id],t,e))})),r||d(a[t.id],t)}))}),u,g)}function t(e){return{id:p.getUniqueIdentifierStr(),imp:e,site:o,at:1,device:{ip:"caller",ua:"caller"}}}function r(e){return window.location.protocol+"//"+e+"/rtbg"}function n(e,t){return{zone:encodeURIComponent(e),ad_type:"rtb",r:encodeURIComponent(JSON.stringify(t))}}var i={},a={},o=s(),d={};this.addImp=function(e){var t=e.params.host,r=e.params.zoneId,n=e.sizes[0],o=e.bidId;t in i||(i[t]={}),r in i[t]||(i[t][r]=[]);var s={id:o,tagid:e.placementCode,banner:{w:n[0],h:n[1]}};"https:"===p.getTopWindowLocation().protocol&&(s.secure=1),i[t][r].push(s),a[o]=e,t in d||(d[t]=[]),-1===d[t].indexOf(r)&&d[t].push(r)},this.dispatch=function(t){p._each(i,(function(r,n){p.logMessage("processing network "+n),p._each(r,(function(r,i){p.logMessage("processing zone "+i),e(n,i,r,t)}))}))},this.buildUserSyncQueue=function(){return Object.keys(d).reduce((function(e,t){return d[t].forEach((function(r){return e.push([t,r])})),e}),[])}}function t(t){var i=new e;p._each(t,(function(e){o(e.params)?i.addImp(e):(p.logError("Incorrect configuration for adkernel bidder: "+e.params),d["default"].addBidResponse(e.placementCode,n(e)))})),u(i.buildUserSyncQueue()),i.dispatch((function(e,t,i){var a=e.placementCode;i?(p.logMessage("got response for "+a),d["default"].addBidResponse(a,r(i,e,t.banner.w,t.banner.h))):(p.logMessage("got empty response for "+a),d["default"].addBidResponse(a,n(e)))}))}function r(e,t,r,n){return a(c["default"].createBid(1,t),{bidderCode:t.bidder,ad:i(e),width:r,height:n,cpm:parseFloat(e.price)})}function n(e){return a(c["default"].createBid(2,e),{bidderCode:e.bidder})}function i(e){var t=e.adm;return"nurl"in e&&(t+=p.createTrackPixelHtml(e.nurl+"&px=1")),t}function o(e){return"undefined"!=typeof e.host&&"undefined"!=typeof e.zoneId}function s(){var e=p.getTopWindowLocation();return{domain:e.hostname,page:e.href.split("?")[0]}}function u(e){if(0!==e.length){var t=e.pop();f(t[0],t[1],(function(){return u(e)}))}}function f(e,t,r){var n=p.createInvisibleIframe();n.src="//sync.adkernel.com/user-sync?zone="+t+"&r=%2F%2F"+e+"%2Fuser-synced%3Fuid%3D%7BUID%7D",p.addEventHandler(n,"load",r);try{document.body.appendChild(n)}catch(i){p.logError(i)}}var g={contentType:"text/plain",withCredentials:!0,method:"GET"},b={seatbid:[{bid:[]}]},v=m["default"].createNew("adkernel");return v.callBids=function(e){var r=e.bids||[];t(r)},{callBids:v.callBids,setBidderCode:v.setBidderCode,getBidderCode:v.getBidderCode,createNew:h.createNew}};g.createNew=function(){return new g},e.exports=g}),(function(e,t,r){"use strict";function n(e){u=e}function i(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var i=void 0,p=!1,l=n.method||(r?"POST":"GET"),f="object"===("undefined"==typeof t?"undefined":o(t))?t:{success:function(){s.logMessage("xhr success")},error:function(e){s.logError("xhr error",null,e)}};if("function"==typeof t&&(f.success=t),window.XMLHttpRequest?(i=new window.XMLHttpRequest,void 0===i.responseType&&(p=!0)):p=!0,i.timeout=u,p?(i=new window.XDomainRequest,i.onload=function(){f.success(i.responseText,i)},i.onerror=function(){f.error("error",i)},i.ontimeout=function(){f.error("timeout",i)},i.onprogress=function(){s.logMessage("xhr onprogress")}):i.onreadystatechange=function(){if(i.readyState===c){var e=i.status;e>=200&&300>e||304===e?f.success(i.responseText,i):f.error(i.statusText,i)}},"GET"===l&&r){var m=d.parse(e);a(m.search,r),e=d.format(m)}i.open(l,e),p||(n.withCredentials&&(i.withCredentials=!0),s._each(n.customHeaders,(function(e,t){i.setRequestHeader(t,e)})),n.preflight&&i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type",n.contentType||"text/plain")),i.send("POST"===l&&r)}catch(g){s.logError("xhr construction",g)}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o="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.setAjaxTimeout=n,t.ajax=i;var d=r(23),s=r(2),c=4,u=3e3}),(function(e,t){"use strict";function r(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,t){var r=t.split("="),n=o(r,2),i=n[0],a=n[1];return/\[\]$/.test(i)?(i=i.replace("[]",""),e[i]=e[i]||[],e[i].push(a)):e[i]=a||"",e}),{}):{}}function n(e){return Object.keys(e).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return t+"[]="+e})).join("&"):t+"="+e[t]})).join("&")}function i(e){var t=document.createElement("a");return t.href=decodeURIComponent(e),{protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host}}function a(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":"+e.port:""))+(e.pathname||"")+(e.search?"?"+n(e.search||""):"")+(e.hash?"#"+e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0});var o=(function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,d=e[Symbol.iterator]();!(n=(o=d.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&d["return"]&&d["return"]()}finally{if(i)throw a}}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")}})();t.parseQS=r,t.formatQS=n,t.parse=i,t.format=a}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(14),d=r(2),s=r(3),c=function(){function e(e){var t,r=window.location.protocol+"//b.admedia.com/banner/prebid/bidder/?";t=e.bids||[];for(var n=0;n<t.length;n++){var i={},a=t[n];if(a.params.aid){i.aid=a.params.aid,a.params.page_url&&(i.page_url=a.params.page_url),1===a.params.test_ad&&(i.test_ad=1);var s=d.parseSizesInput(a.sizes),c=s.length;if(c>0&&(i.size=s[0],c>1)){for(var u=[],p=1;c>p;p++)u.push(s[p]);i.promo_sizes=u.join(",")}i.siteDomain=window.location.host,i.sitePage=window.location.href,i.siteRef=document.referrer,i.topUrl=d.getTopWindowUrl(),i.callbackId=a.bidId;var l=r+d.parseQueryStringParameters(i);o.loadScript(l)}else d.logError("required param aid is missing","admedia")}}return pbjs.admediaHandler=function(e){var t={},r=e.callback_id,o="",c=n.getBidRequest(r);c&&(o=c.placementCode),c&&e.cpm>0&&e.ad?(t=i.createBid(s.STATUS.GOOD),t.bidderCode=c.bidder,t.cpm=parseFloat(e.cpm),t.ad=e.ad,t.width=e.width,t.height=e.height):(t=i.createBid(s.STATUS.NO_BID),t.bidderCode=c.bidder,d.logMessage("No prebid response from Admedia for placement code "+o)),a.addBidResponse(o,t)},{callBids:e}};e.exports=c}),(function(e,t,r){"use strict";var n=r(12),i=r(11),a=r(2),o=r(14),d=function(){function e(e){for(var r=e.bids||[],n=0;n<r.length;n++){var i=r[n];t(i)}}function t(e){var t=a.getBidIdParameter("adunitId",e.params),n=a.getBidIdParameter("pubId",e.params),i=a.getBidIdParameter("reservePrice",e.params),d={placementCode:e.placementCode,cbID:e.bidId},s=function(){FORGE.init([t,n,d,i])};o.loadScript(r,s)}var r="//cdn.bidfluence.com/forge.js";return pbjs.bfPbjsCB=function(e){var t=a.getBidRequest(e.cbID),r=null;e.cpm>0?(r=i.createBid(1,t),r.bidderCode="bidfluence",r.cpm=e.cpm,r.ad=e.ad,r.width=e.width,r.height=e.height):(r=i.createBid(2,t),r.bidderCode="bidfluence"),n.addBidResponse(e.placementCode,r)},{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e){if(e&&e.params&&e.params.aid&&e.placementCode){i=e;var r=t(e.sizes);return i.width=r.width,i.height=r.height,{aid:e.params.aid,w:r.width,h:r.height,domain:document.location.hostname}}}function t(e){var t={},r=f.parseSizesInput(e)[0];if("string"!=typeof r)return t;var n=r.toUpperCase().split("X");return{width:parseInt(n[0],10)||void 0,height:parseInt(n[1],10)||void 0}}function r(e){var t;try{t=JSON.parse(e)}catch(r){f.logError(r)}return t&&!t.error&&t.bids&&t.bids.length?(p["default"].addBidResponse(i.placementCode,n(g.STATUS.GOOD,t.bids[0])),void 0):(p["default"].addBidResponse(i.placementCode,n(g.STATUS.NO_BID)),void 0)}function n(e,t){var r=c["default"].createBid(e,t);return r.code=o.getBidderCode(),r.bidderCode=i.bidder,t&&e===g.STATUS.GOOD?(r.mediaType="video",r.cpm=t.cpm,r.creative_id=t.cmpId,r.width=i.width,r.height=i.height,r.descriptionUrl=t.url,r.vastUrl=t.url,r):r}var i,o=d["default"].createNew("vertamedia");return o.callBids=function(t){if(t&&t.bids&&0!==t.bids.length){var n=e(t.bids[0]);n&&m.ajax(h,r,n,{contentType:"text/plain",withCredentials:!0,method:"GET"})}},{createNew:a.createNew,callBids:o.callBids,setBidderCode:o.setBidderCode}}var o=r(15),d=i(o),s=r(11),c=i(s),u=r(12),p=i(u),l=r(2),f=n(l),m=r(22),g=r(3),h="//rtb.vertamedia.com/hb/";a.createNew=function(){return new a},e.exports=a}),(function(e,t,r){"use strict";function n(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var i=n(["","://","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=","",";misc=",""],["","://","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=","",";misc=",""]),a=n(["","://","/bidRequest?"],["","://","/bidRequest?"]),o=n(["dcn=","&pos=","&cmd=bid",""],["dcn=","&pos=","&cmd=bid",""]),d=r(2),s=r(22).ajax,c=r(11),u=r(12),p=r(3),l=function(){function e(e){var n=t(e);r(n)}function t(e){var t=/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi,r=/\w*(?=\s)/,n=/src=("|')(.*?)\1/,i=[];if(e){var a=e.match(t);a&&a.forEach((function(e){var t=e.match(r),a=e.match(n);t&&a&&i.push({tagName:t[0].toUpperCase(),src:a[2]})}))}return i}function r(e){e.forEach((function(e){switch(e.tagName){case x.img:return n(e);case x.iframe:return l(e)}}))}function n(e){var t=new Image;t.src=e.src}function l(e){var t=document.createElement("iframe");t.width=1,t.height=1,t.style.display="none",t.src=e.src,"interactive"===document.readyState||"complete"===document.readyState?document.body.appendChild(t):T((function(){document.body.appendChild(t)}))}function f(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=Array(t),i=0;t>i;i++)n[i]=arguments[i];var a=n[n.length-1]||{},o=[e[0]];return r.forEach((function(t,r){var i=Number.isInteger(t)?n[t]:a[t];o.push(i,e[r+1])})),o.join("")}}function m(e){var t=e.params,r=t.server,n=t.region||"us",i=void 0;
return C.hasOwnProperty(n)||(d.logWarn("Unknown region '"+n+"' for AOL bidder."),n="us"),i=r?r:C[n],t.region=n,I({protocol:"https:"===document.location.protocol?"https":"http",host:i,network:t.network,placement:parseInt(t.placement),pageid:t.pageId||0,sizeid:t.sizeId||0,alias:t.alias||d.getUniqueIdentifierStr(),bidfloor:"undefined"!=typeof t.bidFloor?";bidfloor="+t.bidFloor.toString():"",misc:(new Date).getTime()})}function g(e){var t=e.params,r=t.dcn,n=t.pos,i=_({protocol:"https:"===document.location.protocol?"https":"http",host:e.params.host||A});if(r&&n){var a="";d._each(e.params.ext,(function(e,t){a+="&"+t+"="+encodeURIComponent(e)})),i+=B({dcn:r,pos:n,ext:a})}return i}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c.createBid(2,e);r.bidderCode=S,r.reason=t.nbr,r.raw=t,u.addBidResponse(e.placementCode,r)}function b(t,r){var n=void 0;try{n=r.seatbid[0].bid[0]}catch(i){return h(t,r),void 0}var a=void 0;if(n.ext&&n.ext.encp)a=n.ext.encp;else if(a=n.price,null===a||isNaN(a))return d.logError("Invalid price in bid response",S,t),h(t,r),void 0;var o=n.adm;r.ext&&r.ext.pixels&&(t.params.userSyncOn===p.EVENTS.BID_RESPONSE?e(r.ext.pixels):o+=r.ext.pixels);var s=c.createBid(1,t);s.bidderCode=S,s.ad=o,s.cpm=a,s.width=n.w,s.height=n.h,s.creativeId=n.crid,s.pubapiId=r.id,s.currencyCode=r.cur,n.dealid&&(s.dealId=n.dealid),u.addBidResponse(t.placementCode,s)}function v(e){if(e.params.id&&e.params.imp&&e.params.imp[0]){var t=e.params.imp[0];return t.id&&t.tagid&&(t.banner&&t.banner.w&&t.banner.h||t.video&&t.video.mimes&&t.video.minduration&&t.video.maxduration)}}function y(e){d._each(e.bids,(function(e){var t=void 0,r=null,n={withCredentials:!0},i=v(e);e.params.placement&&e.params.network?t=m(e):(e.params.dcn&&e.params.pos||i)&&(t=g(e),i&&(r=e.params,n.customHeaders={"x-openrtb-version":"2.2"},n.method="POST",n.contentType="application/json")),t&&s(t,(function(t){if(w&&pbjs.bidderSettings&&pbjs.bidderSettings.aol&&"function"==typeof pbjs.bidderSettings.aol.bidCpmAdjustment&&d.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."),w=!1,!t&&t.length<=0)return d.logError("Empty bid response",S,e),h(e,t),void 0;try{t=JSON.parse(t)}catch(r){return d.logError("Invalid JSON in bid response",S,e),h(e,t),void 0}b(e,t)}),r,n)}))}var w=!0,I=f(i,"protocol","host","network","placement","pageid","sizeid","alias","bidfloor","misc"),_=f(a,"protocol","host"),B=f(o,"dcn","pos","ext"),S="aol",C={us:"adserver-us.adtech.advertising.com",eu:"adserver-eu.adtech.advertising.com",as:"adserver-as.adtech.advertising.com"},A="hb.nexage.com",x={iframe:"IFRAME",img:"IMG"},T=(function(){var e=!1;return function(t){var r=function(){return e?void 0:(e=!0,t())};return"complete"===document.readyState?r():(document.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1),void 0)}})();return{callBids:y}};e.exports=l}),(function(e,t,r){"use strict";var n,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=r(2),o=r(3),d=r(2),s=r(14),c=r(12),u=r(11),p=r(15);n=function l(){function e(e,t){var r=d.getBidIdParameter("placementId",e.params),n=d.getBidIdParameter("memberId",e.params),a=d.getBidIdParameter("member",e.params),o=d.getBidIdParameter("invCode",e.params),s=d.getBidIdParameter("query",e.params),c=d.getBidIdParameter("referrer",e.params),u=d.getBidIdParameter("alt_referrer",e.params),p="http"+("https:"===document.location.protocol?"s://secure.adnxs.com/jpt?":"://ib.adnxs.com/jpt?");p=d.tryAppendQueryString(p,"callback","pbjs.handleAnCB"),p=d.tryAppendQueryString(p,"callback_uid",t),p=d.tryAppendQueryString(p,"psa","0"),p=d.tryAppendQueryString(p,"id",r),a?p=d.tryAppendQueryString(p,"member",a):n&&(p=d.tryAppendQueryString(p,"member",n),d.logMessage('appnexus.callBids: "memberId" will be deprecated soon. Please use "member" instead')),p=d.tryAppendQueryString(p,"code",o),p=d.tryAppendQueryString(p,"traffic_source_code",d.getBidIdParameter("trafficSourceCode",e.params));var l="",f=d.parseSizesInput(e.sizes),m=f.length;if(m>0&&(l="size="+f[0],m>1)){l+="&promo_sizes=";for(var g=1;m>g;g++)l+=f[g]+=",";l&&","===l.charAt(l.length-1)&&(l=l.slice(0,l.length-1))}l&&(p+=l+"&");var h=d.parseQueryStringParameters(s);h&&(p+=h);var b=i({},e.params);delete b.placementId,delete b.memberId,delete b.invCode,delete b.query,delete b.referrer,delete b.alt_referrer,delete b.member;var v=d.parseQueryStringParameters(b);return v&&(p+=v),""===c&&(c=d.getTopWindowUrl()),p=d.tryAppendQueryString(p,"referrer",c),p=d.tryAppendQueryString(p,"alt_referrer",u),p.lastIndexOf("&")===p.length-1&&(p=p.substring(0,p.length-1)),d.logMessage("jpt request built: "+p),e.startTime=(new Date).getTime(),p}var t=p.createNew("appnexus"),r=!1;return t.callBids=function(t){for(var r=t.bids,n=0;n<r.length;n++){var i=r[n],a=i.bidId;s.loadScript(e(i,a))}},pbjs.handleAnCB=function(e){var t;if(e&&e.callback_uid){var n,i=e.callback_uid,s="",p=a.getBidRequest(i);p&&(t=p.bidder,s=p.placementCode,p.status=o.STATUS.GOOD),d.logMessage("JSONP callback function called for ad ID: "+i);var l=[];if(e.result&&e.result.cpm&&0!==e.result.cpm){n=parseInt(e.result.cpm,10),n/=1e4;var f=e.result.creative_id;l=u.createBid(1,p),l.creative_id=f,l.bidderCode=t,l.cpm=n,l.adUrl=e.result.ad,l.width=e.result.width,l.height=e.result.height,l.dealId=e.result.deal_id,c.addBidResponse(s,l)}else d.logMessage("No prebid response from AppNexus for placement code "+s),l=u.createBid(2,p),l.bidderCode=t,c.addBidResponse(s,l);if(!r){var m=d.createInvisibleIframe();m.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(m)}catch(g){d.logError(g)}r=!0}}else d.logMessage("No prebid response for placement %%PLACEMENT%%")},{callBids:t.callBids,setBidderCode:t.setBidderCode,createNew:l.createNew,buildJPTCall:e}},n.createNew=function(){return new n},e.exports=n}),(function(e,t,r){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function o(){function e(e){var t=void 0;try{t=JSON.parse(e)}catch(r){b.logError(r)}if(!t||t.error){var n="in response for "+C.getBidderCode()+" adapter";return t&&t.error&&(n+=": "+t.error),b.logError(n),Object.keys(A).map((function(e){return A[e].placementCode})).forEach((function(e){g["default"].addBidResponse(e,h(y.STATUS.NO_BID))})),void 0}if(t.tags.forEach((function(e){var t=i(e),r=t&&t.cpm,n=t&&t.ad_type,a=void 0;a=0!==r&&I.includes(n)?y.STATUS.GOOD:y.STATUS.NO_BID,n&&!I.includes(n)&&b.logError(n+" ad type not supported"),e.bidId=e.uuid;var o=h(a,e);"native"===n&&(o.mediaType="native"),"video"===n&&(o.mediaType="video"),"video-outstream"===n&&(o.mediaType="video-outstream");var d=A[o.adId].placementCode;g["default"].addBidResponse(d,o)})),!x){var a=b.createInvisibleIframe();a.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(a)}catch(r){b.logError(r)}x=!0}}function t(e){return e.params.placementId||e.params.member&&e.params.invCode?e:(b.logError("bid requires placementId or (member and invCode) params"),void 0)}function r(e){var t=[];return b._each(e,(function(e,r){if(b.isArray(e)){var n=[];b._each(e,(function(e){e=b.getValueString("keywords."+r,e),e&&n.push(e)})),e=n}else{if(e=b.getValueString("keywords."+r,e),!b.isStr(e))return;e=[e]}t.push({key:r,value:e})})),t}function n(e){var t=[],r={};if(b.isArray(e)&&2===e.length&&!b.isArray(e[0]))r.width=parseInt(e[0],10),r.height=parseInt(e[1],10),t.push(r);else if("object"===("undefined"==typeof e?"undefined":d(e)))for(var n=0;n<e.length;n++){var i=e[n];r={},r.width=parseInt(i[0],10),r.height=parseInt(i[1],10),t.push(r)}return t}function i(e){return e&&e.ads&&e.ads.length&&e.ads.find((function(e){return e.rtb}))}function c(e){window.ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},m.bind(e))}function l(){}function m(e,t){var r=this;r.renderer.handleVideoEvent({id:e,eventName:t})}function h(e,t){var r=i(t),n=f["default"].createBid(e,t);if(n.code=C.getBidderCode(),n.bidderCode=C.getBidderCode(),r&&e===y.STATUS.GOOD)if(n.cpm=r.cpm,n.creative_id=r.creative_id,n.dealId=r.deal_id,r.rtb.video){if(n.width=r.rtb.video.player_width,n.height=r.rtb.video.player_height,n.vastUrl=r.rtb.video.asset_url,n.descriptionUrl=r.rtb.video.asset_url,r.renderer_url){n.adResponse=t,n.renderer=p.Renderer.install({id:r.renderer_id,url:r.renderer_url,config:{adText:"AppNexus Outstream Video Ad via Prebid.js"},callback:function(){return l.call(null,n)}});try{n.renderer.setRender(c)}catch(a){b.logWarning("Prebid Error calling setRender on renderer",a)}n.renderer.setEventHandlers({impression:function(){return b.logMessage("AppNexus outstream video impression event")},loaded:function(){return b.logMessage("AppNexus outstream video loaded event")},ended:function(){b.logMessage("AppNexus outstream renderer video event"),document.querySelector("#"+n.adUnitCode).style.display="none"}}),n.adResponse.ad=n.adResponse.ads[0],n.adResponse.ad.video=n.adResponse.ad.rtb.video}}else if(r.rtb.native){var o=r.rtb.native;n.native={title:o.title,body:o.desc,sponsoredBy:o.sponsored,image:o.main_img&&o.main_img.url,icon:o.icon&&o.icon.url,clickUrl:o.link.url,impressionTrackers:o.impression_trackers}}else{n.width=r.rtb.banner.width,n.height=r.rtb.banner.height,n.ad=r.rtb.banner.content;try{var d=r.rtb.trackers[0].impression_urls[0],s=b.createTrackPixelHtml(d);n.ad+=s}catch(u){b.logError("Error appending tracking pixel",u)}}return n}var C=u["default"].createNew("appnexusAst"),A={},x=!1;return C.callBids=function(i){var o=i.bids||[],d=0,c=void 0,u=o.filter((function(e){return t(e)})).map((function(e){A[e.bidId]=e;var t={};if(t.sizes=n(e.sizes),t.primary_size=t.sizes[0],t.uuid=e.bidId,e.params.placementId?t.id=parseInt(e.params.placementId,10):t.code=e.params.invCode,t.allow_smaller_sizes=e.params.allowSmallerSizes||!1,t.prebid=!0,t.disable_psa=!0,d=parseInt(e.params.member,10),e.params.reserve&&(t.reserve=e.params.reserve),e.params.position&&(t.position={above:1,below:2}[e.params.position]||0),e.params.trafficSourceCode&&(t.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(t.private_sizes=n(e.params.privateSizes)),e.params.supplyType&&(t.supply_type=e.params.supplyType),e.params.pubClick&&(t.pubclick=e.params.pubClick),e.params.extInvCode&&(t.ext_inv_code=e.params.extInvCode),e.params.externalImpId&&(t.external_imp_id=e.params.externalImpId),b.isEmpty(e.params.keywords)||(t.keywords=r(e.params.keywords)),"native"===e.mediaType&&(t.ad_types=["native"],e.nativeParams)){var i={};Object.keys(e.nativeParams).forEach((function(t){var r=S[t]&&S[t].serverName||S[t]||t,n=s({},e.nativeParams[t],S[t]&&S[t].serverParams);i[r]=n})),t.native={layouts:[i]}}return"video"===e.mediaType&&(t.require_asset_url=!0),e.params.video&&(t.video={},Object.keys(e.params.video).filter((function(e){return _.includes(e)})).forEach((function(r){return t.video[r]=e.params.video[r]}))),e.params.user&&(c={},Object.keys(e.params.user).filter((function(e){return B.includes(e)})).forEach((function(t){return c[t]=e.params.user[t]}))),t}));if(!b.isEmpty(u)){var p={tags:[].concat(a(u)),user:c};d>0&&(p.member_id=d);var l=JSON.stringify(p);v.ajax(w,e,l,{contentType:"text/plain",withCredentials:!0})}},{createNew:o.createNew,callBids:C.callBids,setBidderCode:C.setBidderCode}}var d="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},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c=r(15),u=i(c),p=r(30),l=r(11),f=i(l),m=r(12),g=i(m),h=r(2),b=n(h),v=r(22),y=r(3),w="//ib.adnxs.com/ut/v3/prebid",I=["banner","video","video-outstream","native"],_=["id","mimes","minduration","maxduration","startdelay","skippable","playback_method","frameworks"],B=["age","external_uid","segments","gender","dnt","language"],S={body:"description",image:{serverName:"main_image",serverParams:{required:!0,sizes:[{}]}}};o.createNew=function(){return new o},e.exports=o}),(function(e,t,r){"use strict";function n(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}function i(e){var t=e.url,r=e.config,n=e.id,i=e.callback;this.url=t,this.config=r,this.callback=i,this.handlers={},this.id=n,a.loadScript(t,i,!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=i;var a=r(14),o=r(2),d=n(o);i.install=function(e){var t=e.url,r=e.config,n=e.id,a=e.callback;return new i({url:t,config:r,id:n,callback:a})},i.prototype.getConfig=function(){return this.config},i.prototype.setRender=function(e){this.render=e},i.prototype.setEventHandlers=function(e){this.handlers=e},i.prototype.handleVideoEvent=function(e){var t=e.id,r=e.eventName;"function"==typeof this.handlers[r]&&this.handlers[r](),d.logMessage("Prebid Renderer event for id "+t+" type "+r)}}),(function(e,t,r){(function(t){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e){if(e&&e.params&&e.params.appId){var t=e;return t.width=parseInt(e.sizes[0],10)||void 0,t.height=parseInt(e.sizes[1],10)||void 0,t}}function r(e){function r(){return/(ios|ipod|ipad|iphone|android)/i.test(t.navigator.userAgent)?1:/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(t.navigator.userAgent)?1:2}if(e&&e.params&&e.params.appId&&e.params.bidfloor){var n={isPrebid:!0,appId:e.params.appId,domain:document.location.hostname,imp:[{video:{w:e.width,h:e.height},bidfloor:e.params.bidfloor}],site:{page:f.getTopWindowLocation().host},device:{ua:navigator.userAgent,devicetype:r()},cur:["USD"]};return n}}function n(e){return function(t){var r;if(t)try{r=JSON.parse(t)}catch(n){f.logError(n)}else f.logWarn("No bid response");if(!r||r.error||!r.url||!r.bidPrice)return f.logWarn("No Valid Bid"),p["default"].addBidResponse(e.placementCode,i(e,g.STATUS.NO_BID)),void 0;var a={};a.price=r.bidPrice,a.url=r.url,a.bidId=e.bidId,p["default"].addBidResponse(e.placementCode,i(e,g.STATUS.GOOD,a))}}function i(e,t,r){var n=c["default"].createBid(t,r);return n.code=o.getBidderCode(),n.bidderCode=e.bidder,r&&t===g.STATUS.GOOD?(n.cpm=r.price,n.creative_id=r.cmpId,n.width=e.width,n.height=e.height,n.descriptionUrl=r.url,n.vastUrl=r.url,n.mediaType="video",n):n}var o=d["default"].createNew("beachfront");return o.callBids=function(t){var a=t.bids||[];a.forEach((function(t){var a=e(t),o=r(t);if(!o){var d="No bid params";return f.logError(d),t&&t.placementCode&&p["default"].addBidResponse(t.placementCode,i(t,g.STATUS.NO_BID)),void 0}var s=h+o.appId;m.ajax(s,n(a),JSON.stringify(o),{contentType:"text/plain",withCredentials:!0})}))},{createNew:a.createNew,callBids:o.callBids,setBidderCode:o.setBidderCode}}var o=r(15),d=i(o),s=r(11),c=i(s),u=r(12),p=i(u),l=r(2),f=n(l),m=r(22),g=r(3),h="//reachms.bfmio.com/bid.json?exchange_id=";a.createNew=function(){return new a},e.exports=a}).call(t,(function(){return this})())}),(function(e,t,r){"use strict";var n=(function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,d=e[Symbol.iterator]();!(n=(o=d.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&d["return"]&&d["return"]()}finally{if(i)throw a}}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")}})(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a="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},o=r(22),d=r(11),s=r(12),c=r(3),u=r(23),p=r(2),l=r(15),f=l.createNew("audienceNetwork"),m=f.setBidderCode,g=f.getBidderCode,h=function(e){return"object"===a(e.params)&&"string"==typeof e.params.placementId&&e.params.placementId.length>0&&Array.isArray(e.sizes)&&e.sizes.length>0},b=function(e){var t=Array.isArray(e.sizes)&&e.sizes.map(v).filter(y);return i({},e,{sizes:t})},v=function(e){return Array.isArray(e)&&2===e.length?e[0]+"x"+e[1]:e},y=function(e){return["native","fullwidth","300x250","320x50"].includes(e)},w=function(){return Boolean(window&&window.location&&"string"==typeof window.location.search&&-1!==window.location.search.indexOf("anhb_testmode")).toString()},I=function(e){var t={};try{t=JSON.parse(e)}catch(r){}return t},_=function(e){return["native","fullwidth"].includes(e)},B=function(e,t,r){var n=_(t)?'<script>window.onload=function(){if(parent){var o=document.getElementsByTagName("head")[0];var s=parent.document.getElementsByTagName("style");for(var i=0;i<s.length;i++)o.appendChild(s[i].cloneNode(true));}}</script>':"",i=_(t)?'<div class="thirdPartyRoot"><a class="fbAdLink"><div class="fbAdMedia thirdPartyMediaClass"></div><div class="fbAdSubtitle thirdPartySubtitleClass"></div><div class="fbDefaultNativeAdWrapper"><div class="fbAdCallToAction thirdPartyCallToActionClass"></div><div class="fbAdTitle thirdPartyTitleClass"></div></div></a></div>':"";return"<html><head>"+n+"</head><body><div style=\"display:none;position:relative;\">\n<script type='text/javascript'>var data = {placementid:'"+e+"',format:'"+t+"',bidid:'"+r+"',onAdLoaded:function(e){console.log('Audience Network ["+e+"] ad loaded');e.style.display = 'block';},onAdError:function(c,m){console.log('Audience Network ["+e+"] error (' + c + ') ' + m);}};\n (function(a,b,c){var d='https://www.facebook.com',e='https://connect.facebook.net/en_US/fbadnw55.js',f={iframeLoaded:true,xhrLoaded:true},g=a.data,h=function(){if(Date.now){return Date.now();}else return +new Date();},i=function(aa){var ba=d+'/audience_network/client_event',ca={cb:h(),event_name:'ADNW_ADERROR',ad_pivot_type:'audience_network_mobile_web',sdk_version:'5.5.web',app_id:g.placementid.split('_')[0],publisher_id:g.placementid.split('_')[1],error_message:aa},da=[];for(var ea in ca)da.push(encodeURIComponent(ea)+'='+encodeURIComponent(ca[ea]));var fa=ba+'?'+da.join('&'),ga=new XMLHttpRequest();ga.open('GET',fa,true);ga.send();if(g.onAdError)g.onAdError('1000','Internal error.');},j=function(){if(b.currentScript){return b.currentScript;}else{var aa=b.getElementsByTagName('script');return aa[aa.length-1];}},k=function(aa){try{return aa.document.referrer;}catch(ba){}return '';},l=function(){var aa=a,ba=[aa];try{while(aa!==aa.parent&&aa.parent.document)ba.push(aa=aa.parent);}catch(ca){}return ba.reverse();},m=function(){var aa=l();for(var ba=0;ba<aa.length;ba++){var ca=aa[ba],da=ca.ADNW||{};ca.ADNW=da;if(!ca.ADNW)continue;return da.v55=da.v55||{ads:[],window:ca};}throw new Error('no_writable_global');},n=function(aa){var ba=aa.indexOf('/',aa.indexOf('://')+3);if(ba===-1)return aa;return aa.substring(0,ba);},o=function(aa){return aa.location.href||k(aa);},p=function(aa){if(aa.sdkLoaded)return;var ba=aa.window.document,ca=ba.createElement('iframe');ca.name='fbadnw';ca.style.display='none';ba.body.appendChild(ca);var da=ca.contentDocument.createElement('script');da.src=e;da.async=true;ca.contentDocument.body.appendChild(da);aa.sdkLoaded=true;},q=function(aa){var ba=/https?:\\/\\/www\\.google(\\.com?)?\\.\\w{2,3}$/;return !!aa.match(ba);},r=function(aa){return !!aa.match(/cdn\\.ampproject\\.org$/);},s=function(){var aa=c.ancestorOrigins||[],ba=aa[aa.length-1]||c.origin,ca=aa[aa.length-2]||c.origin;if(q(ba)&&r(ca)){return n(ca);}else return n(ba);},t=function(aa){try{return JSON.parse(aa);}catch(ba){i(ba.message);throw ba;}},u=function(aa,ba,ca){if(!aa.iframe){var da=ca.createElement('iframe');da.src=d+'/audiencenetwork/iframe/';da.style.display='none';ca.body.appendChild(da);aa.iframe=da;aa.iframeAppendedTime=h();aa.iframeData={};}ba.iframe=aa.iframe;ba.iframeData=aa.iframeData;ba.tagJsIframeAppendedTime=aa.iframeAppendedTime||0;},v=function(aa){var ba=d+'/audiencenetwork/xhr/?sdk=5.5.web';for(var ca in aa)if(typeof aa[ca]!=='function')ba+='&'+ca+'='+encodeURIComponent(aa[ca]);var da=new XMLHttpRequest();da.open('GET',ba,true);da.withCredentials=true;da.onreadystatechange=function(){if(da.readyState===4){var ea=t(da.response);aa.events.push({name:'xhrLoaded',source:aa.iframe.contentWindow,data:ea,postMessageTimestamp:h(),receivedTimestamp:h()});}};da.send();},w=function(aa,ba){var ca=d+'/audiencenetwork/xhriframe/?sdk=5.5.web';for(var da in ba)if(typeof ba[da]!=='function')ca+='&'+da+'='+encodeURIComponent(ba[da]);var ea=b.createElement('iframe');ea.src=ca;ea.style.display='none';b.body.appendChild(ea);ba.iframe=ea;ba.iframeData={};ba.tagJsIframeAppendedTime=h();},x=function(aa){var ba=function(event){try{var da=event.data;if(da.name in f)aa.events.push({name:da.name,source:event.source,data:da.data});}catch(ea){}},ca=aa.iframe.contentWindow.parent;ca.addEventListener('message',ba,false);},y=function(aa){if(aa.context&&aa.context.sourceUrl)return true;try{return !!JSON.parse(decodeURI(aa.name)).ampcontextVersion;}catch(ba){return false;}},z=function(aa){var ba=h(),ca=l()[0],da=j().parentElement,ea=ca!=a.top,fa=ca.$sf&&ca.$sf.ext,ga=o(ca),ha=m();p(ha);var ia={amp:y(ca),events:[],tagJsInitTime:ba,rootElement:da,iframe:null,tagJsIframeAppendedTime:ha.iframeAppendedTime||0,url:ga,domain:s(),channel:n(o(ca)),width:screen.width,height:screen.height,pixelratio:a.devicePixelRatio,placementindex:ha.ads.length,crossdomain:ea,safeframe:!!fa,placementid:g.placementid,format:g.format||'300x250',testmode:!!g.testmode,onAdLoaded:g.onAdLoaded,onAdError:g.onAdError};if(g.bidid)ia.bidid=g.bidid;if(ea){w(ha,ia);}else{u(ha,ia,ca.document);v(ia);}; x(ia);ia.rootElement.dataset.placementid=ia.placementid;ha.ads.push(ia);};try{z();}catch(aa){i(aa.message||aa);throw aa;}})(window,document,location);\n </script>\n "+i+"</div></body></html>"},S=function(e,t,r,i){var a=d.createBid(c.STATUS.GOOD,{bidId:r});if(a.bidderCode=g(),a.cpm=i/100,a.ad=B(e,t,r),!_(t)){var o=t.split("x").map(Number),s=n(o,2);a.width=s[0],a.height=s[1]}return a.hb_bidder="fan",a.fb_bidid=r,a.fb_format=t,a.fb_placementid=e,a},C=function(){var e=d.createBid(c.STATUS.NO_BID);return e.bidderCode=g(),e},A=function(e){var t=[],r=[],n=[];if(e.bids.map(b).filter(h).forEach((function(e){return e.sizes.forEach((function(i){t.push(e.placementCode),r.push(e.params.placementId),n.push(i)}))})),r.length){var i=w(),a=u.format({protocol:"https",host:"an.facebook.com",pathname:"/v2/placementbid.json",search:{sdk:"5.5.web",testmode:i,placementids:r,adformats:n}});o.ajax(a,(function(e){var r=I(e);if(r.errors&&r.errors.length){var i=C();t.forEach((function(e){return s.addBidResponse(e,i)})),r.errors.forEach(p.logError)}else Object.keys(r.bids).map((function(e){return r.bids[e]})).reduce((function(e,t){return e.concat(t)}),[]).forEach((function(e,r){return s.addBidResponse(t[r],S(e.placement_id,n[r],e.bid_id,e.bid_price_cents))}))}),null,{withCredentials:!0})}else p.logError("No valid bids requested")},x=function(){return{callBids:A,setBidderCode:m,getBidderCode:g}};e.exports=x}),(function(e,t,r){"use strict";var n="2.0.1",i=r(3),a=r(2),o=r(11),d=r(12),s=r(14),c=r(22).ajax,u=function(){var e=window,t=navigator,r="//media.msg.dotomi.com/s2s/header?callback=pbjs.conversantResponse",u=function(e){var t=document.createElement("script");t.type="text/javascript",t.className="cnvr-response";try{t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)}catch(r){t.text=e,document.getElementsByTagName("head")[0].appendChild(t)}},p=function(){return"1"===t.doNotTrack||"1"===e.doNotTrack||"1"===t.msDoNotTrack||"yes"===t.doNotTrack},l=function(){var e=t.language?"language":"userLanguage";return{h:screen.height,w:screen.width,dnt:p()?1:0,language:t[e].split("-")[0],make:t.vendor?t.vendor:"",ua:t.userAgent}},f=function(e){var t=e.bids||[];m(t)},m=function(e){var t,i=location.pathname+location.search+location.hash,o="",d=[],s=0;a._each(e,(function(e){var t,r=a.getBidIdParameter("bidfloor",e.params),i=0,c=0;s=a.getBidIdParameter("secure",e.params)?1:s,o=a.getBidIdParameter("site_id",e.params)+"";var u=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes;2===u.length&&"number"==typeof u[0]&&"number"==typeof u[1]?(i=u[0],c=u[1]):(i=u[0][0],c=u[0][1]),t={id:e.bidId,banner:{w:i,h:c},secure:s,bidfloor:r||0,displaymanager:"Prebid.js",displaymanagerver:n},d.push(t)})),t={id:a.getUniqueIdentifierStr(),imp:d,site:{id:o,mobile:null!==document.querySelector('meta[name="viewport"][content*="width=device-width"]')?1:0,page:i},device:l(),at:1};var p=s?"https:"+r:location.protocol+r;c(p,u,JSON.stringify(t),{withCredentials:!0})},g=function(e){var t=pbjs._bidsRequested.find((function(e){return"conversant"===e.bidderCode}));t&&t.bids&&a._each(t.bids,(function(t){if(!a.contains(e,t.placementCode)){var r=o.createBid(2,t);r.bidderCode="conversant",d.addBidResponse(t.placementCode,r)}}))},h=function(e){var t=[];a._each(e.bid,(function(e){var r,n,a,s,c="",u=e.impid,p={},l=pbjs._bidsRequested.find((function(e){return"conversant"===e.bidderCode})).bids.find((function(e){return e.bidId===u}));l&&(c=l.placementCode,l.status=i.STATUS.GOOD,r=parseFloat(e.price),0!==r&&(e.placementCode=c,t.push(c),e.size=l.sizes,n=e.adm||"",a=e.nurl||"",p=o.createBid(1,l),p.creative_id=e.id||"",p.bidderCode="conversant",p.cpm=r,p.ad=n+'<img src="'+a+'" />',s=l.sizes.length,2===s&&"number"==typeof l.sizes[0]&&"number"==typeof l.sizes[1]?(p.width=l.sizes[0],p.height=l.sizes[1]):(p.width=l.sizes[0][0],p.height=l.sizes[0][1]),d.addBidResponse(c,p)))})),g(t)};return pbjs.conversantResponse=function(e,t){e&&e.id?e.seatbid&&e.seatbid.length>0&&e.seatbid[0].bid&&e.seatbid[0].bid.length>0?a._each(e.seatbid,h):g([]):g([]),t&&s.loadScript(t,(function(){var e=pbjs._bidsRequested.find((function(e){return"conversant"===e.bidderCode}));pbjs.conversantDebugResponse&&pbjs.conversantDebugResponse(e)}))},{callBids:f}};e.exports=u}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=function(){var e=this,t=window.location.protocol+"//prebid.districtm.ca/lib.js";return this.callBids=function(r){return window.hb_dmx_res?e.sendBids(r):a.loadScript(t,(function(){e.sendBids(r)})),r},this.handlerRes=function(e,t){var r=void 0;return parseFloat(e.result.cpm)>0?(r=n.createBid(1),r.bidderCode=t.bidder,r.cpm=e.result.cpm,r.width=e.result.width,r.height=e.result.height,r.ad=e.result.banner,i.addBidResponse(t.placementCode,r)):(r=n.createBid(2),r.bidderCode=t.bidder,i.addBidResponse(t.placementCode,r)),r},this.sendBids=function(e){for(var t=e.bids,r=0;r<t.length;r++)t[r].params.sizes=window.hb_dmx_res.auction.fixSize(t[r].sizes);return window.hb_dmx_res.auction.run(window.hb_dmx_res.ssp,t,this.handlerRes),t},{callBids:this.callBids,sendBids:this.sendBids,handlerRes:this.handlerRes}};e.exports=o}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(14),d=r(3).STATUS,s=function(){function e(e){var r=e.bids||[];r.forEach((function(e){var r=e.params.server||c,i=window.location.protocol+"//"+r+"/delivery/hb.php?";i+="callback=window.pbjs.fidelityResponse",i+="&requestid="+n.getUniqueIdentifierStr(),i+="&impid="+e.bidId,i+="&zoneid="+e.params.zoneid,i+="&cb="+Math.floor(99999999999*Math.random()),i+=document.charset?"&charset="+document.charset:document.characterSet?"&charset="+document.characterSet:"";var a;try{a=window.top!==window?document.referrer:window.location.href}catch(d){a=document.referrer}a=e.params.loc||a,i+="&loc="+encodeURIComponent(a);var s=e.params.subid||"hb";i+="&subid="+s,document.referrer&&(i+="&referer="+encodeURIComponent(document.referrer)),e.params.click&&(i+="&ct0="+encodeURIComponent(e.params.click)),i+="&flashver="+encodeURIComponent(t()),o.loadScript(i)}))}function t(){var e,t,r;if(navigator.plugins&&navigator.plugins.length>0){e=navigator.plugins;for(var n=0;n<e.length&&!r;n++)t=e[n],t.name.indexOf("Shockwave Flash")>-1&&(r=t.description.split("Shockwave Flash ")[1])}return r||""}function r(e){var t=pbjs._bidsRequested.find((function(e){return e.bidderCode===s}));t&&t.bids&&n._each(t.bids,(function(t){if(!n.contains(e,t.placementCode)){var r=i.createBid(d.NO_BID,t);r.bidderCode=s,a.addBidResponse(t.placementCode,r)}}))}var s="fidelity",c="x.fidelity-media.com";return pbjs.fidelityResponse=function(e){if(!e||!e.seatbid||0===e.seatbid.length||!e.seatbid[0].bid||0===e.seatbid[0].bid.length)return r([]),void 0;var t=e.seatbid[0].bid[0],o=t.adm?d.GOOD:d.NO_BID,c=n.getBidRequest(t.impid),u=i.createBid(o);u.bidderCode=s,o===d.GOOD&&(u.cpm=parseFloat(t.price),u.ad=t.adm,u.width=parseInt(t.width),u.height=parseInt(t.height));var p=c&&c.placementCode;a.addBidResponse(p,u)},{callBids:e}};e.exports=s}),(function(e,t,r){(function(t){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=r(11),a=r(12),o=r(2),d=r(14),s="gumgum",c={},u=function(){function e(){return(new Date).getTime()}function r(t){var r=t.bids,i={vw:p.innerWidth,vh:p.innerHeight,sw:l.width,sh:l.height,pu:p.location.href,ce:navigator.cookieEnabled,dpr:p.devicePixelRatio||1};o._each(r,(function(t){var r=t.bidId,a=t.params,s=void 0===a?{}:a,p=t.placementCode,l=e(),h=s.inScreen,b=s.native,y=s.inSlot,w={tmax:pbjs.cbTimeout};switch(!0){case!!s.inImage:w.pi=1;break;case!!s.inScreen:w.pi=2;break;case!!s.inSlot:w.pi=3;break;case!!s.native:w.pi=5;break;default:return o.logWarn("[GumGum] No product selected for the placement "+p+", please check your implementation.")}var I=w.pi,_=I+"|"+p,B=g[I],S=m[_];if(S&&B&&B>l-S)return o.logWarn('[GumGum] The refreshes for "'+p+'" with the params '+(JSON.stringify(s)+" should be at least "+B/1e3+"s apart."));m[_]=l,h&&(w.t=h),b&&(w.ni=b),y&&(w.si=y),f&&(w.pv=f);var C=n({placementCode:p,id:r},w),A={jsonp:"pbjs.handleGumGumCB['"+r+"']"};c[r]=v(C);var x=n(A,i,w),T=u+"?"+o.parseQueryStringParameters(x);d.loadScript(T)}))}var u="https://g2.gumgum.com/hbid/imp",p=void 0,l=void 0,f=void 0,m={},g={},h=3e4;try{p=t.top,l=p.screen}catch(b){return o.logError(b)}var v=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.pi,o=t.ad,d=void 0===o?{}:o,u=t.pag,p=void 0===u?{}:u,l=t.thms;if(p&&p.pvid&&(f=p.pvid),d&&d.id){g[r]=l||h;var m=i.createBid(1),b=p.t;t.request=e;var v=encodeURIComponent(JSON.stringify(t)),y='<script>\n (function (context, topWindow, d, s, G) {\n G = topWindow.GUMGUM;\n d = topWindow.document;\n function loadAd() {\n topWindow.GUMGUM.pbjs("'+b+'", '+r+', "'+v+'" , context);\n }\n if (G) {\n loadAd();\n } else {\n topWindow.pbjs.loadScript("https://g2.gumgum.com/javascripts/ggv2.js", loadAd);\n }\n }(window, top));\n </script>';n(m,{cpm:d.price,ad:y,width:d.width,height:d.height,bidderCode:s}),a.addBidResponse(e.placementCode,m)}else{var w=i.createBid(2);w.bidderCode=s,a.addBidResponse(e.placementCode,w)}delete c[e.id]}};return window.pbjs.handleGumGumCB=c,{callBids:r}};e.exports=u}).call(t,(function(){return this})())}),(function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])
}return e},i=r(22),a=r(11),o=r(12),d=r(2),s=r(3).STATUS,c=function(){function e(e){return"undefined"==typeof e}function t(e,t){var r=e.placementCode,n=t?s.GOOD:s.NO_BID,i=a.createBid(n,e);i.bidderCode=h,t&&(i.cpm=t.cpm,i.ad=t.ad,i.width=t.width,i.height=t.height),d.logMessage("hiromedia.callBids, addBidResponse for "+r+" status: "+n),o.addBidResponse(r,i)}function r(e){return Math.random()<e}function c(n,i){e(n.chance)||r(n.chance)?t(i,n):t(i,!1)}function u(){var e=navigator.userAgent,t=[{name:"Mobile",stringSearch:"Mobi"},{name:"Edge"},{name:"Chrome"},{name:"Firefox"},{name:"IE",versionSearch:/MSIE\s(\d+)/},{name:"IE",stringSearch:"Trident",versionSearch:/rv:(\d+)/}],r="",n="";return t.some((function(t){var i,a=t.stringSearch||t.name,o=a+"\\/(\\d+)",d=t.versionSearch||o;return-1!==e.indexOf(a)?(r=t.name,i=e.match(d),i&&(n=i&&i[1]),!0):void 0})),{name:r,version:n}}function p(){var e=document.createElement("a");return e.href=d.getTopWindowUrl(),e.hostname}function l(e){return n({},y,e)}function f(e){var t=d.parseSizesInput(e.sizes),r=l(e.params),n=d.hasValidBidRequest(r,v,h),i=n,a={bidParams:r,shouldBid:i,selectedSize:t[0],additionalSizes:t.slice(1).join(",")};return a}function m(e){var t=!1;try{t=JSON.parse(e)}catch(r){}return t}function g(r){var a=u(),o=p(),s=r&&r.bids,l={method:"GET",withCredentials:!0},g={adapterVersion:b,browser:a.name,browserVersion:a.version,domain:o};d.logMessage("hiromedia.callBids"),s&&s.length&&s.forEach((function(r){var a=f(r),o=a.bidParams;if(d.logMessage("hiromedia.callBids, bidInfo "+r.placementCode+" "+a.shouldBid),a.shouldBid){var s=o.bidUrl,u=n({},g,a.bidParams,{placementCode:r.placementCode,selectedSize:a.selectedSize,additionalSizes:a.additionalSizes});Object.keys(u).forEach((function(t){(""===u[t]||e(u[t]))&&delete u[t]})),d.logMessage("hiromedia.callBids, bid request "+s+" "+JSON.stringify(a.bidRequest)),i.ajax(s,{success:function(e){var t=m(e);c(t,r)},error:function(e,n){d.logError("hiromedia.callBids, bid request error",n.status,e),t(r,!1)}},u,l)}else t(r,!1)}))}var h="hiromedia",b=3,v=["accountId"],y={bidUrl:"https://hb-rtb.ktdpublishers.com/bid/get"};return{callBids:g}};e.exports=c}),(function(e,t,r){"use strict";var n="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},i=r(2),a=r(11),o=r(12),d=r(14),s="INDEXEXCHANGE",c="indexExchange",u={INDEX_DEBUG_MODE:{queryParam:"pbjs_ix_debug",mode:{sandbox:{topFrameLimit:10,queryValue:"sandbox",siteID:"999990"}}}},p="IOM",l="IPM";window.cygnus_index_parse_res=function(e){try{if(e){if("object"!==("undefined"==typeof _IndexRequestData?"undefined":n(_IndexRequestData))||"object"!==n(_IndexRequestData.impIDToSlotID)||"undefined"==typeof _IndexRequestData.impIDToSlotID[e.id])return;var t,r=1;"object"===n(_IndexRequestData.reqOptions)&&"object"===n(_IndexRequestData.reqOptions[e.id])&&("function"==typeof _IndexRequestData.reqOptions[e.id].callback&&(t=_IndexRequestData.reqOptions[e.id].callback),"number"==typeof _IndexRequestData.reqOptions[e.id].targetMode&&(r=_IndexRequestData.reqOptions[e.id].targetMode)),_IndexRequestData.lastRequestID=e.id,_IndexRequestData.targetIDToBid={},_IndexRequestData.targetIDToResp={},_IndexRequestData.targetIDToCreative={};for(var i=[],a="undefined"==typeof e.seatbid?0:e.seatbid.length,o=0;a>o;o++)for(var d=0;d<e.seatbid[o].bid.length;d++){var s=e.seatbid[o].bid[d];if("object"===n(s.ext)&&"string"==typeof s.ext.pricelevel&&"undefined"!=typeof _IndexRequestData.impIDToSlotID[e.id][s.impid]){var c,u,f,m=_IndexRequestData.impIDToSlotID[e.id][s.impid];"string"==typeof s.ext.dealid?(c=1===r?m+s.ext.pricelevel:m+"_"+s.ext.dealid,u=m+"_"+s.ext.dealid,f=l+"_"):(c=m+s.ext.pricelevel,u=m+s.ext.pricelevel,f=p+"_"),void 0===_IndexRequestData.targetIDToBid[c]?_IndexRequestData.targetIDToBid[c]=[s.adm]:_IndexRequestData.targetIDToBid[c].push(s.adm),void 0===_IndexRequestData.targetIDToCreative[u]?_IndexRequestData.targetIDToCreative[u]=[s.adm]:_IndexRequestData.targetIDToCreative[u].push(s.adm);var g={};g.impressionID=s.impid,"undefined"!=typeof s.ext.dealid&&(g.dealID=s.ext.dealid),g.bid=s.price,g.slotID=m,g.priceLevel=s.ext.pricelevel,g.target=f+c,_IndexRequestData.targetIDToResp[c]=g,i.push(g)}}"function"==typeof t&&(0===i.length?t(e.id):t(e.id,i))}}catch(h){}"function"==typeof window.cygnus_index_ready_state&&window.cygnus_index_ready_state()},window.index_render=function(e,t){try{var r=_IndexRequestData.targetIDToCreative[t].pop();if(null!=r)e.write(r);else{var n="https:"===window.location.protocol?"https://as-sec.casalemedia.com":"http://as.casalemedia.com";n+="/headerstats?type=RT&s="+cygnus_index_args.siteID+"&u="+encodeURIComponent(location.href)+"&r="+_IndexRequestData.lastRequestID;var i=new Image;i.src=n+"&blank="+t}}catch(a){}},window.headertag_render=function(e,t,r){for(var n=r,i=t.split(","),a=0;a<i.length;a++){var o=i[a].split("_");if(o[0]==n)return index_render(e,i[a]),void 0}},window.cygnus_index_args={};var f=[[728,90],[120,600],[300,250],[160,600],[336,280],[234,60],[300,600],[300,50],[320,50],[970,250],[300,1050],[970,90],[180,150]],m=function(){return g(u.INDEX_DEBUG_MODE.queryParam).toUpperCase()},g=function(e){for(var t=window,r="",n=0;n<u.INDEX_DEBUG_MODE.mode.sandbox.topFrameLimit&&t.parent!=t;n++){try{r=t.document.referrer}catch(i){}t=t.parent}var a=top===self?location.href:r,o="[\\?&]"+e+"=([^&#]*)",d=new RegExp(o),s=d.exec(a);return null===s?"":decodeURIComponent(s[1].replace(/\+/g," "))},h=function(){function e(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}function t(t){return n.lastIndex=0,n.test(t)?t.replace(n,e):t}function r(e,t,r){if(this.initialized=!1,"number"!=typeof e||e%1!==0||0>e)throw"Invalid Site ID";if(r=Number(r),"number"==typeof r&&r%1===0&&r>=0&&(this.timeoutDelay=r),this.siteID=e,this.impressions=[],this._parseFnName=void 0,top===self?(this.sitePage=location.href,this.topframe=1):(this.sitePage=document.referrer,this.topframe=0),"undefined"!=typeof t){if("function"!=typeof t)throw"Invalid jsonp target function";this._parseFnName="cygnus_index_args.parseFn"}_IndexRequestData.requestCounter="undefined"==typeof _IndexRequestData.requestCounter?Math.floor(256*Math.random()):(_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 n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};r.prototype.serialize=function(){var e='{"id":"'+this.requestID+'","site":{"page":"'+t(this.sitePage)+'"';"string"==typeof document.referrer&&""!==document.referrer&&(e+=',"ref":"'+t(document.referrer)+'"'),e+='},"imp":[';for(var r=0;r<this.impressions.length;r++){var n=this.impressions[r],i=[];e+='{"id":"'+n.id+'", "banner":{"w":'+n.w+',"h":'+n.h+',"topframe":'+String(this.topframe)+"}","number"==typeof n.bidfloor&&(e+=',"bidfloor":'+n.bidfloor,"string"==typeof n.bidfloorcur&&(e+=',"bidfloorcur":"'+t(n.bidfloorcur)+'"')),"string"!=typeof n.slotID||n.slotID.match(/^\s*$/)||i.push('"sid":"'+t(n.slotID)+'"'),"number"==typeof n.siteID&&i.push('"siteID":'+n.siteID),i.length>0&&(e+=',"ext": {'+i.join()+"}"),e+=r+1===this.impressions.length?"}":"},"}return e+="]}"},r.prototype.setPageOverride=function(e){return"string"!=typeof e||e.match(/^\s*$/)?!1:(this.sitePage=e,!0)},r.prototype.addImpression=function(e,t,r,n,i,a){var o={id:String(this.impressions.length+1)};if("number"!=typeof e||1>=e)return null;if("number"!=typeof t||1>=t)return null;if(("string"==typeof i||"number"==typeof i)&&String(i).length<=50&&(o.slotID=String(i)),o.w=e,o.h=t,void 0!==r&&"number"!=typeof r)return null;if("number"==typeof r){if(0>r)return null;if(o.bidfloor=r,void 0!==n&&"string"!=typeof n)return null;o.bidfloorcur=n}if("undefined"!=typeof a){if(!("number"==typeof a&&a%1===0&&a>=0))return null;o.siteID=a}return this.impressions.push(o),o.id},r.prototype.buildRequest=function(){if(0!==this.impressions.length&&this.initialized===!0){var e,t=encodeURIComponent(this.serialize());m()==u.INDEX_DEBUG_MODE.mode.sandbox.queryValue.toUpperCase()?(this.siteID=u.INDEX_DEBUG_MODE.mode.sandbox.siteID,e="https:"===window.location.protocol?"https://sandbox.ht.indexexchange.com":"http://sandbox.ht.indexexchange.com",i.logMessage("IX DEBUG: Sandbox mode activated")):e="https:"===window.location.protocol?"https://as-sec.casalemedia.com":"http://as.casalemedia.com";var r=encodeURIComponent("0.24.0");return e+="/cygnus?v=7&fn=cygnus_index_parse_res&s="+this.siteID+"&r="+t+"&pid=pb"+r,"number"==typeof this.timeoutDelay&&this.timeoutDelay%1===0&&this.timeoutDelay>=0&&(e+="&t="+this.timeoutDelay),e}};try{if("undefined"==typeof cygnus_index_args||"undefined"==typeof cygnus_index_args.siteID||"undefined"==typeof cygnus_index_args.slots)return;var o=new r(cygnus_index_args.siteID,cygnus_index_args.parseFn,cygnus_index_args.timeout);cygnus_index_args.url&&"string"==typeof cygnus_index_args.url&&o.setPageOverride(cygnus_index_args.url),_IndexRequestData.impIDToSlotID[o.requestID]={},_IndexRequestData.reqOptions[o.requestID]={};for(var d,c,p=0;p<cygnus_index_args.slots.length;p++)d=cygnus_index_args.slots[p],c=o.addImpression(d.width,d.height,d.bidfloor,d.bidfloorcur,d.id,d.siteID),c&&(_IndexRequestData.impIDToSlotID[o.requestID][c]=String(d.id));return"number"==typeof cygnus_index_args.targetMode&&(_IndexRequestData.reqOptions[o.requestID].targetMode=cygnus_index_args.targetMode),"function"==typeof cygnus_index_args.callback&&(_IndexRequestData.reqOptions[o.requestID].callback=cygnus_index_args.callback),o.buildRequest()}catch(l){i.logError("Error calling index adapter",s,l)}},b=function(){function e(e){var g=e.bids;if("undefined"==typeof window._IndexRequestData&&(window._IndexRequestData={},window._IndexRequestData.impIDToSlotID={},window._IndexRequestData.reqOptions={}),_IndexRequestData.targetAggregate={open:{},"private":{}},i.hasValidBidRequest(g[0].params,l,s)){cygnus_index_args.slots=[];for(var b=0,v=0;v<g.length;v++){var y=g[v],w=0;b++,y.sizes[0]instanceof Array||(y.sizes=[y.sizes]);for(var I=0;I<y.sizes.length;I++){for(var _=!1,B=0;B<f.length;B++)if(y.sizes[I][0]==f[B][0]&&y.sizes[I][1]==f[B][1]){y.sizes[I][0]=Number(y.sizes[I][0]),y.sizes[I][1]=Number(y.sizes[I][1]),_=!0;break}if(_){var S=!1;if(y.params.size&&y.params.size instanceof Array){if(y.sizes[I][0]!=y.params.size[0]||y.sizes[I][1]!=y.params.size[1])continue;S=!0}y.params.timeout&&"undefined"==typeof cygnus_index_args.timeout&&(cygnus_index_args.timeout=y.params.timeout);var C=Number(y.params.siteID);if("number"!=typeof C||C%1!=0||0>=C)i.logMessage(s+" slot excluded from request due to invalid siteID");else if(C&&"undefined"==typeof cygnus_index_args.siteID&&(cygnus_index_args.siteID=C),i.hasValidBidRequest(y.params,l,s)){m=y.placementCode;var A=y.params[l[0]];if("string"!=typeof A&&"number"!=typeof A){i.logError(s+" bid contains invalid slot ID from "+y.placementCode+". Discarding slot");continue}w++;var x={width:y.sizes[I][0],height:y.sizes[I][1]},T=S?String(A):A+"_"+w;if(p[T]=y,cygnus_index_args.slots=t({id:T,width:x.width,height:x.height,siteID:C||cygnus_index_args.siteID},cygnus_index_args.slots),y.params.tier2SiteID){var E=Number(y.params.tier2SiteID);if("undefined"!=typeof E&&!E)continue;cygnus_index_args.slots=t({id:"T1_"+T,width:x.width,height:x.height,siteID:E},cygnus_index_args.slots)}if(y.params.tier3SiteID){var R=Number(y.params.tier3SiteID);if("undefined"!=typeof R&&!R)continue;cygnus_index_args.slots=t({id:"T2_"+T,width:x.width,height:x.height,siteID:R},cygnus_index_args.slots)}}}else i.logMessage(s+" slot excluded from request due to no valid sizes")}}cygnus_index_args.slots.length>20&&i.logError("Too many unique sizes on slots, will use the first 20.",s),d.loadScript(h());var O=!1;window.cygnus_index_ready_state=function(){if(!O){O=!0;try{var e=_IndexRequestData.targetIDToBid;for(var t in p){var d=p[t],l=d.placementCode,f=[];for(var m in e){var g=/^(T\d_)?(.+)_(\d+)$/.exec(m);if(g){var h=g[1]||"",b=g[2],v=g[3],y=r(cygnus_index_args,h+b);if(b===t){var w=a.createBid(1);w.cpm=v/100,w.ad=e[m][0],w.bidderCode=c,w.width=y.width,w.height=y.height,w.siteID=y.siteID,"object"===n(_IndexRequestData.targetIDToResp)&&"object"===n(_IndexRequestData.targetIDToResp[m])&&"undefined"!=typeof _IndexRequestData.targetIDToResp[m].dealID?("undefined"==typeof _IndexRequestData.targetAggregate["private"][l]&&(_IndexRequestData.targetAggregate["private"][l]=[]),w.dealId=_IndexRequestData.targetIDToResp[m].dealID,_IndexRequestData.targetAggregate["private"][l].push(b+"_"+_IndexRequestData.targetIDToResp[m].dealID)):("undefined"==typeof _IndexRequestData.targetAggregate.open[l]&&(_IndexRequestData.targetAggregate.open[l]=[]),_IndexRequestData.targetAggregate.open[l].push(b+"_"+v)),f.push(w)}}else i.logError("Unable to parse "+m+", skipping slot",s)}var I;if(f.length>0)for(var _=0;_<f.length;_++)o.addBidResponse(l,f[_]);else{var w=a.createBid(2);w.bidderCode=c,I=w,o.addBidResponse(l,I)}}}catch(B){i.logError("Error calling index adapter",s,B),u()}finally{_IndexRequestData.targetIDToBid={}}p={}}}}}function t(e,t){for(var r=0;r<t.length;r++)if(e.id===t[r].id)return t;return t.push(e),t}function r(e,t){var r=e.slots,n={};return i._each(r,(function(e){e.id===t&&(n=e)})),n}function u(){var e=a.createBid(2);e.bidderCode=c,o.addBidResponse(m,e)}var p={},l=["id","siteID"],m="";return{callBids:e}};e.exports=b}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d=r(3),s=function(){function e(e){for(var t,r=e.bids||[],n=window.location.protocol+"//as.innity.com/synd/?cb="+(new Date).getTime()+"&ver=2&hb=1&output=js&",i=0;i<r.length;i++){var d={},s=r[i];d.pub=s.params.pub,d.zone=s.params.zone,d.url=o.getTopWindowUrl();var c=o.parseSizesInput(s.sizes),u=c[0].split("x");d.width=u[0],d.height=u[1],d.callback="pbjs._doInnityCallback",d.callback_uid=s.bidId,t=n+o.parseQueryStringParameters(d),o.logMessage("Innity.prebid, Bid ID: "+s.bidId+", Pub ID: "+s.params.pub+", Zone ID: "+s.params.zone+", URL: "+t),a.loadScript(t)}}return pbjs._doInnityCallback=function(e){var t,r,a,s=window.location.protocol+"//cdn.innity.net/frame_util.js";a=e.callback_uid,r=o.getBidRequest(a),e.cpm>0?(t=n.createBid(d.STATUS.GOOD,r),t.bidderCode="innity",t.cpm=parseFloat(e.cpm)/100,t.ad='<script src="'+s+'"></script>'+e.tag,t.width=e.width,t.height=e.height):(t=n.createBid(d.STATUS.NO_BID,r),t.bidderCode="innity",o.logMessage("No Bid response from Innity request: "+a)),i.addBidResponse(r.placementCode,t)},{callBids:e}};e.exports=s}),(function(e,t,r){"use strict";function n(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)}function i(e,t){var r=d.createBid(void 0!==t?1:2);r.bidderCode="kruxlink",void 0!==t&&(r.cpm=t.price,r.ad=t.adm,r.width=t.w,r.height=t.h),s.addBidResponse(e,r)}function a(e,t){var r="_kruxlink_"+e;return pbjs[r]=function(e){if(delete pbjs[r],void 0!==e.seatbid)for(var n=0;n<e.seatbid.length;n++){var a=e.seatbid[n];if(void 0!==a.bid)for(var o=0;o<a.bid.length;o++){var d=a.bid[o];void 0!==d.impid&&(i(t[d.impid],d),delete t[d.impid])}}for(var s in t)t.hasOwnProperty(s)&&i(t[s])},"pbjs."+r}function o(e){for(var t=[],r={},i=e.bids||[],o=0;o<i.length;o++){var d=i[o],s=d.params||{},u=s.impid;r[u]=d.placementCode,t.push(u)}var p=a(e.bidderRequestId,r),l=[n("id",e.bidderRequestId),n("u",window.location.href),n("impid",t.join(",")),n("calltype","pbd"),n("callback",p)],f="https://link.krxd.net/hb?"+l.join("&");c.loadScript(f)}var d=r(11),s=r(12),c=r(14);e.exports=function(){return{callBids:o}}}),(function(e,t,r){"use strict";var n=r(3),i=r(11),a=r(12),o=r(14),d=function(){function e(e){"undefined"==typeof window.gi_hb?o.loadScript(d,(function(){r(e)}),!0):r(e)}function t(e,t,r){for(var n=0;n<r.length;n++)e.hasOwnProperty(r[n])&&(t[r[n]]=e[r[n]])}function r(e){for(var r=e.bids||[],o=0;o<r.length;o++){var d=r[o],s={pid:d.params.pid,tid:d.params.tid,known:d.params.known||1,is_video:"video"===d.mediaType,video:d.params.video||{},size:d.sizes[0].join("x")};t(d.params,s,["cur","floor"]),(function(e,t){window.gi_hb.makeBid(e,(function(e){if(1===e.no_bid){var r=i.createBid(n.STATUS.NO_BID);r.bidderCode=t.bidder,a.addBidResponse(t.placementCode,r)}else{var o=i.createBid(n.STATUS.GOOD),d=e.size.split("x");o.bidderCode=t.bidder,o.cpm=e.cpm,o.width=d[0],o.height=d[1],"video"===t.mediaType?(o.vastUrl=e.vast_url,o.descriptionUrl=e.vast_url):o.ad=e.ad,a.addBidResponse(t.placementCode,o)}}))})(s,d)}}var d=window.location.protocol+"//cdn.adhigh.net/adserver/hb.js";return{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(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}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=(function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,d=e[Symbol.iterator]();!(n=(o=d.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&d["return"]&&d["return"]()}finally{if(i)throw a}}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")}})(),d=(function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c=r(2),u=i(c),p=r(15),l=n(p),f=r(22),m=r(12),g=n(m),h=r(11),b=n(h),v=r(3),y=r(23),w={ADAPTER_NAME:"inneractive",V:"IA-JS-HB-PBJS-1.0",RECTANGLE_SIZE:{W:300,H:250},SPOT_TYPES:{INTERSTITIAL:"interstitial",RECTANGLE:"rectangle",FLOATING:"floating",BANNER:"banner"},DISPLAY_AD:20,ENDPOINT_URL:"//ad-tag.inner-active.mobi/simpleM2M/requestJsonAd",EVENTS_ENDPOINT_URL:"//vast-events.inner-active.mobi/Event",RESPONSE_HEADERS_NAME:{PRICING_VALUE:"X-IA-Pricing-Value",AD_H:"X-IA-Ad-Height",AD_W:"X-IA-Ad-Width"}},I=void 0;try{I=window.top.document.referrer}catch(_){I=window.document.referrer}var B={defaultsQsParams:{v:w.V,page:encodeURIComponent(u.getTopWindowUrl()),mw:!0,hb:"prebidjs"},stringToCamel:function(e){if(-1===e.indexOf("_")){var t=e.charAt(0);return t!==t.toLowerCase()&&(e=e.toLowerCase()),e}return e=e.toLowerCase(),e.replace(/(\_[a-z])/g,(function(e){return e.toUpperCase().replace("_","")}))},objectToCamel:function(e){var t=this;return Object.keys(e).forEach((function(r){var n=t.stringToCamel(r);n!==r&&(e[n]=e[r],delete e[r])})),e}},S={fire:function(e){e.forEach((function(e){return e&&(new Image(1,1).src=encodeURI(e))}))}},C={errorEventName:"HBPreBidError",pageProtocol:"",getPageProtocol:function(){return this.pageProtocol||(this.pageProtocol="http:"===u.getTopWindowLocation().protocol?"http:":"https:"),this.pageProtocol},getEventUrl:function(e,t){var r=w.EVENTS_ENDPOINT_URL+"?table="+(e===this.errorEventName?"mbwError":"mbwEvent"),n=this.eventQueryStringParams(t),i=t&&t.appId,a=n+"&aid="+i+"_"+e+"_other&evtName="+e;return r+"&"+a},reportEvent:function(e,t){var r=this.getEventUrl(e,t);this.createTrackingPixel(r)},defaults:B.defaultsQsParams,eventQueryStringParams:function(e){var t=s({},this.defaults,{realAppId:e&&e.appId,timestamp:Date.now()});return y.formatQS(t)},createTrackingPixel:function(e){S.fire([this.getPageProtocol()+e])}},A={defaultsParams:s({},B.defaultsQsParams,{f:w.DISPLAY_AD,fs:!1,ref:I}),serverParamNameBySettingParamName:{referrer:"ref",keywords:"k",appId:"aid",portal:"po",age:"a",gender:"g"},unwantedValues:["",null,void 0],toServerParams:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&this.serverParamNameBySettingParamName.hasOwnProperty(r)?t[this.serverParamNameBySettingParamName[r]]=e[r]:t[r]=e[r];return t.isSecured="https:"===C.getPageProtocol()||null,t},getUrlParams:function(e){var t=this.toServerParams(e),r=s({},this.defaultsParams,t);for(var n in r)r.hasOwnProperty(n)&&-1!==this.unwantedValues.indexOf(r[n])&&delete r[n];return r.fs=e.spotType===w.SPOT_TYPES.INTERSTITIAL,e.spotType===w.SPOT_TYPES.RECTANGLE&&(r.rw=w.RECTANGLE_SIZE.W,r.rh=w.RECTANGLE_SIZE.H),"undefined"!=typeof pbjs&&(r.bco=pbjs.cbTimeout||pbjs.bidderTimeout),r.timestamp=Date.now(),delete r.qa,r}},x={headers:[w.RESPONSE_HEADERS_NAME.PRICING_VALUE,w.RESPONSE_HEADERS_NAME.AD_H,w.RESPONSE_HEADERS_NAME.AD_W],getBidHeaders:function(e){var t={};return this.headers.forEach((function(r){return t[r]=e.getResponseHeader(r)})),t}},T=(function(){function e(){a(this,e),this.iaAdapter=l["default"].createNew(w.ADAPTER_NAME),this.bidByBidId={}}return d(e,[{key:"_isValidRequest",value:function(e){return e&&e.appId&&e.spotType?!0:(u.logError("bid requires appId"),!1)}},{key:"_storeBidRequestDetails",value:function(e){return this.bidByBidId[e.bidId]=e,e}},{key:"_getBidDetails",value:function(e,t,r){var n=b["default"].createBid(e,t);return n.code=w.ADAPTER_NAME,n.bidderCode=n.code,e===v.STATUS.GOOD&&(n=s(n,t),this._setBidCpm(n,r)),n}},{key:"_setBidCpm",value:function(e,t){var r=this.bidByBidId[t];r&&(e.cpm=r.params&&r.params.qa&&r.params.qa.cpm||e.cpm,e.cpm=null===e.cpm||isNaN(e.cpm)?0:parseFloat(e.cpm))}},{key:"_isValidBidResponse",value:function(e,t){return e&&e.ad&&e.ad.html&&t&&t[w.RESPONSE_HEADERS_NAME.PRICING_VALUE]>0}},{key:"_onResponse",value:function(e,t,r){var n=this.bidByBidId[r],i=o(n.sizes[0],2),a=i[0],d=i[1],s={w:a,h:d},c=void 0,p=x.getBidHeaders(t);try{c=JSON.parse(e)}catch(l){u.logError(l)}if(!this._isValidBidResponse(c,p)){var f="response failed for "+w.ADAPTER_NAME+" adapter";u.logError(f);var m=c&&c.config&&c.config.passback;return m&&S.fire([m]),C.reportEvent("HBPreBidNoAd",n.params),g["default"].addBidResponse(n.placementCode,this._getBidDetails(v.STATUS.NO_BID))}var h={cpm:1e3*p[w.RESPONSE_HEADERS_NAME.PRICING_VALUE],width:parseFloat(p[w.RESPONSE_HEADERS_NAME.AD_W])||s.w,ad:this._getAd(c.ad.html,c.config.tracking,n.params),height:parseFloat(p[w.RESPONSE_HEADERS_NAME.AD_H])||s.h},b=this._getBidDetails(v.STATUS.GOOD,h,r);n.adId=b.adId,this.bidByBidId[r]=n,g["default"].addBidResponse(n.placementCode,b)}},{key:"_getAd",value:function(e,t,r){var n="";if(t&&Array.isArray(t.impressions)){var i=t.impressions;i.push(C.getEventUrl("HBPreBidImpression",r,!1)),i.forEach((function(e){return e&&(n+=u.createTrackPixelHtml(e))}))}e=n+e.replace(/<a /g,'<a target="_blank" ');var a=t&&Array.isArray(t.clicks)&&t.clicks;a&&Array.isArray(a)&&a.push(C.getEventUrl("HBPreBidClick",r,!1));var o="\n <html>\n <head>\n <script type='text/javascript'>inDapIF=true;</script>\n </head>\n <body style='margin : 0; padding: 0;'>\n <div id=\"iaAdContainer\">"+e+"</div>\n <script type='text/javascript'>\n var iaAdContainer = document.getElementById('iaAdContainer');\n if(iaAdContainer){\n var clicks = '"+a+"';\n if(clicks){\n clicks = clicks.split(',');\n iaAdContainer.addEventListener('click', function onIaContainerClick(){\n clicks.forEach(function forEachClick(click){\n if(click){\n (new Image(1,1)).src = encodeURI(click);\n }\n });\n });\n }\n }\n </script>\n </body>\n </html>";return o}},{key:"_toIaBidParams",value:function(e){var t=s({},e.params,e.params.customParams);delete t.customParams,e.params=B.objectToCamel(t)}},{key:"callBids",value:function(e){var t=this,r=e.bids||[];r.forEach((function(e){return t._toIaBidParams(e)})),r.filter((function(e){return t._isValidRequest(e.params)})).map((function(e){return t._storeBidRequestDetails(e)})).forEach((function(e){return f.ajax(t._getEndpointUrl(e.params),(function(r,n){return t._onResponse(r,n,e.bidId)}),A.getUrlParams(e.params),{method:"GET"})}))}},{key:"_getEndpointUrl",value:function(e){return e&&e.qa&&e.qa.url||C.getPageProtocol()+w.ENDPOINT_URL}},{key:"_getStoredBids",value:function(){var e=[];for(var t in this.bidByBidId)this.bidByBidId.hasOwnProperty(t)&&e.push(this.bidByBidId[t]);return e}}],[{key:"_getUtils",value:function(){return{Reporter:C}}},{key:"createNew",value:function(){return new e}}]),e})();e.exports=T}),(function(e,t,r){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}function a(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function o(){function e(e){var t=void 0;try{t=JSON.parse(e)}catch(a){m.logError(a)}if(!t||t.error){var o="in response for "+n.getBidderCode()+" adapter";return t&&t.error&&(o+=": "+t.error),m.logError(o),Object.keys(i).map((function(e){return i[e].placementCode})).forEach((function(e){l["default"].addBidResponse(e,r(h.STATUS.NO_BID))})),void 0}t.bids.forEach((function(e){var t=void 0;t=e.cpm>0&&e.creative?h.STATUS.GOOD:h.STATUS.NO_BID,e.bidId=e.uuid;var n=r(t,e),a=i[n.adId].placementCode;l["default"].addBidResponse(a,n)}))}function t(e){return e.params.placementId&&e.params.hbid?e:(m.logError("bid requires placementId and hbid params"),void 0)}function r(e,t){var r=u["default"].createBid(e,t);return r.code=n.getBidderCode(),r.bidderCode=n.getBidderCode(),e===h.STATUS.GOOD&&(r.cpm=t.cpm,r.width=t.width,r.height=t.height,r.ad=t.creative),r}var n=s["default"].createNew("komoona"),i={};return n.callBids=function(r){var n=r.bids||[],o=n.filter((function(e){return t(e)})).map((function(e){i[e.bidId]=e;var t={};return t.sizes=e.sizes,t.uuid=e.bidId,t.placementid=e.params.placementId,t.hbid=e.params.hbid,t}));if(!m.isEmpty(o)){var d=JSON.stringify({bids:[].concat(a(o))});g.ajax(b,e,d,{contentType:"text/plain",withCredentials:!0})}},{createNew:o.createNew,callBids:n.callBids,setBidderCode:n.setBidderCode}}var d=r(15),s=i(d),c=r(11),u=i(c),p=r(12),l=i(p),f=r(2),m=n(f),g=r(22),h=r(3),b="//bidder.komoona.com/v1/GetSBids";o.createNew=function(){return new o},e.exports=o}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(2),o=r(14),d=function(){function e(e){a._each(e.bids,(function(e){var n=e.params.jstag_url,i=e.params.slot,a=e.params.adkey,o=e.params.ad_size,d=700;e.params.timeout&&(d=e.params.timeout);var s=!1;if(n&&n.length>0&&i&&i.length>0&&a&&a.length>0&&o&&o.length>0){for(var c=o.split("x"),u=0;u<c.length;++u)c[u]=+c[u];if(e.sizes&&e.sizes instanceof Array&&e.sizes.length>0&&c.length>1){e.sizes=e.sizes[0]instanceof Array?e.sizes:[e.sizes];for(var p=0;p<e.sizes.length;++p){var l=e.sizes[p];if(l.length>1&&l[0]===c[0]&&l[1]===c[1]){s=!0;break}}}else s=!0}s?t(e,n,d):r(e,0,null,0,0)}))}function t(e,t,n){o.loadScript(t,(function(){if(LSM_Slot&&"function"==typeof LSM_Slot){var i={_preload:"wait",_hb_request:c,_timeout:n,_onload:function(n,i,a,o,s){if("error"!==n.state()){var c=n.getSlotObjectName();if(pbjs[c]=n,c&&!u[c]){u[c]=!0;var p=d(t,c);r(e,a,p,o,s)}else n.show()}else r(e,0,null,0,0)}};for(var a in e.params)"jstag_url"!==a&&"timeout"!==a&&e.params.hasOwnProperty(a)&&(i[a]=e.params[a]);LSM_Slot(i),window.addEventListener("message",(function(e){var t=e.message?"message":"data",r={};try{r=JSON.parse(e[t])}catch(n){return}r.message&&r.message===p&&r.slotName&&window.pbjs[r.slotName]&&(e.source.postMessage(JSON.stringify({message:l,slotObject:window.pbjs[r.slotName]}),"*"),window.pbjs[r.slotName].destroy(),window.pbjs[r.slotName]=null)}),!1)}else r(e,0,null,0,0)}))}function r(e,t,r,a,o){var d=t&&r&&r.length>0,c=n.createBid(d?1:2,e);c.bidderCode=s,d&&(c.cpm=t,c.ad=r,c.width=a,c.height=o),i.addBidResponse(e.placementCode,c)}function d(e,t){return e&&t?'<div id="LSM_AD"></div>\n <script type="text/javascript" src=\''+e+"'></script>\n <script>\n function receivedLSMMessage(ev) {\n var key = ev.message ? 'message' : 'data';\n var object = {};\n try {\n object = JSON.parse(ev[key]);\n } catch (e) {\n return;\n }\n if (object.message === '"+l+"' && object.slotObject) {\n var slot = object.slotObject;\n slot.__proto__ = slotapi.Slot.prototype;\n slot.getProperties()['_onload'] = function(slot) {\n if (slot.state() !== 'error') {\n slot.show();\n }\n };\n window[slot.getSlotObjectName()] = slot;\n slot.showInContainer(document.getElementById(\"LSM_AD\"));\n }\n }\n window.addEventListener('message', receivedLSMMessage, false);\n window.parent.postMessage(JSON.stringify({\n message: '"+p+"',\n slotName: '"+t+"'\n }), '*');\n </script>":null}var s="lifestreet",c="prebidJS-1.0",u={},p="LSMPrebid Request",l="LSMPrebid Response";return{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n="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},i=r(11),a=r(12),o=r(14),d=r(3);e.exports=function(){function e(){try{return window.self!==window.top&&!window.mantis_link}catch(e){return!0}}function t(t){var r=function(e){var r=e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,n=!t&&("ontouchstart"in window||navigator.msMaxTouchPoints);return!n&&(!r||r>=(window.mantis_breakpoint||768))};if(e())try{return r(window.top)}catch(n){}return r(window)}function r(e){return null===e||void 0===e?!1:"string"==typeof e?!(!e||/^\s*$/.test(e)):"number"==typeof e?!isNaN(e):!0}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(){return"object"===n(window.context)&&("AMP-AD"===window.context.tagName||"AMP-EMBED"===window.context.tagName)}function u(){return"https:"===document.location.protocol}function p(e){return"[object Array]"===Object.prototype.toString.call(e)}function l(e){return window.mantis_jsonp||(window.mantis_jsonp=[]),window.mantis_jsonp.push(e),"mantis_jsonp["+(window.mantis_jsonp.length-1)+"]"}function f(e,t,n){if(!e)return null;var i=n||[];for(var a in e){var o=a;t&&(o=t+"["+a+"]");var d=e[a];if(p(d))for(var c=0;c<d.length;c++){var u=o+"["+c+"]",l=d[c];s(l)?f(l,u,i):r(l)&&i.push(u+"="+encodeURIComponent(l))}else s(d)?f(d,o,i):r(d)&&i.push(o+"="+encodeURIComponent(d))}return i.join("&")}function m(r,n,i){var a={referrer:document.referrer,tz:(new Date).getTimezoneOffset(),buster:(new Date).getTime(),secure:u()};if((!e()||c())&&(a.mobile=!c()&&t(!0)?"false":"true"),window.mantis_uuid)a.uuid=window.mantis_uuid;else if(window.localStorage){var o=window.localStorage.getItem("mantis:uuid");o&&(a.uuid=o)}if(e())a.iframe=!0;else try{a.title=window.top.document.title,a.referrer=window.top.document.referrer,a.url=window.top.document.location.href}catch(d){}c()&&(!a.url&&window.context.canonicalUrl&&(a.url=window.context.canonicalUrl),!a.url&&window.context.location&&(a.url=window.context.location.href),!a.referrer&&window.context.referrer&&(a.referrer=window.context.referrer)),Object.keys(n||{}).forEach((function(e){a[e]=n[e]}));var s=f(a);return(void 0===window.mantis_domain?i||"https://mantodea.mantisadnetwork.com":window.mantis_domain)+r+"?"+s}var g=function(e,t,r,n){return{callBids:function(i){var a=null;
i.bids.some((function(e){return e.params.property?(a=e.params.property,!0):void 0}));var o={jsonp:l((function(r){i.bids.forEach((function(i){var a,o=r.ads[i.bidId];o?(a=e.createBid(n.STATUS.GOOD),a.bidderCode="mantis",a.cpm=o.cpm,a.ad=o.html,a.width=o.width,a.height=o.height):(a=e.createBid(n.STATUS.NO_BID),a.bidderCode="mantis"),t.addBidResponse(i.placementCode,a)}))})),property:a,bids:i.bids.map((function(e){return{bidId:e.bidId,config:e.params,sizes:e.sizes.map((function(e){return{width:e[0],height:e[1]}}))}})),version:1};r.loadScript(m("/website/prebid",o))}}};return new g(i,a,o,d)}}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(3),d=r(2),s=function(){function e(e){var t=void 0,r=void 0,n=window,i=document,a=i.documentElement,o=void 0;if(e){try{n=window.top,i=window.top.document}catch(d){return}a=i.documentElement,o=i.body,t=n.innerWidth||a.clientWidth||o.clientWidth,r=n.innerHeight||a.clientHeight||o.clientHeight}else a=i.documentElement,t=n.innerWidth||a.clientWidth,r=n.innerHeight||a.clientHeight;return t+"x"+r}function t(e){var t=d.createInvisibleIframe(),r="openx-pd";t.setAttribute("id",r),t.setAttribute("name",r);var n=document.body;n&&(t.src=e,h?(h.parentNode.replaceChild(t,h),h=t):h=n.appendChild(t))}function r(e,t){var r=n.createBid(e?o.STATUS.GOOD:o.STATUS.NO_BID,t);if(r.bidderCode=f,e){var a=e.creative[0];r.ad=e.html,r.cpm=Number(e.pub_rev)/1e3,r.ad_id=e.adid,e.deal_id&&(r.dealId=e.deal_id),a&&(r.width=a.width,r.height=a.height)}i.addBidResponse(t.placementCode,r)}function s(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]||delete e[t]);return d._map(Object.keys(e),(function(t){return t+"="+e[t]})).join("&")}function c(e,t){var r=new Image,n=e.tracking.impression,i=n.match(/([^?]+\/)ri\?/);i&&(r.src=i[1]+"bo?"+s(t))}function u(e,t){var r=d.parseSizesInput(t.sizes),n=r&&r.length||0,i=!1,a=e.creative&&e.creative[0],o=String(a.width)+"x"+String(a.height);if(d.isArray(r))for(var s=0;n>s;s++){var c=r[s];if(String(c)===String(o)){i=!0;break}}return i}function p(e,t,r){if(d.isArray(e)){t.auid=d._map(e,(function(e){return e.params.unit})).join("%2C"),t.aus=d._map(e,(function(e){return d.parseSizesInput(e.sizes).join(",")})).join("|"),e.forEach((function(e){for(var r in e.params.customParams)e.params.customParams.hasOwnProperty(r)&&(t["c."+r]=e.params.customParams[r])})),t.callback="window.pbjs.oxARJResponse";var n=s(t);a.loadScript("//"+r+"/w/1.0/arj?"+n)}}function l(t){var r=void 0,n=t.bids||[],i=window.parent!==window?document.referrer:window.location.href;i=i&&encodeURIComponent(i);try{r=window.self!==window.top}catch(a){r=!1}if(0!==n.length){var o=n[0].params.delDomain;g=new Date(t.start),p(n,{ju:i,jr:i,ch:document.charSet||document.characterSet,res:screen.width+"x"+screen.height+"x"+screen.colorDepth,ifr:r,tz:g.getTimezoneOffset(),tws:e(r),ee:"api_sync_write",ef:"bt%2Cdb",be:1,bc:m},o)}}var f="openx",m="hb_pb",g=void 0,h=null;return pbjs.oxARJResponse=function(e){var n=e.ads.ad;e.ads&&e.ads.pixels&&t(e.ads.pixels),n||(n=[]);for(var i=pbjs._bidsRequested.find((function(e){return"openx"===e.bidderCode})).bids,a=0;a<i.length;a++){for(var o=i[a],d=null,s=null,p=0;p<n.length;p++)if(s=n[p],String(o.params.unit)===String(s.adunitid)&&u(s,o)&&!s.used){d=s.adunitid;break}var l={bd:+new Date-g,br:"0",bt:pbjs.cbTimeout||pbjs.bidderTimeout,bs:window.location.hostname};d&&s.pub_rev?(s.used=!0,l.br=l.bt<l.bd?"t":"p",l.bp=s.pub_rev,l.ts=s.ts,r(s,o),c(s.creative[0],l)):r(null,o)}},{callBids:l}};e.exports=s}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(12),o=r(11),d=r(14),s=r(15),c=function(){var e="//static.adserver.pm/prebid",t=s.createNew("piximedia"),r={},c=function(e,t,r){return e+"/"+encodeURIComponent(t)+"="+r};return t.callBids=function(n){i._each(n.bids,(function(a){if(a.placementCode&&a.sizes&&a.params&&a.params.siteId&&a.params.placementId){var o=a.params.hasOwnProperty("sizes")?a.params.sizes:a.sizes;o=i.parseSizesInput(o);var s=i.getUniqueIdentifierStr(),u=a.params.prebidUrl||e;for(var p in a.params)if(a.params.hasOwnProperty(p)){var l=a.params[p];switch(p){case"siteId":u=c(u,"site_id",encodeURIComponent(l));break;case"placementId":u=c(u,"placement_id",encodeURIComponent(l));break;case"dealId":u=c(u,"l_id",encodeURIComponent(l));break;case"sizes":case"prebidUrl":break;default:u="function"==typeof l?c(u,p,encodeURIComponent((l(t,n,a)||"").toString())):c(u,p,encodeURIComponent((l||"").toString()))}}u=c(u,"jsonp","pbjs.handlePiximediaCallback"),u=c(u,"sizes",encodeURIComponent(o.join(","))),u=c(u,"cbid",encodeURIComponent(s)),u=c(u,"rand",String(Math.floor(1e9*Math.random()))),r[s]={bidObj:a,url:u,start:(new Date).getTime()},i.logMessage("[Piximedia] Dispatching header Piximedia to URL "+u),d.loadScript(u)}}))},pbjs.handlePiximediaCallback=function(e){if(e&&e.hasOwnProperty("foundbypm")){var t,d=r[e.cbid];if(d){var s=d.bidObj,c=(new Date).getTime();c-=d.start,e.foundbypm&&e.width&&e.height&&e.html&&e.cpm&&e.currency?(t=o.createBid(n.STATUS.GOOD),t.bidderCode=s.bidder,t.width=e.width,t.height=e.height,t.ad=e.html,t.cpm=e.cpm,t.currency=e.currency,t.dealId=e.dealId?e.dealId:null,a.addBidResponse(s.placementCode,t),i.logMessage("[Piximedia] Registered bidresponse from URL "+d.url+" (time: "+String(c)+")"),i.logMessage("[Piximedia] ======> BID placementCode: "+s.placementCode+" CPM: "+String(t.cpm)+" "+t.currency+" Format: "+String(t.width)+"x"+String(t.height))):(t=o.createBid(n.STATUS.NO_BID),t.bidderCode=s.bidder,a.addBidResponse(s.placementCode,t),i.logMessage("[Piximedia] Registered BLANK bidresponse from URL "+d.url+" (time: "+String(c)+")"),i.logMessage("[Piximedia] ======> NOBID placementCode: "+s.placementCode)),r[e.cbid]=null}else i.logMessage("[Piximedia] Couldn't find stash for cbid="+e.cbid)}},{callBids:t.callBids,setBidderCode:t.setBidderCode,getBidderCode:t.getBidderCode}};e.exports=c}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=function(){function e(e){o=e.bids,s=[];for(var r=0;r<o.length;r++){var n=o[r];d=d||n.params.publisherId,s.push(n.params.adSlot)}t()}function t(){c=n.createInvisibleIframe();var e=document.getElementsByTagName("head")[0];e.insertBefore(c,e.firstChild);var t=n.getIframeDocument(c);t.write(r()),t.close()}function r(){var e='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><base target="_top" /><script>inDapIF=true;</script></head>';e+="<body>",e+="<script>",e+='window.pm_pub_id = "%%PM_PUB_ID%%";window.pm_optimize_adslots = [%%PM_OPTIMIZE_ADSLOTS%%];window.pm_async_callback_fn = "window.parent.pbjs.handlePubmaticCallback";',e+="</script>";var t={};return t.PM_PUB_ID=d,t.PM_OPTIMIZE_ADSLOTS=s.map((function(e){return"'"+e+"'"})).join(","),e+='<script src="https://ads.pubmatic.com/AdServer/js/gshowad.js"></script>',e+="<script>",e+="</script>",e+="</body></html>",e=n.replaceTokenInString(e,t,"%%")}var o,d,s=[],c=void 0;return pbjs.handlePubmaticCallback=function(){var e={},t={};try{e=c.contentWindow.bidDetailsMap,t=c.contentWindow.progKeyValueMap}catch(r){n.logError(r,"Error parsing Pubmatic response")}var d,s,u,p,l,f=e||{},m=t||{};for(d=0;d<o.length;d++){var g;p=o[d].params,s=f[p.adSlot]||{},m[p.adSlot]&&-1===m[p.adSlot].indexOf("=")&&(m[p.adSlot]=m[p.adSlot].replace(/([a-z]+);(.[^;]*)/gi,"$1=$2")),u=(m[p.adSlot]||"").split(";").reduce((function(e,t){var r=t.split("=");return e[r[0]]=r[1],e}),{}),"1"===u.bidstatus?(l=u.bidid.split("@")[1].split("x"),g=i.createBid(1),g.bidderCode="pubmatic",g.adSlot=p.adSlot,g.cpm=Number(u.bid),g.ad=unescape(s.creative_tag),g.ad+=n.createTrackPixelIframeHtml(decodeURIComponent(s.tracking_url)),g.width=l[0],g.height=l[1],g.dealId=u.wdeal,a.addBidResponse(o[d].placementCode,g)):(g=i.createBid(2),g.bidderCode="pubmatic",a.addBidResponse(o[d].placementCode,g))}},{callBids:e}};e.exports=o}),(function(e,t,r){"use strict";function n(){function e(e){var t=e[o.JSON_MAPPING.PL_BIDS],n=t.map(r);n.length<=0||(U=t[0][u][R],t.forEach((function(e){var t=r(e);V[t]=e})),H=H||q(B)||z(n,U,B,k),J||M(H),J=!0)}function t(e){var t=(function(e){return e[e.length-1]})(s.getElementsByTagName(c));return t.parentNode.insertBefore(e,t)}function r(e){var t=P(e),r=e[u],n=r[O];return[n,t].join("@")}function n(e){var t=e[l],r=[e[b],t].join("@");return r}function P(e){var t=e[p],r=Array.isArray(t[0])?t[0]:t;return r.join("x")}function z(e,r,n,i){var a=s.createElement(c);return a.src=i,a.id=n,a.setAttribute(S+C,e.join(" ")),a.setAttribute(S+x,"true"),a.setAttribute(S+A,r),t(a)}function q(e){return s.getElementById(e)}function M(e){e.addEventListener(j,G,!0),e.addEventListener(D,F,!0)}function G(e){var t=e[w],r=n(t[y]),i=V[r],o=i[T],s=null;i?(s=L(t,i),a.addBidResponse(o,s),d.logMessage('adding bid respoonse to "'+o+'" for bid request "'+i[E]+'"')):d.logError('Cannot get placement id for slot "'+r+'"')}function L(e,t){var r=e[y],n=r[l].split("x"),a=Number(e[v]),o=isNaN(a)||0>=a?2:1,d=i.createBid(o,t);return d[I]=_,1!==o?d:(d[m]=W(r),d[f]=a/1e3,d[g]=n[0],d[h]=n[1],d)}function W(e){var t="%%",r=N,n={publisher_name:U,pub_zone:e[b],size:e[l]};return d.replaceTokenInString(r,n,t)}function F(e){var t=e[w],r=n(t[y]);delete V[r]}var H=null,V={},J=!1;this.callBids=e}var i=r(11),a=r(12),o=r(3),d=r(2),s=document,c="script",u="params",p="sizes",l="size",f="cpm",m="ad",g="width",h="height",b="pub_zone",v="gross_price",y="resource",w="detail",I="bidderCode",_="pubgears",B="pg-header-tag",S="data-bsm-",C="slot-list",A="pub",x="flag",T="placementCode",E="bidId",R="publisherName",O="pubZone",j="onBidResponse",D="onResourceComplete",N=decodeURIComponent("%3Cscript%3E%0A(function(define)%7B%0Adefine(function(a)%7B%0A%09var%20id%3D%20%22pg-ad-%22%20%2B%20Math.floor(Math.random()%20*%201e10)%2C%20d%3D%20document%0A%09d.write('%3Cdiv%20id%3D%22'%2Bid%2B'%22%3E%3C%2Fdiv%3E')%0A%09a.push(%7B%0A%09%09pub%3A%20'%25%25PUBLISHER_NAME%25%25'%2C%0A%09%09pub_zone%3A%20'%25%25PUB_ZONE%25%25'%2C%0A%09%09sizes%3A%20%5B'%25%25SIZE%25%25'%5D%2C%0A%09%09flag%3A%20true%2C%0A%09%09container%3A%20d.getElementById(id)%2C%0A%09%7D)%3B%0A%7D)%7D)(function(f)%7Bvar%20key%3D'uber_imps'%2Ca%3Dthis%5Bkey%5D%3Dthis%5Bkey%5D%7C%7C%5B%5D%3Bf(a)%3B%7D)%3B%0A%3C%2Fscript%3E%0A%3Cscript%20src%3D%22%2F%2Fc.pubgears.com%2Ftags%2Fb%22%3E%3C%2Fscript%3E%0A"),k="//c.pubgears.com/tags/h",U="";e.exports=n}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d=function(){function e(e){"undefined"==typeof window.pp?a.loadScript(u,(function(){t(e)}),!0):t(e)}function t(e){for(var t=e.bids,n=0;n<t.length;n++){var i=t[n];r(i)}}function r(e){try{var t=new window.pp.Ad(d(e));t.display()}catch(r){o.logError("pulsepoint.requestBid","ERROR",r),c(e)}}function d(e){var t=s(e),r={cn:1,ca:window.pp.requestActions.BID,cu:p,adUnitId:e.placementCode,callback:t};for(var n in e.params)e.params.hasOwnProperty(n)&&(r[n]=e.params[n]);return r}function s(e){return function(t){c(e,t)}}function c(e,t){if(t){var r=e.params.cf.toUpperCase().split("X"),a=n.createBid(1,e);a.bidderCode=e.bidder,a.cpm=t.bidCpm,a.ad=t.html,a.width=r[0],a.height=r[1],i.addBidResponse(e.placementCode,a)}else{var o=n.createBid(2,e);o.bidderCode=e.bidder,i.addBidResponse(e.placementCode,o)}}var u=window.location.protocol+"//tag-st.contextweb.com/getjs.static.js",p=window.location.protocol+"//bid.contextweb.com/header/tag";return{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";function n(){function e(e){e.bids.forEach((function(e){try{var r=i({},t(),e.params),a=p+Object.keys(r).map((function(e){return e+"="+encodeURIComponent(r[e])})).join("&");s.ajax(a,(function(t){n(e,t)}),null,l)}catch(o){d.logError("pulsepoint.requestBid","ERROR",o),n(e)}}))}function t(){return{cn:1,ca:"BID",tl:1,"if":0,cwu:d.getTopWindowLocation().href,cwr:r(),dw:document.documentElement.clientWidth,cxy:document.documentElement.clientWidth+","+document.documentElement.clientHeight,tz:(new Date).getTimezoneOffset(),ln:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage}}function r(){try{return window.top.document.referrer}catch(e){return document.referrer}}function n(e,t){if(t){var r=u(t);if(r){var n=e.params.cf.toUpperCase().split("X"),i=a.createBid(c.STATUS.GOOD,e);return i.bidderCode=e.bidder,i.cpm=r.bidCpm,i.ad=r.html,i.width=n[0],i.height=n[1],o.addBidResponse(e.placementCode,i),void 0}}var d=a.createBid(c.STATUS.NO_BID,e);d.bidderCode=e.bidder,o.addBidResponse(e.placementCode,d)}function u(e){try{return JSON.parse(e)}catch(t){return d.logError("pulsepoint.safeParse","ERROR",t),null}}var p=window.location.protocol+"//bid.contextweb.com/header/tag?",l={method:"GET",withCredentials:!0,contentType:"text/plain"};return{callBids:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=r(11),o=r(12),d=r(2),s=r(22),c=r(3);e.exports=n}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(22),d=r(3),s="http://global.qc.rtb.quantserve.com:8080/qchb",c=function(){function e(e){var t=e.bids||[];if(0!==t.length){var i=n.getTopWindowUrl(),a=n.getTopWindowLocation(),d=a.hostname,u=0;u=""+t[0].params.publisherId,n._each(t,(function(e){var t=e.placementCode,p=[];n._each(e.sizes,(function(e){p.push({width:e[0],height:e[1]})})),c[t]=c[t]||{publisherId:u,requestId:e.bidId,bidId:e.bidId,site:{page:a.href,referrer:i,domain:d},imp:[{banner:{battr:e.params.battr,sizes:p},placementCode:e.placementCode,bidFloor:e.params.bidFloor||r}]},n._each(c,(function(e){o.ajax(s,pbjs.handleQuantcastCB,JSON.stringify(e),{method:"POST",withCredentials:!0})}))}))}}var t="quantcast",r=1e-10,c={},u=function(e){var r=n.getBidRequest(e);if(!n.isEmpty(r)){var o=i.createBid(d.STATUS.NO_BID,r);o.bidderCode=t,a.addBidResponse(r.placementCode,o)}};return pbjs.handleQuantcastCB=function(e){if(!n.isEmpty(e)){var r=null;try{r=JSON.parse(e)}catch(o){return n.logError("Malformed JSON received from server - can't do anything here"),void 0}if(null===r||!r.hasOwnProperty("bids")||n.isEmpty(r.bids))return n.logError("Sub-optimal JSON received from server - can't do anything here"),void 0;for(var s=0;s<r.bids.length;s++){var p=r.bids[s],l=p.placementCode,f=c[l];if(null===f||void 0===f)return u(p.placementCode);f.bidId=f.imp[0].placementCode;var m=i.createBid(d.STATUS.GOOD,f);m.cpm=p.cpm,m.ad=p.ad,m.height=p.height,m.width=p.width,m.bidderCode=r.bidderCode,m.requestId=f.requestId,m.bidderCode=t,a.addBidResponse(f.bidId,m)}}},{callBids:e,QUANTCAST_CALLBACK_URL:s}};t.createNew=function(){return new c},e.exports=c}),(function(e,t,r){"use strict";var n="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},i=r(22),a=r(12),o=r(11),d=r(3);e.exports=function(e,t,r){function s(e,t){return e.replace(/\{([^\}]+)\}/g,(function(e){var r=t[e.replace(/[\{\}]/g,"").toLowerCase()];return"undefined"!=typeof r?r:e}))}function c(e,t,n){r(t,(function(e,t){200===t.status?n(200,"success",t.responseText):n(-1,"http error "+t.status,t.responseText)}),!1,{method:"GET",withCredentials:!0})}function u(){var e=t.navigator,r=e.plugins,n=e.mimeTypes,i="application/x-shockwave-flash",a=t.ActiveXObject;if(r&&r["Shockwave Flash"]&&n&&n[i]&&n[i].enabledPlugin)return!0;if(a)try{if(new t.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(o){}return!1}function p(e,t){try{return e()}catch(r){}return t}function l(e){I&&console.log(e)}function f(e){for(var t=0;t<e.length;t++)if("object"===n(e[t].params)&&e[t].params.placementId)return e[t].params;return null}function m(e){for(var t=0;t<e.bids.length;t++)if(1!==e.bids[t].success){l("registering nobid for slot "+e.bids[t].placementCode);var r=o.createBid(d.STATUS.NO_BID);r.bidderCode=A,a.addBidResponse(e.bids[t].placementCode,r)}}function g(e,r){function n(e,t){t instanceof Array&&(t=t.join(",")),"undefined"!=typeof t&&a.push(encodeURIComponent(e)+"="+encodeURIComponent(t))}var i="//tag.1rx.io/rmp/{placementId}/0/{path}?z={zone}",a=[];"string"==typeof e.endpoint&&(i=e.endpoint),"string"==typeof e.zone&&(y=e.zone),"string"==typeof e.path&&(w=e.path),e.debug===!0&&(I=!0),e.trace===!0&&a.push("trace=true"),i=s(i,{placementid:e.placementId,zone:y,path:w}),n("domain",p((function(){var e=t.document.location.ancestorOrigins;return e&&e.length>0?e[e.length-1]:t.top.document.location.hostname}),"")),n("title",p((function(){return t.top.document.title}),"")),n("url",p((function(){var e;try{e=t.top.document.location.href.toString()}catch(r){e=t.document.location.href.toString()}return e}),"")),n("dsh",t.screen?t.screen.height:""),n("dsw",t.screen?t.screen.width:""),n("tz",(new Date).getTimezoneOffset()),n("dtype",/(ios|ipod|ipad|iphone|android)/i.test(t.navigator.userAgent)?1:/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(t.navigator.userAgent)?3:2),n("flash",u()?1:0);var o=[],d=[],c=[],l=[],f=0;for(S=[],n("hbv",t.pbjs.version.replace(C,"")+","+v.replace(C,""));f<r.length;f++){var m=[],g=[];r[f].sizes.length>0&&"number"==typeof r[f].sizes[0]&&(r[f].sizes=[r[f].sizes]);for(var h=0;h<r[f].sizes.length;h++)g.push(r[f].sizes[h][0]),m.push(r[f].sizes[h][1]);S.push(r[f].placementCode),o.push(m.join("|")),d.push(g.join("|")),l.push(/video/i.test(r[f].mediaType)?"v":"d"),c.push(0)}return n("imp",S),n("w",d),n("h",o),n("floor",c),n("t",l),i+="&"+a.join("&")}function h(e){var r={doc_version:1,doc_type:"Prebid Audit",placement_id:e},i=document.location.ancestorOrigins,a=[],o="//hbevents.1rx.io/audit?",d=new Image;i&&i.length>0&&(r.ancestor_origins=i[i.length-1]),r.popped=null!==window.opener?1:0,r.framed=window.top===window?0:1;try{r.url=window.top.document.location.href.toString()}catch(s){r.url=window.document.location.href.toString()}var c=t.pbjs;r.prebid_version=c.version.replace(C,""),r.response_ms=(new Date).getTime()-b,r.placement_codes=S.join(","),r.bidder_version=v,r.prebid_timeout=c.cbTimeout||c.bidderTimeout;for(var u in r)a.push(encodeURIComponent(u)+"="+encodeURIComponent("object"===n(r[u])?JSON.stringify(r[u]):r[u]));a.sort(),d.src=o+a.join("&")}var b,v="0.9.0.0",y="1r",w="mvo",I=!1,_=!1,B={},S=[],C=/(^v|(\.0)+$)/gi;"undefined"==typeof t&&(t=window),"undefined"==typeof e&&(e=a),"undefined"==typeof r&&(r=i.ajax);var A="rhythmone";this.callBids=function(t){var r={},n=f(t.bids);if(I=null!==n&&n.debug===!0,null===n)return m(t),void 0;for(var i=0;i<t.bids.length;i++)r[t.bids[i].placementCode]=t.bids[i];b=(new Date).getTime(),c(n,g(n,t.bids),(function(a,s,c){if(h(n.placementId),_=!0,l("response text: "+c),-1!==a)try{var u=JSON.parse(c),p=function(t){r[t.impid].success=1;var n=o.createBid(d.STATUS.GOOD),i=r[t.impid].placementCode;B[i]=!1,n.bidderCode=A,n.cpm=parseFloat(t.price),n.width=t.w,n.height=t.h,/video/i.test(r[t.impid].mediaType)?(n.mediaType="video",n.vastUrl=t.nurl,n.descriptionUrl=t.nurl):n.ad=t.adm,l("registering bid "+i+" "+JSON.stringify(n)),e.addBidResponse(i,n)};for(i=0;u.seatbid&&i<u.seatbid.length;i++)for(var f=0;u.seatbid[i].bid&&f<u.seatbid[i].bid.length;f++)p(u.seatbid[i].bid[f])}catch(g){}m(t)})),l("version: "+v)}}}),(function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(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}function a(){return"pbjs_lite_"+pbjs.version}function o(){return"https:"===location.protocol}function d(){function e(e){var t=e.bids||[];t.forEach((function(t){function r(e){try{v.logMessage("XHR callback function called for ad ID: "+t.bidId),p(e,t)}catch(r){"string"==typeof r?v.logWarn(r+" when processing rubicon response for placement code "+t.placementCode):v.logError("Error processing rubicon response for placement code "+t.placementCode,null,r),o()}}function a(e,t){v.logError("Request for rubicon responded with:",t.status,e),o()}function o(){var e=m["default"].createBid(w.STATUS.NO_BID,t);e.bidderCode=t.bidder,h["default"].addBidResponse(t.placementCode,e)}try{"video"===t.mediaType?y.ajax(B,{success:r,error:a},n(t,e),{withCredentials:!0}):y.ajax(i(t),{success:r,error:a},void 0,{withCredentials:!0})}catch(d){v.logError("Error sending rubicon request for placement code "+t.placementCode,null,d),o()}}))}function t(){return[window.screen.width,window.screen.height].join("x")}function r(){function e(){var e=window.DigiTrust&&window.DigiTrust.getUser({member:"T9QSFKPDN9"});return e&&e.success&&e.identity||null}var t=e();return!t||t.privacy&&t.privacy.optout?[]:["dt.id",t.id,"dt.keyv",t.keyv]}function n(e,r){e.startTime=(new Date).getTime();var n=e.params;if(!n||"object"!==u(n.video))throw"Invalid Video Bid";var i=void 0;if(n.video.playerWidth&&n.video.playerHeight)i=[n.video.playerWidth,n.video.playerHeight];else{if(!(Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1))throw"Invalid Video Bid - No size provided";i=e.sizes[0]}var o={page_url:n.referrer?n.referrer:v.getTopWindowUrl(),resolution:t(),account_id:n.accountId,integration:a(),timeout:r.timeout-(Date.now()-r.auctionStart+S),stash_creatives:!0,ae_pass_through_parameters:n.video.aeParams,slots:[]},d={site_id:n.siteId,zone_id:n.zoneId,position:n.position||"btf",floor:parseFloat(n.floor)>.01?n.floor:.01,element_id:e.placementCode,name:e.placementCode,language:n.video.language,width:i[0],height:i[1]};if(!n.video.size_id)throw"Invalid Video Bid - Invalid Ad Type!";return d.size_id=n.video.size_id,n.inventory&&"object"===u(n.inventory)&&(d.inventory=n.inventory),n.keywords&&Array.isArray(n.keywords)&&(d.keywords=n.keywords),n.visitor&&"object"===u(n.visitor)&&(d.visitor=n.visitor),o.slots.push(d),JSON.stringify(o)}function i(e){e.startTime=(new Date).getTime();var n=e.params,i=n.accountId,s=n.siteId,c=n.zoneId,p=n.position,l=n.floor,f=n.keywords,m=n.visitor,g=n.inventory,h=n.userId,b=n.referrer;l=(l=parseFloat(l))>.01?l:.01,p=p||"btf";var y=d.masSizeOrdering(Array.isArray(e.params.sizes)?e.params.sizes.map((function(e){return(C[e]||"").split("x")})):e.sizes);if(y.length<1)throw"no valid sizes";if(!/^\d+$/.test(i))throw"invalid accountId provided";var w=["account_id",i,"site_id",s,"zone_id",c,"size_id",y[0],"alt_size_ids",y.slice(1).join(",")||void 0,"p_pos",p,"rp_floor",l,"rp_secure",o()?"1":"0","tk_flint",a(),"p_screen_res",t(),"kw",f,"tk_user_key",h];return null!==m&&"object"===("undefined"==typeof m?"undefined":u(m))&&v._each(m,(function(e,t){return w.push("tg_v."+t,e)})),null!==g&&"object"===("undefined"==typeof g?"undefined":u(g))&&v._each(g,(function(e,t){return w.push("tg_i."+t,e)})),w.push("rand",Math.random(),"rf",b?b:v.getTopWindowUrl()),w=w.concat(r()),w.reduce((function(e,t,r){return r%2===0&&void 0!==w[r+1]?e+t+"="+encodeURIComponent(w[r+1])+"&":e}),_+"?").slice(0,-1)}function p(e,t){var r=JSON.parse(e),n=r.ads,i=t.placementCode;if("object"!==("undefined"==typeof r?"undefined":u(r))||"ok"!==r.status)throw"bad response";if("video"===t.mediaType&&"object"===("undefined"==typeof n?"undefined":u(n))&&(n=n[i]),!Array.isArray(n)||n.length<1)throw"invalid ad response";n=n.sort(f),n.forEach((function(e){if("ok"!==e.status)throw"bad ad status";var r=m["default"].createBid(w.STATUS.GOOD,t);if(r.creative_id=e.ad_id,r.bidderCode=t.bidder,r.cpm=e.cpm||0,r.dealId=e.deal,"video"===t.mediaType)r.width=t.params.video.playerWidth,r.height=t.params.video.playerHeight,r.vastUrl=e.creative_depot_url,r.descriptionUrl=e.impression_id,r.impression_id=e.impression_id;else{r.ad=g(e.script,e.impression_id);var n=C[e.size_id].split("x").map((function(e){return Number(e)})),i=c(n,2);r.width=i[0],r.height=i[1]}r.rubiconTargeting=(Array.isArray(e.targeting)?e.targeting:[]).reduce((function(e,t){return e[t.key]=t.values[0],e}),{rpfl_elemid:t.placementCode});try{h["default"].addBidResponse(t.placementCode,r)}catch(a){v.logError("Error from addBidResponse",null,a)}}))}function f(e,t){return(t.cpm||0)-(e.cpm||0)}var g=function(e,t){return"<html>\n<head><script type='text/javascript'>inDapIF=true;</script></head>\n<body style='margin : 0; padding: 0;'>\n<!-- Rubicon Project Ad Tag -->\n<div data-rp-impression-id='"+t+"'>\n<script type='text/javascript'>"+e+"</script>\n</div>\n</body>\n</html>"};return s(l.createNew(I),{callBids:e,createNew:d.createNew})}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c=(function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,d=e[Symbol.iterator]();!(n=(o=d.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&d["return"]&&d["return"]()}finally{if(i)throw a}}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"==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},p=r(15),l=i(p),f=r(11),m=n(f),g=r(12),h=n(g),b=r(2),v=i(b),y=r(22),w=r(3),I="rubicon",_="//fastlane.rubiconproject.com/a/api/fastlane.json",B="//fastlane-adv.rubiconproject.com/v1/auction/video",S=500,C={1:"468x60",2:"728x90",8:"120x600",9:"160x600",10:"300x600",15:"300x250",16:"336x280",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",61:"1000x1000",65:"640x480",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",113:"1000x300",117:"320x100",125:"800x250",126:"200x600"};v._each(C,(function(e,t){return C[e]=t})),d.masSizeOrdering=function(e){var t=[15,2,9];return v.parseSizesInput(e).reduce((function(e,t){var r=parseInt(C[t],10);return r&&e.push(r),e}),[]).sort((function(e,r){var n=t.indexOf(e),i=t.indexOf(r);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-r}))},d.createNew=function(){return new d},e.exports=d}),(function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(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}function a(){function e(e){var n=e.bids||[];n.forEach((function(e){function n(t){try{m.logMessage("XHR callback function called for ad ID: "+e.bidId),r(t,e)}catch(n){"string"==typeof n?m.logWarn(n+" when processing smartyads response for placement code "+e.placementCode):m.logError("Error processing smartyads response for placement code "+e.placementCode,null,n);var i=u["default"].createBid(h.STATUS.NO_BID,e);i.bidderCode=e.bidder,i.error=n,l["default"].addBidResponse(e.placementCode,i)}}try{g.ajax(t(e),n,void 0,{withCredentials:!0})}catch(i){m.logError("Error sending smartyads request for placement code "+e.placementCode,null,i)}}))}function t(e){e.startTime=(new Date).getTime();var t=a.masSizeOrdering(Array.isArray(e.params.sizes)?e.params.sizes.map((function(e){return(v[e]||"").split("x")})):e.sizes);if(t.length<1)throw"no valid sizes";var r;r="http:"!==window.location.protocol?1:0;var n=window.location.host,i=window.location.pathname,o=navigator.language,d=window.screen.width,s=window.screen.height,c=["banner_id",e.params.banner_id,"size_ad",t[0],"alt_size_ad",t.slice(1).join(",")||void 0,"host",n,"page",i,"language",o,"deviceWidth",d,"deviceHeight",s,"secure",r,"bidId",e.bidId,"checkOn","rf"];return c.reduce((function(e,t,r){return r%2===0&&void 0!==c[r+1]?e+t+"="+encodeURIComponent(c[r+1])+"&":e}),"//ssp-nj.webtradehub.com/?").slice(0,-1)}function r(e,t){var r=JSON.parse(e),n=u["default"].createBid(h.STATUS.GOOD,t);n.creative_id=r.ad_id,n.bidderCode=t.bidder,n.cpm=r.cpm||0,n.ad=r.adm,n.width=r.width,n.height=r.height,n.dealId=r.deal,l["default"].addBidResponse(t.placementCode,n)}return o(s.createNew(b),{callBids:e,createNew:a.createNew})}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d=r(15),s=i(d),c=r(11),u=n(c),p=r(12),l=n(p),f=r(2),m=i(f),g=r(22),h=r(3),b="smartyads",v={1:"468x60",2:"728x90",8:"120x600",9:"160x600",10:"300x600",15:"300x250",16:"336x280",19:"300x100",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",61:"1000x1000",65:"640x480",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",113:"1000x300",117:"320x100",125:"800x250",126:"200x600"};m._each(v,(function(e,t){return v[e]=t})),a.masSizeOrdering=function(e){var t=[15,2,9];return m.parseSizesInput(e).reduce((function(e,t){var r=parseInt(v[t],10);return r&&e.push(r),e}),[]).sort((function(e,r){var n=t.indexOf(e),i=t.indexOf(r);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-r}))},a.createNew=function(){return new a},e.exports=a}),(function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(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}function a(){function e(e){var n=e.bids||[];n.forEach((function(e){function n(t){try{m.logMessage("XHR callback function called for ad ID: "+e.bidId),r(t,e)}catch(n){"string"==typeof n?m.logWarn(n+" when processing huddledmasses response for placement code "+e.placementCode):m.logError("Error processing huddledmasses response for placement code "+e.placementCode,null,n);var i=u["default"].createBid(h.STATUS.NO_BID,e);i.bidderCode=e.bidder,i.error=n,l["default"].addBidResponse(e.placementCode,i)}}try{g.ajax(t(e),n,void 0,{withCredentials:!0})}catch(i){m.logError("Error sending huddledmasses request for placement code "+e.placementCode,null,i)}}))}function t(e){e.startTime=(new Date).getTime();var t=a.masSizeOrdering(Array.isArray(e.params.sizes)?e.params.sizes.map((function(e){return(v[e]||"").split("x")})):e.sizes);if(t.length<1)throw"no valid sizes";var r=0;"http:"!==window.location.protocol&&(r=1);var n=window.location.host,i=window.location.pathname,o=navigator.language,d=window.screen.width,s=window.screen.height,c=["banner_id",e.params.placement_id,"size_ad",t[0],"alt_size_ad",t.slice(1).join(",")||[],"host",n,"page",i,"language",o,"deviceWidth",d,"deviceHeight",s,"secure",r,"bidId",e.bidId,"checkOn","rf"];return c.reduce((function(e,t,r){return r%2===0&&void 0!==c[r+1]?e+t+"="+encodeURIComponent(c[r+1])+"&":e}),"//huddledmassessupply.com/?").slice(0,-1)}function r(e,t){var r=JSON.parse(e),n=u["default"].createBid(h.STATUS.GOOD,t);n.creative_id=r.ad_id,n.bidderCode=t.bidder,n.cpm=r.cpm||0,n.ad=r.adm,n.width=r.width,n.height=r.height,n.dealId=r.deal,l["default"].addBidResponse(t.placementCode,n)}return o(s.createNew(b),{callBids:e,createNew:a.createNew})}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d=r(15),s=i(d),c=r(11),u=n(c),p=r(12),l=n(p),f=r(2),m=i(f),g=r(22),h=r(3),b="huddledmasses",v={1:"468x60",2:"728x90",10:"300x600",15:"300x250",19:"300x100",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",65:"640x480",67:"320x480",72:"320x320",73:"320x160",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",113:"1000x300",117:"320x100",118:"800x250",119:"200x600"};m._each(v,(function(e,t){return v[e]=t})),a.masSizeOrdering=function(e){var t=[15,2,9];return m.parseSizesInput(e).reduce((function(e,t){var r=parseInt(v[t],10);return r&&e.push(r),e}),[]).sort((function(e,r){var n=t.indexOf(e),i=t.indexOf(r);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-r}))},a.createNew=function(){return new a},e.exports=a}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(14),d=r(23),s=function(){var e=function(e){var t="sas_"+n.getUniqueIdentifierStr();return pbjs[t]=function(t){var r;
t?(n.logMessage("[SmartAdServer] bid response for placementCode "+e.placementCode),r=i.createBid(1),r.bidderCode="smartadserver",r.cpm=t.cpm,r.currency=t.currency,r.ad=t.ad,r.width=t.width,r.height=t.height,r.dealId=t.dealId,a.addBidResponse(e.placementCode,r)):(n.logMessage("[SmartAdServer] no bid response for placementCode "+e.placementCode),r=i.createBid(2),r.bidderCode="smartadserver",a.addBidResponse(e.placementCode,r))},t};return{callBids:function(t){for(var r=0;r<t.bids.length;r++){var n=t.bids[r],i=d.parse(n.params.domain);i.pathname="/prebid",i.search={pbjscbk:"pbjs."+e(n),siteid:n.params.siteId,pgid:n.params.pageId,fmtid:n.params.formatId,ccy:n.params.currency||"USD",bidfloor:n.params.bidfloor||0,tgt:encodeURIComponent(n.params.target||""),tag:n.placementCode,sizes:n.sizes.map((function(e){return e[0]+"x"+e[1]})).join(","),async:1},o.loadScript(d.format(i))}}}};e.exports=s}),(function(e,t,r){"use strict";var n,i=r(2),a=r(3),o=r(2),d=r(11),s=r(12),c=r(14);n=function(){function e(e){var r=e.bids,n=r.length,i=null;i=parent!==window?document.referrer:window.location.href;for(var a=0;n>a;a++){var o=r[a],d=o.bidId;t(o,d,i)}}function t(e,t,r){var n=o.getBidIdParameter("spaceId",e.params),i=o.getBidIdParameter("subId",e.params),a=o.getBidIdParameter("bidfloor",e.params),d="https:"===document.location.protocol?"s":"",s="http"+d+"://hb.sekindo.com/live/liveView.php?";s=o.tryAppendQueryString(s,"s",n),s=o.tryAppendQueryString(s,"subId",i),s=o.tryAppendQueryString(s,"pubUrl",r),s=o.tryAppendQueryString(s,"hbcb",t),s=o.tryAppendQueryString(s,"hbver","3"),s=o.tryAppendQueryString(s,"hbobj","pbjs"),s=o.tryAppendQueryString(s,"dcpmflr",a),s=o.tryAppendQueryString(s,"hbto",pbjs.bidderTimeout),s=o.tryAppendQueryString(s,"protocol",d),c.loadScript(s)}return pbjs.sekindoCB=function(e,t){var r=i.getBidRequest(e);if("undefined"!=typeof t&&"undefined"!=typeof t.cpm){var n=[];if(r){var c=r.bidder,u=r.placementCode;void 0!==t.cpm&&t.cpm>0?(n=d.createBid(a.STATUS.GOOD),n.callback_uid=e,n.bidderCode=c,n.creative_id=t.adId,n.cpm=parseFloat(t.cpm),n.ad=t.ad,n.width=t.width,n.height=t.height,s.addBidResponse(u,n)):(n=d.createBid(a.STATUS.NO_BID),n.callback_uid=e,n.bidderCode=c,s.addBidResponse(u,n))}}else r?o.logMessage("No prebid response for placement "+r.placementCode):o.logMessage("sekindoUM callback general error")},{callBids:e}},e.exports=n}),(function(e,t,r){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}var a=r(15),o=i(a),d=r(11),s=i(d),c=r(12),u=i(c),p=r(2),l=n(p),f=r(22),m=function(){function e(e){var r=void 0,n=void 0,i=void 0,a=void 0,o=void 0;try{e=JSON.parse(e)}catch(c){l.logError(c)}for(var p=0;p<d.length;p++){if(n=d[p],i=l.getBidRequest(n),a=i.bidder,o=i.placementCode,e){var f=e.decisions&&e.decisions[n],m=f&&f.pricing&&f.pricing.clearPrice;f&&m?(r=s["default"].createBid(1,i),r.bidderCode=a,r.cpm=m,r.width=f.width,r.height=f.height,r.ad=t(f)):(r=s["default"].createBid(2,i),r.bidderCode=a)}else r=s["default"].createBid(2,i),r.bidderCode=a;u["default"].addBidResponse(o,r)}}function t(e){return e.contents&&e.contents[0]&&e.contents[0].body+l.createTrackPixelHtml(e.impressionUrl)}function r(e){var t=[];return e.forEach((function(e){var r=a.indexOf(e[0]+"x"+e[1]);r>=0&&t.push(r)})),t}var n=o["default"].createNew("serverbid"),i="//e.serverbid.com/api/v2",a=[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"],d=[];return n.callBids=function(t){if(t&&t.bids&&l.isArray(t.bids)&&t.bids.length){for(var n={placements:[],time:Date.now(),user:{},url:l.getTopWindowUrl(),referrer:document.referrer,enableBotFiltering:!0,includePricingData:!0},a=t.bids||[],o=0;o<a.length;o++){var s=a[o];d.push(s.bidId);var c={networkId:s.params.networkId,siteId:s.params.siteId,zoneIds:s.params.zoneIds,campaignId:s.params.campaignId,flightId:s.params.flightId,adId:s.params.adId,divName:s.bidId,adTypes:s.adTypes||r(s.sizes)};c.networkId&&c.siteId&&n.placements.push(c)}n.placements.length&&f.ajax(i,e,JSON.stringify(n),{method:"POST",withCredentials:!0,contentType:"application/json"})}},{callBids:n.callBids}};m.createNew=function(){return new m},e.exports=m}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d=function(){function e(e){var n="https://apex.go.sonobi.com/trinity.js?key_maker=",i=e.bids||[],o=e.bidderRequestId,d=window.frameElement?"&ref="+encodeURI(top.location.host||document.referrer):"";a.loadScript(n+JSON.stringify(t(i))+"&cv="+r(o)+d)}function t(e){var t={};return o._each(e,(function(e){if(e.params){var r=e.params.floor?e.params.floor:null,n=e.params.ad_unit?e.params.ad_unit:e.params.placement_id?e.params.placement_id:null,i=e.params.sizes?e.params.sizes:e.sizes||null;i=o.parseSizesInput(i).toString(),o.isEmpty(i)&&o.logError("Sonobi adapter expects sizes for "+e.placementCode);var a=e.bidId,d=i?r?i+"|f="+r:i:r?"f="+r:"";/^[\/]?[\d]+[[\/].+[\/]?]?$/.test(n)?(n="/"===n.charAt(0)?n:"/"+n,t[n+"|"+a]=d,l[n+"|"+a]=e.placementCode,f[e.placementCode]=e):/^[0-9a-fA-F]{20}$/.test(n)&&20===n.length?(t[a]=n+"|"+d,l[a]=e.placementCode,f[e.placementCode]=e):(l[a]=e.placementCode,f[e.placementCode]=e,u(e.placementCode),o.logError("The ad unit code or Sonobi Placement id for slot "+e.placementCode+" is invalid"))}})),t}function r(e){var t="sbi_"+e;return window[t]=d,t}function d(e){var t=e.slots||{},r=e.sbi_dc||"";o._each(t,(function(e,t){var n=l[t];e.sbi_aid&&e.sbi_mouse&&e.sbi_size?c(n,r,e):u(n),delete l[t]}))}function s(e){var t=f[e];return delete f[e],t}function c(e,t,r){var a=n.createBid(1,s(e));r.sbi_dozer&&(a.dealId=r.sbi_dozer),a.bidderCode="sonobi",a.ad=p(t,r.sbi_aid),a.cpm=Number(r.sbi_mouse),a.width=Number(r.sbi_size.split("x")[0])||1,a.height=Number(r.sbi_size.split("x")[1])||1,i.addBidResponse(e,a)}function u(e){var t=n.createBid(2,s(e));t.bidderCode="sonobi",i.addBidResponse(e,t)}function p(e,t){var r="https://"+e+"apex.go.sonobi.com/sbi.js?aid="+t+"&as=null";return'<script type="text/javascript" src="'+r+'"></script>'}var l={},f={};return{callBids:e,formRequest:t,parseResponse:d,success:c,failure:u}};e.exports=d}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(11),o=r(12),d=r(14),s=function(){function e(e){var r=e.bids||[];t(r)}function t(e){var t=window.location.host,r=window.location.pathname+location.search+location.hash,a=[];i._each(e,(function(e){var t=i.getBidIdParameter("tagid",e.params),r=i.getBidIdParameter("bidfloor",e.params),n=0,o=0,d=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes,s=d.length;2===s&&"number"==typeof d[0]&&"number"==typeof d[1]?(n=d[0],o=d[1]):(n=d[0][0],o=d[0][1]);var c={id:e.bidId,banner:{w:n,h:o},tagid:t,bidfloor:r};a.push(c)}));var o={id:i.getUniqueIdentifierStr(),imp:a,site:{domain:t,page:r}},c="//"+s+"?callback=window.pbjs.sovrnResponse&src="+n.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(o));d.loadScript(c)}function r(e){var t=pbjs._bidsRequested.find((function(e){return"sovrn"===e.bidderCode}));t=t?t.bids.filter((function(t){return e.indexOf(t.bidId)<0})):[],t.forEach((function(e){var t={};t=a.createBid(2,e),t.bidderCode="sovrn",o.addBidResponse(e.placementCode,t)}))}var s="ap.lijit.com/rtb/bid";return pbjs.sovrnResponse=function(e){if(e&&e.id)if(e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length){var t=[];e.seatbid[0].bid.forEach((function(e){var r,i="",d=e.impid,s={},c=pbjs._bidsRequested.find((function(e){return"sovrn"===e.bidderCode})).bids.find((function(e){return e.bidId===d}));if(c&&(i=c.placementCode,c.status=n.STATUS.GOOD,r=parseFloat(e.price),0!==r)){e.placementCode=i,e.size=c.sizes;var u=e.adm,p='<img src="'+e.nurl+'">';s=a.createBid(1,c),s.creative_id=e.id,s.bidderCode="sovrn",s.cpm=r,s.ad=decodeURIComponent(u+p),s.width=parseInt(e.w),s.height=parseInt(e.h),o.addBidResponse(i,s),t.push(d)}})),r(t)}else r([]);else r([])},{callBids:e}};e.exports=s}),(function(e,t,r){"use strict";var n,i=r(11),a=r(12),o=r(14);n=function(){function e(e){var t=window.location.protocol+"//bidder.springserve.com/display/hbid?",r=e.sizes[0],n=r[0],i=r[1];t+="&w=",t+=n,t+="&h=",t+=i;var a=e.params,o={sp:"supplyPartnerId",imp_id:"impId"};for(var d in o)o.hasOwnProperty&&a.hasOwnProperty(o[d])&&(t+="&",t+=d,t+="=",t+=a[o[d]]);var s=window.location.hostname;return a.hasOwnProperty("test")&&a.test===!0&&(t+="&debug=true",s="test.com"),t+="&domain=",t+=s,t+="&callback=pbjs.handleSpringServeCB"}function t(t){for(var r=t.bids||[],n=0;n<r.length;n++){var i=r[n];o.loadScript(e(i))}}return pbjs.handleSpringServeCB=function(e){if(e&&e.seatbid&&e.seatbid.length>0&&void 0!==e.seatbid[0].bid[0]){var t=e.seatbid[0].bid[0],r=pbjs._bidsRequested.find((function(e){return"springserve"===e.bidderCode}));r=r&&r.bids.length>0?r.bids.filter((function(e){return e.params&&e.params.impId===t.impid})):[];for(var n,o=i.createBid(1),d=0;d<r.length;d++){var s=r[d];if("springserve"===s.bidder){n=s.placementCode;var c=s.sizes[0];o.width=c[0],o.height=c[1]}}r[0]&&(o.bidderCode=r[0].bidder),t.hasOwnProperty("price")&&t.hasOwnProperty("adm")?(o.cpm=t.price,o.ad=t.adm):(o=i.createBid(2),o.bidderCode="springserve"),a.addBidResponse(n,o)}},{callBids:t,buildSpringServeCall:e}},e.exports=n}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(2),o=r(14),d="//cdn.thoughtleadr.com/v4/",s=1,c=(function(){function e(){}return e.prototype.callBids=function(e){if(window.tldr&&window.tldr.requestPrebid)this.handleBids(e);else{var t=d;window.tldr&&window.tldr.config&&window.tldr.config.root_url&&(t=window.tldr.config.root_url),o.loadScript(t+"page.js",this.handleBids.bind(this,e),!0)}},e.prototype.handleBids=function(t){for(var r=(t.bids||[]).filter((function(t){return e.valid(t)})),n=0,i=r;n<i.length;n++){var a=i[n];this.requestPlacement(a)}},e.prototype.requestPlacement=function(t){var r=this,o=a.generateUUID(null),d=e.getSizes(t.sizes);window.tldr.requestPrebid(t.params.placementId,o).then((function(e){if(!e||!e.bid)return a.logError("invalid response from tldr.requestPrebid",void 0,void 0),void 0;r.receiver=function(t){t.origin===location.origin&&t.data&&t.data.TLDR_REQUEST&&t.data.TLDR_REQUEST.rid===o&&(t.source.postMessage({TLDR_RESPONSE:{config:e.config,rid:o}},location.origin),r.stopListen())},window.addEventListener("message",r.receiver,!1),setTimeout((function(){return r.stopListen()}),5e3);var c;e.bid.code===s?(c=n.createBid(e.bid.code),c.bidderCode="thoughtleadr",c.cpm=e.bid.cpm,c.ad=e.bid.ad,c.width=d.width,c.height=d.height):(c=n.createBid(e.bid.code),c.bidderCode="thoughtleadr"),i.addBidResponse(t.placementCode,c)}))},e.prototype.stopListen=function(){this.receiver&&(window.removeEventListener("message",this.receiver),this.receiver=void 0)},e.valid=function(e){return!(!e||!e.params||"string"!=typeof e.params.placementId)},e.getSizes=function(t){var r=t[0];return Array.isArray(r)?e.getSizes(r):{width:t[0],height:t[1]}},e})();e.exports=c}),(function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=r(15),a=r(11),o=r(12),d=r(14),s=function c(){function e(e){for(var r=e.bids||[],n=0;n<r.length;n++){var i=r[n];i.placementCode&&i.params.zoneId?t(i):console.warn("StickyAdsTV: Missing mandatory field(s).")}}function t(e){var t=e.placementCode,n=e.params.format?e.params.format:"inbanner",i=g;"intext-roll"===n&&(i=h),"screen-roll"===n&&(i=b);var a=!1;d.loadScript(i,(function(){r(e,(function(e){a||(a=!0,o.addBidResponse(t,e))}))}),!0)}function r(e,t){var r=e.params.zoneId||e.params.zone,n=s(e.sizes),i=new window.com.stickyadstv.vast.VastLoader;e.vast=v.stickyadstv_cache[e.placementCode]=i.getVast();var a={onSuccess:_((function(){var e=this,r=u(e,n),i=p(e.vast);t(l(e,!0,i,r,n[0],n[1]))}),e),onError:_((function(){var e=this;t(l(e,!1))}),e)},o={zoneId:r,playerSize:n[0]+"x"+n[1],vastUrlParams:e.params.vastUrlParams,componentId:"prebid-sticky"+(e.params.format?"-"+e.params.format:"")};"screen-roll"===e.params.format&&(o.playerSize=window.com.stickyadstv.screenroll.getPlayerSize()),i.load(o,a)}function s(e){for(var t=[1,1],r=0;r<e.length;r++)e[r][0]*e[r][1]>t[0]*t[1]&&(t=e[r]);return t}function u(e,t){var r=e.params.format,n="";return n="intext-roll"===r?w(e):"screen-roll"===r?I(e):y(e,t)}function p(e){var t=e.getPricing();return t||console.warn("StickyAdsTV: Bid pricing Can't be retreived. You may need to enable pricing on you're zone. Please get in touch with your sticky contact."),t}function l(e,t,r,n,i,o){var d;return t&&r?(d=a.createBid(1,e),d.bidderCode=e.bidder,d.cpm=r.price,d.currencyCode=r.currency,d.ad=n,d.width=i,d.height=o):(d=a.createBid(2,e),d.bidderCode=e.bidder),d}function f(){var e=window;try{for(;top!==e;)e.parent.location.href.length&&(e=e.parent)}catch(t){}return e}var m="stickyadstv",g="//cdn.stickyadstv.com/mustang/mustang.min.js",h="//cdn.stickyadstv.com/prime-time/intext-roll.min.js",b="//cdn.stickyadstv.com/prime-time/screen-roll.min.js",v=f();v.stickyadstv_cache={};var y=function(e,t){var r=e.placementCode,n='<div id="stickyadstv_prebid_target"></div>',i="<script type='text/javascript'>var topWindow = (function(){var res=window; try{while(top != res){if(res.parent.location.href.length)res=res.parent;}}catch(e){}return res;})();var vast = topWindow.stickyadstv_cache[\""+r+'"];var config = { preloadedVast:vast, autoPlay:true};var ad = new topWindow.com.stickyadstv.vpaid.Ad(document.getElementById("stickyadstv_prebid_target"),config);ad.initAd('+t[0]+","+t[1]+',"",0,"","");</script>';return n+i},w=function(e){var t=e.placementCode,r=e.params;r.hasOwnProperty("domId")||r.hasOwnProperty("auto")||r.hasOwnProperty("p")||r.hasOwnProperty("article")||(r.domId=t);var n="<script type='text/javascript'>var topWindow = (function(){var res=window; try{while(top != res){if(res.parent.location.href.length)res=res.parent;}}catch(e){}return res;})();var vast = topWindow.stickyadstv_cache[\""+t+'"];var config = { preloadedVast:vast';for(var i in r)r.hasOwnProperty(i)&&"format"!==i&&"zone"!==i&&"zoneId"!==i&&"vastUrlParams"!==i&&(n+=","+i+':"'+r[i]+'"');return n+="};topWindow.com.stickyadstv.intextroll.start(config);</script>"},I=function(e){var t=e.placementCode,r=e.params,n="<script type='text/javascript'>var topWindow = (function(){var res=window; try{while(top != res){if(res.parent.location.href.length)res=res.parent;}}catch(e){}return res;})();var vast = topWindow.stickyadstv_cache[\""+t+'"];var config = { preloadedVast:vast';for(var i in r)r.hasOwnProperty(i)&&"format"!==i&&"zone"!==i&&"zoneId"!==i&&"vastUrlParams"!==i&&(n+=","+i+':"'+r[i]+'"');return n+="};topWindow.com.stickyadstv.screenroll.start(config);</script>"},_=function(e,t){return function(){return e.apply(t,arguments)}};return n(i.createNew(m),{callBids:e,formatBidObject:l,formatAdHTML:u,getBiggerSize:s,getBid:r,getTopMostWindow:f,createNew:c.createNew})};s.createNew=function(){return new s},e.exports=s}),(function(e,t,r){"use strict";var n=r(2),i=r(14),a=r(12),o=r(11),d=function(){function e(e){for(var r=e.bids,n=r.length,a=0;n>a;a++){var o=r[a],d=o.bidId;i.loadScript(t(o,d))}}function t(e,t){var i=n.getBidIdParameter("inventoryCode",e.params),a=n.getBidIdParameter("floor",e.params),o="//tlx.3lift.com/header/auction?",d=document.location.protocol+o;d=n.tryAppendQueryString(d,"callback","pbjs.TLCB"),d=n.tryAppendQueryString(d,"lib","prebid"),d=n.tryAppendQueryString(d,"v","0.24.0"),d=n.tryAppendQueryString(d,"callback_id",t),d=n.tryAppendQueryString(d,"inv_code",i),d=n.tryAppendQueryString(d,"floor",a),d=n.tryAppendQueryString(d,"fe",r());var s=n.parseSizesInput(e.sizes);s&&(d+="size="+s+"&");var c=n.getTopWindowUrl();return d=n.tryAppendQueryString(d,"referrer",c),d.lastIndexOf("&")===d.length-1&&(d=d.substring(0,d.length-1)),n.logMessage("tlCall request built: "+d),e.startTime=(new Date).getTime(),d}function r(){var e=0;try{var t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash");t&&(e=1)}catch(r){navigator.mimeTypes&&void 0!==navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=1)}return e}return pbjs.TLCB=function(e){if(e&&e.callback_id){var t=n.getBidRequest(e.callback_id),r=t&&t.placementCode;t&&n.logMessage("JSONP callback function called for inventory code: "+t.params.inventoryCode);var i=[];e&&e.cpm&&0!==e.cpm?(i=o.createBid(1,t),i.bidderCode="triplelift",i.cpm=e.cpm,i.ad=e.ad,i.width=e.width,i.height=e.height,i.dealId=e.deal_id,a.addBidResponse(r,i)):(t&&n.logMessage("No prebid response from TripleLift for inventory code: "+t.params.inventoryCode),i=o.createBid(2,t),i.bidderCode="triplelift",a.addBidResponse(r,i))}else n.logMessage("No prebid response for placement %%PLACEMENT%%")},{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n,i=r(2),a=r(3),o=r(2),d=r(14),s=r(12),c=r(11),u=r(15);n=function p(){function e(e,t){var r="//rtb.t.c4tw.net/Bid?";if(r=o.tryAppendQueryString(r,"s","h"),r=o.tryAppendQueryString(r,"callback","pbjs.handleTwCB"),r=o.tryAppendQueryString(r,"callback_uid",t),r=o.tryAppendQueryString(r,"referrer",o.getTopWindowUrl()),e.params)for(var n in e.params){var i=e.params[n];switch(n){case"placementId":n="id";break;case"siteId":n="sid";break;case"publisherId":n="pid";break;case"currency":n="cur";break;case"bidFloor":n="min";break;case"country":n="gz"}r=o.tryAppendQueryString(r,n,i)}var a=o.parseSizesInput(e.sizes);return a.length>0&&(r=o.tryAppendQueryString(r,"size",a.join(","))),r+="ta=1",o.logMessage("bid request built: "+r),e.startTime=(new Date).getTime(),r}var t=u.createNew("twenga");return t.callBids=function(t){for(var r=0;r<t.bids.length;r++){var n=t.bids[r],i=n.bidId;d.loadScript(e(n,i))}},pbjs.handleTwCB=function(e){var t;if(e&&e.callback_uid){var r,n=e.callback_uid,d="",u=i.getBidRequest(n);u&&(t=u.bidder,d=u.placementCode,u.status=a.STATUS.GOOD),o.logMessage("JSONP callback function called for ad ID: "+n);var p=[];if(e.result&&e.result.cpm&&0!==e.result.cpm&&e.result.ad){var l=e.result;r=parseInt(l.cpm,10),r/=1e4;var f=l.ad.replace("%%WP%%",l.cpm);p=c.createBid(1,u),p.creative_id=l.creative_id,p.bidderCode=t,p.cpm=r,!f||0!==f.lastIndexOf("http",0)&&0!==f.lastIndexOf("//",0)?p.ad=f:p.adUrl=f,p.width=l.width,p.height=l.height,s.addBidResponse(d,p)}else o.logMessage("No prebid response from Twenga for placement code "+d),p=c.createBid(2,u),p.bidderCode=t,s.addBidResponse(d,p)}else o.logMessage("No prebid response for placement %%PLACEMENT%%")},{callBids:t.callBids,setBidderCode:t.setBidderCode,createNew:p.createNew,buildBidCall:e}},n.createNew=function(){return new n},e.exports=n}),(function(e,t,r){"use strict";var n=r(14),i=r(11),a=r(12),o=r(2),d=function(){window.ybotq=window.ybotq||[];var e={BID_STATUS:{PENDING:0,AVAILABLE:1,EMPTY:2},definedSlots:[],pageLevelOption:!1,buildCreative:function(e,t){return'<script type="text/javascript" src="//cdn.yldbt.com/js/yieldbot.intent.js"></script><script type="text/javascript">var ybotq = ybotq || [];ybotq.push(function () {yieldbot.renderAd(\''+e+":"+t+"');});</script>"},buildBid:function(t){var r={};if(t&&t.ybot_ad&&"n"!==t.ybot_ad){r=i.createBid(e.BID_STATUS.AVAILABLE),r.cpm=parseInt(t.ybot_cpm)/100||0;var n=t.ybot_size?t.ybot_size.split("x"):[0,0],a=t.ybot_slot||"",o=t.ybot_size||"";r.width=n[0]||0,r.height=n[1]||0,r.ad=e.buildCreative(a,o);for(var d in t)r[d]=t[d]}else r=i.createBid(e.BID_STATUS.EMPTY);return r.bidderCode="yieldbot",r},callBids:function(t){var r=t.bids||[],i=window.ybotq||[];e.pageLevelOption=!1,i.push((function(){var t=window.yieldbot;e.definedSlots=[],o._each(r,(function(r){var n=r,i=n.params&&n.params.psn||"ERROR_DEFINE_YB_PSN",a=n.params&&n.params.slot||"ERROR_DEFINE_YB_SLOT";t.pub(i),t.defineSlot(a,{sizes:n.sizes||[]}),e.definedSlots.push(n.bidId)})),t.enableAsync(),t._initialized!==!0?t.go():t.nextPageview()})),i.push((function(){e.handleUpdateState()})),n.loadScript("//cdn.yldbt.com/js/yieldbot.intent.js",null,!0)},handleUpdateState:function(){var t=window.yieldbot;o._each(e.definedSlots,(function(r){var n,i;if(n=pbjs._bidsRequested.find((function(e){return"yieldbot"===e.bidderCode})),i=n&&n.bids?n.bids.find((function(e){return e.bidId===r})):null,i&&i.params&&i.params.slot){var o=i.placementCode||"ERROR_YB_NO_PLACEMENT",d=t.getSlotCriteria(i.params.slot),s=e.buildBid(d);a.addBidResponse(o,s)}}))}};return{callBids:e.callBids}};e.exports=d}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(11),o=r(12),d=r(14),s=null,c=function(){function e(e){var r=e.bids||[];c(t(r))}function t(e){var t,r={},n=[];for(t in e)r[i.getBidIdParameter("pzoneid",e[t].params)]=e[t];for(t in r)r.hasOwnProperty(t)&&n.push(r[t]);return n}function r(e){var t=null,r=null,n=e.sizes.length;return 2===n&&"number"==typeof e.sizes[0]&&"number"==typeof e.sizes[1]?(t=e.sizes[0],r=e.sizes[1]):(t=e.sizes[0][0],r=e.sizes[0][1]),[t,r]}function c(e){var t=window.location.host,n=window.location.pathname+location.search+location.hash,a=[];s=e[0].placementCode,i._each(e,(function(e){var t=i.getBidIdParameter("pzoneid",e.params),n=i.getBidIdParameter("bidfloor",e.params),o=r(e),d={id:e.bidId,banner:{w:o[0],h:o[1]},tagid:t,bidfloor:n};a.push(d),p=e.params.nginadDomain}));var o={id:i.getUniqueIdentifierStr(),imp:a,site:{domain:t,page:n}},c=window.location.protocol+"//"+p+"/bid/rtb?callback=window.pbjs.nginadResponse&br="+encodeURIComponent(JSON.stringify(o));d.loadScript(c)}function u(e,t){if(null!==t){var r=a.createBid(2);r.bidderCode="nginad",o.addBidResponse(t,r)}}var p="placeholder.for.nginad.server.com";return pbjs.nginadResponse=function(e){var t,i={};if(!e||!e.id)return u(e,s);if(!e.seatbid||0===e.seatbid.length||!e.seatbid[0].bid||0===e.seatbid[0].bid.length)return u(e,s);for(t in e.seatbid[0].bid){var d,c=e.seatbid[0].bid[t],p="",l=c.impid,f=pbjs._bidsRequested.find((function(e){return"nginad"===e.bidderCode})).bids.find((function(e){return e.bidId===l}));if(!f)return u(c,s);p=f.placementCode,f.status=n.STATUS.GOOD,d=parseFloat(c.price),0===d&&u(c,l),c.placementCode=p,c.size=f.sizes;var m=c.adm;i=a.createBid(1),i.creative_id=c.Id,i.bidderCode="nginad",i.cpm=d,i.ad=decodeURIComponent(m);var g=r(f);i.width=g[0],i.height=g[1],o.addBidResponse(p,i)}},{callBids:e}};e.exports=c}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(11),o=r(12),d=r(14),s=function(){function e(e){var r=e.bids||[],n=window.location.host,a=window.location.href,o=[],u="";i._each(r,(function(e){var t=i.getBidIdParameter("tagId",e.params),r=i.getBidIdParameter("ref",e.params),n=0,a=0;""===u&&(u=i.getBidIdParameter("pubId",e.params)),2===e.sizes.length&&"number"==typeof e.sizes[0]&&"number"==typeof e.sizes[1]?(n=e.sizes[0],a=e.sizes[1]):(n=e.sizes[0][0],a=e.sizes[0][1]);var d={id:i.getUniqueIdentifierStr(),banner:{w:n,h:a},tagid:t};""!==r&&(d.ext={refoverride:r}),o.push(d),c.push(e.placementCode)}));var p={id:i.getUniqueIdentifierStr(),imp:o,site:{publisher:{id:u},domain:n,page:a}},l=l||0,f=l;f>0&&(p.tmax=f);var m="https://"+t+"?callback="+encodeURIComponent(s)+"&request="+encodeURIComponent(JSON.stringify(p));d.loadScript(m)}var t="hb.iselephant.com/auc/ortb",r="brightcom",s="window.pbjs=window.pbjs||window.parent.pbjs||window.top.pbjs;window.pbjs.brightcomResponse",c=[],u=[];return pbjs.brightcomResponse=function(e){var t={};e&&e.id&&e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length&&e.seatbid[0].bid.forEach((function(e){var i=pbjs._bidsRequested.find((function(e){return"brightcom"===e.bidderCode})).bids[0];if(i){var d=i.placementCode;i.status=n.STATUS.GOOD,e.placementCode=d,e.size=i.sizes;var s=e.adm,c='<img src="'+e.nurl+'" width="1" height="1" style="display:none" />',p=decodeURIComponent(s+c);t=a.createBid(1),t.creative_id=e.Id,t.bidderCode=r,t.cpm=parseFloat(e.price),t.ad=p;var l,f;2===i.sizes.length&&"number"==typeof i.sizes[0]&&"number"==typeof i.sizes[1]?(l=i.sizes[0],f=i.sizes[1]):(l=i.sizes[0][0],f=i.sizes[0][1]),t.width=l,t.height=f,o.addBidResponse(d,t),u.push(d)}}));for(var i=0;i<c.length;i++){var d=c[i];-1===u.indexOf(d)&&(t=a.createBid(2),t.bidderCode=r,o.addBidResponse(d,t))}},{callBids:e}};e.exports=s}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(2),o=r(14),d=function(){function e(e){if(e){var t,r=["site","page","width","height","rank","subPublisher","ecpm","atf","pId","pbId","referrer"];a._each(r,(function(r){for(t in e)if(e.hasOwnProperty(t)&&t.toLowerCase()===r.toLowerCase()){e[r]=e[t];break}}))}}function t(e,t,r){var n=new RegExp("{"+t+"}","g");return r===!0&&(r=1),r===!1&&(r=0),e.replace(n,r)}function r(e,r){return a._each(r,(function(r){e=t(e,r[0],r[1])})),e}function d(e,t){return r(w,[["o",e],["gid",encodeURIComponent(t.tagId)],["rpos",t.atf?1001:0],["ecpm",t.ecpm||""]])}function s(e,t){return e||t}function c(e,t){return r(I,[["o",e],["pId",t.pId],["rank",s(t.rank,e)]])}function u(e,t){return r(_,[["o",e],["wsName",encodeURIComponent(decodeURIComponent(t.site))],["wName",encodeURIComponent(decodeURIComponent(t.page))],["width",t.width],["height",t.height],["subp",t.subPublisher?encodeURIComponent(decodeURIComponent(t.subPublisher)):""],["rank",s(t.rank,e)]])}function p(e,t,n,i){return r(B+y,[["pbId",e],["pc",t],["cts",(new Date).getTime()],["cb",Math.floor(1e8*Math.random())],["referrer",encodeURIComponent(i||"")]])+n}function l(e,t){var r=d(e,t);return t.pId?c(e,t)+r:u(e,t)+r}function f(t){var r,n,i,d="";for(v=t.bids||[],n=0;n<v.length;n++){var s=v[n].params;s.tagId=v[n].placementCode,e(s),r=s.pbId,i=i||s.referrer,d+=l(n,s)}d=p(r,v.length,d,i),a.logMessage("Calling WO: "+d),o.loadScript(d)}function m(e){var t,r=document.getElementsByTagName("head")[0];a._each(e,(function(e){switch(t=void 0,e.Type){case"redirect":t=document.createElement("img");break;case"iframe":t=a.createInvisibleIframe();break;case"js":t=document.createElement("script"),t.type="text/javascript",t.async=!0}t&&(t.src=decodeURIComponent(e.Url),r.insertBefore(t,r.firstChild))}))}function g(e,t){var r;for(r=0;r<t.length;r++)if(t[r].ExtPlacementId===e)return t[r]}function h(e){return"http:/"===e.slice(0,6)||"https:/"===e.slice(0,7)||"//"===e.slice(0,2)}function b(e){var t,r=e.Source;return a._each(e.TrackingCodes,(function(e){t=h(e)?'<img src="'+e+'" width="0" height="0" style="position:absolute"></img>':e,r=t+r})),r}var v,y="JSAdservingMP.ashx?pc={pc}&pbId={pbId}&clk=&exm=&jsv=1.0&tsv=1.0&cts={cts}&arp=0&fl=0&vitp=&vit=&jscb=window.pbjs.handleWideOrbitCallback&url={referrer}&fp=&oid=&exr=&mraid=&apid=&apbndl=&mpp=0&uid=&cb={cb}&hb=1",w="&gid{o}={gid}&pp{o}=&clk{o}=&rpos{o}={rpos}&ecpm{o}={ecpm}&ntv{o}=&ntl{o}=&adsid{o}=",I="&pId{o}={pId}&rank{o}={rank}",_="&wsName{o}={wsName}&wName{o}={wName}&rank{o}={rank}&bfDim{o}={width}x{height}&subp{o}={subp}",B=window.location.protocol+"//p{pbId}.atemda.com/",S="wideorbit";return window.pbjs=window.pbjs||{},window.pbjs.handleWideOrbitCallback=function(e){var t,r;a.logMessage("WO response. Placements: "+e.Placements.length),m(e.UserMatchings),a._each(v,(function(a){t=g(a.placementCode,e.Placements),t&&"DirectHTML"===t.Type?(r=n.createBid(1),r.cpm=t.Bid,r.ad=b(t),r.width=t.Width,r.height=t.Height):r=n.createBid(2),r.bidderCode=S,i.addBidResponse(a.placementCode,r)}))},{callBids:f}};e.exports=d}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d=function(){function e(e){for(var t={bids:[]},r=0;r<e.bids.length;r++){for(var n="",i=e.bids[r],d=0;d<i.sizes.length;d++)n+=o.parseGPTSingleSizeArray(i.sizes[d]),d!==i.sizes.length-1&&(n+=",");t.bids.push({callbackId:i.bidId,siteId:i.params.siteId,adSizes:n})}var s=JSON.stringify(t),c=document.location.protocol+"//media.adfrontiers.com/pq?t=hb&bids="+encodeURIComponent(s);a.loadScript(c)}return window.pbjs=window.pbjs||{},window.pbjs.processJCMResponse=function(e){if(e){var t=JSON.parse(e);if(t)for(var r=t.bids,a=0;a<r.length;a++){var d,s=r[a];s.cpm>0?(d=n.createBid(1),d.bidderCode="jcm",d.cpm=s.cpm,d.ad=decodeURIComponent(s.ad.replace(/\+/g,"%20")),d.width=s.width,d.height=s.height,i.addBidResponse(o.getBidRequest(s.callbackId).placementCode,d)):(d=n.createBid(2),d.bidderCode="jcm",i.addBidResponse(o.getBidRequest(s.callbackId).placementCode,d))}}},{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d=function(){function e(e){u=e;var t=[],r=0;u.bids.forEach((function(e){t=o.flatten(t,o.parseSizesInput(e.sizes)),r=e.params.siteId})),a.loadScript(c+"sid="+r+";sizes="+t.join(","),null,!1)}function t(e){var t=e.mids;u.bids.forEach((function(e){var a=!1;if(t.forEach((function(t){if(!(t.useCount>0)){t.useCount||(t.useCount=0);var d=!0;if(o.parseSizesInput(e.sizes).forEach((function(e){e===t.width+"x"+t.height&&(d=!1)})),!d){var s=n.createBid(1,e);s.bidderCode=e.bidder,s.width=t.width,s.height=t.height,s.cpm=parseFloat(t.cpm),s.cpm<=0||(t.useCount++,s.ad=t.ad_code_html,s.ad=r(s,t,e)+s.ad,(s.ad||s.adUrl)&&(i.addBidResponse(e.placementCode,s),a=!0))}}})),!a){var d=n.createBid(2,e);d.bidderCode=e.bidder,i.addBidResponse(e.placementCode,d)}}))}function r(e,t,r){var n=t.notification_url;return n+=s,n+=";cb="+Math.random(),n+=";qqq="+1/e.cpm,n+=";hbt="+pbjs.bidderTimeout,n+=";style=adapter",n+=";vis="+encodeURIComponent(document.visibilityState),n+=";traffic_info="+encodeURIComponent(JSON.stringify(d())),r.params.subId&&(n+=";subid="+encodeURIComponent(r.params.subId)),'<script async src="'+n+'"></script>'}function d(){for(var e,t={},r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<r.length;n++)e=r[n].split("="),e[0].match(/^utm/)&&(t[e[0]]=e[1].substr(0,150));return t}var s="1.0.0",c=window.location.protocol+"//udmserve.net/udm/img.fetch?tid=1;dt=9;callback=pbjs.handleUnderdogMediaCB;",u={};return pbjs.handleUnderdogMediaCB=t,{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(11),o=r(12),d=r(14),s=null,c="memeglobal",u=function(){function e(e){var r=e.bids;if(r){s=r[0].placementCode;for(var n=0;n<r.length;n++)t(r[n])}}function t(e){var t=window.location.host,r=window.location.host+window.location.pathname+location.search+location.hash,a=i.getBidIdParameter("tagid",e.params),o=Number(i.getBidIdParameter("bidfloor",e.params)),s=0,c=0,p=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes,l=p.length;2===l&&"number"==typeof p[0]&&"number"==typeof p[1]?(s=p[0],c=p[1]):(s=p[0][0],c=p[0][1]);var f={id:i.getUniqueIdentifierStr(),imp:[{id:e.bidId,banner:{w:s,h:c},tagid:e.placementCode,bidfloor:o}],site:{domain:t,page:r,publisher:{id:a}}},m="//"+u+"?callback=window.pbjs.mgres&src="+n.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(f));d.loadScript(m)}function r(){return pbjs._bidsRequested.find((function(e){return e.bidderCode===c}))}var u="stinger.memeglobal.com/api/v1/services/prebid";return pbjs.mgres=function(e){e&&e.id&&e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length&&e.seatbid[0].bid.forEach((function(e){var t,i="",d=r(),s=d.bids.find((function(t){return t.bidId===e.impid}));if(s){var u=a.createBid(1);if(i=s.placementCode,s.status=n.STATUS.GOOD,t=parseFloat(e.price),0===t){var p=a.createBid(2);return p.bidderCode=c,o.addBidResponse(i,p),void 0}u.placementCode=i,u.size=s.sizes;var l=e.adm,f='<img src="'+e.nurl+'" height="0px" width="0px" style="display: none;">';u.creative_id=e.id,u.bidderCode=c,u.cpm=t,u.ad=decodeURIComponent(l+f),u.width=parseInt(e.w),u.height=parseInt(e.h),o.addBidResponse(i,u)}}))},{callBids:e}};e.exports=u}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=function(){function e(e){!window.criteo_pubtag||window.criteo_pubtag instanceof Array?(t(e),a.loadScript(u,(function(){}),!0)):t(e)}function t(e){window.Criteo=window.Criteo||{},window.Criteo.events=window.Criteo.events||[];var t=function(){for(var t=e.bids||[],r=[],n=!1,i=0;i<t.length;i++){var a=t[i];r.push(new Criteo.PubTag.DirectBidding.DirectBiddingSlot(a.placementCode,a.params.zoneId,void 0,a.transactionId)),n|=void 0!==a.params.audit
}var o=new Criteo.PubTag.DirectBidding.DirectBiddingEvent(l,new Criteo.PubTag.DirectBidding.DirectBiddingUrlBuilder(n),r,d(r),s(r),s(r));window.criteo_pubtag.push(o)};window.Criteo.events.push(t)}function r(e){try{return JSON.parse(e)}catch(t){return{}}}function o(e){return void 0===e.slots}function d(e){return function(t){var a=r(t);if(o(a))return s(e)();for(var d=0;d<e.length;d++){for(var u=null,l=0;l<a.slots.length;l++)if(a.slots[l]&&a.slots[l].impid===e[d].impId){u=a.slots.splice(l,1)[0];break}var f;u?(f=n.createBid(1),f.bidderCode=p,f.cpm=u.cpm,f.ad=u.creative,f.width=u.width,f.height=u.height):f=c(),i.addBidResponse(e[d].impId,f)}}}function s(e){return function(){for(var t=0;t<e.length;t++)i.addBidResponse(e[t].impId,c())}}function c(){var e=n.createBid(2);return e.bidderCode=p,e}var u=window.location.protocol+"//static.criteo.net/js/ld/publishertag.js",p="criteo",l=125;return{callBids:e}};e.exports=o}),(function(e,t,r){"use strict";var n=r(2),i=r(11),a=r(12),o=r(14),d=function(){function e(e,t,n){return function(i){try{delete window[e]}catch(a){window[e]=void 0}r(i,t,n)}}function t(t){var r=t.placementCode,i=t.sizes&&t.sizes[0];if(t=t.params,!t.unit)return n.logError(l.noUnit,u),void 0;var a=["s="+t.unit,"adapter=prebid"],d="28136"===t.unit.toString();a.push("url="+encodeURIComponent(t.page_url||location.href)),i instanceof Array&&2===i.length&&"number"==typeof i[0]&&"number"==typeof i[1]&&a.push("sz="+i.join("x"));var f=p+t.unit+i.join("x")+encodeURIComponent(r);a.push("callback="+encodeURIComponent('window["'+f+'"]')),window[f]=e(f,t.unit,r),o.loadScript(("https:"===document.location.protocol?"https:":"http:")+(d?c:s)+"?"+a.join("&"))}function r(e,t,r){var o,d=e&&e.bid||e;d&&d.adTag&&d.sectionID&&d.sectionID.toString()===t.toString()?(o=i.createBid(1),o.cpm=d.value,o.ad=d.adTag,o.width=d.width,o.height=d.height):(n.logError(l.unitNum+t+". "+(d?d.statusMessage||l.noAdTag:l.noBid),u),o=i.createBid(2)),o.bidderCode=u,a.addBidResponse(r,o)}function d(e){for(var r,n=e.bids||[],i=0;i<n.length;i++)r=n[i],r&&r.bidder===u&&t(r)}var s="//t.brand-server.com/hb",c="//staging.brand-server.com/hb",u="centro",p="adCentroHandler_",l={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:d}};e.exports=d}),(function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=r(2),a=r(3),o=r(2),d=r(14),s=r(12),c=r(11),u=function(){function e(e,t){var r=o.getBidIdParameter("placementId",e.params),i=o.getBidIdParameter("invCode",e.params),a=o.getBidIdParameter("referrer",e.params),d=o.getBidIdParameter("alt_referrer",e.params),s="https://ib.adnxs.com/jpt?";s=o.tryAppendQueryString(s,"callback","pbjs.handleXhbCB"),s=o.tryAppendQueryString(s,"callback_uid",t),s=o.tryAppendQueryString(s,"id",r),s=o.tryAppendQueryString(s,"code",i);var c="",u=o.parseSizesInput(e.sizes),p=u.length;if(p>0&&(c="size="+u[0],p>1)){c+="&promo_sizes=";for(var l=1;p>l;l++)c+=u[l]+=",";c&&","===c.charAt(c.length-1)&&(c=c.slice(0,c.length-1))}c&&(s+=c+"&");var f=n({},e.params);delete f.placementId,delete f.invCode,delete f.query,delete f.referrer,delete f.alt_referrer;var m=o.parseQueryStringParameters(f);return m&&(s+=m),""===a&&(a=o.getTopWindowUrl()),s=o.tryAppendQueryString(s,"referrer",a),s=o.tryAppendQueryString(s,"alt_referrer",d),s.lastIndexOf("&")===s.length-1&&(s=s.substring(0,s.length-1)),s}function t(t){for(var r=t.bids||[],n=0;n<r.length;n++){var i=r[n],a=i.bidId;d.loadScript(e(i,a))}}var r={alwaysUseBid:!0,adserverTargeting:[{key:"hb_xhb_deal",val:function(e){return e.dealId}},{key:"hb_xhb_adid",val:function(e){return e.adId}}]};return s.registerDefaultBidderSetting("xhb",r),pbjs.handleXhbCB=function(e){var t=void 0;if(e&&e.callback_uid){var r=void 0,n=e.callback_uid,o="",d=i.getBidRequest(n);d&&(t=d.bidder,o=d.placementCode,d.status=a.STATUS.GOOD);var u=[];if(e.result&&e.result.ad&&""!==e.result.ad){r=0;var p=e.result.creative_id;u=c.createBid(a.STATUS.GOOD,d),u.creative_id=p,u.bidderCode=t,u.cpm=r,u.adUrl=e.result.ad,u.width=e.result.width,u.height=e.result.height,u.dealId="99999999",s.addBidResponse(o,u)}else u=c.createBid(2),u.bidderCode=t,s.addBidResponse(o,u)}},{callBids:t}};e.exports=u}),(function(e,t,r){"use strict";var n=r(2),i=r(12),a=r(11),o=r(22).ajax,d="sharethrough",s="1.2.0",c=function(){function e(e){for(var n=e.bids,i=0;i<n.length;i+=1){var a=n[i];l.placementCodeSet[a.placementCode]=a;var o=r(a);l.ajax(o,t(a),void 0,{withCredentials:!0})}}function t(e){return function(t){c(e,t)}}function r(e){var t=n.getBidIdParameter("pkey",e.params),r=l.STR_BTLR_HOST,i=r+"/header-bid/v1?";return i=n.tryAppendQueryString(i,"bidId",e.bidId),i=n.tryAppendQueryString(i,"placement_key",t),i=p(i)}function c(e,t){try{t=JSON.parse(t);var r=t.bidId,o=a.createBid(1,e);o.bidderCode=d,o.cpm=t.creatives[0].cpm;var s=e.sizes[0];o.width=s[0],o.height=s[1],o.adserverRequestId=t.adserverRequestId,l.placementCodeSet[e.placementCode].adserverRequestId=t.adserverRequestId,o.pkey=n.getBidIdParameter("pkey",e.params);var c="str_response_"+r,p=JSON.stringify(t);o.ad='<div data-str-native-key="'+o.pkey+"\" data-stx-response-name='"+c+"'>\n </div>\n <script>var "+c+" = "+p+"</script>\n <script src=\"//native.sharethrough.com/assets/sfp-set-targeting.js\"></script>\n <script type='text/javascript'>\n (function() {\n var sfp_js = document.createElement('script');\n sfp_js.src = \"//native.sharethrough.com/assets/sfp.js\";\n sfp_js.type = 'text/javascript';\n sfp_js.charset = 'utf-8';\n try {\n window.top.document.getElementsByTagName('body')[0].appendChild(sfp_js);\n } catch (e) {\n console.log(e);\n }\n })();\n </script>",i.addBidResponse(e.placementCode,o)}catch(f){u(e)}}function u(e){var t=a.createBid(2,e);i.addBidResponse(e.placementCode,t)}function p(e){return e=n.tryAppendQueryString(e,"hbVersion","0.24.0"),e=n.tryAppendQueryString(e,"strVersion",s),e=n.tryAppendQueryString(e,"hbSource","prebid")}var l={};return l.STR_BTLR_HOST=document.location.protocol+"//btlr.sharethrough.com",l.STR_BEACON_HOST=document.location.protocol+"//b.sharethrough.com/butler?",l.placementCodeSet={},l.ajax=o,{callBids:e,str:l}};e.exports=c}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(11),o=r(12),d=r(14),s=function(){function e(e){i.logInfo("callBids roxot adapter invoking");var t=window.location.host,a=window.location.pathname+location.search+location.hash,o={id:i.getUniqueIdentifierStr(),bids:e,site:{domain:t,page:a}},s="//"+r+"?callback=pbjs.roxotResponseHandler&src="+n.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(o));d.loadScript(s)}function t(e){function t(){return!e||!e.bids||!Array.isArray(e.bids)||e.bids.length<=0}function r(e){var t="",r=pbjs._bidsRequested.find((function(e){return"roxot"===e.bidderCode})).bids.find((function(t){return t.bidId===e.bidId}));if(!r)return s(t);r.status=n.STATUS.GOOD,t=r.placementCode,c.push(t);var i=e.cpm,d='<img src="'+e.nurl+'">';if(!i)return s(t);var u=a.createBid(1,r);u.creative_id=e.id,u.bidderCode="roxot",u.cpm=i,u.ad=decodeURIComponent(e.adm+d),u.width=parseInt(e.w),u.height=parseInt(e.h),o.addBidResponse(t,u)}function d(e){function t(t){return i.contains(e,t.placementCode)?null:(s(t),void 0)}pbjs._bidsRequested.find((function(e){return"roxot"===e.bidderCode})).bids.forEach(t)}function s(e){var t=a.createBid(2,e);t.bidderCode="roxot",o.addBidResponse(e.placementCode,t)}i.logInfo("roxotResponseHandler invoking");var c=[];if(t())return d();e.bids.forEach(r);var u=d(c);return i.logInfo("roxotResponse handler finish"),u}var r="r.rxthdr.com";return pbjs.roxotResponseHandler=t,{callBids:e}};e.exports=s}),(function(e,t,r){"use strict";var n=r(3),i=r(2),a=r(11),o=r(12),d=r(14),s=function(){function e(e){for(var n=e.bids||[],a=0;a<n.length;a++){var o=n[a],c=i.getValue(o,"bidId"),u=Math.round((new Date).getTime()/1e3),p=t,l=o.params||{},f=i.getValue(l,"placementId");if(i.isEmptyStr(f))return i.logError("missing params:",r,"Enter valid vzPlacementId"),void 0;var m=i.getTopWindowLocation().href,g={_vzPlacementId:f,_rqsrc:m,_cb:u,_slotBidId:c},h=JSON.stringify(g);p=i.tryAppendQueryString(p,s,h),d.loadScript(p)}}var t="//banner.vrtzads.com/vzhbidder/bid?",r="vertoz",s="q";return pbjs.vzResponse=function(e){var t,d=e,s=i.getBidRequest(d.slotBidId);if(d.cpm)t=a.createBid(n.STATUS.GOOD,s),t.cpm=Number(d.cpm),t.ad=d.ad+i.createTrackPixelHtml(decodeURIComponent(d.nurl)),t.width=d.adWidth,t.height=d.adHeight;else{var c=d.statusText;t=a.createBid(n.STATUS.NO_BID,s),i.logMessage(c)}var u=s.placementCode;t.bidderCode=r,o.addBidResponse(u,t)},{callBids:e}};e.exports=s}),(function(e,t,r){"use strict";function n(){function e(e){for(var t=e&&e.bids||[],i=0;i<t.length;i++){var d=t[i],s=d.bidId,p=d.params.sid,l=d.params.cur||d.params.currency,f="",m=a.parseSizesInput(d.sizes);f=m.reduce((function(e,t){return e?e+","+t:t}),f);var g=r;g=a.tryAppendQueryString(g,"hb.ver",c);var h={hb:"1","hb.name":"prebidjs","hb.callback":n,"hb.callbackUid":s,"hb.sizes":f,"hb.currency":l,sid:p};g+="#";for(var b=Object.keys(h),v=0;v<b.length;v++){var y=b[v];g+=y+"="+h[y]+"&"}pbjs.widespaceHandleCB=window[n]=u,o.loadScript(g)}}var t="https:"===document.location.protocol,r=(t?"https:":"http:")+"//engine.widespace.com/map/engine/hb/dynamic?",n="pbjs.widespaceHandleCB",u=function(e){function t(e,t){for(var r=0,n=t.length;n>r;r++)if(e.width===t[r][0]&&e.height===t[r][1])return!0;return!1}if(e)for(var r,n="widespace",a=0,o=e.length;o>a;a++){var c=e[a],u="",p=[];c.sizes={height:c.height,width:c.width};var l=i.getBidRequest(c.callbackUid);l&&(n=l.bidder,u=l.placementCode,p=l.sizes),c&&c.callbackUid&&"noad"!==c.status&&t(c.sizes,p)?(r=s.createBid(1),r.bidderCode=n,r.cpm=c.cpm,r.cur=c.currency,r.creative_id=c.adId,r.ad=c.code,r.width=c.width,r.height=c.height,d.addBidResponse(u,r)):(r=s.createBid(2),r.bidderCode=n,d.addBidResponse(u,r))}};return{callBids:e}}var i=r(2),a=r(2),o=r(14),d=r(12),s=r(11),c="1.0.2";e.exports=n}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(22),o=r(2),d=function(){function e(e){for(var r=e.bids||[],a=0,s=r.length;s>a;a++){var c=r[a],u={sizes:o.parseSizesInput(c.sizes).join("-"),zone:c.params&&c.params.zone,callback_uid:c.placementCode};if(u.zone)t(d,u);else{var p=n.createBid(2);p.bidderCode="admixer",i.addBidResponse(u.callback_uid,p)}}}function t(e,t){a.ajax(e,r,t,{method:"GET",withCredentials:!0})}function r(e){try{e=JSON.parse(e)}catch(t){e={result:{cpm:0}},o.logError(t)}var r,a=e.callback_uid,d=e.result;d.cpm>0?(r=n.createBid(1),r.bidderCode="admixer",r.cpm=d.cpm,r.ad=d.ad,r.width=d.width,r.height=d.height):(r=n.createBid(2),r.bidderCode="admixer"),i.addBidResponse(a,r)}var d="//inv-nets.admixer.net/prebid.aspx";return{callBids:e,responseCallback:r}};e.exports=d}),(function(e,t,r){"use strict";var n=r(3),i=r(11),a=r(12),o=r(14),d=r(22),s=r(2),c=function(){function e(e){window.atomx_prebid?t(e):o.loadScript(window.location.protocol+"//s.ato.mx/b.js",(function(){t(e)}),!0)}function t(e){for(var t=window.atomx_prebid(),o=e.bids||[],c=0,u=o.length;u>c;c++){var p=o[c];if(p.params&&p.params.id)d.ajax(t,r.bind(this,p),{id:p.params.id,size:s.parseSizesInput(p.sizes)[0],prebid:p.placementCode},{method:"GET"});else{var l=i.createBid(n.STATUS.NO_BID,p);l.bidderCode="atomx",a.addBidResponse(p.placementCode,l)}}}function r(e,t){var r;try{if(t=JSON.parse(t),t.cpm&&t.cpm>0)return r=i.createBid(n.STATUS.GOOD,e),r.bidderCode="atomx",r.cpm=1e3*t.cpm,t.adm?r.ad=t.adm:r.adUrl=t.url,r.width=t.width,r.height=t.height,a.addBidResponse(e.placementCode,r),void 0}catch(o){s.logError(o)}r=i.createBid(n.STATUS.NO_BID,e),r.bidderCode="atomx",a.addBidResponse(e.placementCode,r)}return{callBids:e,responseCallback:r}};e.exports=c}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d=function(){function e(e){p=e.bids||[];for(var n=0;n<p.length;n++){var i=p[n],a=!1;if(!i.sizes||!i.params.user||!i.params.ad_unit_id)return;for(var l=o.parseSizesInput(i.sizes),f=0;f<l.length;f++)if(s.indexOf(l[f])>-1){a=!0;break}if(a){var m="?price=true&jsonp=1&callback=pbjs.tapsense.callback_with_price_"+i.bidId+"&version="+d+"&";pbjs.tapsense["callback_with_price_"+i.bidId]=t(i.bidId);for(var g=Object.keys(i.params),h=0;h<g.length;h++)c.indexOf(g[h])<0||(m+=encodeURIComponent(g[h])+"="+encodeURIComponent(i.params[g[h]])+"&");r(u+m)}}}function t(e){return function(t,r){var a=void 0;if(t&&r){var d=o.getBidRequest(e);"ok"===t.status.value&&t.count_ad_units>0?(a=n.createBid(1,a),a.cpm=r,a.width=t.width,a.height=t.height,a.ad=t.ad_units[0].html):a=n.createBid(2,a),a.bidderCode=d.bidder,i.addBidResponse(d.placementCode,a)}else o.logMessage("No prebid response")}}function r(e){a.loadScript(e)}var d="0.0.1",s=["320x50"],c=["ufid","refer","ad_unit_id","device_id","lat","long","user","price_floor","test"],u="https://ads04.tapsense.com/ads/headerad",p=void 0;return pbjs.tapsense={},{callBids:e}};e.exports=d}),(function(e,t,r){"use strict";var n,i=r(2),a=r(3),o=r(2),d=r(14),s=r(12),c=r(11),u=r(15),p="https://in-appadvertising.com/api/bidRequest?",l="https://in-appadvertising.com/api/userSync.js";n=function f(){function e(e){n.int_t||(n.int_t=window.TR_INT_T||-1);for(var r=0;r<e.length;r++){var i=e[r],a=i.bidId;d.loadScript(t(i,a))}}function t(e,t){var r=o.getBidIdParameter("pubId",e.params),i=o.getBidIdParameter("sectionId",e.params),a=o.getBidIdParameter("re",e.params),d=window.location.href,s=o.parseSizesInput(e.sizes).join(","),c=p;return c=o.tryAppendQueryString(c,"callback","pbjs.handleTrionCB"),c=o.tryAppendQueryString(c,"bidId",t),c=o.tryAppendQueryString(c,"pubId",r),c=o.tryAppendQueryString(c,"sectionId",i),c=o.tryAppendQueryString(c,"re",a),d&&(c+="url="+d+"&"),s&&(c+="sizes="+s+"&"),n&&(c+="tag="+encodeURIComponent(JSON.stringify(n))+"&"),c.lastIndexOf("&")===c.length-1&&(c=c.substring(0,c.length-1)),c}var r=u.createNew("trion"),n=null;return r.callBids=function(t){var r=t.bids||[];r.length&&(window.TRION_INT?(n=window.TRION_INT,e(r)):d.loadScript(l,(function(){n=window.TRION_INT||{},n.pubId=o.getBidIdParameter("pubId",r[0].params),n.sectionId=o.getBidIdParameter("sectionId",r[0].params),n.to?setTimeout((function(){e(r)}),n.to):e(r)}),!0))},pbjs.handleTrionCB=function(e){var t,r={},n="";if(e&&e.bidId){var o,d=e.bidId,u=e&&e.result;if(r=i.getBidRequest(d),r&&(o=r.bidder,n=r.placementCode),u&&u.cpm&&u.placeBid&&u.ad){var p=parseInt(u.cpm,10)/100;t=c.createBid(a.STATUS.GOOD,r),t.bidderCode=o,t.cpm=p,t.ad=u.ad,t.width=u.width,t.height=u.height}}t||(t=c.createBid(a.STATUS.NO_BID,r)),s.addBidResponse(n,t)},{callBids:r.callBids,setBidderCode:r.setBidderCode,createNew:f.createNew,buildTrionUrl:t}},n.createNew=function(){return new n},e.exports=n}),(function(e,t,r){"use strict";function n(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}function i(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e){e.forEach((function(e){e.bids.forEach((function(e){var r=I[e.bidder]||[];Object.keys(r).forEach((function(n){e.params[n]&&o(e.params[n])!==r[n]&&(m.logMessage("Mismatched type for Prebid Server : "+e.bidder+" : "+n+". Required Type:"+r[n]),e.params[n]=t(r[n],e.params[n]),isNaN(e.params[n])&&delete e.params.key)}))}))}))}function t(e,t){return"string"===e?t&&t.toString():"number"===e?Number(t):void 0}function r(e){return e.sizes&&e.sizes.length}function n(e){var t=void 0;try{t=JSON.parse(e),"OK"===t.status?(t.bidder_status&&t.bidder_status.forEach((function(e){if(e.no_bid||e.no_cookie)if(e.ad_unit){var t=u["default"].createBid(h.STATUS.NO_BID,{bidId:e.bid_id});t.adUnitCode=e.ad_unit,t.bidderCode=e.bidder,l["default"].addBidResponse(t.adUnitCode,t)}else m.getBidderRequestAllAdUnits(e.bidder).bids.forEach((function(t){var r=u["default"].createBid(h.STATUS.NO_BID,t);r.adUnitCode=t.placementCode,r.bidderCode=e.bidder,l["default"].addBidResponse(t.placementCode,r)}));e.no_cookie&&b.queueSync({bidder:e.bidder,url:e.usersync.url,type:e.usersync.type})})),t.bids&&t.bids.forEach((function(e){var t=m.getBidRequest(e.bid_id),r=e.price,n=void 0;n=0!==r?h.STATUS.GOOD:h.STATUS.NO_BID;var i=u["default"].createBid(n,t);i.creative_id=e.creative_id,i.bidderCode=e.bidder,i.cpm=r,i.ad=e.adm,i.width=e.width,i.height=e.height,l["default"].addBidResponse(e.code,i)}))):"no_cookie"===t.status&&b.persist(w,y)}catch(r){m.logError(r)}(!t||t.status&&t.status.includes("Error"))&&m.logError("error parsing response: ",t.status)}var i=s["default"].createNew("prebidServer"),d=void 0;return i.setConfig=function(e){d=e},i.callBids=function(t){var i=!!pbjs.logging;e(t.ad_units);var a={account_id:d.accountId,tid:t.tid,max_bids:d.maxBids,timeout_millis:d.timeout,url:m.getTopWindowUrl(),prebid_version:"0.24.0",ad_units:t.ad_units.filter(r),is_debug:i},o=JSON.stringify(a);g.ajax(d.endpoint,n,o,{contentType:"text/plain",withCredentials:!0})},{setConfig:i.setConfig,createNew:a.createNew,callBids:i.callBids,setBidderCode:i.setBidderCode,type:v}}var o="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},d=r(15),s=i(d),c=r(11),u=i(c),p=r(12),l=i(p),f=r(2),m=n(f),g=r(22),h=r(3),b=r(86),v="s2s",y='Your browser may be blocking 3rd party cookies. By clicking on this page you allow Prebid Server and other advertising partners to place cookies to help us advertise. You can opt out of their cookies <a href="https://www.appnexus.com/en/company/platform-privacy-policy#choices" target="_blank">here</a>.',w="//ib.adnxs.com/seg?add=1&redir=",I={appnexus:{member:"string",invCode:"string",placementId:"number"},rubicon:{accountId:"number",siteId:"number",zoneId:"number"},indexExchange:{siteID:"number"},audienceNetwork:{placementId:"string"},pubmatic:{publisherId:"string",adSlot:"string"}};a.createNew=function(){return new a},e.exports=a}),(function(e,t,r){"use strict";function n(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}function i(){p.forEach((function(e){c.logMessage("Invoking cookie sync for bidder: "+e.bidder),"iframe"===e.type?c.insertCookieSyncIframe(e.url,!1):c.insertPixel(e.url)})),p.length=0}function a(e){for(var t=0;t<document.links.length;t++){var r=document.links[t];r.href=e+encodeURIComponent(r.href)}}function o(e){"true"!==document.cookie.replace(/(?:(?:^|.*;\s*)pbsCookiePersistFooter\s*\=\s*([^;]*).*$)|^.*$/,"$1")&&(document.body.appendChild(d(e)),document.cookie="pbsCookiePersistFooter=true; expires=Fri, 31 Dec 9999 23:59:59 GMT")}function d(e){var t=document.createElement("div");t.style.background="#D3D3D3",t.style.color="#555",t.style.boxShadow="0 -1px 2px rgba(0, 0, 0, 0.2)",t.style.fontFamily="sans-serif",t.style.lineHeight="1.5",t.style.position="fixed",t.style.bottom="0",t.style.left="0",t.style.right="0",t.style.width="100%",t.style.padding="1em 0",t.style.zindex="1000";var r=document.createElement("p");return r.style.margin="0 2em",r.innerHTML=e,t.appendChild(r),t}var s=r(2),c=n(s),u=t,p=[];u.queueSync=function(e){var t=e.bidder,r=e.url,n=e.type;p.push({bidder:t,url:r,type:n})},u.syncCookies=function(e){e?setTimeout(i,e):i()},u.persist=function(e,t){c.isSafariBrowser()&&(a(e),o(t))}}),(function(e,t,r){"use strict";var n=r(11),i=r(12),a=r(14),o=r(2),d="adsupply",s=function(){function e(e){return e&&e.siteId&&e.zoneId&&e.endpointUrl&&e.clientId?"number"!=typeof e.zoneId||e.zoneId<=0?!1:!0:!1}function t(e){var t=encodeURIComponent(window.document.referrer),r=encodeURIComponent(Math.floor(1e5*Math.random()+1)),n=encodeURIComponent((new Date).getTimezoneOffset());return"//"+e.params.endpointUrl+"/banner.engine?id="+e.params.siteId+"&z="+e.params.zoneId+"&rand="+r+"&ver=async&time="+n+"&referrerurl="+t+"&abr=false&hbt=1&cid="+encodeURIComponent(e.params.clientId)}function r(e){return function(){pbjs.adSupplyResponseHandler(e)}}function s(n){for(var i=n.bids||[],o=0;o<i.length;o++){var d=i[o];if(e(d.params)){var s=d.params.clientId,c="b"+d.params.zoneId;window[s]=window[s]||{},window.window[s][c]=window.window[s][c]||{},window.window[s][c].Media={};var u=t(d);a.loadScript(u,r(d.bidId))}}}return pbjs.adSupplyResponseHandler=function(e){if(e){var t=o.getBidRequest(e);if(t&&t.params){var r=t.params.clientId,a="b"+t.params.zoneId;if(window[r]&&window[r][a]){var s=window[r][a].Media;if(s)if(!s.Url||!s.Ecpm||"number"!=typeof s.Ecpm||s.Ecpm<=0){var c=n.createBid(2,t);c.bidderCode=d,i.addBidResponse(t.placementCode,c)}else{var u=n.createBid(1,t);u.bidderCode=d,u.cpm=s.Ecpm,u.ad='<iframe style="z-index: 5000001; margin: 0px; padding: 0px; border: none; width: '+s.Width+"px; height: "+s.Height+'px; " src="//'+t.params.endpointUrl+s.Url+'"></iframe>',u.width=s.Width,u.height=s.Height,i.addBidResponse(t.placementCode,u)}}}}},{callBids:s}};e.exports=s}),(function(e,t,r){"use strict";r(89),r(122),r(127),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}),(function(e,t,r){r(90),e.exports=r(93).Array.find}),(function(e,t,r){"use strict";var n=r(91),i=r(109)(5),a="find",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(121)(a)}),(function(e,t,r){var n=r(92),i=r(93),a=r(94),o=r(104),d=r(107),s="prototype",c=function(e,t,r){var u,p,l,f,m=e&c.F,g=e&c.G,h=e&c.S,b=e&c.P,v=e&c.B,y=g?n:h?n[t]||(n[t]={}):(n[t]||{})[s],w=g?i:i[t]||(i[t]={}),I=w[s]||(w[s]={});g&&(r=t);for(u in r)p=!m&&y&&void 0!==y[u],l=(p?y:r)[u],f=v&&p?d(l,n):b&&"function"==typeof l?d(Function.call,l):l,y&&o(y,u,l,e&c.U),w[u]!=l&&a(w,u,f),b&&I[u]!=l&&(I[u]=l)};n.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c}),(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),(function(e){var t=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)}),(function(e,t,r){var n=r(95),i=r(103);e.exports=r(99)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}}),(function(e,t,r){var n=r(96),i=r(98),a=r(102),o=Object.defineProperty;t.f=r(99)?Object.defineProperty:function(e,t,r){if(n(e),t=a(t,!0),n(r),i)try{return o(e,t,r)}catch(d){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}}),(function(e,t,r){var n=r(97);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}}),(function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}}),(function(e,t,r){e.exports=!r(99)&&!r(100)((function(){return 7!=Object.defineProperty(r(101)("div"),"a",{get:function(){return 7}}).a}))}),(function(e,t,r){e.exports=!r(100)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}),(function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}}),(function(e,t,r){var n=r(97),i=r(92).document,a=n(i)&&n(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}}),(function(e,t,r){var n=r(97);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}}),(function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),(function(e,t,r){var n=r(92),i=r(94),a=r(105),o=r(106)("src"),d="toString",s=Function[d],c=(""+s).split(d);r(93).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,d){var s="function"==typeof r;s&&(a(r,"name")||i(r,"name",t)),e[t]!==r&&(s&&(a(r,o)||i(r,o,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=r:d?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,d,(function(){return"function"==typeof this&&this[o]||s.call(this)}))}),(function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}}),(function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}}),(function(e,t,r){var n=r(108);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}}),(function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}}),(function(e,t,r){var n=r(107),i=r(110),a=r(112),o=r(114),d=r(116);e.exports=function(e,t){var r=1==e,s=2==e,c=3==e,u=4==e,p=6==e,l=5==e||p,f=t||d;return function(t,d,m){for(var g,h,b=a(t),v=i(b),y=n(d,m,3),w=o(v.length),I=0,_=r?f(t,w):s?f(t,0):void 0;w>I;I++)if((l||I in v)&&(g=v[I],h=y(g,I,b),e))if(r)_[I]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return I;case 2:_.push(g)}else if(u)return!1;return p?-1:c||u?u:_}}}),(function(e,t,r){var n=r(111);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}}),(function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}),(function(e,t,r){var n=r(113);e.exports=function(e){return Object(n(e))}}),(function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}}),(function(e,t,r){var n=r(115),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}}),(function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}}),(function(e,t,r){var n=r(117);e.exports=function(e,t){return new(n(e))(t)}}),(function(e,t,r){var n=r(97),i=r(118),a=r(119)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?Array:t}}),(function(e,t,r){var n=r(111);e.exports=Array.isArray||function(e){return"Array"==n(e)}}),(function(e,t,r){var n=r(120)("wks"),i=r(106),a=r(92).Symbol,o="function"==typeof a,d=e.exports=function(e){return n[e]||(n[e]=o&&a[e]||(o?a:i)("Symbol."+e))};d.store=n}),(function(e,t,r){var n=r(92),i="__core-js_shared__",a=n[i]||(n[i]={});e.exports=function(e){return a[e]||(a[e]={})}}),(function(e,t,r){var n=r(119)("unscopables"),i=Array.prototype;void 0==i[n]&&r(94)(i,n,{}),e.exports=function(e){i[n][e]=!0}}),(function(e,t,r){r(123),e.exports=r(93).Array.includes}),(function(e,t,r){"use strict";var n=r(91),i=r(124)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(121)("includes")}),(function(e,t,r){var n=r(125),i=r(114),a=r(126);e.exports=function(e){return function(t,r,o){var d,s=n(t),c=i(s.length),u=a(o,c);if(e&&r!=r){for(;c>u;)if(d=s[u++],d!=d)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}}}),(function(e,t,r){var n=r(110),i=r(113);e.exports=function(e){return n(i(e))}}),(function(e,t,r){var n=r(115),i=Math.max,a=Math.min;e.exports=function(e,t){return e=n(e),0>e?i(e+t,0):a(e,t)}}),(function(e,t,r){r(128),e.exports=r(93).Object.assign}),(function(e,t,r){var n=r(91);n(n.S+n.F,"Object",{assign:r(129)})}),(function(e,t,r){"use strict";var n=r(130),i=r(134),a=r(135),o=r(112),d=r(110),s=Object.assign;e.exports=!s||r(100)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=s({},e)[r]||Object.keys(s({},t)).join("")!=n}))?function(e){for(var t=o(e),r=arguments.length,s=1,c=i.f,u=a.f;r>s;)for(var p,l=d(arguments[s++]),f=c?n(l).concat(c(l)):n(l),m=f.length,g=0;m>g;)u.call(l,p=f[g++])&&(t[p]=l[p]);return t}:s}),(function(e,t,r){var n=r(131),i=r(133);e.exports=Object.keys||function(e){return n(e,i)}}),(function(e,t,r){var n=r(105),i=r(125),a=r(124)(!1),o=r(132)("IE_PROTO");e.exports=function(e,t){var r,d=i(e),s=0,c=[];for(r in d)r!=o&&n(d,r)&&c.push(r);for(;t.length>s;)n(d,r=t[s++])&&(~a(c,r)||c.push(r));return c}}),(function(e,t,r){var n=r(120)("keys"),i=r(106);e.exports=function(e){return n[e]||(n[e]=i(e))}}),(function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(e,t){t.f=Object.getOwnPropertySymbols}),(function(e,t){t.f={}.propertyIsEnumerable}),(function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(){addEventListener("message",a,!1)}function a(e){var t=e.message?"message":"data",r={};try{r=JSON.parse(e[t])}catch(n){return}if(r.adId){var i=pbjs._bidsReceived.find((function(e){return e.adId===r.adId}));"Prebid Request"===r.message&&(o(i,r.adServerDomain,e.source),pbjs._winningBids.push(i),c["default"].emit(f,i)),"Prebid Native"===r.message&&(p["default"](i),pbjs._winningBids.push(i),c["default"].emit(f,i))}}function o(e,t,r){var n=e.adId,i=e.ad,a=e.adUrl,o=e.width,s=e.height;n&&(d(e),r.postMessage(JSON.stringify({message:"Prebid Response",ad:i,adUrl:a,adId:n,width:o,height:s}),t))}function d(e){var t=e.adUnitCode,r=e.width,n=e.height,i=document.getElementById(window.googletag.pubads().getSlots().find((function(e){return e.getAdUnitPath()===t||e.getSlotElementId()===t})).getSlotElementId()).querySelector("iframe");i.width=""+r,i.height=""+n}Object.defineProperty(t,"__esModule",{value:!0}),t.listenMessagesFromCreative=i;var s=r(9),c=n(s),u=r(7),p=n(u),l=r(3),f=l.EVENTS.BID_WON}),(function(e,t,r){"use strict";var n=r(23),i=r(138),a=function(e){this.name=e.adserver,this.code=e.code,this.getWinningBidByCode=function(){return i.getWinningBids(this.code)[0]}};t.dfpAdserver=function(e,t){var r=new a(e);r.urlComponents=t;var i={env:"vp",gdfp_req:"1",impl:"s",unviewed_position_start:"1"},o=["output","iu","sz","url","correlator","description_url","hl"],d=function(e){return encodeURIComponent(n.formatQS(e))};return r.appendQueryParams=function(){var e=r.getWinningBidByCode();e&&(this.urlComponents.search.description_url=encodeURIComponent(e.descriptionUrl),this.urlComponents.search.cust_params=d(e.adserverTargeting),this.urlComponents.search.correlator=Date.now())},r.verifyAdserverTag=function(){for(var e in i)if(!this.urlComponents.search.hasOwnProperty(e)||this.urlComponents.search[e]!==i[e])return!1;for(var t in o)if(!this.urlComponents.search.hasOwnProperty(o[t]))return!1;return!0},r}}),(function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(){var e=m.getWinningBids(),t=a();return e=e.map((function(e){return n({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(r){return"undefined"==typeof e.sendStandardTargeting||e.sendStandardTargeting||-1===t.indexOf(r)})).map((function(t){return n({},t.substring(0,20),[e.adserverTargeting[t]])})))}))}function a(){return p.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(f.TARGETING_KEYS).filter(c.uniques)}function o(e){var t=a();return pbjs._bidsReceived.filter(c.adUnitsFilter.bind(this,e)).map((function(e){return e.alwaysUseBid?n({},e.adUnitCode,Object.keys(e.adserverTargeting).map((function(r){return t.indexOf(r)>-1?void 0:n({},r.substring(0,20),[e.adserverTargeting[r]])})).filter((function(e){return e}))):void 0})).filter((function(e){return e}))}function d(e){var t=f.TARGETING_KEYS.concat(u.NATIVE_TARGETING_KEYS);return pbjs._bidsReceived.filter(c.adUnitsFilter.bind(this,e)).map((function(e){return e.adserverTargeting?n({},e.adUnitCode,s(e,t.filter((function(t){return"undefined"!=typeof e.adserverTargeting[t]})))):void 0})).filter((function(e){return e}))}function s(e,t){return t.map((function(t){return n({},(t+"_"+e.bidderCode).substring(0,20),[e.adserverTargeting[t]])
}))}var c=r(2),u=r(7),p=r(12),l=r(2),f=r(3),m=t,g=[];m.resetPresetTargeting=function(e){if(c.isGptPubadsDefined()){var t=e&&e.length?[e]:pbjs._adUnitCodes;window.googletag.pubads().getSlots().forEach((function(e){g.forEach((function(r){t.find((function(t){(t.code===e.getAdUnitPath()||t.code===e.getSlotElementId())&&e.setTargeting(r,null)}))}))}))}},m.getAllTargeting=function(e){var t=e&&e.length?[e]:pbjs._adUnitCodes,r=i(t).concat(o(t)).concat(pbjs._sendAllBids?d(t):[]);return r.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===g.indexOf(Object.keys(e)[0])&&(g=Object.keys(e).concat(g))}))}))})),r},m.setTargeting=function(e){window.googletag.pubads().getSlots().forEach((function(t){e.filter((function(e){return Object.keys(e)[0]===t.getAdUnitPath()||Object.keys(e)[0]===t.getSlotElementId()})).forEach((function(e){return e[Object.keys(e)[0]].forEach((function(e){e[Object.keys(e)[0]].map((function(r){return l.logMessage("Attempting to set key value for slot: "+t.getSlotElementId()+" key: "+Object.keys(e)[0]+" value: "+r),r})).forEach((function(r){t.setTargeting(Object.keys(e)[0],r)}))}))}))}))},m.getWinningBids=function(e){var t=e?[e]:pbjs._adUnitCodes;return pbjs._bidsReceived.filter((function(e){return t.includes(e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(c.uniques).map((function(e){return pbjs._bidsReceived.filter((function(t){return t.adUnitCode===e?t:null})).reduce(c.getHighestCpm,{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0})}))},m.setTargetingForAst=function(){var e=pbjs.getAdserverTargeting();Object.keys(e).forEach((function(t){return Object.keys(e[t]).forEach((function(r){if(l.logMessage("Attempting to set targeting for targetId: "+t+" key: "+r+" value: "+e[t][r]),l.isStr(e[t][r])||l.isArray(e[t][r])){var n={},i="hb_adid",a=r.substring(0,i.length)===i?r.toUpperCase():r;n[a]=e[t][r],window.apntag.setKeywords(t,n)}}))}))},m.isApntagDefined=function(){return window.apntag&&l.isFn(window.apntag.setKeywords)?!0:void 0}})]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment