-
Notifications
You must be signed in to change notification settings - Fork 0
/
prebid.js
15 lines (15 loc) · 327 KB
/
prebid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* asc build - on prebid.js v6.10.0
Updated : 2022-02-15T15:38:23 */
!function(e){var t=window.ascChunk;window.ascChunk=function(n,a,o){for(var s,d,c,u=0,l=[];u<n.length;u++)d=n[u],i[d]&&l.push(i[d][0]),i[d]=0;for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s]);for(t&&t(n,a,o);l.length;)l.shift()();if(o)for(u=0;u<o.length;u++)c=r(r.s=o[u]);return c};var n={},i={408:0};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e},r(r.s=72)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"internal",(function(){return C})),t.getPrebidInternal=function(){return j},n.d(t,"bind",(function(){return M})),t.getUniqueIdentifierStr=D,t.generateUUID=function e(t){return t?(t^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return""},t.tryAppendQueryString=function(e,t,n){if(n)return e+t+"="+encodeURIComponent(n)+"&";return e},t.parseQueryStringParameters=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t=t.replace(/&$/,"")},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?ce(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(ue(e,t)))})).join("&"):""},t.getAdUnitSizes=function(e){if(!e)return;var t=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var n=e.mediaTypes.banner.sizes;Array.isArray(n[0])?t=n:t.push(n)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?t=e.sizes:t.push(e.sizes));return t},t.parseSizesInput=function(e){var t=[];if("string"==typeof e){var n=e.split(","),i=/^(\d)+x(\d)+$/i;if(n)for(var r in n)ee(n,r)&&n[r].match(i)&&t.push(n[r])}else if("object"===v(e)){var a=e.length;if(a>0)if(2===a&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(k(e));else for(var o=0;o<a;o++)t.push(k(e[o]))}return t},t.parseGPTSingleSizeArray=k,t.parseGPTSingleSizeArrayToRtbSize=function(e){if(P(e))return{w:e[0],h:e[1]}},t.getWindowTop=U,t.getWindowSelf=N,t.getWindowLocation=L,t.logMessage=q,t.logInfo=F,t.logWarn=z,t.logError=H,t.hasConsoleLogger=function(){return O},t.debugTurnedOn=G,t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=D(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e},t.getParameterByName=function(e){return Se(L().search)[e]||""},t.isA=V,t.isFn=J,t.isStr=K,t.isArray=Q,t.isNumber=Y,t.isPlainObject=$,t.isBoolean=function(e){return V(e,"Boolean")},t.isEmpty=X,t.isEmptyStr=function(e){return K(e)&&(!e||0===e.length)},t._each=Z,t.contains=function(e,t){if(X(e))return!1;if(J(e.indexOf))return-1!==e.indexOf(t);var n=e.length;for(;n--;)if(e[n]===t)return!0;return!1},t._map=function(e,t){if(X(e))return[];if(J(e.map))return e.map(t);var n=[];return Z(e,(function(i,r){n.push(t(i,r,e))})),n},t.hasOwn=ee,t.insertElement=te,t.waitForElementToLoad=ne,t.triggerPixel=ie,t.callBurl=function(e){var t=e.source,n=e.burl;t===_.S2S.SRC&&n&&C.triggerPixel(n)},t.insertHtmlIntoIframe=function(e){if(!e)return;var t=document.createElement("iframe");t.id=D(),t.width=0,t.height=0,t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.display="none",t.style.height="0px",t.style.width="0px",t.scrolling="no",t.frameBorder="0",t.allowtransparency="true",C.insertElement(t,document,"body"),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close()},t.insertUserSyncIframe=re,t.createTrackPixelHtml=function(e){if(!e)return"";var t=encodeURI(e),n='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return n+='<img src="'+t+'"></div>'},t.createTrackPixelIframeHtml=ae,t.getValueString=oe,t.uniques=se,t.flatten=de,t.getBidRequest=function(e,t){if(!e)return;var n;return t.some((function(t){var i=s()(t.bids,(function(t){return["bidId","adId","bid_id"].some((function(n){return t[n]===e}))}));return i&&(n=i),i})),n},t.getKeys=ce,t.getValue=ue,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:asc.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(de,[])})).reduce(de).filter(se)},t.isGptPubadsDefined=le,t.isApnGetTagDefined=function(){if(window.apntag&&J(window.apntag.getTag))return!0},n.d(t,"getHighestCpm",(function(){return ge})),n.d(t,"getOldestHighestCpmBid",(function(){return fe})),n.d(t,"getLatestHighestCpmBid",(function(){return pe})),t.shuffle=function(e){var t=e.length;for(;t>0;){var n=Math.floor(Math.random()*t);t--;var i=e[t];e[t]=e[n],e[n]=i}return e},t.adUnitsFilter=function(e,t){return c()(e,t&&t.adUnitCode)},t.deepClone=me,t.inIframe=function(){try{return C.getWindowSelf()!==C.getWindowTop()}catch(e){return!0}},t.isSafariBrowser=function(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/\$\{AUCTION_PRICE\}/g,t)},t.replaceClickThrough=function(e,t){if(!e||!t||"string"!=typeof t)return;return e.replace(/\${CLICKTHROUGH}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.getPerformanceNow=function(){return window.performance&&window.performance.now&&window.performance.now()||0},t.hasDeviceAccess=function(){return!1!==i.b.getConfig("deviceAccess")},t.checkCookieSupport=he,t.delayExecution=function(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(t));var n=0;return function(){++n===t&&e.apply(this,arguments)}},t.groupBy=function(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})},t.getDefinedParams=function(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,n){return h(t,m({},n,e[n]))}),{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];if(!Object.keys(e).every((function(e){return c()(t,e)})))return!1;if(e.video&&e.video.context)return c()(["instream","outstream","adpod"],e.video.context);return!0},t.getUserConfiguredParams=function(e,t,n){return e.filter((function(e){return e.code===t})).map((function(e){return e.bids})).reduce(de,[]).filter((function(e){return e.bidder===n})).map((function(e){return e.params||{}}))},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},t.getDNT=function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return ve(e,t)}},t.isSlotMatchingAdUnitCode=ye,t.getGptSlotInfoForAdUnitCode=function(e){var t;le()&&(t=s()(window.googletag.pubads().getSlots(),ye(e)));if(t)return{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()};return{}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(n," ad unit\n containing bidders that don't support ").concat(n,": ").concat(t,".\n This bidder won't fetch demand.\n ")},t.isInteger=_e,t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},t.cleanObj=function(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.pick=function(e,t){if("object"!==v(e))return{};return t.reduce((function(n,i,r){if("function"==typeof i)return n;var a=i,o=i.match(/^(.+?)\sas\s(.+?)$/i);o&&(i=o[1],a=o[2]);var s=e[i];return"function"==typeof t[r+1]&&(s=t[r+1](s,n)),void 0!==s&&(n[a]=s),n}),{})},t.transformBidderParamKeywords=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",n=[];return Z(e,(function(e,i){if(Q(e)){var r=[];Z(e,(function(e){((e=oe(t+"."+i,e))||""===e)&&r.push(e)})),e=r}else{if(!K(e=oe(t+"."+i,e)))return;e=[e]}n.push({key:i,value:e})})),n},t.convertTypes=function(e,t){return Object.keys(e).forEach((function(n){var i,r;t[n]&&(J(e[n])?t[n]=e[n](t[n]):t[n]=(i=e[n],r=t[n],"string"===i?r&&r.toString():"number"===i?Number(r):r),isNaN(t[n])&&delete t.key)})),t},t.isArrayOfNums=function(e,t){return Q(e)&&(!t||e.length===t)&&e.every((function(e){return _e(e)}))},t.fill=function(e,t){for(var n=[],i=0;i<t;i++){var r=$(e)?me(e):e;n.push(r)}return n},t.chunk=function(e,t){for(var n=[],i=0;i<Math.ceil(e.length/t);i++){var r=i*t,a=r+t;n.push(e.slice(r,a))}return n},t.getMinValueFromArray=function(e){return Math.min.apply(Math,f(e))},t.getMaxValueFromArray=function(e){return Math.max.apply(Math,f(e))},t.compareOn=function(e){return function(t,n){return t[e]<n[e]?1:t[e]>n[e]?-1:0}},t.parseQS=Se,t.formatQS=we,t.parseUrl=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var i=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:i?n.search:C.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.buildUrl=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(C.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")},t.deepEqual=Oe,t.mergeDeep=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(!i.length)return t;var a=i.shift();if($(t)&&$(a)){var o=function(n){$(a[n])?(t[n]||h(t,m({},n,{})),e(t[n],a[n])):Q(a[n])?t[n]?Q(t[n])&&a[n].forEach((function(e){for(var i=1,r=0;r<t[n].length;r++)if(Oe(t[n][r],e)){i=0;break}i&&t[n].push(e)})):h(t,m({},n,f(a[n]))):h(t,m({},n,a[n]))};for(var s in a)o(s)}return e.apply(void 0,[t].concat(i))},t.cyrb53Hash=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=function(e,t){if(J(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n},r=3735928559^n,a=1103547991^n,o=0;o<e.length;o++)t=e.charCodeAt(o),r=i(r^t,2654435761),a=i(a^t,1597334677);return r=i(r^r>>>16,2246822507)^i(a^a>>>13,3266489909),(4294967296*(2097151&(a=i(a^a>>>16,2246822507)^i(r^r>>>13,3266489909)))+(r>>>0)).toString()};var i=n(3),r=n(74),a=n.n(r),o=n(11),s=n.n(o),d=n(12),c=n.n(d),u=n(75);n.d(t,"deepAccess",(function(){return u.a}));var l=n(76);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}(e,t)||p(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.")}()}function f(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(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 p(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function v(e){return(v="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})(e)}n.d(t,"deepSetValue",(function(){return l.a}));var y,_=n(5),S=Object.prototype.toString,w=Boolean(window.console),O=Boolean(w&&window.console.log),E=Boolean(w&&window.console.info),T=Boolean(w&&window.console.warn),A=Boolean(w&&window.console.error),I=function(){return null==y&&(y=n(10)),y.emit.apply(y,arguments)},C={checkCookieSupport:he,createTrackPixelIframeHtml:ae,getWindowSelf:N,getWindowTop:U,getWindowLocation:L,insertUserSyncIframe:re,insertElement:te,isFn:J,triggerPixel:ie,logError:H,logWarn:z,logMessage:q,logInfo:F,parseQS:Se,formatQS:we,deepEqual:Oe},j={};var x,B={},M=function(e,t){return t}.bind(null,1,B)()===B?Function.prototype.bind:function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,n.concat(Array.prototype.slice.call(arguments)))}},R=(x=0,function(){return++x});function D(){return R()+Math.random().toString(16).substr(2)}function k(e){if(P(e))return e[0]+"x"+e[1]}function P(e){return Q(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function U(){return window.top}function N(){return window.self}function L(){return window.location}function q(){if(G()&&O){var e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.log.apply(console,W(arguments,"["+e+" ms] MESSAGE:"))}}function F(){if(G()&&E){var e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.info.apply(console,W(arguments,"["+e+" ms] INFO:"))}}function z(){if(G()&&T){var e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.warn.apply(console,W(arguments,"["+e+" ms] WARNING:"))}}function H(){if(G()&&A){var e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.error.apply(console,W(arguments,"["+e+" ms] ERROR:"))}I(_.EVENTS.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function W(e,t){e=[].slice.call(e);var n=i.b.getCurrentBidder();return t&&e.unshift(t),n&&e.unshift(r("#aaa")),e.unshift(r("#3b88c3")),e.unshift("%casc"+(n?"%c".concat(n):"")),e;function r(e){return"display: inline-block; color: #fff; background: ".concat(e,"; padding: 1px 4px; border-radius: 3px;")}}function G(){return!!i.b.getConfig("debug")}function V(e,t){return S.call(e)==="[object "+t+"]"}function J(e){return V(e,"Function")}function K(e){return V(e,"String")}function Q(e){return V(e,"Array")}function Y(e){return V(e,"Number")}function $(e){return V(e,"Object")}function X(e){if(!e)return!0;if(Q(e)||K(e))return!(e.length>0);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function Z(e,t){if(!X(e)){if(J(e.forEach))return e.forEach(t,this);var n=0,i=e.length;if(i>0)for(;n<i;n++)t(e[n],n,e);else for(n in e)hasOwnProperty.call(e,n)&&t.call(this,e[n],n)}}function ee(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):void 0!==e[t]&&e.constructor.prototype[t]!==e[t]}function te(e,t,n,i){var r;t=t||document,r=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if((r=r.length?r:t.getElementsByTagName("body")).length){r=r[0];var a=i?null:r.firstChild;return r.insertBefore(e,a)}}catch(e){}}function ne(e,t){var n=null;return new Promise((function(i){var r=function t(){e.removeEventListener("load",t),e.removeEventListener("error",t),null!=n&&window.clearTimeout(n),i()};e.addEventListener("load",r),e.addEventListener("error",r),null!=t&&(n=window.setTimeout(r,t))}))}function ie(e,t,n){var i=new Image;t&&C.isFn(t)&&ne(i,n).then(t),i.src=e}function re(e,t,n){var i=C.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=i;var a=r.firstChild;t&&C.isFn(t)&&ne(a,n).then(t),C.insertElement(a,document,"html",!0)}function ae(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(t&&(e=encodeURI(e)),n&&(n='sandbox="'.concat(n,'"')),"<iframe ".concat(n,' id="').concat(D(),'"\n frameborder="0"\n allowtransparency="true"\n marginheight="0" marginwidth="0"\n width="0" hspace="0" vspace="0" height="0"\n style="height:0px;width:0px;display:none;"\n scrolling="no"\n src="').concat(e,'">\n </iframe>')):""}function oe(e,t,n){return null==t?n:K(t)?t:Y(t)?t.toString():void C.logWarn("Unsuported type for param: "+e+" required type: String")}function se(e,t,n){return n.indexOf(e)===t}function de(e,t){return e.concat(t)}function ce(e){return Object.keys(e)}function ue(e,t){return e[t]}function le(){if(window.googletag&&J(window.googletag.pubads)&&J(window.googletag.pubads().getSlots))return!0}var ge=be("timeToRespond",(function(e,t){return e>t})),fe=be("responseTimestamp",(function(e,t){return e>t})),pe=be("responseTimestamp",(function(e,t){return e<t}));function be(e,t){return function(n,i){return n.cpm===i.cpm?t(n[e],i[e])?i:n:n.cpm<i.cpm?i:n}}function me(e){return a()(e)}function he(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}var ve=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function ye(e){return function(t){return ve(t,e)}}function _e(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Se(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,t){var n=g(t.split("="),2),i=n[0],r=n[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(r)):e[i]=r||"",e}),{}):{}}function we(e){return Object.keys(e).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(t,"[]=").concat(e)})).join("&"):"".concat(t,"=").concat(e[t])})).join("&")}function Oe(e,t){if(e===t)return!0;if("object"===v(e)&&null!==e&&"object"===v(t)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Oe(e[n],t[n]))return!1}return!0}return!1}},1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"storage",(function(){return A})),t.registerBidder=function(e){var t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){var n=C(e);r.default.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(t){var i,a,o=t;Object(h.isPlainObject)(t)&&(o=t.code,i=t.gvlid,a=t.skipPbsAliasing),r.default.aliasRegistry[o]=e.code,n(T({},e,{code:o,gvlid:i,skipPbsAliasing:a}))}))},t.newBidder=C,n.d(t,"registerSyncInner",(function(){return j})),t.preloadBidderMappingFile=x,t.getIabSubCategory=function(e,t){var n=r.default.getBidAdapter(e);if(n.getSpec().getMappingFileInfo){var i=n.getSpec().getMappingFileInfo(),a=i.localStorageKey?i.localStorageKey:n.getBidderCode(),o=A.getDataFromLocalStorage(a);if(o){try{o=JSON.parse(o)}catch(t){Object(h.logError)("Failed to parse ".concat(e," mapping data stored in local storage"))}return o.mapping[t]?o.mapping[t]:null}}},t.isValid=M;var i=n(52),r=n(9),a=n(3),o=n(25),s=n(33),d=n(26),c=n(17),u=n(5),l=n.n(u),g=n(10),f=n.n(g),p=n(12),b=n.n(p),m=n(4),h=n(0),v=n(2),y=n(8),_=n(7),S=n(16);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function E(e){return(E="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})(e)}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var A=Object(_.a)("bidderFactory"),I=["cpm","ttl","creativeId","netRevenue","currency"];function C(e){return T(new i.a(e.code),{getSpec:function(){return Object.freeze(e)},registerSyncs:t,callBids:function(i,s,d,c,u,g){if(Array.isArray(i.bids)){var p={},b=[],m=i.bids.filter(n);if(0!==m.length){var v={};m.forEach((function(e){v[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)}));var y=e.buildRequests(m,i);if(y&&0!==y.length){Array.isArray(y)||(y=[y]);var _=Object(h.delayExecution)(g(S),y.length);y.forEach((function(e){return f.a.emit(l.a.EVENTS.BEFORE_BIDDER_HTTP,i)})),y.forEach((function(t){switch(t.method){case"GET":c("".concat(t.url).concat(function(e){if(e)return"?".concat("object"===E(e)?Object(h.parseQueryStringParameters)(e):e);return""}(t.data)),{success:g(n),error:a},void 0,T({method:"GET",withCredentials:!0},t.options));break;case"POST":c(t.url,{success:g(n),error:a},"string"==typeof t.data?t.data:JSON.stringify(t.data),T({method:"POST",contentType:"text/plain",withCredentials:!0},t.options));break;default:Object(h.logWarn)("Skipping invalid request from ".concat(e.code,". Request type ").concat(t.type," must be GET or POST")),_()}function n(n,i){u(e.code);try{n=JSON.parse(n)}catch(e){}var r;n={body:n,headers:{get:i.getResponseHeader.bind(i)}},b.push(n);try{r=e.interpretResponse(n,t)}catch(t){return Object(h.logError)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,t),void _()}function a(t){var n=v[t.requestId];if(n){t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||T({},t[n.bidder]);var i=T(Object(o.createBid)(l.a.STATUS.GOOD,n),t);!function(e,t){p[e]=!0,M(e,t)&&s(e,t)}(n.adUnitCode,i)}else Object(h.logWarn)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(t.requestId,". Ignoring."))}r&&(Object(h.isArray)(r)?r.forEach(a):a(r)),_(r)}function a(t,n){u(e.code),r.default.callBidderError(e.code,n,i),f.a.emit(l.a.EVENTS.BIDDER_ERROR,{error:n,bidderRequest:i}),Object(h.logError)("Server call for ".concat(e.code," failed: ").concat(t," ").concat(n.status,". Continuing without bids.")),_()}}))}else S()}else S()}function S(){d(),a.b.runWithBidder(e.code,(function(){f.a.emit(l.a.EVENTS.BIDDER_DONE,i),t(b,i.gdprConsent,i.uspConsent)}))}}});function t(t,n,i){j(e,t,n,i)}function n(t){return!!e.isBidRequestValid(t)||(Object(h.logWarn)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(t))),!1)}}var j=Object(y.b)("async",(function(e,t,n,i){var o=a.b.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!r.default.aliasRegistry[e.code])){var d=a.b.getConfig("userSync.filterSettings"),c=e.getUserSyncs({iframeEnabled:!(!d||!d.iframe&&!d.all),pixelEnabled:!(!d||!d.image&&!d.all)},t,n,i);c&&(Array.isArray(c)||(c=[c]),c.forEach((function(t){s.a.registerSync(t.type,e.code,t.url)})))}}),"registerSyncs");function x(e,t){if(!a.b.getConfig("adpod.brandCategoryExclusion"))return e.call(this,t);t.filter((function(e){return Object(h.deepAccess)(e,"mediaTypes.video.context")===v.a})).map((function(e){return e.bids.map((function(e){return e.bidder}))})).reduce(h.flatten,[]).filter(h.uniques).forEach((function(e){var t=r.default.getBidAdapter(e);if(t.getSpec().getMappingFileInfo){var n=t.getSpec().getMappingFileInfo(),i=n.refreshInDays?n.refreshInDays:1,a=n.localStorageKey?n.localStorageKey:t.getSpec().code,o=A.getDataFromLocalStorage(a);try{(!(o=o?JSON.parse(o):void 0)||Object(h.timestamp)()>o.lastUpdated+24*i*60*60*1e3)&&Object(m.a)(n.url,{success:function(t){try{t=JSON.parse(t);var n={lastUpdated:Object(h.timestamp)(),mapping:t.mapping};A.setDataInLocalStorage(a,JSON.stringify(n))}catch(t){Object(h.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){Object(h.logError)("Failed to load ".concat(e," bidder translation file"))}})}catch(t){Object(h.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.index,r=void 0===i?S.a.index:i;if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),!0;var a=r.getBidRequest(t),o=r.getMediaTypes(t),s=a&&a.sizes||o&&o.banner&&o.banner.sizes,d=Object(h.parseSizesInput)(s);if(1===d.length){var c=d[0].split("x"),u=w(c,2),l=u[0],g=u[1];return t.width=parseInt(l,10),t.height=parseInt(g,10),!0}return!1}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.index,r=void 0===i?S.a.index:i;function a(){var e=Object.keys(t);return I.every((function(n){return b()(e,n)&&!b()([void 0,null],t[n])}))}function o(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?a()?"native"!==t.mediaType||Object(d.h)(t,{index:r})?"video"!==t.mediaType||Object(c.d)(t,{index:r})?!("banner"===t.mediaType&&!B(e,t,{index:r}))||(Object(h.logError)(o("Banner bids require a width and height")),!1):(Object(h.logError)(o("Video bid does not have required vastUrl or renderer property")),!1):(Object(h.logError)(o("Native bid missing some required properties.")),!1):(Object(h.logError)(o("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):(Object(h.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):(Object(h.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}Object(y.a)("checkAdUnitSetup").before(x)},10:function(e,t,n){function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var r=n(0),a=n(5),o=Array.prototype.slice,s=Array.prototype.push,d=r._map(a.EVENTS,(function(e){return e})),c=a.EVENT_ID_PATHS,u=[];e.exports=function(){var e={},t={};function n(t,n){r.logMessage("Emitting event for: "+t);var i=n[0]||{},a=i[c[t]],o=e[t]||{que:[]},d=r._map(o,(function(e,t){return t})),l=[];u.push({eventType:t,args:i,id:a,elapsedTime:r.getPerformanceNow()}),a&&r.contains(d,a)&&s.apply(l,o[a].que),s.apply(l,o.que),r._each(l,(function(e){if(e)try{e.apply(null,n)}catch(e){r.logError("Error executing handler:","events.js",e)}}))}return t.on=function(t,n,i){if(function(e){return r.contains(d,e)}(t)){var a=e[t]||{que:[]};i?(a[i]=a[i]||{que:[]},a[i].que.push(n)):a.que.push(n),e[t]=a}else r.logError("Wrong event name : "+t+" Valid event names :"+d)},t.emit=function(e){var t=o.call(arguments,1);n(e,t)},t.off=function(t,n,i){var a=e[t];r.isEmpty(a)||r.isEmpty(a.que)&&r.isEmpty(a[i])||i&&(r.isEmpty(a[i])||r.isEmpty(a[i].que))||(i?r._each(a[i].que,(function(e){var t=a[i].que;e===n&&t.splice(t.indexOf(e),1)})):r._each(a.que,(function(e){var t=a.que;e===n&&t.splice(t.indexOf(e),1)})),e[t]=a)},t.get=function(){return e},t.getEvents=function(){var e=[];return r._each(u,(function(t){var n=i({},t);e.push(n)})),e},t}()},11:function(e,t){e.exports=function(e,t,n){return e&&e.find(t,n)}},12:function(e,t){e.exports=function(e,t,n){return e&&e.includes(t,n)||!1}},13:function(e,t,n){"use strict";t.a=d,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var i=n(22),r=n(0),a=n(11),o=n.n(a),s="outstream";function d(e){var t=this,n=e.url,a=e.config,o=e.id,d=e.callback,u=e.loaded,l=e.adUnitCode;this.url=n,this.config=a,this.handlers={},this.id=o,this.loaded=u,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):Object(r.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=d||function(){t.loaded=!0,t.process()},this.render=function(){var e=this,t=arguments,a=function(){e._render?e._render.apply(e,t):Object(r.logWarn)("No render function was provided, please use .setRender on the renderer")};c(l)?(Object(r.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(l)),a()):(this.cmd.unshift(a),Object(i.a)(n,s,this.callback))}.bind(this)}function c(e){var t=asc.adUnits,n=o()(t,(function(t){return t.code===e}));if(!n)return!1;var i=Object(r.deepAccess)(n,"renderer"),a=!!(i&&i.url&&i.render),s=Object(r.deepAccess)(n,"mediaTypes.video.renderer"),d=!!(s&&s.url&&s.render);return!!(a&&!0!==i.backupOnly||d&&!0!==s.backupOnly)}d.install=function(e){return new d({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(e){this._render=e},d.prototype.setEventHandlers=function(e){this.handlers=e},d.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),Object(r.logMessage)("Prebid Renderer event for id ".concat(t," type ").concat(n))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){Object(r.logError)("Error processing Renderer command: ",e)}}},14:function(e,t,n){"use strict";t.a=function(){return window.asc},window.asc=window.asc||{},window.asc.cmd=window.asc.cmd||[],window.asc.que=window.asc.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("asc")},16:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(0),r=n(21),a=n(11),o=n.n(a),s=n(83),d=n(5);var c=function(){var e=[],t={};return t.addWinningBid=function(t){var n=o()(e,(function(e){return e.getAuctionId()===t.auctionId}));n?(t.status=d.BID_STATUS.RENDERED,n.addWinningBid(t)):Object(i.logWarn)("Auction not found when adding winning bid")},t.getAuctions=function(){return e},t.getAllWinningBids=function(){return e.map((function(e){return e.getWinningBids()})).reduce(i.flatten,[])},t.getBidsRequested=function(){return e.map((function(e){return e.getBidRequests()})).reduce(i.flatten,[])},t.getNoBids=function(){return e.map((function(e){return e.getNoBids()})).reduce(i.flatten,[])},t.getBidsReceived=function(){return e.map((function(e){if(e.getAuctionStatus()===r.a)return e.getBidsReceived()})).reduce(i.flatten,[]).filter((function(e){return e}))},t.getAllBidsForAdUnitCode=function(t){return e.map((function(e){return e.getBidsReceived()})).reduce(i.flatten,[]).filter((function(e){return e&&e.adUnitCode===t}))},t.getAdUnits=function(){return e.map((function(e){return e.getAdUnits()})).reduce(i.flatten,[])},t.getAdUnitCodes=function(){return e.map((function(e){return e.getAdUnitCodes()})).reduce(i.flatten,[]).filter(i.uniques)},t.createAuction=function(t){var n=t.adUnits,i=t.adUnitCodes,a=t.callback,o=t.cbTimeout,s=t.labels,d=t.auctionId,c=Object(r.k)({adUnits:n,adUnitCodes:i,callback:a,cbTimeout:o,labels:s,auctionId:d});return function(t){e.push(t)}(c),c},t.findBidByAdId=function(t){return o()(e.map((function(e){return e.getBidsReceived()})).reduce(i.flatten,[]),(function(e){return e.adId===t}))},t.getStandardBidderAdServerTargeting=function(){return Object(r.j)()[d.JSON_MAPPING.ADSERVER_TARGETING]},t.setStatusForBids=function(n,i){var r=t.findBidByAdId(n);if(r&&(r.status=i),r&&i===d.BID_STATUS.BID_TARGETING_SET){var a=o()(e,(function(e){return e.getAuctionId()===r.auctionId}));a&&a.setBidTargeting(r)}},t.getLastAuctionId=function(){return e.length&&e[e.length-1].getAuctionId()},t.clearAllAuctions=function(){e.length=0},t.index=new s.a((function(){return e})),t}()},17:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return c})),t.d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,r=void 0===n?s.a.index:n,a=Object(i.deepAccess)(r.getMediaTypes(e),"video"),o=a&&Object(i.deepAccess)(a,"context"),d=r.getAdUnit(e);return u(e,d,a,o)},n.d(t,"c",(function(){return u}));n(9);var i=n(0),r=n(3),a=n(12),o=(n.n(a),n(8)),s=n(16),d="outstream",c="instream";var u=Object(o.b)("sync",(function(e,t,n,a){return n&&a!==d?r.b.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Object(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 asc.setConfig({ cache: {url: "..."} });\n '),!1):a!==d||!!(e.renderer||t&&t.renderer||n.renderer)}),"checkVideoBidSetup")},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(3),r=n(0);var a=function(e){function t(e){var t=i.b.getConfig("pageUrl");if(t)return t;try{var n=e.querySelector("link[rel='canonical']");if(null!==n)return n.href}catch(e){}return null}return function(){var n,a,o,s=[],d=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),c=i.b.getConfig("maxNestedIframes"),u=!1,l=0,g=!1,f=!1;do{var p=n,b=f,m=void 0,h=!1,v=null;f=!1,n=n?n.parent:e;try{m=n.location.href||null}catch(e){h=!0}if(h)if(b){var y=p.context;try{a=v=y.sourceUrl,g=!0,n===e.top&&(u=!0),y.canonicalUrl&&(o=y.canonicalUrl)}catch(e){}}else{Object(r.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var _=p.document.referrer;_&&(v=_,n===e.top&&(u=!0))}catch(e){}!v&&d&&d[l-1]&&(v=d[l-1]),v&&!g&&(a=v)}else{if(m&&(a=v=m,g=!1,n===e.top)){u=!0;var S=t(n.document);S&&(o=S)}n.context&&n.context.sourceUrl&&(f=!0)}s.push(v),l++}while(n!==e.top&&l<c);return s.reverse(),{referer:a||null,reachedTop:u,isAmp:g,numIframes:l-1,stack:s,canonicalUrl:o||null}}}(window)},2:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var i="native",r="video",a="banner",o="adpod"},21:function(e,t,n){"use strict";n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return A})),t.k=function(e){var t,n,r,a,o=e.adUnits,s=e.adUnitCodes,c=e.callback,u=e.cbTimeout,l=e.labels,g=e.auctionId,f=o,b=l,m=s,v=[],y=[],_=[],R=g||Object(i.generateUUID)(),P=c,N=u,L=[],q=new Set;function F(){return{auctionId:R,timestamp:t,auctionEnd:n,auctionStatus:r,adUnits:f,adUnitCodes:m,labels:b,bidderRequests:v,noBids:_,bidsReceived:y,winningBids:L,timeout:N}}function z(e,t){if(t&&clearTimeout(a),void 0===n){var s=[];e&&(Object(i.logMessage)("Auction ".concat(R," timedOut")),c=q,(s=v.map((function(e){return(e.bids||[]).filter((function(e){return!c.has(e.bidder)}))})).reduce(i.flatten,[]).map((function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId,source:e.src?e.src:"client"}}))).length&&O.emit(E.EVENTS.BID_TIMEOUT,s)),r=A,n=Date.now(),O.emit(E.EVENTS.AUCTION_END,F()),M(f,(function(){try{if(null!=P){var t=m,n=y.filter(i.bind.call(i.adUnitsFilter,this,t)).reduce(W,{});P.apply(asc,[n,e,R]),P=null}}catch(e){Object(i.logError)("Error executing bidsBackHandler",null,e)}finally{s.length&&w.callTimedOutBidders(o,s,N);var r=d.b.getConfig("userSync")||{};r.enableOverride||S(r.syncDelay)}}))}var c}function H(){d.b.resetBidder(),Object(i.logInfo)("Bids Received for Auction with id: ".concat(R),y),r=A,z(!1,!0)}function G(e){q.add(e)}function V(e){var t=this;e.forEach((function(e){var t;t=e,v=v.concat(t)}));var n={},o={bidRequests:e,run:function(){var o,u;o=z.bind(null,!0),u=setTimeout(o,N),a=u,r=T,O.emit(E.EVENTS.AUCTION_INIT,F());var l=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===n?h.a.index:n,a=0,o=!1,s=new Set,c={},u={};function l(e,t){null==u[e]&&(u[e]=Promise.resolve()),u[e]=u[e].then((function(){return Promise.resolve(t).catch((function(){}))}))}function g(e,n){var i=e.timeout;(null==i||i>t.getTimeout())&&(i=t.getTimeout());var r=t.getAuctionStart()+i-Date.now(),a=u[e.bidderRequestId],o=u[""];(null!=a||null!=o)&&r>0?Promise.race([new Promise((function(e){return setTimeout(e,r)})),Promise.resolve(o).then((function(){return a}))]).then(n):n()}function f(){a--,o&&0===a&&e()}function b(e,n){c[n.requestId]=!0,a++;var i=U({adUnitCode:e,bid:n,auctionId:t.getAuctionId()});"video"===i.mediaType?k(t,i,f):(D(t,i),f())}function m(){var n=this,r=t.getBidRequests(),u=d.b.getConfig("auctionOptions");if(s.add(n),u&&!Object(i.isEmpty)(u)){var l=u.secondaryBidders;l&&!r.every((function(e){return p()(l,e.bidderCode)}))&&(r=r.filter((function(e){return!p()(l,e.bidderCode)})))}o=r.every((function(e){return s.has(e)})),n.bids.forEach((function(e){c[e.bidId]||t.addNoBid(e)})),o&&0===a&&e()}return{addBidResponse:function(e,t){var n=r.getBidderRequest(t);l(n&&n.bidderRequestId||"",x.call({dispatch:b},e,t))},adapterDone:function(){g(this,m.bind(this))}}}(H,t);w.callBids(f,e,l.addBidResponse,l.adapterDone,{request:function(e,t){c(I,t),c(n,e),C[e]||(C[e]={SRA:!0,origin:t}),n[e]>1&&(C[e].SRA=!1)},done:function(e){I[e]--,j[0]&&s(j[0])&&j.shift()}},N,G)}};function s(e){var t=!0,n=d.b.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var i=1,r=void 0!==e.src&&e.src===E.S2S.SRC?"s2s":e.bidderCode;return C[r]&&(!1===C[r].SRA&&(i=Math.min(e.bids.length,n)),I[C[r].origin]+i>n&&(t=!1)),!t})),t&&e.run(),t}function c(e,t){void 0===e[t]?e[t]=1:e[t]++}s(o)||(Object(i.logWarn)("queueing auction due to limited endpoint capacity"),j.push(o))}return{addBidReceived:function(e){y=y.concat(e)},addNoBid:function(e){_=_.concat(e)},executeCallback:z,callBids:function(){r="started",t=Date.now();var e=w.makeBidRequests(f,t,R,N,b);Object(i.logInfo)("Bids Requested for Auction with id: ".concat(R),e),e.length<1?(Object(i.logWarn)("No valid bid requests returned for auction"),H()):B.call({dispatch:V,context:this},e)},addWinningBid:function(e){L=L.concat(e),w.callBidWonBidder(e.bidder,e,o)},setBidTargeting:function(e){w.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return L},getAuctionStart:function(){return t},getTimeout:function(){return N},getAuctionId:function(){return R},getAuctionStatus:function(){return r},getAdUnits:function(){return f},getAdUnitCodes:function(){return m},getBidRequests:function(){return v},getBidsReceived:function(){return y},getNoBids:function(){return _}}},n.d(t,"c",(function(){return x})),n.d(t,"e",(function(){return B})),t.g=R,t.d=D,n.d(t,"f",(function(){return P})),n.d(t,"i",(function(){return L})),n.d(t,"h",(function(){return q})),t.j=z;var i=n(0),r=n(32),a=n(26),o=n(50),s=n(13),d=n(3),c=n(33),u=n(8),l=n(11),g=n.n(l),f=n(12),p=n.n(f),b=n(17),m=n(2),h=n(16),v=n(27);function y(e){return(y="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})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var S=c.a.syncUsers,w=n(9).default,O=n(10),E=n(5),T="inProgress",A="completed";O.on(E.EVENTS.BID_ADJUSTMENT,(function(e){!function(e){var t=e.bidderCode,n=e.cpm,r=v.a.get(t||null,"bidCpmAdjustment");if(r&&"function"==typeof r)try{n=r(e.cpm,_({},e))}catch(e){Object(i.logError)("Error during bid adjustment","bidmanager.js",e)}n>=0&&(e.cpm=n)}(e)}));var I={},C={},j=[];var x=Object(u.b)("sync",(function(e,t){this.dispatch.call(null,e,t)}),"addBidResponse"),B=Object(u.b)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),M=Object(u.b)("async",(function(e,t){t&&t()}),"bidsBackCallback");function R(e,t){t.timeToRespond>e.getTimeout()+d.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function D(e,t){!function(e){var t,n=!0===v.a.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,i=void 0===n?h.a.index:n;if(!t)return{};var r=i.getBidRequest(t),o={},s=z(t.mediaType,e);H(o,s,t,r),e&&v.a.getOwn(e,E.JSON_MAPPING.ADSERVER_TARGETING)&&(H(o,v.a.ownSettingsFor(e),t,r),t.sendStandardTargeting=v.a.get(e,"sendStandardTargeting"));t.native&&(o=_({},o,Object(a.f)(t)));return o}(e.bidderCode,e));e.adserverTargeting=_(e.adserverTargeting||{},t)}(t),O.emit(E.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),R(e,t)}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.index,o=void 0===a?h.a.index:a,s=!0,c=Object(i.deepAccess)(o.getMediaTypes({requestId:t.originalRequestId||t.requestId,transactionId:t.transactionId}),"video"),u=c&&Object(i.deepAccess)(c,"context");d.b.getConfig("cache.url")&&u!==b.b&&(!t.videoCacheKey||d.b.getConfig("cache.ignoreBidderCacheKey")?(s=!1,P(e,t,n,c)):t.vastUrl||(Object(i.logError)("videoCacheKey specified but not required vastUrl for video bid"),s=!1)),s&&(D(e,t),n())}var P=Object(u.b)("async",(function(e,t,n,r){Object(o.b)([t],(function(r,a){r?(Object(i.logWarn)("Failed to save to the video cache: ".concat(r,". Video bid must be discarded.")),R(e,t)):""===a[0].uuid?(Object(i.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),R(e,t)):(t.videoCacheKey=a[0].uuid,t.vastUrl||(t.vastUrl=Object(o.a)(t.videoCacheKey)),D(e,t),n())}))}),"callPrebidCache");function U(e){var t=e.adUnitCode,n=e.bid,a=e.auctionId,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=o.index,u=void 0===c?h.a.index:c,l=u.getBidderRequest(n),g=l&&l.start||n.requestTimestamp,f=_({},n,{auctionId:a,responseTimestamp:Object(i.timestamp)(),requestTimestamp:g,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});f.timeToRespond=f.responseTimestamp-f.requestTimestamp,O.emit(E.EVENTS.BID_ADJUSTMENT,f);var p=u.getAdUnit(f).renderer,b=f.mediaType,m=u.getMediaTypes(f),v=m&&m[b],S=v&&v.renderer,w=null;S&&S.url&&S.render&&(!0!==S.backupOnly||!n.renderer)?w=S:p&&p.url&&p.render&&(!0!==p.backupOnly||!n.renderer)&&(w=p),w&&(f.renderer=s.a.install({url:w.url}),f.renderer.setRender(w.render));var T=N(n.mediaType,m,d.b.getConfig("mediaTypePriceGranularity")),A=Object(r.a)(f.cpm,"object"===y(T)?T:d.b.getConfig("customPriceBucket"),d.b.getConfig("currency.granularityMultiplier"));return f.pbLg=A.low,f.pbMg=A.med,f.pbHg=A.high,f.pbAg=A.auto,f.pbDg=A.dense,f.pbCg=A.custom,f}function N(e,t,n){if(e&&n){if(e===m.d){var r=Object(i.deepAccess)(t,"".concat(m.d,".context"),"instream");if(n["".concat(m.d,"-").concat(r)])return n["".concat(m.d,"-").concat(r)]}return n[e]}}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,i=void 0===n?h.a.index:n,r=N(e.mediaType,i.getMediaTypes(e),d.b.getConfig("mediaTypePriceGranularity")),a="string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":d.b.getConfig("priceGranularity");return a},q=function(e){return function(t){var n=e||L(t);return n===E.GRANULARITY_OPTIONS.AUTO?t.pbAg:n===E.GRANULARITY_OPTIONS.DENSE?t.pbDg:n===E.GRANULARITY_OPTIONS.LOW?t.pbLg:n===E.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:n===E.GRANULARITY_OPTIONS.HIGH?t.pbHg:n===E.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}};function F(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return Object(i.getValue)(e,t)}}}function z(e,t){var n=E.TARGETING_KEYS,r=_({},v.a.settingsFor(null));if(r[E.JSON_MAPPING.ADSERVER_TARGETING]||(r[E.JSON_MAPPING.ADSERVER_TARGETING]=function(){var e=E.TARGETING_KEYS;return[F(e.BIDDER,"bidderCode"),F(e.AD_ID,"adId"),F(e.PRICE_BUCKET,q()),F(e.SIZE,"size"),F(e.DEAL,"dealId"),F(e.SOURCE,"source"),F(e.FORMAT,"mediaType"),F(e.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?e.meta.advertiserDomains[0]:""}))]}()),"video"===e){var a=r[E.JSON_MAPPING.ADSERVER_TARGETING].slice();if(r[E.JSON_MAPPING.ADSERVER_TARGETING]=a,[n.UUID,n.CACHE_ID].forEach((function(e){void 0===g()(a,(function(t){return t.key===e}))&&a.push(F(e,"videoCacheKey"))})),d.b.getConfig("cache.url")&&(!t||!1!==v.a.get(t,"sendStandardTargeting"))){var o=Object(i.parseUrl)(d.b.getConfig("cache.url"));void 0===g()(a,(function(e){return e.key===n.CACHE_HOST}))&&a.push(F(n.CACHE_HOST,(function(e){return Object(i.deepAccess)(e,"adserverTargeting.".concat(n.CACHE_HOST))?e.adserverTargeting[n.CACHE_HOST]:o.hostname})))}}return r}function H(e,t,n,r){var a=t[E.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),Object(i._each)(a,(function(a){var o=a.key,s=a.val;if(e[o]&&Object(i.logWarn)("The key: "+o+" is being overwritten"),Object(i.isFn)(s))try{s=s(n,r)}catch(e){Object(i.logError)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&o!==E.TARGETING_KEYS.DEAL||!Object(i.isEmptyStr)(s)&&null!=s?e[o]=s:Object(i.logInfo)("suppressing empty key '"+o+"' from adserver targeting")})),e}function W(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},22:function(e,t,n){"use strict";t.a=function(e,t,n){if(!t||!e)return void Object(a.logError)("cannot load external script without url and moduleCode");if(!r()(s,t))return void Object(a.logError)("".concat(t," not whitelisted for loading external JavaScript"));if(o[e])return n&&"function"==typeof n&&(o[e].loaded?n():o[e].callbacks.push(n)),o[e].tag;o[e]={loaded:!1,tag:null,callbacks:[]},n&&"function"==typeof n&&o[e].callbacks.push(n);return Object(a.logWarn)("module ".concat(t," is loading external JavaScript")),function(t,n){var i=document.createElement("script");i.type="text/javascript",i.async=!0,o[e].tag=i,i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,n())}:i.onload=function(){n()};return i.src=t,Object(a.insertElement)(i),i}(e,(function(){o[e].loaded=!0;try{for(var t=0;t<o[e].callbacks.length;t++)o[e].callbacks[t]()}catch(e){Object(a.logError)("Error executing callback","adloader.js:loadExternalScript",e)}}))};var i=n(12),r=n.n(i),a=n(0),o={},s=["adloox","criteo","outstream","adagio","browsi","brandmetrics"]},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return A})),t.c=I,n.d(t,"d",(function(){return C}));var i=n(0),r=n(3),a=n(26),o=n(16),s=n(51),d=n(2),c=n(8),u=n(27),l=n(12),g=n.n(l),f=n(11),p=n.n(f);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var y=n(5),_=[],S="targetingControls.allowTargetingKeys",w="targetingControls.addTargetingKeys",O='Only one of "'.concat(S,'" or "').concat(w,'" can be set'),E=Object.keys(y.TARGETING_KEYS).map((function(e){return y.TARGETING_KEYS[e]})),T={isBidNotExpired:function(e){return e.responseTimestamp+1e3*e.ttl-1e3>Object(i.timestamp)()},isUnusedBid:function(e){return e&&(e.status&&!g()([y.BID_STATUS.RENDERED],e.status)||!e.status)}},A=Object(c.b)("sync",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!a){var o=[],s=r.b.getConfig("sendBidsControl.dealPrioritization"),d=Object(i.groupBy)(e,"adUnitCode");return Object.keys(d).forEach((function(e){var r=[],a=Object(i.groupBy)(d[e],"bidderCode");Object.keys(a).forEach((function(e){return r.push(a[e].reduce(t))})),n>0?(r=s?r.sort(I(!0)):r.sort((function(e,t){return t.cpm-e.cpm})),o.push.apply(o,h(r.slice(0,n)))):o.push.apply(o,h(r))})),o}return e}));function I(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return void 0!==t.adserverTargeting.hb_deal&&void 0===n.adserverTargeting.hb_deal?-1:void 0===t.adserverTargeting.hb_deal&&void 0!==n.adserverTargeting.hb_deal?1:e?n.cpm-t.cpm:n.adserverTargeting.hb_pb-t.adserverTargeting.hb_pb}}var C=function(e){var t={},n={};function o(e,t){return e.adserverTargeting&&t&&(Object(i.isArray)(t)&&g()(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function c(e,t){if(!0===r.b.getConfig("targetingControls.alwaysIncludeDeals")){var n=E.concat(a.a);return A(t,i.getHighestCpm).map((function(t){if(t.dealId&&o(t,e))return m({},t.adUnitCode,L(t,n.filter((function(e){return void 0!==t.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function l(e,t){var n=[];return e.forEach((function(e){n[e]=0})),t.forEach((function(e){"number"==typeof n[e.adUnitCode]&&(n[e.adUnitCode]=n[e.adUnitCode]+1)})),Object.keys(n).map((function(e){var t={};return t[e]=[{hb_bd:[n[e]]}],t}))}function f(e,t){return t.filter((function(t){return!!e.includes(t.adUnitCode)})).map((function(e){return m({},e.adUnitCode,[{hb_cs:[e.cacheStatus]}])}))}function v(e,t){var n=b({},y.TARGETING_KEYS,y.NATIVE_KEYS),r=Object.keys(n),a={};Object(i.logInfo)("allowTargetingKeys - allowed keys [ ".concat(t.map((function(e){return n[e]})).join(", ")," ]")),e.map((function(e){var i=Object.keys(e)[0],o=e[i].filter((function(e){var i=Object.keys(e)[0],o=0===r.filter((function(e){return 0===i.indexOf(n[e])})).length||p()(t,(function(e){var t=n[e];return 0===i.indexOf(t)}));return a[i]=!o,o}));e[i]=o}));var o=Object.keys(a).filter((function(e){return a[e]}));return Object(i.logInfo)("allowTargetingKeys - removed keys [ ".concat(o.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function C(e,t){var n=Object(i.deepClone)(e);return Object.keys(n).map((function(e){return{adUnitCode:e,adserverTargeting:n[e]}})).sort(I()).reduce((function(e,r,a,o){var s,d=(s=r.adserverTargeting,Object.keys(s).reduce((function(e,t){return e+"".concat(t,"%3d").concat(encodeURIComponent(s[t]),"%26")}),""));a+1===o.length&&(d=d.slice(0,-3));var c=r.adUnitCode,u=d.length;return u<=t?(t-=u,Object(i.logInfo)("AdUnit '".concat(c,"' auction keys comprised of ").concat(u," characters. Deducted from running threshold; new limit is ").concat(t),n[c]),e[c]=n[c]):Object(i.logWarn)("The following keys for adUnitCode '".concat(c,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(u,", the current allotted amount was ").concat(t,".\n"),n[c]),a+1===o.length&&0===Object.keys(e).length&&Object(i.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}function j(e){return e.map((function(e){return m({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return m({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,t){return b(t,e)}),{}))})).reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=b({},e[n],t[n]),e}),{})}function x(t){return"string"==typeof t?[t]:Object(i.isArray)(t)?t:e.getAdUnitCodes()||[]}function B(){var t=e.getBidsReceived();if(r.b.getConfig("useBidCache")){var a=r.b.getConfig("bidCacheFilterFunction");"function"==typeof a&&(t=t.filter((function(e){return n[e.adUnitCode]===e.auctionId||!!a(e)})))}else t=t.filter((function(e){return n[e.adUnitCode]===e.auctionId}));return t=(t=t.map((function(e){return"storage"!=e.cacheStatus&&(n[e.adUnitCode]===e.auctionId?e.cacheStatus="current":e.cacheStatus="cached"),e}))).filter((function(e){return Object(i.deepAccess)(e,"video.context")!==d.a})).filter((function(e){return"banner"!==e.mediaType||Object(s.c)([e.width,e.height])})).filter(T.isUnusedBid).filter(T.isBidNotExpired),A(t,i.getOldestHighestCpmBid)}function M(e,n){var i=t.getWinningBids(e,n),r=R();return i=i.map((function(e){return m({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===r.indexOf(t)})).reduce((function(t,n){var i=[e.adserverTargeting[n]],r=m({},n.substring(0,20),i);if(n===y.TARGETING_KEYS.DEAL){var a=m({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),i);return[].concat(h(t),[r,a])}return[].concat(h(t),[r])}),[]))}))}function R(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(E).filter(i.uniques)}function D(e,t,n,r){return Object.keys(t.adserverTargeting).filter(k()).forEach((function(n){e.length&&e.filter(function(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}(n)).forEach(function(e){return function(n){Object(i.isArray)(n.adserverTargeting[e])||(n.adserverTargeting[e]=[n.adserverTargeting[e]]),n.adserverTargeting[e]=n.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(i.uniques),delete t.adserverTargeting[e]}}(n))})),e.push(t),e}function k(){var e=R().concat(a.a);return function(t){return-1===e.indexOf(t)}}function P(e){return m({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(k()).map((function(t){return m({},t.substring(0,20),[e.adserverTargeting[t]])})))}function U(e,t){return t.filter((function(t){return g()(e,t.adUnitCode)})).map((function(e){return b({},e)})).reduce(D,[]).map(P).filter((function(e){return e}))}function N(e,t){var n=E.concat(a.a),s=r.b.getConfig("sendBidsControl.bidLimit"),d=A(t,i.getHighestCpm,s),c=r.b.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),u=c?c.map((function(e){return y.TARGETING_KEYS[e]})):n;return d.map((function(t){if(o(t,e))return m({},t.adUnitCode,L(t,n.filter((function(e){return void 0!==t.adserverTargeting[e]&&-1!==u.indexOf(e)}))))})).filter((function(e){return e}))}function L(e,t){return t.map((function(t){return m({},"".concat(t,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[t]])}))}function q(t){function n(e){return Object(i.deepAccess)(e,y.JSON_MAPPING.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return g()(t,e.code)&&n(e)})).map((function(e){return m({},e.code,function(e){var t=n(e);return Object.keys(t).map((function(e){return Object(i.isStr)(t[e])&&(t[e]=t[e].split(",").map((function(e){return e.trim()}))),Object(i.isArray)(t[e])||(t[e]=[t[e]]),m({},e,t[e])}))}(e))}))}return t.setLatestAuctionForAdUnit=function(e,t){n[e]=t},t.resetPresetTargeting=function(t,n){if(Object(i.isGptPubadsDefined)()){var r=x(t),a=e.getAdUnits().filter((function(e){return g()(r,e.code)})),o=_.reduce((function(e,t){return e[t]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var t=Object(i.isFn)(n)&&n(e);a.forEach((function(n){(n.code===e.getAdUnitPath()||n.code===e.getSlotElementId()||Object(i.isFn)(t)&&t(n.code))&&e.updateTargetingFromMap(o)}))}))}},t.resetPresetTargetingAST=function(e){x(e).forEach((function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),i={};n.forEach((function(e){g()(_,e.toLowerCase())||(i[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:i})}}))},t.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B(),n=x(e),a=M(n,t).concat(U(n,t)).concat(r.b.getConfig("enableSendAllBids")?N(n,t):c(n,t)).concat(l(n,t)).concat(f(n,t)).concat(q(n));a.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===_.indexOf(Object.keys(e)[0])&&(_=Object.keys(e).concat(_))}))}))}));var o=Object.keys(b({},y.DEFAULT_TARGETING_KEYS,y.NATIVE_KEYS)),s=r.b.getConfig(S),d=r.b.getConfig(w);if(null!=d&&null!=s)throw new Error(O);s=null!=d?o.concat(d):s||o,Array.isArray(s)&&s.length>0&&(a=v(a,s)),a=j(a);var u=r.b.getConfig("targetingControls.auctionKeyMaxChars");return u&&(Object(i.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(u," characters. Running checks on auction keys...")),a=C(a,u)),n.forEach((function(e){a[e]||(a[e]={})})),a},r.b.getConfig("targetingControls",(function(e){null!=Object(i.deepAccess)(e,S)&&null!=Object(i.deepAccess)(e,w)&&Object(i.logError)(O)})),t.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach((function(n){Object.keys(e).filter(t?t(n):Object(i.isAdUnitCodeMatchingSlot)(n)).forEach((function(t){Object.keys(e[t]).forEach((function(n){var i=e[t][n];"string"==typeof i&&-1!==i.indexOf(",")&&(i=i.split(",")),e[t][n]=i})),Object(i.logMessage)("Attempting to set targeting-map for slot: ".concat(n.getSlotElementId()," with targeting-map:"),e[t]),n.updateTargetingFromMap(e[t])}))}))},t.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B(),n=x(e);return t.filter((function(e){return g()(n,e.adUnitCode)})).filter((function(e){return!0===u.a.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(i.uniques).map((function(e){return t.filter((function(t){return t.adUnitCode===e?t:null})).reduce(i.getHighestCpm)}))},t.setTargetingForAst=function(e){var n=t.getAllTargeting(e);try{t.resetPresetTargetingAST(e)}catch(e){Object(i.logError)("unable to reset targeting for AST"+e)}Object.keys(n).forEach((function(e){return Object.keys(n[e]).forEach((function(t){if(Object(i.logMessage)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(t," value: ").concat(n[e][t])),Object(i.isStr)(n[e][t])||Object(i.isArray)(n[e][t])){var r={};t.search(/pt[0-9]/)<0?r[t.toUpperCase()]=n[e][t]:r[t]=n[e][t],window.apntag.setKeywords(e,r,{overrideKeyValue:!0})}}))}))},t.isApntagDefined=function(){if(window.apntag&&Object(i.isFn)(window.apntag.setKeywords))return!0},t}(o.a)},24:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(t,n(20))},25:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBid=function(e,t){return new r(e,t)};var i=n(0);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.src,r=void 0===n?"client":n,a=t.bidder,o=void 0===a?"":a,s=t.bidId,d=t.transactionId,c=t.auctionId,u=r,l=e||0;function g(){switch(l){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=o,this.width=0,this.height=0,this.statusMessage=g(),this.adId=Object(i.getUniqueIdentifierStr)(),this.requestId=s,this.transactionId=d,this.auctionId=c,this.mediaType="banner",this.source=u,this.getStatusCode=function(){return l},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}}}},26:function(e,t,n){"use strict";n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return f})),t.b=function(e){e.forEach((function(e){var t=e.nativeParams||Object(i.deepAccess)(e,"mediaTypes.native");t&&(e.nativeParams=function(e){if(e&&e.type&&function(e){if(!e||!a()(Object.keys(p),e))return Object(i.logError)("".concat(e," nativeParam is not supported")),!1;return!0}(e.type))return p[e.type];return e}(t))}))},t.h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,r=void 0===n?o.a.index:n;if(!Object(i.deepAccess)(e,"native.clickUrl"))return!1;var s=r.getAdUnit(e).nativeParams;if(!s)return!0;var d=Object.keys(s).filter((function(e){return s[e].required})),c=Object.keys(e.native).filter((function(t){return e.native[t]}));return d.every((function(e){return a()(c,e)}))},t.c=function(e,t){var n;"click"===e.action?n=t.native&&t.native.clickTrackers:(n=t.native&&t.native.impressionTrackers,t.native&&t.native.javascriptTrackers&&Object(i.insertHtmlIntoIframe)(t.native.javascriptTrackers));return(n||[]).forEach(i.triggerPixel),e.action},t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,r=void 0===n?o.a.index:n,a={},s=r.getAdUnit(e);Object(i.deepAccess)(s,"nativeParams.rendererUrl")?e.native.rendererUrl=b(s.nativeParams.rendererUrl):Object(i.deepAccess)(s,"nativeParams.adTemplate")&&(e.native.adTemplate=b(s.nativeParams.adTemplate));var d=!1!==Object(i.deepAccess)(s,"nativeParams.sendTargetingKeys"),u=m(s),l=c(c({},e.native),e.native.ext);return delete l.ext,Object.keys(l).forEach((function(t){var n=u[t],r=b(e.native[t])||b(Object(i.deepAccess)(e,"native.ext.".concat(t)));if("adTemplate"!==t&&n&&r){var o=Object(i.deepAccess)(s,"nativeParams.".concat(t,".sendId"));if("boolean"!=typeof o&&(o=Object(i.deepAccess)(s,"nativeParams.ext.".concat(t,".sendId"))),o)r="".concat(n,":").concat(e.adId);var c=Object(i.deepAccess)(s,"nativeParams.".concat(t,".sendTargetingKeys"));"boolean"!=typeof c&&(c=Object(i.deepAccess)(s,"nativeParams.ext.".concat(t,".sendTargetingKeys"))),("boolean"==typeof c?c:d)&&(a[n]=r)}})),a},t.e=function(e,t){var n={message:"assetResponse",adId:e.adId,assets:[]};t.native.hasOwnProperty("adTemplate")&&(n.adTemplate=b(t.native.adTemplate));t.native.hasOwnProperty("rendererUrl")&&(n.rendererUrl=b(t.native.rendererUrl));return e.assets.forEach((function(e){var r=Object(i.getKeyByValue)(l.NATIVE_KEYS,e),a=b(t.native[r]);n.assets.push({key:r,value:a})})),n},t.d=function(e,t){var n={message:"assetResponse",adId:e.adId,assets:[]};return Object.keys(t.native).forEach((function(e,i){if("adTemplate"===e&&t.native[e])n.adTemplate=b(t.native[e]);else if("rendererUrl"===e&&t.native[e])n.rendererUrl=b(t.native[e]);else if("ext"===e)Object.keys(t.native[e]).forEach((function(i){if(t.native[e][i]){var r=b(t.native[e][i]);n.assets.push({key:i,value:r})}}));else if(t.native[e]&&l.NATIVE_KEYS.hasOwnProperty(e)){var r=b(t.native[e]);n.assets.push({key:e,value:r})}})),n};var i=n(0),r=n(12),a=n.n(r),o=n(16);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})(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(5),g=[],f=Object.keys(l.NATIVE_KEYS).map((function(e){return l.NATIVE_KEYS[e]})),p={image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}};function b(e){return"object"===s(e)&&e.url?e.url:e}function m(e){var t={};return Object(i.deepAccess)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){t[e]="hb_native_".concat(e)})),c(c({},l.NATIVE_KEYS),t)}},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(0),r=n(14);function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var s=n(5),d=new WeakSet;function c(e){return null==e?this.defaultScope:e}var u=new(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d.add(this),this.getSettings=t,this.defaultScope=n}var t,n,r;return t=e,(n=[{key:"get",value:function(e,t){var n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}},{key:"getOwn",value:function(e,t){return e=o(this,d,c).call(this,e),Object(i.deepAccess)(this.getSettings(),"".concat(e,".").concat(t))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(t){return t!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return Object(i.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=o(this,d,c).call(this,e),this.getSettings()[e]||{}}}])&&a(t.prototype,n),r&&a(t,r),e}())((function(){return Object(r.a)().bidderSettings||{}}),s.JSON_MAPPING.BD_SETTING_STANDARD)},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return O}));var i=n(32),r=n(11),a=n.n(r),o=n(12),s=n.n(o),d=n(0),c=["fpd"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var b=n(37),m=n(5),h="TRUE"===Object(d.getParameterByName)(m.DEBUG_MODE).toUpperCase(),v=window.location.origin,y="random",_={};_[y]=!0,_.fixed=!0;var S=y,w={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};var O=function(){var e,t,n,r=[],o=null;function m(){e={};var r={_debug:h,get debug(){return this._debug},set debug(e){this._debug=e},_bidderTimeout:3e3,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:v,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_priceGranularity:w.MEDIUM,set priceGranularity(e){s(e)&&("string"==typeof e?this._priceGranularity=o(e)?e:w.MEDIUM:Object(d.isPlainObject)(e)&&(this._customPriceBucket=e,this._priceGranularity=w.CUSTOM,Object(d.logMessage)("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_mediaTypePriceGranularity:{},get mediaTypePriceGranularity(){return this._mediaTypePriceGranularity},set mediaTypePriceGranularity(e){var t=this;this._mediaTypePriceGranularity=Object.keys(e).reduce((function(n,i){return s(e[i])?"string"==typeof e?n[i]=o(e[i])?e[i]:t._priceGranularity:Object(d.isPlainObject)(e)&&(n[i]=e[i],Object(d.logMessage)("Using custom price granularity for ".concat(i))):Object(d.logWarn)("Invalid price granularity for media type: ".concat(i)),n}),{})},_sendAllBids:true,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_useBidCache:false,get useBidCache(){return this._useBidCache},set useBidCache(e){this._useBidCache=e},_deviceAccess:true,get deviceAccess(){return this._deviceAccess},set deviceAccess(e){this._deviceAccess=e},_bidderSequence:S,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){_[e]?this._bidderSequence=e:Object(d.logWarn)("Invalid order: ".concat(e,". Bidder Sequence was not set."))},_timeoutBuffer:400,get timeoutBuffer(){return this._timeoutBuffer},set timeoutBuffer(e){this._timeoutBuffer=e},_disableAjaxTimeout:false,get disableAjaxTimeout(){return this._disableAjaxTimeout},set disableAjaxTimeout(e){this._disableAjaxTimeout=e},_maxNestedIframes:10,get maxNestedIframes(){return this._maxNestedIframes},set maxNestedIframes(e){this._maxNestedIframes=e},_auctionOptions:{},get auctionOptions(){return this._auctionOptions},set auctionOptions(e){(function(e){if(!Object(d.isPlainObject)(e))return Object(d.logWarn)("Auction Options must be an object"),!1;for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];if("secondaryBidders"!==i&&"suppressStaleRender"!==i)return Object(d.logWarn)("Auction Options given an incorrect param: ".concat(i)),!1;if("secondaryBidders"===i){if(!Object(d.isArray)(e[i]))return Object(d.logWarn)("Auction Options ".concat(i," must be of type Array")),!1;if(!e[i].every(d.isStr))return Object(d.logWarn)("Auction Options ".concat(i," must be only string")),!1}else if("suppressStaleRender"===i&&!Object(d.isBoolean)(e[i]))return Object(d.logWarn)("Auction Options ".concat(i," must be of type boolean")),!1}return!0})(e)&&(this._auctionOptions=e)}};function o(e){return a()(Object.keys(w),(function(t){return e===w[t]}))}function s(e){if(!e)return Object(d.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)o(e)||Object(d.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if(Object(d.isPlainObject)(e)&&!Object(i.b)(e))return Object(d.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}t&&I(Object.keys(t).reduce((function(e,n){return t[n]!==r[n]&&(e[n]=r[n]||{}),e}),{})),t=r,n={}}function y(){if(o&&n&&Object(d.isPlainObject)(n[o])){var e=n[o],i=new Set(Object.keys(t).concat(Object.keys(e)));return b(i).reduce((function(n,i){return void 0===e[i]?n[i]=t[i]:void 0===t[i]?n[i]=e[i]:Object(d.isPlainObject)(e[i])?n[i]=Object(d.mergeDeep)({},t[i],e[i]):n[i]=e[i],n}),{})}return p({},t)}function O(e){var t={};return Object.keys(e).forEach((function(n){var i="context"===n?"site":n;t[i]="site"===i||"user"===i?Object.keys(e[n]).reduce((function(t,i){return"data"===i?Object(d.mergeDeep)(t,{ext:{data:e[n][i]}}):Object(d.mergeDeep)(t,g({},i,e[n][i])),t}),{}):e[n]})),t}function E(e){var t={};return Object.keys(e).filter((function(e){return"context"===e})).forEach((function(n){Object.keys(e[n]).forEach((function(i){"data"===i?Object(d.mergeDeep)(t,{ext:{data:e[n][i]}}):"object"!==f(e[n][i])||Array.isArray(e[n][i])?Object(d.mergeDeep)(t,{ext:{data:g({},i.toLowerCase(),e[n][i])}}):Object.keys(e[n][i]).forEach((function(r){Object(d.mergeDeep)(t,{ext:{data:g({},i.toLowerCase(),g({},r.toLowerCase(),e[n][i][r]))}})}))}))})),t}function T(n){if(Object(d.isPlainObject)(n)){var i=Object.keys(n),r={};i.forEach((function(i){var a="fpd"===i?"ortb2":i,o="fpd"===i?O(n[i]):n[i];Object(d.isPlainObject)(e[a])&&Object(d.isPlainObject)(o)&&(o=p({},e[a],o)),r[a]=t[a]=o})),I(r)}else Object(d.logError)("setConfig options must be an object")}function A(e,t){var n=t;if("string"!=typeof e&&(n=e,e="*"),"function"==typeof n){var i={topic:e,callback:n};return r.push(i),function(){r.splice(r.indexOf(i),1)}}Object(d.logError)("listener must be a function")}function I(e){var t=Object.keys(e);r.filter((function(e){return s()(t,e.topic)})).forEach((function(t){t.callback(g({},t.topic,e[t.topic]))})),r.filter((function(e){return"*"===e.topic})).forEach((function(t){return t.callback(e)}))}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{i(e),e.bidders.forEach((function(i){n[i]||(n[i]={}),Object.keys(e.config).forEach((function(r){var a="fpd"===r?"ortb2":r,o="fpd"===r?O(e.config[r]):e.config[r];if(Object(d.isPlainObject)(o)){var s=t?d.mergeDeep:Object.assign;n[i][a]=s({},n[i][a]||{},o)}else n[i][a]=o}))}))}catch(e){Object(d.logError)(e)}function i(e){if(!Object(d.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(!Object(d.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function j(e,t){o=e;try{return t()}finally{x()}}function x(){o=null}return m(),{getCurrentBidder:function(){return o},resetBidder:x,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?Object(d.deepAccess)(y(),e):y()}return A.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],t=Object(d.deepClone)(y());return e?Object(d.deepAccess)(t,e):t}return A.apply(void 0,arguments)},setConfig:T,mergeConfig:function(e){if(Object(d.isPlainObject)(e)){var t=Object.keys(e).reduce((function(t,n){var i=y()[n]||{};return t[n]=Object(d.mergeDeep)(i,e[n]),t}),{});return T(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)),t}Object(d.logError)("mergeConfig input must be an object")},setDefaults:function(n){Object(d.isPlainObject)(e)?(p(e,n),p(t,n)):Object(d.logError)("defaults must be an object")},resetConfig:m,runWithBidder:j,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return j(e,d.bind.call.apply(d.bind,[t,this].concat(i)))}Object(d.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:C,getBidderConfig:function(){return n},mergeBidderConfig:function(e){return C(e,!0)},convertAdUnitFpd:function(e){var t=[];return e.forEach((function(e){e.fpd?(e.ortb2Imp?Object(d.mergeDeep)(e.ortb2Imp,E(e.fpd)):e.ortb2Imp=E(e.fpd),t.push(function(e){e.fpd;return l(e,c)}(e))):t.push(e)})),t},getLegacyFpd:function(e){if("object"===f(e)){var t={};return Object.keys(e).forEach((function(n){var i="site"===n?"context":n;t[i]="context"===i||"user"===i?Object.keys(e[n]).filter((function(e){return"data"!==e})).reduce((function(t,i){return"ext"===i?Object(d.mergeDeep)(t,e[n][i]):Object(d.mergeDeep)(t,g({},i,e[n][i])),t}),{}):e[n]})),t}},getLegacyImpFpd:function(e){if("object"===f(e)){var t={};return Object(d.deepAccess)(e,"ext.data")&&Object.keys(e.ext.data).forEach((function(n){"pbadslot"===n?Object(d.mergeDeep)(t,{context:{pbAdSlot:e.ext.data[n]}}):"adserver"===n?Object(d.mergeDeep)(t,{context:{adServer:e.ext.data[n]}}):Object(d.mergeDeep)(t,{context:{data:g({},n,e.ext.data[n])}})})),t}}}}()},31:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var i=n(11),r=n.n(i),a=n(0),o={buckets:[{max:5,increment:.5}]},s={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},c={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},u={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":g(e,o,n),med:""===i?"":g(e,s,n),high:""===i?"":g(e,d,n),auto:""===i?"":g(e,u,n),dense:""===i?"":g(e,c,n),custom:""===i?"":g(e,t,n)}}function g(e,t,n){var i="";if(!f(t))return i;var a=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),o=0,s=r()(t.buckets,(function(t){if(e>a.max*n){var r=t.precision;void 0===r&&(r=2),i=(t.max*n).toFixed(r)}else{if(e<=t.max*n&&e>=o*n)return t.min=o,t;o=t.max}}));return s&&(i=function(e,t,n){var i=void 0!==t.precision?t.precision:2,r=t.increment*n,a=t.min*n,o=Math.pow(10,i+2),s=(e*o-a*o)/(r*o),d=Math.floor(s)*r+a;return(d=Number(d.toFixed(10))).toFixed(i)}(e,s,n)),i}function f(e){if(Object(a.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(t=!1)})),t}},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n(0),r=n(3),a=n(12),o=n.n(a),s=n(7);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}r.b.setDefaults({userSync:Object(i.deepClone)({syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0})});var l=Object(s.a)("usersync");var g=!Object(i.isSafariBrowser)()&&l.cookiesAreEnabled(),f=function(e){var t={},n={image:[],iframe:[]},a=new Set,s={},c={image:!0,iframe:!1},l=e.config;function g(){if(l.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!c.iframe)return;f(n.iframe,(function(e){var t=d(e,2),r=t[0],a=t[1];Object(i.logMessage)("Invoking iframe user sync for bidder: ".concat(r)),Object(i.insertUserSyncIframe)(a),function(e,t){e.image=e.image.filter((function(e){return e[0]!==t}))}(n,r)}))}(),function(){if(!c.image)return;f(n.image,(function(e){var t=d(e,2),n=t[0],r=t[1];Object(i.logMessage)("Invoking image pixel user sync for bidder: ".concat(n)),Object(i.triggerPixel)(r)}))}()}catch(e){return Object(i.logError)("Error firing user syncs",e)}n={image:[],iframe:[]}}}function f(e,t){Object(i.shuffle)(e).forEach((function(e){t(e),a.add(e[0])}))}function p(e,t){var n=l.filterSettings;if(function(e,t){if(e.all&&e[t])return Object(i.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(t,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var n=e.all?e.all:e[t],r=e.all?"all":t;if(!n)return!1;var a=n.filter,o=n.bidders;if(a&&"include"!==a&&"exclude"!==a)return Object(i.logWarn)('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(a,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==o&&!(Array.isArray(o)&&o.length>0&&o.every((function(e){return Object(i.isStr)(e)&&"*"!==e}))))return Object(i.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(n,e)){c[e]=!0;var r=n.all?n.all:n[e],a="*"===r.bidders?[t]:r.bidders;return{include:function(e,t){return!o()(e,t)},exclude:function(e,t){return o()(e,t)}}[r.filter||"include"](a,t)}return!c[e]}return r.b.getConfig("userSync",(function(e){if(e.userSync){var t=e.userSync.filterSettings;Object(i.isPlainObject)(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}l=u(l,e.userSync)})),t.registerSync=function(e,r,o){if(a.has(r))return Object(i.logMessage)('already fired syncs for "'.concat(r,'", ignoring registerSync call'));if(!l.syncEnabled||!Object(i.isArray)(n[e]))return Object(i.logWarn)('User sync type "'.concat(e,'" not supported'));if(!r)return Object(i.logWarn)("Bidder is required for registering sync");if(0!==l.syncsPerBidder&&Number(s[r])>=l.syncsPerBidder)return Object(i.logWarn)('Number of user syncs exceeded for "'.concat(r,'"'));if(!t.canBidderRegisterSync(e,r))return Object(i.logWarn)('Bidder "'.concat(r,'" not permitted to register their "').concat(e,'" userSync pixels.'));var d=!0;n[e].forEach((function(e){e[0]==r&&(e[1]=o,Object(i.logWarn)('Bidder "'.concat(r,'" is already added to userSync. Updating URL:').concat(e[1]," to ").concat(o)),d=!1)})),d&&(n[e].push([r,o]),s=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(s,r))},t.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(g,Number(e));g()},t.triggerUserSyncs=function(){l.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=function(e,t){return!l.filterSettings||!p(e,t)},t}({config:r.b.getConfig("userSync"),browserSupportsCookies:g})},34:function(e,t,n){"use strict";t.a=function(e,t){a.adServers=a.adServers||{},a.adServers[e]=a.adServers[e]||{},Object.keys(t).forEach((function(n){a.adServers[e][n]?Object(r.logWarn)("Attempting to add an already registered function property ".concat(n," for AdServer ").concat(e,".")):a.adServers[e][n]=t[n]}))};var i=n(14),r=n(0),a=Object(i.a)()},35:function(e,t,n){var i=n(31);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},37:function(e,t){e.exports=function(){return Array.from.apply(Array,arguments)}},38:function(e,t){e.exports={id:9999999,code:"test",file:"asc.test.js",globalVar:"asc",url:"https://cdn.adapex.com/",dfpAccount:"22181265",adunitMapping:"adunit",gist:"https://gist.github.com/bozghiyy/fd42285e21f0959283104659c5536bd1",analytics:{quantcast:!1,adRizer:!1,clarity:!1,google:!1,liverampAts:!1},wrapper:{timeout:2e3,timeoutFallback:5e3,bidRequestWaitTime:50,disableBidders:[],disableClientSideAdapters:[],prebidServerAccountId:"5b3e1ba1-ffed-4c19-bea2-74521bc13ab3"},bidAdjustments:{pubshare:1,networks:{pubmatic:.97,districtm:.9,brealtime:.8}},lazyLoading:{preViewLenght:1e3,scrollEventDelay:400},targeting:{refreshIteration:"refresh_count",speed:!0,utmKeyValues:!0,gads:!1,browserLangCode:!1,referrer:!1,tcf:!1},refresh:{stopAdvertisers:[],pauseOutOfFocus:!1,maxLimit:!1,maxEmpty:!1,maxConsecutiveEmpty:!1,forceRefreshRateForAdvertiser:[]},deviceDetection:"window",dfp:{collapseEmptyDivs:!1,emtpyCreativeFallback:!0},prebid:{priceGranularity:{buckets:[{precision:2,max:20,increment:.01}]},floors:{enforcement:{enforceJS:!0,enforcePBS:!0,floorDeals:!0,bidAdjustment:!0},data:{currency:"USD",skipRate:0,schema:{fields:["mediaType"]},values:{banner:.01,native:.01,video:.01},default:.01}}},amazon:{enabled:!1,pubID:"1ad7261b-91ea-4b6f-b9e9-b83522205b75",adServer:"googletag"},forceReWrittingPBJS:!1}},39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"adUnitSetupChecks",(function(){return J})),n.d(t,"checkAdUnitSetup",(function(){return K})),t.executeCallbacks=$;var i=n(14),r=n(0),a=n(80),o=n(33),s=n(3),d=n(16),c=n(23),u=n(8),l=n(84),g=n(12),f=n.n(g),p=n(40),b=n(13),m=n(25),h=n(7),v=n(53);function y(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var w=Object(i.a)(),O=n(5),E=n(9).default,T=n(10),A=o.a.triggerUserSyncs,I=n(38),C=O.EVENTS,j=C.ADD_AD_UNITS,x=C.BID_WON,B=C.REQUEST_BIDS,M=C.SET_TARGETING,R=C.STALE_RENDER,D=O.AD_RENDER_FAILED_REASON,k=D.PREVENT_WRITING_ON_MAIN_DOCUMENT,P=D.NO_AD,U=D.EXCEPTION,N=D.CANNOT_FIND_AD,L=D.MISSING_DOC_OR_ADID,q={bidWon:function(e){var t=d.a.getBidsRequested().map((function(e){return e.bids.map((function(e){return e.adUnitCode}))})).reduce(r.flatten).filter(r.uniques);if(!Object(r.contains)(t,e))return void Object(r.logError)('The "'+e+'" placement is not defined.');return!0}};function F(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function z(e,t){var n=[];return Object(r.isArray)(e)&&(t?e.length===t:e.length>0)&&(e.every((function(e){return Object(r.isArrayOfNums)(e,2)}))?n=e:Object(r.isArrayOfNums)(e,2)&&n.push(e)),n}function H(e){var t=Object(r.deepClone)(e),n=t.mediaTypes.banner,i=z(n.sizes);return i.length>0?(n.sizes=i,t.sizes=i):(Object(r.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}function W(e){var t=Object(r.deepClone)(e),n=t.mediaTypes.video;if(n.playerSize){var i="number"==typeof n.playerSize[0]?2:1,a=z(n.playerSize,i);a.length>0?(2===i&&Object(r.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),n.playerSize=a,t.sizes=a):(Object(r.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}function G(e){var t=Object(r.deepClone)(e),n=t.mediaTypes.native;return n.image&&n.image.sizes&&!Array.isArray(n.image.sizes)&&(Object(r.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),n.image&&n.image.aspect_ratios&&!Array.isArray(n.image.aspect_ratios)&&(Object(r.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),n.icon&&n.icon.sizes&&!Array.isArray(n.icon.sizes)&&(Object(r.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}function V(e,t){var n=Object(r.deepAccess)(e,"mediaTypes.".concat(t,".pos"));if(!Object(r.isNumber)(n)||isNaN(n)||!isFinite(n)){var i="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");Object(r.logWarn)(i),T.emit(O.EVENTS.AUCTION_DEBUG,{type:"WARNING",arguments:i}),delete e.mediaTypes[t].pos}return e}Object(l.a)(),w.bidderSettings=w.bidderSettings||{},w.libLoaded=!0,w.version="v6.10.0",Object(r.logInfo)("Prebid.js v6.10.0 loaded"),w.installedModules=w.installedModules||[],w.adUnits=w.adUnits||[],w.triggerUserSyncs=A;var J={validateBannerMediaType:H,validateVideoMediaType:W,validateNativeMediaType:G,validateSizes:z},K=Object(u.b)("sync",(function(e){var t=[];return e.forEach((function(e){var n,i,a,o=e.mediaTypes,s=e.bids;if(s&&Object(r.isArray)(s))if(o&&0!==Object.keys(o).length){o.banner&&(n=H(e),o.banner.hasOwnProperty("pos")&&(n=V(n,"banner"))),o.video&&(i=W(n||e),o.video.hasOwnProperty("pos")&&(i=V(i,"video"))),o.native&&(a=G(i||(n||e)));var d=S({},n,i,a);t.push(d)}else Object(r.logError)("Detected adUnit.code '".concat(e.code,"' did not have a 'mediaTypes' object defined. This is a required field for the auction, so this adUnit has been removed."));else Object(r.logError)("Detected adUnit.code '".concat(e.code,"' did not have 'adUnit.bids' defined or 'adUnit.bids' is not an array. Removing adUnit from auction."))})),t}),"checkAdUnitSetup");function Q(e){var t=d.a[e]().filter(r.bind.call(r.adUnitsFilter,this,d.a.getAdUnitCodes())),n=d.a.getLastAuctionId();return t.map((function(e){return e.adUnitCode})).filter(r.uniques).map((function(e){return t.filter((function(t){return t.auctionId===n&&t.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return t={},n=e[0].adUnitCode,i={bids:e},n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t;var t,n,i})).reduce((function(e,t){return S(e,t)}),{})}function Y(e,t,n){var i=t.querySelector(n);e.parentNode&&e.parentNode===i||Object(r.insertElement)(e,t,n)}function $(e,t){function n(e){for(var t;t=e.shift();)t()}n(h.c),n(X),e.call(this,t)}w.getAdserverTargetingForAdUnitCodeStr=function(e){if(Object(r.logInfo)("Invoking asc.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=w.getAdserverTargetingForAdUnitCode(e);return Object(r.transformAdServerTargetingObj)(t)}Object(r.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},w.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var t=d.a.getAllBidsForAdUnitCode(e).filter(c.a.isUnusedBid).filter(c.a.isBidNotExpired);return t.length?t.reduce(r.getHighestCpm):{}}Object(r.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},w.getAdserverTargetingForAdUnitCode=function(e){return w.getAdserverTargeting(e)[e]},w.getAdserverTargeting=function(e){return Object(r.logInfo)("Invoking asc.getAdserverTargeting",arguments),c.d.getAllTargeting(e)},w.getNoBids=function(){return Object(r.logInfo)("Invoking asc.getNoBids",arguments),Q("getNoBids")},w.getNoBidsForAdUnitCode=function(e){return{bids:d.a.getNoBids().filter((function(t){return t.adUnitCode===e}))}},w.getBidResponses=function(){return Object(r.logInfo)("Invoking asc.getBidResponses",arguments),Q("getBidsReceived")},w.getAuctionBidsRequested=function(){return d.a.getBidsRequested()},w.getAuctionNoBids=function(){return d.a.getNoBids()},w.getAuctionBidResponses=function(){return d.a.getBidsReceived()},w.getAuctions=function(){return d.a.getAuctions()},w.getBidResponsesForAdUnitCode=function(e){return{bids:d.a.getBidsReceived().filter((function(t){return t.adUnitCode===e}))}},w.setTargetingForGPTAsync=function(e,t){if(Object(r.logInfo)("Invoking asc.setTargetingForGPTAsync",arguments),Object(r.isGptPubadsDefined)()){var n=c.d.getAllTargeting(e);c.d.resetPresetTargeting(e,t),c.d.setTargetingForGPT(n,t),Object.keys(n).forEach((function(e){Object.keys(n[e]).forEach((function(t){"hb_adid"===t&&d.a.setStatusForBids(n[e][t],O.BID_STATUS.BID_TARGETING_SET)}))})),T.emit(M,n)}else Object(r.logError)("window.googletag is not defined on the page")},w.setTargetingForAst=function(e){Object(r.logInfo)("Invoking asc.setTargetingForAn",arguments),c.d.isApntagDefined()?(c.d.setTargetingForAst(e),T.emit(M,c.d.getAllTargeting())):Object(r.logError)("window.apntag is not defined on the page")},w.renderAd=Object(u.b)("async",(function(e,t,n){if(Object(r.logInfo)("Invoking asc.renderAd",arguments),Object(r.logMessage)("Calling renderAd with adId :"+t),e&&t)try{var i=d.a.findBidByAdId(t);if(i){var a=!0;if(i&&i.status===O.BID_STATUS.RENDERED&&(Object(r.logWarn)("Ad id ".concat(i.adId," has been rendered before")),T.emit(R,i),Object(r.deepAccess)(s.b.getConfig("auctionOptions"),"suppressStaleRender")&&(a=!1)),a){if(i.ad=Object(r.replaceAuctionPrice)(i.ad,i.cpm),i.adUrl=Object(r.replaceAuctionPrice)(i.adUrl,i.cpm),n&&n.clickThrough){var o=n.clickThrough;i.ad=Object(r.replaceClickThrough)(i.ad,o),i.adUrl=Object(r.replaceClickThrough)(i.adUrl,o)}d.a.addWinningBid(i),T.emit(x,i);var c=i.height,u=i.width,l=i.ad,g=i.mediaType,f=i.adUrl,p=i.renderer,m=document.createComment("Creative ".concat(i.creativeId," served by ").concat(i.bidder," Prebid.js Header Bidding"));if(Object(r.insertElement)(m,e,"html"),Object(b.c)(p))Object(b.b)(p,i),Y(m,e,"html"),Object(v.b)({doc:e,bid:i,id:t});else if(e===document&&!Object(r.inIframe)()||"video"===g){var h="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document.");Object(v.a)({reason:k,message:h,bid:i,id:t})}else if(l){if(navigator.userAgent&&navigator.userAgent.toLowerCase().indexOf("firefox/")>-1){var y=/firefox\/([\d\.]+)/,_=navigator.userAgent.toLowerCase().match(y)[1];_&&parseInt(_,10)<67&&e.open("text/html","replace")}e.write(l),e.close(),F(e,u,c),Y(m,e,"html"),Object(r.callBurl)(i),Object(v.b)({doc:e,bid:i,id:t})}else if(f){var S=Object(r.createInvisibleIframe)();S.height=c,S.width=u,S.style.display="inline",S.style.overflow="hidden",S.src=f,Object(r.insertElement)(S,e,"body"),F(e,u,c),Y(m,e,"html"),Object(r.callBurl)(i),Object(v.b)({doc:e,bid:i,id:t})}else{var w="Error trying to write ad. No ad for bid response id: ".concat(t);Object(v.a)({reason:P,message:w,bid:i,id:t})}}}else{var E="Error trying to write ad. Cannot find ad by given id : ".concat(t);Object(v.a)({reason:N,message:E,id:t})}}catch(e){var A="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);Object(v.a)({reason:U,message:A,id:t})}else{var I="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");Object(v.a)({reason:L,message:I,id:t})}})),w.removeAdUnit=function(e){(Object(r.logInfo)("Invoking asc.removeAdUnit",arguments),e)?(Object(r.isArray)(e)?e:[e]).forEach((function(e){for(var t=w.adUnits.length-1;t>=0;t--)w.adUnits[t].code===e&&w.adUnits.splice(t,1)})):w.adUnits=[]},w.requestBids=Object(u.b)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,i=e.adUnits,a=e.adUnitCodes,o=e.labels,u=e.auctionId;T.emit(B);var l=n||s.b.getConfig("bidderTimeout");i=i&&s.b.convertAdUnitFpd(Object(r.isArray)(i)?i:[i])||w.adUnits,Object(r.logInfo)("Invoking asc.requestBids",arguments);var g=[],b=[];if(s.b.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(g=Array.isArray(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])})),g.forEach((function(e){b.push.apply(b,y(e.bidders))})),i=K(i),a&&a.length?i=i.filter((function(e){return f()(a,e.code)})):a=i&&i.map((function(e){return e.code})),i.forEach((function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map((function(e){return e.bidder})),i=E.bidderRegistry,a=b?n.filter((function(e){return!I.wrapper.disableClientSideAdapters||!f()(I.wrapper.disableClientSideAdapters,e)})):n;e.transactionId=Object(r.generateUUID)(),a.forEach((function(n){var a=i[n],o=a&&a.getSpec&&a.getSpec(),s=o&&o.supportedMediaTypes||["banner"];t.some((function(e){return f()(s,e)}))?p.a.incrementBidderRequestsCounter(e.code,n):(Object(r.logWarn)(Object(r.unsupportedBidderMessage)(e,n)),e.bids=e.bids.filter((function(e){return e.bidder!==n})))})),p.a.incrementRequestsCounter(e.code)})),i&&0!==i.length){var m=d.a.createAuction({adUnits:i,adUnitCodes:a,callback:t,cbTimeout:l,labels:o,auctionId:u}),h=i.length;h>15&&Object(r.logInfo)("Current auction ".concat(m.getAuctionId()," contains ").concat(h," adUnits."),i),a.forEach((function(e){return c.d.setLatestAuctionForAdUnit(e,m.getAuctionId())})),m.callBids()}else if(Object(r.logMessage)("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){Object(r.logError)("Error executing bidsBackHandler",null,e)}})),w.requestBids.before($,49),w.addAdUnits=function(e){Object(r.logInfo)("Invoking asc.addAdUnits",arguments),w.adUnits.push.apply(w.adUnits,s.b.convertAdUnitFpd(Object(r.isArray)(e)?e:[e])),T.emit(j)},w.onEvent=function(e,t,n){Object(r.logInfo)("Invoking asc.onEvent",arguments),Object(r.isFn)(t)?!n||q[e].call(null,n)?T.on(e,t,n):Object(r.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):Object(r.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},w.offEvent=function(e,t,n){Object(r.logInfo)("Invoking asc.offEvent",arguments),n&&!q[e].call(null,n)||T.off(e,t,n)},w.getEvents=function(){return Object(r.logInfo)("Invoking asc.getEvents"),T.getEvents()},w.registerBidAdapter=function(e,t){Object(r.logInfo)("Invoking asc.registerBidAdapter",arguments);try{E.registerBidAdapter(e(),t)}catch(e){Object(r.logError)("Error registering bidder adapter : "+e.message)}},w.registerAnalyticsAdapter=function(e){Object(r.logInfo)("Invoking asc.registerAnalyticsAdapter",arguments);try{E.registerAnalyticsAdapter(e)}catch(e){Object(r.logError)("Error registering analytics adapter : "+e.message)}},w.createBid=function(e){return Object(r.logInfo)("Invoking asc.createBid",arguments),Object(m.createBid)(e)};var X=[],Z=Object(u.b)("async",(function(e){e&&!Object(r.isEmpty)(e)?(Object(r.logInfo)("Invoking asc.enableAnalytics for: ",e),E.enableAnalytics(e)):Object(r.logError)("asc.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function ee(e){e.forEach((function(e){if(void 0===e&&(Object(r.logError)("Error cmd is undefined :","prebid.js"),e=function(){Object(r.logMessage)("Empty function Placeholder","prebid.js")}),void 0===e.called)try{e.call(),e.called=!0}catch(e){Object(r.logError)("Error processing command :","prebid.js",e)}}))}w.enableAnalytics=function(e){X.push(Z.bind(this,e))},w.aliasBidder=function(e,t,n){Object(r.logInfo)("Invoking asc.aliasBidder",arguments),e&&t?E.aliasBidAdapter(e,t,n):Object(r.logError)("bidderCode and alias must be passed as arguments","asc.aliasBidder")},w.getAllWinningBids=function(){return d.a.getAllWinningBids()},w.getAllPrebidWinningBids=function(){return d.a.getBidsReceived().filter((function(e){return e.status===O.BID_STATUS.BID_TARGETING_SET}))},w.getHighestCpmBids=function(e){return c.d.getWinningBids(e)},w.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=d.a.getBidsReceived().filter((function(t){return t.adId===e.adId&&t.adUnitCode===e.adUnitCode})):e.adUnitCode?t=c.d.getWinningBids(e.adUnitCode):e.adId?t=d.a.getBidsReceived().filter((function(t){return t.adId===e.adId})):Object(r.logWarn)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(t[0].status=O.BID_STATUS.RENDERED)},w.getConfig=s.b.getConfig,w.readConfig=s.b.readConfig,w.mergeConfig=s.b.mergeConfig,w.mergeBidderConfig=s.b.mergeBidderConfig,w.setConfig=s.b.setConfig,w.setBidderConfig=s.b.setBidderConfig,w.que.push((function(){return Object(a.a)()})),w.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){Object(r.logError)("Error processing command :",e.message,e.stack)}else Object(r.logError)("Commands written into asc.cmd.push must be wrapped in a function")},w.que.push=w.cmd.push,w.processQueue=function(){u.b.ready(),ee(w.que),ee(w.cmd)},t.default=w},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),t.b=d;var i=n(3),r=n(0);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=d();function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.request,s=t.done;return function(t,d,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var l,g=u.method||(c?"POST":"GET"),f=document.createElement("a");f.href=t;var p="object"===o(d)&&null!==d?d:{success:function(){Object(r.logMessage)("xhr success")},error:function(e){Object(r.logError)("xhr error",null,e)}};if("function"==typeof d&&(p.success=d),(l=new window.XMLHttpRequest).onreadystatechange=function(){if(4===l.readyState){"function"==typeof s&&s(f.origin);var e=l.status;e>=200&&e<300||304===e?p.success(l.responseText,l):p.error(l.statusText,l)}},i.b.getConfig("disableAjaxTimeout")||(l.ontimeout=function(){Object(r.logError)(" xhr timeout after ",l.timeout,"ms")}),"GET"===g&&c){var b=Object(r.parseUrl)(t,u);a(b.search,c),t=Object(r.buildUrl)(b)}l.open(g,t,!0),i.b.getConfig("disableAjaxTimeout")||(l.timeout=e),u.withCredentials&&(l.withCredentials=!0),Object(r._each)(u.customHeaders,(function(e,t){l.setRequestHeader(t,e)})),u.preflight&&l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.setRequestHeader("Content-Type",u.contentType||"text/plain"),"function"==typeof n&&n(f.origin),"POST"===g&&c?l.send(c):l.send()}catch(e){Object(r.logError)("xhr construction",e),"object"===o(d)&&null!==d&&d.error(e)}}}},40:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r={};function a(e,t,n){var i=function(e,t){var n=r[e]=r[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return i[t]=(i[t]||0)+1,i[t]}var o={incrementRequestsCounter:function(e){return a(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return a(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return a(e,"winsCounter",t)},getRequestsCounter:function(e){return Object(i.deepAccess)(r,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,t){return Object(i.deepAccess)(r,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0},getBidderWinsCounter:function(e,t){return Object(i.deepAccess)(r,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}}},49:function(e,t,n){var i=n(61),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(i(e),t)}},5:function(e,t){e.exports={JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},DEBUG_MODE:"aaw_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",NO_BID:"noBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:{BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain"},DEFAULT_TARGETING_KEYS:{BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host"},NATIVE_KEYS:{title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},S2S:{SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},BID_STATUS:{BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"}}},50:function(e,t,n){"use strict";t.b=function(e,t){var n={puts:e.map(s)};Object(i.a)(r.b.getConfig("cache.url"),function(e){return{success:function(t){var n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error("Error storing video ad in the cache: ".concat(t,": ").concat(JSON.stringify(n))),[])}}}(t),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0})},t.a=function(e){return"".concat(r.b.getConfig("cache.url"),"?uuid=").concat(e)};var i=n(4),r=n(3),a=n(16);function o(e,t){var n=t?"<![CDATA[".concat(t,"]]>"):"";return'<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA['.concat(e,"]]></VASTAdTagURI>\n <Impression>").concat(n,"</Impression>\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,i=void 0===n?a.a.index:n,s=e.vastXml?e.vastXml:o(e.vastUrl,e.vastImpUrl),d=i.getAuction(e),c={type:"xml",value:s,ttlseconds:Number(e.ttl)};return r.b.getConfig("cache.vasttrack")&&(c.bidder=e.bidder,c.bidid=e.requestId,c.aid=e.auctionId),null!=d&&(c.timestamp=d.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(c.key=e.customCacheKey),c}},51:function(e,t,n){"use strict";t.a=function(e,t){if(e.labelAll)return{labelAll:!0,labels:e.labelAll,activeLabels:t};return{labelAll:!1,labels:e.labelAny,activeLabels:t}},t.c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=c(t);if(!n.shouldFilter)return!0;return!!n.sizesSupported[e]},t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,n=void 0===t?[]:t,i=e.labelAll,a=void 0!==i&&i,s=e.activeLabels,u=void 0===s?[]:s,l=arguments.length>1?arguments[1]:void 0,g=arguments.length>2?arguments[2]:void 0,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d,p=c(f);l=Object(r.isPlainObject)(l)?Object(r.deepClone)(l):g?{banner:{sizes:g}}:{};var b=Object(r.deepAccess)(l,"banner.sizes");p.shouldFilter&&b&&(l.banner.sizes=b.filter((function(e){return p.sizesSupported[e]})));var m=Object.keys(l),h={active:m.every((function(e){return"banner"!==e}))||m.some((function(e){return"banner"===e}))&&Object(r.deepAccess)(l,"banner.sizes.length")>0&&(0===n.length||!a&&(n.some((function(e){return p.labels[e]}))||n.some((function(e){return o()(u,e)})))||a&&n.reduce((function(e,t){return e?p.labels[t]||o()(u,t):e}),!0)),mediaTypes:l};b&&b.length!==l.banner.sizes.length&&(h.filterResults={before:b,after:l.banner.sizes});return h};var i=n(3),r=n(0),a=n(12),o=n.n(a);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})(e)}var d=[];function c(e){return e.reduce((function(e,t){if("object"===s(t)&&"string"==typeof t.mediaQuery&&t.mediaQuery.length>0){var n=!1;try{n=Object(r.getWindowTop)().matchMedia(t.mediaQuery).matches}catch(e){Object(r.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),n=matchMedia(t.mediaQuery).matches}n&&(Array.isArray(t.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach((function(n){return(t[n]||[]).forEach((function(t){return e[n][t]=!0}))})))}else Object(r.logWarn)('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}i.b.getConfig("sizeConfig",(function(e){return function(e){d=e}(e.sizeConfig)}))},52:function(e,t,n){"use strict";t.a=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},53:function(e,t,n){"use strict";t.a=function(e){var t=e.reason,n=e.message,r=e.bid,o=e.id,s={reason:t,message:n};r&&(s.bid=r);o&&(s.adId=o);Object(i.logError)(n),a.a.emit(d,s)},t.b=function(e){var t=e.doc,n=e.bid,i=e.id,r={doc:t};n&&(r.bid=n);i&&(r.adId=i);a.a.emit(c,r)};var i=n(0),r=n(10),a=n.n(r),o=n(5),s=n.n(o).a.EVENTS,d=s.AD_RENDER_FAILED,c=s.AD_RENDER_SUCCEEDED},54:function(e,t,n){"use strict";var i=n(24),r=n(797).f,a=n(800),o=n(63),s=n(64),d=n(65),c=n(49),u=function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,l,g,f,p,b,m,h,v=e.target,y=e.global,_=e.stat,S=e.proto,w=y?i:_?i[v]:(i[v]||{}).prototype,O=y?o:o[v]||(o[v]={}),E=O.prototype;for(g in t)n=!a(y?g:v+(_?".":"#")+g,e.forced)&&w&&c(w,g),p=O[g],n&&(b=e.noTargetGet?(h=r(w,g))&&h.value:w[g]),f=n&&b?b:t[g],n&&typeof p==typeof f||(m=e.bind&&n?s(f,i):e.wrap&&n?u(f):S&&"function"==typeof f?s(Function.call,f):f,(e.sham||f&&f.sham||p&&p.sham)&&d(m,"sham",!0),O[g]=m,S&&(c(o,l=v+"Prototype")||d(o,l,{}),o[l][g]=f,e.real&&E&&!E[g]&&d(E,g,f)))}},55:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},56:function(e,t,n){var i=n(57),r=n(59);e.exports=function(e){return i(r(e))}},57:function(e,t,n){var i=n(31),r=n(58),a="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},58:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},59:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},60:function(e,t,n){var i=n(36);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},61:function(e,t,n){var i=n(59);e.exports=function(e){return Object(i(e))}},62:function(e,t,n){var i=n(35),r=n(31),a=n(799);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},63:function(e,t){e.exports={}},64:function(e,t,n){var i=n(801);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},65:function(e,t,n){var i=n(35),r=n(802),a=n(55);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},66:function(e,t,n){var i=n(67),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},67:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},68:function(e,t,n){var i=n(813),r=n(31);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},69:function(e,t,n){var i=n(63),r=n(24),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(i[e])||a(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},7:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return u})),t.a=function(e){return c({moduleName:e,moduleType:"core"})},t.b=function(e,t){return c({gvlid:e,moduleName:t})};var i=n(8),r=n(0),a=n(12),o=n.n(a),s=["core","prebid-module"],d=[];function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gvlid,n=e.moduleName,i=e.moduleType;function a(e){if(o()(s,i)){return e({valid:!0})}var a;return u(t,n,{hasEnforcementHook:!1},(function(t){if(t&&t.hasEnforcementHook)a=e(t);else{var n={hasEnforcementHook:!1,valid:Object(r.hasDeviceAccess)()};a=e(n)}})),a}var c=function(e,t,n,i,r,o){var s=function(a){if(a&&a.valid){var o=r&&""!==r?" ;domain=".concat(encodeURIComponent(r)):"",s=n&&""!==n?" ;expires=".concat(n):"",d=null!=i&&"none"==i.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(s,"; path=/").concat(o).concat(i?"; SameSite=".concat(i):"").concat(d)}};if(!o||"function"!=typeof o)return a(s);d.push((function(){var e=a(s);o(e)}))},l=function(e,t){var n=function(t){if(t&&t.valid){var n=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return n?decodeURIComponent(n[2]):null}return null};if(!t||"function"!=typeof t)return a(n);d.push((function(){var e=a(n);t(e)}))},g=function(e){var t=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 a(t);d.push((function(){var n=a(t);e(n)}))},f=function(e){var t=function(e){return!(!e||!e.valid)&&(!!Object(r.checkCookieSupport)()||(window.document.cookie="prebid.cookieTest",-1!==window.document.cookie.indexOf("prebid.cookieTest")))};if(!e||"function"!=typeof e)return a(t);d.push((function(){var n=a(t);e(n)}))},p=function(e,t,n){var i=function(n){n&&n.valid&&h()&&window.localStorage.setItem(e,t)};if(!n||"function"!=typeof n)return a(i);d.push((function(){var e=a(i);n(e)}))},b=function(e,t){var n=function(t){return t&&t.valid&&h()?window.localStorage.getItem(e):null};if(!t||"function"!=typeof t)return a(n);d.push((function(){var e=a(n);t(e)}))},m=function(e,t){var n=function(t){t&&t.valid&&h()&&window.localStorage.removeItem(e)};if(!t||"function"!=typeof t)return a(n);d.push((function(){var e=a(n);t(e)}))},h=function(e){var t=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){Object(r.logError)("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return a(t);d.push((function(){var n=a(t);e(n)}))},v=function(e,t){var n=function(t){if(t&&t.valid){var n=[];if(Object(r.hasDeviceAccess)())for(var i=document.cookie.split(";");i.length;){var a=i.pop(),o=a.indexOf("=");o=o<0?a.length:o,decodeURIComponent(a.slice(0,o).replace(/^\s+/,"")).indexOf(e)>=0&&n.push(decodeURIComponent(a.slice(o+1)))}return n}};if(!t||"function"!=typeof t)return a(n);d.push((function(){var e=a(n);t(e)}))};return{setCookie:c,getCookie:l,localStorageIsEnabled:g,cookiesAreEnabled:f,setDataInLocalStorage:p,getDataFromLocalStorage:b,removeDataFromLocalStorage:m,hasLocalStorage:h,findSimilarCookies:v}}var u=Object(i.b)("async",(function(e,t,n,i){i(n)}),"validateStorageEnforcement")},70:function(e,t){e.exports=function(){}},71:function(e,t,n){var i=n(69);e.exports=i},72:function(e,t,n){n(73),e.exports=n(39)},73:function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__prebidGlobal__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1__ajax__=__webpack_require__(4);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _typeof(e){return(_typeof="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})(e)}var asc=Object(__WEBPACK_IMPORTED_MODULE_0__prebidGlobal__.a)(),utils=__webpack_require__(0),globalPrebidConfig=__webpack_require__(77);if(!0===asc.isLoaded)throw new Error("asc Wrapper already Loaded!");asc.wrapperVersion="4.9.3",navigator.userAgent&&navigator.userAgent.indexOf("Lighthouse")>=0&&utils.logInfo("Lighthouse detected, disable wrapper"),utils.logInfo("asc Wrapper "+asc.wrapperVersion+" Loaded");var wrapperLoadTime=Date.now(),waaiTargetingSent=!1,config=__webpack_require__(38);utils.logMessage("__ Config : Site ->",config);var internalAdunits=__webpack_require__(78);utils.logMessage("__ Config : Adunits ->",internalAdunits);var deviceDetection=__webpack_require__(79);utils.logMessage("__ Config : Devices for SizeMapping ->",deviceDetection),config.forceReWrittingPBJS&&(window.pbjs=asc);var isPageLoaded=!1,isDFPLoaded=!1,isDFPinit=!1,isAPSLoaded=!1,isAPSinit=!1,isPBJSLoaded=!1,isPBJSinit=!1,Key_DisabledBidders="_asc_dBid",googletag=window.googletag||{};googletag.cmd=googletag.cmd||[],window.googletag=googletag;var TIMEOUT=config.wrapper.timeout,TIMEOUT_FALLBACK=config.wrapper.timeoutFallback,BID_REQUEST_WAIT_TIME=config.wrapper.bidRequestWaitTime,pageLoaded=!1;setTimeout((function(){pageLoaded=!0}),TIMEOUT);var iasAdunitData={};function detectEnviroment(){var e="top";if(window.top!==window){e="friendly";try{window.top.location.toString()}catch(t){e="cross"}"cross"==e&&window.$sf&&window.$sf.ext&&(e="safe")}return utils.logMessage("__ Detection : Iframe enviroment ->",e),e}"c2f"==config.code&&"true"==getParameterByName("durationTest")&&(config.durationMedia="11163"),"efo"==config.code&&"true"==getParameterByName("durationTest")&&(config.durationMedia="11164"),"peo"==config.code&&"true"==getParameterByName("durationTest")&&(config.durationMedia="11165");var enviroment=detectEnviroment();function getConnection(){var e={downlink:0,downlinkRound:0,rtt:0,rttRound:0,type:"na",effectiveType:"na",saveData:!1};return navigator&&navigator.connection?(navigator.connection.downlink&&(e.downlink=navigator.connection.downlink,navigator.connection.downlink<1?e.downlinkRound=.1:navigator.connection.downlink<10?e.downlinkRound=1:navigator.connection.downlink<100?e.downlinkRound=10:navigator.connection.downlink<1e3?e.downlinkRound=100:navigator.connection.downlink>=1e3&&(e.downlinkRound=1e3)),navigator.connection.rtt&&(e.rtt=navigator.connection.rtt,navigator.connection.rtt<=10?e.rttRound=10:navigator.connection.rtt<=100?e.rttRound=100:navigator.connection.rtt<=200?e.rttRound=200:navigator.connection.rtt<=300?e.rttRound=300:navigator.connection.rtt<=400?e.rttRound=400:navigator.connection.rtt<=500?e.rttRound=500:navigator.connection.rtt<=600?e.rttRound=600:navigator.connection.rtt<=700?e.rttRound=700:navigator.connection.rtt<=800?e.rttRound=800:navigator.connection.rtt<=900?e.rttRound=900:navigator.connection.rtt>=1e3&&(e.rttRound=1e3)),navigator.connection.type&&(e.type=navigator.connection.type),navigator.connection.effectiveType&&(e.effectiveType=navigator.connection.effectiveType),navigator.connection.saveData&&(e.saveData=navigator.connection.saveData),utils.logMessage("__ Detection : Connection ->",e),e):e}var connection=getConnection();function analyticsTrack(e,t,n){config.analytics&&config.analytics.track&&(config.analytics.track.indexOf(e)<0||(t&&void 0!==t||(t={}),n&&"function"==typeof n||(n=function(){}),t.id=config.id,t.code=config.code,t.site=config.url,enviroment||(enviroment="top"),t.env=enviroment,t.url=window.location.href,"friendly"==enviroment&&(t.urlTop=window.top.location.href),Object(__WEBPACK_IMPORTED_MODULE_1__ajax__.a)("https://cat.hbwrapper.com/",n,JSON.stringify({e:e,d:t}),{contentType:"text/plain",withCredentials:!1})))}analyticsTrack("pageview",{},(function(){utils.logMessage("__ AnalyticsTrack : Sent pageview!")}));var arTest=!1;function safeJSONparse(e){void 0===e&&(e="{}");var t={};e=e.replace(/'/g,'"');try{"string"==typeof(t=JSON.parse(e))&&(t=JSON.parse(t))}catch(t){utils.logError("Cannot parse JSON string:",e)}return t}function formatAdunit(e){if(!config.dfpChildAccount)return e;if(""==config.dfpChildAccount)return e;var t=e.split("/");return t[1]?t[1].indexOf(",")>=0||t[1].toString()!==config.dfpAccount.toString()?e:(t[1]=config.dfpAccount+","+config.dfpChildAccount,t.join("/")):e}function storeSetDisableBidders(e){var t=window.localStorage.getItem(Key_DisabledBidders);t||(t="[]"),t=JSON.parse(t);var n=[];return t.forEach((function(e){if(n.indexOf(e.name)>=0)return!1;n.push(e.name)})),n.indexOf(e)<0&&t.push({name:e,time:Date.now()}),window.localStorage.setItem(Key_DisabledBidders,JSON.stringify(t))}function storeGetDisableBidders(){var e=window.localStorage.getItem(Key_DisabledBidders);return e?(e=(e=JSON.parse(e)).filter((function(e){return!(e.time<Date.now()-864e5)})),window.localStorage.setItem(Key_DisabledBidders,JSON.stringify(e)),e.map((function(e){return e.name}))):[]}function storeCheckDisabledBidders(){try{storeGetDisableBidders().forEach((function(e){config.wrapper.disableClientSideAdapters.indexOf(e)<0&&(config.wrapper.disableClientSideAdapters.push(e),utils.logWarn("__ Ads : Bidder is disabled from ClientSide due to finding it in localStorage for timeout:",e))}))}catch(e){}}["glam","tll","01n","ccy","wdi","stc","ure","twus","wdc","amped","mpp","ukj","sjz","crz","usj","lrj","bjh","awl","jsr","ais","fbb"].indexOf(config.code)>=0&&(Math.random()<.5&&(arTest=!0),googletag.cmd.push((function(){googletag.pubads().setTargeting("arTest",arTest.toString())})),config.refresh.accelerate=arTest?[{estCPM:1,seconds:3},{estCPM:1.5,seconds:5},{estCPM:2,seconds:10},{estCPM:2.5,seconds:15}]:[]),"true"==getParameterByName("halotest")&&(config.prebid.userSync.userIds.push({name:"haloId",storage:{type:"html5",name:"haloId",expires:30}}),config.prebid.realTimeData={auctionDelay:100,dataProviders:[{name:"halo",waitForIt:!0,params:{segmentCache:!1,requestParams:{publisherId:326}}}]}),"true"==getParameterByName("id5analytics")&&(config.analytics.prebid?(Array.isArray(config.analytics.prebid)||(config.analytics.prebid=[config.analytics.prebid]),config.analytics.prebid.push({provider:"id5Analytics",options:{partnerId:579}})):config.analytics.prebid=[{provider:"id5Analytics",options:{partnerId:579}}]),storeCheckDisabledBidders();var toUseBidders=[];internalAdunits.forEach((function(e){void 0===e.adunit&&(e.adunit="/"+config.dfpAccount+"/"),void 0===e.device&&(e.device=[]),void 0===e.mediaTypes&&(e.mediaTypes={banner:{sizes:[1,1]}}),void 0===e.additionalNonHBSizes&&(e.additionalNonHBSizes=[]),void 0===e.targeting&&(e.targeting={}),void 0===e.lazyLoaded&&(e.lazyLoaded="false"),void 0===e.richMediaFormat&&(e.richMediaFormat={}),void 0===e.refreshTimed&&(e.refreshTimed="0"),void 0===e.refreshViewable&&(e.refreshViewable="0"),void 0===e.refreshStopAdvertisers&&(e.refreshStopAdvertisers=[]),void 0===e.bids&&(e.bids=[]),e.bids.forEach((function(e){if(config.wrapper.disableBidders&&config.wrapper.disableBidders.indexOf(e.bidder)>=0)return utils.logWarn("__ Ads : Bidder is disabled:",e.bidder),!1;toUseBidders.indexOf(e.bidder)<0&&toUseBidders.push(e.bidder)}))})),utils.logMessage("__ Bidding : Bidders to use ->",toUseBidders);var s2sBidderBan=["sharethrough","rubicon"];function updateS2Slist(){var e=[];globalPrebidConfig.s2sConfig.bidders.forEach((function(t){if(s2sBidderBan.indexOf(t)>=0)return!1;toUseBidders.indexOf(t)>=0&&e.push(t)})),globalPrebidConfig.s2sConfig.bidders=e}function updatePrebidServerAccountId(){config.wrapper.prebidServerAccountId&&(globalPrebidConfig.s2sConfig.accountId=config.wrapper.prebidServerAccountId)}function preloadScript(e){var t=document.createElement("link");t.rel="preload",t.as="script",t.href=e,document.head.appendChild(t)}function preconnectLink(e){var t=document.createElement("link");t.rel="preconnect dns-prefetch",t.href=e,document.head.appendChild(t)}updateS2Slist(),updatePrebidServerAccountId(),config.dfp.forceSafeFrames&&config.amazon.enabled&&(config.amazon.enabled=!1,utils.logMessage("__ A9/Amazon : Safe frames enabled, disabling Amazon."));var preconnectBidderEndpoints={aol:["https://adserver-us.adtech.advertising.com"],onemobile:["https://c2shb.ssp.yahoo.com"],yahoossp:["https://c2shb.pubgw.yahoo.com"],sovrn:["https://ap.lijit.com"],appnexus:["https://ib.adnxs.com"],districtmDMX:["https://dmx.districtm.io"],rhythmone:["https://tag.1rx.io"],yieldmo:["https://ads.yieldmo.com"],teads:["https://a.teads.tv"],gamoshi:["https://rtb.gamoshi.io"],pubmatic:["https://hbopenbid.pubmatic.com"],rubicon:["https://fastlane.rubiconproject.com"],sharethrough:["https://btlr.sharethrough.com"],triplelift:["https://tlx.3lift.com"],indexExchange:["https://htlb.casalemedia.com"],ix:["https://htlb.casalemedia.com"],gumgum:["https://g2.gumgum.com"],kargo:["https://krk.kargo.com"],"33across":["https://ssc.33across.com"],conversant:["https://web.hb.ad.cpe.dotomi.com"],nobid:["https://ads.servenobid.com"],viewdeosDX:["https://ghb.sync.viewdeos.com"],lockerdome:["https://lockerdome.com/"],grid:["https://grid.bidswitch.net"],unruly:["https://targeting.unrulymedia.com"],justpremium:["https://pre.ads.justpremium.com"],consumable:["https://e.serverbid.com"],smartadserver:["https://prg.smartadserver.com"],criteo:["https://bidder.criteo.com"],underdogmedia:["https://udmserve.net"],improvedigital:["https://ice.360yield.com"],sonobi:["https://apex.go.sonobi.com"],amx:["https://prebid.a-mo.net"],medianet:["https://prebid.media.net"],richaudience:["https://shb.richaudience.com"],eplanning:["https://ads.us.e-planning.net"],smaato:["https://prebid.ad.smaato.net"],onetag:["https://onetag-sys.com"],trion:["https://in-appadvertising.com"],connectad:["https://i.connectad.io"],emx_digital:["https://hb.emxdgt.com"],smilewanted:["https://prebid.smilewanted.com"],operaads:["https://s.adx.opera.com"],adyoulike:["https://hb-api.omnitagjs.com"],seedtag:["https://s.seedtag.com"],marsmedia:["https://hb.go2speed.media"],kurshmedia:["https://ads4.krushmedia.com"],adagio:["https://mp.4dex.io"],vibrantmedia:["https://prebid.intellitxt.com"],e_volution:["https://service.e-volution.ai"],luponmedia:["https://rtb.adxpremium.services"]};if(preloadScript("https://securepubads.g.doubleclick.net/tag/js/gpt.js"),config.amazon.enabled&&preloadScript("https://c.amazon-adsystem.com/aax2/apstag.js"),preconnectLink("https://prebid.adnxs.com"),toUseBidders.forEach((function(e){preconnectBidderEndpoints[e]&&preconnectBidderEndpoints[e].forEach((function(e){preconnectLink(e)}))})),asc.cmd.push((function(){isPBJSLoaded=!0})),function(){if(!isDFPLoaded){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),isDFPLoaded=!0}}(),googletag.cmd.push((function(){if(!isDFPinit){googletag.pubads().enableSingleRequest(),config.dfp.collapseEmptyDivs&&googletag.pubads().collapseEmptyDivs(),googletag.enableServices(),googletag.pubads().setTargeting("wvr","3"),googletag.pubads().setTargeting("wie",enviroment),config.targeting&&config.targeting.speed&&(googletag.pubads().setTargeting("cndl",connection.downlinkRound.toString()),googletag.pubads().setTargeting("cnrtt",connection.rttRound.toString()),googletag.pubads().setTargeting("cntp",connection.type.toString()),googletag.pubads().setTargeting("cnet",connection.effectiveType.toString()),googletag.pubads().setTargeting("cnsd",connection.saveData.toString())),"friendly"==enviroment?window.top&&window.top.location&&window.top.location.href&&googletag.pubads().set("page_url",window.top.location.href):"cross"!=enviroment&&"safe"!=enviroment||googletag.pubads().set("page_url",config.url),(window.location.href.indexOf("localhost")>=0||window.location.href.indexOf("s2stest")>=0||window.location.href.indexOf("testbids")>=0)&&googletag.pubads().set("page_url",config.url);var e="nf";config.forceReWrittingPBJS&&(e="fr",window._pbjsGlobals&&window._pbjsGlobals.indexOf("pbjs")>=0&&(e="cr")),googletag.pubads().setTargeting("wrc",e);var t=Date.now()-wrapperLoadTime;sendProxy("timeline","gpt_load",Date.now()),utils.logMessage("__ Timing : googletag loaded in ->",t),t>1e4&&(t=1e4);var n=(100*Math.round(t/100)).toString();if(config.targeting&&config.targeting.speed&&googletag.pubads().setTargeting("gpt_l",n),performance&&performance.timing&&performance.timing.navigationStart){sendProxy("timeline","navigation_start",performance.timing.navigationStart);var i=wrapperLoadTime-performance.timing.navigationStart;utils.logMessage("__ Timing : wrapper loaded in ->",i),i>1e4&&(i=1e4);var r=(100*Math.round(i/100)).toString();config.targeting&&config.targeting.speed&&googletag.pubads().setTargeting("wrap_l",r)}var a=!1;null!==getCookie("__gads")&&(a=!0),config.targeting&&config.targeting.gads&&googletag.pubads().setTargeting("gads",a.toString());try{var o="unknown",s=window.sessionStorage.getItem("asc_ccp");s&&(o=s),googletag.pubads().setTargeting("ccp",o.toString())}catch(e){utils.logWarn("__ ConfirmedClickPenalty : Cannot access session storage")}isDFPinit=!0}})),!isAPSLoaded&&config.amazon.enabled&&(!function(e,t,n,i,r,a,o){function s(n,i){t[e]._Q.push([n,i])}t[e]||(t[e]={init:function(){s("i",arguments)},fetchBids:function(){s("f",arguments)},setDisplayBids:function(){},_Q:[]},(a=n.createElement(i)).async=!0,a.src="//c.amazon-adsystem.com/aax2/apstag.js",(o=n.getElementsByTagName(i)[0]).parentNode.insertBefore(a,o))}("apstag",window,document,"script"),isAPSLoaded=!0),!isAPSinit&&config.amazon.enabled){var a9Config=config.amazon;config.prebid.schain&&config.prebid.schain.config&&(a9Config.schain=config.prebid.schain.config),apstag.init(a9Config,(function(){utils.logMessage("__ A9/Amazon : Init finish",a9Config)})),isAPSinit=!0}if(asc.cmd.push((function(){if(!isPBJSinit){if(asc.setConfig(globalPrebidConfig),globalPrebidConfig&&globalPrebidConfig.userSync&&globalPrebidConfig.userSync.userIds&&globalPrebidConfig.userSync.userIds.length>0&&config.prebid&&config.prebid.userSync&&config.prebid.userSync.userIds&&config.prebid.userSync.userIds.length>0){utils.logMessage("__ UserID : Merging global and site configs");var e=[];config.prebid.userSync.userIds.forEach((function(t){e.push(t.name)})),globalPrebidConfig.userSync.userIds.forEach((function(t){e.indexOf(t.name)<0&&(config.prebid.userSync.userIds.push(t),utils.logMessage("__ UserId : Adding to userId -> "+t.name))}))}if(asc.setConfig(config.prebid),config.prebidBidderSpecific)(Array.isArray(config.prebidBidderSpecific)?config.prebidBidderSpecific:[config.prebidBidderSpecific]).forEach((function(e){asc.setBidderConfig(e)}));toUseBidders.indexOf("onefiftytwomedia")>=0&&asc.aliasBidder("adtelligent","onefiftytwomedia"),toUseBidders.indexOf("indexExchange")>=0&&asc.aliasBidder("ix","indexExchange"),toUseBidders.indexOf("bpa33x")>=0&&asc.aliasBidder("appnexus","bpa33x"),toUseBidders.indexOf("emxdigital")>=0&&asc.aliasBidder("appnexus","emxdigital"),toUseBidders.indexOf("mediafuseA")>=0&&asc.aliasBidder("appnexus","mediafuseA");var t={};if(toUseBidders.forEach((function(e){t[e]={bidCpmAdjustment:function(t){return t*=config.bidAdjustments.pubshare,config.bidAdjustments.networks[e]&&(t*=config.bidAdjustments.networks[e]),t}}})),asc.bidderSettings=t,config.analytics.prebid)(Array.isArray(config.analytics.prebid)?config.analytics.prebid:[config.analytics.prebid]).forEach((function(e){asc.enableAnalytics(e)}));isPBJSinit=!0}})),config.targeting&&config.targeting.utmKeyValues){var utmCookie={cookieNamePrefix:"_uc_",utmParams:["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],cookieExpiryDays:365,createCookie:function(e,t,n){if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="; expires="+i.toGMTString()}else r="";document.cookie=this.cookieNamePrefix+e+"="+t+r+"; path=/"},readCookie:function(e){for(var t=this.cookieNamePrefix+e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return null},eraseCookie:function(e){this.createCookie(e,"",-1)},getParameterByName:function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null==t?"":decodeURIComponent(t[1].replace(/\+/g," "))},utmPresentInUrl:function(){for(var e=!1,t=0;t<this.utmParams.length;t++){var n=this.utmParams[t],i=this.getParameterByName(n);""!=i&&null!=i&&(e=!0)}return e},writeUtmCookieFromParams:function(){for(var e=0;e<this.utmParams.length;e++){var t=this.utmParams[e],n=this.getParameterByName(t);this.createCookie(t,n,this.cookieExpiryDays)}},writeCookieOnce:function(e,t){this.readCookie(e)||this.createCookie(e,t,this.cookieExpiryDays)},writeReferrerOnce:function(){var e=document.referrer;""===e||void 0===e?this.writeCookieOnce("referrer","direct"):this.writeCookieOnce("referrer",e)},referrer:function(){return this.readCookie("referrer")}};utmCookie.writeReferrerOnce(),utmCookie.utmPresentInUrl()&&utmCookie.writeUtmCookieFromParams(),googletag.cmd.push((function(){null!=utmCookie.readCookie("utm_source")&&googletag.pubads().setTargeting("utm_source",utmCookie.readCookie("utm_source")),null!=utmCookie.readCookie("utm_medium")&&googletag.pubads().setTargeting("utm_medium",utmCookie.readCookie("utm_medium")),null!=utmCookie.readCookie("utm_campaign")&&googletag.pubads().setTargeting("utm_campaign",utmCookie.readCookie("utm_campaign")),null!=utmCookie.readCookie("utm_content")&&googletag.pubads().setTargeting("utm_content",utmCookie.readCookie("utm_content"))}))}config.durationMedia&&(utils.logMessage("__ DurationMedia : Enabled Loading script"),function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.charset="utf-8",e.id="dm-script",e.src="https://tag.durationmedia.net/sites/"+config.durationMedia+"/dm.js",e.onload=function(){utils.logMessage("__ DurationMedia : Script Loaded")};var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}());var browserLangCode=(window.navigator.userLanguage||window.navigator.language||"unknown").toString().toUpperCase();function setCookie(e,t,n){var i="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),i="; expires="+r.toUTCString()}document.cookie=e+"="+(t||"")+i+"; path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return null}function eraseCookie(e){setCookie(e,"",-1)}utils.logMessage("__ Detection : Browser Language ->",browserLangCode),config.targeting&&config.targeting.browserLangCode&&googletag.cmd.push((function(){googletag.pubads().setTargeting("blc",browserLangCode.toString())}));var sesDepth=0;function getSessionDepth(){try{var e=window.sessionStorage.getItem("_asc_sesdepth");e&&(sesDepth=parseInt(e))}catch(e){}sesDepth=parseInt(sesDepth)+1;try{window.sessionStorage.setItem("_asc_sesdepth",sesDepth.toString())}catch(e){}return parseInt(sesDepth)}sesDepth=getSessionDepth(),googletag.cmd.push((function(){googletag.pubads().setTargeting("sesdepth",sesDepth.toString())}));var pageRef="";try{pageRef=window.top.document.referrer}catch(e){pageRef=document.referrer}var pageRefDomain="";function getDevice(){var e=utils.getWindowSelf().navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/.test(e)?"mobile":"desktop"}function getBrowser(){var e=utils.getWindowSelf(),t=e.navigator.userAgent,n=t.toLowerCase();return/Edge\/\d./i.test(t)?"edge":n.indexOf("chrome")>0?"chrome":n.indexOf("firefox")>0?"firefox":n.indexOf("safari")>0?"safari":n.indexOf("opera")>0?"opera":n.indexOf("msie")>0||e.MSStream?"ie":"other"}function getOS(){var e=utils.getWindowSelf().navigator.userAgent.toLowerCase();return e.indexOf("linux")>0?"linux":e.indexOf("mac")>0?"mac":e.indexOf("win")>0?"windows":"other"}function sendGAEvent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.ga||window.__gaTracker||!1;if(r&&"function"==typeof r.getAll&&r.getAll()[0]){var a=r.getAll()[0];if(a)return utils.logMessage("__ GA : Sending event ->",e,t,n,i),a.send("event",e,t,n,i),!0}return void 0!==window._gaq&&(utils.logMessage("__ GA : Sending event (old ga.js) ->",e,t,n,i),window._gaq.push(["_trackEvent",e,t,n,i]),!0)}function GAEvent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;sendGAEvent(e,t,n,i)||(utils.logMessage("__ GA : Cannot send event, retry in 1s ->",e,t,n,i),setTimeout((function(){sendGAEvent(e,t,n,i)||(utils.logMessage("__ GA : Cannot send event, retry in 3s ->",e,t,n,i),setTimeout((function(){sendGAEvent(e,t,n,i)||utils.logError("__ GA : Was not able to send event ->",e,t,n,i)}),3e3))}),1e3))}function detectWidth(e){return void 0===e&&(e=config.deviceDetection?config.deviceDetection:"window"),"screen"==e&&window.screen&&window.screen.width?window.screen.width:window.screen.width||window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth}function detectHeight(e){return void 0===e&&(e=config.deviceDetection?config.deviceDetection:"window"),"screen"==e&&window.screen&&window.screen.height?window.screen.height:window.screen.height||window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight}pageRefDomain=""==pageRef?"_none":pageRef.match(/:\/\/(.[^/]+)/)[1],config.targeting&&config.targeting.referrer&&googletag.cmd.push((function(){googletag.pubads().setTargeting("referrer",pageRefDomain.toString())})),config.targeting&&config.targeting.device&&googletag.cmd.push((function(){try{var e=getDevice();googletag.pubads().setTargeting("device",e.toString())}catch(e){}})),config.targeting&&config.targeting.browser&&googletag.cmd.push((function(){try{var e=getBrowser();googletag.pubads().setTargeting("browser",e.toString())}catch(e){}})),config.targeting&&config.targeting.os&&googletag.cmd.push((function(){try{var e=getOS();googletag.pubads().setTargeting("os",e.toString())}catch(e){}})),"true"==getParameterByName("stickyContainer")&&internalAdunits.forEach((function(e){e.stickyContainer="true"}));var device="desktop";function updateDevice(){return utils.logMessage("__ Detection : Updating device"),deviceDetection.forEach((function(dd){dd.condition=dd.condition.split("{SCREENWIDTH}").join(detectWidth().toString());var evaluateCondition=eval(dd.condition);utils.logMessage("__ Detection : Checking condition ->",dd.name,dd.condition,evaluateCondition),evaluateCondition&&(device=dd.name)})),device}function uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function getDomain(){if(document.domain.length){for(var e=document.domain.replace(/^(www\.)/,"").split(".");e.length>2;)e.shift();return e.join(".").replace(/(^\.*)|(\.*$)/g,"")}return""}function insertIframeWithHTML(e,t){if(t){var n=e.dataset.parentid?e.dataset.parentid:uuidv4(),i=document.createElement("iframe");i.id="fallback_ads_iframe/"+n,i.width=1,i.height=1,i.hspace="0",i.vspace="0",i.marginWidth="0",i.marginHeight="0",i.scrolling="no",i.frameBorder="0",i.allowtransparency="true",i.allow="conversion-measurement",e.appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.write(t),i.contentWindow.document.close()}}function insertCreativeNoDFP(e,t){e.innerHTML="";var n=document.getElementById("fallback_ads_iframe/"+e.id+"__container__");n||((n=document.createElement("div")).id="fallback_ads_iframe/"+e.id+"__container__",n.dataset.parentid=e.id,e.appendChild(n)),n.style.boder="0pt none",n.style.display="",n.innerHTML="",e.style.display="",insertIframeWithHTML(n,'<script>var ucPbGlobal = "asc";<\/script> <script src="https://cdn.jsdelivr.net/gh/bozghiyy/native-renderer@latest/universal.creative.js"><\/script><script>var ucTagData = {};ucTagData.adServerDomain = "";ucTagData.pubUrl = "'+window.location.href+'";ucTagData.targetingMap = '+JSON.stringify(t)+";try {ucTag.renderAd(document, ucTagData);} catch (e) { console.log(e);}<\/script> ")}function getMaxWidthSize(e){var t=0;return e.forEach((function(e){e[0]&&e[0]>t&&(t=e[0])})),t}function getMaxHeightSize(e){var t=0;return e.forEach((function(e){e[1]&&e[1]>t&&(t=e[1])})),t}function validateSizes(e){if("object"!=_typeof(e))return[];var t=[];return e.forEach((function(e){return!!e[0]&&(!!e[1]&&("number"==typeof e[0]&&("number"==typeof e[0]&&void t.push(e))))})),0==t.length&&(t=[[1,1]]),t}function getParameterByName(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}updateDevice();var testbids=getParameterByName("testbids"),testbidsnative=getParameterByName("testbidsnative"),locationHash="";try{locationHash=window.top.location.hash}catch(e){locationHash=location.hash}locationHash.indexOf("testbids")>=0&&(testbids="true"),locationHash.indexOf("testbidsnative")>=0&&(testbidsnative="true"),"true"==testbids&&(utils.logMessage("__ Testing : ENABLE TEST BIDS"),internalAdunits.forEach((function(e){e.bids=[{bidder:"testbids",params:{placementId:"13144370"}}]}))),"true"==testbidsnative&&(utils.logMessage("__ Testing : ENABLE TEST BIDS NATIVE"),internalAdunits.forEach((function(e){e.bids=[{bidder:"appnexus",params:{placementId:"13232354"}}]})));var disableBidder=getParameterByName("ascDisableBidder");if(null!==disableBidder){utils.logMessage("__ TESTING : Disable bidder ->",disableBidder);var biddersUsed=[];internalAdunits.forEach((function(e){var t=[];e.bids.forEach((function(e){e.bidder!=disableBidder&&(t.push(e),biddersUsed.indexOf(e.bidder)<0&&biddersUsed.push(e.bidder))})),e.bids=t})),globalPrebidConfig.s2sConfig.bidders=biddersUsed,utils.logMessage("__ Testing : Using S2S Bidders ->",biddersUsed)}config.analytics&&config.analytics.adRizer&&function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.src="https://run.crtx.info/track.min.js",e.id="ADRIZER_JS",e.onload=function(){utils.logMessage("__ AdRizer : Script Loaded")},e.onerror=function(){utils.logError("__ AdRizer : Error loading script ->")};var t=document.createElement("a");t.href=config.url,e.dataset.domain=t.hostname;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)}();var setEventListener=function(e,t,n){var i=window.addEventListener?"addEventListener":"attachEvent",r=window.addEventListener?t:"on"+t;e[i](r,n,!1)},removeEventListener=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null};function _getWrapperConfig(){return config}function _getWrapperInternalAdunits(){return internalAdunits}function getWrapperDeviceDetection(){return deviceDetection}function getInternalAdunit(e){var t=!1;return internalAdunits.forEach((function(n){if("adunit"==config.adunitMapping){if(!e.dataset.aaAdunit)return!1;n.adunit.toLowerCase()==e.dataset.aaAdunit.toLowerCase()&&(t=_extends({},n))}else if("targeting"==config.adunitMapping){if(!e.dataset.aaTargeting)return!1;var i="pos";config.adunitMappingKey&&(i=config.adunitMappingKey);var r=safeJSONparse(e.dataset.aaTargeting);if(!r[i])return!1;if(!n.targeting[i])return!1;n.targeting[i].toLowerCase()==r[i].toLowerCase()&&(t=_extends({},n))}})),t}function getAdunitNameFromAdunitPath(e){var t=e.split("/");return t.length<=1?t.toString():t[t.length-1]}function getSizeForNative(e){if(!e.dataset)return[1,1];if(!e.dataset.aaSizes)return[1,1];var t=validateSizes(safeJSONparse(e.dataset.aaSizes));if(!t)return[1,1];var n=t.map((function(e){return e[0]+"x"+e[1]})),i=[[300,600],[300,250],[970,250],[728,90],[160,600],[320,50]].map((function(e){return e[0]+"x"+e[1]})),r=[1,1];return i.forEach((function(e){1!=r[0]&&1!=r[1]||n.indexOf(e)>=0&&(r=e.split("x"))})),r}function getBidsFor(e){storeCheckDisabledBidders();var t=[],n=e.dataset.aaAdunit,i=getAdunitNameFromAdunitPath(n),r=validateSizes(safeJSONparse(e.dataset.aaSizes)),a=e.dataset.aaTargeting?safeJSONparse(e.dataset.aaTargeting):{},o=r.map((function(e){return e[0]+"x"+e[1]}));return internalAdunits.forEach((function(e){if("adunit"==config.adunitMapping){if(e.adunit.toLowerCase()!=n.toLowerCase())return!1}else{if("targeting"!=config.adunitMapping)return!1;if(!a)return!1;if(!e.targeting)return!1;var s="pos";if(config.adunitMappingKey&&(s=config.adunitMappingKey),!a[s])return!1;if(!e.targeting[s])return!1;if(e.targeting[s].toLowerCase()!=a[s].toLowerCase())return!1}n.toLowerCase()==e.adunit.toLowerCase()&&n!=e.adunit&&(n=e.adunit,i=getAdunitNameFromAdunitPath(n)),e.bids.forEach((function(e){if(e.device&&e.device.indexOf(device)<0)return!1;if(e.size&&o.indexOf(e.size[0]+"x"+e.size[1])<0)return!1;if(e.testParameter&&"true"!=getParameterByName(e.testParameter))return!1;if(config.wrapper.disableBidders&&config.wrapper.disableBidders.indexOf(e.bidder)>=0)return!1;if("aol"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("onemobile"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("yahoossp"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("sovrn"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("appnexus"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("brealtime"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("bpa33x"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("districtm"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("districtmDMX"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("gourmetads"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("rhythmone"==e.bidder)return e.params.path="mvo",e.params.zone="1r",t.push({bidder:e.bidder,params:e.params}),!0;if("yieldmo"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("teads"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("gamoshi"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("pubmatic"==e.bidder)return t.push({bidder:e.bidder,params:{publisherId:e.params.publisherId,adSlot:e.params.adSlot?e.params.adSlot:i}}),!0;if("rubicon"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("sharethrough"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("triplelift"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("indexExchange"==e.bidder||"ix"==e.bidder)return r.forEach((function(n){return t.push({bidder:e.bidder,params:{siteId:e.params.siteId,size:n}}),!0})),!0;if("openx"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("gumgum"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("kargo"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("33across"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("testbids"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("conversant"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("nobid"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("viewdeosDX"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("adtelligent"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("selectmedia"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("onefiftytwomedia"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("oftmedia"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("lockerdome"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("grid"==e.bidder)return e.params&&e.params.uid&&"string"==typeof e.params.uid&&(e.params.uid=parseInt(e.params.uid)),t.push({bidder:e.bidder,params:e.params}),!0;if("unruly"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("justpremium"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("consumable"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("smartadserver"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("criteo"==e.bidder)return e.params.publisherSubId||(e.params.publisherSubId=i),t.push({bidder:e.bidder,params:e.params}),!0;if("underdogmedia"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("improvedigital"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("sonobi"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("vidazoo"==e.bidder)return t.push({bidder:e.bidder,params:e.params}),!0;if("amx"==e.bidder){var n=e.params?e.params:{};return"true"==getParameterByName("amxtest")&&(n.testMode=!0,n.tagId="cHJlYmlkLm9yZw"),n.adUnitId=i,t.push({bidder:e.bidder,params:n}),!0}return"medianet"==e.bidder||"richaudience"==e.bidder||"eplanning"==e.bidder||"smaato"==e.bidder?(t.push({bidder:e.bidder,params:e.params}),!0):"onetag"==e.bidder?(e.params.ext||(e.params.ext={adunit:i}),e.params.overwriteAdUnitCode=i,t.push({bidder:e.bidder,params:e.params}),!0):"trion"==e.bidder||"connectad"==e.bidder||"emx_digital"==e.bidder||"rtbhouse"==e.bidder||"smilewanted"==e.bidder||"aniview"==e.bidder||"operaads"==e.bidder?(t.push({bidder:e.bidder,params:e.params}),!0):"outbrain"==e.bidder?(e.params.tagid||(e.params.tagid=i),t.push({bidder:e.bidder,params:e.params}),!0):"adyoulike"==e.bidder||"mediafuseA"==e.bidder||"seedtag"==e.bidder||"marsmedia"==e.bidder||"krushmedia"==e.bidder||"adagio"==e.bidder||"vibrantmedia"==e.bidder||"e_volution"==e.bidder||"luponmedia"==e.bidder?(t.push({bidder:e.bidder,params:e.params}),!0):void 0}))})),t}function buildPbjsAdunits(e){var t=[];return e.forEach((function(e){var n={},i=validateSizes(safeJSONparse(e.dataset.aaSizes)),r=e.dataset.aaTargeting?safeJSONparse(e.dataset.aaTargeting):{},a=e.dataset.aaAdditionalNonHBSizes?safeJSONparse(e.dataset.aaAdditionalNonHBSizes):[],o=(e.dataset.aaAdunit,e.dataset.aaRichMediaFormat?safeJSONparse(e.dataset.aaRichMediaFormat):{});if(n.adunit=e.dataset.aaAdunit,n.code=e.id,n.mediaTypes={banner:{sizes:i}},n.additionalNonHBSizes=a,n.targeting=r,n.bids=getBidsFor(e),n.ortb2Imp={ext:{data:{adserver:{name:"gam",adslot:e.dataset.aaAdunit},pbadslot:e.dataset.aaAdunit,gpid:e.dataset.aaAdunit}}},o&&o.type&&"interstitial"==o.type&&(n.ortb2Imp.instl=1),n.mediaTypes&&n.mediaTypes.banner){var s="";n.mediaTypes.banner.pos=0,s="Set pos 0 - Unknown | Default";var d=e.getBoundingClientRect();d.top>=0&&d.bottom<=detectHeight("window")?(n.mediaTypes.banner.pos=1,s="Set pos 1 - ATF | Element in view"):(n.mediaTypes.banner.pos=3,s="Set pos 3 - BTF | Element not in view"),o&&o.type&&["interstitial","adhesion","sticky","peel"].indexOf(o.type)>=0&&(n.mediaTypes.banner.pos=1,s="Set pos 1 - ATF | Richmedia "+o.type),utils.logMessage("__ Ads : Setting mediaTypes.banner.pos:",e.id,n.adunit,s)}if(e.dataset.aaVideo&&""!=e.dataset.aaVideo&&(n.mediaTypes.video=safeJSONparse(e.dataset.aaVideo)),e.dataset.aaOutofpage&&""!=e.dataset.aaOutofpage&&(n.outofpage=e.dataset.aaOutofpage),e.dataset.aaNative&&"true"==e.dataset.aaNative){var c=getSizeForNative(e),u=c[0]+"x"+c[1];"1x1"!=u&&(n.mediaTypes.native={sendTargetingKeys:!1,rendererUrl:"https://cdn.jsdelivr.net/gh/bozghiyy/native-renderer@latest/"+u+".js",title:{required:!0,len:140},body:{required:!1},image:{required:!0,sizes:[1,1],aspect_ratios:[{min_width:100,min_height:100,ratio_width:1,ratio_height:1},{min_width:191,min_height:100,ratio_width:1.91,ratio_height:1},{min_width:200,min_height:300,ratio_width:2,ratio_height:3},{min_width:300,min_height:200,ratio_width:3,ratio_height:2},{min_width:388,min_height:100,ratio_width:3.88,ratio_height:1},{min_width:400,min_height:300,ratio_width:4,ratio_height:3},{min_width:300,min_height:100,ratio_width:3,ratio_height:1}]},icon:{required:!1,sizes:[1,1]},sponsoredBy:{required:!1},clickUrl:{required:!0},cta:{required:!1}})}t.push(n)})),t}function getNewAdElementsOnPage(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[data-aaad]",t=document.querySelectorAll(e);t=[].slice.call(t);var n=[];return t.forEach((function(e){if(!e.dataset.aaAdunit)return e.dataset.status="error",utils.logError("Ad doesn`t have an adunit defined",e),!1;if("true"!=e.dataset.aaad)return utils.logWarn("__ Ads : Adunit disabled, skipped:",e.dataset.aaAdunit),!1;if(e.estCPM||(e.estCPM=0),e.emptyCount||(e.emptyCount=0),e.emptyConsecutiveCount||(e.emptyConsecutiveCount=0),e.dataset.status&&"processing"!=e.dataset.status)return!1;e.dataset.status="processing",e.id||(e.id=uuidv4());var t=getInternalAdunit(e);t?(t.conditionalMediaTypes&&t.conditionalMediaTypes[device]&&(t.mediaTypes=t.conditionalMediaTypes[device]),t.conditionalNonHBSizes&&t.conditionalNonHBSizes[device]&&(t.additionalNonHBSizes=t.conditionalNonHBSizes[device]),t.css&&""==e.style.cssText&&(e.style.cssText=t.css),e.dataset.aaDevice||(e.dataset.aaDevice=JSON.stringify(t.device)),e.dataset.aaSizes||(e.dataset.aaSizes=JSON.stringify(t.mediaTypes.banner.sizes)),e.dataset.aaLazyLoaded||(e.dataset.aaLazyLoaded=t.lazyLoaded),e.dataset.aaTargeting||t.targeting&&Object.keys(t.targeting).length>0&&(e.dataset.aaTargeting=JSON.stringify(t.targeting)),e.dataset.aaRichMediaFormat||t.richMediaFormat&&Object.keys(t.richMediaFormat).length>0&&(e.dataset.aaRichMediaFormat=JSON.stringify(t.richMediaFormat)),e.dataset.aaRefreshTimed||t.refreshTimed&&t.refreshTimed>0&&(e.dataset.aaRefreshTimed=t.refreshTimed),e.dataset.aaRefreshViewable||t.refreshViewable&&t.refreshViewable>0&&(e.dataset.aaRefreshViewable=t.refreshViewable),e.dataset.aaRefreshStopAdvertisers||t.refreshStopAdvertisers&&t.refreshStopAdvertisers.length>0&&(e.dataset.aaRefreshStopAdvertisers=JSON.stringify(t.refreshStopAdvertisers)),e.dataset.aaAdditionalNonHBSizes||t.additionalNonHBSizes&&t.additionalNonHBSizes.length>0&&(e.dataset.aaAdditionalNonHBSizes=JSON.stringify(t.additionalNonHBSizes)),!e.dataset.aaOutofpage&&t.outofpage&&(e.dataset.aaOutofpage=t.outofpage),e.dataset.aaContainer||t.stickyContainer&&(e.dataset.aaContainer=t.stickyContainer),e.dataset.aaVideo||t.mediaTypes&&t.mediaTypes.video&&(e.dataset.aaVideo=JSON.stringify(t.mediaTypes.video)),e.dataset.aaNative||t.mediaTypes&&t.mediaTypes.native&&(e.dataset.aaNative="true")):(e.dataset.aaSizes||(e.dataset.aaSizes=JSON.stringify([1,1])),e.dataset.aaDevice||(e.dataset.aaDevice=JSON.stringify(deviceDetection.map((function(e){return e.name})))),e.dataset.aaLazyLoaded||(e.dataset.aaLazyLoaded="false"),utils.logMessage("__ Ads : Didn`t find an adunit to map ->",e.dataset.aaAdunit));try{var i=safeJSONparse(e.dataset.aaRichMediaFormat);i.type&&(["adhesion","peel","sticky"].indexOf(i.type)>=0&&document.body&&document.body!=e.parentNode&&(utils.logMessage("__ RichMediaFormat : Moved to body element:",e.id),document.body.appendChild(e)),"adhesion"==i.type&&(e.style.display="none"))}catch(e){}var r=parseInt(e.dataset.aaRefreshTimed);NaN==r&&(r=0);var a=parseInt(e.dataset.aaRefreshViewable);if(NaN==a&&(a=0),r>0&&a>0&&(e.dataset.aaRefreshViewable=0,utils.logWarn("__ Ads : Cannot have both refreshes enabled. Disabling viewable refresh",e)),e.dataset.aaContainer&&"true"==e.dataset.aaContainer){var o=e.cloneNode(!0);o.dataset.aaContainer="false";var s=document.createElement("div");s.id="cont_"+o.id,s.style.height=getMaxHeightSize(validateSizes(safeJSONparse(e.dataset.aaSizes)))+"px",e.parentNode.insertBefore(s,e),e.remove();var d=document.createElement("div");d.id="wrap_"+o.id,d.style.position="sticky",d.style.top="0",s.appendChild(d),d.appendChild(o)}if(safeJSONparse(e.dataset.aaDevice).indexOf(device)<0)return e.dataset.status="skipped",!1;if("true"==e.dataset.aaLazyLoaded){if(!checkElIsInView(e))return utils.logMessage("__ LazyLoading : Adunit is lazyloaded ->",e.dataset.aaAdunit),e.dataset.status="lazyLoaded",!1;utils.logMessage("__ LazyLoading : Adunit is lazyloaded but is already in view, disabling lazy load ->",e.dataset.aaAdunit),e.dataset.aaLazyLoaded=!1}n.push(e)})),utils.logMessage("getNewAdElementsOnPage:",n),n}asc.getWrapperConfig=_getWrapperConfig,asc.getWrapperInternalAdunits=_getWrapperInternalAdunits,asc.getWrapperDeviceDetection=getWrapperDeviceDetection;var processingAds=!1,processingAdsWaitTimeFinished=!1;function processAdsOnPage(){if(utils.logMessage("__ Ads : processAdsOnPage: Called"),!isPageLoaded)return utils.logMessage("__ Ads : processAdsOnPage: Page is not loaded, cannot use this function yet."),void setTimeout((function(){utils.logInfo("__ Ads: processAdsOnPage: Page not loaded, retried after 1 sec"),processAdsOnPage()}),1e3);if(processingAds)return utils.logMessage("__ Ads : processAdsOnPage: Ads are still processing"),void setTimeout((function(){utils.logInfo("__ Ads: processAdsOnPage: Ads still processing, retried after 1 sec"),processAdsOnPage()}),1e3);if(!processingAdsWaitTimeFinished&&isTabInFocus)return utils.logInfo("__ Ads : processAdsOnPage: Wait "+BID_REQUEST_WAIT_TIME+"ms until executing function"),void setTimeout((function(){processingAdsWaitTimeFinished=!0,processAdsOnPage(),processingAdsWaitTimeFinished=!1}),BID_REQUEST_WAIT_TIME);processingAds=!0;var e=getNewAdElementsOnPage();if(!e||0==e.length)return utils.logWarn("__ Ads : processAdsOnPage: No new ad elements on page"),processingAds=!1,!1;renderAdsOnPage(e,TIMEOUT,(function(){processingAds=!1}))}function renderAdsOnPage(e,t,n){e.forEach((function(e){e.dataset.status="rendered"})),doBidRequests(buildPbjsAdunits(e),t,n)}function doBidRequests(e,t,n){utils.logMessage("__ CMP : Checking for CMP __uspapi",_typeof(window.__uspapi));var i={},r=!1;"function"==typeof window.__uspapi?(i.usp={cmpApi:"iab",timeout:9e4},r=!0,cmpDebugConsolePush('<span style="color:green;">Prebid detected an IAB US Privacy CMP</span>'),window.__uspapi("getUSPData",2,(function(e,t){t?(cmpDebugConsolePush('<span style="color:green;">Interaction with IAB US Privacy CMP Succesful</b></span>'),e&&e.uspString&&("1---"==e.uspString?cmpDebugConsolePush('<span style="color:green;">IAB US Privacy CMP does not apply for this region</b></span>'):cmpDebugConsolePush('<span style="color:green;">IAB US Privacy CMP has consent</b></span>'))):cmpDebugConsolePush('<span style="color:red;">Interaction with IAB US Privacy CMP Failed</span>')}))):cmpDebugConsolePush('<span style="color:red;">Prebid DID NOT detect an IAB US Privacy CMP</span>'),utils.logMessage("__ CMP : Checking for CMP __tcfapi",_typeof(window.__tcfapi)),config.targeting&&config.targeting.tcf&&googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s","tcbeforecheck"),googletag.pubads().setTargeting("tcf_gdpr","unknown")})),"function"==typeof window.__tcfapi?(config.targeting&&config.targeting.tcf&&googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s","tcfound")})),i.gdpr={cmpApi:"iab",timeout:9e4,defaultGdprScope:!0},r=!0,cmpDebugConsolePush('<span style="color:green;">Prebid detected an IAB TCF 2.0 CMP</span>'),window.__tcfapi("addEventListener",2,(function(e,t){if(t?(e.eventStatus&&(config.targeting&&config.targeting.tcf?googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s",e.eventStatus)})):e.gdprApplies&&(config.targeting&&config.targeting.tcf?googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s","tcnull")})):config.targeting&&config.targeting.tcf&&googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s","tcnotapply")})))),cmpDebugConsolePush('<span style="color:green;">CMP API Response: GDPR Applies: <b>'+e.gdprApplies+"</b> Status: <b>"+e.eventStatus+"</b></span>")):(config.targeting&&config.targeting.tcf&&googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s","tcfailed")})),cmpDebugConsolePush('<span style="color:red;">Cannot interact with the CMP API</span>')),config.targeting&&config.targeting.tcf){e.gdprApplies?googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_gdpr","true")})):googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_gdpr","false")})),e.cmpId?googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_cmp_id",e.cmpId.toString())})):googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_cmp_id","0")})),e.cmpStatus?googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_cmp_s",e.cmpStatus.toString())})):googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_cmp_s","false")})),e.tcString&&e.tcString.length&&e.tcString.length>1?googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_string","true")})):googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_string","false")}));var n=[];if(e.purpose&&e.purpose.consents){var i=Object.keys(e.purpose.consents);n=i.filter((function(t){return!!e.purpose.consents[t]}))}googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_p",0==n.length?"0":n)}))}}))):(cmpDebugConsolePush('<span style="color:red;">Prebid DID NOT detect an IAB TCF 2.0 CMP</span>'),config.targeting&&config.targeting.tcf&&googletag.cmd.push((function(){googletag.pubads().setTargeting("tcf_s","tcnotfound"),googletag.pubads().setTargeting("tcf_gdpr","false")}))),r&&(utils.logMessage("__ CMP : Consent Management set config",i),asc.setConfig({consentManagement:i}),TIMEOUT_FALLBACK=91e3),window.ascBeforeAuction&&"function"==typeof window.ascBeforeAuction&&(utils.logMessage("__ Ads : Function ascBeforeAuction is defined, executing it."),window.ascBeforeAuction(e,t,n)),utils.logMessage("__ Ads : Calling doBidRequests with parameters",e,t,n),asc.que.push((function(){if(!e&&!e)return utils.logError("__ Ads : Calling doBidRequest without any adunits"),!1;if(t||(t=TIMEOUT),n||(n=function(){}),0==e.length)return utils.logMessage("__ Ads : Calling doBidRequest with 0 adunits"),!1;var i=e.map((function(e){return e.code})),r=e.map((function(e){return{slotID:e.code,slotName:e.adunit,sizes:e.mediaTypes.banner.sizes}})),a=!1,o=!1,s=!1;function d(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(a=!0,o=!0),!!a&&(!!o&&(!s&&(config.durationMedia&&e.forEach((function(e){var t=document.getElementById(e.code);t&&(t.dataset.aaRefreshTimed&&parseInt(t.dataset.aaRefreshTimed)>0&&(t.dataset.aaRefreshTimed="0"),t.dataset.aaRefreshViewable&&parseInt(t.dataset.aaRefreshViewable)>0&&(t.dataset.aaRefreshViewable="0"))})),googletag.cmd.push((function(){var t=googletag.pubads().getSlots(),n=t.map((function(e){return e.getSlotElementId()})),r=[],a=e.filter((function(e){return!(n.indexOf(e.code)>=0)})),o=t.filter((function(e){return i.indexOf(e.getSlotElementId())>=0}));googletag.pubads().setTargeting("pbglobal","asc"),googletag.pubads().setTargeting("tif",isTabInFocus.toString());var s="0s",d=Math.floor(getLastUserInteraction()/1e3);if(s=d+"s",d>=60){var c=Math.floor(d/60);s=c>=60?"1h":c+"m"}googletag.pubads().setTargeting("lui",s.toString()),a.forEach((function(e){var t=_extends([],e.mediaTypes.banner.sizes);e.additionalNonHBSizes&&e.additionalNonHBSizes.length>0&&e.additionalNonHBSizes.forEach((function(e){t.push(e)}));var n={};n=e.outofpage&&"true"==e.outofpage.toLowerCase()?googletag.defineOutOfPageSlot(formatAdunit(e.adunit),e.code).addService(googletag.pubads()):googletag.defineSlot(formatAdunit(e.adunit),t,e.code).addService(googletag.pubads()),utils.logMessage("__ GAM : Define Slot",n),n.rit=0,config.targeting&&config.targeting.refreshIteration&&n.setTargeting(config.targeting.refreshIteration,n.rit.toString()),googletag.pubads().isInitialLoadDisabled()&&r.push(n)})),a&&a.length>0&&(utils.logMessage("__ GAM : Enable services"),googletag.enableServices()),t=googletag.pubads().getSlots(),"undefined"!=typeof apstag&&config.amazon.enabled&&(utils.logMessage("__ A9/Amazon : Set Targeting A9"),apstag.setDisplayBids()),asc.setTargetingForGPTAsync(i),e.forEach((function(e){var n=t.filter((function(t){return e.code==t.getSlotElementId()}));if(!n[0])return utils.logError("__ GAM : Set Custom Targeting, cannot find adunit defined to DFP",e),!1;var i=n[0],r=document.getElementById(e.code);if(!r)return utils.logError("__ GAM : Set Custom Targeting, cannot find element for adunit:",e),!1;for(var a=Object.keys(e.targeting),o=a.length-1;o>=0;o--)i.setTargeting(a[o],e.targeting[a[o]]),utils.logMessage("__ GAM : Set Targeting",i,a[o],e.targeting[a[o]]);try{var s=!0;if(null===r.offsetParent&&(s=!1),r.dataset.aaRichMediaFormat){var d=safeJSONparse(r.dataset.aaRichMediaFormat);d&&"object"==_typeof(d)&&d.type&&(s=d.type)}utils.logMessage("__ Targeting : Set Targeting ANH",i,s),i.setTargeting("anh",s.toString())}catch(e){utils.logWarn("__ Targeting : Cannot Set Targeting ANH",i)}config.dfp.forceSafeFramesUnderFloor&&((i.getTargeting("hb_pb")[0]?parseInt(i.getTargeting("hb_pb")[0]):0)<config.dfp.forceSafeFramesUnderFloor?(utils.logMessage("__ GAM : Bid Under floor, setting Safe Frame",i),i.setForceSafeFrame(!0)):(utils.logMessage("__ GAM : Bid Over Floor, No need for Safe Frames",i),i.setForceSafeFrame(!1)));config.dfp.forceSafeFrames&&(i.setForceSafeFrame(!0),utils.logMessage("__ GAM : Set Force Safe Frames",i)),config.targeting.ias&&"object"==_typeof(iasAdunitData)&&iasAdunitData[i.getSlotElementId()]&&(iasAdunitData[i.getSlotElementId()].id&&i.setTargeting("id",iasAdunitData[i.getSlotElementId()].id),iasAdunitData[i.getSlotElementId()].grm&&i.setTargeting("grm",iasAdunitData[i.getSlotElementId()].grm),iasAdunitData[i.getSlotElementId()].vw&&i.setTargeting("vw",iasAdunitData[i.getSlotElementId()].vw))})),o.forEach((function(e){e.rit||(e.rit=0),e.rit++,config.targeting&&config.targeting.refreshIteration&&e.setTargeting(config.targeting.refreshIteration,e.rit.toString()),e.dah&&e.setTargeting("dah",e.dah),"number"==typeof e.lad&&e.setTargeting("lad",e.lad.toString())})),a.forEach((function(e){googletag.display(e.code),utils.logMessage("__ GAM : Display Slot",e)})),googletag.pubads().isInitialLoadDisabled()&&r.length>0&&(utils.logWarn("__ GAM : is using disable Initial Load, using refresh to load adunits"),googletag.pubads().refresh(r)),o&&o.length>0&&(googletag.pubads().refresh(o),utils.logMessage("__ GAM : Refresh Slots",o))})),s=!0,void n())))}if(setTimeout((function(){utils.logMessage("__ Ads : Running Force Fallback Render (possible not necessary)",TIMEOUT_FALLBACK),d(!0)}),TIMEOUT_FALLBACK),config.targeting.ias){var c=!1,u="";i.forEach((function(e){u+="&slot=%7Bid:".concat(e,",s:0.0,p:").concat(e,"%7D"),iasAdunitData[e]||(c=!0)}));var l="https://pixel.adsafeprotected.com/services/pub?anId=".concat(config.targeting.ias).concat(u,"&wr=").concat(window.innerWidth,".").concat(window.innerHeight,"&sr=").concat(window.screen.width,".").concat(window.screen.height);c&&(utils.logMessage("__ IAS : Make request to",l),Object(__WEBPACK_IMPORTED_MODULE_1__ajax__.a)(l,(function(e){utils.logMessage("__ IAS : Response: ",e),googletag.cmd.push((function(){var t=JSON.parse(e);t.brandSafety&&(t.brandSafety.adt&&googletag.pubads().setTargeting("adt",t.brandSafety.adt.toString()),t.brandSafety.alc&&googletag.pubads().setTargeting("alc",t.brandSafety.alc.toString()),t.brandSafety.dlm&&googletag.pubads().setTargeting("dlm",t.brandSafety.dlm.toString()),t.brandSafety.drg&&googletag.pubads().setTargeting("drg",t.brandSafety.drg.toString()),t.brandSafety.hat&&googletag.pubads().setTargeting("hat",t.brandSafety.hat.toString()),t.brandSafety.off&&googletag.pubads().setTargeting("off",t.brandSafety.off.toString()),t.brandSafety.vio&&googletag.pubads().setTargeting("vio",t.brandSafety.vio.toString())),t.fr&&googletag.pubads().setTargeting("fr",t.fr.toString()),t.slots&&Object.keys(t.slots).forEach((function(e){iasAdunitData[e]=t.slots[e]}))}))})))}config.amazon.enabled?(utils.logMessage("__ A9/Amazon : Request bids for : ",r,t),apstag.fetchBids({slots:r,timeout:t},(function(e){utils.logMessage("__ A9/Amazon : A9 bids are back: ",e),o=!0,d()}))):o=!0,asc.requestBids({timeout:t,adUnits:e,bidsBackHandler:function(e){a=!0,d()}})}))}asc.processAdsOnPage=processAdsOnPage,asc.renderAds=processAdsOnPage,"fe"==config.code&&(GAEvent("HeaderBidding","WrapperLoaded",device.toString(),1),googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){GAEvent(0==e.slot.rit?"AdDisplayed":"AdRefreshed",e.slot.getAdUnitPath(),device.toString(),1)}))})));var lastUserInteractionTimestamp=Date.now(),lastUserNeverInteracted=!1;function updateLastUserInteraction(e){utils.logMessage("__ Last User Interaction : Updated last user interaction by interaction:",e,(Date.now()-lastUserInteractionTimestamp)/1e3+" seconds since last interaction"),lastUserInteractionTimestamp=Date.now(),lastUserNeverInteracted=!0}function getLastUserInteraction(){return Date.now()-lastUserInteractionTimestamp}setEventListener(window,"click",(function(){updateLastUserInteraction("click")})),setEventListener(window,"resize",(function(){updateLastUserInteraction("resize")})),setEventListener(window,"touchend",(function(){updateLastUserInteraction("touchend")})),setEventListener(window,"touchmove",(function(){updateLastUserInteraction("touchmove")}));var userTriggeredUserSyncs=!1;function triggerUserSyncs(){userTriggeredUserSyncs||(userTriggeredUserSyncs=!0,asc.cmd.push((function(){asc.setConfig({userSync:{enableOverride:!0}}),setTimeout((function(){utils.logMessage("__ UserSync : Triggered user syncs by User Interaction: Scroll"),asc.triggerUserSyncs(),"function"==typeof asc.triggerUserSyncsS2S?(utils.logMessage("__ UserSync : Triggered user syncs for S2S by User Interaction: Scroll"),asc.triggerUserSyncsS2S()):utils.logMessage("__ UserSync : CANNOT Triggered user syncs for S2S by User Interaction: Scroll")}),1e3)})))}function checkElIsInView(e){var t=detectHeight("window"),n=e.getBoundingClientRect(),i=config.lazyLoading.preViewLenght+t;return config.lazyLoading.preViewPorts&&(i=parseInt(t*parseFloat(config.lazyLoading.preViewPorts))),i-n.top>=0&&n.bottom>=0?(utils.logMessage("__ LazyLoading : Element is in view, using Pre-ViewLenght:",i,n),!0):(utils.logMessage("__ LazyLoading : Element is NOT in view, using Pre-ViewLenght:",i,n),!1)}var isScrollTimeout=!1,isScrollFirst=!0;function onScroll(){if(!isScrollTimeout){isScrollTimeout=!0,userTriggeredUserSyncs||isScrollFirst||triggerUserSyncs(),isScrollFirst||updateLastUserInteraction("scroll"),isScrollFirst&&(isScrollFirst=!1);var e=document.querySelectorAll('[data-status="lazyLoaded"]');e=[].slice.call(e);var t=!1;e.forEach((function(e){checkElIsInView(e)&&(utils.logMessage("__ LazyLoading : LazyLoaded adunit close to viewport",e.dataset.aaAdunit),e.dataset.status="processing",e.dataset.aaLazyLoaded="false",t=!0)})),t&&processAdsOnPage(),setTimeout((function(){isScrollTimeout=!1}),config.lazyLoading.scrollEventDelay)}}setEventListener(window,"scroll",onScroll);var refreshQue={waitDelay:1e3+TIMEOUT,que:[],push:function(e,t){utils.logMessage("__ Refresh : Refresh added to queue",t),refreshQue.que.push({time:Date.now()+(1e3*t-refreshQue.waitDelay),fnc:e,called:!1}),setTimeout(refreshQue.run,1e3*t-refreshQue.waitDelay)},run:function(){if(!config.refresh.pauseOutOfFocus||isTabInFocus){utils.logMessage("__ Refresh : Run refreshes from queue");var e=!1;refreshQue.que=refreshQue.que.filter((function(t){if(t.called)return!1;if(t.time<=Date.now()+refreshQue.waitDelay){t.time>=Date.now()&&utils.logMessage("__ Refresh : Run refreshe now, with "+(Date.now()+refreshQue.waitDelay-t.time)/1e3+" seconds sooner"),t.called=!0;try{t.fnc()}catch(e){utils.logError("__ Refresh : Cannot execute:",t)}return e=!0,!1}return utils.logMessage("__ Refresh : Skipping refresh, it will be executed in "+(t.time-Date.now()-refreshQue.waitDelay)/1e3+" seconds"),!0})),e?(utils.logMessage("__ Refresh : Run process ads after queue"),processAdsOnPage()):utils.logMessage("__ Refresh : Nothing in the queue that needs processing of ads")}else utils.logMessage("__ Refresh : Tab not in focus, no refresh!")}},isTabInFocus=!0,tabInactiveTimeStamp=Date.now(),tabInactiveTime=0;function makeAdHesion(e,t,n){void 0===n&&(n={closeButton:"true",position:"footer",bottomPosition:"0",topPosition:"0"}),void 0===n.closeButton&&(n.closeButton="true"),void 0===n.position&&(n.position="footer"),void 0===n.bottomPosition&&(n.bottomPosition="0"),void 0===n.topPosition&&(n.topPosition="0"),void 0===n.autoClose&&(n.autoClose="0"),n.autoClose=parseInt(n.autoClose),utils.logMessage("__ RichMediaFormat : Making element adhesion",e,t,n);var i=detectWidth("window"),r=t[0],a=t[1],o=e.id;if(e.style.marginLeft="0",e.style.paddingLeft="0",e.style.width=r+"px",e.style.height=a+"px",e.style.position="fixed",e.style.left=(i-r)/2+"px",e.style.zIndex="2147483640","header"==n.position?e.style.top=n.topPosition:e.style.bottom=n.bottomPosition,e.style.display="","true"==n.closeButton){var s=window.document.createElement("a");s.innerHTML="X",s.onclick=function(){e.style.display="none",e.children[1].style.display="none",e.children[1].innerHTML="",utils.logMessage("__ RichMediaFormat : Closing adHesion adunit ",o),n.closePermanent&&"true"==n.closePermanent&&(utils.logMessage("__ RichMediaFormat : Closing permanent, destroying adunit"),destroy([e]))},s.border="0",s.style.cssText="position:absolute; right:-1px; top:-8px; color:#fff; cursor: pointer; text-decoration:none;text-shadow:0 0 3px #000, 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; font-size:14px; padding:4px; display:block;z-index:2147483646;",e.appendChild(s)}n.autoClose>0&&setTimeout((function(){e.style.display="none",e.children[1].style.display="none",e.children[1].innerHTML="",utils.logMessage("__ RichMediaFormat : Auto-Closing adHesion adunit ",o)}),1e3*n.autoClose)}function makeSticky(e,t){void 0===t&&(t={closeButton:"true"}),void 0===t.closeButton&&(t.closeButton="true"),utils.logMessage("__ RichMediaFormat : Making element sticky",e,t);var n,i=e.id;if(e.style.marginLeft="0",e.style.paddingLeft="0",e.style.cssText=(n="z-index:2147483640;position:fixed;",void 0!==t.top&&(n=n+"top:"+t.top+"px;"),void 0!==t.bottom&&(n=n+"bottom:"+t.bottom+"px;"),void 0!==t.left&&(n=n+"left:"+t.left+"px;"),void 0!==t.right&&(n=n+"right:"+t.right+"px;"),e&&e.style.cssText?e.style.cssText+n:n),"true"==t.closeButton){var r=window.document.createElement("a");r.innerHTML="X",r.onclick=function(){e.style.display="none",e.children[1].style.display="none",e.children[1].innerHTML="",utils.logMessage("__ RichMediaFormat : Closing Sticky adunit ",i),t.closePermanent&&"true"==t.closePermanent&&(utils.logMessage("__ RichMediaFormat : Closing permanent, destroying adunit"),destroy([e]))},r.border="0",r.style.cssText="position:absolute; right:-1px; top:-2px; color:#fff; cursor: pointer; text-decoration:none;text-shadow:0 0 3px #000, 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; font-size:14px; padding:4px; display:block;z-index:2147483646;",e.appendChild(r)}}function makePeel(e,t){void 0===t&&(t={closeButton:"true",top:"0",right:"0"}),void 0===t.closeButton&&(t.closeButton="true"),utils.logMessage("__ RichMediaFormat : Making element peel",e,t);var n=e.id,i=".peelexpand{-webkit-clip-path: circle(100%) !important;clip-path: circle(100%) !important;}",r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");r.appendChild(a),a.type="text/css",a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),utils.logMessage("__ RichMediaFormat : Peel Injected Styles");if(e.style.marginLeft="0",e.style.paddingLeft="0",e.style.cssText=function(){var n="top-right";void 0!==t.top&&void 0!==t.left&&(n="top-left"),void 0!==t.bottom&&void 0!==t.right&&(n="bottom-right"),void 0!==t.bottom&&void 0!==t.left&&(n="bottom-left");var i="circle(227px at 320px 0%);";"top-left"==n&&(i="circle(260px at 40px -10%)"),"bottom-right"==n&&(i="circle(227px at 320px 90%)"),"bottom-left"==n&&(i="circle(220px at 20px 90%)");var r="z-index:2147483640;position:fixed;";return void 0!==t.top&&(r=r+"top:"+t.top+"px;"),void 0!==t.bottom&&(r=r+"bottom:"+t.bottom+"px;"),void 0!==t.left&&(r=r+"left:"+t.left+"px;"),void 0!==t.right&&(r=r+"right:"+t.right+"px;"),r=(r=r+"clip-path: "+i+";")+"-webkit-clip-path: "+i+";",r+="-webkit-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);",r+="-webkit-transition-delay: !important;",r+="-moz-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;",r+="-o-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;",r+="transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; ",e&&e.style.cssText?e.style.cssText+r:r}(),e.addEventListener("mouseenter",(function(t){e.classList.add("peelexpand")})),e.addEventListener("mouseleave",(function(t){e.classList.remove("peelexpand")})),document.body.addEventListener("touchstart",(function(t){e.classList.add("peelexpand")})),"true"==t.closeButton){var o=window.document.createElement("a");o.innerHTML="X",o.onclick=function(){e.style.display="none",e.children[1].style.display="none",e.children[1].innerHTML="",utils.logMessage("__ RichMediaFormat : Closing Peel adunit ",n),t.closePermanent&&"true"==t.closePermanent&&(utils.logMessage("__ RichMediaFormat : Closing permanent, destroying adunit"),destroy([e]))},o.border="0",o.style.cssText="position:absolute; right:-2px; top:-5px; color:#fff; cursor: pointer; text-decoration:none;text-shadow:0 0 3px #000, 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; font-size:14px; padding:4px; display:block;z-index:2147483646;",e.appendChild(o)}}!function(){var e="hidden";function t(t){var n=!0,i=!1,r={focus:n,focusin:n,pageshow:n,blur:i,focusout:i,pagehide:i};t=t||window.event,(isTabInFocus=t.type in r?r[t.type]:!this[e])||(tabInactiveTime=0,tabInactiveTimeStamp=Date.now()),isTabInFocus&&(tabInactiveTime=Date.now()-tabInactiveTimeStamp,tabInactiveTimeStamp=0,updateLastUserInteraction("visibilitychange")),utils.logMessage("__ OnFocus : Window-Tab Focus changed to: ",isTabInFocus,tabInactiveTime),isTabInFocus&&refreshQue.run()}e in document?document.addEventListener("visibilitychange",t):(e="mozHidden")in document?document.addEventListener("mozvisibilitychange",t):(e="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",t):(e="msHidden")in document?document.addEventListener("msvisibilitychange",t):"onfocusin"in document?document.onfocusin=document.onfocusout=t:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=t,void 0!==document[e]&&t({type:document[e]?"blur":"focus"})}();var interstitial={wrapper:!1,counter:!1,cover:!1,header:!1,intbody:!1,creativeContainer:!1,adClose:!1,options:!1,adunit:!1,timeOpen:30,timeOpenShow:!0,timer:!1};function fastClickProtectionSet(e){var t=document.createElement("div");t.id=e.id+"_afc";var n=document.querySelector("div[id='"+e.id+"'] div[id*='ads_iframe']");n&&(n.appendChild(t),t.style&&t.style.position&&"absolute"==t.style.position||(t.style.cssText="\n color: #fff;\n width:100%;height:100%;\n position:absolute;\n background-color:#000;\n top:0;\n left:0;\n right:0;\n z-index: 2147483640;\n opacity: 0;\n overflow-y:hidden;\n overflow-x:hidden;\n margin:0 auto;"),"static"!=n.style.position&&""!=n.style.position||(n.style.position="relative"),utils.logMessage("__ FastClickProtection : Setting Fast Click Protection for: ",e.id),t.addEventListener("click",(function(){setTimeout((function(){t.parentNode.removeChild(t),utils.logMessage("__ FastClickProtection : Clearing Fast Click Protection for: ",e.id)}),500)})))}function fastClickProtectionClear(e){var t=document.getElementById(e.id+"_afc");t&&setTimeout((function(){t.parentNode.removeChild(t),utils.logMessage("__ FastClickProtection : Clearing Fast Click Protection for: ",e.id)}),3e3)}interstitial.init=function(){var e=internalAdunits.filter((function(e){return!(e.device.indexOf(device)<0)&&!(!e.richMediaFormat||!e.richMediaFormat.type||"interstitial"!=e.richMediaFormat.type)}));if(0==e.length)return utils.logMessage("__ RichMediaFormat : Checking for interstitial: none setup"),!1;e.length>1&&utils.logMessage("__ RichMediaFormat : Checking for interstitial: too many, taking the first"),interstitial.adunit=e[0],interstitial.options=interstitial.adunit.richMediaFormat.options,interstitial.timeOpen=parseInt(interstitial.options.timeOpen),interstitial.timeOpen<=0&&(interstitial.options.timeOpenShow=!1),utils.logMessage("__ RichMediaFormat : Interstitial Enabled:",interstitial.adunit);var t=getCookie("_asc_interstitialfreq");if(t||(t="0"),(t=parseInt(t))>=interstitial.options.maxDisplayPerSession)return utils.logMessage("__ RichMediaFormat : Interstitial Max Display Per Session HIT current freq:",t),!1;if(interstitial.options.pageviewDisplayStart>sesDepth)return utils.logMessage("__ RichMediaFormat : Interstitial Pageview Display Start HIT current pageview:",sesDepth),!1;if(Math.abs(sesDepth-interstitial.options.pageviewDisplayStart)%interstitial.options.pageviewDisplayEvery!=0)return utils.logMessage("__ RichMediaFormat : Interstitial Pageview Display EVERY "+interstitial.options.pageviewDisplayEvery+" HIT:",Math.abs(sesDepth-interstitial.options.pageviewDisplayStart)%interstitial.options.pageviewDisplayEvery),!1;var n=Math.floor(1e8*Math.random());interstitial.wrapper=document.createElement("div"),interstitial.wrapper.id="adInt_id_"+n,interstitial.wrapper.classList.add("ad-interstitial"),interstitial.wrapper.innerHTML='<div class="ad-interstitial-cover" id="adInt_cover_'+n+'"></div><div class="ad-interstitial-inner"><div class="ad-interstitial-header shadow-narrow" id="adInt_header_'+n+'"><div class="ad-col ad-col-25"><div class="ad-logo"></div></div><div class="ad-col ad-col-50"><div class="ad-message"><span class="bold">Advertisement </span><span'+(interstitial.options.timeOpenShow?"":' style="display:none;"')+'> <br>Page requested will appear in <span id="adInt_counter_'+n+'">'+interstitial.options.timeOpen+'</span> seconds</span></div></div><div class="ad-img-right ad-col ad-col-25"><div class="ad-close bold" id="adInt_adClose_'+n+'">CLOSE [X]</div></div></div><div class="ad-interstitial-body" id="adInt_body_'+n+'"><div class="ad-interstitial-creative-container" id="adInt_creative_'+n+'">\x3c!-- ADUNIT HERE --\x3e</div></div></div>',document.body.appendChild(interstitial.wrapper),utils.logMessage("__ RichMediaFormat : Interstitial Injected Wrapper"),interstitial.counter=document.getElementById("adInt_counter_"+n),interstitial.cover=document.getElementById("adInt_cover_"+n),interstitial.header=document.getElementById("adInt_header_"+n),interstitial.intbody=document.getElementById("adInt_body_"+n),interstitial.creativeContainer=document.getElementById("adInt_creative_"+n),interstitial.adClose=document.getElementById("adInt_adClose_"+n);var i="html.has-interstitial body{width:100%;height:100%;overflow:hidden;margin:0;text-align:left!important}html.has-interstitial embed,html.has-interstitial object,html.has-interstitial select{visibility:hidden;display:none}html.has-interstitial .ad-interstitial{display:block}html.has-interstitial .ad-interstitial embed,html.has-interstitial .ad-interstitial object,html.has-interstitial .ad-interstitial select{visibility:visible;display:block}.ad-interstitial{display:none;width:100%;height:100%;z-index:2147483646;color:#000;font-size:10px;font-family:arial,sans-serif;margin:0;padding:0;line-height:1;position:fixed;top:0;left:0;text-align:center}.ad-interstitial .shadow-narrow{box-shadow:0 0 8px 2px #111;-webkit-box-shadow:0 0 8px 2px #111;-moz-box-shadow:0 0 8px 2px #111;-o-box-shadow:0 0 8px 2px #111}.ad-interstitial .shadow-wide{box-shadow:0 0 15px 3px #111;-webkit-box-shadow:0 0 15px 3px #111;-moz-box-shadow:0 0 15px 3px #111;-o-box-shadow:0 0 15px 3px #111}.ad-interstitial .ad-interstitial-cover,.ad-interstitial .ad-interstitial-inner{width:100%;height:100%;position:absolute;top:0;left:0}.ad-interstitial .ad-interstitial-cover{background-color:#fff;opacity:1;z-index:999999998}.ad-interstitial .ad-interstitial-inner{z-index:999999999;position:absolute}.ad-interstitial .ad-interstitial-header{height:40px;background-color:#000;color:#fff;padding:3px 8px;position:relative;z-index:5}.ad-interstitial .ad-interstitial-header .ad-logo{background-position:left center;background-repeat:no-repeat;height:40px}.ad-interstitial .ad-interstitial-header .ad-message{text-align:center;height:40px;line-height:20px}.ad-interstitial .ad-interstitial-header .ad-close{line-height:40px;cursor:pointer;text-align:right;float:right;display:block;height:40px}.ad-interstitial .ad-interstitial-body{position:relative;z-index:1}.ad-interstitial .ad-interstitial-body embed,.ad-interstitial .ad-interstitial-body iframe,.ad-interstitial .ad-interstitial-body img,.ad-interstitial .ad-interstitial-body object{margin:0 auto;border:0;outline:0;display:block}.ad-interstitial .ad-interstitial-body .ad-interstitial-creative-container{position:relative;margin:0 auto;display:inline-block}.ad-interstitial .ad-interstitial-body .ad-interstitial-creative-container a{display:inline-block}.ad-interstitial .ad-interstitial-body .ad-interstitial-click-overlay{background-color:transparent;z-index:9999999999;top:0;left:0;position:absolute;display:block;border:0;text-decoration:none}.ad-interstitial .ad-col{float:left;height:40px;overflow:hidden}.ad-interstitial .ad-col-25{width:25%}.ad-interstitial .ad-col-50{width:50%}.ad-interstitial .hidden{display:none}.ad-interstitial .bold{font-weight:700;font-size:12px}",r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");r.appendChild(a),a.type="text/css",a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),utils.logMessage("__ RichMediaFormat : Interstitial Injected Styles"),interstitial.adClose.addEventListener("click",(function(){interstitial.close()}));var o=document.createElement("div");o.dataset.aaad="true",o.dataset.aaAdunit=interstitial.adunit.adunit,o.dataset.aaInterstitial="true",interstitial.creativeContainer.appendChild(o),utils.logMessage("__ RichMediaFormat : Interstitial Injected Adunit")},interstitial.render=function(e,t){if(interstitial.adunit){var n=(window.screen.height-interstitial.header.offsetHeight-2*t)/2;interstitial.creativeContainer.style.top=(n>0?n:0)+"px",interstitial.creativeContainer.style.width=e,interstitial.cover.style.backgroundColor=interstitial.options.backgroundColor,interstitial.cover.style.opacity=interstitial.options.opacity,document.documentElement.classList.add("has-interstitial"),interstitial.timeOpen>0&&interstitial.startTimer();var i=getCookie("_asc_interstitialfreq");i||(i="0"),setCookie("_asc_interstitialfreq",i=(parseInt(i)+1).toString(),1)}},interstitial.startTimer=function(){interstitial.timer=setTimeout(interstitial.updateTimer,1e3)},interstitial.clearTimer=function(){clearTimeout(interstitial.timer)},interstitial.updateTimer=function(){interstitial.timeOpen--,interstitial.counter.innerHTML=interstitial.timeOpen,interstitial.timeOpen?interstitial.startTimer():interstitial.close()},interstitial.close=function(){interstitial.clearTimer(),document.documentElement.classList.remove("has-interstitial"),destroyAdunits([interstitial.adunit.adunit]),document.body.removeChild(interstitial.wrapper),utils.logMessage("__ RichMediaFormat : Interstitial Closed")},googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){utils.logMessage("__ GAM : Adunit rendered: ",e.slot.getSlotElementId(),e.slot.getTargetingMap());var t=document.getElementById(e.slot.getSlotElementId());if(t){var n=e.slot.getTargetingMap();if(t.dataset.aaad){if(e.companyIds&&e.companyIds[0]&&(e.advertiserId=e.companyIds[0]),e.isEmpty){if(utils.logMessage("__ Ads : Adunit is empty: ",e.slot.getSlotElementId()),e.slot.lad=null,t.emptyCount=t.emptyCount+1,t.emptyConsecutiveCount=t.emptyConsecutiveCount+1,config.dfp.emtpyCreativeFallback&&n.hb_pb&&n.hb_pb[0]){var i=safeJSONparse(t.dataset.aaRichMediaFormat);"object"==_typeof(i)&&i.type?utils.logMessage("__ Ads : Adunit is empty with bid and emtpyCreativeFallback active, BUT is RichmediaFormat",e.slot.getSlotElementId(),n):(utils.logMessage("__ Ads : Adunit is empty but received bid, emtpyCreativeFallback active, rendering slot without DFP:",e.slot.getSlotElementId(),n),insertCreativeNoDFP(t,n))}}else{var r=safeJSONparse(t.dataset.aaRichMediaFormat);if("object"==_typeof(r)&&r.type){if(utils.logMessage("__ RichMediaFormat : Adunit is set as Rich Media Format ",t.dataset.aaAdunit,r),"adhesion"==r.type){var a=e.size;if(utils.logMessage("__ RichMediaFormat : Make Adhesion size is: ",a),1==a[0]&&1==a[1])if(n.hb_size&&n.hb_size[0]){var o=n.hb_size[0].split("x");o[0]&&o[1]?(a=[o[0],o[1]],utils.logMessage("__ RichMediaFormat : Make Adhesion Prebid creative size is: ",a)):utils.logMessage("__ RichMediaFormat : Cannot detect correct prebid size ",o)}else utils.logMessage("__ RichMediaFormat : No Prebid targeting set");1==a[0]&&1==a[1]?utils.logMessage("__ RichMediaFormat : Error Making adheasion: Cannot detect the size of the adunit ",t.dataset.aaAdunit,t.id):makeAdHesion(t,a,r.options)}if("sticky"==r.type&&makeSticky(t,r.options),"peel"==r.type&&makePeel(t,r.options),"interstitial"==r.type){a=e.size;if(utils.logMessage("__ RichMediaFormat : Render Interstitial size is: ",a),1==a[0]&&1==a[1])if(n.hb_size&&n.hb_size[0]){var s=n.hb_size[0].split("x");s[0]&&s[1]?(a=[s[0],s[1]],utils.logMessage("__ RichMediaFormat : Render Interstitial Prebid creative size is: ",a)):utils.logMessage("__ RichMediaFormat : Cannot detect correct prebid size ",s)}else utils.logMessage("__ RichMediaFormat : No Prebid targeting set");1==a[0]&&1==a[1]?utils.logMessage("__ RichMediaFormat : Error Render Interstitial: Cannot detect the size of the adunit ",t.dataset.aaAdunit,t.id):interstitial.render(a[0],a[1])}}n.hb_pb&&n.hb_pb[0]&&(t.estCPM=parseFloat(n.hb_pb[0])),utils.logMessage("__ Ads : Estimated CPM:",t.estCPM),e.slot.dah||(e.slot.dah=[]),e.slot.dah.indexOf(e.advertiserId)<0&&e.slot.dah.push(e.advertiserId),e.slot.lad=e.advertiserId;var d=!1;try{var c=t.childNodes;(c=[].slice.call(c)).forEach((function(e){if(e.id&&e.id.indexOf("__container__")>=0){var t=e.childNodes;(t=[].slice.call(t)).forEach((function(e){e.tagName&&"IFRAME"==e.tagName&&e.id&&e.id.indexOf("google_ads_iframe_")>=0&&e.contentWindow&&e.contentWindow.confirmedClickVisible&&(d=!0)}))}})),e.slot.ccp=d,utils.logMessage("__ ConfirmedClickPenalty : Check: "+d+" for: ",e.slot.getSlotElementId());var u=window.sessionStorage.getItem("asc_ccp");u&&"true"==u.toString()||window.sessionStorage.setItem("asc_ccp",d.toString())}catch(e){utils.logWarn("__ ConfirmedClickPenalty : Cannot access content of ad",e)}config.dfp&&config.dfp.fastClickProtection&&config.dfp.fastClickProtection.indexOf(device)>=0&&fastClickProtectionSet(t),t.emptyConsecutiveCount=0}var l=parseInt(t.dataset.aaRefreshTimed);if(NaN==l&&(l=0),config.refresh.accelerate&&config.refresh.accelerate.length>0&&l>0){var g=0;config.refresh.accelerate.forEach((function(e){parseFloat(t.estCPM)>parseFloat(e.estCPM)&&(g=parseInt(e.seconds))})),(l-=g)<=0&&(l=0),utils.logMessage("__ Refresh : Accelerate refresh for :"+t.dataset.aaAdunit+" with: "+g+" for "+l)}if(l>0)if(config.refresh.maxLimit&&e.slot.rit>=config.refresh.maxLimit)utils.logMessage("__ Refresh : Refresh Limit HIT :"+t.dataset.aaAdunit+" with count: "+e.slot.rit);else if(config.refresh.maxEmpty&&t.emptyCount>=config.refresh.maxEmpty)utils.logMessage("__ Refresh : Refresh Empty Limit HIT :"+t.dataset.aaAdunit+" with count: "+t.emptyCount);else if(config.refresh.maxConsecutiveEmpty&&t.emptyConsecutiveCount>=config.refresh.maxConsecutiveEmpty)utils.logMessage("__ Refresh : Refresh Consecutive Empty Limit HIT :"+t.dataset.aaAdunit+" with count: "+t.emptyConsecutiveCount);else{(t.dataset.aaRefreshStopAdvertisers?safeJSONparse(t.dataset.aaRefreshStopAdvertisers):[]).indexOf(e.advertiserId)>=0||config.refresh.stopAdvertisers.indexOf(e.advertiserId)>=0?utils.logMessage("__ Refresh : STOP refreshing adunit "+t.dataset.aaAdunit+" HIT advertiser "+e.advertiserId):(config.refresh.forceRefreshRateForAdvertiser&&config.refresh.forceRefreshRateForAdvertiser.length>0&&config.refresh.forceRefreshRateForAdvertiser.forEach((function(t){parseInt(t.advertiserId)==e.advertiserId&&(utils.logMessage("__ Refresh : Force Refresh Rate Change, from "+l+" to "+t.refreshRate+" seconds"),l=parseInt(t.refreshRate))})),utils.logMessage("__ Refresh : TIMED Refreshing adunit "+t.dataset.aaAdunit+" in "+l+" seconds"),refreshQue.push((function(){t.dataset.status="processing"}),l))}}else utils.logWarn("__ Ads : Not a wapper adunit, skipping! ",e.slot.getResponseInformation())}else utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())}))})),googletag.cmd.push((function(){googletag.pubads().addEventListener("impressionViewable",(function(e){e=_extends({},e,e.slot.getResponseInformation()),utils.logMessage("__ GAM : Adunit is now viewable: ",e.slot.getSlotElementId());var t=document.getElementById(e.slot.getSlotElementId());if(t)if(t.dataset.aaad){e.companyIds&&e.companyIds[0]&&(e.advertiserId=e.companyIds[0]);var n=parseInt(t.dataset.aaRefreshViewable);if(NaN==n&&(n=0),config.refresh.accelerate&&config.refresh.accelerate.length>0&&n>0){var i=0;config.refresh.accelerate.forEach((function(e){parseFloat(t.estCPM)>parseFloat(e.estCPM)&&(i=parseInt(e.seconds))})),(n-=i)<=0&&(n=0),utils.logMessage("__ Refresh : Accelerate refresh for :"+t.dataset.aaAdunit+" with: "+i+" for "+n)}if(n>0)if(config.refresh.maxLimit&&e.slot.rit>=config.refresh.maxLimit)utils.logMessage("__ Refresh : Refresh Limit HIT :"+t.dataset.aaAdunit+" with count: "+e.slot.rit);else(t.dataset.aaRefreshStopAdvertisers?safeJSONparse(t.dataset.aaRefreshStopAdvertisers):[]).indexOf(e.advertiserId)>=0||config.refresh.stopAdvertisers.indexOf(e.advertiserId)>=0?utils.logMessage("__ Refresh : STOP refreshing adunit "+t.dataset.aaAdunit+" HIT advertiser "+e.advertiserId):(config.refresh.forceRefreshRateForAdvertiser&&config.refresh.forceRefreshRateForAdvertiser.length>0&&config.refresh.forceRefreshRateForAdvertiser.forEach((function(t){parseInt(t.advertiserId)==e.advertiserId&&(utils.logMessage("__ Refresh : Force Refresh Rate Change, from "+n+" to "+t.refreshRate+" seconds"),n=parseInt(t.refreshRate))})),utils.logMessage("__ Refresh : Viewable Refreshing adunit "+t.dataset.aaAdunit+" in "+n+" seconds"),refreshQue.push((function(){t.dataset.status="processing"}),n))}else utils.logWarn("__ Ads : Not a wapper adunit, skipping! ",e.slot.getResponseInformation());else utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())}))}));var bcName="asc_bc_";function bcSetBid(e){if(!e.adId)return!1;if(!e.ad)return!1;if(!e.cpm)return!1;if(e.cpm<config.prebid.bidCaching.floor)return utils.logMessage("__ BC : Bid under the floor -> ",e.cpm),!1;if(e.ad.length>config.prebid.bidCaching.maxLength)return utils.logMessage("__ BC : Bid string too big -> ",e.ad.length),!1;var t=document.getElementById(e.adUnitCode);if(!t)return utils.logMessage("__ BC : Cannot find element for bid "),!1;if(!t.dataset.aaad)return utils.logMessage("__ BC : Bid is not for our wrapper"),!1;var n=t.dataset.aaAdunit;if(!n)return utils.logMessage("__ BC : Bid doesnt`t have an adunit"),!1;e.adunit=n;try{return window.sessionStorage.setItem(bcName+e.adId,JSON.stringify(e)),!0}catch(e){return utils.logWarn("__ BC : Error setting BC bid: ",e),!1}}function bcRemoveBid(e){try{return window.sessionStorage.removeItem(bcName+e),!0}catch(e){return utils.logWarn("__ BC : Error removing BC bid: ",e),!1}}function bcGetBids(){var e=Object.keys(window.sessionStorage),t=[],n=asc.getAuctionBidResponses().map((function(e){return e.adId}));return e.forEach((function(e){if(!(e.indexOf(bcName)<0))try{var i=JSON.parse(window.sessionStorage.getItem(e));if(i.responseTimestamp+1e3*i.ttl<=utils.timestamp())return utils.logMessage("__ BC : Bid expired, removing -> ",i),bcRemoveBid(i.adId),!1;if(n.indexOf(i.adId)>=0)return!1;t.push(i)}catch(e){return utils.logWarn("__ BC : Error getting BC bid: ",e),!1}})),t}function bcPushStoredBid(e,t){var n=t.auctionId,i=utils.getUniqueIdentifierStr(),r=utils.getUniqueIdentifierStr();if(!e.adunit)return!1;var a=document.querySelectorAll('[data-aa-adunit="'+e.adunit+'"]');a=(a=[].slice.call(a)).filter((function(t){return safeJSONparse(t.dataset.aaSizes).map((function(e){return e[0]+"x"+e[1]})).indexOf(e.width+"x"+e.height)>=0}));var o=!1;if(a.forEach((function(e){o||(o=e),o.getBoundingClientRect().top<0?(e.getBoundingClientRect().top>=0||Math.abs(e.getBoundingClientRect().top)<Math.abs(o.getBoundingClientRect().top))&&(o=e):e.getBoundingClientRect().top>=0&&Math.abs(e.getBoundingClientRect().top)<Math.abs(o.getBoundingClientRect().top)&&(o=e)})),!o)return!1;var s={};s.auctionId=n,s.auctionStart=utils.timestamp(),s.bidderCode=e.bidderCode,s.bidderRequestId=i,s.src="client",s.timeout=TIMEOUT,s.bids=[];var d={};return d.adUnitCode=o.id,d.auctionId=n,d.bidId=r,d.bid_id=r,d.bidRequestsCount=1,d.bidder=e.bidderCode,d.bidderRequestId=i,d.bidderRequestsCount=1,d.bidderWinsCount=0,s.bids.push(d),t.bidderRequests.push(s),e.adUnitCode=o.id,e.requestId=r,e.auctionId=n,e.cacheStatus="storage",t.bidsReceived.push(e),utils.logMessage("__ BC : Pushed cached bid -> ",e,o.id),!0}function setUidsTargeting(){var e=0,t=Object.keys(asc.getUserIds());e=t.length,googletag.cmd.push((function(){e>0&&googletag.pubads().setTargeting("uids",t)})),googletag.cmd.push((function(){googletag.pubads().setTargeting("uids_c",e.toString())}))}function refresh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null==e&&(e=document.querySelectorAll('[data-aaad="true"]'),e=[].slice.call(e)),utils.logMessage("__ API : Calling on demand Refresh for:",e),e.forEach((function(e){e.dataset.status="processing"})),setTimeout(processAdsOnPage,100)}function refreshIds(e){var t=[];e.forEach((function(e){var n=document.getElementById(e);n&&t.push(n)})),refresh(t)}function refreshAdunits(e){var t=[];e.forEach((function(e){var n=document.querySelectorAll('[data-aa-adunit="'+e+'"]');(n=[].slice.call(n)).length>=0&&n.forEach((function(e){e&&t.push(e)}))})),refresh(t)}function destroy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null==e&&(e=document.querySelectorAll('[data-aaad="true"]'),e=[].slice.call(e)),utils.logMessage("__ API : Calling on demand destroy for:",e),e.forEach((function(e){googletag.cmd.push((function(){var t=googletag.pubads().getSlots().filter((function(t){return t.getSlotElementId()==e.id}));t.length&&t.length>0&&googletag.destroySlots(t)})),e.innerHTML="",e.dataset.aaad="false"}))}function destroyIds(e){var t=[];e.forEach((function(e){var n=document.getElementById(e);n&&t.push(n)})),destroy(t)}function destroyAdunits(e){var t=[];e.forEach((function(e){var n=document.querySelectorAll('[data-aa-adunit="'+e+'"]');(n=[].slice.call(n)).length>=0&&n.forEach((function(e){e&&t.push(e)}))})),destroy(t)}function setPrivacySettings(e){"object"!=_typeof(e)&&utils.logError("__ setPrivacySettings : parameter is not correct ");var t=!1;e.childDirectedTreatment&&!0===e.childDirectedTreatment&&(t=!0),asc.setConfig({coppa:t}),googletag.cmd.push((function(){googletag.pubads().setPrivacySettings(e)})),utils.logMessage("__ setPrivacySettings : setting parameter: ",e)}asc.cmd.push((function(){asc.onEvent("requestBids",(function(e){utils.logMessage("__ Timing : Requesting bids, time:",Date.now()-wrapperLoadTime)})),asc.onEvent("beforeRequestBids",(function(e){setUidsTargeting()})),asc.onEvent("auctionInit",(function(e){var t=Date.now()-wrapperLoadTime;utils.logMessage("__ Timing : Initiating Auction, time:",t),config.targeting&&config.targeting.speed&&googletag.cmd.push((function(){if(waaiTargetingSent){var e=googletag.pubads().getTargeting("waai");e.length&&e.length>0&&googletag.pubads().clearTargeting("waai")}else t>1e4&&(t=1e4),googletag.pubads().setTargeting("waai",(100*Math.round(t/100)).toString()),waaiTargetingSent=!0})),googletag.cmd.push((function(){var e=googletag.pubads().getTargeting("wabt");e.length&&e.length>0&&googletag.pubads().clearTargeting("wabt")}))})),asc.onEvent("auctionEnd",(function(e){if(utils.logMessage("__ Timing : Auction END, time:",Date.now()-wrapperLoadTime),config.prebid.bidCaching){var t=bcGetBids();utils.logMessage("__ BC : get bids -> ",t),t.forEach((function(t){bcPushStoredBid(t,e)}))}var n=e.auctionEnd-e.timestamp;n>1e4&&(n=1e4),config.targeting&&config.targeting.speed&&googletag.cmd.push((function(){googletag.pubads().setTargeting("waae",(100*Math.round(n/100)).toString())}))})),asc.onEvent("bidResponse",(function(e){if("native"==e.mediaType&&e.native){var t=getSizeForNative(document.getElementById(e.adUnitCode));"1"!=t[0]&&"1"!=t[1]&&(e.ad='\n <script src="https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/native-render.js"><\/script>\n <scr'+'ipt>\n var pbNativeTagData = {};\n pbNativeTagData.pubUrl = "'.concat(window.document.location.href,'";\n pbNativeTagData.adId = "').concat(e.adId,'";\n pbNativeTagData.requestAllAssets = true;\n window.pbNativeTag.renderNativeAd(pbNativeTagData);\n </scr')+"ipt>\n ",e.width=parseInt(t[0]),e.height=parseInt(t[1]),e.size=e.width+"x"+e.height,e.adserverTargeting&&e.adserverTargeting.hb_size&&"0x0"==e.adserverTargeting.hb_size&&(e.adserverTargeting.hb_size=e.width+"x"+e.height),utils.logMessage("__ Native : Bid is Native, added renderer -> ",e))}config.prebid.bidCaching&&(bcSetBid(e)?utils.logMessage("__ BC : Bid cached -> ",e):utils.logMessage("__ BC : Cannot Cache bid -> ",e))})),asc.onEvent("bidWon",(function(e){config.prebid.bidCaching&&(utils.logMessage("__ BC : Removed bid from caching -> ",e),bcRemoveBid(e.adId))})),asc.onEvent("bidTimeout",(function(e){utils.logMessage("__ Timing : Bid Timeout, time:",Date.now()-wrapperLoadTime,e);var t=[];e.forEach((function(e){if("s2s"==e.src)return!1;t.indexOf(e.bidder)<0&&t.push(e.bidder)})),config.targeting&&config.targeting.speed&&googletag.cmd.push((function(){googletag.pubads().setTargeting("wabt",t)}))})),asc.onEvent("setTargeting",(function(e){utils.logMessage("__ Timing : Set Targeting, time:",Date.now()-wrapperLoadTime);var t=[];asc.getAuctionBidsRequested().forEach((function(e){if("s2s"==e.src)return!1;t.indexOf(e.bidderCode)<0&&t.push(e.bidderCode)})),asc.getAuctionBidResponses().forEach((function(e){if("s2s"==e.src)return!1;var n=t.indexOf(e.bidderCode);n>=0&&t.splice(n,1)})),asc.getAuctionNoBids().forEach((function(e){if("s2s"==e.src)return!1;var n=t.indexOf(e.bidder);n>=0&&t.splice(n,1)})),t.length>0&&utils.logInfo("__ Ads : Real Timeout Bidders: ",t),config.targeting&&config.targeting.speed&&googletag.cmd.push((function(){var e=googletag.pubads().getTargeting("wabtr");e.length&&e.length>0&&googletag.pubads().clearTargeting("wabtr"),t.length>0&&googletag.pubads().setTargeting("wabtr",t)}))})),asc.onEvent("adRenderFailed",(function(e){utils.logError("__ Ads : Ad Render Failed:",e,Date.now()-wrapperLoadTime)})),asc.onEvent("auctionDebug",(function(e){if(utils.logMessage("__ Ads : JS Error:",e,Date.now()-wrapperLoadTime),e.type&&e.arguments&&e.arguments[0]){var t=e.arguments[0];if((t=t.toString()).indexOf("Server call for ")>=0&&t.indexOf(" failed: 0. Continuing without bids.")>=0){var n=t.replace("Server call for ","").replace(" failed: 0. Continuing without bids.","");storeSetDisableBidders(n),utils.logInfo("__ Ads : Bidder added to disable bidder list -"+n+"-")}}}))})),asc.refresh=refresh,asc.refreshIds=refreshIds,asc.refreshAdunits=refreshAdunits,asc.destroy=destroy,asc.destroyIds=destroyIds,asc.destroyAdunits=destroyAdunits,asc.setPrivacySettings=setPrivacySettings;var proxyConnection=!1,consoleEnabled=getParameterByName("ascConsole")||getParameterByName("magma");function initProxy(e){var t=document.createElement("iframe");function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"no";t.width=e,t.height=n,t.frameBorder=i,t.scrolling=r}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t.style.cssText=e}function r(e,n){if(!e)return!1;t.style[e]=n}t.src=e,document.body.appendChild(t);var a=460,o=600;detectWidth()<768&&(a=detectWidth("window"),o=30),n(a,o),i(),r("position","fixed"),r("top","-1000px"),r("right","-1000px"),r("zIndex","2147483646"),r("display","none"),(proxyConnection=window.Penpal.connectToChild({iframe:t,methods:{iframeMorph:n,iframeCssText:i,iframeStyle:r,iframeExpand:function(){n(a,o=600)},iframeCollapse:function(){n(a,o=30)},iframeDestroy:function(){utils.logMessage("__ Console : Destroying console"),t.remove();var e=document.querySelectorAll("[data-adunit-overlay]");(e=[].slice.call(e)).forEach((function(e){e.remove()})),eraseCookie("_asc_console"),consoleEnabled=null},getWrapperConfig:function(){return _getWrapperConfig()},getWrapperInternalAdunits:function(){return _getWrapperInternalAdunits()}},debug:!1})).promise.then((function(e){detectWidth("window")<768&&e.isSmallScreen().then((function(){}))}))}function sendProxy(e,t,n){return null!==consoleEnabled&&(proxyConnection?(proxyConnection.promise.then((function(i){i[e](t,n).then((function(i){return utils.logMessage("__ Console : sendProxy",e,t,n)}))})),!0):(utils.logInfo("__ Console : sendProxy FAILED, retrying in 1 sec",e,t,n),setTimeout((function(){sendProxy(e,t,n)}),1e3),!1))}function drawAdunitOverlay(e){if(null!==consoleEnabled||"true"===getParameterByName("timeoverlay")){var t=document.getElementById(e.id+"_adunitoverlay");t||((t=document.createElement("div")).id=e.id+"_adunitoverlay",t.dataset.adunitOverlay=!0,e.appendChild(t)),t.style&&t.style.position&&"absolute"==t.style.position||(t.style.cssText="\n color: #000;\n width:1px;height:1px;\n position:absolute;\n background-color:#fff;\n top:0;\n left:0;\n right:0;\n z-index: 2147483642;\n opacity: 0.9;\n overflow-y: scroll;\n overflow-x:hidden;\n margin:0 auto;\n padding:6px;\n border: 3px dashed green;\n line-height:16px !important;\n font-size:14px !important;\n text-align: left !important;"),"static"==getComputedStyle(e).position&&(e.style.position="relative");try{var n=document.querySelector("div[id='"+e.id+"'] div iframe[id*='ads_iframe']");if(n){var i=getComputedStyle(n);t.style.width=i.width,t.style.height=i.height,n.id.indexOf("fallback_ads_iframe")>=0&&(e.overlay.fallback=!0)}}catch(e){}setTimeout((function(){try{var n=document.querySelector("div[id='"+e.id+"'] div iframe[id*='ads_iframe']");if(n){var i=getComputedStyle(n);t.style.width=i.width,t.style.height=i.height}}catch(e){}}),1e3),t.innerHTML="",t.innerHTML=t.innerHTML+"Adunit: <b>"+e.overlay.adunit+"</b><br>",e.overlay.size&&e.overlay.size[0]&&e.overlay.size[1]&&(t.innerHTML=t.innerHTML+"Ad server response Size: <b>"+e.overlay.size[0]+"x"+e.overlay.size[1]+"</b><br>"),e.overlay.targetingMap&&e.overlay.targetingMap[config.targeting.refreshIteration]&&(t.innerHTML=t.innerHTML+"Refresh Count: <b>"+e.overlay.targetingMap[config.targeting.refreshIteration]+"</b><br>"),t.innerHTML=t.innerHTML+"-<br>",e.estCPM&&(t.innerHTML=t.innerHTML+"Estimated CPM: <b>"+e.estCPM+"</b><br>"),e.overlay.queryId&&(t.innerHTML=t.innerHTML+"ID: <b>"+e.overlay.queryId+"</b><br>"),e.overlay.advertiserId&&(t.innerHTML=t.innerHTML+"Advertiser ID: <b>"+e.overlay.advertiserId+"</b><br>"),e.overlay.companyIds&&(t.innerHTML=t.innerHTML+"Company IDs: <b>"+JSON.stringify(e.overlay.companyIds)+"</b><br>"),e.overlay.isBackfill&&(t.innerHTML=t.innerHTML+"Backfill: <b>Yes</b><br>"),e.overlay.fallback?t.innerHTML=t.innerHTML+'Fallback render: <b style="color:red;">Yes</b><br>':t.innerHTML=t.innerHTML+"Fallback render: <b>No</b><br>",e.overlay.bidWonTime&&e.overlay.bidder&&(t.innerHTML=t.innerHTML+"HB won: <b>"+e.overlay.bidder+"</b> Size: <b>"+e.overlay.prebidSize+"</b> ID: <b>"+e.overlay.prebidCreativeId+"</b><br> Advertiser Domains: <b>"+JSON.stringify(e.overlay.advertiserDomains)+"</b><br>"),t.innerHTML=t.innerHTML+"-<br>",t.innerHTML=t.innerHTML+"HB Auction: <b>"+(e.overlay.auctionEndTime-e.overlay.auctionInitTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"GAM Request: <b>"+(e.overlay.slotResponseTime-e.overlay.slotRequestedTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"Creative Load: <b>"+(e.overlay.slotLoadTime-e.overlay.slotRenderedTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"-<br>",t.innerHTML=t.innerHTML+"Total: <b>"+(e.overlay.slotLoadTime-e.overlay.auctionInitTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"-<br>",e.overlay.targetingMap&&(e.overlay.targetingMap.hb_bidder&&e.overlay.targetingMap.hb_bidder[0]?t.innerHTML=t.innerHTML+"HB bid: <b>Yes</b> Bidder: <b>"+e.overlay.targetingMap.hb_bidder[0]+"</b> CPM: <b>"+e.overlay.targetingMap.hb_pb[0]+"</b><br>":t.innerHTML=t.innerHTML+"Prebid bid: <b>No</b><br>",e.overlay.targetingMap.amznbid&&e.overlay.targetingMap.amznbid[0]&&"2"!=e.overlay.targetingMap.amznbid[0]?t.innerHTML=t.innerHTML+"HB A9 bid: <b>Yes</b><br>":t.innerHTML=t.innerHTML+"A9 bid: <b>No</b><br>",e.overlay.targetingMap.hb_source&&e.overlay.targetingMap.hb_source[0]&&(t.innerHTML=t.innerHTML+"HB Bid source: <b>"+e.overlay.targetingMap.hb_source[0]+"</b><br>"),e.overlay.targetingMap.hb_cs&&e.overlay.targetingMap.hb_cs[0]&&(t.innerHTML=t.innerHTML+"HB Bid caching: <b>"+e.overlay.targetingMap.hb_cs[0]+"</b><br>"),e.overlay.targetingMap.hb_bd&&e.overlay.targetingMap.hb_bd[0]&&(t.innerHTML=t.innerHTML+"HB Bid density: <b>"+e.overlay.targetingMap.hb_bd[0]+"</b><br>")),googletag.cmd.push((function(){googletag.pubads().getTargeting("wabt")&&googletag.pubads().getTargeting("wabt")[0]&&(t.innerHTML=t.innerHTML+"Timeout bidders: <b>"+JSON.stringify(googletag.pubads().getTargeting("wabt"))+"</b><br>"),googletag.pubads().getTargeting("wabtr")&&googletag.pubads().getTargeting("wabtr")[0]&&(t.innerHTML=t.innerHTML+"Timeout before request: <b>"+JSON.stringify(googletag.pubads().getTargeting("wabtr"))+"</b><br>")}))}}function cmpDebugConsolePush(e){sendProxy("cmpMessage",{message:e},Date.now()-wrapperLoadTime)}null!==consoleEnabled&&(utils.logMessage("__ Console : setting cookie for 1 hour: ",consoleEnabled),setCookie("_asc_console",consoleEnabled,1/24)),consoleEnabled=getCookie("_asc_console"),utils.logMessage("__ Console : Variable: ",consoleEnabled),null===consoleEnabled&&"true"!=getParameterByName("timeoverlay")||(googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRequested",(function(e){var t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotRequestedTime=Date.now()):utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),googletag.pubads().addEventListener("slotResponseReceived",(function(e){var t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotResponseTime=Date.now()):utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),googletag.pubads().addEventListener("slotOnload",(function(e){var t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotLoadTime=Date.now(),drawAdunitOverlay(t)):utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotRenderedTime=Date.now(),t.overlay.targetingMap=e.slot.getTargetingMap(),t.overlay.queryId=e.slot.getEscapedQemQueryId(),t.overlay.adunit=e.slot.getAdUnitPath(),t.overlay.advertiserId=e.advertiserId,t.overlay.campaignId=e.campaignId,t.overlay.companyIds=e.companyIds,t.overlay.creativeId=e.creativeId,t.overlay.isBackfill=e.isBackfill,t.overlay.lineItemId=e.lineItemId,t.overlay.sourceAgnosticCreativeId=e.sourceAgnosticCreativeId,t.overlay.sourceAgnosticLineItemId=e.sourceAgnosticLineItemId,t.overlay.yieldGroupIds=e.yieldGroupIds,t.overlay.size=e.size,e.isEmpty&&(t.overlay.slotLoadTime=Date.now(),setTimeout((function(){drawAdunitOverlay(t)}),1e3)),sendProxy("slotRenderEnded",{isEmpty:e.isEmpty,slotContentChanged:e.slotContentChanged,size:e.size,advertiserId:e.advertiserId,campaignId:e.campaignId,creativeId:e.creativeId,lineItemId:e.lineItemId,isBackfill:e.isBackfill,yieldGroupIds:e.yieldGroupIds,companyIds:e.companyIds,adUnitPath:e.slot.getAdUnitPath(),slotElementId:e.slot.getSlotElementId(),targetingMap:e.slot.getTargetingMap()},Date.now()-wrapperLoadTime)):utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),googletag.pubads().addEventListener("impressionViewable",(function(e){var t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&sendProxy("impressionViewable",{adUnitPath:e.slot.getAdUnitPath(),slotElementId:e.slot.getSlotElementId()},Date.now()-wrapperLoadTime):utils.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())}))})),asc.cmd.push((function(){asc.onEvent("auctionInit",(function(e){e.adUnitCodes.forEach((function(e){var t=document.getElementById(e);t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.auctionInitTime=Date.now())})),sendProxy("auctionInit",e,Date.now()-wrapperLoadTime,e),sendProxy("timeline","auctionInit_"+e.auctionId,Date.now())})),asc.onEvent("auctionEnd",(function(e){e.adUnitCodes.forEach((function(e){var t=document.getElementById(e);t&&t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.auctionEndTime=Date.now())})),sendProxy("auctionEnd",{auctionId:e.auctionId,timestamp:e.timestamp,auctionEnd:e.auctionEnd,auctionStatus:e.auctionStatus,adUnitCodes:e.adUnitCodes,timeout:e.timeout},Date.now()-wrapperLoadTime),sendProxy("timeline","auctionEnd_"+e.auctionId,Date.now())})),asc.onEvent("bidWon",(function(e){var t=document.getElementById(e.adUnitCode);t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.bidWonTime=Date.now(),t.overlay.bidder=e.bidder,t.overlay.cpm=e.cpm,t.overlay.prebidSize=e.size,t.overlay.prebidCreativeId=e.creativeId,t.overlay.advertiserDomains=e.meta&&e.meta.advertiserDomains?e.meta.advertiserDomains:[],sendProxy("bidWon",{bidderCode:e.bidderCode,adId:e.adId,requestId:e.requestId,mediaType:e.mediaType,source:e.source,cpm:e.cpm,currency:e.currency,auctionId:e.auctionId,size:e.getSize(),adUnitCode:e.adUnitCode},Date.now()-wrapperLoadTime))})),asc.onEvent("bidResponse",(function(e){sendProxy("bidResponse",{bidderCode:e.bidderCode,adId:e.adId,requestId:e.requestId,mediaType:e.mediaType,source:e.source,cpm:e.cpm,currency:e.currency,auctionId:e.auctionId,size:e.getSize(),adUnitCode:e.adUnitCode,timeToRespond:e.timeToRespond},Date.now()-wrapperLoadTime)}))})));var saveAdsEnabled=getParameterByName("ascSaveAds");function loadLiveRampATS(){if(config.analytics.liverampAts&&config.analytics.liverampAts.placementID){config.analytics.liverampAts.rootDomain&&(config.analytics.liverampAts.rootDomain=config.analytics.liverampAts.rootDomain.replace("$$ROOT_DOMAIN$$",getDomain())),utils.logMessage("__ Liveramp : Load LiveRamp ATS with config:",config.analytics.liverampAts);var e=document.createElement("script");e.onload=function(){window.ats.start(config.analytics.liverampAts),utils.logMessage("__ Liveramp : LiveRamp ATS Loaded. ATS current config:",window.ats.outputCurrentConfiguration())},e.src="https://ats.rlcdn.com/ats.js",document.body.appendChild(e)}}null!==saveAdsEnabled&&(utils.logMessage("__ SaveAds : setting cookie for 1 hour: ",saveAdsEnabled),setCookie("_asc_SaveAds",saveAdsEnabled,1/24)),saveAdsEnabled=getCookie("_asc_SaveAds"),utils.logMessage("__ SaveAds : Variable: ",saveAdsEnabled),saveAdsEnabled&&googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=document.getElementById(e.slot.getSlotElementId());if(t){if(t.dataset.aaad){var n={};googletag.pubads().getTargetingKeys().forEach((function(e){n[e]=googletag.pubads().getTargeting(e)}));var i={isEmpty:e.isEmpty,slotContentChanged:e.slotContentChanged,size:e.size,advertiserId:e.advertiserId,campaignId:e.campaignId,creativeId:e.creativeId,lineItemId:e.lineItemId,isBackfill:e.isBackfill,yieldGroupIds:e.yieldGroupIds,companyIds:e.companyIds,adUnitPath:e.slot.getAdUnitPath(),slotElementId:e.slot.getSlotElementId(),targetingMap:e.slot.getTargetingMap(),pageTargeting:n,url:window.location.href};if(e.slot.getTargetingMap().hb_adid&&e.slot.getTargetingMap().hb_adid[0]){var r=asc.getAuctionBidResponses().filter((function(t){return e.slot.getTargetingMap().hb_adid[0]==t.adId}));r[0]&&(i.prebid=r[0])}try{var a=t.childNodes;(a=[].slice.call(a)).forEach((function(e){if(e.id.indexOf("__container__")>=0){var t=e.childNodes;(t=[].slice.call(t)).forEach((function(e){if("IFRAME"==e.tagName&&e.id.indexOf("google_ads_iframe_")>=0){var t="";t+=e.contentDocument.head.innerHTML,t+=e.contentDocument.body.innerHTML,i.ad=t}}))}}))}catch(e){}Object(__WEBPACK_IMPORTED_MODULE_1__ajax__.a)("https://safeads.adapex.io/collect",(function(){utils.logMessage("__ SaveAds : Sent data! ")}),JSON.stringify(i),{contentType:"text/plain",withCredentials:!1})}}else utils.logWarn("__ SaveAds : Cannot find element in page, skipping! ",e.slot.getSlotElementId())}))})),document.addEventListener("asc",(function(e){utils.logMessage("__ Ads : asc event: ",e),processAdsOnPage()})),function(e,t){e=e||"docReady",t=t||window;var n=[],i=!1,r=!1;function a(){if(!i){i=!0;for(var e=0;e<n.length;e++)n[e].fn.call(window,n[e].ctx);n=[]}}function o(){"complete"===document.readyState&&a()}t[e]=function(e,t){if("function"!=typeof e)throw new TypeError("callback for docReady(fn) must be a function");i?setTimeout((function(){e(t)}),1):(n.push({fn:e,ctx:t}),"complete"===document.readyState||!document.attachEvent&&"interactive"===document.readyState?setTimeout(a,1):r||(document.addEventListener?(document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1)):(document.attachEvent("onreadystatechange",o),window.attachEvent("onload",a)),r=!0))}}("docReady",window),docReady((function(){isPageLoaded=!0,sendProxy("timeline","wrap_load",wrapperLoadTime);var e=Date.now()-wrapperLoadTime;sendProxy("timeline","page_load",Date.now()),utils.logMessage("__ Timing : Page loaded in ->",e),e>1e4&&(e=1e4);var t,n,i,r,a,o,s,d=(100*Math.round(e/100)).toString();config.targeting&&config.targeting.speed&&googletag.cmd.push((function(){googletag.pubads().setTargeting("page_r",d)})),interstitial.init(),config.wrapper.disableInitialProcessAdsOnPage||processAdsOnPage(),onScroll(),loadLiveRampATS(),config.analytics&&config.analytics.quantcast&&(window._qevents=window._qevents||[],function(){var e=document.createElement("script");e.src="https://secure.quantserve.com/quant.js",e.async=!0,e.type="text/javascript";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),window._qevents.push({qacct:config.quantcast})),config.analytics&&config.analytics.clarity&&(t=window,n=document,i="clarity",r="script",a=config.analytics.clarity,t[i]=t[i]||function(){(t[i].q=t[i].q||[]).push(arguments)},(o=n.createElement(r)).async=1,o.src="https://www.clarity.ms/tag/"+a,(s=n.getElementsByTagName(r)[0]).parentNode.insertBefore(o,s)),config.analytics&&config.analytics.google&&(!function(e,t,n,i,r,a,o){e.GoogleAnalyticsObject=r,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,a=t.createElement(n),o=t.getElementsByTagName(n)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",o.parentNode.insertBefore(a,o)}(window,document,"script",0,"ga"),window.ga("create",config.analytics.google,"auto",{name:"newTracker"}),window.ga("newTracker.send","pageview")),"true"==consoleEnabled&&function(){var e=document.createElement("script");e.src="https://unpkg.com/penpal/dist/penpal.min.js",e.type="text/javascript",e.onload=function(){utils.logMessage("__ Console : Loaded Iframe Proxy"),initProxy("https://cdn.adapex.io/console/060.html")};var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),null!==consoleEnabled&&"true"!==consoleEnabled&&function(){var e=document.createElement("script");e.src="https://unpkg.com/penpal/dist/penpal.min.js",e.type="text/javascript",e.onload=function(){utils.logMessage("__ Console : Loaded Iframe Proxy TEST",consoleEnabled),initProxy(consoleEnabled)};var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()})),asc.isLoaded=!0},74:function(e,t){e.exports=function e(t){var n=Array.isArray(t)?[]:{};for(var i in t){var r=t[i];n[i]=r&&"object"==typeof r?e(r):r}return n}},75:function(e,t,n){"use strict";t.a=function(e,t,n,i,r){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:r;return e===r?n:e}},76:function(e,t,n){"use strict";t.a=function(e,t,n){t.split&&(t=t.split("."));for(var i,r=0,a=t.length,o=e;r<a;++r)i=o[t[r]],o=o[t[r]]=r===a-1?n:null!=i?i:!~t[r+1].indexOf(".")&&+t[r+1]>-1?[]:{}}},77:function(e,t){e.exports={userSync:{syncEnabled:!0,syncsPerBidder:5,syncDelay:15e3,syncDelayUserIds:0,filterSettings:{iframe:{bidders:"*",filter:"include"},image:{bidders:"*",filter:"include"}},userIds:[{name:"criteo"},{name:"pubCommonId",storage:{type:"html5",name:"_pubcid",expires:365}}]},useBidCache:!0,targetingControls:{allowTargetingKeys:["BIDDER","AD_ID","PRICE_BUCKET","SIZE","SOURCE","FORMAT","UUID","CACHE_ID","CACHE_HOST","ADOMAIN"]},maxRequestsPerOrigin:6,timeoutBuffer:1e3,disableAjaxTimeout:!0,enableSendAllBids:!1,pubcid:{enable:!0,expInterval:525600},s2sConfig:{accountId:"18c8d433-4b71-4f72-a8d9-b5af3f1e385f",enabled:!0,bidders:["appnexus","sovrn","brealtime","bpa33x","districtm","rhythmone","yieldmo","gamoshi","pubmatic","triplelift","openx","conversant","onefiftytwomedia","adtelligent","33across","oftmedia","eplanning","nobid","consumable","smaato","connectad","gourmetads","amx","onetag","improvedigital","selectmedia","grid","smilewanted"],timeout:1700,adapter:"prebidServer",endpoint:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",syncEndpoint:"https://prebid.adnxs.com/pbs/v1/cookie_sync",syncDelay:15e3},improvedigital:{singleRequest:!0,usePrebidSizes:!0},ttxSettings:{enableSRAMode:!0},yahoossp:{singleRequestMode:!0}}},78:function(e,t){e.exports=[{adunit:"/22181265/Test_abcd",device:["desktop","tablet","mobile"],mediaTypes:{banner:{sizes:[[300,250]]}},additionalNonHBSizes:[],targeting:{pos:"top"},lazyLoaded:"false",richMediaFormat:{},refreshTimed:"0",refreshViewable:"0",refreshStopAdvertisers:[],bids:[{bidder:"testbids",params:{placementId:"12000901"}}]}]},79:function(e,t){e.exports=[{name:"desktop",condition:"{SCREENWIDTH} >= 1024"},{name:"tablet",condition:"{SCREENWIDTH} < 1024 && {SCREENWIDTH} >= 768"},{name:"mobile",condition:"{SCREENWIDTH} < 768"}]},794:function(e,t,n){var i=n(795);e.exports=i},795:function(e,t,n){n(796);var i=n(71);e.exports=i("Array","find")},796:function(e,t,n){"use strict";var i=n(54),r=n(804).find,a=n(70),o="find",s=!0;o in[]&&Array(1).find((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},797:function(e,t,n){var i=n(35),r=n(798),a=n(55),o=n(56),s=n(60),d=n(49),c=n(62),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(d(e,t))return a(!r.f.call(e,t),e[t])}},798:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},799:function(e,t,n){var i=n(24),r=n(36),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},8:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return d})),t.d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,i=e.getHooks({hook:t});0===i.length&&e.before(t,n)},t.c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.postInstallAllowed,r=void 0!==i&&i;s("async",(function(n){n.forEach((function(e){return t.apply(void 0,a(e))})),r&&(c[e]=t)}),e)([])},t.e=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=c[e];if(r)return r.apply(void 0,n);d(e).before((function(e,t){t.push(n),e(t)}))};var i=n(81),r=n.n(i);function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=r()({ready:r.a.SYNC|r.a.ASYNC|r.a.QUEUE}),d=s.get;var c={}},80:function(e,t,n){"use strict";t.a=function(){window.addEventListener("message",_,!1)};var i=n(10),r=n.n(i),a=n(26),o=n(5),s=n.n(o),d=n(0),c=n(16),u=n(11),l=n.n(u),g=n(13),f=n(12),p=n.n(f),b=n(3),m=n(53),h=s.a.EVENTS.BID_WON,v=s.a.EVENTS.STALE_RENDER,y={"Prebid Request":function(e,t,n){if(null==n)return void Object(m.a)({reason:s.a.AD_RENDER_FAILED_REASON.CANNOT_FIND_AD,message:"Cannot find ad '".concat(t.adId,"' for cross-origin render request"),id:t.adId});if(n.status===s.a.BID_STATUS.RENDERED&&(Object(d.logWarn)("Ad id ".concat(n.adId," has been rendered before")),r.a.emit(v,n),Object(d.deepAccess)(b.b.getConfig("auctionOptions"),"suppressStaleRender")))return;try{!function(e,t){var n=e.adId,i=e.ad,r=e.adUrl,a=e.width,o=e.height,s=e.renderer,c=e.cpm;Object(g.c)(s)?Object(g.b)(s,e):n&&(!function(e){var t=e.adId,n=e.adUnitCode,i=e.width,r=e.height;function a(e){var i=o(t,n),r=document.getElementById(i);return r&&r.querySelector(e)}function o(e,t){return Object(d.isGptPubadsDefined)()?s(e):Object(d.isApnGetTagDefined)()?c(t):t}function s(e){var t=l()(window.googletag.pubads().getSlots(),(function(t){return l()(t.getTargetingKeys(),(function(n){return p()(t.getTargeting(n),e)}))}));return t?t.getSlotElementId():null}function c(e){var t=window.apntag.getTag(e);return t&&t.targetId}["div","iframe"].forEach((function(e){var t=a(e+':not([style*="display: none"])');if(t){var o=t.style;o.width=i+"px",o.height=r+"px"}else Object(d.logWarn)("Unable to locate matching page element for adUnitCode ".concat(n,". Can't resize it to ad's dimensions. Please review setup."))}))}(e),t({message:"Prebid Response",ad:Object(d.replaceAuctionPrice)(i,c),adUrl:Object(d.replaceAuctionPrice)(r,c),adId:n,width:a,height:o}))}(n,e)}catch(e){return void Object(m.a)({reason:s.a.AD_RENDER_FAILED_REASON.EXCEPTION,message:e.message,id:t.adId,bid:n})}c.a.addWinningBid(n),r.a.emit(h,n)},"Prebid Native":function(e,t,n){if(null==n)return void Object(d.logError)("Cannot find ad '".concat(t.adId,"' for x-origin event request"));switch(t.action){case"assetRequest":e(Object(a.e)(t,n));break;case"allAssetRequest":e(Object(a.d)(t,n));break;case"resizeNativeHeight":break;default:if("click"===Object(a.c)(t,n))return;c.a.addWinningBid(n)}},"Prebid Event":function(e,t,n){if(null==n)return void Object(d.logError)("Cannot find ad '".concat(t.adId,"' for x-origin event request"));if(n.status!==s.a.BID_STATUS.RENDERED)return void Object(d.logWarn)("Received x-origin event request without corresponding render request for ad '".concat(t.adId,"'"));switch(t.event){case s.a.EVENTS.AD_RENDER_FAILED:Object(m.a)({bid:n,id:t.adId,reason:t.info.reason,message:t.info.message});break;case s.a.EVENTS.AD_RENDER_SUCCEEDED:Object(m.b)({doc:null,bid:n,id:t.adId});break;default:Object(d.logError)("Received x-origin event request for unsupported event: '".concat(t.event,"' (adId: '").concat(t.adId,"')"))}}};function _(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId&&n.message){var i=l()(c.a.getBidsReceived(),(function(e){return e.adId===n.adId}));y.hasOwnProperty(n.message)&&y[n.message](function(e){return null==e.origin&&0===e.ports.length?function(){var e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw Object(d.logError)(e),new Error(e)}:e.ports.length>0?function(t){e.ports[0].postMessage(JSON.stringify(t))}:function(t){e.source.postMessage(JSON.stringify(t),e.origin)}}(e),n,i)}}},800:function(e,t,n){var i=n(31),r=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==c||n!=d&&("function"==typeof t?i(t):!!t)},o=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=a.data={},d=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},801:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},802:function(e,t,n){var i=n(35),r=n(62),a=n(803),o=n(60),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},803:function(e,t,n){var i=n(36);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},804:function(e,t,n){var i=n(64),r=n(57),a=n(61),o=n(66),s=n(805),d=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,l=6==e,g=7==e,f=5==e||l;return function(p,b,m,h){for(var v,y,_=a(p),S=r(_),w=i(b,m,3),O=o(S.length),E=0,T=h||s,A=t?T(p,O):n||g?T(p,0):void 0;O>E;E++)if((f||E in S)&&(y=w(v=S[E],E,_),e))if(t)A[E]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:d.call(A,v)}else switch(e){case 4:return!1;case 7:d.call(A,v)}return l?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},805:function(e,t,n){var i=n(36),r=n(806),a=n(807)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},806:function(e,t,n){var i=n(58);e.exports=Array.isArray||function(e){return"Array"==i(e)}},807:function(e,t,n){var i=n(24),r=n(808),a=n(49),o=n(812),s=n(68),d=n(815),c=r("wks"),u=i.Symbol,l=d?u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(s&&a(u,e)?c[e]=u[e]:c[e]=l("Symbol."+e)),c[e]}},808:function(e,t,n){var i=n(809),r=n(810);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.1",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},809:function(e,t){e.exports=!0},81:function(e,t){s.SYNC=1,s.ASYNC=2,s.QUEUE=4;var n=Object.freeze({useProxy:!0,ready:0}),i=new WeakMap,r="2,1,0"===[1].reduce((function(e,t,n){return[e,t,n]}),2).toString()?Array.prototype.reduce:function(e,t){var n,i=Object(this),r=i.length>>>0,a=0;if(t)n=t;else{for(;a<r&&!(a in i);)a++;n=i[a++]}for(;a<r;)a in i&&(n=e(n,i[a],a,i)),a++;return n};function a(e,t){return Array.prototype.slice.call(e,t)}var o=Object.assign||function(e){return r.call(a(arguments,1),(function(e,t){return t&&Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),e)};function s(e){var t,d={},c=[];function u(e,t){return"function"==typeof e?p.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?p.apply(null,arguments):"object"==typeof e?l.apply(null,arguments):void 0}function l(e,t,n){var i=!0;void 0===t&&(t=Object.getOwnPropertyNames(e),i=!1);var r={},a=["constructor"];do{(t=t.filter((function(t){return!("function"!=typeof e[t]||-1!==a.indexOf(t)||t.match(/^_/))}))).forEach((function(t){var i=t.split(":"),a=i[0],o=i[1]||"sync";if(!r[a]){var s=e[a];r[a]=e[a]=p(o,s,n?[n,a]:void 0)}})),e=Object.getPrototypeOf(e)}while(i&&e);return r}function g(e){var n=Array.isArray(e)?e:e.split(".");return r.call(n,(function(i,r,a){var o=i[r],s=!1;return o||(a===n.length-1?(t||c.push((function(){s||console.warn("fun-hooks: referenced '"+e+"' but it was never created")})),i[r]=f((function(e){i[r]=e,s=!0}))):i[r]={})}),d)}function f(e){var t=[],n=[],r=function(){},a={before:function(e,n){return d.call(this,t,"before",e,n)},after:function(e,t){return d.call(this,n,"after",e,t)},getHooks:function(e){var i=t.concat(n);"object"==typeof e&&(i=i.filter((function(t){return Object.keys(e).every((function(n){return t[n]===e[n]}))})));try{o(i,{remove:function(){return i.forEach((function(e){e.remove()})),this}})}catch(e){console.error("error adding `remove` to array, did you modify Array.prototype?")}return i},removeAll:function(){return this.getHooks().remove()}},s={install:function(i,a,o){this.type=i,r=o,o(t,n),e&&e(a)}};return i.set(a.after,s),a;function d(e,i,a,o){var s={hook:a,type:i,priority:o||10,remove:function(){var i=e.indexOf(s);-1!==i&&(e.splice(i,1),r(t,n))}};return e.push(s),e.sort((function(e,t){return t.priority-e.priority})),r(t,n),this}}function p(n,r,d){var u=r.after&&i.get(r.after);if(u){if(u.type!==n)throw"fun-hooks: recreated hookable with different type";return r}var l,p,b=d?g(d):f(),m={get:function(e,t){return b[t]||Reflect.get.apply(Reflect,arguments)}};return t||c.push(h),e.useProxy&&"function"==typeof Proxy&&Proxy.revocable?p=new Proxy(r,m):o(p=function(){return m.apply?m.apply(r,this,a(arguments)):r.apply(this,arguments)},b),i.get(p.after).install(n,p,(function(e,t){var i,r=[];e.length||t.length?(e.forEach(o),i=r.push(void 0)-1,t.forEach(o),l=function(e,t,o){var s,d=0,c="async"===n&&"function"==typeof o[o.length-1]&&o.pop();function u(e){"sync"===n?s=e:c&&c.apply(null,arguments)}function l(e){if(r[d]){var i=a(arguments);return l.bail=u,i.unshift(l),r[d++].apply(t,i)}"sync"===n?s=e:c&&c.apply(null,arguments)}return r[i]=function(){var i=a(arguments,1);"async"===n&&c&&(delete l.bail,i.push(l));var r=e.apply(t,i);"sync"===n&&l(r)},l.apply(null,o),s}):l=void 0;function o(e){r.push(e.hook)}h()})),p;function h(){!t&&("sync"!==n||e.ready&s.SYNC)&&("async"!==n||e.ready&s.ASYNC)?"sync"!==n&&e.ready&s.QUEUE?m.apply=function(){var e=arguments;c.push((function(){p.apply(e[1],e[2])}))}:m.apply=function(){throw"fun-hooks: hooked function not ready"}:m.apply=l}}return(e=o({},n,e)).ready?u.ready=function(){t=!0,function(e){for(var t;t=e.shift();)t()}(c)}:t=!0,u.get=g,u}e.exports=s},810:function(e,t,n){var i=n(24),r=n(811),a="__core-js_shared__",o=i[a]||r(a,{});e.exports=o},811:function(e,t,n){var i=n(24),r=n(65);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},812:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},813:function(e,t,n){var i,r,a=n(24),o=n(814),s=a.process,d=s&&s.versions,c=d&&d.v8;c?r=(i=c.split("."))[0]<4?1:i[0]+i[1]:o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},814:function(e,t,n){var i=n(69);e.exports=i("navigator","userAgent")||""},815:function(e,t,n){var i=n(68);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},816:function(e,t,n){var i=n(817);e.exports=i},817:function(e,t,n){n(818);var i=n(71);e.exports=i("Array","includes")},818:function(e,t,n){"use strict";var i=n(54),r=n(819).includes,a=n(70);i({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},819:function(e,t,n){var i=n(56),r=n(66),a=n(820),o=function(e){return function(t,n,o){var s,d=i(t),c=r(d.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=d[u++])!=s)return!0}else for(;c>u;u++)if((e||u in d)&&d[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},82:function(e,t){e.exports=["sovrn","appnexus","brealtime","bpa33x","districtm","districtmDMX","gourmetads","rhythmone","yieldmo","teads","indexExchange","ix","pubmatic","openx","nobid","connectad","trion","onetag","smaato","eplanning","amx","conversant","grid","consumable","criteo","improvedigital","sonobi","rtbhouse","colossusssp","outbrain","yahoossp","e_volution","luponmedia","testbids"]},820:function(e,t,n){var i=n(67),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},83:function(e,t,n){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}t.a=function(e){i(this,{getAuction:function(t){var n=t.auctionId;if(null!=n)return e().find((function(e){return e.getAuctionId()===n}))},getAdUnit:function(t){var n=t.transactionId;if(null!=n)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.transactionId===n}))},getMediaTypes:function(e){var t=e.transactionId,n=e.requestId;if(null!=n){var i=this.getBidRequest({requestId:n});if(null!=i&&(null==t||i.transactionId===t))return i.mediaTypes}else if(null!=t){var r=this.getAdUnit({transactionId:t});if(null!=r)return r.mediaTypes}},getBidderRequest:function(t){var n=t.requestId,i=t.bidderRequestId;if(null!=n||null!=i){var r=e().flatMap((function(e){return e.getBidRequests()}));return null!=i&&(r=r.filter((function(e){return e.bidderRequestId===i}))),null==n?r[0]:r.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===n}))}))}},getBidRequest:function(t){var n=t.requestId;if(null!=n)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===n}))}})}},84:function(e,t,n){"use strict";t.a=function(e){var t;try{e=e||window.sessionStorage,t=JSON.parse(e.getItem(d))}catch(e){}t&&f(t,!0)};var i,r,a=n(3),o=n(0),s=n(21),d="asc:debugging";function c(e){Object(o.logMessage)("DEBUG: "+e)}function u(e){Object(o.logWarn)("DEBUG: "+e)}function l(e){i=h.bind(e),s.c.before(i,5),r=v.bind(e),s.e.before(r,5)}function g(){s.c.getHooks({hook:i}).remove(),s.e.getHooks({hook:r}).remove()}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.b.setConfig({debug:!0}),g(),l(e),c("bidder overrides enabled".concat(t?" from session":""))}function p(e,t,n){return!(!e.bidder||e.bidder===t)||!(!e.adUnitCode||e.adUnitCode===n)}function b(e,t){return Array.isArray(e)&&-1===e.indexOf(t)}function m(e,t,n){return Object.keys(e).filter((function(e){return-1===["adUnitCode","bidder"].indexOf(e)})).reduce((function(t,i){return c("bidder overrides changed '".concat(t.adUnitCode,"/").concat(t.bidderCode,"' ").concat(n,".").concat(i," from '").concat(t[i],".js' to '").concat(e[i],"'")),t[i]=e[i],t}),t)}function h(e,t,n){var i=this;b(i.bidders,n.bidderCode)?u("bidder '".concat(n.bidderCode,"' excluded from auction by bidder overrides")):(Array.isArray(i.bids)&&i.bids.forEach((function(e){p(e,n.bidderCode,t)||m(e,n,"bidder")})),e(t,n))}function v(e,t){var n=this,i=t.filter((function(e){return!b(n.bidders,e.bidderCode)||(u("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)}));Array.isArray(n.bidRequests)&&i.forEach((function(e){n.bidRequests.forEach((function(t){e.bids.forEach((function(n){p(t,e.bidderCode,n.adUnitCode)||m(t,n,"bidRequest")}))}))})),e(i)}function y(e){if(e.enabled){try{window.sessionStorage.setItem(d,JSON.stringify(e))}catch(e){}f(e)}else{g(),c("bidder overrides disabled");try{window.sessionStorage.removeItem(d)}catch(e){}}}a.b.getConfig("debugging",(function(e){return y(e.debugging)}))},9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"gdprDataHandler",(function(){return k})),n.d(t,"uspDataHandler",(function(){return P})),n.d(t,"coppaDataHandler",(function(){return U})),n.d(t,"clientTestAdapters",(function(){return N})),n.d(t,"allS2SBidders",(function(){return L})),t.getAllS2SBidders=q,t.setS2STestingModule=function(e){E=e};var i=n(0),r=n(51),a=n(26),o=n(1),s=n(4),d=n(3),c=n(8),u=n(12),l=n.n(u),g=n(11),f=n.n(g),p=n(40),b=n(18);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}(e,t)||S(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.")}()}function _(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(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 S(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var E,T=n(5),A=n(10),I=n(82),C=n(38),j={},x=j.bidderRegistry={},B=j.aliasRegistry={},M=[];d.b.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(M=Object(i.isArray)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var R={};var D=Object(c.b)("sync",(function(e){var t=e.bidderCode,n=e.auctionId,a=e.bidderRequestId,o=e.adUnits,s=e.labels,d=e.src;return o.reduce((function(e,o){var c=Object(r.b)(Object(r.a)(o,s),o.mediaTypes,o.sizes),u=c.active,l=c.mediaTypes,g=c.filterResults;return u?g&&Object(i.logInfo)('Size mapping filtered adUnit "'.concat(o.code,'" banner sizes from '),g.before,"to ",g.after):Object(i.logInfo)('Size mapping disabled adUnit "'.concat(o.code,'"')),u&&e.push(o.bids.filter((function(e){return e.bidder===t})).reduce((function(e,t){t=O({},t,Object(i.getDefinedParams)(o,["nativeParams","ortb2Imp","mediaType","renderer","storedAuctionResponse"]));var c=Object(r.b)(Object(r.a)(t,s),l),u=c.active,g=c.mediaTypes,f=c.filterResults;return u?f&&Object(i.logInfo)('Size mapping filtered adUnit "'.concat(o.code,'" bidder "').concat(t.bidder,'" banner sizes from '),f.before,"to ",f.after):Object(i.logInfo)('Size mapping deactivated adUnit "'.concat(o.code,'" bidder "').concat(t.bidder,'"')),Object(i.isValidMediaTypes)(g)?t=O({},t,{mediaTypes:g}):Object(i.logError)("mediaTypes is not correctly configured for adunit ".concat(o.code)),u&&e.push(O({},t,{adUnitCode:o.code,transactionId:o.transactionId,sizes:Object(i.deepAccess)(g,"banner.sizes")||Object(i.deepAccess)(g,"video.playerSize")||[],bidId:t.bid_id||Object(i.getUniqueIdentifierStr)(),bidderRequestId:a,auctionId:n,src:d,bidRequestsCount:p.a.getRequestsCounter(o.code),bidderRequestsCount:p.a.getBidderRequestsCounter(o.code,t.bidder),bidderWinsCount:p.a.getBidderWinsCounter(o.code,t.bidder)})),e}),[])),e}),[]).reduce(i.flatten,[]).filter((function(e){return""!==e}))}),"getBids");var k={consentData:null,setConsentData:function(e){k.consentData=e},getConsentData:function(){return k.consentData}},P={consentData:null,setConsentData:function(e){P.consentData=e},getConsentData:function(){return P.consentData}},U={getCoppa:function(){return!!d.b.getConfig("coppa")}},N=[],L=[];function q(){j.s2STestingEnabled=!1,M.forEach((function(e){e&&e.enabled&&e.bidders&&e.bidders.length&&L.push.apply(L,_(e.bidders))}))}function F(e){return e&&e.enabled&&e.testing&&E}function z(e,t,n){try{var r=x[e].getSpec();r&&r[t]&&"function"==typeof r[t]&&(Object(i.logInfo)("Invoking ".concat(e,".").concat(t)),d.b.runWithBidder(e,i.bind.call(r[t],r,n)))}catch(n){Object(i.logWarn)("Error calling ".concat(t," of ").concat(e))}}j.makeBidRequests=Object(c.b)("sync",(function(e,t,n,r,o){A.emit(T.EVENTS.BEFORE_REQUEST_BIDS,e),Object(a.b)(e);var s=Object(i.getBidderCodes)(e);if(d.b.getConfig("bidderSequence")===d.a){var c=[],u=[];s.forEach((function(e){l()(I,e)?c.push(e):u.push(e)})),c=Object(i.shuffle)(c),u=Object(i.shuffle)(u),s=c.concat(u)}var g=Object(b.a)(),p=s;p=s.filter((function(e){return!C.wrapper.disableClientSideAdapters||!l()(C.wrapper.disableClientSideAdapters,e)}));var m=[];0===L.length&&q(),M.forEach((function(t){t&&t.enabled&&(F(t)&&(E.calculateBidSources(t),E.getSourceBidderMap(e,L)[E.CLIENT].forEach((function(e){l()(N,e)||N.push(e)}))))})),p=s.filter((function(e){return!C.wrapper.disableClientSideAdapters||!l()(C.wrapper.disableClientSideAdapters,e)}));var h=L;M.forEach((function(r){if(r&&r.enabled){(function(e){return Boolean(F(e)&&e.testServerOnly)})(r)&&function(e,t){return Boolean(f()(e,(function(e){return f()(e.bids,(function(e){return(e.bidSource||t.bidderControl&&t.bidderControl[e.bidder])&&e.finalSource===E.SERVER}))})))}(e,r)&&(Object(i.logWarn)("testServerOnly: True. All client requests will be suppressed."),p.length=0);var a=function(e,t){var n=t.bidders,r=Object(i.deepClone)(e);return r.forEach((function(e){e.bids=e.bids.filter((function(e){return l()(n,e.bidder)&&(!F(t)||e.finalSource!==E.CLIENT)})).map((function(e){return e.bid_id=Object(i.getUniqueIdentifierStr)(),e}))})),r.filter((function(e){return 0!==e.bids.length}))}(e,r),s=Object(i.generateUUID)();h.forEach((function(e){var d=Object(i.getUniqueIdentifierStr)(),c={bidderCode:e,auctionId:n,bidderRequestId:d,uniquePbsTid:s,bids:D({bidderCode:e,auctionId:n,bidderRequestId:d,adUnits:Object(i.deepClone)(a),labels:o,src:T.S2S.SRC}),auctionStart:t,timeout:r.timeout,src:T.S2S.SRC,refererInfo:g};0!==c.bids.length&&m.push(c)})),a.forEach((function(e){var t=e.bids.filter((function(e){return f()(m,(function(t){return f()(t.bids,(function(t){return t.bidId===e.bid_id}))}))}));e.bids=t})),m.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=a.filter((function(e){return e.bids.length>0})))}))}}));var v=function(e){var t=Object(i.deepClone)(e);return t.forEach((function(e){e.bids=e.bids.filter((function(e){return!N.length||e.finalSource!==E.SERVER}))})),t.filter((function(e){return 0!==e.bids.length}))}(e);return p.forEach((function(e){var a=Object(i.getUniqueIdentifierStr)(),s={bidderCode:e,auctionId:n,bidderRequestId:a,bids:D({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:Object(i.deepClone)(v),labels:o,src:"client"}),auctionStart:t,timeout:r,refererInfo:g},d=x[e];d||Object(i.logError)("Trying to make a request for bidder that does not exist: ".concat(e)),d&&s.bids&&0!==s.bids.length&&m.push(s)})),k.getConsentData()&&m.forEach((function(e){e.gdprConsent=k.getConsentData()})),P.getConsentData()&&m.forEach((function(e){e.uspConsent=P.getConsentData()})),m}),"makeBidRequests"),j.callBids=function(e,t,n,r,a,o,c){if(t.length){var u=y(t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===T.S2S.SRC)].push(t),e}),[[],[]]),2),g=u[0],f=u[1],p=[];f.forEach((function(e){for(var t=-1,n=0;n<p.length;++n)if(e.uniquePbsTid===p[n].uniquePbsTid){t=n;break}t<=-1&&p.push(e)}));var b=0,m=Object(i.generateUUID)();M.forEach((function(e){if(e&&p[b]&&l()(e.bidders,p[b].bidderCode)){var t=Object(s.b)(o,a?{request:a.request.bind(null,"s2s"),done:a.done}:void 0),d=e.bidders,c=x[e.adapter],u=p[b].uniquePbsTid,g=p[b].adUnitsS2SCopy,v=f.filter((function(e){return e.uniquePbsTid===u}));if(c){var y={tid:m,ad_units:g,s2sConfig:e};if(y.ad_units.length){var _=v.map((function(e){return e.start=Object(i.timestamp)(),r.bind(e)})),S=y.ad_units.reduce((function(e,t){return e.concat((t.bids||[]).reduce((function(e,t){return e.concat(t.bidder)}),[]))}),[]);Object(i.logMessage)("CALLING S2S HEADER BIDDERS ==== ".concat(d.filter((function(e){return l()(S,e)})).join(","))),v.forEach((function(e){A.emit(T.EVENTS.BID_REQUESTED,h(h({},e),{},{tid:m}))})),c.callBids(y,f,n,(function(){return _.forEach((function(e){return e()}))}),t)}}else Object(i.logError)("missing "+e.adapter);b++}})),g.forEach((function(e){e.start=Object(i.timestamp)();var t=x[e.bidderCode];d.b.runWithBidder(e.bidderCode,(function(){Object(i.logMessage)("CALLING BIDDER"),A.emit(T.EVENTS.BID_REQUESTED,e)}));var u=Object(s.b)(o,a?{request:a.request.bind(null,e.bidderCode),done:a.done}:void 0),l=r.bind(e);try{d.b.runWithBidder(e.bidderCode,i.bind.call(t.callBids,t,e,n,l,u,c,d.b.callbackWithBidder(e.bidderCode)))}catch(t){Object(i.logError)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:t,bidRequest:e}),l()}}))}else Object(i.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},j.videoAdapters=[],j.registerBidAdapter=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.supportedMediaTypes,o=void 0===r?[]:r;e&&t?"function"==typeof e.callBids?(x[t]=e,l()(o,"video")&&j.videoAdapters.push(t),l()(o,"native")&&a.g.push(t)):Object(i.logError)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):Object(i.logError)("bidAdapter or bidderCode not specified")},j.aliasBidAdapter=function(e,t,n){if(void 0===x[t]){var r=x[e];if(void 0===r){var s=[];M.forEach((function(n){if(n.bidders&&n.bidders.length){var i=n&&n.bidders;n&&l()(i,t)?B[t]=e:s.push(e)}})),s.forEach((function(e){Object(i.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var d,c=function(e){var t=[];return l()(j.videoAdapters,e)&&t.push("video"),l()(a.g,e)&&t.push("native"),t}(e);if(r.constructor.prototype!=Object.prototype)(d=new r.constructor).setBidderCode(t);else{var u=r.getSpec(),g=n&&n.gvlid,f=n&&n.skipPbsAliasing;d=Object(o.newBidder)(O({},u,{code:t,gvlid:g,skipPbsAliasing:f})),B[t]=e}j.registerBidAdapter(d,t,{supportedMediaTypes:c})}catch(t){Object(i.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else Object(i.logMessage)('alias name "'+t+'" has been already specified.')},j.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code,r=e.gvlid;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,R[n]={adapter:t,gvlid:r}):Object(i.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"\n analytics adapter must implement an enableAnalytics() function')):Object(i.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},j.enableAnalytics=function(e){Object(i.isArray)(e)||(e=[e]),Object(i._each)(e,(function(e){var t=R[e.provider].adapter;t?t.enableAnalytics(e):Object(i.logError)("Prebid Error: no analytics adapter found in registry for\n ".concat(e.provider,"."))}))},j.getBidAdapter=function(e){return x[e]},j.getAnalyticsAdapter=function(e){return R[e]},j.callTimedOutBidders=function(e,t,n){t=t.map((function(t){return t.params=Object(i.getUserConfiguredParams)(e,t.adUnitCode,t.bidder),t.timeout=n,t})),t=Object(i.groupBy)(t,"bidder"),Object.keys(t).forEach((function(e){z(e,"onTimeout",t[e])}))},j.callBidWonBidder=function(e,t,n){t.params=Object(i.getUserConfiguredParams)(n,t.adUnitCode,t.bidder),p.a.incrementBidderWinsCounter(t.adUnitCode,t.bidder),z(e,"onBidWon",t)},j.callSetTargetingBidder=function(e,t){z(e,"onSetTargeting",t)},j.callBidViewableBidder=function(e,t){z(e,"onBidViewable",t)},j.callBidderError=function(e,t,n){z(e,"onBidderError",{error:t,bidderRequest:n})},t.default=j}});
ascChunk([322],{294:function(n,t,e){n.exports=e(295)},295:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"allowAuction",(function(){return b})),e.d(t,"userCMP",(function(){return l})),e.d(t,"consentTimeout",(function(){return u})),e.d(t,"gdprScope",(function(){return f})),e.d(t,"staticConsentData",(function(){return g})),t.requestBidsHook=w,t.resetConsentData=function(){p=void 0,l=void 0,m=0,i.gdprDataHandler.setConsentData(null)},t.setConsentConfig=k;var o=e(0),a=e(3),i=e(9),c=e(12),r=e.n(c);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})(n)}function d(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var l,u,f,g,p,b={value:true,definedInConfig:!1},m=0,C=!1,v={iab:function(n,t,e){function a(a,i){Object(o.logInfo)("Received a response from CMP",a),i?!1!==a.gdprApplies&&"tcloaded"!==a.eventStatus&&"useractioncomplete"!==a.eventStatus||n(a,e):t("CMP unable to register callback function. Please check CMP setup.",e)}var i=function(){var t={};function a(){t.getConsentData&&t.getVendorConsents&&(Object(o.logInfo)("Received all requested responses from CMP",t),n(t,e))}return{consentDataCallback:function(n){t.getConsentData=n,a()},vendorConsentsCallback:function(n){t.getVendorConsents=n,a()}}}(),c={},s=function(){for(var n,t,e=window;!n;){try{if("function"==typeof e.__tcfapi||"function"==typeof e.__cmp){"function"==typeof e.__tcfapi?(m=2,t=e.__tcfapi):(m=1,t=e.__cmp),n=e;break}}catch(n){}try{if(e.frames.__tcfapiLocator){m=2,n=e;break}}catch(n){}try{if(e.frames.__cmpLocator){m=1,n=e;break}}catch(n){}if(e===window.top)break;e=e.parent}return{cmpFrame:n,cmpFunction:t}}(),l=s.cmpFrame,u=s.cmpFunction;if(!l)return t("CMP not found.",e);Object(o.isFn)(u)?(Object(o.logInfo)("Detected CMP API is directly accessible, calling it now..."),1===m?(u("getConsentData",null,i.consentDataCallback),u("getVendorConsents",null,i.vendorConsentsCallback)):2===m&&u("addEventListener",m,a)):1===m&&window.$sf&&window.$sf.ext&&"function"==typeof window.$sf.ext.cmp?(Object(o.logInfo)("Detected Prebid.js is encased in a SafeFrame and CMP is registered, calling it now..."),f("getConsentData",i.consentDataCallback),f("getVendorConsents",i.vendorConsentsCallback)):(Object(o.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),1===m?(g("getConsentData",l,i.consentDataCallback),g("getVendorConsents",l,i.vendorConsentsCallback)):2===m&&g("addEventListener",l,a));function f(n,t){var a=e.adUnits,i=1,c=1;if(Array.isArray(a)&&a.length>0){var r=Object(o.getAdUnitSizes)(a[0]);i=r[0][0],c=r[0][1]}window.$sf.ext.register(i,c,(function(e,o){if("cmpReturn"===e){var a="getConsentData"===n?o.vendorConsentData:o.vendorConsents;t(a)}})),window.$sf.ext.cmp(n)}function g(n,t,e){var o=2===m?"__tcfapi":"__cmp",a="".concat(o,"Call");function i(n){var t="".concat(o,"Return"),e="string"==typeof n.data&&r()(n.data,t)?JSON.parse(n.data):n.data;if(e[t]&&e[t].callId){var a=e[t];void 0!==c[a.callId]&&c[a.callId](a.returnValue,a.success)}}2===m?(window[o]=function(n,e,o,i){var r=Math.random()+"",s=d({},a,{command:n,version:e,parameter:i,callId:r});c[r]=o,t.postMessage(s,"*")},window.addEventListener("message",i,!1),window[o](n,m,e)):(window[o]=function(n,e,o){var i=Math.random()+"",r=d({},a,{command:n,parameter:e,callId:i});c[i]=o,t.postMessage(r,"*")},window.addEventListener("message",i,!1),window[o](n,void 0,e))}},static:function(n,t,e){n(g,e)}};function w(n,t){var e={context:this,args:[t],nextFn:n,adUnits:t.adUnits||asc.adUnits,bidsBackHandler:t.bidsBackHandler,haveExited:!1,timer:null};return p?(Object(o.logInfo)("User consent information already known. Pulling internally stored information..."),M(null,e)):r()(Object.keys(v),l)?(v[l].call(this,y,D,e),void(e.haveExited||(0===u?y(void 0,e):e.timer=setTimeout(j.bind(null,e),u)))):(Object(o.logWarn)("CMP framework (".concat(l,") is not a supported framework. Aborting consentManagement module and resuming auction.")),e.nextFn.apply(e.context,e.args))}function y(n,t){"static"===l&&2===(m=n.getConsentData?1:n.getTCData?2:0)&&(n=n.getTCData);var e=1===m?function(n){var t=n&&n.getConsentData&&n.getConsentData.gdprApplies;return!("boolean"==typeof t&&(!0!==t||Object(o.isStr)(n.getConsentData.consentData)&&Object(o.isPlainObject)(n.getVendorConsents)&&Object.keys(n.getVendorConsents).length>1))}:2===m?function(){var t=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:f,e=n&&n.tcString;return!("boolean"==typeof t&&(!0!==t||Object(o.isStr)(e)))}:null;b.definedInConfig&&2===m?Object(o.logWarn)("'allowAuctionWithoutConsent' ignored for TCF 2"):b.definedInConfig||1!==m||Object(o.logInfo)("'allowAuctionWithoutConsent' using system default: (".concat(true,").")),Object(o.isFn)(e)?e(n)?D("CMP returned unexpected value during lookup process.",t,n):(clearTimeout(t.timer),O(n),M(null,t)):D("Unable to derive CMP version to process data. Consent object does not conform to TCF v1 or v2 specs.",t,n)}function j(n){2===m?(Object(o.logWarn)("No response from CMP, continuing auction..."),O(void 0),M(null,n)):D("CMP workflow exceeded timeout threshold.",n)}function D(n,t,e){clearTimeout(t.timer),b.value&&1===m&&O(void 0),M(n,t,e)}function O(n){1===m?p={consentString:n?n.getConsentData.consentData:void 0,vendorData:n?n.getVendorConsents:void 0,gdprApplies:n?n.getConsentData.gdprApplies:f}:(p={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:f},n&&n.addtlConsent&&Object(o.isStr)(n.addtlConsent)&&(p.addtlConsent=n.addtlConsent)),p.apiVersion=m,i.gdprDataHandler.setConsentData(p)}function M(n,t,e){if(!1===t.haveExited){t.haveExited=!0;var a=t.context,i=t.args,c=t.nextFn;n?b.value&&1===m?(Object(o.logWarn)(n+" 'allowAuctionWithoutConsent' activated.",e),c.apply(a,i)):(Object(o.logError)(n+" Canceling auction as per consentManagement config.",e),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():Object(o.logError)("Error executing bidsBackHandler")):c.apply(a,i)}}function k(n){(n=n&&(n.gdpr||n.usp?n.gdpr:n))&&"object"===s(n)?(Object(o.isStr)(n.cmpApi)?l=n.cmpApi:(l="iab",Object(o.logInfo)("consentManagement config did not specify cmp. Using system default setting (".concat("iab",")."))),Object(o.isNumber)(n.timeout)?u=n.timeout:(u=1e4,Object(o.logInfo)("consentManagement config did not specify timeout. Using system default setting (".concat(1e4,")."))),"boolean"==typeof n.allowAuctionWithoutConsent&&(b.value=n.allowAuctionWithoutConsent,b.definedInConfig=!0),f=!0===n.defaultGdprScope,Object(o.logInfo)("consentManagement module has been activated..."),"static"===l&&(Object(o.isPlainObject)(n.consentData)?(g=n.consentData,u=0):Object(o.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),C||asc.requestBids.before(w,50),C=!0):Object(o.logWarn)("consentManagement config not defined, exiting consent manager")}a.b.getConfig("consentManagement",(function(n){return k(n.consentManagement)})),window.asc.installedModules.push("consentManagement")}},[294]);
ascChunk([321],{296:function(t,n,e){t.exports=e(297)},297:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.d(n,"consentAPI",(function(){return s})),e.d(n,"consentTimeout",(function(){return r})),e.d(n,"staticConsentData",(function(){return u})),n.requestBidsHook=f,n.resetConsentData=function(){l=void 0,s=void 0,i.uspDataHandler.setConsentData(null)},n.setConsentConfig=P;var a=e(0),o=e(3),i=e(9);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s,r,u,l,d=!1,p={iab:function(t,n,e){var o=(u={},{consentDataCallback:function(a,o){o&&a.uspString&&(u.usPrivacy=a.uspString),u.usPrivacy?t(u,e):n("Unable to get USP consent string.",e)}}),i={},c=function(){for(var t,n,e=window;!t;){try{if("function"==typeof e.__uspapi){n=e.__uspapi,t=e;break}}catch(t){}try{if(e.frames.__uspapiLocator){t=e;break}}catch(t){}if(e===window.top)break;e=e.parent}return{uspapiFrame:t,uspapiFunction:n}}(),s=c.uspapiFrame,r=c.uspapiFunction;var u;if(!s)return n("USP CMP not found.",e);Object(a.isFn)(r)?(Object(a.logInfo)("Detected USP CMP is directly accessible, calling it now..."),r("getUSPData",1,o.consentDataCallback)):(Object(a.logInfo)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(t,n,e){function a(t){var n=t&&t.data&&t.data.__uspapiReturn;n&&n.callId&&void 0!==i[n.callId]&&(i[n.callId](n.returnValue,n.success),delete i[n.callId])}window.__uspapi=function(t,e,a){var o=Math.random()+"",c={__uspapiCall:{command:t,version:e,callId:o}};i[o]=a,n.postMessage(c,"*")},window.addEventListener("message",a,!1),window.__uspapi(t,1,e)}("getUSPData",s,o.consentDataCallback))},static:function(t,n,e){t(u,e)}};function f(t,n){var e={context:this,args:[n],nextFn:t,adUnits:n.adUnits||asc.adUnits,bidsBackHandler:n.bidsBackHandler,haveExited:!1,timer:null};if(!p[s])return Object(a.logWarn)("USP framework (".concat(s,") is not a supported framework. Aborting consentManagement module and resuming auction.")),e.nextFn.apply(e.context,e.args);p[s].call(this,g,b,e),e.haveExited||(0===r?g(void 0,e):e.timer=setTimeout(m.bind(null,e),r))}function g(t,n){!t||!t.usPrivacy?b("USPAPI returned unexpected value during lookup process.",n,t):(clearTimeout(n.timer),function(t){t&&t.usPrivacy&&(l=t.usPrivacy,i.uspDataHandler.setConsentData(l))}(t),y(null,n))}function m(t){b("USPAPI workflow exceeded timeout threshold.",t)}function b(t,n,e){clearTimeout(n.timer),y(t,n,e)}function y(t,n,e){if(!1===n.haveExited){n.haveExited=!0;var o=n.context,i=n.args,c=n.nextFn;t&&Object(a.logWarn)(t+" Resuming auction without consent data as per consentManagement config.",e),c.apply(o,i)}}function P(t){(t=t&&t.usp)&&"object"===c(t)?(Object(a.isStr)(t.cmpApi)?s=t.cmpApi:(s="iab",Object(a.logInfo)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat("iab",")."))),Object(a.isNumber)(t.timeout)?r=t.timeout:(r=50,Object(a.logInfo)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),Object(a.logInfo)("USPAPI consentManagement module has been activated..."),"static"===s&&(Object(a.isPlainObject)(t.consentData)&&Object(a.isPlainObject)(t.consentData.getUSPData)?(t.consentData.getUSPData.uspString&&(u={usPrivacy:t.consentData.getUSPData.uspString}),r=0):Object(a.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),d||asc.requestBids.before(f,50),d=!0):Object(a.logWarn)("consentManagement.usp config not defined, exiting usp consent manager")}o.b.getConfig("consentManagement",(function(t){return P(t.consentManagement)})),window.asc.installedModules.push("consentManagementUsp")}},[296]);
ascChunk([315],{310:function(e,t,o){e.exports=o(311)},311:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o.d(t,"storage",(function(){return l})),o.d(t,"criteoIdSubmodule",(function(){return h}));var n=o(0),c=o(4),r=o(18),i=o(8),a=o(7),d="criteo",l=Object(a.b)(91,d),u="cto_bidid",s="cto_bundle",b=new Date(0).toString(),p=new Date(Object(n.timestamp)()+33696e6).toString();function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Object(n.parseUrl)(e,{noDecodeWholeURL:!0});return t?"".concat(o.hostname):"".concat(o.protocol,"://").concat(o.hostname).concat(o.port?":"+o.port:"","/")}function g(e){return l.getCookie(e)||l.getDataFromLocalStorage(e)}function m(e,t,o){e&&t&&(l.setDataInLocalStorage(e,t),I(e,t,p,o,!0))}function I(e,t,o,n,c){for(var r=n.split("."),i=0;i<r.length;++i){var a=r.slice(r.length-i-1,r.length).join(".");try{if(l.setCookie(e,t,o,null,"."+a),c){var d=l.getCookie(e);if(d&&d===t)break}}catch(e){}}}function v(e,t,o){var i=l.cookiesAreEnabled(),a=l.localStorageIsEnabled(),d=f(Object(r.a)().referer),p=f(document.location.href,!0),g="undefined"!=typeof criteo_pubtag,v=function(e,t,o,n,c,r,i){return"https://gum.criteo.com/sid/json?origin=prebid"+"".concat(e?"&topUrl="+encodeURIComponent(e):"")+"".concat(t?"&domain="+encodeURIComponent(t):"")+"".concat(o?"&bundle="+encodeURIComponent(o):"")+"".concat(i?"&gdprString="+encodeURIComponent(i):"")+"".concat(n?"&cw=1":"")+"".concat(r?"&pbt=1":"")+"".concat(c?"&lsw=1":"")}(d,p,e.bundle,i,a,g,t),h={success:function(e){var t,c=JSON.parse(e);c.acwsUrl?("string"==typeof c.acwsUrl?[c.acwsUrl]:c.acwsUrl).forEach((function(e){return Object(n.triggerPixel)(e)})):c.bundle&&m(s,c.bundle,p);if(c.bidId){m(u,c.bidId,p);var r={criteoId:c.bidId};o(r)}else I(t=u,"",b,p,!0),l.removeDataFromLocalStorage(t),o()},error:function(e){Object(n.logError)("criteoIdSystem: unable to sync user id",e),o()}};Object(c.a)(v,h,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}var h={name:d,gvlid:91,decode:function(e){return e},getId:function(e,t){var o=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?t.consentString:void 0,n={bundle:g(s),bidId:g(u)};return{id:n.bidId?{criteoId:n.bidId}:void 0,callback:function(e){return v(n,o,e)}}}};Object(i.e)("userId",h),window.asc.installedModules.push("criteoIdSystem")}},[310]);
ascChunk([295],{350:function(e,t,n){e.exports=n(351)},351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"coreStorage",(function(){return u})),t.findRootDomain=m,t.initSubmodule=w,n.d(t,"enrichmentsSubmodule",(function(){return s}));var i=n(0),o=n(8),c=n(18),r=n(7),d={},a=window===window.top?window:window.top,u=Object(r.a)("enrichmentFpd");function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!u.cookiesAreEnabled())return e;var t,n,o=e.split(".");if(2==o.length)return e;var c=-2,r="_rdc".concat(Date.now()),d="writeable";do{t=o.slice(c).join(".");var a=new Date(Object(i.timestamp)()+1e4).toUTCString();u.setCookie(r,d,a,"Lax",t,void 0);var m=u.getCookie(r,void 0);m===d?(n=!1,u.setCookie(r,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,t,void 0)):(c+=-1,n=Math.abs(c)<=o.length)}while(n);return t}function l(){var e;return Object(c.a)().referer&&Object(i.mergeDeep)(d,{site:{ref:Object(c.a)().referer}}),Object(c.a)().canonicalUrl&&Object(i.mergeDeep)(d,{site:{page:Object(c.a)().canonicalUrl}}),(e=function(e){if(e&&"string"==typeof e&&0!==e.length){var t=e.match(/^(?:https?:\/\/)?(?:www\.)?(.*?(?=(\?|\#|\/|$)))/i);return t&&t[1]}}(Object(c.a)().canonicalUrl))&&(Object(i.mergeDeep)(d,{site:{domain:e}}),Object(i.mergeDeep)(d,{site:{publisher:{domain:m(e)}}})),function(){var e,t;try{e=a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth,t=a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight}catch(n){e=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,t=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight}Object(i.mergeDeep)(d,{device:{w:e,h:t}})}(),function(){var e;try{e=a.document.querySelector("meta[name='keywords']")}catch(t){e=window.document.querySelector("meta[name='keywords']")}e&&e.content&&Object(i.mergeDeep)(d,{site:{keywords:e.content.replace(/\s/g,"")}})}(),d}function w(e,t){return d={},e.skipEnrichments?t:Object(i.mergeDeep)(l(),t)}var s={name:"enrichments",queue:2,init:w};Object(o.e)("firstPartyData",s),window.asc.installedModules.push("enrichmentFpdModule")}},[350]);
ascChunk([287],{372:function(e,t,o){e.exports=o(373)},373:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerSubmodules=c,t.init=f;var n=o(3),i=o(8),u=o(14),r=o(21),s=[];function c(e){s.push(e)}function f(){var e=n.b.getConfig("firstPartyData")||{},t=n.b.getConfig("ortb2")||{};s.sort((function(e,t){return(e.queue||1)-(t.queue||1)})).forEach((function(o){t=o.init(e,t)})),n.b.setConfig({ortb2:t})}function a(e,t){f(),e.call(this,t),r.e.getHooks({hook:a}).remove()}function d(){Object(i.a)("addBidderRequests").before(a)}Object(i.c)("firstPartyData",c),d(),Object(u.a)().refreshFpd=d,window.asc.installedModules.push("fpdModule")}},[372]);
ascChunk([46],{631:function(e,t,r){e.exports=r(632)},632:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetSyncedStatus=function(){B=0},t.resetWurlMap=function(){W={}},t.PrebidServer=H;var n=r(52),i=r(25),s=r(0),c=r(14),o=r(5),a=r.n(o),d=r(9),p=r(3),u=r(2),b=r(1),l=r(10),f=r.n(l),g=r(12),m=r.n(g),y=r(633),v=r(4),h=r(11),O=r.n(h);function j(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;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(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)return;var n,i,s=[],c=!0,o=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(s.push(n.value),!t||s.length!==t);c=!0);}catch(e){o=!0,i=e}finally{try{c||null==r.return||r.return()}finally{if(o)throw i}}return s}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(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.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E,P,k=p.b.getConfig,_=a.a.S2S.SRC,B=0,R={timeout:1e3,syncTimeout:1e3,maxBids:1,adapter:"prebidServer",allowUnknownBidderCodes:!1,adapterOptions:{},syncUrlModifier:{}};function U(e){if(e){var t=Array.isArray(e)?e:[e],r=[];return t.every((function(t,n,i){if((function(e){["endpoint","syncEndpoint"].forEach((function(t){if(Object(s.isStr)(e[t])){var r=e[t];e[t]={p1Consent:r,noP1Consent:r}}!Object(s.isPlainObject)(e[t])||e[t].p1Consent&&e[t].noP1Consent||["p1Consent","noP1Consent"].forEach((function(r){e[t][r]||Object(s.logWarn)("s2sConfig.".concat(t,".").concat(r," not defined. PBS request will be skipped in some P1 scenarios."))}))}))}(e),!1!==function(e){if(e.defaultVendor){var t=e.defaultVendor,r=Object.keys(e);if(!y.a[t])return Object(s.logError)("Incorrect or unavailable prebid server default vendor option: "+t),!1;Object.keys(y.a[t]).forEach((function(n){R[n]!==e[n]&&m()(r,n)||(e[n]=y.a[t][n])}))}return e.enabled="boolean"==typeof e.enabled&&e.enabled}(t))&&!1!==function(e){var t=Object.keys(e);if(["accountId","bidders","endpoint"].filter((function(e){return!m()(t,e)&&(Object(s.logError)(e+" missing in server to server config"),!0)})).length>0)return!1}(t))return Array.isArray(t.bidders)&&(i[n].bidders=t.bidders.filter((function(e){return-1===r.indexOf(e)&&(r.push(e),!0)}))),!0;return Object(s.logWarn)("prebidServer: s2s config is disabled"),!1}))?E=t:void 0}}function T(e,t,r,n){if(E.length!==B){B++;var i={uuid:Object(s.generateUUID)(),bidders:e,account:n.accountId},c=n.userSyncLimit;Object(s.isNumber)(c)&&c>0&&(i.limit=c),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 o=JSON.stringify(i);Object(v.a)(J(n.syncEndpoint,t),(function(e){try{q((e=JSON.parse(e)).bidder_status,n)}catch(e){Object(s.logError)(e)}}),o,{contentType:"text/plain",withCredentials:!0})}}function q(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?(Object(s.logMessage)('Invoking image pixel user sync for bidder: "'.concat(r,'"')),Object(s.triggerPixel)(t,n,i)):"iframe"===e?(Object(s.logMessage)('Invoking iframe user sync for bidder: "'.concat(r,'"')),Object(s.insertUserSyncIframe)(t,n,i)):(Object(s.logError)('User sync type "'.concat(e,'" not supported for bidder: "').concat(r,'"')),n()):(Object(s.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,s.bind.call(q,null,e,t),t):q(e,t)}}p.b.setDefaults({s2sConfig:R}),k("s2sConfig",(function(e){return U(e.s2sConfig)}));var D={sponsoredBy:1,body:2,rating:3,likes:4,downloads:5,price:6,salePrice:7,phone:8,address:9,body2:10,cta:12},V=Object.keys(D),M={icon:1,image:3},N={img:1,js:2};[D,M,{impression:1,"viewable-mrc50":2,"viewable-mrc100":3,"viewable-video50":4},N].forEach((function(e){Object.keys(e).forEach((function(t){e[e[t]]=t}))}));var z={},W={};function X(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=Object(s.timestamp)()}function F(e){var t,r,n=function(e,t){if([e,t].every(s.isStr))return W["".concat(e).concat(t)]}(e.auctionId,e.adId);Object(s.isStr)(n)&&(Object(s.logMessage)('Invoking image pixel for wurl on BID_WIN: "'.concat(n,'"')),Object(s.triggerPixel)(n),t=e.auctionId,r=e.adId,[t,r].every(s.isStr)&&(W["".concat(t).concat(r)]=void 0))}function J(e,t){return function(e){var t=!0;return e&&e.gdprApplies&&2===e.apiVersion&&(t=!(!0!==Object(s.deepAccess)(e,"vendorData.purpose.consents.1"))),t}(t)?e.p1Consent:e.noP1Consent}function K(e){var t,r;return Array.isArray(e)&&e.length>0&&(t=e[0].gdprConsent,r=e[0].uspConsent),{gdprConsent:t,uspConsent:r}}function H(){var e=new n.a("prebidServer");return e.callBids=function(e,t,r,n,i){var o=Object(s.deepClone)(e.ad_units),u=K(t),l=u.gdprConsent,g=u.uspConsent,y=o.filter((function(e){return e.mediaTypes&&(e.mediaTypes.native||e.mediaTypes.banner&&e.mediaTypes.banner.sizes||e.mediaTypes.video&&e.mediaTypes.video.playerSize)})),v=y.map((function(e){return e.bids.map((function(e){return e.bidder})).filter(s.uniques)})).reduce(s.flatten).filter(s.uniques);if(Array.isArray(E)){if(e.s2sConfig&&e.s2sConfig.syncEndpoint&&J(e.s2sConfig.syncEndpoint,l)){var h=e.s2sConfig.bidders.map((function(e){return d.default.aliasRegistry[e]||e})).filter((function(e,t,r){return r.indexOf(e)===t}));Object(s.isNumber)(e.s2sConfig.syncDelay)||(e.s2sConfig.syncDelay=1e3);var O=setTimeout((function(){T(h,l,g,e.s2sConfig)}),e.s2sConfig.syncDelay);Object(c.a)().triggerUserSyncsS2S=function(){T(h,l,g,e.s2sConfig),clearTimeout(O)}}var j=new X(e,t,y,v),C=j.buildRequest(),S=C&&JSON.stringify(C);Object(s.logInfo)("BidRequest: "+S);var x=J(e.s2sConfig.endpoint,l);C&&S&&x?i(x,{success:function(e){return function(e,t,r,n){var i,c=K(t.bidderRequests),o=c.gdprConsent,u=c.uspConsent;try{i=JSON.parse(e),t.interpretResponse(i).forEach((function(e){var t=e.adUnit,n=e.bid;Object(b.isValid)(t,n)&&r(t,n)})),t.bidderRequests.forEach((function(e){return f.a.emit(a.a.EVENTS.BIDDER_DONE,e)}))}catch(e){Object(s.logError)(e)}(!i||i.status&&m()(i.status,"Error"))&&Object(s.logError)("error parsing response: ",i.status);n(),function(e,t,r){e.forEach((function(e){var n=d.default.getBidAdapter(e);n&&n.registerSyncs&&p.b.runWithBidder(e,s.bind.call(n.registerSyncs,n,[],t,r))}))}(t.requestedBidders,o,u)}(e,j,r,n)},error:n},S,{contentType:"text/plain",withCredentials:!0}):Object(s.logError)("PBS request not made. Check endpoints.")}},f.a.on(a.a.EVENTS.BID_WON,F),A(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:_})}A(X.prototype,{buildRequest:function(){var e=this,t=this.s2sBidRequest,r=this.bidderRequests,n=this.adUnits,i=this.s2sConfig,c=this.requestedBidders,o=[],a={},u=r[0],b=new Set;if(n.forEach((function(t){for(var n=t.code,c=1;b.has(n);)c++,n="".concat(t.code,"-").concat(c);b.add(n),e.adUnitsByImp[n]=t;var l=t.nativeParams;if(l)try{z[n]=Object.keys(l).reduce((function(e,t){var r=l[t];function n(e){return A({required:r.required?1:0},e?Object(s.cleanObj)(e):{})}switch(t){case"image":case"icon":var i=M[t],c=Object(s.cleanObj)({type:i,w:Object(s.deepAccess)(r,"sizes.0"),h:Object(s.deepAccess)(r,"sizes.1"),wmin:Object(s.deepAccess)(r,"aspect_ratios.0.min_width"),hmin:Object(s.deepAccess)(r,"aspect_ratios.0.min_height")});if(!(c.w&&c.h||c.hmin&&c.wmin))throw"invalid img sizes (must provide sizes or min_height & min_width if using aspect_ratios)";if(Array.isArray(r.aspect_ratios)){var o=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)}));o.length>0&&(c.ext={aspectratios:o})}e.push(n({img:c}));break;case"title":if(!r.len)throw"invalid title.len";e.push(n({title:{len:r.len}}));break;default:var a=D[t];a&&e.push(n({data:{type:a,len:r.len}}))}return e}),[])}catch(e){Object(s.logError)("error creating native request: "+String(e))}var f=Object(s.deepAccess)(t,"mediaTypes.video"),g=Object(s.deepAccess)(t,"mediaTypes.banner");t.bids.forEach((function(t){if(e.setBidRequestId(n,t.bidder,t.bid_id),d.default.aliasRegistry[t.bidder]){var r=d.default.bidderRegistry[t.bidder];r&&!r.getSpec().skipPbsAliasing&&(a[t.bidder]=d.default.aliasRegistry[t.bidder])}}));var m={};if(g&&g.sizes){var y=Object(s.parseSizesInput)(g.sizes).map((function(e){var t=x(e.split("x"),2),r=t[0],n=t[1];return{w:parseInt(r,10),h:parseInt(n,10)}}));m.banner={format:y},g.pos&&(m.banner.pos=g.pos)}Object(s.isEmpty)(f)||("outstream"!==f.context||f.renderer||t.renderer?("instream"!==f.context||f.hasOwnProperty("placement")||(f.placement=1),m.video=Object.keys(f).filter((function(e){return"context"!==e})).reduce((function(e,t){return"playerSize"===t?(e.w=Object(s.deepAccess)(f,"".concat(t,".0.0")),e.h=Object(s.deepAccess)(f,"".concat(t,".0.1"))):e[t]=f[t],e}),{})):Object(s.logError)("Outstream bid without renderer cannot be sent to Prebid Server."));var v=t.bids.reduce((function(e,n){var s=d.default.bidderRegistry[n.bidder];return s&&s.getSpec().transformBidParams&&(n.params=s.getSpec().transformBidParams(n.params,!0,t,r)),e[n.bidder]=i.adapterOptions&&i.adapterOptions[n.bidder]?A({},n.params,i.adapterOptions[n.bidder]):n.params,e}),C({},Object(s.deepAccess)(t,"ortb2Imp.ext"))),h={id:n,ext:v,secure:i.secure},j=C({},Object(s.deepAccess)(t,"ortb2Imp.ext.data"));Object.keys(j).forEach((function(e){"pbadslot"===e?"string"==typeof j[e]&&j[e]?Object(s.deepSetValue)(h,"ext.data.pbadslot",j[e]):delete h.ext.data.pbadslot:"adserver"===e?["name","adslot"].forEach((function(e){var t=Object(s.deepAccess)(j,"adserver.".concat(e));"string"==typeof t&&t&&Object(s.deepSetValue)(h,"ext.data.adserver.".concat(e.toLowerCase()),t)})):Object(s.deepSetValue)(h,"ext.data.".concat(e),j[e])})),A(h,m);var S=O()(u.bids,(function(e){return e.adUnitCode===t.code&&e.storedAuctionResponse}));S&&Object(s.deepSetValue)(h,"ext.prebid.storedauctionresponse.id",S.storedAuctionResponse.toString());var w=O()(u.bids,(function(e){return e.adUnitCode===t.code&&"function"==typeof e.getFloor}));if(w){var I;try{I=w.getFloor({currency:p.b.getConfig("currency.adServerCurrency")||"USD"})}catch(e){Object(s.logError)("PBS: getFloor threw an error: ",e)}I&&I.currency&&!isNaN(parseFloat(I.floor))&&(h.bidfloor=parseFloat(I.floor),h.bidfloorcur=I.currency)}(h.banner||h.video||h.native)&&o.push(h)})),o.length){var l={id:u.auctionId,source:{tid:t.tid},tmax:i.timeout,imp:o,test:0,ext:{prebid:{auctiontimestamp:u.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}}}};l.ext.prebid=A(l.ext.prebid,{channel:{name:"pbjs",version:asc.version}}),k("debug")&&(l.ext.prebid=A(l.ext.prebid,{debug:!0})),i.extPrebid&&"object"===I(i.extPrebid)&&(l.ext.prebid=Object(s.mergeDeep)(l.ext.prebid,i.extPrebid));var f=p.b.getConfig("currency.adServerCurrency");f&&"string"==typeof f?l.cur=[f]:Array.isArray(f)&&f.length&&(l.cur=[f[0]]),function(e,t,r){e&&("object"===I(p.b.getConfig("app"))?(e.app=p.b.getConfig("app"),e.app.publisher={id:r}):(e.site={},Object(s.isPlainObject)(p.b.getConfig("site"))&&(e.site=p.b.getConfig("site")),Object(s.deepAccess)(e.site,"publisher.id")||Object(s.deepSetValue)(e.site,"publisher.id",r),e.site.page||(e.site.page=t)),"object"===I(p.b.getConfig("device"))&&(e.device=p.b.getConfig("device")),e.device||(e.device={}),e.device.w||(e.device.w=window.innerWidth),e.device.h||(e.device.h=window.innerHeight))}(l,r[0].refererInfo.referer,i.accountId);var g=Object(s.deepAccess)(r,"0.bids.0.schain");g&&(l.source.ext={schain:g}),Object(s.isEmpty)(a)||(l.ext.prebid.aliases=C(C({},l.ext.prebid.aliases),a));var y=Object(s.deepAccess)(r,"0.bids.0.userIdAsEids");Object(s.isArray)(y)&&y.length>0&&Object(s.deepSetValue)(l,"user.ext.eids",y),Object(s.isArray)(P)&&P.length>0&&(c&&Object(s.isArray)(c)&&P.forEach((function(e){e.bidders&&(e.bidders=e.bidders.filter((function(e){return m()(c,e)})))})),Object(s.deepSetValue)(l,"ext.prebid.data.eidpermissions",P));var v=p.b.getConfig("multibid");if(v&&Object(s.deepSetValue)(l,"ext.prebid.multibid",v.reduce((function(e,t){var r={};return Object.keys(t).forEach((function(e){r[e.toLowerCase()]=t[e]})),e.push(r),e}),[])),r){var h;if(u.gdprConsent)"boolean"==typeof u.gdprConsent.gdprApplies&&(h=u.gdprConsent.gdprApplies?1:0),Object(s.deepSetValue)(l,"regs.ext.gdpr",h),Object(s.deepSetValue)(l,"user.ext.consent",u.gdprConsent.consentString),u.gdprConsent.addtlConsent&&"string"==typeof u.gdprConsent.addtlConsent&&Object(s.deepSetValue)(l,"user.ext.ConsentedProvidersSettings.consented_providers",u.gdprConsent.addtlConsent);u.uspConsent&&Object(s.deepSetValue)(l,"regs.ext.us_privacy",u.uspConsent)}!0===k("coppa")&&Object(s.deepSetValue)(l,"regs.coppa",1);var j=k("ortb2")||{};return Object(s.mergeDeep)(l,j),function(e){var t=p.b.getBidderConfig(),r=Object.keys(t).reduce((function(e,r){var n=t[r];if(n.ortb2){var i=Object(s.mergeDeep)({},n.ortb2);e.push({bidders:[r],config:{ortb2:i}})}return e}),[]);r.length&&Object(s.deepSetValue)(e,"ext.prebid.bidderconfig",r)}(l),l.imp.forEach((function(t){return e.impRequested[t.id]=t})),l}Object(s.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,c=[];return[["errors","serverErrors"],["responsetimemillis","serverResponseTimeMs"]].forEach((function(t){return function(e,t,r,n){var i=Object(s.deepAccess)(t,"ext.".concat(r));i&&Object.keys(i).forEach((function(t){var r=O()(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(o){var d=t.getBidRequest(o.impid,r.seat);if(null!=d||n.allowUnknownBidderCodes){var p=o.price,b=0!==p?a.a.STATUS.GOOD:a.a.STATUS.NO_BID,l=Object(i.createBid)(b,{bidder:r.seat,src:_,bidId:d?d.bidId||d.bid_Id:null,transactionId:t.adUnitsByImp[o.impid].transactionId,auctionId:t.auctionId});l.requestTimestamp=t.requestTimestamp,l.cpm=p;var f=Object(s.deepAccess)(e,["ext","responsetimemillis",r.seat].join("."));d&&f&&(d.serverResponseTimeMs=f);var g,m,y,v=Object(s.deepAccess)(o,"ext.prebid.bidid");Object(s.isStr)(v)&&(l.pbsBidId=v),Object(s.isStr)(Object(s.deepAccess)(o,"ext.prebid.events.win"))&&(g=t.auctionId,m=l.adId,y=Object(s.deepAccess)(o,"ext.prebid.events.win"),[g,m].every(s.isStr)&&(W["".concat(g).concat(m)]=y));var h=Object(s.deepAccess)(o,"ext.prebid.targeting");if(Object(s.isPlainObject)(h)&&(Object(s.isStr)(Object(s.deepAccess)(o,"ext.prebid.events.win"))&&(h=Object(s.getDefinedParams)(h,Object.keys(h).filter((function(e){return-1===e.indexOf("hb_winurl")&&-1===e.indexOf("hb_bidid")})))),l.adserverTargeting=h),l.seatBidId=o.id,Object(s.deepAccess)(o,"ext.prebid.type")===u.d){l.mediaType=u.d;var O=t.impRequested[o.impid],j=[O.video.w,O.video.h];l.playerWidth=j[0],l.playerHeight=j[1],o.ext.prebid.cache&&"object"===I(o.ext.prebid.cache.vastXml)&&o.ext.prebid.cache.vastXml.cacheId&&o.ext.prebid.cache.vastXml.url?(l.videoCacheKey=o.ext.prebid.cache.vastXml.cacheId,l.vastUrl=o.ext.prebid.cache.vastXml.url):h&&h.hb_uuid&&h.hb_cache_host&&h.hb_cache_path&&(l.videoCacheKey=h.hb_uuid,l.vastUrl="https://".concat(h.hb_cache_host).concat(h.hb_cache_path,"?uuid=").concat(h.hb_uuid)),o.adm&&(l.vastXml=o.adm),!l.vastUrl&&o.nurl&&(l.vastUrl=o.nurl)}else if(Object(s.deepAccess)(o,"ext.prebid.type")===u.c){var C,x;l.mediaType=u.c,x="string"==typeof o.adm?l.adm=JSON.parse(o.adm):l.adm=o.adm;var w=(S(C={},N.img,x.imptrackers||[]),S(C,N.js,x.jstracker?[x.jstracker]:[]),C);if(x.eventtrackers&&x.eventtrackers.forEach((function(e){switch(e.method){case N.img:w[N.img].push(e.url);break;case N.js:w[N.js].push(e.url)}})),Object(s.isPlainObject)(x)&&Array.isArray(x.assets)){var A=z[o.impid];l.native=Object(s.cleanObj)(x.assets.reduce((function(e,t){var r=A[t.id];return Object(s.isPlainObject)(t.img)?e[r.img.type?M[r.img.type]:"image"]=Object(s.pick)(t.img,["url","w as width","h as height"]):Object(s.isPlainObject)(t.title)?e.title=t.title.text:Object(s.isPlainObject)(t.data)&&V.forEach((function(n){D[n]===r.data.type&&(e[n]=t.data.value)})),e}),Object(s.cleanObj)({clickUrl:x.link,clickTrackers:Object(s.deepAccess)(x,"link.clicktrackers"),impressionTrackers:w[N.img],javascriptTrackers:w[N.js]})))}else Object(s.logError)("prebid server native response contained no assets")}else o.adm&&o.nurl?(l.ad=o.adm,l.ad+=Object(s.createTrackPixelHtml)(decodeURIComponent(o.nurl))):o.adm?l.ad=o.adm:o.nurl&&(l.adUrl=o.nurl);l.width=o.w,l.height=o.h,o.dealid&&(l.dealId=o.dealid),l.creative_id=o.crid,l.creativeId=o.crid,o.burl&&(l.burl=o.burl),l.currency=e.cur?e.cur:"USD",l.meta={};var E=Object(s.deepAccess)(o,"ext.prebid.meta");E&&Object(s.isPlainObject)(E)&&(l.meta=Object(s.deepClone)(E)),o.adomain&&(l.meta.advertiserDomains=o.adomain);var P=n.defaultTtl||60;l.ttl=o.exp?o.exp:P,l.netRevenue=!o.netRevenue||o.netRevenue,c.push({adUnit:t.adUnitsByImp[o.impid].code,bid:l})}else Object(s.logWarn)("PBS adapter received bid from unknown bidder (".concat(r.seat,"), but 's2sConfig.allowUnknownBidderCodes' is not set. Ignoring bid."))}))})),c},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]&&Object(s.getBidRequest)(this.bidIdMap[r],this.bidderRequests)},impBidderKey:function(e,t){return"".concat(e).concat(t)}}),Object(s.getPrebidInternal)().setEidPermissions=function(e){P=e},d.default.registerBidAdapter(new H,"prebidServer"),window.asc.installedModules.push("prebidServerBidAdapter")},633:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={appnexus:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/cookie_sync",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/cookie_sync"},timeout:1e3},appnexuspsp:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ib.adnxs.com/openrtb2/prebid",noP1Consent:"https://ib.adnxs-simple.com/openrtb2/prebid"},timeout:1e3},rubicon:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction",noP1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid-server.rubiconproject.com/cookie_sync",noP1Consent:"https://prebid-server.rubiconproject.com/cookie_sync"},timeout:500},openx:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.openx.net/openrtb2/auction",noP1Consent:"https://prebid.openx.net/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.openx.net/cookie_sync",noP1Consent:"https://prebid.openx.net/cookie_sync"},timeout:1e3}}}},[631]);
ascChunk([180],{634:function(e,t,r){e.exports=r(635)},635:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"allowedFields",(function(){return D})),r.d(t,"_floorDataForAuction",(function(){return I})),r.d(t,"fieldMatchingFunctions",(function(){return M})),t.getFirstMatchingFloor=x,t.getBiddersCpmAdjustment=z,t.calculateAdjustedFloor=W,t.getFloor=N,t.getFloorsDataForAuction=_,t.getFloorDataFromAdUnits=H,t.updateAdUnitsForAuction=J,t.pickRandomModel=L,t.createFloorsDataForAuction=Y,t.continueAuction=K,t.isFloorsDataValid=Z,t.parseFloorData=$,t.requestBidsHook=ee,t.handleFetchResponse=re,t.generateAndHandleFetch=ne,t.handleSetFloorsConfig=ce,t.addBidResponseHook=ae;var o=r(0),n=r(14),c=r(3),a=r(4),i=r(10),u=r.n(i),s=r(5),l=r.n(s),d=r(8),f=r(25),p=r(11),m=r.n(p),h=r(18),b=r(16),g=r(27),y=["modelGroups"];function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},c=Object.keys(e);for(o=0;o<c.length;o++)r=c[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)r=c[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C,k="Price Floors",T=Object(a.b)(1e4),D=["gptSlot","adUnitCode","size","domain","mediaType"],R=!1,U=!1,w={},E=[],I={};function P(e,t){return Math.ceil((parseFloat(e)*Math.pow(10,t)).toFixed(1))/Math.pow(10,t)}var M={size:function(e,t){return Object(o.parseGPTSingleSizeArray)(t.size)||"*"},mediaType:function(e,t){return t.mediaType||"banner"},gptSlot:function(e,t){return function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,r=(void 0===t?b.a.index:t).getAdUnit({transactionId:e});return"gam"===Object(o.deepAccess)(r,"ortb2Imp.ext.data.adserver.name")&&r.ortb2Imp.ext.data.adserver.adslot}((e||t).transactionId)||Object(o.getGptSlotInfoForAdUnitCode)((e||t).adUnitCode).gptSlot},domain:function(e,t){return C||(r=Object(h.a)().referer,C=Object(o.parseUrl)(r,{noDecodeWholeURL:!0}).hostname);var r},adUnitCode:function(e,t){return(e||t).adUnitCode}};function B(e,t,r){return e.reduce((function(e,o){var n=M[o](t,r)||"*";return e.push("*"===n?["*"]:[n.toLowerCase(),"*"]),e}),[])}function x(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=B(Object(o.deepAccess)(e,"schema.fields")||[],t,r);if(!n.length)return{matchingFloor:e.default};var c=n.map((function(e){return e[0]})).join("-"),a=Object(o.deepAccess)(e,"matchingInputs.".concat(c));if(a)return A({},a);var i=V(n,Object(o.deepAccess)(e,"schema.delimiter")||"|"),u=m()(i,(function(t){return e.values.hasOwnProperty(t)})),s={floorMin:e.floorMin||0,floorRuleValue:e.values[u]||e.default,matchingData:i[0],matchingRule:u};return s.matchingFloor=Math.max(s.floorMin,s.floorRuleValue),Object(o.deepSetValue)(e,"matchingInputs.".concat(c),A({},s)),s}function V(e,t){return e.reduce((function(e,r){var o=[];return e.map((function(e){r.map((function(r){o.push(e+t+r)}))})),o})).sort((function(e,t){return e.split("*").length-t.split("*").length}))}function z(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=g.a.get(e,"bidCpmAdjustment");return o?parseFloat(o(t,A(A({},r),{},{cpm:t}))):parseFloat(t)}function W(e,t){var r=Math.pow(10,10);return e*r/(t*r)*(e*r)/r}var q={banner:function(e){return Object(o.deepAccess)(e,"mediaTypes.banner.sizes")||[]},video:function(e){return Object(o.deepAccess)(e,"mediaTypes.video.playerSize")||[]},native:function(e){return Object(o.deepAccess)(e,"mediaTypes.native.image.sizes")?[Object(o.deepAccess)(e,"mediaTypes.native.image.sizes")]:[]}};function G(e,t){var r=Object.keys(e.mediaTypes||{});return"*"===t.mediaType&&1===r.length&&(t.mediaType=r[0]),"*"===t.size&&-1!==r.indexOf(t.mediaType)&&q[t.mediaType]&&1===q[t.mediaType](e).length&&(t.size=q[t.mediaType](e)[0]),t}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currency:"USD",mediaType:"*",size:"*"},t=this,r=I[t.auctionId];if(!r||r.skipped)return{};e=G(t,e);var c=x(r.data,A({},t),{mediaType:e.mediaType,size:e.size}),a=e.currency||r.data.currency;if(c.matchingFloor&&a!==r.data.currency)try{c.matchingFloor=Object(n.a)().convertCurrency(c.matchingFloor,r.data.currency,a)}catch(e){Object(o.logWarn)("".concat(k,": Unable to get currency conversion for getFloor for bidder ").concat(t.bidder,". You must have currency module enabled with defaultRates in your currency config")),a=r.data.currency}if(r.enforcement.bidAdjustment&&c.matchingFloor){var i=z(t.bidder,c.matchingFloor);c.matchingFloor=i?W(c.matchingFloor,i):c.matchingFloor}return c.matchingFloor?{floor:P(c.matchingFloor,4),currency:a}:{}}function _(e,t){var r=Object(o.deepClone)(e);return r.schema.delimiter=e.schema.delimiter||"|",r.values=function(e,t){var r=e.schema.fields,o=e.schema.delimiter,n=t&&-1===r.indexOf("adUnitCode")&&r.unshift("adUnitCode");return Object.keys(e.values).reduce((function(r,c){return r[(n?"".concat(t).concat(o).concat(c):c).toLowerCase()]=e.values[c],r}),{})}(r,t),r.currency=r.currency||"USD",r}function H(e){return e.reduce((function(e,t){if(Z(t.floors))if(e.values){var r=_(t.floors,t.code).values;v(e.values,r)}else(e=_(t.floors,t.code)).location="adUnit";return e}),{})}function J(e,t,r){e.forEach((function(e){e.bids.forEach((function(e){t.skipped?delete e.getFloor:e.getFloor=N,e.auctionId=r,e.floorData={skipped:t.skipped,skipRate:t.skipRate,floorMin:t.floorMin,modelVersion:Object(o.deepAccess)(t,"data.modelVersion"),modelWeight:Object(o.deepAccess)(t,"data.modelWeight"),modelTimestamp:Object(o.deepAccess)(t,"data.modelTimestamp"),location:Object(o.deepAccess)(t,"data.location","noData"),floorProvider:t.floorProvider,fetchStatus:w.fetchStatus}}))}))}function L(e,t){for(var r=Math.floor(Math.random()*t+1),o=0;o<e.length;o++)if((r-=e[o].modelWeight)<=0)return e[o]}function Y(e,t){var r=Object(o.deepClone)(w);if(2===Object(o.deepAccess)(r,"data.floorsSchemaVersion")){var n=r.data,c=n.modelGroups,a=j(n,y);r.data=v(a,L(c,a.modelWeightSum))}var i=0===Object.keys(Object(o.deepAccess)(r,"data.values")||{}).length;if(r.data=i?H(e):_(r.data),0===Object.keys(Object(o.deepAccess)(r,"data.values")||{}).length)r.skipped=!0;else{var u=Object(o.getParameterByName)("pbjs_skipRate")||r.skipRate,s=100*Math.random()<parseFloat(u);r.skipped=s}return r.hasOwnProperty("floorMin")&&(r.data.floorMin=r.floorMin),J(e,r,t),r}function K(e){e.hasExited||(E=E.filter((function(t){return t.timer!==e.timer})),e.reqBidsConfigObj.auctionId=e.reqBidsConfigObj.auctionId||Object(o.generateUUID)(),I[e.reqBidsConfigObj.auctionId]=Y(e.reqBidsConfigObj.adUnits||Object(n.a)().adUnits,e.reqBidsConfigObj.auctionId),e.nextFn.apply(e.context,[e.reqBidsConfigObj]),e.hasExited=!0)}function Q(e){return t=Object(o.deepAccess)(e,"schema.fields"),!!(Array.isArray(t)&&t.length>0&&t.every((function(e){return-1!==D.indexOf(e)}))||(Object(o.logError)("".concat(k,": Fields recieved do not match allowed fields")),0))&&(r=e,n=e.schema.fields.length,c=e.schema.delimiter||"|","object"===O(r.values)&&(r.values=Object.keys(r.values).reduce((function(e,t){return function(e,t,r,o){return"string"==typeof e&&e.split(o).length===r&&"number"==typeof t}(t,r.values[t],n,c)&&(e[t]=r.values[t]),e}),{}),Object.keys(r.values).length>0));var t,r,n,c}var X={1:function(e){return Q(e)},2:function(e){return!(!Array.isArray(e.modelGroups)||0===e.modelGroups.length)&&(e.modelWeightSum=0,e.modelGroups.every((function(t){return!("number"!=typeof t.modelWeight||!Q(t))&&(e.modelWeightSum+=t.modelWeight,!0)})))}};function Z(e){return"object"===O(e)&&(e.floorsSchemaVersion=e.floorsSchemaVersion||1,"function"!=typeof X[e.floorsSchemaVersion]?(Object(o.logError)("".concat(k,": Unknown floorsSchemaVersion: "),e.floorsSchemaVersion),!1):X[e.floorsSchemaVersion](e))}function $(e,t){if(e&&"object"===O(e)&&Z(e))return Object(o.logInfo)("".concat(k,": A ").concat(t," set the auction floor data set to "),e),A(A({},e),{},{location:t});Object(o.logError)("".concat(k,": The floors data did not contain correct values"),e)}function ee(e,t){var r={reqBidsConfigObj:t,context:this,nextFn:e,haveExited:!1,timer:null};w.auctionDelay>0&&R?(r.timer=setTimeout((function(){Object(o.logWarn)("".concat(k,": Fetch attempt did not return in time for auction")),w.fetchStatus="timeout",K(r)}),w.auctionDelay),E.push(r)):K(r)}function te(){E.forEach((function(e){clearTimeout(e.timer),K(e)})),E=[]}function re(e){var t;R=!1,w.fetchStatus="success";try{t=JSON.parse(e)}catch(r){t=e}var r=$(t,"fetch");r&&(w.data=r,w.skipRate=Object(o.isNumber)(r.skipRate)?r.skipRate:w.skipRate,w.floorProvider=r.floorProvider||w.floorProvider),te()}function oe(e){R=!1,w.fetchStatus="error",Object(o.logError)("".concat(k,": Fetch errored with: "),e),te()}function ne(e){e.url&&!R?"GET"!==(e.method||"GET")?Object(o.logError)("".concat(k,": 'GET' is the only request method supported at this time!")):(T(e.url,{success:re,error:oe},null,{method:"GET"}),R=!0):R&&Object(o.logWarn)("".concat(k,": A fetch is already occuring. Skipping."))}function ce(e){(w=Object(o.pick)(e,["floorMin","enabled",function(e){return!1!==e},"auctionDelay",function(e){return e||0},"floorProvider",function(t){return Object(o.deepAccess)(e,"data.floorProvider",t)},"endpoint",function(e){return e||{}},"skipRate",function(){return isNaN(Object(o.deepAccess)(e,"data.skipRate"))?e.skipRate||0:e.data.skipRate},"enforcement",function(e){return Object(o.pick)(e||{},["enforceJS",function(e){return!1!==e},"enforcePBS",function(e){return!0===e},"floorDeals",function(e){return!0===e},"bidAdjustment",function(e){return!1!==e}])},"additionalSchemaFields",function(e){return"object"===O(e)&&Object.keys(e).length>0?(t=e,void Object.keys(t).forEach((function(e){-1===D.indexOf(e)&&"function"==typeof t[e]&&(D.push(e),M[e]=t[e])}))):void 0;var t},"data",function(e){return e&&$(e,"setConfig")||w.data}])).enabled?(ne(w.endpoint),U||(u.a.on(l.a.EVENTS.AUCTION_END,(function(e){setTimeout((function(){return delete I[e.auctionId]}),3e3)})),Object(n.a)().requestBids.before(ee,50),Object(d.a)("addBidResponse").before(ae,Object(o.debugTurnedOn)()?4:50),U=!0)):(Object(o.logInfo)("".concat(k,": Turning off module")),w={},I={},Object(d.a)("addBidResponse").getHooks({hook:ae}).remove(),Object(n.a)().requestBids.getHooks({hook:ee}).remove(),U=!1)}function ae(e,t,r){var c=I[r.auctionId];if(!c||!r||c.skipped)return e.call(this,t,r);var a,i=x(c.data,null,A(A({},r),{},{size:[r.width,r.height]}));if(!i.matchingFloor)return Object(o.logWarn)("".concat(k,": unable to determine a matching price floor for bidResponse"),r),e.call(this,t,r);var u=c.data.currency.toUpperCase(),s=r.currency||"USD";if(u===s.toUpperCase())a=r.cpm;else if(r.originalCurrency&&u===r.originalCurrency.toUpperCase())a=r.originalCpm;else try{a=Object(n.a)().convertCurrency(r.cpm,s.toUpperCase(),u)}catch(n){return Object(o.logError)("".concat(k,": Unable do get currency conversion for bidResponse to Floor Currency. Do you have Currency module enabled? ").concat(r)),e.call(this,t,r)}if(function(e,t,r,o){r.floorData={floorValue:t.matchingFloor,floorRule:t.matchingRule,floorRuleValue:t.floorRuleValue,floorCurrency:e.data.currency,cpmAfterAdjustments:o,enforcements:A({},e.enforcement),matchedFields:{}},e.data.schema.fields.forEach((function(o,n){var c=t.matchingData.split(e.data.schema.delimiter)[n];r.floorData.matchedFields[o]=c}))}(c,i,r,a=z(r.bidderCode,a,r)),function(e,t,r){var n=!1!==Object(o.deepAccess)(e,"enforcement.enforceJS"),c=!0===Object(o.deepAccess)(e,"enforcement.floorDeals")||!r.dealId,a=r.floorData.cpmAfterAdjustments<t.matchingFloor;return n&&a&&c}(c,i,r)){var d=Object(f.createBid)(l.a.STATUS.NO_BID,r.getIdentifiers());return v(d,Object(o.pick)(r,["floorData","width","height","mediaType","currency","originalCpm","originalCurrency","getCpmInNewCurrency"])),d.status=l.a.BID_STATUS.BID_REJECTED,d.cpm=0,Object(o.logWarn)("".concat(k,": ").concat(d.bidderCode,"'s Bid Response for ").concat(t," was rejected due to floor not met"),r),e.call(this,t,d)}return e.call(this,t,r)}c.b.getConfig("floors",(function(e){return ce(e.floors)})),window.asc.installedModules.push("priceFloors")}},[634]);
ascChunk([152],{718:function(n,i,e){n.exports=e(719)},719:function(n,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSchainObjectValid=h,i.isValidSchainConfig=u,i.makeBidRequestsHook=l,i.init=O;var t=e(3),c=e(9),o=e(0),a="Invalid schain object found: ",s=" should be a string",r=" should be an Integer",d=" should be an object",f={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},b=[];function h(n,i){var e="Detected something wrong within an schain config:",t="";function c(n){t+="\n"+n}function a(){!0===i?Object(o.logError)(e,n,t):Object(o.logWarn)(e,n,t)}if(!Object(o.isPlainObject)(n)&&(c("schain.config"+d),a(),i))return!1;if(Object(o.isNumber)(n.complete)&&Object(o.isInteger)(n.complete)||c("schain.config.complete"+r),Object(o.isStr)(n.ver)||c("schain.config.ver"+s),Object(o.hasOwn)(n,"ext")&&(Object(o.isPlainObject)(n.ext)||c("schain.config.ext"+d)),Object(o.isArray)(n.nodes))n.nodes.forEach((function(n,i){Object(o.isStr)(n.asi)||c("schain.config.nodes[".concat(i,"].asi")+s),Object(o.isStr)(n.sid)||c("schain.config.nodes[".concat(i,"].sid")+s),Object(o.isNumber)(n.hp)&&Object(o.isInteger)(n.hp)||c("schain.config.nodes[".concat(i,"].hp")+r),Object(o.hasOwn)(n,"rid")&&(Object(o.isStr)(n.rid)||c("schain.config.nodes[".concat(i,"].rid")+s)),Object(o.hasOwn)(n,"name")&&(Object(o.isStr)(n.name)||c("schain.config.nodes[".concat(i,"].name")+s)),Object(o.hasOwn)(n,"domain")&&(Object(o.isStr)(n.domain)||c("schain.config.nodes[".concat(i,"].domain")+s)),Object(o.hasOwn)(n,"ext")&&(Object(o.isPlainObject)(n.ext)||c("schain.config.nodes[".concat(i,"].ext")+d))}));else if(c("schain.config.nodes should be an Array"),a(),i)return!1;return!(t.length>0&&(a(),i))}function u(n){return void 0!==n&&(!!Object(o.isPlainObject)(n)||(Object(o.logError)(a+"the following schain config will not be used as schain is not an object.",n),!1))}function l(n,i){var e=t.b.getConfig("schain"),c=t.b.getBidderConfig();i.forEach((function(n){var i=n.bidderCode,t=function(n){return c[n]&&c[n].schain||e}(i);n.bids.forEach((function(n){var e=function(n,i){var e=f.STRICT;if(u(n)){if(Object(o.isStr)(n.validation)&&-1!=b.indexOf(n.validation)&&(e=n.validation),e===f.OFF)return n.config;if(h(n.config,!(e!==f.STRICT)))return n.config;Object(o.logError)(a+"due to the 'strict' validation setting, this schain config will not be passed to bidder '".concat(i,"'. See above error for details."))}return null}(t,i);e&&(n.schain=e)}))})),n(i)}function O(){c.default.makeBidRequests.after(l)}Object(o._each)(f,(function(n){return b.push(n)})),O(),window.asc.installedModules.push("schain")}},[718]);
ascChunk([149],{724:function(o,e,t){o.exports=t(725)},725:function(o,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t.d(e,"storage",(function(){return c})),t.d(e,"sharedIdSystemSubmodule",(function(){return g}));var n=t(0),r=t(8),i=t(9),a=t(7);function d(o){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}var c=Object(a.b)(887,"pubCommonId"),u="cookie",l="html5",f="_pubcid_optout",s="PublisherCommonId";function m(o,e){if(e===u)return c.getCookie(o);if(e===l&&c.hasLocalStorage()){var t=c.getDataFromLocalStorage("".concat(o,"_exp"));if(!t)return c.getDataFromLocalStorage(o);if(new Date(t).getTime()-Date.now()>0)return c.getDataFromLocalStorage(o)}}function b(o,e){return function(t){"function"==typeof e&&e(),t(o)}}function p(o){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(o){var t=Object(n.parseUrl)(o);t.search.id=encodeURIComponent("pubcid:"+e);var r=Object(n.buildUrl)(t);return function(){Object(n.triggerPixel)(r)}}}function v(){return!!(c.cookiesAreEnabled()&&m(f,u)||c.hasLocalStorage()&&m(f,l))}var g={name:"sharedId",aliasName:"pubCommonId",gvlid:887,decode:function(o,e){if(!v())return Object(n.logInfo)(" Decoded value PubCommonId "+o),{pubcid:o};Object(n.logInfo)("PubCommonId decode: Has opted-out")},getId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())Object(n.logInfo)("PubCommonId: Has opted-out");else{var t=i.coppaDataHandler.getCoppa();if(!t){var r=o.params,a=(r=void 0===r?{}:r).create,c=void 0===a||a,u=r.pixelUrl,l=e;if(!l){try{"object"===d(window[s])&&(l=window[s].getId())}catch(o){}l||(l=c&&Object(n.hasDeviceAccess)()?Object(n.generateUUID)():void 0)}var f=p(u,l);return{id:l,callback:b(l,f)}}Object(n.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId")}},extendId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())return Object(n.logInfo)("PubCommonId: Has opted-out"),{id:void 0};var t=i.coppaDataHandler.getCoppa();if(t)Object(n.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var r=o.params,a=(r=void 0===r?{}:r).extend,d=void 0!==a&&a,c=r.pixelUrl;if(d){if(c){var u=p(c,e);return{callback:u}}return{id:e}}}},domainOverride:function(){for(var o,e,t=document.domain.split("."),n="_gd".concat(Date.now()),r=0;r<t.length;r++){var i=t.slice(r).join(".");if(c.setCookie(n,"1",void 0,void 0,i),e=c.getCookie(n),c.setCookie(n,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,i),"1"!==e)return o;o=i}}};Object(r.e)("userId",g),window.asc.installedModules.push("sharedIdSystem")}},[724]);
ascChunk([19],{20:function(e,r){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},792:function(e,r,t){e.exports=t(793)},793:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"spec",(function(){return h}));var a=t(13),n=t(0),i=t(1),s=t(2),o=t(794),d=t.n(o),p=t(816),c=t.n(p);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})(e)}function m(){return(m=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function l(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)||function(e,r){if(!e)return;if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,r)}(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 f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var y=["id","mimes","minduration","maxduration","startdelay","skippable","playback_method","frameworks"],v=["age","external_uid","segments","gender","dnt","language"],b=["geo","device_id"],g={body:"description",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0},minimumParams:{sizes:[{}]}},icon:{serverName:"icon",requiredParams:{required:!0},minimumParams:{sizes:[{}]}},sponsoredBy:"sponsored_by"},h={code:"testbids",supportedMediaTypes:[s.b,s.d,s.c],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.member&&e.params.invCode)},buildRequests:function(e,r){var t,a=e.map(w),n=d()(e,k);n&&(t={},Object.keys(n.params.user).filter((function(e){return c()(v,e)})).forEach((function(e){return t[e]=n.params.user[e]})));var i,s=d()(e,C);s&&s.params&&s.params.app&&(i={},Object.keys(s.params.app).filter((function(e){return c()(b,e)})).forEach((function(e){return i[e]=s.params.app[e]})));var o,p=d()(e,T);p&&p.params&&s.params.app&&s.params.app.id&&(o={appid:p.params.app.id});var u=d()(e,S),m=u?parseInt(u.params.member,10):0,f={tags:l(a),user:t,sdk:{source:"pbjs",version:"6.10.0"}};if(m>0&&(f.member_id=m),s&&(f.device=i),p&&(f.app=o),r&&r.gdprConsent&&(f.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies}),r&&r.refererInfo){var y={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(",")};f.referrer_detection=y}var g=JSON.stringify(f),h="";return window.asc.bidderSettings.testbids&&1!==window.asc.bidderSettings.testbids.bidCpmAdjustment(1)&&(h="&curr="+window.asc.bidderSettings.testbids.bidCpmAdjustment(1)),window.location.href.indexOf("randomBids")>=0&&(h+="&random"),{method:"POST",url:"//adops.ro/testBiddingServer.php?v=2020?cb="+Math.floor(1e8*Math.random())+h,data:g,bidderRequest:r}},interpretResponse:function(e,r){var t=this,a=r.bidderRequest;e=e.body;var i=[];if(!e||e.error){var o="in response for ".concat(a.bidderCode," adapter");return e&&e.error&&(o+=": ".concat(e.error)),n.logError(o),i}return e.tags&&e.tags.forEach((function(e){var r,o=(r=e)&&r.ads&&r.ads.length&&d()(r.ads,(function(e){return e.rtb}));if(o&&0!==o.cpm&&c()(t.supportedMediaTypes,o.ad_type)){var p=function(e,r,t){var a={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:window.asc.getConfig().currency&&window.asc.getConfig().currency.adServerCurrency?window.asc.getConfig().currency.adServerCurrency:"USD",netRevenue:!0,ttl:300,appnexus:{buyerMemberId:r.buyer_member_id}};if(r.rtb.video){if(m(a,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastUrl:r.rtb.video.asset_url,vastImpUrl:r.notify_url,ttl:3600}),r.renderer_url){var i=n.deepAccess(t.bids[0],"renderer.options");m(a,{adResponse:e,renderer:_(a.adUnitCode,r,i)}),a.adResponse.ad=a.adResponse.ads[0],a.adResponse.ad.video=a.adResponse.ad.rtb.video}}else if(r.rtb[s.c]){var o=r.rtb[s.c];a[s.c]={title:o.title,body:o.desc,cta:o.ctatext,sponsoredBy:o.sponsored,clickUrl:o.link.url,clickTrackers:o.link.click_trackers,impressionTrackers:o.impression_trackers,javascriptTrackers:o.javascript_trackers},o.main_img&&(a.native.image={url:o.main_img.url,height:o.main_img.height,width:o.main_img.width}),o.icon&&(a.native.icon={url:o.icon.url,height:o.icon.height,width:o.icon.width})}else{m(a,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{var d=r.rtb.trackers[0].impression_urls[0],p=n.createTrackPixelHtml(d);a.ad+=p}catch(e){n.logError("Error appending tracking pixel",e)}}return a}(e,o,a);p.mediaType=function(e){var r=e.ad_type;return r===s.d?s.d:r===s.c?s.c:s.b}(o),i.push(p)}})),i},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html"}]},transformBidParams:function(e,r){return e=n.convertTypes({member:"string",invCode:"string",placementId:"number",keywords:n.transformBidderParamKeywords},e),r&&(e.use_pmt_rule="boolean"==typeof e.usePaymentRule&&e.usePaymentRule,e.usePaymentRule&&delete e.usePaymentRule,Object.keys(e).forEach((function(r){var t=n.convertCamelToUnderscore(r);t!==r&&(e[t]=e[r],delete e[r])}))),e}};function _(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.a.install({id:r.renderer_id,url:r.renderer_url,config:t,loaded:!1});try{i.setRender(R)}catch(e){n.logWarn("Prebid Error calling setRender on renderer",e)}return i.setEventHandlers({impression:function(){return n.logMessage("AppNexus outstream video impression event")},loaded:function(){return n.logMessage("AppNexus outstream video loaded event")},ended:function(){n.logMessage("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),i}function w(e){var r,t,a={};if(a.sizes=I(e.sizes),a.primary_size=a.sizes[0],a.ad_types=[],a.uuid=e.bidId,e.params.placementId?a.id=parseInt(e.params.placementId,10):a.code=e.params.invCode,a.allow_smaller_sizes=e.params.allowSmallerSizes||!1,a.use_pmt_rule=e.params.usePaymentRule||!1,a.prebid=!0,a.disable_psa=!0,e.params.reserve&&(a.reserve=e.params.reserve),e.params.position&&(a.position={above:1,below:2}[e.params.position]||0),e.params.trafficSourceCode&&(a.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(a.private_sizes=I(e.params.privateSizes)),e.params.supplyType&&(a.supply_type=e.params.supplyType),e.params.pubClick&&(a.pubclick=e.params.pubClick),e.params.extInvCode&&(a.ext_inv_code=e.params.extInvCode),e.params.externalImpId&&(a.external_imp_id=e.params.externalImpId),n.isEmpty(e.params.keywords)||(a.keywords=n.transformBidderParamKeywords(e.params.keywords)),(e.mediaType===s.c||n.deepAccess(e,"mediaTypes.".concat(s.c)))&&(a.ad_types.push(s.c),e.nativeParams)){var i=(r=e.nativeParams,t={},Object.keys(r).forEach((function(e){var a=g[e]&&g[e].serverName||g[e]||e,n=g[e]&&g[e].requiredParams;t[a]=m({},n,r[e]);var i=g[e]&&g[e].minimumParams;if(n&&i){var s=Object.keys(r[e]),o=Object.keys(n);0===s.filter((function(e){return!c()(o,e)})).length&&(t[a]=m({},t[a],i))}})),t);a[s.c]={layouts:[i]}}var o=n.deepAccess(e,"mediaTypes.".concat(s.d)),d=n.deepAccess(e,"mediaTypes.video.context");return(e.mediaType===s.d||o)&&a.ad_types.push(s.d),(e.mediaType===s.d||o&&"outstream"!==d)&&(a.require_asset_url=!0),e.params.video&&(a.video={},Object.keys(e.params.video).filter((function(e){return c()(y,e)})).forEach((function(r){return a.video[r]=e.params.video[r]}))),(n.isEmpty(e.mediaType)&&n.isEmpty(e.mediaTypes)||e.mediaType===s.b||e.mediaTypes&&e.mediaTypes[s.b])&&a.ad_types.push(s.b),a}function I(e){var r=[],t={};if(n.isArray(e)&&2===e.length&&!n.isArray(e[0]))t.width=parseInt(e[0],10),t.height=parseInt(e[1],10),r.push(t);else if("object"===u(e))for(var a=0;a<e.length;a++){var i=e[a];(t={}).width=parseInt(i[0],10),t.height=parseInt(i[1],10),r.push(t)}return r}function k(e){return!!e.params.user}function S(e){return!!parseInt(e.params.member,10)}function C(e){if(e.params)return!!e.params.app}function T(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function R(e){e.renderer.push((function(){window.ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},j.bind(null,e))}))}function j(e,r,t){e.renderer.handleVideoEvent({id:r,eventName:t})}Object(i.registerBidder)(h),window.asc.installedModules.push("testbidsBidAdapter")}},[792]);
ascChunk([16],{15:function(e,t,n){"use strict";t.b=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n))if("pubProvidedId"===n)t=t.concat(e.pubProvidedId);else{var o=a(e[n],n);o&&t.push(o)}return t},t.a=function(e){var t=[];return e.filter((function(e){return Object(o.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(n){Object(o.deepAccess)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&Object(o.deepAccess)(r,n+".source")&&t.push({source:r[n].source,bidders:e.config.bidders})}))})),t};var o=n(0),r={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=Object(o.pick)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},xandrUid:{source:"adnxs.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1}};function a(e,t){var n=r[t];if(n&&e){var a={};a.source=n.source;var i=Object(o.isFn)(n.getValue)?n.getValue(e):e;if(Object(o.isStr)(i)){var c={id:i,atype:n.atype};if(Object(o.isFn)(n.getUidExt)){var u=n.getUidExt(e);u&&(c.ext=u)}if(a.uids=[c],Object(o.isFn)(n.getEidExt)){var s=n.getEidExt(e);s&&(a.ext=s)}return a}}return null}},857:function(e,t,n){e.exports=n(858)},858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"PBJS_USER_ID_OPTOUT_NAME",(function(){return U})),n.d(t,"coreStorage",(function(){return C})),n.d(t,"syncDelay",(function(){return I})),n.d(t,"auctionDelay",(function(){return w})),t.setSubmoduleRegistry=function(e){L=e},t.setStoredValue=F,t.setStoredConsentData=J,t.findRootDomain=z,t.requestBidsHook=Y,n.d(t,"validateGdprEnforcement",(function(){return ne})),t.attachIdSystem=ie,t.init=ce;var o=n(11),r=n.n(o),a=n(3),i=n(10),c=n.n(i),u=n(14),s=n(9),d=n(5),l=n.n(d),f=n(8),g=n(15),b=n(7),p=n(0),m=n(12),y=n.n(m);function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var j,h,I,w,k,D="User ID",E="cookie",S="html5",x="_pbjs_userid_consent_data",A=30,U="_pbjs_id_optout",C=Object(b.a)("userid"),P=[],_=!1,T=[],V=[],L=[];var N=Math.random()<.5,M=["idl_env","lipb","lotamePanoramaId"],q={};function F(e,t){var n=e.config.storage,o="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null;try{var r=Object(p.isPlainObject)(t)?JSON.stringify(t):t,a=new Date(Date.now()+864e5*n.expires).toUTCString();n.type===E?(C.setCookie(n.name,r,a,"Lax",o),"number"==typeof n.refreshInSeconds&&C.setCookie("".concat(n.name,"_last"),(new Date).toUTCString(),a,"Lax",o)):n.type===S&&(C.setDataInLocalStorage("".concat(n.name,"_exp"),a),C.setDataInLocalStorage(n.name,encodeURIComponent(r)),"number"==typeof n.refreshInSeconds&&C.setDataInLocalStorage("".concat(n.name,"_last"),(new Date).toUTCString()))}catch(e){Object(p.logError)(e)}}function B(e){var t=Object(p.getPrebidInternal)().setEidPermissions;"function"==typeof t&&Object(p.isArray)(e)&&t(Object(g.a)(e))}function R(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=n?"".concat(e.name,"_").concat(n):e.name;try{if(e.type===E)t=C.getCookie(o);else if(e.type===S){var r=C.getDataFromLocalStorage("".concat(e.name,"_exp"));""===r?t=C.getDataFromLocalStorage(o):r&&new Date(r).getTime()-Date.now()>0&&(t=decodeURIComponent(C.getDataFromLocalStorage(o)))}"string"==typeof t&&"{"===t.trim().charAt(0)&&(t=JSON.parse(t))}catch(e){Object(p.logError)(e)}return t}function G(e){var t={consentString:"",gdprApplies:!1,apiVersion:0};return e&&(t.consentString=e.consentString,t.gdprApplies=e.gdprApplies,t.apiVersion=e.apiVersion),Object(p.cyrb53Hash)(JSON.stringify(t))}function J(e){try{var t=new Date(Date.now()+864e5*A).toUTCString();C.setCookie(x,G(e),t,"Lax")}catch(e){Object(p.logError)(e)}}function H(){try{return C.getCookie(x)}catch(e){Object(p.logError)(e)}}function W(e){if(e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies){if(!e.consentString)return!1;if(1===e.apiVersion&&!1===Object(p.deepAccess)(e,"vendorData.purposeConsents.1"))return!1;if(2===e.apiVersion&&!1===Object(p.deepAccess)(e,"vendorData.purpose.consents.1"))return!1}return!0}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!C.cookiesAreEnabled())return e;var t,n,o=e.split(".");if(2==o.length)return e;var r=-2,a="_rdc".concat(Date.now()),i="writeable";do{t=o.slice(r).join(".");var c=new Date(Object(p.timestamp)()+1e4).toUTCString();C.setCookie(a,i,c,"Lax",t,void 0);var u=C.getCookie(a,void 0);u===i?(n=!1,C.setCookie(a,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,t,void 0)):(r+=-1,n=Math.abs(r)<=o.length)}while(n);return t}function $(e,t){var n=function(){};t&&(n=Object(p.delayExecution)((function(){clearTimeout(h),t()}),e.length)),e.forEach((function(e){e.callback((function(t){t?(e.config.storage&&F(e,t),e.idObj=e.submodule.decode(t,e.config)):Object(p.logInfo)("".concat(D,": ").concat(e.submodule.name," - request id responded with an empty value")),n()})),e.callback=void 0}))}function K(e){return Array.isArray(e)&&e.length?e.filter((function(e){return Object(p.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,t){return Object.keys(t.idObj).forEach((function(n){e[n]=t.idObj[n]})),e}),{}):{}}function Q(e,t){[e].some((function(e){return!Array.isArray(e)||!e.length}))||(t.forEach((function(e){if(!e.idObj)return!1;Object.keys(e.idObj).forEach((function(t){q[t]=e.idObj[t]}))})),Object(p.logMessage)("A/B test for UserIDs | cache updated:",q),M.forEach((function(e){var n=e+"test",o="na";q[e]?(o=N,N||t.forEach((function(t){t.idObj&&t.idObj[e]&&void 0!==t.idObj[e]&&(t.idObj=void 0)}))):Object(p.logMessage)("A/B test for UserIDs | Not in cache, skipping test:",e),(window.googletag=window.googletag||{cmd:[]}).cmd.push((function(){Object(p.logMessage)("A/B test for UserIDs | Targeting:",n,o),window.googletag.pubads().setTargeting(n,o.toString())}))})),e.forEach((function(e){e.bids&&Object(p.isArray)(e.bids)&&e.bids.forEach((function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?e.filter((function(e){return!e.config.bidders||!Object(p.isArray)(e.config.bidders)||y()(e.config.bidders,t)})).filter((function(e){return Object(p.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,t){return Object.keys(t.idObj).forEach((function(n){e[n]=t.idObj[n]})),e}),{}):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=Object(g.b)(n))}))})))}function X(e){var t=!1;if(void 0===j&&(j=function(e,t){var n=ne(e,t),o=n.userIdModules;if(!n.hasValidated&&!W(t))return Object(p.logWarn)("".concat(D," - gdpr permission not valid for local storage or cookies, exit module")),[];var r=H();return J(t),o.reduce((function(e,n){return oe(n,t,r,!1),e.push(n),e}),[])}(T,s.gdprDataHandler.getConsentData())).length){B(j);var n=j.filter((function(e){return Object(p.isFn)(e.callback)}));if(n.length)if(e&&w>0){t=!0;var o=!1,r=function(){o||(o=!0,e())};Object(p.logInfo)("".concat(D," - auction delayed by ").concat(w," at most to fetch ids")),h=setTimeout(r,w),$(n,r)}else c.a.on(l.a.EVENTS.AUCTION_END,(function e(){c.a.off(l.a.EVENTS.AUCTION_END,e),I>0?setTimeout((function(){$(n)}),I):$(n)}))}e&&!t&&e()}function Y(e,t){X((function(){Q(t.adUnits||Object(u.a)().adUnits,j);var n=k&&(ee()||[]).find((function(e){return e.source===k}));if(n&&"string"==typeof Object(p.deepAccess)(n,"uids.0.id")){var o=n.uids[0].id.replace(/[\W_]/g,"");o.length>=32&&o.length<=150?Object(p.isGptPubadsDefined)()?window.googletag.pubads().setPublisherProvidedId(o):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(o)}))):Object(p.logWarn)("User ID - Googletag Publisher Provided ID for ".concat(k," is not between 32 and 150 characters - ").concat(o))}e.call(this,t)}))}function Z(){return X(),K(j)}function ee(){return X(),Object(g.b)(K(j))}function te(e,t){var n=e?e.submoduleNames:null;n||(n=[]),X((function(){var e=s.gdprDataHandler.getConsentData(),o=ne(T,e),r=o.userIdModules;if(o.hasValidated||W(e)){var a=H();J(e);var i,c=[],u=O(r);try{for(u.s();!(i=u.n()).done;){var d=i.value;n.length>0&&-1===n.indexOf(d.submodule.name)||(Object(p.logInfo)("".concat(D," - refreshing ").concat(d.submodule.name)),oe(d,e,a,!0),re(d),j.length&&B(j),Object(p.isFn)(d.callback)&&c.push(d))}}catch(e){u.e(e)}finally{u.f()}c.length>0&&$(c),t&&t()}else Object(p.logWarn)("".concat(D," - gdpr permission not valid for local storage or cookies, exit module"))}))}M.forEach((function(e){q[e]})),Object(p.logMessage)("A/B test for UserIDs | enabled:",N," | for IDs: ",M);var ne=Object(f.b)("sync",(function(e,t){return{userIdModules:e,hasValidated:t&&t.hasValidated}}),"validateGdprEnforcement");function oe(e,t,n,o){if(e.config.storage){var r,a=R(e.config.storage),i=!1;if("number"==typeof e.config.storage.refreshInSeconds){var c=new Date(R(e.config.storage,"last"));i=c&&Date.now()-c.getTime()>1e3*e.config.storage.refreshInSeconds}!a||i||o||!function(e,t){return null!=e&&e===G(t)}(n,t)?r=e.submodule.getId(e.config,t,a):"function"==typeof e.submodule.extendId&&(r=e.submodule.extendId(e.config,t,a)),Object(p.isPlainObject)(r)&&(r.id&&(F(e,r.id),a=r.id),"function"==typeof r.callback&&(e.callback=r.callback)),a&&(e.idObj=e.submodule.decode(a,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var u=e.submodule.getId(e.config,t,void 0);Object(p.isPlainObject)(u)&&("function"==typeof u.callback&&(e.callback=u.callback),u.id&&(e.idObj=e.submodule.decode(u.id,e.config)))}}function re(e){for(var t=!1,n=0;n<j.length;n++)if(e.config.name.toLowerCase()===j[n].config.name.toLowerCase()){t=!0,j[n]=e;break}t||j.push(e)}function ae(){var e=function(e,t,n){return Array.isArray(e)?e.reduce((function(e,t){return!t||Object(p.isEmptyStr)(t.name)||(!t.storage||Object(p.isEmptyStr)(t.storage.type)||Object(p.isEmptyStr)(t.storage.name)||-1===n.indexOf(t.storage.type)?Object(p.isPlainObject)(t.value)?e.push(t):t.storage||t.value||e.push(t):e.push(t)),e}),[]):[]}(V,0,P);if(e.length){var t=L.filter((function(e){return!r()(T,(function(t){return t.name===e.name}))}));T=t.map((function(t){var n=r()(e,(function(e){return e.name&&(e.name.toLowerCase()===t.name.toLowerCase()||t.aliasName&&e.name.toLowerCase()===t.aliasName.toLowerCase())}));return n&&t.name!==n.name&&(n.name=t.name),t.findRootDomain=z,n?{submodule:t,config:n,callback:void 0,idObj:void 0}:null})).filter((function(e){return null!==e})),!_&&T.length&&(Object(u.a)().requestBids.before(Y,40),Object(p.logInfo)("".concat(D," - usersync config updated for ").concat(T.length," submodules: "),T.map((function(e){return e.submodule.name}))),_=!0)}}function ie(e){r()(L,(function(t){return t.name===e.name}))||(L.push(e),ae())}function ce(e){k=void 0,T=[],V=[],_=!1,j=void 0,-1!==(P=[C.localStorageIsEnabled()?S:null,C.cookiesAreEnabled()?E:null].filter((function(e){return null!==e}))).indexOf(E)&&C.getCookie(U)?Object(p.logInfo)("".concat(D," - opt-out cookie found, exit module")):-1!==P.indexOf(S)&&C.getDataFromLocalStorage(U)?Object(p.logInfo)("".concat(D," - opt-out localStorage found, exit module")):(e.getConfig("userSync",(function(e){var t=e.userSync;k=t.ppid,t&&t.userIds&&(V=t.userIds,I=Object(p.isNumber)(t.syncDelayUserIds)?t.syncDelayUserIds:500,w=Object(p.isNumber)(t.auctionDelay)?t.auctionDelay:0,ae())})),Object(u.a)().getUserIds=Z,Object(u.a)().getUserIdsAsEids=ee,Object(u.a)().refreshUserIds=te)}ce(a.b),Object(f.c)("userId",ie),window.asc.installedModules.push("userId")}},[857]);
asc.processQueue();