/* prebid.js v6.19.0 Updated : 2022-05-04*/ /*! For license information please see prebid-core.js.LICENSE.txt */ !function(){var e,n={4877:function(e,n,t){"use strict";t.d(n,{Pd:function(){return s},Th:function(){return u},_U:function(){return d}});var r=t(6996),i=t(9853),o=t(265),a=t(1879),c="outstream";function u(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,s=e.loaded,d=e.adUnitCode;this.url=t,this.config=o,this.handlers={},this.id=a,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){n.loaded=!0,n.process()},this.render=function(){var e=this,n=arguments,o=function(){e._render?e._render.apply(e,n):(0,i.logWarn)("No render function was provided, please use .setRender on the renderer")};f(d)?((0,i.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(d)),o()):(this.cmd.unshift(o),(0,r.B)(t,c,this.callback))}.bind(this)}function s(e){return!(!e||!e.url)}function d(e,n){e.render(n)}function f(e){var n=fsprebid.adUnits,t=(0,a.sE)(n,(function(n){return n.code===e}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),u=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||u&&!0!==c.backupOnly)}u.install=function(e){return new u({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},u.prototype.getConfig=function(){return this.config},u.prototype.setRender=function(e){this._render=e},u.prototype.setEventHandlers=function(e){this.handlers=e},u.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.logMessage)("Prebid Renderer event for id ".concat(n," type ").concat(t))},u.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.logError)("Error processing Renderer command: ",e)}}},7263:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(265),i={};function o(e,n,t){var r=function(e,n){var t=i[e]=i[e]||{bidders:{}};return n?t.bidders[n]=t.bidders[n]||{}:t}(e,t);return r[n]=(r[n]||0)+1,r[n]}var a={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,n){return o(e,"requestsCounter",n)},incrementBidderWinsCounter:function(e,n){return o(e,"winsCounter",n)},getRequestsCounter:function(e){return(0,r.Z)(i,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".requestsCounter"))||0},getBidderWinsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".winsCounter"))||0}}},2801:function(e,n,t){"use strict";function r(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}t.d(n,{Z:function(){return r}})},7602:function(e,n,t){"use strict";t.d(n,{VP:function(){return $},ZP:function(){return ie},rp:function(){return Q},nX:function(){return X}});var r=t(9853),i=t(265),o=t(1269),a=t(9017),c=t(1609),u=t(5755),s=t(8962),d=t(3494),f=t(1879),l=t(7263),g=t(2661);function p(e){return p="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(e)}function v(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}function y(e,n){return y=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=m(e);if(n){var i=m(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function E(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:(0,r.timestamp)();this.generatedTime=n,I(this,U).call(this,e)}},{key:"getConsentData",value:function(){return I(this,_)}}]),e}(),k=function(e){v(t,e);var n=b(t);function t(){return E(this,t),n.apply(this,arguments)}return A(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(D),N=function(e){v(t,e);var n=b(t);function t(){return E(this,t),n.apply(this,arguments)}return A(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,r.isStr)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(D);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?ne:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit"),Q=new N,X=new k,$={getCoppa:function(){return!!s.vc.getConfig("coppa")}},ee=(0,d.z3)("sync",(function(e,n){return(0,o.UB)(e,n)}),"setupAdUnitMediaTypes");function ne(e){(0,r.isArray)(e)||(e=[e]);var n=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return n.add(e)})),n}var te=(0,d.z3)("sync",(function(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.getS2SBidders,a=void 0===o?ne:o,c=a(n);return(0,r.getBidderCodes)(e).reduce((function(e,n){return e[c.has(n)?W:G].push(n),e}),(q(t={},G,[]),q(t,W,[]),t))}),"partitionBidders");function re(e,n,t){try{var i=K[e].getSpec();i&&i[n]&&"function"==typeof i[n]&&((0,r.logInfo)("Invoking ".concat(e,".").concat(n)),s.vc.runWithBidder(e,r.bind.call(i[n],i,t)))}catch(t){(0,r.logWarn)("Error calling ".concat(n," of ").concat(e))}}L.makeBidRequests=(0,d.z3)("sync",(function(e,n,t,i,o){z.emit(F.EVENTS.BEFORE_REQUEST_BIDS,e),(0,a.Fb)(e),e=ee(e,o);var c=te(e,H),u=c.client,d=c.server;s.vc.getConfig("bidderSequence")===s.FD&&(u=(0,r.shuffle)(u));var l=(0,g.n)(),p=[];H.forEach((function(i){if(i&&i.enabled){var o=function(e,n){var t=(0,r.deepClone)(e);return t.forEach((function(e){e.bids=J(e.bids,n).map((function(e){return e.bid_id=(0,r.getUniqueIdentifierStr)(),e}))})),t.filter((function(e){return 0!==e.bids.length}))}(e,i),a=(0,r.generateUUID)();d.forEach((function(e){var c=(0,r.getUniqueIdentifierStr)(),u={bidderCode:e,auctionId:t,bidderRequestId:c,uniquePbsTid:a,bids:Y({bidderCode:e,auctionId:t,bidderRequestId:c,adUnits:(0,r.deepClone)(o),src:F.S2S.SRC}),auctionStart:n,timeout:i.timeout,src:F.S2S.SRC,refererInfo:l};0!==u.bids.length&&p.push(u)})),o.forEach((function(e){var n=e.bids.filter((function(e){return(0,f.sE)(p,(function(n){return(0,f.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),p.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=o.filter((function(e){return e.bids.length>0})))}))}}));var v=function(e){var n=(0,r.deepClone)(e);return n.forEach((function(e){e.bids=J(e.bids,null)})),n.filter((function(e){return 0!==e.bids.length}))}(e);return u.forEach((function(e){var a=(0,r.getUniqueIdentifierStr)(),c={bidderCode:e,auctionId:t,bidderRequestId:a,bids:Y({bidderCode:e,auctionId:t,bidderRequestId:a,adUnits:(0,r.deepClone)(v),labels:o,src:"client"}),auctionStart:n,timeout:i,refererInfo:l},u=K[e];u||(0,r.logError)("Trying to make a request for bidder that does not exist: ".concat(e)),u&&c.bids&&0!==c.bids.length&&p.push(c)})),Q.getConsentData()&&p.forEach((function(e){e.gdprConsent=Q.getConsentData()})),X.getConsentData()&&p.forEach((function(e){e.uspConsent=X.getConsentData()})),p}),"makeBidRequests"),L.callBids=function(e,n,t,i,o,a,c){if(n.length){var d=(y=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===F.S2S.SRC)].push(n),e}),[[],[]]),b=2,function(e){if(Array.isArray(e))return e}(y)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(y,b)||function(e,n){if(e){if("string"==typeof e)return x(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,n):void 0}}(y,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],l=d[1],g=[];l.forEach((function(e){for(var n=-1,t=0;t0?m.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),y.forEach((function(e){z.emit(F.EVENTS.BID_REQUESTED,j(j({},e),{},{tid:v}))})),s.callBids(b,l,t,(function(){return h.forEach((function(e){return e()}))}),n)}}else(0,r.logError)("missing "+e.adapter);p++}})),f.forEach((function(e){e.start=(0,r.timestamp)();var n=K[e.bidderCode];s.vc.runWithBidder(e.bidderCode,(function(){(0,r.logMessage)("CALLING BIDDER"),z.emit(F.EVENTS.BID_REQUESTED,e)}));var d=(0,u.O)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),f=i.bind(e);try{s.vc.runWithBidder(e.bidderCode,r.bind.call(n.callBids,n,e,t,f,d,c,s.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,r.logError)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),f()}}))}else(0,r.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?");var y,b},L.videoAdapters=[],L.registerBidAdapter=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(K[n]=e,(0,f.q9)(o,"video")&&L.videoAdapters.push(n),(0,f.q9)(o,"native")&&a.Sg.push(n)):(0,r.logError)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,r.logError)("bidAdapter or bidderCode not specified")},L.aliasBidAdapter=function(e,n,t){if(void 0===K[n]){var i=K[e];if(void 0===i){var o=[];H.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,f.q9)(r,n)?V[n]=e:o.push(e)}})),o.forEach((function(e){(0,r.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var u,s=function(e){var n=[];return(0,f.q9)(L.videoAdapters,e)&&n.push("video"),(0,f.q9)(a.Sg,e)&&n.push("native"),n}(e);if(i.constructor.prototype!=Object.prototype)(u=new i.constructor).setBidderCode(n);else{var d=i.getSpec(),l=t&&t.gvlid,g=t&&t.skipPbsAliasing;u=(0,c.PZ)(M({},d,{code:n,gvlid:l,skipPbsAliasing:g})),V[n]=e}L.registerBidAdapter(u,n,{supportedMediaTypes:s})}catch(n){(0,r.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,r.logMessage)('alias name "'+n+'" has been already specified.')},L.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,i=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,Z[t]={adapter:n,gvlid:i}):(0,r.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n analytics adapter must implement an enableAnalytics() function')):(0,r.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},L.enableAnalytics=function(e){(0,r.isArray)(e)||(e=[e]),(0,r._each)(e,(function(e){var n=Z[e.provider];n&&n.adapter?n.adapter.enableAnalytics(e):(0,r.logError)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},L.getBidAdapter=function(e){return K[e]},L.getAnalyticsAdapter=function(e){return Z[e]},L.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,r.getUserConfiguredParams)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,r.groupBy)(n,"bidder"),Object.keys(n).forEach((function(e){re(e,"onTimeout",n[e])}))},L.callBidWonBidder=function(e,n,t){n.params=(0,r.getUserConfiguredParams)(t,n.adUnitCode,n.bidder),l.f.incrementBidderWinsCounter(n.adUnitCode,n.bidder),re(e,"onBidWon",n)},L.callSetTargetingBidder=function(e,n){re(e,"onSetTargeting",n)},L.callBidViewableBidder=function(e,n){re(e,"onBidViewable",n)},L.callBidderError=function(e,n,t){re(e,"onBidderError",{error:n,bidderRequest:t})};var ie=L},1609:function(e,n,t){"use strict";t.d(n,{JY:function(){return D},PZ:function(){return O},Q1:function(){return U},dX:function(){return w}});var r=t(2801),i=t(7602),o=t(8962),a=t(1477),c=t(7112),u=t(9017),s=t(1929),d=t(5644),f=t(2319),l=t(1879),g=t(5755),p=t(9853),v=t(265),y=t(8265),b=t(3494),h=t(5849),m=t(4766);function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?m.K.index:r;if((n.width||0===parseInt(n.width,10))&&(n.height||0===parseInt(n.height,10)))return n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),!0;var o=i.getBidRequest(n),a=i.getMediaTypes(n),c=o&&o.sizes||a&&a.banner&&a.banner.sizes,u=(0,p.parseSizesInput)(c);if(1===u.length){var s=u[0].split("x"),d=E(s,2),f=d[0],l=d[1];return n.width=parseInt(f,10),n.height=parseInt(l,10),!0}return!1}function D(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?m.K.index:r;function o(){var e=Object.keys(n);return C.every((function(t){return(0,l.q9)(e,t)&&!(0,l.q9)([void 0,null],n[t])}))}function a(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}return e?n?o()?"native"!==n.mediaType||(0,u.r4)(n,{index:i})?"video"!==n.mediaType||(0,s.Dn)(n,{index:i})?!("banner"===n.mediaType&&!R(e,n,{index:i})&&((0,p.logError)(a("Banner bids require a width and height")),1)):((0,p.logError)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,p.logError)(a("Native bid missing some required properties.")),!1):((0,p.logError)(a("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):((0,p.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):((0,p.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}(0,b.v5)("checkAdUnitSetup").before((function(e,n){if(!o.vc.getConfig("adpod.brandCategoryExclusion"))return e.call(this,n);n.filter((function(e){return(0,v.Z)(e,"mediaTypes.video.context")===y.Oh})).map((function(e){return e.bids.map((function(e){return e.bidder}))})).reduce(p.flatten,[]).filter(p.uniques).forEach((function(e){var n=i.ZP.getBidAdapter(e);if(n.getSpec().getMappingFileInfo){var t=n.getSpec().getMappingFileInfo(),r=t.refreshInDays?t.refreshInDays:1,o=t.localStorageKey?t.localStorageKey:n.getSpec().code,a=I.getDataFromLocalStorage(o);try{(!(a=a?JSON.parse(a):void 0)||(0,p.timestamp)()>a.lastUpdated+24*r*60*60*1e3)&&(0,g.h)(t.url,{success:function(n){try{n=JSON.parse(n);var t={lastUpdated:(0,p.timestamp)(),mapping:n.mapping};I.setDataInLocalStorage(o,JSON.stringify(t))}catch(n){(0,p.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){(0,p.logError)("Failed to load ".concat(e," bidder translation file"))}})}catch(n){(0,p.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,n)}))},6996:function(e,n,t){"use strict";t.d(n,{B:function(){return c}});var r=t(1879),i=t(9853),o={},a=["adloox","criteo","outstream","adagio","browsi","brandmetrics","justtag"];function c(e,n,t){if(n&&e){if((0,r.q9)(a,n))return o[e]?(t&&"function"==typeof t&&(o[e].loaded?t():o[e].callbacks.push(t)),o[e].tag):(o[e]={loaded:!1,tag:null,callbacks:[]},t&&"function"==typeof t&&o[e].callbacks.push(t),(0,i.logWarn)("module ".concat(n," is loading external JavaScript")),function(n,t){var r=document.createElement("script");return r.type="text/javascript",r.async=!0,o[e].tag=r,r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t())}:r.onload=function(){t()},r.src=n,(0,i.insertElement)(r),r}(e,(function(){o[e].loaded=!0;try{for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,c=n.done;return function(n,u,s){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var f,l=d.method||(s?"POST":"GET"),g=document.createElement("a");g.href=n;var p="object"===a(u)&&null!==u?u:{success:function(){(0,i.logMessage)("xhr success")},error:function(e){(0,i.logError)("xhr error",null,e)}};if("function"==typeof u&&(p.success=u),(f=new window.XMLHttpRequest).onreadystatechange=function(){if(4===f.readyState){"function"==typeof c&&c(g.origin);var e=f.status;e>=200&&e<300||304===e?p.success(f.responseText,f):p.error(f.statusText,f)}},r.vc.getConfig("disableAjaxTimeout")||(f.ontimeout=function(){(0,i.logError)(" xhr timeout after ",f.timeout,"ms")}),"GET"===l&&s){var v=(0,i.parseUrl)(n,d);o(v.search,s),n=(0,i.buildUrl)(v)}f.open(l,n,!0),r.vc.getConfig("disableAjaxTimeout")||(f.timeout=e),d.withCredentials&&(f.withCredentials=!0),(0,i._each)(d.customHeaders,(function(e,n){f.setRequestHeader(n,e)})),d.preflight&&f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.setRequestHeader("Content-Type",d.contentType||"text/plain"),"function"==typeof t&&t(g.origin),"POST"===l&&s?f.send(s):f.send()}catch(e){(0,i.logError)("xhr construction",e),"object"===a(u)&&null!==u&&u.error(e)}}}},9964:function(e,n,t){"use strict";t.d(n,{mv:function(){return C},Yt:function(){return U},e0:function(){return R},LX:function(){return G},vO:function(){return B}});var r=t(9853),i=t(265),o=t(5553),a=t(9017),c=t(5755),u=t(8962),s=t(4766);function d(e,n){var t=n?""):"";return'\n \n \n prebid.org wrapper\n \n ").concat(t,"\n \n \n \n ")}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?s.K.index:t,i=e.vastXml?e.vastXml:d(e.vastUrl,e.vastImpUrl),o=r.getAuction(e),a={type:"xml",value:i,ttlseconds:Number(e.ttl)};return u.vc.getConfig("cache.vasttrack")&&(a.bidder=e.bidder,a.bidid=e.requestId,a.aid=e.auctionId),null!=o&&(a.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(a.key=e.customCacheKey),a}var l=t(4877),g=t(7112),p=t(3494),v=t(1879),y=t(1929),b=t(8265),h=t(9624);function m(e){return m="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},m(e)}function E(){return E=Object.assign||function(e){for(var n=1;n=0&&(e.cpm=t)}(e)}));var w={},O={},_=[];function B(e){var n,t,i,o,a=e.adUnits,c=e.adUnitCodes,d=e.callback,f=e.cbTimeout,l=e.labels,g=e.auctionId,p=a,y=l,b=c,h=[],m=[],E=[],B=g||(0,r.generateUUID)(),k=d,j=f,q=[],M=new Set;function G(){return{auctionId:B,timestamp:n,auctionEnd:t,auctionStatus:i,adUnits:p,adUnitCodes:b,labels:y,bidderRequests:h,noBids:E,bidsReceived:m,winningBids:q,timeout:j}}function W(e,n){if(n&&clearTimeout(o),void 0===t){var c=[];e&&((0,r.logMessage)("Auction ".concat(B," timedOut")),s=M,(c=h.map((function(e){return(e.bids||[]).filter((function(e){return!s.has(e.bidder)}))})).reduce(r.flatten,[]).map((function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}}))).length&&T.emit(I.EVENTS.BID_TIMEOUT,c)),i=C,t=Date.now(),T.emit(I.EVENTS.AUCTION_END,G()),D(p,(function(){try{if(null!=k){var n=b,t=m.filter(r.bind.call(r.adUnitsFilter,this,n)).reduce(F,{});k.apply(fsprebid,[t,e,B]),k=null}}catch(e){(0,r.logError)("Error executing bidsBackHandler",null,e)}finally{c.length&&A.callTimedOutBidders(a,c,j);var i=u.vc.getConfig("userSync")||{};i.enableOverride||S(i.syncDelay)}}))}var s}function z(){u.vc.resetBidder(),(0,r.logInfo)("Bids Received for Auction with id: ".concat(B),m),i=C,W(!1,!0)}function L(e){M.add(e)}function K(e){var n=this;e.forEach((function(e){var n;n=e,h=h.concat(n)}));var t={},a={bidRequests:e,run:function(){var a,f;a=W.bind(null,!0),f=setTimeout(a,j),o=f,i="inProgress",T.emit(I.EVENTS.AUCTION_INIT,G());var l=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,i=void 0===t?s.K.index:t,o=0,a=!1,c=new Set,d={},f={};function l(e,n){null==f[e]&&(f[e]=Promise.resolve()),f[e]=f[e].then((function(){return Promise.resolve(n).catch((function(){}))}))}function g(e,t){var r=e.timeout;(null==r||r>n.getTimeout())&&(r=n.getTimeout());var i=n.getAuctionStart()+r-Date.now(),o=f[e.bidderRequestId],a=f[""];(null!=o||null!=a)&&i>0?Promise.race([new Promise((function(e){return setTimeout(e,i)})),Promise.resolve(a).then((function(){return o}))]).then(t):t()}function p(){o--,a&&0===o&&e()}function y(e,t){d[t.requestId]=!0,o++;var r=x({adUnitCode:e,bid:t,auctionId:n.getAuctionId()});"video"===r.mediaType?P(n,r,p):(N(n,r),p())}function b(){var t=n.getBidRequests(),i=u.vc.getConfig("auctionOptions");if(c.add(this),i&&!(0,r.isEmpty)(i)){var s=i.secondaryBidders;s&&!t.every((function(e){return(0,v.q9)(s,e.bidderCode)}))&&(t=t.filter((function(e){return!(0,v.q9)(s,e.bidderCode)})))}a=t.every((function(e){return c.has(e)})),this.bids.forEach((function(e){d[e.bidId]||(n.addNoBid(e),T.emit(I.EVENTS.NO_BID,e))})),a&&0===o&&e()}return{addBidResponse:function(e,n){var t=i.getBidderRequest(n);l(t&&t.bidderRequestId||"",U.call({dispatch:y},e,n))},adapterDone:function(){g(this,b.bind(this))}}}(z,n);A.callBids(p,e,l.addBidResponse,l.adapterDone,{request:function(e,n){d(w,n),d(t,e),O[e]||(O[e]={SRA:!0,origin:n}),t[e]>1&&(O[e].SRA=!1)},done:function(e){w[e]--,_[0]&&c(_[0])&&_.shift()}},j,L)}};function c(e){var n=!0,t=u.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===I.S2S.SRC?"s2s":e.bidderCode;return O[i]&&(!1===O[i].SRA&&(r=Math.min(e.bids.length,t)),w[O[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function d(e,n){void 0===e[n]?e[n]=1:e[n]++}c(a)||((0,r.logWarn)("queueing auction due to limited endpoint capacity"),_.push(a))}return{addBidReceived:function(e){m=m.concat(e)},addNoBid:function(e){E=E.concat(e)},executeCallback:W,callBids:function(){i="started",n=Date.now();var e=A.makeBidRequests(p,n,B,j,y);(0,r.logInfo)("Bids Requested for Auction with id: ".concat(B),e),e.length<1?((0,r.logWarn)("No valid bid requests returned for auction"),z()):R.call({dispatch:K,context:this},e)},addWinningBid:function(e){q=q.concat(e),A.callBidWonBidder(e.bidder,e,a)},setBidTargeting:function(e){A.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return q},getAuctionStart:function(){return n},getTimeout:function(){return j},getAuctionId:function(){return B},getAuctionStatus:function(){return i},getAdUnits:function(){return p},getAdUnitCodes:function(){return b},getBidRequests:function(){return h},getBidsReceived:function(){return m},getNoBids:function(){return E}}}var U=(0,p.z3)("sync",(function(e,n){this.dispatch.call(null,e,n)}),"addBidResponse"),R=(0,p.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),D=(0,p.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function k(e,n){n.timeToRespond>e.getTimeout()+u.vc.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function N(e,n){var t,r,i;t=n,i=!0===h.S.get(t.bidderCode,"allowZeroCpmBids")?t.cpm>=0:t.cpm>0,t.bidderCode&&(i||t.dealId)&&(r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?s.K.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},c=G(n.mediaType,e);return W(o,c,n,i),e&&h.S.getOwn(e,I.JSON_MAPPING.ADSERVER_TARGETING)&&(W(o,h.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=h.S.get(e,"sendStandardTargeting")),n.native&&(o=E({},o,(0,a.Ur)(n))),o}(t.bidderCode,t)),t.adserverTargeting=E(t.adserverTargeting||{},r),T.emit(I.EVENTS.BID_RESPONSE,n),e.addBidReceived(n),k(e,n)}function P(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.index,c=void 0===a?s.K.index:a,d=!0,f=(0,i.Z)(c.getMediaTypes({requestId:n.originalRequestId||n.requestId,transactionId:n.transactionId}),"video"),l=f&&(0,i.Z)(f,"context");u.vc.getConfig("cache.url")&&l!==y.gZ&&(!n.videoCacheKey||u.vc.getConfig("cache.ignoreBidderCacheKey")?(d=!1,j(e,n,t,f)):n.vastUrl||((0,r.logError)("videoCacheKey specified but not required vastUrl for video bid"),d=!1)),d&&(N(e,n),t())}var j=(0,p.z3)("async",(function(e,n,t,i){var o,a;o=function(i,o){var a;i?((0,r.logWarn)("Failed to save to the video cache: ".concat(i,". Video bid must be discarded.")),k(e,n)):""===o[0].uuid?((0,r.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),k(e,n)):(n.videoCacheKey=o[0].uuid,n.vastUrl||(n.vastUrl=(a=n.videoCacheKey,"".concat(u.vc.getConfig("cache.url"),"?uuid=").concat(a))),N(e,n),t())},a={puts:[n].map(f)},(0,c.h)(u.vc.getConfig("cache.url"),function(e){return{success:function(n){var t;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: ".concat(n,": ").concat(JSON.stringify(t))),[])}}}(o),JSON.stringify(a),{contentType:"text/plain",withCredentials:!0})}),"callPrebidCache");function x(e){var n=e.adUnitCode,t=e.bid,i=e.auctionId,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.index,d=void 0===c?s.K.index:c,f=d.getBidderRequest(t),g=f&&f.start||t.requestTimestamp,p=E({},t,{auctionId:i,responseTimestamp:(0,r.timestamp)(),requestTimestamp:g,cpm:parseFloat(t.cpm)||0,bidder:t.bidderCode,adUnitCode:n});p.timeToRespond=p.responseTimestamp-p.requestTimestamp,T.emit(I.EVENTS.BID_ADJUSTMENT,p);var v=d.getAdUnit(p).renderer,y=p.mediaType,b=d.getMediaTypes(p),h=b&&b[y],S=h&&h.renderer,A=null;S&&S.url&&S.render&&(!0!==S.backupOnly||!t.renderer)?A=S:v&&v.url&&v.render&&(!0!==v.backupOnly||!t.renderer)&&(A=v),A&&(p.renderer=l.Th.install({url:A.url}),p.renderer.setRender(A.render));var C=q(t.mediaType,b,u.vc.getConfig("mediaTypePriceGranularity")),w=(0,o.D)(p.cpm,"object"===m(C)?C:u.vc.getConfig("customPriceBucket"),u.vc.getConfig("currency.granularityMultiplier"));return p.pbLg=w.low,p.pbMg=w.med,p.pbHg=w.high,p.pbAg=w.auto,p.pbDg=w.dense,p.pbCg=w.custom,p}function q(e,n,t){if(e&&t){if(e===b.pX){var r=(0,i.Z)(n,"".concat(b.pX,".context"),"instream");if(t["".concat(b.pX,"-").concat(r)])return t["".concat(b.pX,"-").concat(r)]}return t[e]}}function M(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,r.getValue)(e,n)}}}function G(e,n){var t=I.TARGETING_KEYS,o=E({},h.S.settingsFor(null));if(o[I.JSON_MAPPING.ADSERVER_TARGETING]||(o[I.JSON_MAPPING.ADSERVER_TARGETING]=function(){var e,n=I.TARGETING_KEYS;return[M(n.BIDDER,"bidderCode"),M(n.AD_ID,"adId"),M(n.PRICE_BUCKET,(function(n){var t=e||function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===n?s.K.index:n,r=q(e.mediaType,t.getMediaTypes(e),u.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":u.vc.getConfig("priceGranularity")}(n);return t===I.GRANULARITY_OPTIONS.AUTO?n.pbAg:t===I.GRANULARITY_OPTIONS.DENSE?n.pbDg:t===I.GRANULARITY_OPTIONS.LOW?n.pbLg:t===I.GRANULARITY_OPTIONS.MEDIUM?n.pbMg:t===I.GRANULARITY_OPTIONS.HIGH?n.pbHg:t===I.GRANULARITY_OPTIONS.CUSTOM?n.pbCg:void 0})),M(n.SIZE,"size"),M(n.DEAL,"dealId"),M(n.SOURCE,"source"),M(n.FORMAT,"mediaType"),M(n.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?e.meta.advertiserDomains[0]:""}))]}()),"video"===e){var a=o[I.JSON_MAPPING.ADSERVER_TARGETING].slice();if(o[I.JSON_MAPPING.ADSERVER_TARGETING]=a,[t.UUID,t.CACHE_ID].forEach((function(e){void 0===(0,v.sE)(a,(function(n){return n.key===e}))&&a.push(M(e,"videoCacheKey"))})),u.vc.getConfig("cache.url")&&(!n||!1!==h.S.get(n,"sendStandardTargeting"))){var c=(0,r.parseUrl)(u.vc.getConfig("cache.url"));void 0===(0,v.sE)(a,(function(e){return e.key===t.CACHE_HOST}))&&a.push(M(t.CACHE_HOST,(function(e){return(0,i.Z)(e,"adserverTargeting.".concat(t.CACHE_HOST))?e.adserverTargeting[t.CACHE_HOST]:c.hostname})))}}return o}function W(e,n,t,i){var o=n[I.JSON_MAPPING.ADSERVER_TARGETING];return t.size=t.getSize(),(0,r._each)(o,(function(o){var a=o.key,c=o.val;if(e[a]&&(0,r.logWarn)("The key: "+a+" is being overwritten"),(0,r.isFn)(c))try{c=c(t,i)}catch(e){(0,r.logError)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==I.TARGETING_KEYS.DEAL||!(0,r.isEmptyStr)(c)&&null!=c?e[a]=c:(0,r.logInfo)("suppressing empty key '"+a+"' from adserver targeting")})),e}function F(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}},4766:function(e,n,t){"use strict";t.d(n,{K:function(){return s}});var r=t(9853),i=t(9964),o=t(1879);function a(){return a=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,c=n.bidId,u=n.transactionId,s=n.auctionId,d=i,f=e||0;function l(){switch(f){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}this.bidderCode=a,this.width=0,this.height=0,this.statusMessage=l(),this.adId=(0,r.getUniqueIdentifierStr)(),this.requestId=c,this.transactionId=u,this.auctionId=s,this.mediaType="banner",this.source=d,this.getStatusCode=function(){return f},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,auctionId:this.auctionId}}}function o(e,n){return new i(e,n)}},8962:function(e,n,t){"use strict";t.d(n,{FD:function(){return v},vc:function(){return m}});var r=t(5553),i=t(1879),o=t(9853),a=t(265),c=["fpd"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e){return 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},d(e)}function f(){return f=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(e.config).forEach((function(i){var a="fpd"===i?"ortb2":i,c="fpd"===i?S(e.config[i]):e.config[i];if((0,o.isPlainObject)(c)){var u=n?o.mergeDeep:Object.assign;t[r][a]=u({},t[r][a]||{},c)}else t[r][a]=c}))}))}catch(e){(0,o.logError)(e)}function r(e){if(!(0,o.isPlainObject)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,o.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function O(e,n){v=e;try{return n()}finally{_()}}function _(){v=null}return m(),{getCurrentBidder:function(){return v},resetBidder:_,getConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?(0,a.Z)(E(),e):E()}return I.apply(void 0,arguments)},readConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0],n=(0,o.deepClone)(E());return e?(0,a.Z)(n,e):n}return I.apply(void 0,arguments)},setConfig:T,mergeConfig:function(e){if((0,o.isPlainObject)(e)){var n=Object.keys(e).reduce((function(n,t){var r=E()[t]||{};return n[t]=(0,o.mergeDeep)(r,e[t]),n}),{});return T(function(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,c)))):n.push(e)})),n},getLegacyFpd:function(e){if("object"===d(e)){var n={};return Object.keys(e).forEach((function(t){var r="site"===t?"context":t;n[r]="context"===r||"user"===r?Object.keys(e[t]).filter((function(e){return"data"!==e})).reduce((function(n,r){return"ext"===r?(0,o.mergeDeep)(n,e[t][r]):(0,o.mergeDeep)(n,s({},r,e[t][r])),n}),{}):e[t]})),n}},getLegacyImpFpd:function(e){if("object"===d(e)){var n={};return(0,a.Z)(e,"ext.data")&&Object.keys(e.ext.data).forEach((function(t){"pbadslot"===t?(0,o.mergeDeep)(n,{context:{pbAdSlot:e.ext.data[t]}}):"adserver"===t?(0,o.mergeDeep)(n,{context:{adServer:e.ext.data[t]}}):(0,o.mergeDeep)(n,{context:{data:s({},t,e.ext.data[t])}})})),n}}}}()},5553:function(e,n,t){"use strict";t.d(n,{D:function(){return d},t:function(){return l}});var r=t(1879),i=t(9853),o={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},u={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},s={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function d(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":f(e,o,t),med:""===r?"":f(e,a,t),high:""===r?"":f(e,c,t),auto:""===r?"":f(e,s,t),dense:""===r?"":f(e,u,t),custom:""===r?"":f(e,n,t)}}function f(e,n,t){var i="";if(!l(n))return i;var o=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),a=0,c=(0,r.sE)(n.buckets,(function(n){if(e>o.max*t){var r=n.precision;void 0===r&&(r=2),i=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=a*t)return n.min=a,n;a=n.max}}));return c&&(i=function(e,n,t){var r=void 0!==n.precision?n.precision:2,i=n.increment*t,o=n.min*t,a=Math.pow(10,r+2),c=(e*a-o*a)/(i*a),u=Math.floor(c)*i+o;return(u=Number(u.toFixed(10))).toFixed(r)}(e,c,t)),i}function l(e){if((0,i.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(n=!1)})),n}},2319:function(e,n,t){"use strict";function r(){return r=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&void 0!==arguments[2]?arguments[2]:{},r=t.postInstallAllowed,i=void 0!==r&&r;c("async",(function(t){t.forEach((function(e){return n.apply(void 0,o(e))})),i&&(s[e]=n)}),e)([])}function f(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?a.K.index:t;if(!(0,r.Z)(e,"native.clickUrl"))return!1;var c=i.getAdUnit(e).nativeParams;if(!c)return!0;var u=Object.keys(c).filter((function(e){return c[e].required})),s=Object.keys(e.native).filter((function(n){return e.native[n]}));return u.every((function(e){return(0,o.q9)(s,e)}))}function b(e,n){var t;return"click"===e.action?t=n.native&&n.native.clickTrackers:(t=n.native&&n.native.impressionTrackers,n.native&&n.native.javascriptTrackers&&(0,i.insertHtmlIntoIframe)(n.native.javascriptTrackers)),(t||[]).forEach(i.triggerPixel),e.action}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?a.K.index:t,o={},c=i.getAdUnit(e);(0,r.Z)(c,"nativeParams.rendererUrl")?e.native.rendererUrl=S(c.nativeParams.rendererUrl):(0,r.Z)(c,"nativeParams.adTemplate")&&(e.native.adTemplate=S(c.nativeParams.adTemplate));var u=!1!==(0,r.Z)(c,"nativeParams.sendTargetingKeys"),d=A(c),f=s(s({},e.native),e.native.ext);return delete f.ext,Object.keys(f).forEach((function(n){var t=d[n],i=S(e.native[n])||S((0,r.Z)(e,"native.ext.".concat(n)));if("adTemplate"!==n&&t&&i){var a=(0,r.Z)(c,"nativeParams.".concat(n,".sendId"));"boolean"!=typeof a&&(a=(0,r.Z)(c,"nativeParams.ext.".concat(n,".sendId"))),a&&(i="".concat(t,":").concat(e.adId));var s=(0,r.Z)(c,"nativeParams.".concat(n,".sendTargetingKeys"));"boolean"!=typeof s&&(s=(0,r.Z)(c,"nativeParams.ext.".concat(n,".sendTargetingKeys"))),("boolean"==typeof s?s:u)&&(o[t]=i)}})),o}function m(e,n){var t={message:"assetResponse",adId:e.adId,assets:[]};return n.native.hasOwnProperty("adTemplate")&&(t.adTemplate=S(n.native.adTemplate)),n.native.hasOwnProperty("rendererUrl")&&(t.rendererUrl=S(n.native.rendererUrl)),e.assets.forEach((function(e){var r=(0,i.getKeyByValue)(f.NATIVE_KEYS,e),o=S(n.native[r]);t.assets.push({key:r,value:o})})),t}function E(e,n){var t={message:"assetResponse",adId:e.adId,assets:[]};return Object.keys(n.native).forEach((function(e,r){if("adTemplate"===e&&n.native[e])t.adTemplate=S(n.native[e]);else if("rendererUrl"===e&&n.native[e])t.rendererUrl=S(n.native[e]);else if("ext"===e)Object.keys(n.native[e]).forEach((function(r){if(n.native[e][r]){var i=S(n.native[e][r]);t.assets.push({key:r,value:i})}}));else if(n.native[e]&&f.NATIVE_KEYS.hasOwnProperty(e)){var i=S(n.native[e]);t.assets.push({key:e,value:i})}})),t}function S(e){return"object"===c(e)&&e.url?e.url:e}function A(e){var n={};return(0,r.Z)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){n[e]="hb_native_".concat(e)})),s(s({},f.NATIVE_KEYS),n)}},1879:function(e,n,t){"use strict";function r(e,n,t){return e&&e.includes(n,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,n,t){return e&&e.find(n,t)}t.d(n,{Oc:function(){return i},q9:function(){return r},sE:function(){return o}})},2528:function(e,n,t){"use strict";function r(){return window.fsprebid}t.d(n,{R:function(){return r}}),window.fsprebid=window.fsprebid||{},window.fsprebid.cmd=window.fsprebid.cmd||[],window.fsprebid.que=window.fsprebid.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("fsprebid")},2661:function(e,n,t){"use strict";t.d(n,{n:function(){return o}});var r=t(8962),i=t(9853),o=function(e){function n(e){var n=r.vc.getConfig("pageUrl");if(n)return n;try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}return function(){var t,o,a,c=[],u=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),s=r.vc.getConfig("maxNestedIframes"),d=!1,f=0,l=!1,g=!1;do{var p=t,v=g,y=void 0,b=!1,h=null;g=!1,t=t?t.parent:e;try{y=t.location.href||null}catch(e){b=!0}if(b)if(v){var m=p.context;try{o=h=m.sourceUrl,l=!0,t===e.top&&(d=!0),m.canonicalUrl&&(a=m.canonicalUrl)}catch(e){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var E=p.document.referrer;E&&(h=E,t===e.top&&(d=!0))}catch(e){}!h&&u&&u[f-1]&&(h=u[f-1]),h&&!l&&(o=h)}else{if(y&&(o=h=y,l=!1,t===e.top)){d=!0;var S=n(t.document);S&&(a=S)}t.context&&t.context.sourceUrl&&(g=!0)}c.push(h),f++}while(t!==e.top&&f1&&void 0!==arguments[1]?arguments[1]:u,t=l(n);return!t.shouldFilter||!!t.sizesSupported[e]}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.labels,t=void 0===n?[]:n,r=e.labelAll,c=void 0!==r&&r,s=e.activeLabels,d=void 0===s?[]:s,f=arguments.length>1?arguments[1]:void 0,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,v=l(p);f=(0,i.isPlainObject)(f)?(0,i.deepClone)(f):g?{banner:{sizes:g}}:{};var y=(0,o.Z)(f,"banner.sizes");v.shouldFilter&&y&&(f.banner.sizes=y.filter((function(e){return v.sizesSupported[e]})));var b=Object.keys(f),h={active:b.every((function(e){return"banner"!==e}))||b.some((function(e){return"banner"===e}))&&(0,o.Z)(f,"banner.sizes.length")>0&&(0===t.length||!c&&(t.some((function(e){return v.labels[e]}))||t.some((function(e){return(0,a.q9)(d,e)})))||c&&t.reduce((function(e,n){return e?v.labels[n]||(0,a.q9)(d,n):e}),!0)),mediaTypes:f};return y&&y.length!==f.banner.sizes.length&&(h.filterResults={before:y,after:f.banner.sizes}),h}function l(e){return e.reduce((function(e,n){if("object"===c(n)&&"string"==typeof n.mediaQuery&&n.mediaQuery.length>0){var t=!1;try{t=(0,i.getWindowTop)().matchMedia(n.mediaQuery).matches}catch(e){(0,i.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),t=matchMedia(n.mediaQuery).matches}t&&(Array.isArray(n.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach((function(t){return(n[t]||[]).forEach((function(n){return e[t][n]=!0}))})))}else(0,i.logWarn)('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}function g(e,n){return e.reduce((function(e,t){var r=f(s(t,n),t.mediaTypes,t.sizes),o=r.active,a=r.mediaTypes,c=r.filterResults;return o?(c&&(0,i.logInfo)('Size mapping filtered adUnit "'.concat(t.code,'" banner sizes from '),c.before,"to ",c.after),t.mediaTypes=a,t.bids=t.bids.reduce((function(e,r){var o=f(s(r,n),t.mediaTypes),a=o.active,c=o.mediaTypes,u=o.filterResults;return a?(u&&((0,i.logInfo)('Size mapping filtered adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'" banner sizes from '),u.before,"to ",u.after),r.mediaTypes=c),e.push(r)):(0,i.logInfo)('Size mapping deactivated adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'"')),e}),[]),e.push(t)):(0,i.logInfo)('Size mapping disabled adUnit "'.concat(t.code,'"')),e}),[])}r.vc.getConfig("sizeConfig",(function(e){return function(e){u=e}(e.sizeConfig)}))},5849:function(e,n,t){"use strict";t.d(n,{Ld:function(){return u},S6:function(){return d},df:function(){return l},eA:function(){return f}});var r=t(3494),i=t(9853),o=t(1879),a=t(9624),c=["core","prebid-module"],u=[];function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.gvlid,t=e.moduleName,r=e.bidderCode,s=e.moduleType,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=f.bidderSettings,g=void 0===l?a.S:l;function p(){if(null==r)return!1;var e=g.get(r,"storageAllowed");return null!=e&&!e}function v(e){return(0,o.q9)(c,s)?e({valid:!0}):p()?((0,i.logInfo)("bidderSettings denied access to device storage for bidder '".concat(r,"'")),e({valid:!1})):(d(n,r||t,{hasEnforcementHook:!1},(function(n){if(n&&n.hasEnforcementHook)a=e(n);else{var t={hasEnforcementHook:!1,valid:(0,i.hasDeviceAccess)()};a=e(t)}})),a);var a}var y=function(e,n,t,r,i,o){var a=function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",c=t&&""!==t?" ;expires=".concat(t):"",u=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(n)).concat(c,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(u)}};if(!o||"function"!=typeof o)return v(a);u.push((function(){var e=v(a);o(e)}))},b=function(e,n){var t=function(n){if(n&&n.valid){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))},h=function(e){var n=function(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(e){}}return!1};if(!e||"function"!=typeof e)return v(n);u.push((function(){var t=v(n);e(t)}))},m=function(e){var n=function(e){return!(!e||!e.valid||!(0,i.checkCookieSupport)()&&(window.document.cookie="prebid.cookieTest",-1===window.document.cookie.indexOf("prebid.cookieTest")))};if(!e||"function"!=typeof e)return v(n);u.push((function(){var t=v(n);e(t)}))},E=function(e,n,t){var r=function(t){t&&t.valid&&T()&&window.localStorage.setItem(e,n)};if(!t||"function"!=typeof t)return v(r);u.push((function(){var e=v(r);t(e)}))},S=function(e,n){var t=function(n){return n&&n.valid&&T()?window.localStorage.getItem(e):null};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))},A=function(e,n){var t=function(n){n&&n.valid&&T()&&window.localStorage.removeItem(e)};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))},T=function(e){var n=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){(0,i.logError)("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return v(n);u.push((function(){var t=v(n);e(t)}))},I=function(e,n){var t=function(n){if(n&&n.valid){var t=[];if((0,i.hasDeviceAccess)())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(o.slice(a+1)))}return t}};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))};return{setCookie:y,getCookie:b,localStorageIsEnabled:h,cookiesAreEnabled:m,setDataInLocalStorage:E,getDataFromLocalStorage:S,removeDataFromLocalStorage:A,hasLocalStorage:T,findSimilarCookies:I}}var d=(0,r.z3)("async",(function(e,n,t,r){r(t)}),"validateStorageEnforcement");function f(e){return s({moduleName:e,moduleType:"core"})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.gvlid,t=e.moduleName,r=e.bidderCode;if(arguments.length>1||arguments.length>0&&!(0,i.isPlainObject)(arguments[0]))throw new Error("Invalid invocation for getStorageManager");return s({gvlid:n,moduleName:t,bidderCode:r})}},7112:function(e,n,t){"use strict";t.d(n,{k_:function(){return l}});var r=t(9853),i=t(8962),o=t(1879),a=t(5849);function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=f.syncsPerBidder?(0,r.logWarn)('Number of user syncs exceeded for "'.concat(i,'"')):n.canBidderRegisterSync(e,i)?(t[e].push([i,o]),void(u=function(e,n){return e[n]?e[n]+=1:e[n]=1,e}(u,i))):(0,r.logWarn)('Bidder "'.concat(i,'" not permitted to register their "').concat(e,'" userSync pixels.')):(0,r.logWarn)("Bidder is required for registering sync"):(0,r.logWarn)('User sync type "'.concat(e,'" not supported'))},n.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(l,Number(e));l()},n.triggerUserSyncs=function(){f.enableOverride&&n.syncUsers()},n.canBidderRegisterSync=function(e,n){return!f.filterSettings||!function(e,n){var t=f.filterSettings;if(function(e,n){if(e.all&&e[n])return(0,r.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(n,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=e.all?e.all:e[n],i=e.all?"all":n;if(!t)return!1;var o=t.filter,a=t.bidders;return o&&"include"!==o&&"exclude"!==o?((0,r.logWarn)('UserSync "filterSettings.'.concat(i,".filter\" setting '").concat(o,"' is not a valid option; use either 'include' or 'exclude'.")),!1):!!("*"===a||Array.isArray(a)&&a.length>0&&a.every((function(e){return(0,r.isStr)(e)&&"*"!==e})))||((0,r.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(i,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1)}(t,e)){d[e]=!0;var i=t.all?t.all:t[e],a="*"===i.bidders?[n]:i.bidders,c={include:function(e,n){return!(0,o.q9)(e,n)},exclude:function(e,n){return(0,o.q9)(e,n)}};return c[i.filter||"include"](a,n)}return!d[e]}(e,n)},n}({config:i.vc.getConfig("userSync"),browserSupportsCookies:f})},9853:function(e,n,t){"use strict";t.r(n),t.d(n,{_each:function(){return de},_map:function(){return le},adUnitsFilter:function(){return xe},bind:function(){return B},buildUrl:function(){return Sn},callBurl:function(){return be},checkCookieSupport:function(){return Ve},chunk:function(){return pn},cleanObj:function(){return un},compareOn:function(){return bn},contains:function(){return fe},convertCamelToUnderscore:function(){return cn},convertTypes:function(){return fn},createInvisibleIframe:function(){return $},createTrackPixelHtml:function(){return Ee},createTrackPixelIframeHtml:function(){return Se},cyrb53Hash:function(){return In},debugTurnedOn:function(){return X},deepAccess:function(){return c.Z},deepClone:function(){return qe},deepEqual:function(){return An},deepSetValue:function(){return u.Z},delayExecution:function(){return He},fill:function(){return gn},flatten:function(){return Ie},formatQS:function(){return mn},generateUUID:function(){return D},getAdUnitSizes:function(){return x},getBidIdParameter:function(){return k},getBidRequest:function(){return Ce},getBidderCodes:function(){return Be},getDNT:function(){return $e},getDefinedParams:function(){return Ye},getGptSlotInfoForAdUnitCode:function(){return rn},getHighestCpm:function(){return De},getKeyByValue:function(){return _e},getKeys:function(){return we},getLatestHighestCpmBid:function(){return Ne},getMaxValueFromArray:function(){return yn},getMinValueFromArray:function(){return vn},getOldestHighestCpmBid:function(){return ke},getOrigin:function(){return Xe},getParameterByName:function(){return ee},getPerformanceNow:function(){return Le},getPrebidInternal:function(){return w},getUniqueIdentifierStr:function(){return R},getUserConfiguredParams:function(){return Qe},getValue:function(){return Oe},getValueString:function(){return Ae},getWindowLocation:function(){return L},getWindowSelf:function(){return z},getWindowTop:function(){return F},groupBy:function(){return Ze},hasConsoleLogger:function(){return Q},hasDeviceAccess:function(){return Ke},hasOwn:function(){return ge},inIframe:function(){return Me},insertElement:function(){return pe},insertHtmlIntoIframe:function(){return he},insertUserSyncIframe:function(){return me},internal:function(){return I},isA:function(){return ne},isAdUnitCodeMatchingSlot:function(){return nn},isApnGetTagDefined:function(){return Re},isArray:function(){return ie},isArrayOfNums:function(){return ln},isBoolean:function(){return ce},isEmpty:function(){return ue},isEmptyStr:function(){return se},isFn:function(){return te},isGptPubadsDefined:function(){return Ue},isInteger:function(){return an},isNumber:function(){return oe},isPlainObject:function(){return ae},isSafariBrowser:function(){return Ge},isSlotMatchingAdUnitCode:function(){return tn},isStr:function(){return re},isValidMediaTypes:function(){return Je},logError:function(){return Z},logInfo:function(){return V},logMessage:function(){return K},logWarn:function(){return H},mergeDeep:function(){return Tn},parseGPTSingleSizeArray:function(){return M},parseGPTSingleSizeArrayToRtbSize:function(){return G},parseQS:function(){return hn},parseQueryStringParameters:function(){return P},parseSizesInput:function(){return q},parseUrl:function(){return En},pick:function(){return sn},prefixLog:function(){return Y},replaceAuctionPrice:function(){return We},replaceClickThrough:function(){return Fe},shuffle:function(){return je},timestamp:function(){return ze},transformAdServerTargetingObj:function(){return j},transformBidderParamKeywords:function(){return dn},triggerPixel:function(){return ye},tryAppendQueryString:function(){return N},uniques:function(){return Te},unsupportedBidderMessage:function(){return on},waitForElementToLoad:function(){return ve}});var r=t(8962),i=t(7079),o=t.n(i),a=t(1879),c=t(265),u=t(4806);function s(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,D)}function k(e,n){return n&&n[e]?n[e]:""}function N(e,n,t){return t?e+n+"="+encodeURIComponent(t)+"&":e}function P(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n.replace(/&$/,"")}function j(e){return e&&Object.getOwnPropertyNames(e).length>0?we(e).map((function(n){return"".concat(n,"=").concat(encodeURIComponent(Oe(e,n)))})).join("&"):""}function x(e){if(e){var n=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var t=e.mediaTypes.banner.sizes;Array.isArray(t[0])?n=t:n.push(t)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?n=e.sizes:n.push(e.sizes));return n}}function q(e){var n=[];if("string"==typeof e){var t=e.split(","),r=/^(\d)+x(\d)+$/i;if(t)for(var i in t)ge(t,i)&&t[i].match(r)&&n.push(t[i])}else if("object"===p(e)){var o=e.length;if(o>0)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])n.push(M(e));else for(var a=0;a0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0}function se(e){return re(e)&&(!e||0===e.length)}function de(e,n){if(!ue(e)){if(te(e.forEach))return e.forEach(n,this);var t=0,r=e.length;if(r>0)for(;t'+'':""}function Se(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),t&&(t='sandbox="'.concat(t,'"')),"')):""}function Ae(e,n,t){return null==n?t:re(n)?n:oe(n)?n.toString():void I.logWarn("Unsuported type for param: "+e+" required type: String")}function Te(e,n,t){return t.indexOf(e)===n}function Ie(e,n){return e.concat(n)}function Ce(e,n){var t;if(e)return n.some((function(n){var r=(0,a.sE)(n.bids,(function(n){return["bidId","adId","bid_id"].some((function(t){return n[t]===e}))}));return r&&(t=r),r})),t}function we(e){return Object.keys(e)}function Oe(e,n){return e[n]}function _e(e,n){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n)return t}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fsprebid.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(Ie,[])})).reduce(Ie,[]).filter(Te)}function Ue(){if(window.googletag&&te(window.googletag.pubads)&&te(window.googletag.pubads().getSlots))return!0}function Re(){if(window.apntag&&te(window.apntag.getTag))return!0}var De=Pe("timeToRespond",(function(e,n){return e>n})),ke=Pe("responseTimestamp",(function(e,n){return e>n})),Ne=Pe("responseTimestamp",(function(e,n){return e0;){var t=Math.floor(Math.random()*n),r=e[--n];e[n]=e[t],e[t]=r}return e}function xe(e,n){return(0,a.q9)(e,n&&n.adUnitCode)}function qe(e){return o()(e)}function Me(){try{return I.getWindowSelf()!==I.getWindowTop()}catch(e){return!0}}function Ge(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function We(e,n){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,n)}function Fe(e,n){if(e&&n&&"string"==typeof n)return e.replace(/\${CLICKTHROUGH}/g,n)}function ze(){return(new Date).getTime()}function Le(){return window.performance&&window.performance.now&&window.performance.now()||0}function Ke(){return!1!==r.vc.getConfig("deviceAccess")}function Ve(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function He(e,n){if(n<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(n));var t=0;return function(){++t===n&&e.apply(this,arguments)}}function Ze(e,n){return e.reduce((function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e}),{})}function Ye(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return g(n,l({},t,e[t]))}),{})}function Je(e){var n=["banner","native","video"];return!!Object.keys(e).every((function(e){return(0,a.q9)(n,e)}))&&(!e.video||!e.video.context||(0,a.q9)(["instream","outstream","adpod"],e.video.context))}function Qe(e,n,t){return e.filter((function(e){return e.code===n})).map((function(e){return e.bids})).reduce(Ie,[]).filter((function(e){return e.bidder===t})).map((function(e){return e.params||{}}))}function Xe(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function $e(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var en=function(e,n){return e.getAdUnitPath()===n||e.getSlotElementId()===n};function nn(e){return function(n){return en(e,n)}}function tn(e){return function(n){return en(n,e)}}function rn(e){var n;return Ue()&&(n=(0,a.sE)(window.googletag.pubads().getSlots(),tn(e))),n?{gptSlot:n.getAdUnitPath(),divId:n.getSlotElementId()}:{}}function on(e,n){var t=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(t," ad unit\n containing bidders that don't support ").concat(t,": ").concat(n,".\n This bidder won't fetch demand.\n ")}function an(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function cn(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,n){return"_"+n.toLowerCase()})).replace(/^_/,"")}function un(e){return Object.keys(e).reduce((function(n,t){return void 0!==e[t]&&(n[t]=e[t]),n}),{})}function sn(e,n){return"object"!==p(e)?{}:n.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var c=e[r];return"function"==typeof n[i+1]&&(c=n[i+1](c,t)),void 0!==c&&(t[o]=c),t}),{})}function dn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",t=[];return de(e,(function(e,r){if(ie(e)){var i=[];de(e,(function(e){((e=Ae(n+"."+r,e))||""===e)&&i.push(e)})),e=i}else{if(!re(e=Ae(n+"."+r,e)))return;e=[e]}t.push({key:r,value:e})})),t}function fn(e,n){return Object.keys(e).forEach((function(t){var r,i;n[t]&&(te(e[t])?n[t]=e[t](n[t]):n[t]=(r=e[t],i=n[t],"string"===r?i&&i.toString():"number"===r?Number(i):i),isNaN(n[t])&&delete n.key)})),n}function ln(e,n){return ie(e)&&(!n||e.length===n)&&e.every((function(e){return an(e)}))}function gn(e,n){for(var t=[],r=0;rt[e]?-1:0}}function hn(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t,r,i=(t=n.split("="),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(t,r)||d(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];return/\[\]$/.test(o)?(e[o=o.replace("[]","")]=e[o]||[],e[o].push(a)):e[o]=a||"",e}),{}):{}}function mn(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return"".concat(n,"[]=").concat(e)})).join("&"):"".concat(n,"=").concat(e[n])})).join("&")}function En(e,n){var t=document.createElement("a");n&&"noDecodeWholeURL"in n&&n.noDecodeWholeURL?t.href=e:t.href=decodeURIComponent(e);var r=n&&"decodeSearchAsString"in n&&n.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:I.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function Sn(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(I.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function An(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.checkTypes,i=void 0!==r&&r;if(e===n)return!0;if("object"!==p(e)||null===e||"object"!==p(n)||null===n||i&&e.constructor!==n.constructor)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var o in e){if(!n.hasOwnProperty(o))return!1;if(!An(e[o],n[o],{checkTypes:i}))return!1}return!0}function Tn(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,n){if(te(Math.imul))return Math.imul(e,n);var t=(4194303&e)*(n|=0);return 4290772992&e&&(t+=(4290772992&e)*n|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}},1929:function(e,n,t){"use strict";t.d(n,{Dn:function(){return d},LD:function(){return s},gZ:function(){return u}});var r=t(265),i=t(9853),o=t(8962),a=t(3494),c=t(4766),u="outstream",s="instream";function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?c.K.index:t,o=(0,r.Z)(i.getMediaTypes(e),"video"),a=o&&(0,r.Z)(o,"context"),u=i.getAdUnit(e);return f(e,u,o,a)}var f=(0,a.z3)("sync",(function(e,n,t,r){return t&&r!==u?o.vc.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with fsprebid.setConfig({ cache: {url: "..."} });\n '),!1):r!==u||!!(e.renderer||n&&n.renderer||t.renderer)}),"checkVideoBidSetup")},265:function(e,n,t){"use strict";function r(e,n,t,r,i){for(n=n.split?n.split("."):n,r=0;r-1?[]:{}}t.d(n,{Z:function(){return r}})},1432:function(e){a.SYNC=1,a.ASYNC=2,a.QUEUE=4;var n=Object.freeze({useProxy:!0,ready:0}),t=new WeakMap,r="2,1,0"===[1].reduce((function(e,n,t){return[e,n,t]}),2).toString()?Array.prototype.reduce:function(e,n){var t,r=Object(this),i=r.length>>>0,o=0;if(n)t=n;else{for(;o=o)&&Object.keys(r.O).every((function(e){return r.O[e](t[u])}))?t.splice(u--,1):(c=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,i,o]},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={5602:0};r.O.j=function(n){return 0===e[n]};var n=function(n,t){var i,o,a=t[0],c=t[1],u=t[2],s=0;if(a.some((function(n){return 0!==e[n]}))){for(i in c)r.o(c,i)&&(r.m[i]=c[i]);if(u)var d=u(r)}for(n&&n(t);s0?function(n){e.ports[0].postMessage(JSON.stringify(n))}:function(n){e.source.postMessage(JSON.stringify(n),e.origin)}}(e),r,i)}}function E(e){var t=e.adId,r=e.adUnitCode,i=e.width,o=e.height;["div","iframe"].forEach((function(e){var a=function(e){var i=function(e,t){return(0,n.isGptPubadsDefined)()?function(e){var n=(0,u.sE)(window.googletag.pubads().getSlots(),(function(n){return(0,u.sE)(n.getTargetingKeys(),(function(t){return(0,u.q9)(n.getTargeting(t),e)}))}));return n?n.getSlotElementId():null}(e):(0,n.isApnGetTagDefined)()?function(e){var n=window.apntag.getTag(e);return n&&n.targetId}(t):t}(t,r),o=document.getElementById(i);return o&&o.querySelector(e)}(e+':not([style*="display: none"])');if(a){var c=a.style;c.width=i+"px",c.height=o+"px"}else(0,n.logWarn)("Unable to locate matching page element for adUnitCode ".concat(r,". Can't resize it to ad's dimensions. Please review setup."))}))}var S=r(7112),A=r(1269),T=r(8265),I=r(3494),C=r(9624);function w(){return w=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t(0,n.timestamp)()},x=function(e){return e&&(e.status&&!(0,u.q9)([U.BID_STATUS.RENDERED],e.status)||!e.status)},q=(0,I.z3)("sync",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!i){var o=[],a=d.vc.getConfig("sendBidsControl.dealPrioritization"),c=(0,n.groupBy)(e,"adUnitCode");return Object.keys(c).forEach((function(e){var i=[],u=(0,n.groupBy)(c[e],"bidderCode");Object.keys(u).forEach((function(e){return i.push(u[e].reduce(t))})),r>0?(i=a?i.sort(M(!0)):i.sort((function(e,n){return n.cpm-e.cpm})),o.push.apply(o,_(i.slice(0,r)))):o.push.apply(o,_(i))})),o}return e}));function M(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(n,t){return void 0!==n.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===n.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:e?t.cpm-n.cpm:t.adserverTargeting.hb_pb-n.adserverTargeting.hb_pb}}var G,W,F=function(e){var r={},i={};function a(e,t){return e.adserverTargeting&&t&&((0,n.isArray)(t)&&(0,u.q9)(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function c(e,t){if(!0===d.vc.getConfig("targetingControls.alwaysIncludeDeals")){var r=P.concat(o.xc);return q(t,n.getHighestCpm).map((function(n){if(n.dealId&&a(n,e))return O({},n.adUnitCode,I(n,r.filter((function(e){return void 0!==n.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function s(e,t){var r=w({},U.TARGETING_KEYS,U.NATIVE_KEYS),i=Object.keys(r),o={};(0,n.logInfo)("allowTargetingKeys - allowed keys [ ".concat(t.map((function(e){return r[e]})).join(", ")," ]")),e.map((function(e){var n=Object.keys(e)[0],a=e[n].filter((function(e){var n=Object.keys(e)[0],a=0===i.filter((function(e){return 0===n.indexOf(r[e])})).length||(0,u.sE)(t,(function(e){var t=r[e];return 0===n.indexOf(t)}));return o[n]=!a,a}));e[n]=a}));var a=Object.keys(o).filter((function(e){return o[e]}));return(0,n.logInfo)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function f(e,t){var r=(0,n.deepClone)(e);return Object.keys(r).map((function(e){return{adUnitCode:e,adserverTargeting:r[e]}})).sort(M()).reduce((function(e,i,o,a){var c,u=(c=i.adserverTargeting,Object.keys(c).reduce((function(e,n){return e+"".concat(n,"%3d").concat(encodeURIComponent(c[n]),"%26")}),""));o+1===a.length&&(u=u.slice(0,-3));var s=i.adUnitCode,d=u.length;return d<=t?(t-=d,(0,n.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(d," characters. Deducted from running threshold; new limit is ").concat(t),r[s]),e[s]=r[s]):(0,n.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(d,", the current allotted amount was ").concat(t,".\n"),r[s]),o+1===a.length&&0===Object.keys(e).length&&(0,n.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}function l(e){var n=e.map((function(e){return O({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return O({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,n){return w(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=w({},e[t],n[t]),e}),{});return n}function g(t){return"string"==typeof t?[t]:(0,n.isArray)(t)?t:e.getAdUnitCodes()||[]}function p(){var r=e.getBidsReceived();if(d.vc.getConfig("useBidCache")){var o=d.vc.getConfig("bidCacheFilterFunction");"function"==typeof o&&(r=r.filter((function(e){return i[e.adUnitCode]===e.auctionId||!!o(e)})))}else r=r.filter((function(e){return i[e.adUnitCode]===e.auctionId}));return r=r.filter((function(e){return(0,t.Z)(e,"video.context")!==T.Oh})).filter((function(e){return"banner"!==e.mediaType||(0,A.lO)([e.width,e.height])})).filter(x).filter(j),q(r,n.getOldestHighestCpmBid)}function v(e,n){var t=r.getWinningBids(e,n),i=y();return t=t.map((function(e){return O({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(n)})).reduce((function(n,t){var r=[e.adserverTargeting[t]],i=O({},t.substring(0,20),r);if(t===U.TARGETING_KEYS.DEAL){var o=O({},"".concat(t,"_").concat(e.bidderCode).substring(0,20),r);return[].concat(_(n),[i,o])}return[].concat(_(n),[i])}),[]))})),t}function y(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(P).filter(n.uniques)}function b(e,t,r,i){return Object.keys(t.adserverTargeting).filter(h()).forEach((function(r){e.length&&e.filter(function(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}(r)).forEach(function(e){return function(r){(0,n.isArray)(r.adserverTargeting[e])||(r.adserverTargeting[e]=[r.adserverTargeting[e]]),r.adserverTargeting[e]=r.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(n.uniques),delete t.adserverTargeting[e]}}(r))})),e.push(t),e}function h(){var e=y().concat(o.xc);return function(n){return-1===e.indexOf(n)}}function m(e){return O({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(h()).map((function(n){return O({},n.substring(0,20),[e.adserverTargeting[n]])})))}function E(e,n){return n.filter((function(n){return(0,u.q9)(e,n.adUnitCode)})).map((function(e){return w({},e)})).reduce(b,[]).map(m).filter((function(e){return e}))}function S(e,t){var r=P.concat(o.xc),i=d.vc.getConfig("sendBidsControl.bidLimit"),c=q(t,n.getHighestCpm,i),u=d.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),s=u?u.map((function(e){return U.TARGETING_KEYS[e]})):r;return c.map((function(n){if(a(n,e))return O({},n.adUnitCode,I(n,r.filter((function(e){return void 0!==n.adserverTargeting[e]&&-1!==s.indexOf(e)}))))})).filter((function(e){return e}))}function I(e,n){return n.map((function(n){return O({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}function B(r){function i(e){return(0,t.Z)(e,U.JSON_MAPPING.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return(0,u.q9)(r,e.code)&&i(e)})).map((function(e){return O({},e.code,function(e){var t=i(e);return Object.keys(t).map((function(e){return(0,n.isStr)(t[e])&&(t[e]=t[e].split(",").map((function(e){return e.trim()}))),(0,n.isArray)(t[e])||(t[e]=[t[e]]),O({},e,t[e])}))}(e))}))}return r.setLatestAuctionForAdUnit=function(e,n){i[e]=n},r.resetPresetTargeting=function(t,r){if((0,n.isGptPubadsDefined)()){var i=g(t),o=e.getAdUnits().filter((function(e){return(0,u.q9)(i,e.code)})),a=R.reduce((function(e,n){return e[n]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var t=(0,n.isFn)(r)&&r(e);o.forEach((function(r){(r.code===e.getAdUnitPath()||r.code===e.getSlotElementId()||(0,n.isFn)(t)&&t(r.code))&&e.updateTargetingFromMap(a)}))}))}},r.resetPresetTargetingAST=function(e){g(e).forEach((function(e){var n=window.apntag.getTag(e);if(n&&n.keywords){var t=Object.keys(n.keywords),r={};t.forEach((function(e){(0,u.q9)(R,e.toLowerCase())||(r[e]=n.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},r.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(),r=g(e),i=v(r,t).concat(E(r,t)).concat(d.vc.getConfig("enableSendAllBids")?S(r,t):c(r,t)).concat(B(r));i.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===R.indexOf(Object.keys(e)[0])&&(R=Object.keys(e).concat(R))}))}))}));var o=Object.keys(w({},U.DEFAULT_TARGETING_KEYS,U.NATIVE_KEYS)),a=d.vc.getConfig(D),u=d.vc.getConfig(k);if(null!=u&&null!=a)throw new Error(N);a=null!=u?o.concat(u):a||o,Array.isArray(a)&&a.length>0&&(i=s(i,a)),i=l(i);var y=d.vc.getConfig("targetingControls.auctionKeyMaxChars");return y&&((0,n.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(y," characters. Running checks on auction keys...")),i=f(i,y)),r.forEach((function(e){i[e]||(i[e]={})})),i},d.vc.getConfig("targetingControls",(function(e){null!=(0,t.Z)(e,D)&&null!=(0,t.Z)(e,k)&&(0,n.logError)(N)})),r.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach((function(r){Object.keys(e).filter(t?t(r):(0,n.isAdUnitCodeMatchingSlot)(r)).forEach((function(t){Object.keys(e[t]).forEach((function(n){var r=e[t][n];"string"==typeof r&&-1!==r.indexOf(",")&&(r=r.split(",")),e[t][n]=r})),(0,n.logMessage)("Attempting to set targeting-map for slot: ".concat(r.getSlotElementId()," with targeting-map:"),e[t]),r.updateTargetingFromMap(e[t])}))}))},r.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(),r=g(e);return t.filter((function(e){return(0,u.q9)(r,e.adUnitCode)})).filter((function(e){return!0===C.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(n.uniques).map((function(e){return t.filter((function(n){return n.adUnitCode===e?n:null})).reduce(n.getHighestCpm)}))},r.setTargetingForAst=function(e){var t=r.getAllTargeting(e);try{r.resetPresetTargetingAST(e)}catch(e){(0,n.logError)("unable to reset targeting for AST"+e)}Object.keys(t).forEach((function(e){return Object.keys(t[e]).forEach((function(r){if((0,n.logMessage)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(r," value: ").concat(t[e][r])),(0,n.isStr)(t[e][r])||(0,n.isArray)(t[e][r])){var i={};r.search(/pt[0-9]/)<0?i[r.toUpperCase()]=t[e][r]:i[r]=t[e][r],window.apntag.setKeywords(e,i,{overrideKeyValue:!0})}}))}))},r.isApntagDefined=function(){if(window.apntag&&(0,n.isFn)(window.apntag.setKeywords))return!0},r}(c.K),z=r(9964),L=(0,n.prefixLog)("DEBUG:"),K=L.logWarn,V=L.logMessage,H="fsprebid:debugging",Z=[function(e){J(),function(e){G=te.bind(e),z.Yt.before(G,5),W=re.bind(e),z.e0.before(W,5)}(e)}],Y=[J];function J(){z.Yt.getHooks({hook:G}).remove(),z.e0.getHooks({hook:W}).remove()}function Q(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.vc.setConfig({debug:!0}),Z.forEach((function(n){return n(e)})),V("bidder overrides enabled".concat(n?" from session":""))}function X(){Y.forEach((function(e){return e()})),V("bidder overrides disabled")}function $(e,n,t){return!(!e.bidder||e.bidder===n)||!(!e.adUnitCode||e.adUnitCode===t)}function ee(e,n){return Array.isArray(e)&&-1===e.indexOf(n)}function ne(e,n,t){return Object.keys(e).filter((function(e){return-1===["adUnitCode","bidder"].indexOf(e)})).reduce((function(n,r){return V("bidder overrides changed '".concat(n.adUnitCode,"/").concat(n.bidderCode,"' ").concat(t,".").concat(r," from '").concat(n[r],".js' to '").concat(e[r],"'")),n[r]=e[r],n.isDebug=!0,n}),n)}function te(e,n,t){var r=this;ee(r.bidders,t.bidderCode)?K("bidder '".concat(t.bidderCode,"' excluded from auction by bidder overrides")):(Array.isArray(r.bids)&&r.bids.forEach((function(e){$(e,t.bidderCode,n)||ne(e,t,"bidder")})),e(n,t))}function re(e,n){var t=this,r=n.filter((function(e){return!ee(t.bidders,e.bidderCode)||(K("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)}));Array.isArray(t.bidRequests)&&r.forEach((function(e){t.bidRequests.forEach((function(n){e.bids.forEach((function(t){$(n,e.bidderCode,t.adUnitCode)||ne(n,t,"bidRequest")}))}))})),e(r)}var ie=(0,I.z3)("sync",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.sessionStorage,r=void 0===t?window.sessionStorage:t;if(e.enabled)try{r.setItem(H,JSON.stringify(e))}catch(e){}else try{r.removeItem(H)}catch(e){}}));d.vc.getConfig("debugging",(function(e){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).sessionStorage,t=void 0===n?window.sessionStorage:n;ie(e,{sessionStorage:t}),e.enabled?Q(e):X()}(e.debugging)}));var oe=r(7263),ae=r(1477),ce=r(5849),ue=r(7602);function se(e){return function(e){if(Array.isArray(e))return de(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return de(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?de(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0)&&(e.every((function(e){return(0,n.isArrayOfNums)(e,2)}))?r=e:(0,n.isArrayOfNums)(e,2)&&r.push(e)),r}function De(e,r){var i=(0,t.Z)(e,"mediaTypes.".concat(r,".pos"));if(!(0,n.isNumber)(i)||isNaN(i)||!isFinite(i)){var o="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");(0,n.logWarn)(o),ve.emit(ge.EVENTS.AUCTION_DEBUG,{type:"WARNING",arguments:o}),delete e.mediaTypes[r].pos}return e}!function(e){var n;try{e=e||window.sessionStorage,n=JSON.parse(e.getItem(H))}catch(e){}n&&Q(n,!0)}(),le.bidderSettings=le.bidderSettings||{},le.libLoaded=!0,le.version="v6.19.0",(0,n.logInfo)("Prebid.js v6.19.0 loaded"),le.installedModules=le.installedModules||[],le.adUnits=le.adUnits||[],le.triggerUserSyncs=ye;var ke=(0,I.z3)("sync",(function(e){var t=[];return e.forEach((function(e){if(null!=(e=function(e){var t=function(n){return"adUnit.code '".concat(e.code,"' ").concat(n)},r=e.mediaTypes,i=e.bids;return null==i||(0,n.isArray)(i)?null==i&&null==e.ortb2Imp?((0,n.logError)(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):r&&0!==Object.keys(r).length?(null==e.ortb2Imp||null!=i&&0!==i.length||(e.bids=[{bidder:null}],(0,n.logMessage)(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,n.logError)(t("does not define a 'mediaTypes' object. This is a required field for the auction, so this adUnit has been removed.")),null):((0,n.logError)(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(e))){var r,i,o,a=e.mediaTypes;a.banner&&(r=function(e){var t=(0,n.deepClone)(e),r=t.mediaTypes.banner,i=Re(r.sizes);return i.length>0?(r.sizes=i,t.sizes=i):(console.log("validateBannerMediaType","adUnit",e),(0,n.logError)("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], ...]. Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),t}(e),a.banner.hasOwnProperty("pos")&&(r=De(r,"banner"))),a.video&&(i=function(e){var t=(0,n.deepClone)(e),r=t.mediaTypes.video;if(r.playerSize){var i="number"==typeof r.playerSize[0]?2:1,o=Re(r.playerSize,i);o.length>0?(2===i&&(0,n.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),r.playerSize=o,t.sizes=o):((0,n.logError)("Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete t.mediaTypes.video.playerSize)}return t}(r||e),a.video.hasOwnProperty("pos")&&(i=De(i,"video"))),a.native&&(o=function(e){var t=(0,n.deepClone)(e),r=t.mediaTypes.native;return r.image&&r.image.sizes&&!Array.isArray(r.image.sizes)&&((0,n.logError)("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete t.mediaTypes.native.image.sizes),r.image&&r.image.aspect_ratios&&!Array.isArray(r.image.aspect_ratios)&&((0,n.logError)("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete t.mediaTypes.native.image.aspect_ratios),r.icon&&r.icon.sizes&&!Array.isArray(r.icon.sizes)&&((0,n.logError)("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete t.mediaTypes.native.icon.sizes),t}(i||r||e));var c=fe({},r,i,o);t.push(c)}})),t}),"checkAdUnitSetup");function Ne(e){var t=c.K[e]().filter(n.bind.call(n.adUnitsFilter,this,c.K.getAdUnitCodes())),r=c.K.getLastAuctionId();return t.map((function(e){return e.adUnitCode})).filter(n.uniques).map((function(e){return t.filter((function(n){return n.auctionId===r&&n.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return n={},r={bids:e},(t=e[0].adUnitCode)in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n;var n,t,r})).reduce((function(e,n){return fe(e,n)}),{})}function Pe(e,t,r){var i=t.querySelector(r);e.parentNode&&e.parentNode===i||(0,n.insertElement)(e,t,r)}le.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,n.logInfo)("Invoking fsprebid.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=le.getAdserverTargetingForAdUnitCode(e);return(0,n.transformAdServerTargetingObj)(t)}(0,n.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},le.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var t=c.K.getAllBidsForAdUnitCode(e).filter(x).filter(j);return t.length?t.reduce(n.getHighestCpm):{}}(0,n.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},le.getAdserverTargetingForAdUnitCode=function(e){return le.getAdserverTargeting(e)[e]},le.getAdserverTargeting=function(e){return(0,n.logInfo)("Invoking fsprebid.getAdserverTargeting",arguments),F.getAllTargeting(e)},le.getConsentMetadata=function(){return(0,n.logInfo)("Invoking fsprebid.getConsentMetadata"),{gdpr:ue.rp.getConsentMeta(),usp:ue.nX.getConsentMeta(),coppa:!!d.vc.getConfig("coppa")}},le.getNoBids=function(){return(0,n.logInfo)("Invoking fsprebid.getNoBids",arguments),Ne("getNoBids")},le.getNoBidsForAdUnitCode=function(e){return{bids:c.K.getNoBids().filter((function(n){return n.adUnitCode===e}))}},le.getBidResponses=function(){return(0,n.logInfo)("Invoking fsprebid.getBidResponses",arguments),Ne("getBidsReceived")},le.getBidResponsesForAdUnitCode=function(e){return{bids:c.K.getBidsReceived().filter((function(n){return n.adUnitCode===e}))}},le.setTargetingForGPTAsync=function(e,t){if((0,n.logInfo)("Invoking fsprebid.setTargetingForGPTAsync",arguments),(0,n.isGptPubadsDefined)()){var r=F.getAllTargeting(e);F.resetPresetTargeting(e,t),F.setTargetingForGPT(r,t),Object.keys(r).forEach((function(e){Object.keys(r[e]).forEach((function(n){"hb_adid"===n&&c.K.setStatusForBids(r[e][n],ge.BID_STATUS.BID_TARGETING_SET)}))})),ve.emit(Se,r)}else(0,n.logError)("window.googletag is not defined on the page")},le.setTargetingForAst=function(e){(0,n.logInfo)("Invoking fsprebid.setTargetingForAn",arguments),F.isApntagDefined()?(F.setTargetingForAst(e),ve.emit(Se,F.getAllTargeting())):(0,n.logError)("window.apntag is not defined on the page")},le.renderAd=(0,I.z3)("async",(function(e,r,i){if((0,n.logInfo)("Invoking fsprebid.renderAd",arguments),(0,n.logMessage)("Calling renderAd with adId :"+r),e&&r)try{var o=c.K.findBidByAdId(r);if(o){var a=!0;if(o&&o.status===ge.BID_STATUS.RENDERED&&((0,n.logWarn)("Ad id ".concat(o.adId," has been rendered before")),ve.emit(Ae,o),(0,t.Z)(d.vc.getConfig("auctionOptions"),"suppressStaleRender")&&(a=!1)),a){if(o.ad=(0,n.replaceAuctionPrice)(o.ad,o.originalCpm||o.cpm),o.adUrl=(0,n.replaceAuctionPrice)(o.adUrl,o.originalCpm||o.cpm),i&&i.clickThrough){var u=i.clickThrough;o.ad=(0,n.replaceClickThrough)(o.ad,u),o.adUrl=(0,n.replaceClickThrough)(o.adUrl,u)}c.K.addWinningBid(o),ve.emit(me,o);var f=o.height,l=o.width,g=o.ad,y=o.mediaType,b=o.adUrl,h=o.renderer,m=document.createComment("Creative ".concat(o.creativeId," served by ").concat(o.bidder," Prebid.js Header Bidding"));if((0,n.insertElement)(m,e,"html"),(0,s.Pd)(h))(0,s._U)(h,o),Pe(m,e,"html"),v({doc:e,bid:o,id:r});else if(e===document&&!(0,n.inIframe)()||"video"===y){var E="Error trying to write ad. Ad render call ad id ".concat(r," was prevented from writing to the main document.");p({reason:Ie,message:E,bid:o,id:r})}else if(g)e.write(g),e.close(),Ue(e,l,f),Pe(m,e,"html"),(0,n.callBurl)(o),v({doc:e,bid:o,id:r});else if(b){var S=(0,n.createInvisibleIframe)();S.height=f,S.width=l,S.style.display="inline",S.style.overflow="hidden",S.src=b,(0,n.insertElement)(S,e,"body"),Ue(e,l,f),Pe(m,e,"html"),(0,n.callBurl)(o),v({doc:e,bid:o,id:r})}else{var A="Error trying to write ad. No ad for bid response id: ".concat(r);p({reason:Ce,message:A,bid:o,id:r})}}}else{var T="Error trying to write ad. Cannot find ad by given id : ".concat(r);p({reason:Oe,message:T,id:r})}}catch(e){var I="Error trying to write ad Id :".concat(r," to the page:").concat(e.message);p({reason:we,message:I,id:r})}else{var C="Error trying to write ad Id :".concat(r," to the page. Missing document or adId");p({reason:_e,message:C,id:r})}})),le.removeAdUnit=function(e){(0,n.logInfo)("Invoking fsprebid.removeAdUnit",arguments),e?((0,n.isArray)(e)?e:[e]).forEach((function(e){for(var n=le.adUnits.length-1;n>=0;n--)le.adUnits[n].code===e&&le.adUnits.splice(n,1)})):le.adUnits=[]},le.requestBids=(0,I.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,r=e.timeout,i=e.adUnits,o=e.adUnitCodes,a=e.labels,s=e.auctionId;ve.emit(Ee);var f=r||d.vc.getConfig("bidderTimeout");i=i&&d.vc.convertAdUnitFpd((0,n.isArray)(i)?i:[i])||le.adUnits,(0,n.logInfo)("Invoking fsprebid.requestBids",arguments);var l=[],g=[];if(d.vc.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(l=Array.isArray(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])})),l.forEach((function(e){g.push.apply(g,se(e.bidders))})),i=ke(i),o&&o.length?i=i.filter((function(e){return(0,u.q9)(o,e.code)})):o=i&&i.map((function(e){return e.code})),i.forEach((function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),r=e.bids.map((function(e){return e.bidder})),i=pe.bidderRegistry,o=g?r.filter((function(e){return!(0,u.q9)(g,e)})):r;e.transactionId=(0,n.generateUUID)(),o.forEach((function(r){var o=i[r],a=o&&o.getSpec&&o.getSpec(),c=a&&a.supportedMediaTypes||["banner"];t.some((function(e){return(0,u.q9)(c,e)}))?oe.f.incrementBidderRequestsCounter(e.code,r):((0,n.logWarn)((0,n.unsupportedBidderMessage)(e,r)),e.bids=e.bids.filter((function(e){return e.bidder!==r})))})),oe.f.incrementRequestsCounter(e.code)})),i&&0!==i.length){var p=c.K.createAuction({adUnits:i,adUnitCodes:o,callback:t,cbTimeout:f,labels:a,auctionId:s}),v=i.length;v>15&&(0,n.logInfo)("Current auction ".concat(p.getAuctionId()," contains ").concat(v," adUnits."),i),o.forEach((function(e){return F.setLatestAuctionForAdUnit(e,p.getAuctionId())})),p.callBids()}else if((0,n.logMessage)("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){(0,n.logError)("Error executing bidsBackHandler",null,e)}})),le.requestBids.before((function(e,n){function t(e){for(var n;n=e.shift();)n()}t(ce.Ld),t(je),e.call(this,n)}),49),le.addAdUnits=function(e){(0,n.logInfo)("Invoking fsprebid.addAdUnits",arguments),le.adUnits.push.apply(le.adUnits,d.vc.convertAdUnitFpd((0,n.isArray)(e)?e:[e])),ve.emit(he)},le.onEvent=function(e,t,r){(0,n.logInfo)("Invoking fsprebid.onEvent",arguments),(0,n.isFn)(t)?!r||Be[e].call(null,r)?ve.on(e,t,r):(0,n.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,n.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},le.offEvent=function(e,t,r){(0,n.logInfo)("Invoking fsprebid.offEvent",arguments),r&&!Be[e].call(null,r)||ve.off(e,t,r)},le.getEvents=function(){return(0,n.logInfo)("Invoking fsprebid.getEvents"),ve.getEvents()},le.registerBidAdapter=function(e,t){(0,n.logInfo)("Invoking fsprebid.registerBidAdapter",arguments);try{pe.registerBidAdapter(e(),t)}catch(e){(0,n.logError)("Error registering bidder adapter : "+e.message)}},le.registerAnalyticsAdapter=function(e){(0,n.logInfo)("Invoking fsprebid.registerAnalyticsAdapter",arguments);try{pe.registerAnalyticsAdapter(e)}catch(e){(0,n.logError)("Error registering analytics adapter : "+e.message)}},le.createBid=function(e){return(0,n.logInfo)("Invoking fsprebid.createBid",arguments),(0,ae.m)(e)};var je=[],xe=(0,I.z3)("async",(function(e){e&&!(0,n.isEmpty)(e)?((0,n.logInfo)("Invoking fsprebid.enableAnalytics for: ",e),pe.enableAnalytics(e)):(0,n.logError)("fsprebid.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function qe(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,n.logError)("Error processing command :","prebid.js",e)}}))}le.enableAnalytics=function(e){je.push(xe.bind(this,e))},le.aliasBidder=function(e,t,r){(0,n.logInfo)("Invoking fsprebid.aliasBidder",arguments),e&&t?pe.aliasBidAdapter(e,t,r):(0,n.logError)("bidderCode and alias must be passed as arguments","fsprebid.aliasBidder")},le.getAllWinningBids=function(){return c.K.getAllWinningBids()},le.getAllPrebidWinningBids=function(){return c.K.getBidsReceived().filter((function(e){return e.status===ge.BID_STATUS.BID_TARGETING_SET}))},le.getHighestCpmBids=function(e){return F.getWinningBids(e)},le.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=c.K.getBidsReceived().filter((function(n){return n.adId===e.adId&&n.adUnitCode===e.adUnitCode})):e.adUnitCode?t=F.getWinningBids(e.adUnitCode):e.adId?t=c.K.getBidsReceived().filter((function(n){return n.adId===e.adId})):(0,n.logWarn)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(t[0].status=ge.BID_STATUS.RENDERED)},le.getConfig=d.vc.getConfig,le.readConfig=d.vc.readConfig,le.mergeConfig=d.vc.mergeConfig,le.mergeBidderConfig=d.vc.mergeBidderConfig,le.setConfig=d.vc.setConfig,le.setBidderConfig=d.vc.setBidderConfig,le.que.push((function(){window.addEventListener("message",m,!1)})),le.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,n.logError)("Error processing command :",e.message,e.stack)}else(0,n.logError)("Commands written into fsprebid.cmd.push must be wrapped in a function")},le.que.push=le.cmd.push,le.processQueue=function(){I.z3.ready(),qe(le.que),qe(le.cmd)}}(),i=r.O(i)}(); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[373],{5690:function(t,e,r){var n=r(1609),i=r(8962),o=r(265),a=r(9853),s=r(8265);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e ").concat(i)),i}return(0,a.logWarn)("[33Across Adapter] Unable to locate element for ad unit code: '".concat(t,"'")),null}(r))),u=function(t){return(0,a.isArray)(t)&&2===t.length&&!(0,a.isArray)(t[0])?[I(t)]:t.map(I)}(n.sizes);e="function"==typeof t.getFloor?u.map((function(e){var r,n=A(t,e,s.Mk);return n&&(r={ext:{ttx:{bidfloors:[n]}}}),p({},e,r)})):u;var c,d=function(t){return t.reduce((function(t,e){return e.h*e.w2&&void 0!==arguments[2]?arguments[2]:{},n=r.w,i=r.h;return"visible"===e.document.visibilityState?T(t,e,{w:n,h:i}):0}(i,(0,a.getWindowTop)(),d):"nm",{ttx:{viewability:{amount:isNaN(c)?c:Math.round(c)}}});return{format:e,ext:l}}(e))),(0,o.Z)(e,"mediaTypes.video")&&(r.video=function(t){var e=(0,o.Z)(t,"mediaTypes.video",{}),r=(0,o.Z)(t,"params.video",{}),n=c(c({},e),r),i={},a=I(n.playerSize[0]),u=a.w,d=a.h;i.w=u,i.h=d,g.forEach((function(t){n.hasOwnProperty(t)&&(i[t]=n[t])}));var l=S(t);if(i.placement=i.placement||2,l===m&&(i.startdelay=i.startdelay||0,i.placement=1),"function"==typeof t.getFloor){var f=A(t,{w:i.w,h:i.h},s.pX);f&&p(i,{ext:{ttx:{bidfloors:[f]}}})}return i}(e)),r))})),l.site={id:h},u&&(l.site.page=u),l.id=e[0].auctionId,n.consentString&&(l.user=w(l.user,{consent:n.consentString})),Array.isArray(e[0].userIdAsEids)&&e[0].userIdAsEids.length>0&&(l.user=w(l.user,{eids:e[0].userIdAsEids})),l.regs=w(l.regs,{gdpr:Number(n.gdprApplies)}),i&&(l.regs=w(l.regs,{us_privacy:i})),l.ext={ttx:{prebidStartedAt:Date.now(),caller:[{name:"prebidjs",version:"6.19.0"}]}},e[0].schain&&(l.source=w(l.source,{schain:e[0].schain})),1===v&&(l.test=1),{method:"POST",url:d&&d.url||"".concat("https://ssc.33across.com/api/v1/hb","?guid=").concat(h),data:JSON.stringify(l),options:{contentType:"text/plain",withCredentials:!0}}}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return(0,a.mergeDeep)({},t,{ext:e})}function I(t){return{w:parseInt(t[0],10),h:parseInt(t[1],10)}}function x(t){return(0,a.mergeDeep)({},t,{params:{productId:S(t)}})}function S(t){var e=t.params,r=t.mediaTypes,n=r.banner,i=r.video;return i&&!n&&"instream"===i.context?m:"inview"===e.productId?e.productId:"siab"}function A(t,e,r){var n=t.getFloor({currency:"USD",mediaType:r,size:[e.w,e.h]});if(!isNaN(n.floor)&&"USD"===n.currency)return n.floor}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.w,n=e.h,i=t.getBoundingClientRect(),o=i.width,a=i.height,s=i.left,u=i.top,c=i.right,d=i.bottom;return(0===o||0===a)&&r&&n&&(o=r,a=n,c=s+r,d=u+n),{width:o,height:a,left:s,top:u,right:c,bottom:d}}function O(t){for(var e={left:t[0].left,right:t[0].right,top:t[0].top,bottom:t[0].bottom},r=1;r=e.right)return null;if(e.top=Math.max(e.top,t[r].top),e.bottom=Math.min(e.bottom,t[r].bottom),e.top>=e.bottom)return null}return e.width=e.right-e.left,e.height=e.bottom-e.top,e}function T(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.w,i=r.h,o=C(t,{w:n,h:i}),a=O([{left:0,top:0,right:e.innerWidth,bottom:e.innerHeight},o]);return null!==a?a.width*a.height/(o.width*o.height)*100:0}var U={NON_MEASURABLE:"nm",code:l,supportedMediaTypes:[s.Mk,s.pX],gvlid:58,isBidRequestValid:function(t){return function(t){return t.bidder===l&&void 0!==t.params&&!!function(t){return null!==((0,o.Z)(t,"params.siteId","")||"").trim().match(f)}(t)}(t)&&function(t){var e=(0,o.Z)(t,"mediaTypes.banner");return void 0===e||!!Array.isArray(e.sizes)}(t)&&function(t){var e=(0,o.Z)(t,"mediaTypes.video"),r=(0,o.Z)(t,"params.video",{});if(void 0===e)return!0;if(!Array.isArray(e.playerSize))return!1;if(!e.context)return!1;var n=c(c({},e),r);return!(!Array.isArray(n.mimes)||0===n.mimes.length)&&(!(!Array.isArray(n.protocols)||0===n.protocols.length)&&((void 0===n.placement||"number"==typeof n.placement)&&("instream"!==e.context||void 0===n.startdelay||"number"==typeof n.startdelay)))}(t)},buildRequests:function(t,e){var r=function(t,e){var r=p({},i.vc.getConfig("ttxSettings")),n=p({consentString:void 0,gdprApplies:!1},e&&e.gdprConsent),o=e&&e.uspConsent,s=e&&e.refererInfo?e.refererInfo.referer:void 0;return h.uniqueSiteIds=t.map((function(t){return t.params.siteId})).filter(a.uniques),{ttxSettings:r,gdprConsent:n,uspConsent:o,pageUrl:s}}(t,e),n=r.ttxSettings,o=r.gdprConsent,s=r.uspConsent,u=r.pageUrl,c=function(t,e){return function(t,e){var r={};return t.forEach((function(t){var n=e(t);r[n]=r[n]||[],r[n].push(t)})),r}(e.map(x),!0===(t&&t.enableSRAMode)?v:y)}(n,t),d=[];for(var l in c)d.push(b({bidRequests:c[l],gdprConsent:o,uspConsent:s,pageUrl:u,ttxSettings:n}));return d},interpretResponse:function(t,e){var r=t.body,n=r.seatbid,i=r.cur,u=void 0===i?"USD":i;return(0,a.isArray)(n)?n.filter((function(t){return(0,a.isArray)(t.bid)&&t.bid.length>0})).reduce((function(t,e){return t.concat(e.bid.map((function(t){return function(t,e){var r=t.adomain&&t.adomain.length,n={requestId:t.impid,bidderCode:l,cpm:t.price,width:t.w,height:t.h,ad:t.adm,ttl:t.ttl||60,creativeId:t.crid,mediaType:(0,o.Z)(t,"ext.ttx.mediaType",s.Mk),currency:e,netRevenue:!0};return r&&(n.meta={advertiserDomains:t.adomain}),n.mediaType===s.pX&&("xml"===(0,o.Z)(t,"ext.ttx.vastType","xml")?n.vastXml=n.ad:n.vastUrl=n.ad),n}(t,u)})))}),[]):[]},getUserSyncs:function(t,e,r,n){var o=t.iframeEnabled?h.uniqueSiteIds.map((function(t){return function(t){var e=t.siteId,r=void 0===e?"zzz000000000003zzz":e,n=t.gdprConsent,o=void 0===n?{}:n,a=t.uspConsent,s=i.vc.getConfig("ttxSettings"),u=s&&s.syncUrl||"https://ssc-cms.33across.com/ps/?m=xch&rt=html&ru=deb",c=o.consentString,d=o.gdprApplies,p={type:"iframe",url:"".concat(u,"&id=").concat(r,"&gdpr_consent=").concat(encodeURIComponent(c),"&us_privacy=").concat(encodeURIComponent(a))};return"boolean"==typeof d&&(p.url+="&gdpr=".concat(Number(d))),p}({gdprConsent:r,uspConsent:n,siteId:t})})):[];return h.uniqueSiteIds=[],o}};(0,n.dX)(U),window.fsprebid.installedModules.push("33acrossBidAdapter")}},function(t){t(t.s=5690)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[9327],{7845:function(e,t,r){var n=r(1609),a=r(8265),i=r(9853),o=r(265),p=r(8962);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=window;try{e=new URL(r.refererInfo.referer),n=window.top}catch(t){e=n.location,(0,i.logMessage)(t)}var o=[],p={deviceWidth:n.screen.width,deviceHeight:n.screen.height,language:navigator&&navigator.language?navigator.language.split("-")[0]:"",secure:1,host:e.host,page:e.pathname,placements:o};r&&(r.uspConsent&&(p.ccpa=r.uspConsent),r.gdprConsent&&(p.gdpr=r.gdprConsent));for(var s=t.length,d=0;d1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};d(r,this.formatKeyValues(e.keyValues)),d(r,this.formatConsentData(t));var n="";return(0,a._each)(r,(function(e,t){n+="".concat(t,"=").concat(encodeURIComponent(e),";")})),n},formatOneMobileDynamicParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isSecureProtocol()&&(e.secure=1),d(e,this.formatConsentData(t));var r="";return(0,a._each)(e,(function(e,t){r+="&".concat(t,"=").concat(encodeURIComponent(e))})),r},buildOpenRtbRequestData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={id:e.params.id,imp:e.params.imp};if(this.isEUConsentRequired(t)&&((0,s.Z)(r,"regs.ext.gdpr",1),t.gdpr.consentString&&(0,s.Z)(r,"user.ext.consent",t.gdpr.consentString)),t.uspConsent&&(0,s.Z)(r,"regs.ext.us_privacy",t.uspConsent),"object"===p(e.userId)){r.user=r.user||{},r.user.ext=r.user.ext||{};var n=B(e);n.length>0&&(r.user.ext.eids=n)}return r},isEUConsentRequired:function(e){return!!(e&&e.gdpr&&e.gdpr.gdprApplies)},formatKeyValues:function(e){var t={};return(0,a._each)(e,(function(e,r){t["kv".concat(r)]=e})),t},formatConsentData:function(e){var t={};return this.isEUConsentRequired(e)&&(t.gdpr=1,e.gdpr.consentString&&(t.euconsent=e.gdpr.consentString)),e.uspConsent&&(t.us_privacy=e.uspConsent),t},parsePixelItems:function(e){var t=/\w*(?=\s)/,r=/src=("|')(.*?)\1/,n=[];if(e){var i=e.match(/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi);i&&i.forEach((function(e){var i=e.match(t)[0],o=e.match(r)[2];i&&o&&n.push({type:i===C?x:O,url:o})}))}return n},_parseBidResponse:function(e,t){var r,n;try{r=e.seatbid[0].bid[0]}catch(e){return}if(r.ext&&r.ext.encp)n=r.ext.encp;else if(null===(n=r.price)||isNaN(n))return void(0,a.logError)("Invalid price in bid response",m,r);return{bidderCode:t.bidderCode,requestId:t.bidId,ad:r.adm,cpm:n,width:r.w,height:r.h,creativeId:r.crid||0,pubapiId:e.id,currency:e.cur||"USD",dealId:r.dealid,netRevenue:!0,meta:{advertiserDomains:r&&r.adomain?r.adomain:[]},ttl:t.ttl}},isOneMobileBidder:M,isSecureProtocol:function(){return"https:"===document.location.protocol}};(0,c.dX)(j),window.fsprebid.installedModules.push("aolBidAdapter")}},function(e){e(e.s=8578)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[273],{51:function(e,r,t){var a=t(265),n=t(9853),i=t(8962),s=t(1609),o={apacdex:{ENDPOINT:"https://useast.quantumdex.io/auction/apacdex",USERSYNC:"https://sync.quantumdex.io/usersync/apacdex"},quantumdex:{ENDPOINT:"https://useast.quantumdex.io/auction/quantumdex",USERSYNC:"https://sync.quantumdex.io/usersync/quantumdex"},valueimpression:{ENDPOINT:"https://useast.quantumdex.io/auction/adapter",USERSYNC:"https://sync.quantumdex.io/usersync/adapter"}},d=o.apacdex,u={},c={},p={code:"apacdex",supportedMediaTypes:["banner","video"],aliases:["quantumdex","valueimpression"],isBidRequestValid:function(e){if(!e.params)return!1;if(!e.params.siteId&&!e.params.placementId)return!1;if(!(0,a.Z)(e,"mediaTypes.banner")&&!(0,a.Z)(e,"mediaTypes.video"))return!1;if((0,a.Z)(e,"mediaTypes.banner")){if(!(0,a.Z)(e,"mediaTypes.banner.sizes"))return!1}else if((0,a.Z)(e,"mediaTypes.video")&&!(0,a.Z)(e,"mediaTypes.video.playerSize"))return!1;return!0},buildRequests:function(e,r){var t,s,p,l,f=[];d=o[e[0].bidder],l=i.vc.getConfig("debug"),e.forEach((function(e){e.schain&&(t=t||e.schain),e.userIdAsEids&&(s=s||e.userIdAsEids),e.params&&e.params.geo&&function(e){return!!(0,n.isPlainObject)(e)&&(!!e.lat&&(!!e.lon&&!!e.accuracy))}(e.params.geo)&&(p=e.params.geo);var r=0;if(null!=u[e.adUnitCode])r=u[e.adUnitCode];else{var a=function(e){if(e.length<=0)return!1;for(var r=0,t=0,a=0;a=r&&(r=n,t=a)}return e[t][0]+"x"+e[t][1]}(e.sizes);a&&(null!=c[a]?(c[a]++,r=c[a]):(c[a]=0,r=0))}u[e.adUnitCode]=r,e.targetKey=r;var i=function(e){if(!(0,n.isFn)(e.getFloor))return e.params.floorPrice?e.params.floorPrice:null;var r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return(0,n.isPlainObject)(r)&&!isNaN(r.floor)&&"USD"===r.currency?r.floor:null}(e);i&&(e.bidFloor=i),f.push(JSON.parse(JSON.stringify(e)))}));var m={};m.tmax=r.timeout,l&&(m.test=1),m.device={},m.device.ua=navigator.userAgent,m.device.height=window.screen.width,m.device.width=window.screen.height,m.device.dnt=function(){try{if(window.top.doNotTrack&&"1"==window.top.doNotTrack)return 1}catch(e){}try{if(navigator.doNotTrack&&("yes"==navigator.doNotTrack||"1"==navigator.doNotTrack))return 1}catch(e){}try{if(navigator.msDoNotTrack&&"1"==navigator.msDoNotTrack)return 1}catch(e){}return 0}(),m.device.language=navigator.language;var g=function(e){if(i.vc.getConfig("pageUrl"))return i.vc.getConfig("pageUrl");if((0,a.Z)(e,"refererInfo.referer"))return e.refererInfo.referer;try{return window.top.location.href}catch(e){return window.location.href}}(r);return m.site={},m.site.page=g,m.site.referrer=function(e){if(e&&(0,a.Z)(e,"refererInfo.referer"))return e.refererInfo.referer;try{return window.top.document.referrer}catch(e){return window.document.referrer}}(r),m.site.hostname=function(e){return i.vc.getConfig("publisherDomain")?i.vc.getConfig("publisherDomain").replace("http://","").replace("https://","").replace("www.","").split(/[/?#:]/)[0]:e?e.replace("http://","").replace("https://","").replace("www.","").split(/[/?#:]/)[0]:e}(g),r&&r.gdprConsent&&(m.gdpr={},m.gdpr.gdprApplies=!!r.gdprConsent.gdprApplies,r.gdprConsent.consentString&&(m.gdpr.consentString=r.gdprConsent.consentString)),r&&r.uspConsent&&(m.us_privacy=r.uspConsent),t&&(m.schain=t),s&&(m.eids=s),p&&(m.geo=p),m.bids=f.map((function(e){return{params:e.params,mediaTypes:e.mediaTypes,transactionId:e.transactionId,sizes:e.sizes,bidId:e.bidId,bidFloor:e.bidFloor}})),{method:"POST",url:d.ENDPOINT,data:m,withCredentials:!0,bidderRequests:f}},interpretResponse:function(e,r){var t=e.body;if(!t||!(0,n.isPlainObject)(t))return[];var a=t.bids;if(!a||!(0,n.isArray)(a))return[];var i=[];return a.forEach((function(e){var r=e.dealId||"",t={requestId:e.requestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creativeId,currency:e.currency,netRevenue:e.netRevenue,ttl:e.ttl,mediaType:e.mediaType};r.length>0&&(t.dealId=r),e.vastXml?t.vastXml=(0,n.replaceAuctionPrice)(e.vastXml,e.cpm):t.ad=(0,n.replaceAuctionPrice)(e.ad,e.cpm),t.meta={},e.meta&&e.meta.advertiserDomains&&(0,n.isArray)(e.meta.advertiserDomains)&&(t.meta.advertiserDomains=e.meta.advertiserDomains),i.push(t)})),i},getUserSyncs:function(e,r){var t=[];try{e.iframeEnabled&&t.push({type:"iframe",url:d.USERSYNC}),r.length>0&&r[0].body&&r[0].body.pixel&&r[0].body.pixel.forEach((function(r){"image"===r.type&&e.pixelEnabled&&t.push({type:"image",url:r.url}),"iframe"===r.type&&e.iframeEnabled&&t.push({type:"iframe",url:r.url})}))}catch(e){}return t}};(0,s.dX)(p),window.fsprebid.installedModules.push("apacdexBidAdapter")}},function(e){e(e.s=51)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[3864],{3231:function(e,r,a){var t=a(9853),n=a(265),i=a(4877),s=a(8962),o=a(1609),d=a(8265),p=a(4766),u=a(1879),c=a(1929),l=a(5849),m=a(9624);function f(e){return f="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},f(e)}function v(){return v=Object.assign||function(e){for(var r=1;re.length)&&(r=e.length);for(var a=0,t=new Array(r);a0&&(x.member_id=h),p&&(x.device=d),l&&(x.app=c);var E=s.vc.getConfig("appnexusAuctionKeywords");if((0,t.isPlainObject)(E)){var S=(0,t.transformBidderParamKeywords)(E);S.length>0&&S.forEach(O),x.keywords=S}if(s.vc.getConfig("adpod.brandCategoryExclusion")&&(x.brand_category_uniqueness=!0),f.enabled&&(x.debug=f,(0,t.logInfo)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(f,null,4))),r&&r.gdprConsent&&(x.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies},r.gdprConsent.addtlConsent&&-1!==r.gdprConsent.addtlConsent.indexOf("~"))){var T=r.gdprConsent.addtlConsent,P=T.substring(T.indexOf("~")+1);x.gdpr_consent.addtl_consent=P.split(".").map((function(e){return parseInt(e,10)}))}if(r&&r.uspConsent&&(x.us_privacy=r.uspConsent),r&&r.refererInfo){var q={rd_ref:encodeURIComponent(r.refererInfo.referer),rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes,rd_stk:r.refererInfo.stack.map((function(e){return encodeURIComponent(e)})).join(",")};x.referrer_detection=q}if((0,u.sE)(e,D)&&e.filter(D).forEach((function(e){var r=function(e,r){var a=r.mediaTypes.video,n=a.durationRangeSec,i=a.requireExactDuration,s=function(e){var r=e.adPodDurationSec,a=e.durationRangeSec,n=e.requireExactDuration,i=(0,t.getMinValueFromArray)(a),s=Math.floor(r/i);return n?Math.max(s,a.length):s}(r.mediaTypes.video),o=(0,t.getMaxValueFromArray)(n),d=e.filter((function(e){return e.uuid===r.bidId})),p=t.fill.apply(void 0,y(d).concat([s]));if(i){var u=Math.ceil(s/n.length),c=(0,t.chunk)(p,u);n.forEach((function(e,r){c[r].map((function(r){X(r,"minduration",e),X(r,"maxduration",e)}))}))}else p.map((function(e){return X(e,"maxduration",o)}));return p}(a,e),n=x.tags.filter((function(r){return r.uuid!==e.bidId}));x.tags=[].concat(y(n),y(r))})),e[0].userId){var F=[];K(F,(0,n.Z)(e[0],"userId.flocId.id"),"chrome.com",null),K(F,(0,n.Z)(e[0],"userId.criteoId"),"criteo.com",null),K(F,(0,n.Z)(e[0],"userId.netId"),"netid.de",null),K(F,(0,n.Z)(e[0],"userId.idl_env"),"liveramp.com",null),K(F,(0,n.Z)(e[0],"userId.tdid"),"adserver.org","TDID"),K(F,(0,n.Z)(e[0],"userId.uid2.id"),"uidapi.com","UID2"),e[0].userId.pubProvidedId&&e[0].userId.pubProvidedId.forEach((function(e){e.uids.forEach((function(r){F.push({source:e.source,id:r.id})}))})),F.length&&(x.eids=F)}a[0].publisher_id&&(x.publisher_id=a[0].publisher_id);var V=function(e,r){var a=[],n={withCredentials:!0},i="https://ib.adnxs.com/ut/v3/prebid";if(R(r)||(i="https://ib.adnxs-simple.com/ut/v3/prebid"),"TRUE"!==(0,t.getParameterByName)("apn_test").toUpperCase()&&!0!==s.vc.getConfig("apn_test")||(n.customHeaders={"X-Is-Test":1}),e.tags.length>15){var o=(0,t.deepClone)(e);(0,t.chunk)(e.tags,15).forEach((function(e){o.tags=e;var t=JSON.stringify(o);a.push({method:"POST",url:i,data:t,bidderRequest:r,options:n})}))}else{var d=JSON.stringify(e);a={method:"POST",url:i,data:d,bidderRequest:r,options:n}}return a}(x,r);return V},interpretResponse:function(e,r){var a=this,s=r.bidderRequest;e=e.body;var p=[];if(!e||e.error){var l="in response for ".concat(s.bidderCode," adapter");return e&&e.error&&(l+=": ".concat(e.error)),(0,t.logError)(l),p}if(e.tags&&e.tags.forEach((function(e){var r,l=(r=e)&&r.ads&&r.ads.length&&(0,u.sE)(r.ads,(function(e){return e.rtb}));if(l&&(!0===m.S.get(s.bidderCode,"allowZeroCpmBids")?l.cpm>=0:l.cpm>0)&&(0,u.q9)(a.supportedMediaTypes,l.ad_type)){var f=function(e,r,a){var s=(0,t.getBidRequest)(e.uuid,[a]),p={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:s.adUnitCode,appnexus:{buyerMemberId:r.buyer_member_id,dealPriority:r.deal_priority,dealCode:r.deal_code}};if(r.adomain&&(p.meta=v({},p.meta,{advertiserDomains:[]})),r.advertiser_id&&(p.meta=v({},p.meta,{advertiserId:r.advertiser_id})),r.buyer_member_id&&(p.meta=v({},p.meta,{dchain:function(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}(r)})),r.brand_id&&(p.meta=v({},p.meta,{brandId:r.brand_id})),r.rtb.video)switch(v(p,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastImpUrl:r.notify_url,ttl:3600}),(0,n.Z)(s,"mediaTypes.video.context")){case d.Oh:var l=(0,o.Q1)(s.bidder,r.brand_category_id);p.meta=v({},p.meta,{primaryCatId:l});var m=r.deal_priority;p.video={context:d.Oh,durationSeconds:Math.floor(r.rtb.video.duration_ms/1e3),dealTier:m},p.vastUrl=r.rtb.video.asset_url;break;case c.gZ:if(p.adResponse=e,p.adResponse.ad=p.adResponse.ads[0],p.adResponse.ad.video=p.adResponse.ad.rtb.video,p.vastXml=r.rtb.video.content,r.renderer_url){var f=(0,u.sE)(a.bids,(function(r){return r.bidId===e.uuid})),y=(0,n.Z)(f,"renderer.options");p.renderer=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.Th.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1,adUnitCode:e});try{n.setRender(F)}catch(e){(0,t.logWarn)("Prebid Error calling setRender on renderer",e)}return n.setEventHandlers({impression:function(){return(0,t.logMessage)("AppNexus outstream video impression event")},loaded:function(){return(0,t.logMessage)("AppNexus outstream video loaded event")},ended:function(){(0,t.logMessage)("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),n}(p.adUnitCode,r,y)}break;case c.LD:p.vastUrl=r.notify_url+"&redir="+encodeURIComponent(r.rtb.video.asset_url)}else if(r.rtb[d.B5]){var g=r.rtb[d.B5],b=r.viewability.config.replace("src=","data-src="),h=g.javascript_trackers;null==h?h=b:(0,t.isStr)(h)?h=[h,b]:h.push(b),p[d.B5]={title:g.title,body:g.desc,body2:g.desc2,cta:g.ctatext,rating:g.rating,sponsoredBy:g.sponsored,privacyLink:g.privacy_link,address:g.address,downloads:g.downloads,likes:g.likes,phone:g.phone,price:g.price,salePrice:g.saleprice,clickUrl:g.link.url,displayUrl:g.displayurl,clickTrackers:g.link.click_trackers,impressionTrackers:g.impression_trackers,javascriptTrackers:h},g.main_img&&(p.native.image={url:g.main_img.url,height:g.main_img.height,width:g.main_img.width}),g.icon&&(p.native.icon={url:g.icon.url,height:g.icon.height,width:g.icon.width})}else{v(p,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{if(r.rtb.trackers)for(var _=0;_|)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^
/gm,"").replace(/(
\n|
)/gm,"\n").replace(/

(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),(0,t.logMessage)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,t.logMessage)(f)}return p},getMappingFileInfo:function(){return{url:"https://acdn.adnxs-simple.com/prebid/appnexus-mapping/mappings.json",refreshInDays:2}},getUserSyncs:function(e,r,a){if(e.iframeEnabled&&R({gdprConsent:a}))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]},transformBidParams:function(e,r){var a=t.transformBidderParamKeywords;if(!0===r){var i=s.vc.getConfig("s2sConfig"),o=(0,n.Z)(i,"endpoint.p1Consent");o&&o.match("/openrtb2/prebid")&&(a=J)}return e=(0,t.convertTypes)({member:"string",invCode:"string",placementId:"number",keywords:a,publisherId:"number"},e),r&&(e.use_pmt_rule="boolean"==typeof e.usePaymentRule&&e.usePaymentRule,e.usePaymentRule&&delete e.usePaymentRule,T(e.keywords)&&e.keywords.forEach(O),Object.keys(e).forEach((function(r){var a=(0,t.convertCamelToUnderscore)(r);a!==r&&(e[a]=e[r],delete e[r])}))),e},onBidWon:function(e){e.native&&function(e){var r=function(e){var r;if((0,t.isStr)(e)&&P(e))r=e;else if((0,t.isArray)(e))for(var a=0;a0)}function O(e){T(e.value)&&""===e.value[0]&&delete e.value}function P(e){var r=e.match(E),a=null!=r&&r.length>=1,t=e.match("trk.js"),n=null!=t&&t.length>=1;return e.startsWith("0&&i.forEach(O),r.keywords=i}var s,o,c=(0,n.Z)(e,"ortb2Imp.ext.data.pbadslot");if(c&&(r.gpid=c),(e.mediaType===d.B5||(0,n.Z)(e,"mediaTypes.".concat(d.B5)))&&(r.ad_types.push(d.B5),0===r.sizes.length&&(r.sizes=q([1,1])),e.nativeParams)){var l=(s=e.nativeParams,o={},Object.keys(s).forEach((function(e){var r=x[e]&&x[e].serverName||x[e]||e,a=x[e]&&x[e].requiredParams;if(o[r]=v({},a,s[e]),(r===x.image.serverName||r===x.icon.serverName)&&o[r].sizes){var n=o[r].sizes;((0,t.isArrayOfNums)(n)||(0,t.isArray)(n)&&n.length>0&&n.every((function(e){return(0,t.isArrayOfNums)(e)})))&&(o[r].sizes=q(o[r].sizes))}r===x.privacyLink&&(o.privacy_supported=!0)})),o);r[d.B5]={layouts:[l]}}var m=(0,n.Z)(e,"mediaTypes.".concat(d.pX)),f=(0,n.Z)(e,"mediaTypes.video.context");r.hb_source=m&&"adpod"===f?7:1,(e.mediaType===d.pX||m)&&r.ad_types.push(d.pX),(e.mediaType===d.pX||m&&"outstream"!==f)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return(0,u.q9)(h,e)})).forEach((function(a){switch(a){case"context":case"playback_method":var n=e.params.video[a];n=(0,t.isArray)(n)?n[0]:n,r.video[a]=C[a][n];break;case"frameworks":break;default:r.video[a]=e.params.video[a]}})),e.params.video.frameworks&&(0,t.isArray)(e.params.video.frameworks)&&(r.video_frameworks=e.params.video.frameworks)),m&&(r.video=r.video||{},Object.keys(m).filter((function(e){return(0,u.q9)(_,e)})).forEach((function(e){switch(e){case"minduration":case"maxduration":"number"!=typeof r.video[e]&&(r.video[e]=m[e]);break;case"skip":"boolean"!=typeof r.video.skippable&&(r.video.skippable=1===m[e]);break;case"skipafter":"number"!=typeof r.video.skipoffset&&(r.video.skippoffset=m[e]);break;case"playbackmethod":if("number"!=typeof r.video.playback_method){var a=m[e];(a=(0,t.isArray)(a)?a[0]:a)>=1&&a<=4&&(r.video.playback_method=a)}break;case"api":if(!r.video_frameworks&&(0,t.isArray)(m[e])){var n=m[e].map((function(e){var r=4===e?5:5===e?4:e;if(r>=1&&r<=5)return r})).filter((function(e){return e}));r.video_frameworks=n}}}))),e.renderer&&(r.video=v({},r.video,{custom_renderer_present:!0})),e.params.frameworks&&(0,t.isArray)(e.params.frameworks)&&(r.banner_frameworks=e.params.frameworks);var y=(0,u.sE)(p.K.getAdUnits(),(function(r){return e.transactionId===r.transactionId}));return y&&y.mediaTypes&&y.mediaTypes.banner&&r.ad_types.push(d.Mk),0===r.ad_types.length&&delete r.ad_types,r}function q(e){var r=[],a={};if((0,t.isArray)(e)&&2===e.length&&!(0,t.isArray)(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===f(e))for(var n=0;n=0?t:"Unknown"}catch(e){(0,i.logError)("ATS Analytics - Error while checking user browser!",e)}}function m(e){try{var n={Data:e},t=JSON.stringify(n);(0,i.logInfo)("ATS Analytics - tried to send analytics data!"),(0,s.h)("https://analytics.rlcdn.com",(function(){(0,i.logInfo)("ATS Analytics - events sent successfully!")}),t,{method:"POST",contentType:"application/json"})}catch(e){(0,i.logError)("ATS Analytics - request encounter an error: ",e)}}var y=u((0,r.Z)({analyticsType:"endpoint"}),{track:function(e){var n=e.eventType,t=e.args;void 0!==t&&y.callHandler(n,t)}});y.originEnableAnalytics=y.enableAnalytics,y.shouldFireRequest=function(e){if(0!==e){var n=100===Math.floor(100*Math.random()+1);return(0,i.logInfo)("ATS Analytics - Should Fire Request: ",n),n}return(0,i.logInfo)("ATS Analytics - Should Fire Request: ",!1),!1},y.getUserAgent=function(){return window.navigator.userAgent},y.setSamplingCookie=function(e){var n=new Date;n.setTime(n.getTime()+864e5),c.setCookie("_lr_sampling_rate",e,n.toUTCString())},y.enableAnalytics=function(e){if(e.options.pid){y.context={events:[],pid:e.options.pid,bidWonTimeout:e.options.bidWonTimeout};var n=e.options;(0,i.logInfo)("ATS Analytics - adapter enabled! "),y.originEnableAnalytics(n)}else(0,i.logError)("ATS Analytics - Publisher ID (pid) option is not defined. Analytics won't work")},y.callHandler=function(e,n){if(e===o.EVENTS.BID_REQUESTED?l=l.concat(function(e){var n="true"===c.getCookie("_lr_env_src_ats");return e.bids.map((function(t){return{envelope_source:n,has_envelope:!!t.userId&&!!t.userId.idl_env,bidder:t.bidder,bid_id:t.bidId,auction_id:e.auctionId,user_browser:g(),user_platform:navigator.platform,auction_start:new Date(e.auctionStart).toJSON(),domain:window.location.hostname,pid:y.context.pid,adapter_version:3,bid_won:!1}}))}(n)):e===o.EVENTS.BID_RESPONSE&&f.push(function(e){return{bid_id:e.requestId,response_time_stamp:new Date(e.responseTimestamp).toJSON(),currency:e.currency,cpm:e.cpm,net_revenue:e.netRevenue}}(n)),e===o.EVENTS.AUCTION_END){var t=y.context.bidWonTimeout?y.context.bidWonTimeout:2e3,r=[];setTimeout((function(){var e=fsprebid.getAllWinningBids();if((0,i.logInfo)("ATS Analytics - winning bids: ",e),l.length){var n={};f.length?(r=l.filter((function(e){return f.filter((function(n){e.bid_id===n.bid_id&&u(e,n)}))})),e.length&&(r=r.filter((function(t){return e.filter((function(e){n.bid_id=e.requestId,n.bid_won=!0,t.bid_id===n.bid_id&&u(t,n)}))})))):r=l;try{var t=c.getCookie("_lr_env_src_ats"),o=c.getCookie("_lr_sampling_rate");o?y.shouldFireRequest(parseInt(o))&&null!=t&&((0,i.logInfo)("ATS Analytics - events to send: ",r),m(r)):function(e,n){(0,i.logInfo)("ATS Analytics - preflight request!"),(0,s.h)("https://check.analytics.rlcdn.com/check/"+y.context.pid,{success:function(t){var r=JSON.parse(t);(0,i.logInfo)("ATS Analytics - Sampling Rate: ",r);var o=r.samplingRate;y.setSamplingCookie(o);var a=Number(o);t&&o&&y.shouldFireRequest(a)&&null!=e&&((0,i.logInfo)("ATS Analytics - events to send: ",n),m(n))},error:function(){y.setSamplingCookie(0),(0,i.logInfo)("ATS Analytics - Sampling Rate Request Error!")}},void 0,{method:"GET",crossOrigin:!0})}(t,r),r=[]}catch(e){(0,i.logError)("ATS Analytics - preflight request encounter an error: ",e)}}}),t)}},a.ZP.registerAnalyticsAdapter({adapter:y,code:"atsAnalytics",gvlid:97}),window.fsprebid.installedModules.push("atsAnalyticsAdapter")},3964:function(e,n,t){t.d(n,{Z:function(){return D}});var i=t(5644),r=t(5755),o=t(9853);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e){return s="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(e)}var u=t(2319),c=i.EVENTS,l=c.AUCTION_INIT,f=c.AUCTION_END,p=c.REQUEST_BIDS,d=c.BID_REQUESTED,g=c.BID_TIMEOUT,m=c.BID_RESPONSE,y=c.NO_BID,v=c.BID_WON,T=c.BID_ADJUSTMENT,b=c.BIDDER_DONE,h=c.SET_TARGETING,A=c.AD_RENDER_FAILED,S=c.AD_RENDER_SUCCEEDED,_=c.AUCTION_DEBUG,E=c.ADD_AD_UNITS,w=c.BILLABLE_EVENT,I="endpoint",q="bundle";function D(e){var n,t=e.url,i=e.analyticsType,c=e.global,D=e.handler,N=[],B=0,k=!0;return function(){if(k){for(var e=0;e0?"?".concat(s.join("&")):"")})}return o},onTimeout:function(e){(0,r.logMessage)("concert bidder timed out"),(0,r.logMessage)(e)},onBidWon:function(e){(0,r.logMessage)("concert bidder won bid"),(0,r.logMessage)(e)}};(0,o.dX)(d);var c=(0,s.df)({bidderCode:i});function u(e){if(p()||!function(e){return!("string"===e.uspConsent&&"1YY"===e.uspConsent.toUpperCase().substring(0,2))}(e))return!1;var t="c_uid",n=c.getDataFromLocalStorage(t);return n||(n=(0,r.generateUUID)(),c.setDataInLocalStorage(t,n)),n}function p(){return"true"===c.getDataFromLocalStorage("c_nap")}window.fsprebid.installedModules.push("concertBidAdapter")}},function(e){e(e.s=4475)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[1266],{1654:function(n,e,t){var o=t(9853),a=t(8962),r=t(7602),i=t(1879);function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function l(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=!1,a=null;function c(e,t,i){if(null!=a&&clearTimeout(a),o=!0,r.rp.setConsentData(e),null!=n){for(var c=arguments.length,s=new Array(c>3?c-3:0),l=3;l1?o-1:0),r=1;r0){var r=(0,o.getAdUnitSizes)(n[0]);t=r[0][0],a=r[0][1]}return function(n){w(n,t,a)}}()((function(t,a){if(a){var r=o.logWarn;1!==b||t?t&&(r=o.logError,a="".concat(a," Canceling auction as per consentManagement config.")):a="".concat(a," 'allowAuctionWithoutConsent' activated.");for(var i=arguments.length,c=new Array(i>2?i-2:0),s=2;s1))}:2===b?function(){var e=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:p,t=n&&n.tcString;return!("boolean"==typeof e&&(!0!==e||(0,o.isStr)(t)))}:null;(0,o.isFn)(r)?r(n)?a("CMP returned unexpected value during lookup process.",n):t(P(n)):a("Unable to derive CMP version to process data. Consent object does not conform to TCF v1 or v2 specs.",n)}function P(n){return 1===b?m={consentString:n?n.getConsentData.consentData:void 0,vendorData:n?n.getVendorConsents:void 0,gdprApplies:n?n.getConsentData.gdprApplies:p}:(m={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:p},n&&n.addtlConsent&&(0,o.isStr)(n.addtlConsent)&&(m.addtlConsent=n.addtlConsent)),m.apiVersion=b,m}a.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&(n.gdpr||n.usp?n.gdpr:n))&&"object"===c(n)?((0,o.isStr)(n.cmpApi)?f=n.cmpApi:(f="iab",(0,o.logInfo)("consentManagement config did not specify cmp. Using system default setting (".concat("iab",")."))),(0,o.isNumber)(n.timeout)?u=n.timeout:(u=1e4,(0,o.logInfo)("consentManagement config did not specify timeout. Using system default setting (".concat(1e4,")."))),"boolean"==typeof n.allowAuctionWithoutConsent&&(v.value=n.allowAuctionWithoutConsent,v.definedInConfig=!0),p=!0===n.defaultGdprScope,(0,o.logInfo)("consentManagement module has been activated..."),"static"===f&&((0,o.isPlainObject)(n.consentData)?(g=n.consentData,u=0):(0,o.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),C||fsprebid.requestBids.before(h,50),C=!0,r.rp.enable(),w(),v.definedInConfig&&2===b?(0,o.logWarn)("'allowAuctionWithoutConsent' ignored for TCF 2"):v.definedInConfig||1!==b||(0,o.logInfo)("'allowAuctionWithoutConsent' using system default: (".concat(!0,")."))):(0,o.logWarn)("consentManagement config not defined, exiting consent manager")}(n.consentManagement)})),window.fsprebid.installedModules.push("consentManagement")}},function(n){n(n.s=1654)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[5160],{1366:function(n,t,e){var o=e(9853),a=e(8962),i=e(7602);function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}var s,r,u,l,p=!1,f={iab:function(n){var t,e=n.onSuccess,a=n.onError,i=(t={},{consentDataCallback:function(n,o){o&&n.uspString&&(t.usPrivacy=n.uspString),t.usPrivacy?m(t,{onSuccess:e,onError:a}):a("Unable to get USP consent string.")}}),c={},s=function(){for(var n,t,e=window;!n;){try{if("function"==typeof e.__uspapi){t=e.__uspapi,n=e;break}}catch(n){}try{if(e.frames.__uspapiLocator){n=e;break}}catch(n){}if(e===window.top)break;e=e.parent}return{uspapiFrame:n,uspapiFunction:t}}(),r=s.uspapiFrame,u=s.uspapiFunction;if(!r)return a("USP CMP not found.");(0,o.isFn)(u)?((0,o.logInfo)("Detected USP CMP is directly accessible, calling it now..."),u("getUSPData",1,i.consentDataCallback)):((0,o.logInfo)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(n,t,e){window.__uspapi=function(n,e,o){var a=Math.random()+"",i={__uspapiCall:{command:n,version:e,callId:a}};c[a]=o,t.postMessage(i,"*")},window.addEventListener("message",(function(n){var t=n&&n.data&&n.data.__uspapiReturn;t&&t.callId&&void 0!==c[t.callId]&&(c[t.callId](t.returnValue,t.success),delete c[t.callId])}),!1),window.__uspapi("getUSPData",1,e)}(0,r,i.consentDataCallback))},static:function(n){(0,n.onSuccess)(u)}};function d(n){var t=null,e=!1;function o(o,a){if(null!=t&&clearTimeout(t),e=!0,i.nX.setConsentData(o),null!=n){for(var c=arguments.length,s=new Array(c>2?c-2:0),r=2;r1?t-1:0),a=1;a1?i-1:0),s=1;se.length)&&(r=e.length);for(var t=0,a=new Array(r);t0)&&(r=(r=m.getDataFromLocalStorage(e))?decodeURIComponent(r):r)}(0,a.isStr)(r)&&"{"===r.charAt(0)&&(r=JSON.parse(r))}catch(e){(0,a.logError)(e)}return r}(p)),u&&(h.fpc=u);var I=function(e){var r=e[0],t=[];if((0,a.isArray)(r.userIdAsEids)&&r.userIdAsEids.length>0){var n={"epsilon.com":1,"adserver.org":1,"liveramp.com":1,"criteo.com":1,"id5-sync.com":1,"parrable.com":1,"liveintent.com":1};r.userIdAsEids.forEach((function(e){n.hasOwnProperty(e.source)&&t.push(e)}))}return t}(e);I.length>0&&(h.eids=I),(0,a.isEmpty)(h)||(y.user={ext:h});var A=c.vc.getConfig("ortb2")||{};return(0,a.mergeDeep)(y,A),{method:"POST",url:l,data:y}},interpretResponse:function(e,r){var t=[],n={};return e=e.body,r&&r.data&&r.data.imp&&(0,a._each)(r.data.imp,(function(e){return n[e.id]=e})),e&&(0,a.isArray)(e.seatbid)&&(0,a._each)(e.seatbid,(function(r){(0,a._each)(r.bid,(function(r){var a=parseFloat(r.price);if(a>0&&r.impid){var i=r.adm||"",o=r.nurl||"",s=n[r.impid],d={requestId:r.impid,currency:e.cur||"USD",cpm:a,creativeId:r.crid||"",ttl:300,netRevenue:!0,meta:{}};r.adomain&&r.adomain.length>0&&(d.meta.advertiserDomains=r.adomain),s.video?("<"===i.charAt(0)?d.vastXml=i:d.vastUrl=i,d.mediaType="video",d.width=s.video.w,d.height=s.video.h):(d.ad=i+'',d.width=r.w,d.height=r.h),t.push(d)}}))})),t},transformBidParams:function(e,r){return(0,a.convertTypes)({site_id:"string",secure:"number",mobile:"number"},e)},getUserSyncs:function(e,r,t,n){var i,o={},s=[];if(t&&(o.gdpr=t.gdprApplies?1:0,o.gdpr_consent=encodeURIComponent(t.consentString||"")),n&&(o.us_privacy=encodeURIComponent(n)),r&&r.ext){var d=[{urls:r.ext.fsyncs,type:"iframe"},{urls:r.ext.psyncs,type:"image"}].filter((function(r){return r.urls&&("iframe"===r.type&&e.iframeEnabled||"image"===r.type&&e.pixelEnabled)})).map((function(e){return e.urls.map((function(r){var t=(0,a.parseUrl)(r);return(0,a.mergeDeep)(t.search,o),0===Object.keys(t.search).length&&delete t.search,{type:e.type,url:(0,a.buildUrl)(t)}})).reduce((function(e,r){return e.concat(r)}),[])})).reduce((function(e,r){return e.concat(r)}),[]);s.push.apply(s,function(e){if(Array.isArray(e))return u(e)}(i=d)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return s}};function f(e){var r;return Array.isArray(e)&&(r=2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[{w:e[0],h:e[1]}]:(0,a._map)(e,(function(e){return{w:e[0],h:e[1]}}))),r}function g(e){return"video"===e.mediaType||!!(0,n.Z)(e,"mediaTypes.video")}function v(e,r,t){e&&(r[t]=e)}(0,o.dX)(l),window.fsprebid.installedModules.push("conversantBidAdapter")}},function(e){e(e.s=3444)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[6406],{6201:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _src_utils_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9853),_src_utils_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(265),_src_adloader_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6996),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1609),_src_config_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8962),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8265),_src_polyfill_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1879),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1582),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5849);function _extends(){return _extends=Object.assign||function(t){for(var e=1;e\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(i,';\n if(!slots){continue;}\n var responseSlot = slots["').concat(t,'"];\n responseSlot.callback(responseSlot.payload);\n break;\n}\n<\/script>')}function canFastBid(t){return t!==FAST_BID_VERSION_NONE}function getFastBidUrl(t){var e;return t===FAST_BID_VERSION_LATEST?e="":t?(String(t).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.logWarn)("Specifying a Fastbid version which is not supporting version selection."),e="."+t):e="."+FAST_BID_VERSION_CURRENT,PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,e)}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.logWarn)("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);(0,criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__.T)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.logInfo)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.logWarn)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(t){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_8__.dX)(spec),window.fsprebid.installedModules.push("criteoBidAdapter")},4611:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){null!==t&&this.fromHexString(t)}return t.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var t,e=!1,r="",i=this.t,s=this.DB-i*this.DB%4;if(i-- >0)for(s>s)>0&&(e=!0,r=d(t));i>=0;)s<4?(t=(this[i]&(1<>(s+=this.DB-4)):(t=this[i]>>(s-=4)&15,s<=0&&(s+=this.DB,--i)),t>0&&(e=!0),e&&(r+=d(t));return e?r:"0"},t.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var r=e.length,i=!1,s=0;--r>=0;){var a=p(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==s?this[this.t++]=a:s+4>this.DB?(this[this.t-1]|=(a&(1<>this.DB-s):this[this.t-1]|=a<=this.DB&&(s-=this.DB))}this.clamp(),i&&t.ZERO.subTo(this,this)}},t.prototype.negate=function(){var e=s();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.mod=function(e){var r=s();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<=0;--n)e[n+a+1]=this[n]>>i|o,o=(this[n]&s)<=0;--n)e[n]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.multiplyTo=function(e,r){var i=this.abs(),s=e.abs(),a=i.t;for(r.t=a+s.t;--a>=0;)r[a]=0;for(a=0;a0?(o.lShiftTo(c,_),n.lShiftTo(c,i)):(o.copyTo(_),n.copyTo(i));var u=_.t,h=_[u-1];if(0!=h){var l=h*(1<1?_[u-2]>>this.F2:0),f=this.FV/l,m=(1<=0&&(i[i.t++]=1,i.subTo(D,i)),t.ONE.dlShiftTo(u,D),D.subTo(_,_);_.t=0;){var y=i[--E]==h?this.DM:Math.floor(i[E]*f+(i[E-1]+v)*m);if((i[E]+=_.am(0,y,i,T,0,u))0&&i.rShiftTo(c,i),p<0&&t.ZERO.subTo(i,i)}}},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,a=(1<>i;for(var o=r+1;o>i;i>0&&(e[this.t-r-1]|=(this.s&a)<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new c(e):new u(e),this.exp(t,r)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=s(),o=s(),n=r.convert(this),_=a(e)-1;for(n.copyTo(i);--_>=0;)if(r.sqrTo(i,o),(e&1<<_)>0)r.mulTo(o,n,i);else{var p=i;i=o,o=p}return r.revert(i)},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.am1=function(t,e,r,i,s,a){for(;--a>=0;){var o=e*this[t++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=67108863&o}return s},t.prototype.am2=function(t,e,r,i,s,a){for(var o=32767&e,n=e>>15;--a>=0;){var _=32767&this[t],p=this[t++]>>15,d=n*_+p*o;s=((_=o*_+((32767&d)<<15)+r[i]+(1073741823&s))>>>30)+(d>>>15)+n*p+(s>>>30),r[i++]=1073741823&_}return s},t.prototype.am3=function(t,e,r,i,s,a){for(var o=16383&e,n=e>>14;--a>=0;){var _=16383&this[t],p=this[t++]>>14,d=n*_+p*o;s=((_=o*_+((16383&d)<<14)+r[i]+s)>>28)+(d>>14)+n*p,r[i++]=268435455&_}return s},t}();function s(){return new i(null)}function a(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}e.BigInteger=i,e.nbi=s,e.nbits=a;var o,n,_=[];for(o="0".charCodeAt(0),n=0;n<=9;++n)_[o++]=n;for(o="a".charCodeAt(0),n=10;n<36;++n)_[o++]=n;for(o="A".charCodeAt(0),n=10;n<36;++n)_[o++]=n;function p(t,e){var r=_[t.charCodeAt(e)];return null==r?-1:r}function d(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}e.intAt=p,e.int2char=d,e.b64toHex=function(t){var e,r="",i=0,s=0;for(e=0;e>2),s=3&a,i=1):1==i?(r+=d(s<<2|a>>4),s=15&a,i=2):2==i?(r+=d(s),r+=d(a>>2),s=3&a,i=3):(r+=d(s<<2|a>>4),r+=d(15&a),i=0))}return 1==i&&(r+=d(s<<2)),r},e.removeExtraSymbols=function(t){return t.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var c=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),u=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=s();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function h(t){var e=s();return e.fromHexString(t.toString()),e}e.nbv=h,i.ZERO=h(0),i.ONE=h(1),"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=i.prototype.am2,r=30):"Netscape"!=navigator.appName?(i.prototype.am=i.prototype.am1,r=26):(i.prototype.am=i.prototype.am3,r=28),i.prototype.DB=r,i.prototype.DM=(1<>>0;for(o[a-1][14]=Math.floor(p),o[a-1][15]=d,n=0;n>>0;var h=i[0],l=i[1],f=i[2],m=i[3],v=i[4],E=i[5],T=i[6],D=i[7];for(u=0;u<64;u++){var y=D+t.z1(v)+t.Ch(v,E,T)+r[u]+c[u],g=t.z0(h)+t.Maj(h,l,f);D=T,T=E,E=v,v=m+y>>>0,m=f,f=l,l=h,h=y+g>>>0}i[0]=i[0]+h>>>0,i[1]=i[1]+l>>>0,i[2]=i[2]+f>>>0,i[3]=i[3]+m>>>0,i[4]=i[4]+v>>>0,i[5]=i[5]+E>>>0,i[6]=i[6]+T>>>0,i[7]=i[7]+D>>>0}var b=new Array(i.length);for(D=0;D>>t|e<<32-t},t.z0=function(e){return t.ROTR(2,e)^t.ROTR(13,e)^t.ROTR(22,e)},t.z1=function(e){return t.ROTR(6,e)^t.ROTR(11,e)^t.ROTR(25,e)},t.q0=function(e){return t.ROTR(7,e)^t.ROTR(18,e)^e>>>3},t.q1=function(e){return t.ROTR(17,e)^t.ROTR(19,e)^e>>>10},t.Ch=function(t,e,r){return t&e^~t&r},t.Maj=function(t,e,r){return t&e^t&r^e&r},t}();e.Sha256=r},1582:function(t,e,r){var i=r(4611),s=r(4950);e.T=function(t,e,r,a){var o=new i.BigInteger(i.b64toHex(e)),n=new i.BigInteger(i.b64toHex(r)),_=o.modPowInt(a,n);return i.removeExtraSymbols(_.toHexString())===s.Sha256.hash(t)}}},function(t){t(t.s=6201)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[9073],{8253:function(e,o,n){var t=n(9853),r=n(5755),i=n(2661),c=n(3494),d="criteo",a=(0,n(5849).df)({gvlid:91,moduleName:d}),l="cto_bidid",s="cto_bundle",u=new Date(0).toString(),p=new Date((0,t.timestamp)()+33696e6).toString();function f(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,t.parseUrl)(e,{noDecodeWholeURL:!0});return o?"".concat(n.hostname):"".concat(n.protocol,"://").concat(n.hostname).concat(n.port?":"+n.port:"","/")}function g(e){return a.getCookie(e)||a.getDataFromLocalStorage(e)}function b(e,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location.hostname;e&&o&&(a.setDataInLocalStorage(e,o),m(e,o,p,n,!0))}function m(e,o,n,t,r){for(var i=t.split("."),c=0;ce.length)&&(r=e.length);for(var t=0,n=new Array(r);t]*?src\s*=\s*['\"]([^'\"]*?)['\"][^>]*?>/,n=u(e.match(t),2),i=n[0],o=n[1];if(e=e.replace(t,""),i&&o){var s="");e=e.replace("","".concat(s))}return e}catch(t){if(!r)return e;var a="");return e.replace("","".concat(a))}}(t.adm,t.nurl),t.ttl=3600),t.dealid&&(t.dealId=t.dealid),t.uuid=t.bidId,t.ad=t.adm,t.netRevenue=!0,t.creativeId=t.crid,t.currency="USD",t.meta=t.meta||{},t.adomain&&t.adomain.length>0&&(t.meta.advertiserDomains=t.adomain),t}return e.cpm=e.price,e;var a,c}),{price:0});return n.adm&&e.push(n),e}),[]);return t.filter((function(e){return!!e.bidId}))}return[]}return[]},buildRequests:function(e,r){var t=s.vc.getConfig("bidderTimeout"),o=null,a={id:(0,n.generateUUID)(),cur:["USD"],tmax:t-300,test:this.test()||0,site:{publisher:{id:String(e[0].params.memberid)||null}}};try{var u=s.vc.getConfig("dmx");a.user=u.user||{};var c=u.site||{};a.site=f(f({},a.site),c)}catch(e){}var d=[];e[0]&&e[0].userId&&(I(d,(0,i.Z)(e[0],"userId.idl_env"),"liveramp.com",1),I(d,(0,i.Z)(e[0],"userId.id5id.uid"),"id5-sync.com",1),I(d,(0,i.Z)(e[0],"userId.pubcid"),"pubcid.org",1),I(d,(0,i.Z)(e[0],"userId.tdid"),"adserver.org",1),I(d,(0,i.Z)(e[0],"userId.criteoId"),"criteo.com",1),I(d,(0,i.Z)(e[0],"userId.britepoolid"),"britepool.com",1),I(d,(0,i.Z)(e[0],"userId.lipb.lipbid"),"liveintent.com",1),I(d,(0,i.Z)(e[0],"userId.intentiqid"),"intentiq.com",1),I(d,(0,i.Z)(e[0],"userId.lotamePanoramaId"),"lotame.com",1),I(d,(0,i.Z)(e[0],"userId.parrableId"),"parrable.com",1),I(d,(0,i.Z)(e[0],"userId.netId"),"netid.de",1),a.user=a.user||{},a.user.ext=a.user.ext||{},a.user.ext.eids=d),a.test||delete a.test,r.gdprConsent&&(a.regs={},a.regs.ext={},a.regs.ext.gdpr=!0===r.gdprConsent.gdprApplies?1:0,!0===r.gdprConsent.gdprApplies&&(a.user={},a.user.ext={},a.user.ext.consent=r.gdprConsent.consentString)),a.regs=a.regs||{},a.regs.coppa=!0===s.vc.getConfig("coppa")?1:0,r&&r.uspConsent&&(a.regs=a.regs||{},a.regs.ext=a.regs.ext||{},a.regs.ext.us_privacy=r.uspConsent);try{o=e[0].schain,a.source={},a.source.ext={},a.source.ext.schain=o||{}}catch(e){}var p=e.map((function(e){var r,t,n,i,o={};return o.id=e.bidId,o.tagid=String(e.params.dmxid||e.adUnitCode),o.secure=1,o.bidfloor=function(e){var r=null;if("function"==typeof e.getFloor){var t=e.getFloor({currency:"USD",mediaType:e.mediaTypes.video?"video":"banner",size:e.sizes.map((function(e){return{w:e[0],h:e[1]}}))});"object"!==l(t)||"USD"!==t.currency||isNaN(parseFloat(t.floor))||(r=parseFloat(t.floor))}return null!==r?r:e.params.floor}(e),e.mediaTypes&&e.mediaTypes.video?o.video={topframe:1,skip:e.mediaTypes.video.skip||0,linearity:e.mediaTypes.video.linearity||1,minduration:e.mediaTypes.video.minduration||5,maxduration:e.mediaTypes.video.maxduration||60,playbackmethod:e.mediaTypes.video.playbackmethod||[2],api:(n=e.mediaTypes.video,i=n.api,i&&Array.isArray(i)&&i.length>0?i:[2]),mimes:e.mediaTypes.video.mimes||["video/mp4"],protocols:(r=e.mediaTypes.video,t=r.protocols,t&&Array.isArray(t)&&t.length>0?t:[2,3,5,6,7,8]),h:e.mediaTypes.video.playerSize[0][1],w:e.mediaTypes.video.playerSize[0][0]}:o.banner={topframe:1,w:v(e.sizes,"w"),h:v(e.sizes,"h"),format:v(e.sizes).map((function(e){return{w:e[0],h:e[1]}})).filter((function(e){return"number"==typeof e.w&&"number"==typeof e.h}))},o}));return p.length<=5?(a.imp=p,{method:"POST",url:b,data:JSON.stringify(a),bidderRequest:r}):function(e,r,t,n){for(var i=[];0!==e.length;)e.length>=5?i.push(e.splice(0,5)):i.push(e.splice(0,e.length));return i.map((function(e){return r.imp=e,{method:"POST",url:"https://dmx.districtm.io/b/v1",data:JSON.stringify(r),bidderRequest:t}}))}(p,a,r)},test:function(){return-1!==window.location.href.indexOf("dmTest=true")?1:0},getUserSyncs:function(e,r,t,n){var i=[],o="https://cdn.districtm.io/ids/index.html";if(t&&t.gdprApplies&&"string"==typeof t.consentString&&i.push(["gdpr",t.consentString]),n&&i.push(["ccpa",n]),i.length>0&&(o+="?"+i.map((function(e){return e.join("=")})).join("&")),e.iframeEnabled)return[{type:"iframe",url:o}]}};function v(e,r){var t=function(e,r){var t,n=e.filter((function(e){return-1===r.map((function(e){return"".concat(e.size[0],"x").concat(e.size[1])})).indexOf("".concat(e[0],"x").concat(e[1]))})),i=e.reduce((function(e,t){return 0===e.length?(e.push(t),e):(e.push(t),(e=(e=r.filter((function(r){return-1!==e.map((function(e){return"".concat(e[0],"x").concat(e[1])})).indexOf("".concat(r.size[0],"x").concat(r.size[1]))}))).sort((function(e,r){return r.s-e.s}))).map((function(e){return e.size})))}),[]);return(t=[].concat(c(i),c(n))).filter((function(e,r){return t.map((function(e){return"".concat(e[0],"x").concat(e[1])})).indexOf("".concat(e[0],"x").concat(e[1]))===r}))}(e,[{size:[300,250],s:100},{size:[728,90],s:95},{size:[320,50],s:90},{size:[160,600],s:88},{size:[300,600],s:85},{size:[300,50],s:80},{size:[970,250],s:75},{size:[970,90],s:60}]);switch(r){case"w":return t[0][0]||0;case"h":return t[0][1]||0;default:return t}}function g(e){return Array.isArray(e)&&Array.isArray(e[0])?e[0]:e}function I(e,r,t,i){(0,n.isStr)(r)&&Array.isArray(e)&&e.push({source:t,uids:[{id:r,atype:i}]})}(0,o.dX)(h),window.fsprebid.installedModules.push("districtmDMXBidAdapter")}},function(e){e(e.s=1461)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[3286],{932:function(e,r,i){var t=i(9853),n=i(265),a=i(1609),d=i(8265),o=i(4877),s=i(1879);function u(){return u=Object.assign||function(e){for(var r=1;r0&&(0,s.sE)(i.bidderRequest.bids,(function(r){return e.requestId&&r.bidId&&e.requestId===r.bidId&&r.mediaTypes&&r.mediaTypes.video&&"outstream"===r.mediaTypes.video.context}))&&(e.renderer=m.createRenderer(e,{id:r.id,url:c})),e},isMobile:function(){return/(ios|ipod|ipad|iphone|android)/i.test(navigator.userAgent)},isConnectedTV:function(){return/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(navigator.userAgent)},getDevice:function(){return{ua:navigator.userAgent,js:1,dnt:"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack?1:0,h:screen.height,w:screen.width,devicetype:m.isMobile()?1:m.isConnectedTV()?3:2,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage}},cleanProtocols:function(e){return e.protocols&&(0,s.q9)(e.protocols,7)&&((0,t.logWarn)("emx_digital: VAST 4.0 is currently not supported. This protocol has been filtered out of the request."),e.protocols=e.protocols.filter((function(e){return 7!==e}))),e},outstreamRender:function(e){e.renderer.push((function(){var r=e&&e.params&&e.params[0]&&e.params[0].video?e.params[0].video:{};window.emxVideoQueue=window.emxVideoQueue||[],window.queueEmxVideo({id:e.adUnitCode,adsResponses:e.vastXml,options:r}),window.emxVideoReady&&window.videojs&&window.emxVideoReady()}))},createRenderer:function(e,r){var i=o.Th.install({id:r.id,url:c,loaded:!1});try{i.setRender(m.outstreamRender)}catch(e){(0,t.logWarn)("Prebid Error calling setRender on renderer",e)}return i},buildVideo:function(e){var r=u(e.mediaTypes.video,e.params.video);return(0,t.isArray)(e.mediaTypes.video.playerSize[0])?(r.w=e.mediaTypes.video.playerSize[0][0],r.h=e.mediaTypes.video.playerSize[0][1]):(r.w=e.mediaTypes.video.playerSize[0],r.h=e.mediaTypes.video.playerSize[1]),m.cleanProtocols(r)},parseResponse:function(e){try{return decodeURIComponent(e.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25"))}catch(e){(0,t.logError)("emx_digitalBidAdapter","error",e)}},getReferrer:function(){try{return window.top.document.referrer}catch(e){return document.referrer}},getSite:function(e){return{domain:(0,t.parseUrl)(e.referer).hostname,page:e.referer,ref:m.getReferrer()}},getGdpr:function(e,r){return e.gdprConsent&&(r.regs={ext:{gdpr:!0===e.gdprConsent.gdprApplies?1:0}}),e.gdprConsent&&e.gdprConsent.gdprApplies&&(r.user={ext:{consent:e.gdprConsent.consentString}}),r},getSupplyChain:function(e,r){return e.bids[0]&&e.bids[0].schain&&(r.source={ext:{schain:e.bids[0].schain}}),r},getEids:function(e){return g.map(m.getUserId(e)).filter((function(e){return e}))},getUserId:function(e){return function(r){var i=r.key,t=r.source,a=r.rtiPartner,d=(0,n.Z)(e,"userId.".concat(i));return d?m.formatEid(d,t,a):null}},formatEid:function(e,r,i){return{source:r,uids:[{id:e,ext:{rtiPartner:i}}]}}},f={code:p,gvlid:183,supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){if(!e||!e.params)return(0,t.logWarn)("emx_digital: Missing bid or bid params."),!1;if(e.bidder!==p)return(0,t.logWarn)('emx_digital: Must use "emx_digital" as bidder code.'),!1;if(!e.params.tagid||!(0,t.isStr)(e.params.tagid))return(0,t.logWarn)("emx_digital: Missing tagid param or tagid present and not type String."),!1;var r;if(e.mediaTypes&&e.mediaTypes.banner){if(r=e.mediaTypes.banner.sizes?e.mediaTypes.banner.sizes:e.sizes,!m.validateSizes(r))return(0,t.logWarn)("emx_digital: Missing sizes in bid"),!1}else if(e.mediaTypes&&e.mediaTypes.video){if(!m.checkVideoContext(e))return(0,t.logWarn)("emx_digital: Missing video context: instream or outstream"),!1;if(!e.mediaTypes.video.playerSize)return(0,t.logWarn)("emx_digital: Missing video playerSize"),!1}return!0},buildRequests:function(e,r){var i=[],a="https://hb.emxdgt.com?t="+(r.timeout||"")+"&ts="+Date.now()+"&src=pbjs",d=location.protocol.indexOf("https")>-1?1:0,o=m.getDevice(),s=m.getSite(r.refererInfo);(0,t._each)(e,(function(e){var r=(0,t.getBidIdParameter)("tagid",e.params),a=parseFloat(function(e){if(!(0,t.isFn)(e.getFloor))return parseFloat((0,t.getBidIdParameter)("bidfloor",e.params));var r=e.getFloor({currency:l,mediaType:"*",size:"*"});return(0,t.isPlainObject)(r)&&!isNaN(r.floor)&&"USD"===r.currency?r.floor:null}(e))||0,o=!!e.mediaTypes.video,s={id:e.bidId,tid:e.transactionId,tagid:r,secure:d},p=(0,n.Z)(e,"ortb2Imp.ext.data.adserver.adslot");p||(p=(0,n.Z)(e,"ortb2Imp.ext.data.pbadslot")),p&&(s.ext={gpid:p.toString()});var c=u(s,o?{video:m.buildVideo(e)}:{banner:m.buildBanner(e)},a>0?{bidfloor:a,bidfloorcur:l}:{});i.push(c)}));var p={id:r.auctionId,imp:i,device:o,site:s,cur:l,version:"1.5.1"};if(p=m.getGdpr(r,u({},p)),p=m.getSupplyChain(r,u({},p)),r&&r.uspConsent&&(p.us_privacy=r.uspConsent),r.userId){var c=m.getEids(r);c.length>0&&(p.user&&p.user.ext?p.user.ext.eids=c:p.user={ext:{eids:c}})}return{method:"POST",url:a,data:JSON.stringify(p),options:{withCredentials:!0},bidderRequest:r}},interpretResponse:function(e,r){var i=[],t=e.body||{};return t.seatbid&&t.seatbid.length>0&&t.seatbid[0].bid&&t.seatbid.forEach((function(e){e=e.bid[0];var t=!1,n=m.parseResponse(e.adm)||"",a={requestId:e.id,cpm:e.price,width:e.w,height:e.h,creativeId:e.crid||e.id,dealId:e.dealid||null,currency:"USD",netRevenue:!0,ttl:e.ttl,ad:n};e.adm&&e.adm.indexOf("-1&&(t=!0,a=m.formatVideoResponse(a,u({},e),r)),a.mediaType=t?d.pX:d.Mk,e.adomain&&e.adomain.length&&(a.meta={advertiserDomains:e.adomain}),i.push(a)})),i},getUserSyncs:function(e,r,i,t){var n=[];if(e.iframeEnabled){var a="https://biddr.brealtime.com/check.html";i&&"string"==typeof i.consentString&&("boolean"==typeof i.gdprApplies?a+="?gdpr=".concat(Number(i.gdprApplies),"&gdpr_consent=").concat(i.consentString):a+="?gdpr_consent=".concat(i.consentString)),n.push({type:"iframe",url:a})}return n}};(0,a.dX)(f),window.fsprebid.installedModules.push("emx_digitalBidAdapter")}},function(e){e(e.s=932)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[8806],{2235:function(e,n,t){var i=t(9853),o=t(3494),r=t(2661),d=t(5849),c={},a=window===window.top?window:window.top,m=(0,d.eA)("enrichmentFpd");function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!m.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2==o.length)return e;var r=-2,d="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(r).join(".");var a=new Date((0,i.timestamp)()+1e4).toUTCString();m.setCookie(d,c,a,"Lax",n,void 0);var u=m.getCookie(d,void 0);u===c?(t=!1,m.setCookie(d,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(r+=-1,t=Math.abs(r)<=o.length)}while(t);return n}var l={name:"enrichments",queue:2,init:function(e,n){return c={},e.skipEnrichments?n:(0,i.mergeDeep)(((0,r.n)().referer&&(0,i.mergeDeep)(c,{site:{ref:(0,r.n)().referer}}),(0,r.n)().canonicalUrl&&(0,i.mergeDeep)(c,{site:{page:(0,r.n)().canonicalUrl}}),(t=function(e){if(e&&"string"==typeof e&&0!==e.length){var n=e.match(/^(?:https?:\/\/)?(?:www\.)?(.*?(?=(\?|\#|\/|$)))/i);return n&&n[1]}}((0,r.n)().canonicalUrl))&&((0,i.mergeDeep)(c,{site:{domain:t}}),(0,i.mergeDeep)(c,{site:{publisher:{domain:u(t)}}})),function(){var e,n;try{e=a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth,n=a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight}catch(t){e=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,n=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight}(0,i.mergeDeep)(c,{device:{w:e,h:n}})}(),function(){var e;try{e=a.document.querySelector("meta[name='keywords']")}catch(n){e=window.document.querySelector("meta[name='keywords']")}e&&e.content&&(0,i.mergeDeep)(c,{site:{keywords:e.content.replace(/\s/g,"")}})}(),c),n);var t}};(0,o.Bx)("firstPartyData",l),window.fsprebid.installedModules.push("enrichmentFpdModule")}},function(e){e(e.s=2235)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[6294],{8486:function(r,e,n){var t=n(9853),a=n(5755),c=n(3494),o=n(2661),i={name:"fabrickId",decode:function(r){return r&&r.fabrickId?{fabrickId:r.fabrickId}:void 0},getId:function(r,e,n){try{var c=r&&r.params||{};if(window.fabrickMod1&&window.fabrickMod1(c,e,n),!c||!c.apiKey||"string"!=typeof c.apiKey)return void(0,t.logError)("fabrick submodule requires an apiKey.");try{var i=function(r){return r.url?r.url:"https://fid.agkn.com/f?"}(c),s=Object.keys(c);for(var u in s){var d=s[u];if(!("url"===d||"refererInfo"===d||d.length>3&&"max"===d.substring(0,3))){var l=c[d];if(Array.isArray(l))for(var b in l)"string"!=typeof l[b]&&"number"!=typeof l[b]||(i+="".concat(d,"=").concat(l[b],"&"));else"string"!=typeof l&&"number"!=typeof l||(i+="".concat(d,"=").concat(l,"&"))}}i=i.slice(0,-1);var h=function(r){return r.refererInfo?r.refererInfo:(0,o.n)()}(c),g=new Map;return f(g,h.referer),h.stack&&h.stack[0]&&f(g,h.stack[0]),f(g,h.canonicalUrl),f(g,window.location.href),g.forEach((function(r){i=function(r,e,n,t){var a=t&&t.maxUrlLen||2e3,c=t&&t.maxRefLen||1e3,o=t&&t.maxSpaceAvailable||50;if(n&&r.lengthc&&(i=c),(n="&".concat("r","=").concat(encodeURIComponent(n))).length>=i&&("%"===(n=n.substring(0,i)).charAt(n.length-1)?n=n.substring(0,i-1):"%"===n.charAt(n.length-2)&&(n=n.substring(0,i-2))),"".concat(r).concat(n)}return r}(i,0,r,c)})),{callback:function(r){var o={success:function(a){if(window.fabrickMod2)return window.fabrickMod2(r,a,c,e,n);var o;if(a)try{o=JSON.parse(a)}catch(r){(0,t.logError)(r),o={}}r(o)},error:function(e){(0,t.logError)("fabrickId fetch encountered an error",e),r()}};(0,a.h)(i,o,null,{method:"GET",withCredentials:!0})}}}catch(r){(0,t.logError)("fabrickIdSystem encountered an error",r)}}catch(r){(0,t.logError)("fabrickIdSystem encountered an error",r)}}};function f(r,e){if(e){var n=e.split("?")[0];if(r.has(n)){var t=r.get(n);e.length>t.length&&r.set(n,e)}else r.set(n,e)}}(0,c.Bx)("userId",i),window.fsprebid.installedModules.push("fabrickIdSystem")}},function(r){r(r.s=8486)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[7910],{8303:function(e,t,n){var o=n(8962),i=n(3494),s=n(2528),f=n(9964),r=[];function u(e,t){var n,i;n=o.vc.getConfig("firstPartyData")||{},i=o.vc.getConfig("ortb2")||{},r.sort((function(e,t){return(e.queue||1)-(t.queue||1)})).forEach((function(e){i=e.init(n,i)})),o.vc.setConfig({ortb2:i}),e.call(this,t),f.e0.getHooks({hook:u}).remove()}function c(){(0,i.v5)("addBidderRequests").before(u)}(0,i.bA)("firstPartyData",(function(e){r.push(e)})),c(),(0,s.R)().refreshFpd=c,window.fsprebid.installedModules.push("fpdModule")}},function(e){e(e.s=8303)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[4366],{8029:function(e,n,t){var r=t(3964),a=t(7602),u=t(4766);function i(){return i=Object.assign||function(e){for(var n=1;n0&&s.filter((function(e){})),!1}};function a(e){var i=e.adm,r=-1===window.location.search.indexOf("fsbidprice")?e.price:25;return void 0!==e.nurl&&(i='')+i),{requestId:e.impid,cpm:r,width:e.w,height:e.h,creativeId:e.cid,currency:e.currency,netRevenue:!0,ttl:60,ad:i}}function d(e){var i={};if(i.id=e.bidId,i.adUnitCode=e.adUnitCode,i.size=e.sizes[0].join("x"),i.promo_sizes=e.sizes.slice(1).map((function(e){return e.join("x")})),i.promo_sizes=i.promo_sizes.join(","),void 0!==e.params)for(var r in e.params)i[r]=e.params[r];return i}(0,n.dX)(o),window.fsprebid.installedModules.push("freestarBidAdapter")}},function(e){e(e.s=8388)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[5296],{7652:function(t,e,o){var r=o(9853),n=o(265),a=o(8962),d=o(3494),i=o(1879),u=void 0,c={},s=!1,f=function(t){var e=c.customGptSlotMatching;if((0,r.isGptPubadsDefined)()){var o=t.reduce((function(t,e){return t[e.code]=e,t}),{});window.googletag.pubads().getSlots().forEach((function(t){var n=(0,i.sE)(Object.keys(o),e?e(t):(0,r.isAdUnitCodeMatchingSlot)(t));if(n){var a=o[n];a.ortb2Imp=a.ortb2Imp||{},a.ortb2Imp.ext=a.ortb2Imp.ext||{},a.ortb2Imp.ext.data=a.ortb2Imp.ext.data||{};var d=a.ortb2Imp.ext.data;d.adserver=d.adserver||{},d.adserver.name="gam",d.adserver.adslot=p(t.getAdUnitPath())}}))}},p=function(t){return(a.vc.getConfig("gptPreAuction")||{}).mcmEnabled?t.replace(/(^\/\d*),\d*\//,"$1/"):t},l=function(t,e){var o=t.ortb2Imp.ext.data;if(o.pbadslot)return o.pbadslot;if((0,r.isGptPubadsDefined)()){var n=window.googletag.pubads().getSlots().filter((function(t){return t.getAdUnitPath()===e}));if(0!==n.length)return 1===n.length?e:"".concat(e,"#").concat(t.code)}},b=function(t){var e=t.ortb2Imp.ext.data,o=c.customPbAdSlot;if(!e.pbadslot)if(o)e.pbadslot=o(t.code,(0,n.Z)(e,"adserver.adslot"));else{try{var r=document.getElementById(t.code);if(r.dataset.adslotid)return void(e.pbadslot=r.dataset.adslotid)}catch(t){}if(!(0,n.Z)(e,"adserver.adslot"))return e.pbadslot=t.code,!0;e.pbadslot=e.adserver.adslot}},g=function(t,e){f(e);var o=c,r=o.useDefaultPreAuction,a=o.customPreAuction;e.forEach((function(t){t.ortb2Imp=t.ortb2Imp||{},t.ortb2Imp.ext=t.ortb2Imp.ext||{},t.ortb2Imp.ext.data=t.ortb2Imp.ext.data||{};var e=t.ortb2Imp.ext;if(a||r){var o,d=(0,n.Z)(e,"data.adserver.adslot");a?o=a(t,d):r&&(o=l(t,d)),o&&(e.gpid=e.data.pbadslot=o)}else{var i=b(t);e.gpid||i||(e.gpid=e.data.pbadslot)}}));for(var d=arguments.length,i=new Array(d>2?d-2:0),s=2;se.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var n=0,r=new Array(t);na?o:a;(c>r||c===r&&o>=t&&a>=n)&&(r=c,t=o,n=a)})),[t,n]}var P={code:y,aliases:["gg"],isBidRequestValid:function(e){var t=e.params,n=e.adUnitCode,r=t.inScreen||t.inScreenPubID||t.inSlot||t.ICV||t.video||t.inVideo||t.slot||t.native||t.zone||t.pubID;if(I[r])return(0,i.logWarn)("[GumGum] Please check the implementation for ".concat(r," for the placement ").concat(n)),!1;switch(!0){case!!t.zone:case!!t.pubId:case!!t.inScreen:case!!t.inScreenPubID:case!!t.inSlot:case!!t.ICV:case!!t.video:case!!t.inVideo:case!!t.videoPubID:break;default:return(0,i.logWarn)("[GumGum] No product selected for the placement ".concat(n,", please check your implementation.")),!1}return!(t.bidfloor&&("number"!=typeof t.bidfloor||!isFinite(t.bidfloor))&&((0,i.logWarn)("[GumGum] bidfloor must be a Number"),1))},buildRequests:function(e,t){var n=[],r=t&&t.gdprConsent,c=t&&t.uspConsent,u=a.vc.getConfig("bidderTimeout"),d=t&&t.refererInfo&&t.refererInfo.referer;return(0,i._each)(e,(function(e){var t,a,p=e.bidId,f=e.mediaTypes,v=void 0===f?{}:f,y=e.params,g=void 0===y?{}:y,h=e.schain,w=e.transactionId,I=e.userId,x=void 0===I?{}:I,P=e.ortb2Imp,z=e.adUnitCode,D=void 0===z?"":z,k=function(e,t,n){var r=Object.keys(e)[0]||"banner",i={floor:0,currency:"USD"};if("function"==typeof n.getFloor){var o=n.getFloor({mediaType:r,size:"*"}),a=o.currency,c=o.floor;c&&(i.floor=c),a&&(i.currency=a),t&&c&&"USD"===a&&(i.floor=Math.max(t,parseFloat(c)))}else t&&(i.floor=t);return i}(v,g.bidfloor,e),T=k.currency,A=k.floor,R=function(e){var t=["uid","eid","lipbid"];return Object.keys(e).reduce((function(n,r){var i=e[r];switch(m(i)){case"string":n[r]=i;break;case"object":var o=t.filter((function(e){return i.hasOwnProperty(e)}));o.length&&(n[r]=i[o[0]])}return n}),{})}(x),U=(0,o.Z)(P,"ext.data.pbadslot")||(0,o.Z)(P,"ext.data.adserver.adslot"),E=[1,1],G={},V=new Date,q=V.getTime(),N=V.getTimezoneOffset();for(var M in G.lt=q,G.to=N,D&&(G.aun=D),R)G[M]=R[M];if(U&&(G.gpid=U),v.banner?E=v.banner.sizes:v.video&&(E=v.video.playerSize,G=function(e){var t=e.minduration,n=e.maxduration,r=e.linearity,o=e.startdelay,a=e.placement,c=e.protocols,u=void 0===c?[]:c,d=e.playerSize,s=void 0===d?[]:d,p=(0,i.parseSizesInput)(s),l=b(p[0]&&p[0].split("x"),2),f=l[0],m=l[1],v="";return u.length&&(v=u.join(",")),{mind:t,maxd:n,li:r,sd:o,pt:a,pr:v,viw:f,vih:m}}(v.video)),S&&(G.pv=S),A&&(G.fp=A,G.fpc=T),g.iriscat&&"string"==typeof g.iriscat&&(G.iriscat=g.iriscat),g.irisid&&"string"==typeof g.irisid&&(G.irisid=g.irisid),g.zone||g.pubId)if(g.zone?G.t=g.zone:G.pubId=g.pubId,G.pi=2,g.slot){var B=b(C(E),2),W=B[0],X=B[1];G.maxw=W,G.maxh=X,G.si=g.slot,G.pi=3,G.bf=E.reduce((function(e,t){return"".concat(e).concat(e&&",").concat(t[0],"x").concat(t[1])}),"")}else g.native?(G.ni=g.native,G.pi=5):v.video&&(G.pi=2===v.video.linearity?6:7);else G=l(l({},G),function(e,t){var n={};if(e.inScreenPubID&&(n.pubId=e.inScreenPubID,n.pi=2),e.inScreen&&(n.t=e.inScreen,n.pi=2),e.inSlot){var r=b(C(t),2),i=r[0],o=r[1];n.maxw=i,n.maxh=o,n.si=e.inSlot,n.pi=3,n.bf=t.reduce((function(e,t){return"".concat(e).concat(e&&",").concat(t[0],"x").concat(t[1])}),"")}return e.ICV&&(n.ni=e.ICV,n.pi=5),e.videoPubID&&(n.pubId=e.videoPubID,n.pi=7),e.video&&(n.t=e.video,n.pi=7),e.inVideo&&(n.t=e.inVideo,n.pi=6),n}(g,E));r&&(G.gdprApplies=r.gdprApplies?1:0),G.gdprApplies&&(G.gdprConsent=r.consentString),c&&(G.uspConsent=c),h&&h.nodes&&(G.schain=(a="".concat((t=h).ver,",").concat(t.complete),t.nodes.map((function(e){a+="!".concat(encodeURIComponent(e.asi||""),","),a+="".concat(encodeURIComponent(e.sid||""),","),a+="".concat(encodeURIComponent(e.hp||""),","),a+="".concat(encodeURIComponent(e.rid||""),","),a+="".concat(encodeURIComponent(e.name||""),","),a+="".concat(encodeURIComponent(e.domain||""))})),a)),n.push({id:p,tmax:u,tId:w,pi:G.pi,selector:g.selector,sizes:E,url:"https://g2.gumgum.com/hbid/imp",method:"GET",data:s(G,O(d),j(x))})})),n},interpretResponse:function(e,t){var n=[],o=e.body;if(!o||o.err){var a=t.data||{},c=a.si||a.ni||a.t||a.pubId,d=o?o.err.drt:18e5;I[c]={productId:a.pi,timestamp:(new Date).getTime()},setTimeout((function(){I[c]&&delete I[c]}),d),(0,i.logWarn)("[GumGum] Please check the implementation for ".concat(c))}var p=s({ad:{price:0,id:0,markup:"",width:0,height:0},pag:{pvid:0},meta:{adomain:[],mediaType:""}},o),f=p.ad,m=f.price,v=f.id,y=f.markup,g=f.cur,w=f.width,O=f.height,j=f.maxw,C=f.maxh,P=p.cw,z=p.pag.pvid,D=p.jcsi,k=p.meta,T=k.adomain,A=k.mediaType,R=t.data||{},U=R.pi,E=6===U||7===U?r.pX:r.Mk,G=3===U&&9===R.si,V={advertiserDomains:T||[],mediaType:A||E},q=(0,i.parseSizesInput)(t.sizes);if(j&&C)q=["".concat(j,"x").concat(C)];else if(5===U&&(0,u.q9)(q,"1x1"))q=["1x1"];else if(2===U&&(0,u.q9)(q,"1x1")){var N=t.sizes&&t.sizes.reduce((function(e,t){var n=b(t,2),r=n[0],i=n[1];return w!==r&&O!==i||e.push(t.join("x")),e}),[])||[];q=N.length?N:(0,i.parseSizesInput)(t.sizes)}var M=b(q[0].split("x"),2),B=M[0],W=M[1];return D&&(o.jcsi=h),S=z,v&&n.push(l(l({ad:P?x(P,s({},o,{bidRequest:t})):y},E===r.pX&&{ad:y,vastXml:y}),{},{mediaType:E,cpm:G?.1:m,creativeId:v,currency:g||"USD",height:W,netRevenue:!0,requestId:t.id,ttl:60,width:B,meta:V})),n},getUserSyncs:function(e,t){return t.map((function(e){return e.body&&e.body.pxs&&e.body.pxs.scr||[]})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return{type:"f"===e.t?"iframe":"image",url:e.u}}))},supportedMediaTypes:w};(0,d.dX)(P),window.fsprebid.installedModules.push("gumgumBidAdapter")}},function(e){e(e.s=8195)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[2980],{1135:function(a,r,o){var t=o(5755),e=o(5849),d=o(3494),i=o(9853),s="haloId",l=(0,e.df)({gvlid:561,moduleName:"halo"}),n={name:s,decode:function(a){var r=l.getDataFromLocalStorage("auHaloId");return(0,i.isStr)(r)?{haloId:r}:a&&"string"==typeof a.haloId?{haloId:a.haloId}:void 0},getId:function(a){(0,i.isPlainObject)(a.params)||(a.params={});var r,o,e=(r=a.params.url,"https://id.halo.ad.gt/api/v1/pbhid",o=a.params.urlArg,(0,i.isFn)(r)?r(o):(0,i.isStr)(r)?r:"https://id.halo.ad.gt/api/v1/pbhid");return{callback:function(a){var r=l.getDataFromLocalStorage("auHaloId");if((0,i.isStr)(r))a({haloId:r});else{var o={success:function(r){var o;if(r)try{o=JSON.parse(r)}catch(a){(0,i.logError)(a)}a(o)},error:function(r){(0,i.logError)("".concat(s,": ID fetch encountered an error"),r),a()}};(0,t.h)(e,o,void 0,{method:"GET"})}}}}};(0,d.Bx)("userId",n),window.fsprebid.installedModules.push("haloIdSystem")}},function(a){a(a.s=1135)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[4425],{7806:function(a,t,r){var e=r(5755),i=r(8962),n=r(2528),o=r(5849),s=r(3494),l=r(9853);function c(a,t,r){return t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}function u(){return u=Object.assign||function(a){for(var t=1;t1?t-1:0),e=1;e=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw a}}}}function I(e,r){if(e){if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,r):void 0}}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t0&&(a.meta.advertiserDomains=e.adomain),a}function N(e){return Array.isArray(e)&&2===e.length&&(0,n.isInteger)(e[0])&&(0,n.isInteger)(e[1])}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(N(e))return e[0]===r[0]&&e[1]===r[1];for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:[];return N(e)?e:!!N(e[0])&&e[0]}function _(e,r,t){if(e)return b(b({},(0,u.sE)(t,(function(r){return r.bidId===e}))),(0,u.sE)(r,(function(r){return r.id===e})))}function J(e,r,t,d){var c="https://htlb.casalemedia.com/cygnus",p=function(e,r){var t=[],a={};if((0,n.isArray)(e)){var o,s=x(e);try{for(s.s();!(o=s.n()).done;){var d=o.value;A.hasOwnProperty(d.source)&&(0,i.Z)(d,"uids.0")&&(a[d.source]=!0,""!=A[d.source]&&(d.uids[0].ext={rtiPartner:A[d.source]}),delete d.uids[0].atype,t.push(d))}}catch(e){s.e(e)}finally{s.f()}}if(r&&r.id&&r.version){var c={source:"chrome.com",uids:[{id:r.id,ext:{rtiPartner:"flocId",ver:r.version}}]};t.push(c),a["chrome.com"]=!0}return{toSend:t,seenSources:a}}((0,i.Z)(e,"0.userIdAsEids"),(0,i.Z)(e,"0.userId.flocId")),u=p.toSend,l=function(){var e=s.vc.getConfig("pageUrl");try{return new URL(e).href}catch(r){return void(0,n.logWarn)("IX Bid Adapter: invalid pageUrl config property value set: ".concat(e))}}()||(0,i.Z)(r,"refererInfo.referer");if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var m=window.headertag.getIdentityInfo();if(m&&"object"===y(m))for(var f in m)if(m.hasOwnProperty(f)){var v=m[f];!v.responsePending&&v.data&&"object"===y(v.data)&&Object.keys(v.data).length&&!p.seenSources[v.data.source]&&u.push(v.data)}}if(r&&r.bidderCode===S&&!p.seenSources["liveramp.com"])return[];var h={};h.id=e[0].bidderRequestId.toString(),h.site={},h.ext={},h.ext.source="prebid",h.ext.ixdiag={},h.ext.ixdiag.msd=0,h.ext.ixdiag.msi=0,h.imp=[],h.at=1;var I=function(e){for(var r=e.map((function(e){return e.transactionId})).filter((function(e,r,t){return t.indexOf(e)===r})),t={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"6.19.0",userIds:W(e[0])},n=function(n){if(o=e.filter((function(e){return e.transactionId===r[n]}))[0],(0,i.Z)(o,"mediaTypes")){if(Object.keys(o.mediaTypes).length>1&&t.mfu++,(0,i.Z)(o,"mediaTypes.native")&&t.nu++,(0,i.Z)(o,"mediaTypes.banner")&&t.bu++,"outstream"===(0,i.Z)(o,"mediaTypes.video.context")){t.ou++;var a="object"===y((0,i.Z)(o,"renderer")||(0,i.Z)(o,"mediaTypes.video.renderer"));t.ren=t.ren&&a?(0,i.Z)(t,"ren"):a}"instream"===(0,i.Z)(o,"mediaTypes.video.context")&&t.iu++,t.allu++}},a=0;a0&&(h.user={},h.user.eids=u),document.referrer&&""!==document.referrer&&(h.site.ref=document.referrer),r){if(r.gdprConsent){var Z=r.gdprConsent;Z.hasOwnProperty("gdprApplies")&&(h.regs={ext:{gdpr:Z.gdprApplies?1:0}}),Z.hasOwnProperty("consentString")&&(h.user=h.user||{},h.user.ext={consent:Z.consentString||""},Z.hasOwnProperty("addtlConsent")&&Z.addtlConsent&&(h.user.ext.consented_providers_settings={consented_providers:Z.addtlConsent}))}r.uspConsent&&(0,a.Z)(h,"regs.ext.us_privacy",r.uspConsent),l&&(h.site.page=l)}s.vc.getConfig("coppa")&&(0,a.Z)(h,"regs.coppa",1);var z={};z.s=e[0].params.siteId,z.v=d,z.ac="j",z.sd=1,8.1===d&&(z.nf=1);var k=r&&r.bidderCode||"ix",j=s.vc.getConfig(k),D=[],R=0,B=Object.keys(t),F="".concat(c).concat((0,n.parseQueryStringParameters)(b(b({},z),{},{r:JSON.stringify(h)}))).length;if(F>E)return(0,n.logError)("IX Bid Adapter: Base request size has exceeded maximum request size.",{bidder:w,code:7}),D;var N=F,U=0,q=!1;if(j){if("object"===y(j.firstPartyData)){var M=j.firstPartyData,_="?";for(var J in M)M.hasOwnProperty(J)&&(_+="".concat(encodeURIComponent(J),"=").concat(encodeURIComponent(M[J]),"&"));_=_.slice(0,-1),(U=encodeURIComponent(_).length)=E||D.length>=4)return"break";for(var i=t[B[r]],d=i.missingCount,p=void 0===d?0:d,u=i.missingImps,l=void 0===u?[]:u,m=i.ixImps,f=!1,y=E-N,v={ixImps:void 0===m?[]:m,missingBannerImpressions:l},x=Object.keys(v).map((function(e){return v[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,r){return e.concat.apply(e,g(r))}),[]),I=encodeURIComponent(JSON.stringify({impressionObjects:x})).length;x.length&&I>y;)f=!0,x.pop(),I=encodeURIComponent(JSON.stringify({impressionObjects:x})).length;var O=t[B[r]].gpid,S=t[B[r]].dfp_ad_unit_code;if(x.length&&o.Mk in x[0]){var P=x[0],Z={id:P.id,banner:{topframe:P.banner.topframe,format:x.map((function(e){var r=e.banner;return{w:r.w,h:r.h,ext:e.ext}}))}};(S||O)&&(Z.ext={},Z.ext.dfp_ad_unit_code=S,Z.ext.gpid=O),"bidfloor"in x[0]&&(Z.bidfloor=x[0].bidfloor),"bidfloorcur"in x[0]&&(Z.bidfloorcur=x[0].bidfloorcur),h.imp.push(Z),h.ext.ixdiag.msd+=p,h.ext.ixdiag.msi+=l.length}else{var A;x.forEach((function(e){return(0,a.Z)(e,"ext.gpid",O)})),(A=h.imp).push.apply(A,g(x))}N+=I;var k=s.vc.getConfig("ortb2")||{};if(!(0,n.isEmpty)(k)&&!q){h.ext.ixdiag.fpd=!0;var j=b({},k.site||k.context);Object.keys(j).forEach((function(e){-1===T.SITE.indexOf(e)&&delete j[e]}));var C=b({},k.user);Object.keys(C).forEach((function(e){-1===T.USER.indexOf(e)&&delete C[e]}));var X=(0,n.deepClone)(h);if(X.site=(0,n.mergeDeep)({},X.site,j),X.user=(0,n.mergeDeep)({},X.user,C),"".concat(c).concat((0,n.parseQueryStringParameters)(b(b({},z),{},{r:JSON.stringify(X)}))).lengthr.video.maxduration)return(0,n.logError)("IX Bid Adapter: video minduration [".concat(r.video.minduration,"] cannot be greater than video maxduration [").concat(r.video.maxduration,"]"),{bidder:w,code:9}),{};var d=a&&a.context||t&&t.context;if(d&&!r.video.hasOwnProperty("placement")&&(d===m.LD?r.video.placement=1:d===m.gZ?r.video.placement=4:(0,n.logWarn)("IX Bid Adapter: Video context '".concat(d,"' is not supported"))),!r.video.w||!r.video.h){var c=M((0,i.Z)(r,"video.playerSize"))||M((0,i.Z)(e,"params.size"));if(!c)return(0,n.logWarn)("IX Bid Adapter: Video size is missing in [mediaTypes.video] missing"),{};r.video.w=c[0],r.video.h=c[1],(0,i.Z)(r,"ext.sid")||(r.ext.sid=(0,n.parseGPTSingleSizeArray)(c))}return B(e,r,o.pX),r}(e);0!=Object.keys(t).length&&(r[e.transactionId]={},r[e.transactionId].ixImps=[],r[e.transactionId].ixImps.push(t),r[e.transactionId].gpid=(0,i.Z)(e,"ortb2Imp.ext.gpid"))}function V(e,r,t){var a=b(b({},{detectMissingSizes:!0}),s.vc.getConfig("ix")),d=function(e){var r=R(e);r.banner={};var t=(0,i.Z)(e,"params.size");return t&&(r.banner.w=t[0],r.banner.h=t[1],(0,i.Z)(r,"ext.sid")||(r.ext.sid=(0,n.parseGPTSingleSizeArray)(t))),r.banner.topframe=(0,n.inIframe)()?0:1,B(e,r,o.Mk),r}(e),c=U((0,i.Z)(e,"mediaTypes.banner.sizes"),(0,i.Z)(e,"params.size"));t.hasOwnProperty(e.transactionId)||(t[e.transactionId]={}),t[e.transactionId].gpid=(0,i.Z)(e,"ortb2Imp.ext.gpid"),t[e.transactionId].dfp_ad_unit_code=(0,i.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),c&&(t[e.transactionId].hasOwnProperty("ixImps")||(t[e.transactionId].ixImps=[]),t[e.transactionId].ixImps.push(d)),a.hasOwnProperty("detectMissingSizes")&&a.detectMissingSizes&&function(e,r,t){var a=e.transactionId;if(r.hasOwnProperty(a)){var o=[];r[a].hasOwnProperty("missingSizes")&&(o=r[a].missingSizes),L(o,e.params.size),r[a].missingSizes=o}else if((0,i.Z)(e,"mediaTypes.banner.sizes")){var s=(0,n.deepClone)(e.mediaTypes.banner.sizes);L(s,e.params.size);var d={missingSizes:s,impression:t};r[a]=d}}(e,r,d)}function Q(e,r,t){var i=(0,n.deepClone)(r);return i.ext.sid=(0,n.parseGPTSingleSizeArray)(t),i.banner.w=t[0],i.banner.h=t[1],B(e,i,o.Mk),i}function $(e){if("ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===w){var r={hasEnforcementHook:!1,valid:(0,n.hasDeviceAccess)()};(0,c.S6)(10,w,r,(function(r){r.valid&&function(e){if(X.localStorageIsEnabled()){var r;try{r=JSON.parse(X.getDataFromLocalStorage(C)||"{}")}catch(e){(0,n.logWarn)("ix can not read ixdiag from localStorage.")}var t=new Date;if(Object.keys(r).map((function(e){var i=new Date(e);i.setDate(i.getDate()+7)-t<0&&delete r[e]})),"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===w){var i=t.toISOString().slice(0,10),a=e.arguments[1].code;a&&(r[i]=r[i]||{},Number(r[i][a])||(r[i][a]=0),r[i][a]++)}X.setDataInLocalStorage(C,JSON.stringify(r))}}(e)}))}}function H(e){e.renderer.push((function(){var r={width:e.width,height:e.height,timeout:3e3};e.vastXml?window.IXOutstreamPlayer(e.vastXml,e.adUnitCode,r):window.IXOutstreamPlayer(e.vastUrl,e.adUnitCode,r)}))}function Y(e){var r=f.Th.install({id:e,url:"https://js-sec.indexww.com/htv/video-player.js",loaded:!1});try{r.setRender(H)}catch(e){(0,n.logWarn)("Prebid Error calling setRender on renderer",e)}return r}var K={code:w,gvlid:10,aliases:[{code:S,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:P,isBidRequestValid:function(e){D||(p.on(d.EVENTS.AUCTION_DEBUG,$),p.on(d.EVENTS.AD_RENDER_FAILED,$),D=!0);var r,t,a=(0,i.Z)(e,"params.video"),o=(0,i.Z)(e,"params.size"),s=(0,i.Z)(e,"mediaTypes.banner.sizes"),c=(0,i.Z)(e,"mediaTypes.video"),u=(0,i.Z)(e,"mediaTypes.video.playerSize"),l=e.params.hasOwnProperty("bidFloor"),m=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,n.contains)(P,e.mediaType))return(0,n.logWarn)("IX Bid Adapter: media type is not supported."),!1;if((0,i.Z)(e,"mediaTypes.banner")&&!s)return!1;if(o){var f=M(o);if(!f)return(0,n.logError)("IX Bid Adapter: size has invalid format.",{bidder:w,code:1}),!1;if(!U(e.sizes,f)&&!U(u,f)&&!U(s,f))return(0,n.logError)("IX Bid Adapter: bid size is not included in ad unit sizes or player size.",{bidder:w,code:2}),!1}if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,n.logError)("IX Bid Adapter: siteId must be string or number type.",{bidder:w,code:4}),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,n.logError)("IX Bid Adapter: siteId must valid value",{bidder:w,code:4}),!1;if((l||m)&&!(l&&m&&(r=e.params.bidFloor,t=e.params.bidFloorCur,Boolean("number"==typeof r&&"string"==typeof t&&t.match(/^[A-Z]{3}$/)))))return(0,n.logError)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format.",{bidder:w,code:5}),!1;if(c&&a){var g=q(c,a);if(g.length)return g.forEach((function(e){(0,n.logError)(e,{bidder:w,code:3})})),!1}return!0},buildRequests:function(e,r){var t=[],n={},a={},s={},d={};for(var c in e.forEach((function(e){var r=Object.keys((0,i.Z)(e,"mediaTypes",{}));switch(function(e){return(0,i.Z)(e,"params.video")&&(0,i.Z)(e,"mediaTypes.video")?o.pX:o.Mk}(e)){case o.Mk:V(e,d,n);break;case o.pX:G(e,a)}(0,u.q9)(r,o.Mk)&&(0,u.q9)(r,o.pX)&&(s[e.transactionId]=e)})),Object.keys(s).forEach((function(e){var r=s[e];n[e]||V(r,d,n),a[e]||G(r,a)})),d)if(d.hasOwnProperty(c)){var p=d[c].missingSizes;n.hasOwnProperty(c)||(n[c]={}),n[c].hasOwnProperty("missingImps")||(n[c].missingImps=[],n[c].missingCount=0);for(var l=d[c].impression,m=0;m0&&t.push.apply(t,g(J(e,r,n,7.2))),Object.keys(a).length>0&&t.push.apply(t,g(J(e,r,a,8.1))),t},interpretResponse:function(e,r){var t=[],a=null;if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return t;for(var o=e.body,s=o.seatbid,d=0;de.length)&&(n=e.length);for(var r=0,t=new Array(n);r-1&&r[e][1].splice(t,1)})),r[e][0].length=0),1===r[e]||r[e][0].length||r[e][1].length||(r[e]=1)})),r),s=function(){var e;try{e=window.top}catch(n){e=window}return{screenWidth:e.screen.width,screenHeight:e.screen.height,innerWidth:e.innerWidth,innerHeight:e.innerHeight}}(),u=function(){if(!window.top)return null;var e,n=new URLSearchParams(window.top.location.search);return function(e){return 0===Object.keys(e).length?null:e}((e={ggAdbuyid:n.get("gg_adbuyid"),ggDealid:n.get("gg_dealid"),ggEadbuyid:n.get("gg_eadbuyid")},Object.fromEntries(Object.entries(e).filter((function(e){var n,r,t=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(a.push(t.value),!n||a.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return a(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return t[0],null!=t[1]})))))}(),c={zone:e.map((function(e){return parseInt(e.params.zone)})).filter((function(e,n,r){return r.indexOf(e)===n})),referer:n.refererInfo.referer,sw:s.screenWidth,sh:s.screenHeight,ww:s.innerWidth,wh:s.innerHeight,c:o,id:e[0].params.zone,sizes:{},ggExt:u};e.forEach((function(e){var n=e.params.zone,r=c.sizes;r[n]=r[n]||[],r[n].push.apply(r[n],e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes)})),(0,i.Z)(e[0],"userId.pubcid")?c.pubcid=(0,i.Z)(e[0],"userId.pubcid"):(0,i.Z)(e[0],"crumbs.pubcid")&&(c.pubcid=(0,i.Z)(e[0],"crumbs.pubcid")),c.uids=e[0].userId,n&&n.gdprConsent&&(c.gdpr_consent={consent_string:n.gdprConsent.consentString,consent_required:"boolean"!=typeof n.gdprConsent.gdprApplies||n.gdprConsent.gdprApplies}),n&&n.uspConsent&&(c.us_privacy=n.uspConsent),c.version={prebid:"6.19.0",jp_adapter:"1.8.2"},e[0].schain&&(c.schain=e[0].schain);var d=JSON.stringify(c);return{method:"POST",url:"https://pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date,data:d,bids:e}},interpretResponse:function(e,n){var r=e.body,t=[];return n.bids.forEach((function(e){var n=function(e,n){var r=e.zone;if(n[r])for(var t=n[r].length;t--;)if(u(e,n[r][t]))return n[r].splice(t,1).pop();return!1}(e.params,r.bid);if(n){var i=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&e.mediaTypes.banner.sizes.length&&e.mediaTypes.banner.sizes[0]||[],a={requestId:e.bidId,creativeId:n.id,width:i[0]||n.width,height:i[1]||n.height,ad:n.adm,cpm:n.price,netRevenue:!0,currency:n.currency||"USD",ttl:n.ttl||s.time,format:n.format,meta:{advertiserDomains:n.adomain&&n.adomain.length>0?n.adomain:[]}};n.ext&&n.ext.pg&&(a.adserverTargeting={hb_deal_justpremium:"jp_pg"}),t.push(a)}})),t},getUserSyncs:function(e,n,r,t){var i="https://pre.ads.justpremium.com/v/1.0/t/sync?_c=a"+Math.random().toString(36).substring(7)+Date.now();return r&&"boolean"==typeof r.gdprApplies&&r.gdprApplies&&r.consentString&&(i=i+"&consentString="+encodeURIComponent(r.consentString)),t&&(i=i+"&usPrivacy="+encodeURIComponent(t)),e.iframeEnabled&&o.push({type:"iframe",url:i}),o}};function u(e,n){var r=n.format;return e.allow&&e.allow.length?e.allow.indexOf(r)>-1:!e.exclude||!e.exclude.length||e.exclude.indexOf(r)<0}(0,t.dX)(s),window.fsprebid.installedModules.push("justpremiumBidAdapter")}},function(e){e(e.s=5502)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[2703],{4156:function(e,t,r){var n=r(9853),a=r(8962),i=r(1609),o=r(5849),c=r(8265);function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[0].userId&&e[0].userId.tdid&&(r=e[0].userId.tdid);var u=d({},{sessionId:m._getSessionId(),requestCount:m._getRequestCount(),timeout:t.timeout,currency:o,cpmGranularity:1,timestamp:(new Date).getTime(),cpmRange:{floor:0,ceil:20},bidIDs:c,bidSizes:s,prebidRawBidRequests:e},m._getAllMetadata(r,t.uspConsent,t.gdprConsent)),l=encodeURIComponent(JSON.stringify(u));return d({},t,{method:"GET",url:"".concat("https://krk.kargo.com","/api/v2/bid"),data:"json=".concat(l),currency:o})},interpretResponse:function(e,t){var r=e.body,n=[];for(var a in r){var i=r[a],o=void 0;i.metadata&&i.metadata.landingPageDomain&&(o={clickUrl:i.metadata.landingPageDomain[0],advertiserDomains:i.metadata.landingPageDomain}),n.push({requestId:a,cpm:Number(i.cpm),width:i.width,height:i.height,ad:i.adm,ttl:300,creativeId:i.id,dealId:i.targetingCustom,netRevenue:!0,currency:i.currency||t.currency,meta:o})}return n},getUserSyncs:function(e,t,r,n){var a=[],i=m._generateRandomUuid(),o=m._getClientId(),c=r&&r.gdprApplies?1:0,d=r&&r.consentString?r.consentString:"";if("string"==typeof n&&4==n.length&&1==n[0]&&"Y"==n[2])return a;if(e.iframeEnabled&&i&&o)for(var s=0;s<5;s++)a.push({type:"iframe",url:"https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}&gdpr={GDPR}&gdpr_consent={GDPR_CONSENT}&us_privacy={US_PRIVACY}".replace("{UUID}",o).replace("{SEED}",i).replace("{INDEX}",s).replace("{GDPR}",c).replace("{GDPR_CONSENT}",d).replace("{US_PRIVACY}",n||"")});return a},supportedMediaTypes:p,_readCookie:function(e){if(!f.cookiesAreEnabled())return null;for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n0)&&(t=g.getDataFromLocalStorage(e,void 0))}return t}function u(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.timestamp)()+7*m;if(e&&t){var r=new Date(o).toUTCString();g.cookiesAreEnabled()&&g.setCookie(e,t,r,"Lax",a,void 0),g.hasLocalStorage()&&(g.setDataInLocalStorage("".concat(e,"_exp"),String(o),void 0),g.setDataInLocalStorage(e,t,void 0))}}function S(e){if(e){if(g.cookiesAreEnabled()){var t=new Date(0).toUTCString();g.setCookie(e,"",t,"Lax",a,void 0)}g.hasLocalStorage()&&g.removeDataFromLocalStorage(e,void 0)}}var _={name:v,gvlid:95,decode:function(e,t){return(0,i.isStr)(e)?{lotamePanoramaId:e}:void 0},getId:function(e,t,o){a=_.findRootDomain();var n=(e&&e.params||{}).clientId,s=!(0,i.isEmpty)(n),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t={data:f(d),expiryTimestampMs:0,clientExpiryTimestampMs:0};try{if(e){var o=f("".concat(p,"_").concat(e));(0,i.isStr)(o)&&(t.clientExpiryTimestampMs=parseInt(o,10))}var a=f(p);(0,i.isStr)(a)&&(t.expiryTimestampMs=parseInt(a,10))}catch(e){(0,i.logError)(e)}return t}(n),m=Date.now()>v.expiryTimestampMs;if(s&&Date.now()=m||s.top>0&&e-s.top>=m)&&(s.left<0&&s.right>=p||s.left>0&&t-s.left>=p)?!d&&o?(d=Date.now(),f()):o&&Date.now()-d1&&(i.size=n),i.mediaType=t,r.push(i)}function w(e){return e.reduce((function(e,t){return t.h*t.wa.x||r.xa.y||r.y0&&(t.banner=(n=a,(0,r.isArray)(n)&&2===n.length&&!(0,r.isArray)(n[0])?[h(n)]:n.map((function(e){return h(e)})))),e.nativeParams)try{t.native=JSON.stringify(e.nativeParams)}catch(e){(0,r.logError)("".concat(p," : Incorrect JSON : bidRequest.nativeParams"))}e.params.crid&&(t.tagid=e.params.crid.toString());var u=parseFloat(e.params.bidfloor||e.params.bidFloor);u&&(t.bidfloor=u);var l=function(e){var t=document.getElementById(e);if(!t&&-1!==e.indexOf("/")){var n=(0,r.getGptSlotInfoForAdUnitCode)(e).divId;(0,r.isStr)(n)&&(t=document.getElementById(n))}if(t&&t.getBoundingClientRect){var i=t.getBoundingClientRect(),a={};return a.top_left={y:i.top,x:i.left},a.bottom_right={y:i.bottom,x:i.right},a}return null}(e.adUnitCode);if(l&&t.banner&&0!==t.banner.length){var f=function(e){return{top_left:{x:e.top_left.x+window.pageXOffset,y:e.top_left.y+window.pageYOffset},bottom_right:{x:e.bottom_right.x+window.pageXOffset,y:e.bottom_right.y+window.pageYOffset}}}(l);t.ext.coordinates=f,t.ext.viewability=x(l.top_left,w(t.banner)),x(f.top_left,w(t.banner))>.5?t.ext.visibility=1:t.ext.visibility=2}else t.ext.visibility=0;var m=function(e){var t=[];return"function"==typeof e.getFloor&&[d.Mk,d.pX,d.B5].forEach((function(n){e.mediaTypes.hasOwnProperty(n)&&(n==d.Mk?e.mediaTypes.banner.sizes.forEach((function(r){v(e,n,r,t)})):v(e,n,"*",t))})),t}(e);return m&&m.length>0&&(t.bidfloors=m),t}(e)})),tmax:t.timeout||o.vc.getConfig("bidderTimeout")};var n}(e,t);return{method:"POST",url:(n=a.ext.customer_id,"https://prebid.media.net/rtb/prebid?cid="+encodeURIComponent(n)),data:JSON.stringify(a)}},interpretResponse:function(e,t){var n=[];if(!e||!e.body)return(0,r.logInfo)("".concat(p," : response is empty")),n;var i=e.body.bidList;return(0,r.isArray)(i)&&0!==i.length?((n=i.filter((function(e){return function(e){return!1===e.no_bid&&parseFloat(e.cpm)>0}(e)}))).forEach(I),n):((0,r.logInfo)("".concat(p," : no bids")),n)},getUserSyncs:function(e,t){var n,i=(n=t,!(0,r.isEmpty)(n)&&n[0].body&&n[0].body.ext&&(0,r.isArray)(n[0].body.ext.csUrl)?n[0].body.ext.csUrl:[]);return e.iframeEnabled?b(i,"iframe"):e.pixelEnabled?b(i,"image"):void 0},onTimeout:function(e){try{T({name:"client_timeout",value:e.length,related_data:e[0].timeout||o.vc.getConfig("bidderTimeout")},e)}catch(e){}},onBidWon:function(e){try{T({name:"client_bid_won",value:e.cpm},[e])}catch(e){}},clearMnData:function(){f={}},getWindowSize:function(){return{w:window.screen.width||-1,h:window.screen.height||-1}}};(0,a.dX)(S),window.fsprebid.installedModules.push("medianetBidAdapter")}},function(e){e(e.s=6414)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[8534],{498:function(e,t,n){var r=n(265),a=n(9853),i=n(4806),o=n(8962),d=n(1609),s=n(8265),c=n(1879);function u(e){return 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},u(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0:!(!e.params.unit||!t)},buildRequests:function(e,t){if(0===e.length)return[];var n,i,d=[],u=function(e){return e.reduce((function(e,t){var n;return n=t,(0,r.Z)(n,"mediaTypes.video")&&!(0,r.Z)(n,"mediaTypes.banner")||n.mediaType===s.pX?e[0].push(t):e[1].push(t),e}),[[],[]])}(e),m=(i=2,function(e){if(Array.isArray(e))return e}(n=u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,d=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){d=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(d)throw a}}return i}}(n,i)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=m[0],h=m[1];return h.length>0&&d.push(function(e,t){var n=[],i=!1,d=b(e,t),c=(0,a._map)(e,(function(e){return e.params.unit}));return d.aus=(0,a._map)(e,(function(e){return(0,a.parseSizesInput)(e.mediaTypes.banner.sizes).join(",")})).join("|"),d.divids=(0,a._map)(e,(function(e){return encodeURIComponent(e.adUnitCode)})).join(","),d.aucs=(0,a._map)(e,(function(e){var t=(0,r.Z)(e,"ortb2Imp.ext.data.pbadslot");return encodeURIComponent(t||"")})).join(","),c.some((function(e){return e}))&&(d.auid=c.join(",")),e.some((function(e){return e.params.doNotTrack}))&&(d.ns=1),(!0===o.vc.getConfig("coppa")||e.some((function(e){return e.params.coppa})))&&(d.tfcd=1),e.forEach((function(e){if(e.params.customParams){var t=(0,a._map)(Object.keys(e.params.customParams),(function(t){return function(e,t){var n=t[e];return(0,a.isArray)(n)&&(n=n.join(",")),(e.toLowerCase()+"="+n.toLowerCase()).replace("+",".").replace("/","_")}(t,e.params.customParams)})),r=window.btoa(t.join("&"));i=!0,n.push(r)}else n.push("")})),i&&(d.tps=n.join(",")),g(d,s.Mk,e),{method:"GET",url:d.ph?"https://u.openx.net/w/1.0/arj":"https://".concat(e[0].params.delDomain,"/w/1.0/arj"),data:d,payload:{bids:e,startTime:new Date}}}(h,t)),f.length>0&&f.forEach((function(e){d.push(function(e,t){var n=function(e,t){var n,i,o=(0,r.Z)(e,"mediaTypes.video"),d=b([e],t),u=(0,r.Z)(e,"params.video")||{},p=(0,r.Z)(e,"mediaTypes.video.context"),m=(0,r.Z)(e,"mediaTypes.video.playerSize");(0,a.isArray)(e.sizes)&&2===e.sizes.length&&!(0,a.isArray)(e.sizes[0])?(n=parseInt(e.sizes[0],10),i=parseInt(e.sizes[1],10)):(0,a.isArray)(e.sizes)&&(0,a.isArray)(e.sizes[0])&&2===e.sizes[0].length?(n=parseInt(e.sizes[0][0],10),i=parseInt(e.sizes[0][1],10)):(0,a.isArray)(m)&&2===m.length&&(n=parseInt(m[0],10),i=parseInt(m[1],10));var f={w:n,h:i},h=e.params.video||e.params.openrtb||{};h.openrtb&&(h=h.openrtb),(0,a.isArray)(h.imp)&&(h=h.imp[0].video),Object.keys(h).filter((function(e){return(0,c.q9)(l,e)})).forEach((function(e){return f[e]=h[e]})),Object.keys(o).filter((function(e){return(0,c.q9)(l,e)})).forEach((function(e){return f[e]=o[e]}));var v={imp:[{video:f}]};d.openrtb=JSON.stringify(v),d.auid=e.params.unit,d.vwd=n||u.vwd,d.vht=i||u.vht,"outstream"===p&&(d.vos="101"),u.mimes&&(d.vmimes=u.mimes),e.params.test&&(d.vtest=1);var y=(0,r.Z)(e,"ortb2Imp.ext.data.pbadslot");return y&&(d.aucs=encodeURIComponent(y)),g(d,s.pX,[e]),d}(e,t);return{method:"GET",url:n.ph?"https://u.openx.net/v/1.0/avjp":"https://".concat(e.params.delDomain,"/v/1.0/avjp"),data:n,payload:{bid:e,startTime:new Date}}}(e,t))})),d},interpretResponse:function(e,t){var n=e.body,r=function(e){return/avjp$/.test(e.url)?s.pX:s.Mk}(t);return r===s.pX?function(e,t){var n=t.bid,r=(t.startTime,[]);if(void 0!==e&&""!==e.vastUrl&&e.pub_rev>0){var i=(0,a.parseUrl)(e.vastUrl).search||{},o={};o.requestId=n.bidId,e.deal_id&&(o.dealId=e.deal_id),o.ttl=300,o.netRevenue=!0,o.currency=e.currency,o.cpm=parseInt(e.pub_rev,10)/1e3,o.width=parseInt(e.width,10),o.height=parseInt(e.height,10),o.creativeId=e.adid,o.vastUrl=e.vastUrl,o.mediaType=s.pX,e.ph=i.ph,e.colo=i.colo,e.ts=i.ts,r.push(o)}return r}(n,t.payload):function(e,t){for(var n=t.bids,r=(t.startTime,e.ads.ad),a=[],i=0;i0?s.meta.advertiserDomains=o.adomain:s.meta.advertiserDomains=[],o.adv_id&&(s.meta.dspid=o.adv_id),a.push(s)}}return a}(n,t.payload)},getUserSyncs:function(e,t,n,a){if(e.iframeEnabled||e.pixelEnabled){var i=e.iframeEnabled?"iframe":"image",o=(0,r.Z)(t,"0.body.ads.pixels")||(0,r.Z)(t,"0.body.pixels")||function(e,t){var n=[];return e&&(n.push("gdpr="+(e.gdprApplies?1:0)),n.push("gdpr_consent="+encodeURIComponent(e.consentString||""))),t&&n.push("us_privacy="+encodeURIComponent(t)),"".concat("https://u.openx.net/w/1.0/pd").concat(n.length>0?"?"+n.join("&"):"")}(n,a);return[{type:i,url:o}]}},transformBidParams:function(e,t){return(0,a.convertTypes)({unit:"string",customFloor:"number"},e)}};function v(e){var t,n,r,a=window,i=document,o=i.documentElement;if(e){try{a=window.top,i=window.top.document}catch(e){return}o=i.documentElement,r=i.body,t=a.innerWidth||o.clientWidth||r.clientWidth,n=a.innerHeight||o.clientHeight||r.clientHeight}else o=i.documentElement,t=a.innerWidth||o.clientWidth,n=a.innerHeight||o.clientHeight;return"".concat(t,"x").concat(n)}function b(e,t){var n,d=(0,a.inIframe)();n={ju:o.vc.getConfig("pageUrl")||t.refererInfo.referer,ch:document.charSet||document.characterSet,res:"".concat(screen.width,"x").concat(screen.height,"x").concat(screen.colorDepth),ifr:d,tz:(new Date).getTimezoneOffset(),tws:v(d),be:1,bc:e[0].params.bc||"".concat("hb_pb","_").concat("3.0.3"),dddid:(0,a._map)(e,(function(e){return e.transactionId})).join(","),nocache:(new Date).getTime()};var s=y("ortb2.user.data");s.length>0&&(n.sm=s);var c,u,p,m,l,h=y("ortb2.site.content.data");if(h.length>0&&(n.scsm=h),e[0].params.platform&&(n.ph=e[0].params.platform),t.gdprConsent){var b=t.gdprConsent;void 0!==b.consentString&&(n.gdpr_consent=b.consentString),void 0!==b.gdprApplies&&(n.gdpr=b.gdprApplies?1:0),"iab"===o.vc.getConfig("consentManagement.cmpApi")&&(n.x_gdpr_f=1)}return t&&t.uspConsent&&(n.us_privacy=t.uspConsent),(0,r.Z)(e[0],"crumbs.pubcid")&&(0,i.Z)(e[0],"userId.pubcid",(0,r.Z)(e[0],"crumbs.pubcid")),c=n,u=e[0].userId,(0,a._each)(u,(function(e,t){var n=f[t];if(f.hasOwnProperty(t))switch(t){case"merkleId":case"flocId":case"uid2":c[n]=e.id;break;case"lipb":if(c[n]=e.lipbid,Array.isArray(e.segments)&&e.segments.length>0){var r="liveintent:"+e.segments.join("|");c.sm="".concat(c.sm?c.sm+",":"").concat(r)}break;case"parrableId":c[n]=e.eid;break;case"id5id":c[n]=e.uid;break;case"novatiq":c[n]=e.snowflake;break;default:c[n]=e}})),n=c,e[0].schain&&(n.schain=(p=e[0].schain,"".concat(p.ver,",").concat(p.complete,"!").concat((m=p.nodes,l=["asi","sid","hp","rid","name","domain"],m.map((function(e){return l.map((function(t){return e[t]||""})).join(",")})).join("!"))))),n}function y(e){var t=o.vc.getConfig(e);if(!Array.isArray(t)||!t.length)return"";var n=t.filter((function(e){return Array.isArray(e.segment)&&e.segment.length>0&&void 0!==e.name&&e.name.length>0})).reduce((function(e,t){var n="object"===u(t.ext)&&t.ext.segtax?"".concat(t.name,"/").concat(t.ext.segtax):t.name;return e[n]=(e[n]||[]).concat(t.segment.map((function(e){return e.id}))),e}),{});return Object.keys(n).map((function(e,t){return e+":"+n[e].join("|")})).join(",")}function g(e,t,n){var r=[],a=!1;n.forEach((function(e){var n=function(e,t){var n={},r=o.vc.getConfig("currency.adServerCurrency")||"USD";"function"==typeof e.getFloor&&(n=e.getFloor({currency:r,mediaType:t,size:"*"}));var a=n.floor||e.params.customFloor||0;return Math.round(1e3*a)}(e,t);n?(r.push(n),a=!0):r.push(0)})),a&&(e.aumfs=r.join(","))}(0,d.dX)(h),window.fsprebid.installedModules.push("openxBidAdapter")}},function(e){e(e.s=498)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[501],{5916:function(t,e,r){var n=r(9853),o=r(1879),i=r(5755),a=r(3494),p=r(2661),l=r(7602),u=r(5849),c=["tpc","tpcUntil","filteredUntil","filterHits"],s=["eid","ibaOptout","ccpaOptout"];function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var g="_parrable_id",v="_parrable_eid",m="_parrable_optout",h="Thu, 01 Jan 1970 00:00:00 GMT",y=(0,u.df)({gvlid:928});function w(t){if(t){var e=encodeURIComponent(function(t){var e=[];if(t.eid&&e.push("eid:"+t.eid),t.ibaOptout&&e.push("ibaOptout:1"),t.ccpaOptout&&e.push("ccpaOptout:1"),void 0!==t.tpcSupport){var r=!0===t.tpcSupport?"tpc:1":"tpc:0",n="tpcUntil:".concat(t.tpcUntil);e.push(r),e.push(n)}return t.filteredUntil&&(e.push("filteredUntil:".concat(t.filteredUntil)),e.push("filterHits:".concat(t.filterHits))),e.join(",")}(t));y.setCookie(g,e,new Date((0,n.timestamp)()+314496e5).toGMTString(),"lax")}}function I(t){return Math.floor(Date.now()/1e3+t)}function j(t,e){if(function(t){return t?t.partners||t.partner?(t.storage&&(0,n.logWarn)("User ID - parrableId submodule does not require a storage config"),!0):((0,n.logError)("User ID - parrableId submodule requires partner list"),!1):((0,n.logError)("User ID - parrableId submodule requires configParams"),!1)}(t)){var r=function(){var t=y.getCookie(g);if(t){var e=function(t){var e={};return t.split(",").forEach((function(t){var r=t.split(":");"ccpaOptout"===r[0]||"ibaOptout"===r[0]?e[r[0]]=Boolean(+r[1]):isNaN(r[1])?e[r[0]]=r[1]:e[r[0]]=+r[1]})),e}(decodeURIComponent(t)),r=(e.tpc,e.tpcUntil),n=e.filteredUntil,o=e.filterHits,i=O(e,c),a=(e.eid,e.ibaOptout,e.ccpaOptout,O(e,s));return Date.now()/1e3>=r&&(a.tpc=void 0),Date.now()/1e3e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(i.limit=s),t&&(i.gdpr=t.gdprApplies?1:0,!1!==t.gdprApplies&&(i.gdpr_consent=t.consentString)),r&&(i.us_privacy=r),"boolean"==typeof n.coopSync&&(i.coopSync=n.coopSync);var a=JSON.stringify(i);(0,g.h)(M(n.syncEndpoint,t),(function(e){try{Z((e=JSON.parse(e)).bidder_status,n)}catch(e){(0,o.logError)(e)}}),a,{contentType:"text/plain",withCredentials:!0})}}function Z(e,t){if(0!==e.length){var r=e.shift();r.no_cookie?function(e,t,r,n,i){i.syncUrlModifier&&"function"==typeof i.syncUrlModifier[r]&&(t=i.syncUrlModifier[r](e,t,r)),function(e,t,r,n,i){t?"image"===e||"redirect"===e?((0,o.logMessage)('Invoking image pixel user sync for bidder: "'.concat(r,'"')),(0,o.triggerPixel)(t,n,i)):"iframe"===e?((0,o.logMessage)('Invoking iframe user sync for bidder: "'.concat(r,'"')),(0,o.insertUserSyncIframe)(t,n,i)):((0,o.logError)('User sync type "'.concat(e,'" not supported for bidder: "').concat(r,'"')),n()):((0,o.logError)('No sync url for bidder "'.concat(r,'": ').concat(t)),n())}(e,t,r,n,i.syncTimeout)}(r.usersync.type,r.usersync.url,r.bidder,o.bind.call(Z,null,e,t),t):Z(e,t)}}p.vc.setDefaults({s2sConfig:k}),j("s2sConfig",(function(e){return function(e){if(e){var t=Array.isArray(e)?e:[e],r=[];return t.every((function(t,n,i){!function(e){["endpoint","syncEndpoint"].forEach((function(t){if((0,o.isStr)(e[t])){var r=e[t];e[t]={p1Consent:r,noP1Consent:r}}!(0,o.isPlainObject)(e[t])||e[t].p1Consent&&e[t].noP1Consent||["p1Consent","noP1Consent"].forEach((function(r){e[t][r]||(0,o.logWarn)("s2sConfig.".concat(t,".").concat(r," not defined. PBS request will be skipped in some P1 scenarios."))}))}))}(e);var s=function(e){if(e.defaultVendor){var t=e.defaultVendor,r=Object.keys(e);if(!v[t])return(0,o.logError)("Incorrect or unavailable prebid server default vendor option: "+t),!1;Object.keys(v[t]).forEach((function(n){k[n]!==e[n]&&(0,b.q9)(r,n)||(e[n]=v[t][n])}))}return e.enabled="boolean"==typeof e.enabled&&e.enabled}(t);if(!1!==s){var a=function(e){var t=Object.keys(e);if(["accountId","endpoint"].filter((function(e){return!(0,b.q9)(t,e)&&((0,o.logError)(e+" missing in server to server config"),!0)})).length>0)return!1}(t);if(!1!==a)return Array.isArray(t.bidders)&&(i[n].bidders=t.bidders.filter((function(e){return-1===r.indexOf(e)&&(r.push(e),!0)}))),!0}return(0,o.logWarn)("prebidServer: s2s config is disabled"),!1}))?w=t:void 0}}(e.s2sConfig)}));var _={sponsoredBy:1,body:2,rating:3,likes:4,downloads:5,price:6,salePrice:7,phone:8,address:9,body2:10,cta:12},R=Object.keys(_),q={icon:1,image:3},A={img:1,js:2};[_,q,{impression:1,"viewable-mrc50":2,"viewable-mrc100":3,"viewable-video50":4},A].forEach((function(e){Object.keys(e).forEach((function(t){e[e[t]]=t}))}));var U={},T={};function D(e,t,r,n){this.s2sBidRequest=e,this.bidderRequests=t,this.adUnits=r,this.s2sConfig=e.s2sConfig,this.requestedBidders=n,this.bidIdMap={},this.adUnitsByImp={},this.impRequested={},this.auctionId=t.map((function(e){return e.auctionId})).reduce((function(e,t){return(null==e||e===t)&&t})),this.requestTimestamp=(0,o.timestamp)()}function N(e){var t,r,n=function(e,t){if([e,t].every(o.isStr))return T["".concat(e).concat(t)]}(e.auctionId,e.adId);(0,o.isStr)(n)&&((0,o.logMessage)('Invoking image pixel for wurl on BID_WIN: "'.concat(n,'"')),(0,o.triggerPixel)(n),[t=e.auctionId,r=e.adId].every(o.isStr)&&(T["".concat(t).concat(r)]=void 0))}function M(e,t){return function(e){var t=!0;return e&&e.gdprApplies&&2===e.apiVersion&&(t=!(!0!==(0,s.Z)(e,"vendorData.purpose.consents.1"))),t}(t)?e.p1Consent:e.noP1Consent}function z(e){var t,r;return Array.isArray(e)&&e.length>0&&(t=e[0].gdprConsent,r=e[0].uspConsent),{gdprConsent:t,uspConsent:r}}S(D.prototype,{buildRequest:function(){var e=this,t=this.s2sBidRequest,r=this.bidderRequests,n=this.adUnits,i=this.s2sConfig,d=this.requestedBidders,u=[],l={},f=r[0],v=new Set;if(n.forEach((function(t){t.bids.forEach((function(e){null!=e.mediaTypes&&(0,o.logWarn)("Prebid Server adapter does not (yet) support bidder-specific mediaTypes for the same adUnit. Size mapping configuration will be ignored for adUnit: ".concat(t.code,", bidder: ").concat(e.bidder))}));for(var n=t.code,d=1;v.has(n);)d++,n="".concat(t.code,"-").concat(d);v.add(n),e.adUnitsByImp[n]=t;var g,m=t.nativeParams;if(m)try{g=U[n]=Object.keys(m).reduce((function(e,t){var r=m[t];function n(e){return S({required:r.required?1:0},e?(0,o.cleanObj)(e):{})}switch(t){case"image":case"icon":var i=q[t],a=(0,o.cleanObj)({type:i,w:(0,s.Z)(r,"sizes.0"),h:(0,s.Z)(r,"sizes.1"),wmin:(0,s.Z)(r,"aspect_ratios.0.min_width"),hmin:(0,s.Z)(r,"aspect_ratios.0.min_height")});if(!(a.w&&a.h||a.hmin&&a.wmin))throw"invalid img sizes (must provide sizes or min_height & min_width if using aspect_ratios)";if(Array.isArray(r.aspect_ratios)){var d=r.aspect_ratios.filter((function(e){return e.ratio_width&&e.ratio_height})).map((function(e){return"".concat(e.ratio_width,":").concat(e.ratio_height)}));d.length>0&&(a.ext={aspectratios:d})}e.push(n({img:a}));break;case"title":if(!r.len)throw"invalid title.len";e.push(n({title:{len:r.len}}));break;default:var c=_[t];c&&e.push(n({data:{type:c,len:r.len}}))}return e}),[])}catch(e){(0,o.logError)("error creating native request: "+String(e))}var h=(0,s.Z)(t,"mediaTypes.video"),C=(0,s.Z)(t,"mediaTypes.banner");t.bids.forEach((function(t){if(e.setBidRequestId(n,t.bidder,t.bid_id),c.ZP.aliasRegistry[t.bidder]){var r=c.ZP.bidderRegistry[t.bidder];r&&!r.getSpec().skipPbsAliasing&&(l[t.bidder]=c.ZP.aliasRegistry[t.bidder])}}));var O={};if(C&&C.sizes){var w=(0,o.parseSizesInput)(C.sizes).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split("x"),2),r=t[0],n=t[1];return{w:parseInt(r,10),h:parseInt(n,10)}}));O.banner={format:w},C.pos&&(O.banner.pos=C.pos)}if((0,o.isEmpty)(h)||("outstream"!==h.context||h.renderer||t.renderer?("instream"!==h.context||h.hasOwnProperty("placement")||(h.placement=1),O.video=Object.keys(h).filter((function(e){return"context"!==e})).reduce((function(e,t){return"playerSize"===t?(e.w=(0,s.Z)(h,"".concat(t,".0.0")),e.h=(0,s.Z)(h,"".concat(t,".0.1"))):e[t]=h[t],e}),{})):(0,o.logError)("Outstream bid without renderer cannot be sent to Prebid Server.")),g)try{O.native={request:JSON.stringify({context:1,plcmttype:1,eventtrackers:[{event:1,methods:[1]}],assets:g}),ver:"1.2"}}catch(e){(0,o.logError)("error creating native request: "+String(e))}var E=t.bids.reduce((function(e,n){if(null==n.bidder)return e;var o=c.ZP.bidderRegistry[n.bidder];return o&&o.getSpec().transformBidParams&&(n.params=o.getSpec().transformBidParams(n.params,!0,t,r)),e[n.bidder]=i.adapterOptions&&i.adapterOptions[n.bidder]?S({},n.params,i.adapterOptions[n.bidder]):n.params,e}),y({},(0,s.Z)(t,"ortb2Imp.ext"))),j=y(y({},t.ortb2Imp),{},{id:n,ext:E,secure:i.secure}),I=y({},(0,s.Z)(t,"ortb2Imp.ext.data"));Object.keys(I).forEach((function(e){"pbadslot"===e?"string"==typeof I[e]&&I[e]?(0,a.Z)(j,"ext.data.pbadslot",I[e]):delete j.ext.data.pbadslot:"adserver"===e?["name","adslot"].forEach((function(e){var t=(0,s.Z)(I,"adserver.".concat(e));"string"==typeof t&&t&&(0,a.Z)(j,"ext.data.adserver.".concat(e.toLowerCase()),t)})):(0,a.Z)(j,"ext.data.".concat(e),I[e])})),(0,o.mergeDeep)(j,O);var P=(0,b.sE)(f.bids,(function(e){return e.adUnitCode===t.code&&e.storedAuctionResponse}));P&&(0,a.Z)(j,"ext.prebid.storedauctionresponse.id",P.storedAuctionResponse.toString());var k=(0,b.sE)(f.bids,(function(e){return e.adUnitCode===t.code&&"function"==typeof e.getFloor}));if(k){var B;try{B=k.getFloor({currency:p.vc.getConfig("currency.adServerCurrency")||"USD"})}catch(e){(0,o.logError)("PBS: getFloor threw an error: ",e)}B&&B.currency&&!isNaN(parseFloat(B.floor))&&(j.bidfloor=parseFloat(B.floor),j.bidfloorcur=B.currency)}(j.banner||j.video||j.native)&&u.push(j)})),u.length){var g={id:f.auctionId,source:{tid:t.tid},tmax:i.timeout,imp:u,test:0,ext:{prebid:{auctiontimestamp:f.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}}}};g.ext.prebid=S(g.ext.prebid,{channel:{name:"pbjs",version:fsprebid.version}}),j("debug")&&(g.ext.prebid=S(g.ext.prebid,{debug:!0})),i.extPrebid&&"object"===O(i.extPrebid)&&(g.ext.prebid=(0,o.mergeDeep)(g.ext.prebid,i.extPrebid));var m=p.vc.getConfig("currency.adServerCurrency");m&&"string"==typeof m?g.cur=[m]:Array.isArray(m)&&m.length&&(g.cur=[m[0]]),function(e,t,r){e&&("object"===O(p.vc.getConfig("app"))?(e.app=p.vc.getConfig("app"),e.app.publisher={id:r}):(e.site={},(0,o.isPlainObject)(p.vc.getConfig("site"))&&(e.site=p.vc.getConfig("site")),(0,s.Z)(e.site,"publisher.id")||(0,a.Z)(e.site,"publisher.id",r),e.site.page||(e.site.page=t)),"object"===O(p.vc.getConfig("device"))&&(e.device=p.vc.getConfig("device")),e.device||(e.device={}),e.device.w||(e.device.w=window.innerWidth),e.device.h||(e.device.h=window.innerHeight))}(g,r[0].refererInfo.referer,i.accountId);var h=(0,s.Z)(r,"0.bids.0.schain");h&&(g.source.ext={schain:h}),(0,o.isEmpty)(l)||(g.ext.prebid.aliases=y(y({},g.ext.prebid.aliases),l));var C=(0,s.Z)(r,"0.bids.0.userIdAsEids");(0,o.isArray)(C)&&C.length>0&&(0,a.Z)(g,"user.ext.eids",C),(0,o.isArray)(E)&&E.length>0&&(d&&(0,o.isArray)(d)&&E.forEach((function(e){e.bidders&&(e.bidders=e.bidders.filter((function(e){return(0,b.q9)(d,e)})))})),(0,a.Z)(g,"ext.prebid.data.eidpermissions",E));var w,I=p.vc.getConfig("multibid");if(I&&(0,a.Z)(g,"ext.prebid.multibid",I.reduce((function(e,t){var r={};return Object.keys(t).forEach((function(e){r[e.toLowerCase()]=t[e]})),e.push(r),e}),[])),r)f.gdprConsent&&("boolean"==typeof f.gdprConsent.gdprApplies&&(w=f.gdprConsent.gdprApplies?1:0),(0,a.Z)(g,"regs.ext.gdpr",w),(0,a.Z)(g,"user.ext.consent",f.gdprConsent.consentString),f.gdprConsent.addtlConsent&&"string"==typeof f.gdprConsent.addtlConsent&&(0,a.Z)(g,"user.ext.ConsentedProvidersSettings.consented_providers",f.gdprConsent.addtlConsent)),f.uspConsent&&(0,a.Z)(g,"regs.ext.us_privacy",f.uspConsent);!0===j("coppa")&&(0,a.Z)(g,"regs.coppa",1);var P=j("ortb2")||{};return(0,o.mergeDeep)(g,P),function(e){var t=p.vc.getBidderConfig(),r=Object.keys(t).reduce((function(e,r){var n=t[r];if(n.ortb2){var i=(0,o.mergeDeep)({},n.ortb2);e.push({bidders:[r],config:{ortb2:i}})}return e}),[]);r.length&&(0,a.Z)(e,"ext.prebid.bidderconfig",r)}(g),g.imp.forEach((function(t){return e.impRequested[t.id]=t})),g}(0,o.logError)("Request to Prebid Server rejected due to invalid media type(s) in adUnit.")},interpretResponse:function(e){var t=this,r=this.bidderRequests,n=this.s2sConfig,a=[];return[["errors","serverErrors"],["responsetimemillis","serverResponseTimeMs"]].forEach((function(t){return function(e,t,r,n){var i=(0,s.Z)(t,"ext.".concat(r));i&&Object.keys(i).forEach((function(t){var r=(0,b.sE)(e,(function(e){return e.bidderCode===t}));r&&(r[n]=i[t])}))}(r,e,t[0],t[1])})),e.seatbid&&e.seatbid.forEach((function(r){(r.bid||[]).forEach((function(c){var p=t.getBidRequest(c.impid,r.seat);if(null==p){if(!n.allowUnknownBidderCodes)return void(0,o.logWarn)("PBS adapter received bid from unknown bidder (".concat(r.seat,"), but 's2sConfig.allowUnknownBidderCodes' is not set. Ignoring bid."));p=t.getBidRequest(c.impid,null)}var l=c.price,f=0!==l?d.STATUS.GOOD:d.STATUS.NO_BID,b=(0,i.m)(f,{bidder:r.seat,src:I,bidId:p?p.bidId||p.bid_Id:null,transactionId:t.adUnitsByImp[c.impid].transactionId,auctionId:t.auctionId});b.requestTimestamp=t.requestTimestamp,b.cpm=l;var v=(0,s.Z)(e,["ext","responsetimemillis",r.seat].join("."));p&&v&&(p.serverResponseTimeMs=v);var g,m,h,y=(0,s.Z)(c,"ext.prebid.bidid");(0,o.isStr)(y)&&(b.pbsBidId=y),(0,o.isStr)((0,s.Z)(c,"ext.prebid.events.win"))&&(g=t.auctionId,m=b.adId,h=(0,s.Z)(c,"ext.prebid.events.win"),[g,m].every(o.isStr)&&(T["".concat(g).concat(m)]=h));var x=(0,s.Z)(c,"ext.prebid.targeting");if((0,o.isPlainObject)(x)&&((0,o.isStr)((0,s.Z)(c,"ext.prebid.events.win"))&&(x=(0,o.getDefinedParams)(x,Object.keys(x).filter((function(e){return-1===e.indexOf("hb_winurl")&&-1===e.indexOf("hb_bidid")})))),b.adserverTargeting=x),b.seatBidId=c.id,(0,s.Z)(c,"ext.prebid.type")===u.pX){b.mediaType=u.pX;var S=t.impRequested[c.impid],w=[S.video.w,S.video.h];b.playerWidth=w[0],b.playerHeight=w[1],c.ext.prebid.cache&&"object"===O(c.ext.prebid.cache.vastXml)&&c.ext.prebid.cache.vastXml.cacheId&&c.ext.prebid.cache.vastXml.url?(b.videoCacheKey=c.ext.prebid.cache.vastXml.cacheId,b.vastUrl=c.ext.prebid.cache.vastXml.url):x&&x.hb_uuid&&x.hb_cache_host&&x.hb_cache_path&&(b.videoCacheKey=x.hb_uuid,b.vastUrl="https://".concat(x.hb_cache_host).concat(x.hb_cache_path,"?uuid=").concat(x.hb_uuid)),c.adm&&(b.vastXml=c.adm),!b.vastUrl&&c.nurl&&(b.vastUrl=c.nurl)}else if((0,s.Z)(c,"ext.prebid.type")===u.B5){var E,j;b.mediaType=u.B5,j="string"==typeof c.adm?b.adm=JSON.parse(c.adm):b.adm=c.adm;var P=(C(E={},A.img,j.imptrackers||[]),C(E,A.js,j.jstracker?[j.jstracker]:[]),E);if(j.eventtrackers&&j.eventtrackers.forEach((function(e){switch(e.method){case A.img:P[A.img].push(e.url);break;case A.js:P[A.js].push(e.url)}})),(0,o.isPlainObject)(j)&&Array.isArray(j.assets)){var k=U[c.impid];b.native=(0,o.cleanObj)(j.assets.reduce((function(e,t){var r=k[t.id];return(0,o.isPlainObject)(t.img)?e[r.img.type?q[r.img.type]:"image"]=(0,o.pick)(t.img,["url","w as width","h as height"]):(0,o.isPlainObject)(t.title)?e.title=t.title.text:(0,o.isPlainObject)(t.data)&&R.forEach((function(n){_[n]===r.data.type&&(e[n]=t.data.value)})),e}),(0,o.cleanObj)({clickUrl:j.link,clickTrackers:(0,s.Z)(j,"link.clicktrackers"),impressionTrackers:P[A.img],javascriptTrackers:P[A.js]})))}else(0,o.logError)("prebid server native response contained no assets")}else c.adm&&c.nurl?(b.ad=c.adm,b.ad+=(0,o.createTrackPixelHtml)(decodeURIComponent(c.nurl))):c.adm?b.ad=c.adm:c.nurl&&(b.adUrl=c.nurl);b.width=c.w,b.height=c.h,c.dealid&&(b.dealId=c.dealid),b.creative_id=c.crid,b.creativeId=c.crid,c.burl&&(b.burl=c.burl),b.currency=e.cur?e.cur:"USD",b.meta={};var B=(0,s.Z)(c,"ext.prebid.meta");B&&(0,o.isPlainObject)(B)&&(b.meta=(0,o.deepClone)(B)),c.adomain&&(b.meta.advertiserDomains=c.adomain);var Z=n.defaultTtl||60;b.ttl=c.exp?c.exp:Z,b.netRevenue=!c.netRevenue||c.netRevenue,a.push({adUnit:t.adUnitsByImp[c.impid].code,bid:b})}))})),a},setBidRequestId:function(e,t,r){this.bidIdMap[this.impBidderKey(e,t)]=r},getBidRequest:function(e,t){var r=this.impBidderKey(e,t);return this.bidIdMap[r]&&(0,o.getBidRequest)(this.bidIdMap[r],this.bidderRequests)},impBidderKey:function(e,t){return"".concat(e).concat(t)}});var W=(0,m.z3)("sync",(function(e,t,r,n){var i=n.onResponse,s=n.onError,a=n.onBid,d=z(t).gdprConsent,c=(0,o.deepClone)(e.ad_units).filter((function(e){return e.mediaTypes&&(e.mediaTypes.native||e.mediaTypes.banner&&e.mediaTypes.banner.sizes||e.mediaTypes.video&&e.mediaTypes.video.playerSize)})),p=c.map((function(e){return e.bids.map((function(e){return e.bidder})).filter(o.uniques)})).reduce(o.flatten).filter(o.uniques),u=new D(e,t,c,p),l=u.buildRequest(),f=l&&JSON.stringify(l);(0,o.logInfo)("BidRequest: "+f);var v=M(e.s2sConfig.endpoint,d);l&&f&&v?r(v,{success:function(e){var t;try{t=JSON.parse(e),u.interpretResponse(t).forEach(a)}catch(e){(0,o.logError)(e)}!t||t.status&&(0,b.q9)(t.status,"Error")?((0,o.logError)("error parsing response: ",t?t.status:"not valid JSON"),i(!1,p)):i(!0,p)},error:s},f,{contentType:"text/plain",withCredentials:!0}):(0,o.logError)("PBS request not made. Check endpoints.")}),"processPBSRequest");(0,o.getPrebidInternal)().setEidPermissions=function(e){E=e},c.ZP.registerBidAdapter(new function(){var e=new n.Z("prebidServer");return e.callBids=function(e,t,r,n,i){var s=z(t),a=s.gdprConsent,u=s.uspConsent;Array.isArray(w)&&(e.s2sConfig&&e.s2sConfig.syncEndpoint&&M(e.s2sConfig.syncEndpoint,a)&&B(e.s2sConfig.bidders.map((function(e){return c.ZP.aliasRegistry[e]||e})).filter((function(e,t,r){return r.indexOf(e)===t})),a,u,e.s2sConfig),W(e,t,i,{onResponse:function(e,r){e&&t.forEach((function(e){return f.emit(d.EVENTS.BIDDER_DONE,e)})),n(),function(e,t,r){e.forEach((function(e){var n=c.ZP.getBidAdapter(e);n&&n.registerSyncs&&p.vc.runWithBidder(e,o.bind.call(n.registerSyncs,n,[],t,r))}))}(r,a,u)},onError:n,onBid:function(e){var t=e.adUnit,n=e.bid;(0,l.JY)(t,n)&&r(t,n)}}))},f.on(d.EVENTS.BID_WON,N),S(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:I})},"prebidServer"),window.fsprebid.installedModules.push("prebidServerBidAdapter")}},function(e){e(e.s=3146)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[2934],{315:function(e,t,n){var o=n(9853),r=n(8962),a=n(2319),i=n(5644);function l(){return l=Object.assign||function(e){for(var t=1;t0?t=u.getDataFromLocalStorage(e):function(e){try{u.removeDataFromLocalStorage(e+b),u.removeDataFromLocalStorage(e)}catch(e){(0,o.logMessage)(e)}}(e):t=u.getDataFromLocalStorage(e)}catch(e){(0,o.logMessage)(e)}return t}(e)),"undefined"===n||"null"===n?null:n}function h(e,t,n){e&&t&&(y.typeEnabled===g?function(e,t,n,o){var r=new Date;r.setTime(r.getTime()+1e3*n*60),u.setCookie(e,t,r.toGMTString(),"Lax")}(e,t,n):y.typeEnabled===v&&function(e,t,n){try{if(void 0!==n&&null!=n){var r=new Date(Date.now()+60*n*1e3).toUTCString();u.setDataInLocalStorage(e+b,r)}u.setDataInLocalStorage(e,t)}catch(e){(0,o.logMessage)(e)}}(e,t,n))}function E(e,t){if(!e)return!1;t=t||"";var n=(0,o.parseUrl)(e);n.search.id=encodeURIComponent("pubcid:"+t);var r=(0,o.buildUrl)(n);return a.on(i.EVENTS.AUCTION_END,(function e(){a.off(i.EVENTS.AUCTION_END,e),(0,o.triggerPixel)(r)})),!0}r.vc.getConfig("pubcid",(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enable,n=e.expInterval,o=e.type,r=void 0===o?"html5,cookie":o,a=e.create,i=e.extend,l=e.pixelUrl;void 0!==t&&(y.enabled=t),void 0!==n&&(y.interval=parseInt(n,10)),isNaN(y.interval)&&(y.interval=p),void 0!==a&&(y.create=a),void 0!==i&&(y.extend=i),void 0!==l&&(y.pixelUrl=l),y.typeEnabled=null;for(var c=r.split(","),d=0;d0&&r.assets.hasOwnProperty(a)))switch(a){case P.TITLE.KEY:e[a].len||e[a].length?i={id:P.TITLE.ID,required:e[a].required?1:0,title:{len:e[a].len||e[a].length,ext:e[a].ext}}:(0,t.logWarn)("PubMatic: Error: Title Length is required for native ad: "+JSON.stringify(e));break;case P.IMAGE.KEY:e[a].sizes&&e[a].sizes.length>0?i={id:P.IMAGE.ID,required:e[a].required?1:0,img:{type:3,w:e[a].w||e[a].width||(e[a].sizes?e[a].sizes[0]:b),h:e[a].h||e[a].height||(e[a].sizes?e[a].sizes[1]:b),wmin:e[a].wmin||e[a].minimumWidth||(e[a].minsizes?e[a].minsizes[0]:b),hmin:e[a].hmin||e[a].minimumHeight||(e[a].minsizes?e[a].minsizes[1]:b),mimes:e[a].mimes,ext:e[a].ext}}:(0,t.logWarn)("PubMatic: Error: Image sizes is required for native ad: "+JSON.stringify(e));break;case P.ICON.KEY:e[a].sizes&&e[a].sizes.length>0?i={id:P.ICON.ID,required:e[a].required?1:0,img:{type:1,w:e[a].w||e[a].width||(e[a].sizes?e[a].sizes[0]:b),h:e[a].h||e[a].height||(e[a].sizes?e[a].sizes[1]:b)}}:(0,t.logWarn)("PubMatic: Error: Icon sizes is required for native ad: "+JSON.stringify(e));break;case P.VIDEO.KEY:i={id:P.VIDEO.ID,required:e[a].required?1:0,video:{minduration:e[a].minduration,maxduration:e[a].maxduration,protocols:e[a].protocols,mimes:e[a].mimes,ext:e[a].ext}};break;case P.EXT.KEY:i={id:P.EXT.ID,required:e[a].required?1:0};break;case P.LOGO.KEY:i={id:P.LOGO.ID,required:e[a].required?1:0,img:{type:2,w:e[a].w||e[a].width||(e[a].sizes?e[a].sizes[0]:b),h:e[a].h||e[a].height||(e[a].sizes?e[a].sizes[1]:b)}};break;case P.SPONSOREDBY.KEY:case P.BODY.KEY:case P.RATING.KEY:case P.LIKES.KEY:case P.DOWNLOADS.KEY:case P.PRICE.KEY:case P.SALEPRICE.KEY:case P.PHONE.KEY:case P.ADDRESS.KEY:case P.DESC2.KEY:case P.DISPLAYURL.KEY:case P.CTA.KEY:i=M(C[a],e)}}i&&i.id&&(r.assets[r.assets.length]=i)}var n=O.length,s=0;return O.forEach((function(e){for(var a=r.assets.length,t=0;t0&&(i=[],a.forEach((function(e){e.length>1&&i.push({w:e[0],h:e[1]})})),i.length>0&&(r.format=i)),r.pos=0,r.topframe=(0,t.inIframe)()?0:1}else(0,t.logWarn)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),r=b;return r}function N(e){var r,a=(0,t.mergeDeep)((0,i.Z)(e.mediaTypes,"video"),e.params.video);if(a!==b){for(var n in r={},function(e,r){(0,i.Z)(e,"placement")||(0,t.logWarn)("Video.Placement param missing for "+r)}(a,e.adUnitCode),w)a.hasOwnProperty(n)&&(r[n]=A(n,a[n],w[n]));(0,t.isArray)(e.mediaTypes.video.playerSize[0])?(r.w=parseInt(e.mediaTypes.video.playerSize[0][0],10),r.h=parseInt(e.mediaTypes.video.playerSize[0][1],10)):(0,t.isNumber)(e.mediaTypes.video.playerSize[0])&&(r.w=parseInt(e.mediaTypes.video.playerSize[0],10),r.h=parseInt(e.mediaTypes.video.playerSize[1],10))}else r=b,(0,t.logWarn)("PubMatic: Error: Video config params missing for adunit: "+e.params.adUnit+" with mediaType set as video. Ignoring video impression in the adunit.");return r}function U(e,r,a){var t=r.rtd&&r.rtd.jwplayer&&r.rtd.jwplayer.targeting||void 0,i="";if(void 0!==t&&""!==t&&t.hasOwnProperty("segments")){var n,s=t.segments.length;i+="jw-id="+t.content.id;for(var o=0;o0}(0,t._each)(P,(function(e){Y[e.ID]=e.KEY})),(0,t._each)(P,(function(e){C[e.KEY]=e}));var L={code:"pubmatic",gvlid:76,supportedMediaTypes:[o.Mk,o.pX,o.B5],aliases:[{code:"groupm",gvlid:98}],isBidRequestValid:function(e){if(e&&e.params){if(!(0,t.isStr)(e.params.publisherId))return(0,t.logWarn)("PubMatic: Error: publisherId is mandatory and cannot be numeric (wrap it in quotes in your config). Call to OpenBid will not be sent for ad unit: "+JSON.stringify(e)),!1;if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(o.pX)){var r=(0,i.Z)(e.mediaTypes,"video.mimes"),a=(0,i.Z)(e,"params.video.mimes");if(!1===q(r)&&!1===q(a))return(0,t.logWarn)("PubMatic: Error: For video ads, bid.mediaTypes.video.mimes OR bid.params.video.mimes should be present and must be a non-empty array. Call to OpenBid will not be sent for ad unit:"+JSON.stringify(e)),!1;if(!e.mediaTypes[o.pX].hasOwnProperty("context"))return(0,t.logError)("".concat(g,": no context specified in bid. Rejecting bid: "),e),!1;if("outstream"===e.mediaTypes[o.pX].context&&!(0,t.isStr)(e.params.outstreamAU)&&!e.hasOwnProperty("renderer")&&!e.mediaTypes[o.pX].hasOwnProperty("renderer"))return e.mediaTypes.hasOwnProperty(o.Mk)||e.mediaTypes.hasOwnProperty(o.B5)?(delete e.mediaTypes[o.pX],(0,t.logWarn)("".concat(g,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: '),e),!0):((0,t.logError)("".concat(g,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting bid: '),e),!1)}return!0}return!1},buildRequests:function(e,r){if(r&&h.includes(r.bidderCode))(0,t.logInfo)("For all publishers using "+r.bidderCode+" bidder, the PubMatic bidder will also be enabled so PubMatic server will respond back with the bids that needs to be submitted for PubMatic and "+r.bidderCode+" in the network call sent by PubMatic bidder. Hence we do not want to create a network call for "+r.bidderCode+". This way we are trying to save a network call from browser.");else{var a;r&&r.refererInfo&&(a=r.refererInfo);var s,p=function(e){return{pageURL:e&&e.referer?e.referer:window.location.href,refURL:window.document.referrer}}(a),y=function(e){return{id:""+(new Date).getTime(),at:1,cur:[f],imp:[],site:{page:e.pageURL,ref:e.refURL,publisher:{}},device:{ua:navigator.userAgent,js:1,dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,h:screen.height,w:screen.width,language:navigator.language},user:{},ext:{}}}(p),E="",I=[],w=[];if(e.forEach((function(e){if((s=(0,t.deepClone)(e)).params.adSlot=s.params.adSlot||"",function(e){var r;e.params.adUnit="",e.params.adUnitIndex="0",e.params.width=0,e.params.height=0,e.params.adSlot=(r=e.params.adSlot,(0,t.isStr)(r)?r.replace(/^\s+/g,"").replace(/\s+$/g,""):(r&&(0,t.logWarn)("pubmatic: adSlot must be a string. Ignoring adSlot"),""));var a=e.params.adSlot,i=a.split(":");if(a=i[0],2==i.length&&(e.params.adUnitIndex=i[1]),i=a.split("@"),e.params.adUnit=i[0],i.length>1){if(2!=(i=i[1].split("x")).length)return void(0,t.logWarn)("PubMatic: AdSlot Error: adSlot not in required format");e.params.width=parseInt(i[0],10),e.params.height=parseInt(i[1],10)}else if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(o.Mk)&&e.mediaTypes.banner.hasOwnProperty("sizes")){for(var n=0,s=[];n=1&&(e.params.width=e.mediaTypes.banner.sizes[0][0],e.params.height=e.mediaTypes.banner.sizes[0][1],e.mediaTypes.banner.sizes=e.mediaTypes.banner.sizes.splice(1,e.mediaTypes.banner.sizes.length-1))}}(s),s.mediaTypes&&s.mediaTypes.hasOwnProperty("video")||s.params.hasOwnProperty("video"));else if(!(s.hasOwnProperty("mediaTypes")&&s.mediaTypes.hasOwnProperty(o.B5)||0!==s.params.width||0!==s.params.height))return void(0,t.logWarn)("PubMatic: Skipping the non-standard adslot: ",s.params.adSlot,JSON.stringify(s));p.pubId=p.pubId||s.params.publisherId,(p=function(e,r){var a,i,n;for(a in r.kadpageurl||(r.kadpageurl=r.pageURL),v)v.hasOwnProperty(a)&&(i=e[a])&&("object"===m(n=v[a])&&(i=n.f(i,r)),(0,t.isStr)(i)?r[a]=i:(0,t.logWarn)("PubMatic: Ignoring param : "+a+" with value : "+v[a]+", expects string-value, found "+m(i)));return r}(s.params,p)).transactionId=s.transactionId,""===E?E=s.params.currency||b:s.params.hasOwnProperty("currency")&&E!==s.params.currency&&(0,t.logWarn)("PubMatic: Currency specifier ignored. Only one currency permitted."),s.params.currency=E,s.params.hasOwnProperty("dctr")&&(0,t.isStr)(s.params.dctr)&&I.push(s.params.dctr),s.params.hasOwnProperty("bcat")&&(0,t.isArray)(s.params.bcat)&&(w=w.concat(s.params.bcat));var r=function(e,r){var a,s,p={},c={},h=e.hasOwnProperty("sizes")?e.sizes:[],y="",v=[];if(function(e,r){r.params.deals&&((0,t.isArray)(r.params.deals)?r.params.deals.forEach((function(r){(0,t.isStr)(r)&&r.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:r})):(0,t.logWarn)("PubMatic: Error: deal-id present in array bid.params.deals should be a strings with more than 3 charaters length, deal-id ignored: "+r)})):(0,t.logWarn)("PubMatic: Error: bid.params.deals should be an array of strings."))}(p={id:e.bidId,tagid:e.params.adUnit||void 0,bidfloor:R("kadfloor",e.params.kadfloor),secure:1,ext:{pmZoneId:R("pmzoneid",e.params.pmzoneid)},bidfloorcur:e.params.currency?R("currency",e.params.currency):f},e),function(e,r){var a,i="";if(r.params.dctr)if(i=r.params.dctr,(0,t.isStr)(i)&&i.length>0){var n=i.split("|");i="",n.forEach((function(e){i+=e.length>0?e.trim()+"|":""})),a=i.length,"|"===i.substring(a,a-1)&&(i=i.substring(0,a-1)),e.ext.key_val=i.trim()}else(0,t.logWarn)("PubMatic: Ignoring param : dctr with value : "+i+", expects string-value, found empty or non-string value")}(p,e),U(p,e),e.hasOwnProperty("mediaTypes"))for(y in e.mediaTypes)switch(y){case o.Mk:(a=K(e))!==b&&(p.banner=a);break;case o.B5:c.request=JSON.stringify(z(e.nativeParams)),k?(0,t.logWarn)("PubMatic: Error: Error in Native adunit "+e.params.adUnit+". Ignoring the adunit. Refer to http://prebid.org/dev-docs/show-native-ads.html for more details."):p.native=c;break;case o.pX:(s=N(e))!==b&&(p.video=s)}else a={pos:0,w:e.params.width,h:e.params.height,topframe:(0,t.inIframe)()?0:1},(0,t.isArray)(h)&&h.length>1&&((h=h.splice(1,h.length-1)).forEach((function(e){v.push({w:e[0],h:e[1]})})),a.format=v),p.banner=a;return function(e,r){var a=function(e){for(var r=1;r0?a:b,(0,t.logInfo)(g,"new impObj.bidfloor value:",e.bidfloor)}(p,e),p.hasOwnProperty(o.Mk)||p.hasOwnProperty(o.B5)||p.hasOwnProperty(o.pX)?p:b}(s);r&&y.imp.push(r)})),0!=y.imp.length){var P,O;y.site.publisher.id=p.pubId.trim(),x=p.pubId.trim(),y.ext.wrapper={},y.ext.wrapper.profile=parseInt(p.profId)||b,y.ext.wrapper.version=parseInt(p.verId)||b,y.ext.wrapper.wiid=p.wiid||r.auctionId,y.ext.wrapper.wv="prebid_prebid_6.19.0",y.ext.wrapper.transactionId=p.transactionId,y.ext.wrapper.wp="pbjs",y.user.gender=p.gender?p.gender.trim():b,y.user.geo={},y.user.geo.lat=R("lat",p.lat),y.user.geo.lon=R("lon",p.lon),y.user.yob=R("yob",p.yob),y.device.geo=y.user.geo,y.site.page=p.kadpageurl.trim()||y.site.page.trim(),y.site.domain=(P=y.site.page,(O=document.createElement("a")).href=P,O.hostname),"object"===m(d.vc.getConfig("content"))&&(y.site.content=d.vc.getConfig("content")),"object"===m(d.vc.getConfig("device"))&&(y.device=c(y.device,d.vc.getConfig("device"))),(0,n.Z)(y,"source.tid",p.transactionId),-1!==window.location.href.indexOf("pubmaticTest=true")&&(y.test=1),e[0].schain&&(0,n.Z)(y,"source.ext.schain",e[0].schain),r&&r.gdprConsent&&((0,n.Z)(y,"user.ext.consent",r.gdprConsent.consentString),(0,n.Z)(y,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r&&r.uspConsent&&(0,n.Z)(y,"regs.ext.us_privacy",r.uspConsent),!0===d.vc.getConfig("coppa")&&(0,n.Z)(y,"regs.coppa",1),function(e,r){var a=(0,i.Z)(r,"0.userIdAsEids"),s=j(r,1);s&&(a||(a=[]),a.push(s)),(0,t.isArray)(a)&&a.length>0&&(0,n.Z)(e,"user.eids",a)}(y,e),function(e,r){(r=r.filter((function(e){return"string"==typeof e||((0,t.logWarn)("PubMatic: bcat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,r,a){if(e.length>3)return a.indexOf(e)===r;(0,t.logWarn)("PubMatic: bcat: Each category should have a value of a length of more than 3 characters, ignoring category: "+e)}))).length>0&&((0,t.logWarn)("PubMatic: bcat: Selected: ",r),e.bcat=r)}(y,w),function(e,r){var a=j(r,2);a&&(e.user||(e.user={}),e.user.data||(e.user.data=[]),e.user.data.push(a))}(y,e);var T=d.vc.getConfig("ortb2")||{};return T.site&&(0,t.mergeDeep)(y,{site:T.site}),T.user&&(0,t.mergeDeep)(y,{user:T.user}),"object"===m(d.vc.getConfig("app"))&&(y.app=d.vc.getConfig("app"),y.app.publisher=y.site.publisher,y.app.ext=y.site.ext||b,"object"!==m(y.app.content)&&(y.app.content=y.site.content||b),delete y.site),{method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:JSON.stringify(y),bidderRequest:r}}}},interpretResponse:function(e,r){var a=[],i=f,n=JSON.parse(r.data),s=n.site&&n.site.ref?n.site.ref:"";try{e.body&&e.body.seatbid&&(0,t.isArray)(e.body.seatbid)&&(i=e.body.cur||i,e.body.seatbid.forEach((function(e){e.bid&&(0,t.isArray)(e.bid)&&e.bid.forEach((function(d){var p={requestId:d.impid,cpm:(parseFloat(d.price)||0).toFixed(2),width:d.w,height:d.h,creativeId:d.crid||d.id,dealId:d.dealid,currency:i,netRevenue:!0,ttl:300,referrer:s,ad:d.adm,pm_seat:e.seat||null,pm_dspid:d.ext&&d.ext.dspid?d.ext.dspid:null,partnerImpId:d.id||""};n.imp&&n.imp.length>0&&n.imp.forEach((function(e){if(d.impid===e.id)switch(function(e,r){if(e.ext&&null!=e.ext.bidtype)r.mediaType=S[e.ext.bidtype];else{(0,t.logInfo)("PubMatic: bid.ext.bidtype does not exist, checking alternatively for mediaType");var a=e.adm,i="",n=new RegExp(/VAST\s+version/);if(a.indexOf('span class="PubAPIAd"')>=0)r.mediaType=o.Mk;else if(n.test(a))r.mediaType=o.pX;else try{(i=JSON.parse(a.replace(/\\/g,"")))&&i.native&&(r.mediaType=o.B5)}catch(e){(0,t.logWarn)("PubMatic: Error: Cannot parse native reponse for ad response: "+a)}}}(d,p),p.mediaType){case o.Mk:break;case o.pX:p.width=d.hasOwnProperty("w")?d.w:e.video.w,p.height=d.hasOwnProperty("h")?d.h:e.video.h,p.vastXml=d.adm,function(e,r){var a,t,i;if(r.bidderRequest&&r.bidderRequest.bids){for(var n=0;n0){r.mediaType=o.B5;for(var i=0,n=a.native.assets.length;i0&&(p.meta.advertiserDomains=d.adomain,p.meta.clickUrl=d.adomain[0]),e.ext&&e.ext.buyid&&(p.adserverTargeting={hb_buyid_pubmatic:e.ext.buyid}),d.ext&&d.ext.marketplace&&h.includes(d.ext.marketplace)&&(p.bidderCode=d.ext.marketplace,p.bidder=d.ext.marketplace),a.push(p)}))})))}catch(e){(0,t.logError)(e)}return a},getUserSyncs:function(e,r,a,t){var i=""+x;return a&&(i+="&gdpr="+(a.gdprApplies?1:0),i+="&gdpr_consent="+encodeURIComponent(a.consentString||"")),t&&(i+="&us_privacy="+encodeURIComponent(t)),!0===d.vc.getConfig("coppa")&&(i+="&coppa=1"),e.iframeEnabled?[{type:"iframe",url:"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p="+i}]:[{type:"image",url:"https://image8.pubmatic.com/AdServer/ImgSync?p="+i}]},transformBidParams:function(e,r,a,i){return U(e,a.bids[0],!0),(0,t.convertTypes)({publisherId:"string",adSlot:"string"},e)}};(0,s.dX)(L),window.fsprebid.installedModules.push("pubmaticBidAdapter")}},function(e){e(e.s=8139)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[3184],{7379:function(n,t,r){var e=r(8962),o=r(3494),i=r(9853),a=r(2319),u=r(5644),f=r(7602),c=r(1879),l=r(2528);function s(n){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s(n)}function p(){return p=Object.assign||function(n){for(var t=1;tn.length)&&(t=n.length);for(var r=0,e=new Array(t);r0,a=e.length,u=!1;if(!r.length)return c();function f(){u||(this.config&&this.config.waitForIt&&a--,0===a&&setTimeout(c,0))}function c(){u||(u=!0,clearTimeout(o),n.call(this,t))}o=setTimeout(c,i?v.auctionDelay:0),r.forEach((function(n){n.getBidRequestData(t,f.bind(n),n.config,h)}))}function N(n){var t,r=D.filter((function(n){return"function"==typeof n.getTargetingData}));if(r.length){var e=n.adUnitCodes;if(e){for(var o=[],a=r.length-1;a>=0;a--){var f=r[a].getTargetingData(e,r[a].config,h,n);f&&"object"===s(f)?o.push(f):(0,i.logWarn)("invalid getTargetingData response for sub module",r[a].name)}var c=(t=o,Array.isArray(t)&&t.length?t.reduce((function(n,t){for(var r in t)if(t.hasOwnProperty(r))if(n.hasOwnProperty(r)){var e=t[r];for(var o in e)e.hasOwnProperty(o)&&(n[r][o]=e[o])}else n[r]=t[r];return n}),{}):{});return n.adUnits.forEach((function(n){var t=n.code&&c[n.code];t&&((0,i.logInfo)("RTD set ad unit targeting of",t,"for",n),n[u.JSON_MAPPING.ADSERVER_TARGETING]=p(n[u.JSON_MAPPING.ADSERVER_TARGETING]||{},t))})),n.adUnits}}}(0,o.bA)("realTimeData",(function(n){return T.push(n),function(){var t=T.indexOf(n);t>=0&&(T.splice(t,1),O())}})),E=e.vc,b=E.getConfig("realTimeData",(function(n){var t=n.realTimeData;t.dataProviders?(b(),v=t,S=t.dataProviders,A(),(0,l.R)().requestBids.before(R,40),O()):(0,i.logError)("missing parameters for real time module")})),window.fsprebid.installedModules.push("rtdModule")}},function(n){n(n.s=7379)}]); "use strict";(self.fsprebidChunk=self.fsprebidChunk||[]).push([[6187],{6476:function(e,r,t){var i=t(9853),n=t(265),o=t(4806),a=t(1609),s=t(8962),c=t(8265),d=t(1879),u=t(4877),p=t(2528);function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,i=new Array(r);t=.01?t.floor:void 0,rp_secure:"1",tk_flint:"".concat(x.int_type||"pbjs_lite","_v6.19.0"),"x_source.tid":e.transactionId,l_pb_bid_id:e.bidId,"x_source.pchain":t.pchain,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:t.userId,"p_geo.latitude":isNaN(parseFloat(u))?void 0:parseFloat(u).toFixed(4),"p_geo.longitude":isNaN(parseFloat(p))?void 0:parseFloat(p).toFixed(4),"tg_fl.eid":e.code,rf:j(e,r)};if("function"==typeof e.getFloor&&!x.disableFloors){var m;try{m=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,i.logError)("Rubicon: getFloor threw an error: ",e)}l.rp_hard_floor="object"!==y(m)||"USD"!==m.currency||isNaN(parseInt(m.floor))?void 0:m.floor}var f={1:"atf",3:"btf"}[(0,n.Z)(e,"mediaTypes.banner.pos")]||"";l.p_pos="atf"===t.position||"btf"===t.position?t.position:f;var g=s.vc.getConfig("user.id");return g&&(l.ppuid=g),e.userIdAsEids&&e.userIdAsEids.forEach((function(e){try{if("adserver.org"===e.source?(l.tpid_tdid=e.uids[0].id,l["eid_adserver.org"]=e.uids[0].id):"liveintent.com"===e.source?(l["tpid_liveintent.com"]=e.uids[0].id,l["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(l["tg_v.LIseg"]=e.ext.segments.join(","))):"liveramp.com"===e.source?l.x_liverampidl=e.uids[0].id:"id5-sync.com"===e.source?l["eid_id5-sync.com"]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype,"^").concat(e.uids[0].ext&&e.uids[0].ext.linkType||""):l["eid_".concat(e.source)]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype||""),!l.ppuid){var r=(0,d.sE)(e.uids,(function(e){return e.ext&&"ppuid"===e.ext.stype}));r&&r.id&&(l.ppuid=r.id)}}catch(r){(0,i.logWarn)("Rubicon: error reading eid:",e,r)}})),r.gdprConsent&&("boolean"==typeof r.gdprConsent.gdprApplies&&(l.gdpr=Number(r.gdprConsent.gdprApplies)),l.gdpr_consent=r.gdprConsent.consentString),r.uspConsent&&(l.us_privacy=encodeURIComponent(r.uspConsent)),l.rp_maxbids=r.bidLimit||1,k(e,c.Mk,l),!0===s.vc.getConfig("coppa")&&(l.coppa=1),e.schain&&O(e.schain)&&(l.rp_schain=_.serializeSupplyChain(e.schain)),l},serializeSupplyChain:function(e){if(!O(e))return"";var r=e.ver,t=e.complete,i=e.nodes;return"".concat(r,",").concat(t,"!").concat(_.serializeSupplyChainNodes(i))},serializeSupplyChainNodes:function(e){var r=["asi","sid","hp","rid","name","domain"];return e.map((function(e){return r.map((function(r){return encodeURIComponent(e[r]||"")})).join(",")})).join("!")},interpretResponse:function(e,r){var t=r.bidRequest;if(!(e=e.body)||"object"!==y(e))return[];if(e.seatbid){var a=(0,n.Z)(e,"ext.errors.rubicon");Array.isArray(a)&&a.length>0&&(0,i.logWarn)("Rubicon: Error in video response");var s=[];return e.seatbid.forEach((function(r){(r.bid||[]).forEach((function(a){var d={requestId:t.bidId,currency:e.cur||"USD",creativeId:a.crid,cpm:a.price||0,bidderCode:r.seat,ttl:300,netRevenue:!1!==x.netRevenue,width:a.w||(0,n.Z)(t,"mediaTypes.video.w")||(0,n.Z)(t,"params.video.playerWidth"),height:a.h||(0,n.Z)(t,"mediaTypes.video.h")||(0,n.Z)(t,"params.video.playerHeight")};a.id&&(d.seatBidId=a.id),a.dealid&&(d.dealId=a.dealid),a.adomain&&(0,o.Z)(d,"meta.advertiserDomains",Array.isArray(a.adomain)?a.adomain:[a.adomain]),(0,n.Z)(a,"ext.bidder.rp.advid")&&(0,o.Z)(d,"meta.advertiserId",a.ext.bidder.rp.advid);var p=(0,n.Z)(e,"ext.responsetimemillis.rubicon");if(t&&p&&(t.serverResponseTimeMs=p),(0,n.Z)(a,"ext.prebid.type")===c.pX){d.mediaType=c.pX,(0,o.Z)(d,"meta.mediaType",c.pX);var l=(0,n.Z)(a,"ext.prebid.targeting");l&&"object"===y(l)&&(d.adserverTargeting=l),a.ext.prebid.cache&&"object"===y(a.ext.prebid.cache.vastXml)&&a.ext.prebid.cache.vastXml.cacheId&&a.ext.prebid.cache.vastXml.url?(d.videoCacheKey=a.ext.prebid.cache.vastXml.cacheId,d.vastUrl=a.ext.prebid.cache.vastXml.url):l&&l.hb_uuid&&l.hb_cache_host&&l.hb_cache_path&&(d.videoCacheKey=l.hb_uuid,d.vastUrl="https://".concat(l.hb_cache_host).concat(l.hb_cache_path,"?uuid=").concat(l.hb_uuid)),a.adm&&(d.vastXml=a.adm),a.nurl&&(d.vastUrl=a.nurl),!d.vastUrl&&a.nurl&&(d.vastUrl=a.nurl),"outstream"===(0,n.Z)(t,"mediaTypes.video.context").toLowerCase()&&(d.renderer=function(e){var r=u.Th.install({id:e.adId,url:x.rendererUrl||"https://video-outstream.rubiconproject.com/apex-2.2.1.js",config:x.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{r.setRender(C)}catch(e){(0,i.logWarn)("Prebid Error calling setRender on renderer",e)}return r}(d))}else(0,i.logWarn)("Rubicon: video response received non-video media type");s.push(d)}))})),s}var d,p=e.ads,l=0;return"object"!==y(t)||Array.isArray(t)||"video"!==S(t)||"object"!==y(p)||(p=p[t.adUnitCode]),!Array.isArray(p)||p.length<1?[]:p.reduce((function(r,n,o){if(n.impression_id&&d===n.impression_id?l++:d=n.impression_id,"ok"!==n.status)return r;var a,s,u=Array.isArray(t)?t[o-l]:t;if(u&&"object"===y(u)){var p={requestId:u.bidId,currency:"USD",creativeId:n.creative_id||"".concat(n.network||"","-").concat(n.advertiser||""),cpm:n.cpm||0,dealId:n.deal,ttl:300,netRevenue:!1!==x.netRevenue,rubicon:{advertiserId:n.advertiser,networkId:n.network},meta:{advertiserId:n.advertiser,networkId:n.network,mediaType:c.Mk}};if(n.creative_type&&(p.mediaType=n.creative_type),n.adomain&&(p.meta.advertiserDomains=Array.isArray(n.adomain)?n.adomain:[n.adomain]),n.creative_type===c.pX)p.width=u.params.video.playerWidth,p.height=u.params.video.playerHeight,p.vastUrl=n.creative_depot_url,p.impression_id=n.impression_id,p.videoCacheKey=n.impression_id;else{p.ad=(a=n.script,s=n.impression_id,"\n