!function(u){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,c=[];a<e.length;a++)i=e[a],d[i]&&c.push(d[i][0]),d[i]=0;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);for(s&&s(e,t,n);c.length;)c.shift()();if(n)for(a=0;a<n.length;a++)o=f(f.s=n[a]);return o};var n={},d={263:0};function f(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return u[e].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=u,f.c=n,f.d=function(e,t,n){f.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="",f.oe=function(e){throw console.error(e),e},f(f.s=660)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"internal",function(){return _}),n.d(t,"bind",function(){return B}),t.replaceTokenInString=function(i,e,o){return re(e,function(e,t){e=void 0===e?"":e;var n=o+t.toUpperCase()+o,r=new RegExp(n,"g");i=i.replace(r,e)}),i},t.getUniqueIdentifierStr=x,t.generateUUID=function e(t){return t?(t^D()>>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.transformAdServerTargetingObj=function(t){return t&&0<Object.getOwnPropertyNames(t).length?pe(t).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(ge(t,e)))}).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(","),r=/^(\d)+x(\d)+$/i;if(n)for(var i in n)oe(n,i)&&n[i].match(r)&&t.push(n[i])}else if("object"===b(e)){var o=e.length;if(0<o)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(k(e));else for(var a=0;a<o;a++)t.push(k(e[a]))}return t},t.parseGPTSingleSizeArray=k,t.parseGPTSingleSizeArrayToRtbSize=function(e){if(P(e))return{w:e[0],h:e[1]}},t.getTopWindowLocation=M,t.getTopFrameReferrer=q,t.getAncestorOrigins=G,t.getWindowTop=W,t.getWindowSelf=L,t.getWindowLocation=z,t.getTopWindowUrl=function(){var t;try{t=_.getTopWindowLocation().href}catch(e){t=""}return t},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logMessage=F,t.logInfo=V,t.logWarn=H,t.logError=K,t.hasConsoleLogger=function(){return I},t.debugTurnedOn=Y,t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=x(),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){var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t?decodeURIComponent(t[1].replace(/\+/g," ")):""},t.hasValidBidRequest=function(e,n,t){var r=!1;function i(e,t){t===n[o]&&(r=!0)}for(var o=0;o<n.length;o++)if(r=!1,re(e,i),!r)return K("Params are missing for bid request. One of these required paramaters are missing: "+n,t),!1;return!0},t.addEventHandler=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent&&e.attachEvent("on"+t,n)},t.isA=Q,t.isFn=X,t.isStr=$,t.isArray=Z,t.isNumber=ee,t.isPlainObject=te,t.isBoolean=function(e){return Q(e,A)},t.isEmpty=ne,t.isEmptyStr=function(e){return $(e)&&(!e||0===e.length)},t._each=re,t.contains=function(e,t){if(ne(e))return!1;if(X(e.indexOf))return-1!==e.indexOf(t);var n=e.length;for(;n--;)if(e[n]===t)return!0;return!1},n.d(t,"indexOf",function(){return ie}),t._map=function(n,r){if(ne(n))return[];if(X(n.map))return n.map(r);var i=[];return re(n,function(e,t){i.push(r(e,t,n))}),i},t.hasOwn=oe,t.insertElement=ae,t.triggerPixel=ce,t.callBurl=function(e){var t=e.source,n=e.burl;t===y.S2S.SRC&&n&&_.triggerPixel(n)},t.insertHtmlIntoIframe=function(e){if(!e)return;var t=document.createElement("iframe");t.id=x(),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",_.insertElement(t,document,"body"),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close()},t.insertUserSyncIframe=ue,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=se,t.getIframeDocument=function(e){if(!e)return;var t;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){_.logError("Cannot get iframe document",e)}return t},t.getValueString=de,t.uniques=fe,t.flatten=le,t.getBidRequest=function(n,e){return n?(e.some(function(e){var t=c()(e.bids,function(t){return["bidId","adId","bid_id"].some(function(e){return t[e]===n})});return t&&(r=t),t}),r):void 0;var r},t.getKeys=pe,t.getValue=ge,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits).map(function(e){return e.bids.map(function(e){return e.bidder}).reduce(le,[])}).reduce(le).filter(fe)},t.isGptPubadsDefined=function(){if(window.googletag&&X(window.googletag.pubads)&&X(window.googletag.pubads().getSlots))return!0},n.d(t,"getHighestCpm",function(){return be}),n.d(t,"getOldestHighestCpmBid",function(){return ye}),n.d(t,"getLatestHighestCpmBid",function(){return ve}),t.shuffle=function(e){var t=e.length;for(;0<t;){var n=Math.floor(Math.random()*t),r=e[--t];e[t]=e[n],e[n]=r}return e},t.adUnitsFilter=function(e,t){return s()(e,t&&t.adUnitCode)},t.isSrcdocSupported=function(e){return e.defaultView&&e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)},t.deepClone=me,t.inIframe=Se,t.isSafariBrowser=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/\$\{AUCTION_PRICE\}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.checkCookieSupport=Ee,t.cookiesAreEnabled=function(){if(_.checkCookieSupport())return!0;return window.document.cookie="prebid.cookieTest",-1!=window.document.cookie.indexOf("prebid.cookieTest")},t.getCookie=function(e){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null},t.setCookie=function(e,t,n){document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(""!==n?"; expires=".concat(n):"","; path=/")},t.localStorageIsEnabled=function(){try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){return!1}},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(null,arguments)}},t.groupBy=function(e,n){return e.reduce(function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e},{})},t.createContentToExecuteExtScriptInFriendlyFrame=function(e){return e?'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><base target="_top" /><script>inDapIF=true;<\/script></head><body>\x3c!--PRE_SCRIPT_TAG_MACRO--\x3e<script src="'.concat(e,'"><\/script>\x3c!--POST_SCRIPT_TAG_MACRO--\x3e</body></html>'):""},t.getDefinedParams=function(n,e){return e.filter(function(e){return n[e]}).reduce(function(e,t){return g(e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n[t]))},{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];if(!Object.keys(e).every(function(e){return s()(t,e)}))return!1;if(e.video&&e.video.context)return s()(["instream","outstream","adpod"],e.video.context);return!0},t.getBidderRequest=function(e,t,n){return c()(e,function(e){return 0<e.bids.filter(function(e){return e.bidder===t&&e.adUnitCode===n}).length})||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,n){return e.filter(function(e){return e.code===t}).map(function(e){return e.bids}).reduce(le,[]).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(t){return function(e){return Ae(t,e)}},t.isSlotMatchingAdUnitCode=function(t){return function(e){return Ae(e,t)}},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.deletePropertyFromObject=function(e,t){var n=g({},e);return delete n[t],n},t.isInteger=Te,t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")},t.cleanObj=function(n){return Object.keys(n).reduce(function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e},{})},t.pick=function(a,c){return"object"===b(a)?c.reduce(function(e,t,n){if("function"==typeof t)return e;var r=t,i=t.match(/^(.+?)\sas\s(.+?)$/i);i&&(t=i[1],r=i[2]);var o=a[t];return"function"==typeof c[n+1]&&(o=c[n+1](o,e)),void 0!==o&&(e[r]=o),e},{}):{}},t.transformBidderParamKeywords=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"keywords",i=[];return re(e,function(e,t){if(Z(e)){var n=[];re(e,function(e){!(e=de(r+"."+t,e))&&""!==e||n.push(e)}),e=n}else{if(!$(e=de(r+"."+t,e)))return;e=[e]}i.push({key:t,value:e})}),i},t.convertTypes=function(t,n){return Object.keys(t).forEach(function(e){n[e]&&(X(t[e])?n[e]=t[e](n[e]):n[e]=function(e,t){return"string"===e?t&&t.toString():"number"===e?Number(t):t}(t[e],n[e]),isNaN(n[e])&&delete n.key)}),n},t.setDataInLocalStorage=function(e,t){Oe()&&window.localStorage.setItem(e,t)},t.getDataFromLocalStorage=function(e){if(Oe())return window.localStorage.getItem(e)},t.hasLocalStorage=Oe,t.isArrayOfNums=function(e,t){return Z(e)&&(!t||e.length===t)&&e.every(function(e){return Te(e)})},t.fill=function(e,t){for(var n=[],r=0;r<t;r++){var i=te(e)?me(e):e;n.push(i)}return n},t.chunk=function(e,t){for(var n=[],r=0;r<Math.ceil(e.length/t);r++){var i=r*t,o=i+t;n.push(e.slice(i,o))}return n},t.getMinValueFromArray=function(e){return Math.min.apply(Math,p(e))},t.getMaxValueFromArray=function(e){return Math.max.apply(Math,p(e))},t.compareOn=function(n){return function(e,t){return e[n]<t[n]?1:e[n]>t[n]?-1:0}};var r=n(3),i=n(88),o=n.n(i),a=n(12),c=n.n(a),u=n(9),s=n.n(u),d=n(10),f=n(89);n.d(t,"deepAccess",function(){return f.a});var l=n(90);function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"deepSetValue",function(){return l.a});var y=n(4),v="Array",h="String",m="Function",S="Number",E="Object",A="Boolean",T=Object.prototype.toString,O=Boolean(window.console),I=Boolean(O&&window.console.log),w=Boolean(O&&window.console.info),j=Boolean(O&&window.console.warn),C=Boolean(O&&window.console.error),_={checkCookieSupport:Ee,createTrackPixelIframeHtml:se,getWindowSelf:L,getWindowTop:W,getAncestorOrigins:G,getTopFrameReferrer:q,getWindowLocation:z,getTopWindowLocation:M,insertUserSyncIframe:ue,insertElement:ae,isFn:X,triggerPixel:ce,logError:K,logWarn:H,logMessage:F,logInfo:V},U={},B=function(e,t){return t}.bind(null,1,U)()===U?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)))}};var R,N=(R=0,function(){return++R});function x(){return N()+Math.random().toString(16).substr(2)}function D(){return window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random()}function k(e){if(P(e))return e[0]+"x"+e[1]}function P(e){return Z(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function M(){if(Se()){var e;try{e=_.getAncestorOrigins()||_.getTopFrameReferrer()}catch(e){V("could not obtain top window location",e)}if(e)return Object(d.c)(e,{decodeSearchAsString:!0})}return _.getWindowLocation()}function q(){try{window.top.location.toString();for(var e,t="";(e=e?e.parent:window).document&&e.document.referrer&&(t=e.document.referrer),e!==window.top;);return t}catch(e){return window.document.referrer}}function G(){if(window.document.location&&window.document.location.ancestorOrigins&&1<=window.document.location.ancestorOrigins.length)return window.document.location.ancestorOrigins[window.document.location.ancestorOrigins.length-1]}function W(){return window.top}function L(){return window.self}function z(){return window.location}function F(){Y()&&I&&console.log.apply(console,J(arguments,"MESSAGE:"))}function V(){Y()&&w&&console.info.apply(console,J(arguments,"INFO:"))}function H(){Y()&&j&&console.warn.apply(console,J(arguments,"WARNING:"))}function K(){Y()&&C&&console.error.apply(console,J(arguments,"ERROR:"))}function J(e,t){return e=[].slice.call(e),t&&e.unshift(t),e.unshift("display: inline-block; color: #fff; background: #3b88c3; padding: 1px 4px; border-radius: 3px;"),e.unshift("%cPrebid"),e}function Y(){return!!r.b.getConfig("debug")}function Q(e,t){return T.call(e)==="[object "+t+"]"}function X(e){return Q(e,m)}function $(e){return Q(e,h)}function Z(e){return Q(e,v)}function ee(e){return Q(e,S)}function te(e){return Q(e,E)}function ne(e){if(!e)return!0;if(Z(e)||$(e))return!(0<e.length);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function re(e,t){if(!ne(e)){if(X(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(0<r)for(;n<r;n++)t(e[n],n,e);else for(n in e)hasOwnProperty.call(e,n)&&t.call(this,e[n],n)}}var ie=function(){if(Array.prototype.indexOf)return Array.prototype.indexOf}();function oe(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):void 0!==e[t]&&e.constructor.prototype[t]!==e[t]}function ae(e,t,n,r){var i;t=t||document,i=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if((i=i.length?i:t.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function ce(e,t){var n=new Image;t&&_.isFn(t)&&(n.addEventListener("load",t),n.addEventListener("error",t)),n.src=e}function ue(e,t){var n=_.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=n;var i=r.firstChild;t&&_.isFn(t)&&(i.addEventListener("load",t),i.addEventListener("error",t)),_.insertElement(i,document,"html",!0)}function se(e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return e?((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(e=encodeURI(e)),t=t&&'sandbox="'.concat(t,'"'),"<iframe ".concat(t,' id="').concat(x(),'"\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 de(e,t,n){return null==t?n:$(t)?t:ee(t)?t.toString():void _.logWarn("Unsuported type for param: "+e+" required type: String")}function fe(e,t,n){return n.indexOf(e)===t}function le(e,t){return e.concat(t)}function pe(e){return Object.keys(e)}function ge(e,t){return e[t]}var be=he("timeToRespond",function(e,t){return t<e}),ye=he("responseTimestamp",function(e,t){return t<e}),ve=he("responseTimestamp",function(e,t){return e<t});function he(n,r){return function(e,t){return e.cpm===t.cpm?r(e[n],t[n])?t:e:e.cpm<t.cpm?t:e}}function me(e){return o()(e)}function Se(){try{return _.getWindowSelf()!==_.getWindowTop()}catch(e){return!0}}function Ee(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}var Ae=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function Te(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Oe(){try{return!!window.localStorage}catch(e){K("Local storage api disabled")}}},1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerBidder=function(t){var n=Array.isArray(t.supportedMediaTypes)?{supportedMediaTypes:t.supportedMediaTypes}:void 0;function r(e){var t=I(e);a.default.registerBidAdapter(t,e.code,n)}r(t),Array.isArray(t.aliases)&&t.aliases.forEach(function(e){a.default.aliasRegistry[e]=t.code,r(A({},t,{code:e}))})},t.newBidder=I,t.preloadBidderMappingFile=w,t.getIabSubCategory=function(t,e){var n=a.default.getBidAdapter(t);if(n.getSpec().getMappingFileInfo){var r=n.getSpec().getMappingFileInfo(),i=r.localStorageKey?r.localStorageKey:n.getBidderCode(),o=Object(h.getDataFromLocalStorage)(i);if(o){try{o=JSON.parse(o)}catch(e){Object(h.logError)("Failed to parse ".concat(t," mapping data stored in local storage"))}return o.mapping[e]?o.mapping[e]:null}}},t.isValid=j;var r=n(41),a=n(7),i=n(3),b=n(23),o=n(26),c=n(25),u=n(31),s=n(4),y=n.n(s),d=n(8),v=n.n(d),f=n(9),l=n.n(f),p=n(5),h=n(0),g=n(2),m=n(13);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}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 A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var T=["requestId","cpm","ttl","creativeId","netRevenue","currency"],O=1;function I(l){return A(new r.a(l.code),{getSpec:function(){return Object.freeze(l)},registerSyncs:p,callBids:function(o,a,e,n,c){if(Array.isArray(o.bids)){var u={},s=[],t=o.bids.filter(g);if(0!==t.length){var d={};t.forEach(function(e){(d[e.bidId]=e).adUnitCode||(e.adUnitCode=e.placementCode)});var r=l.buildRequests(t,o);if(r&&0!==r.length){Array.isArray(r)||(r=[r]);var f=Object(h.delayExecution)(i,r.length);r.forEach(function(i){switch(i.method){case"GET":n("".concat(i.url).concat(function(e){if(e)return"?".concat("object"===E(e)?Object(h.parseQueryStringParameters)(e):e);return""}(i.data)),{success:e,error:t},void 0,A({method:"GET",withCredentials:!0},i.options));break;case"POST":n(i.url,{success:e,error:t},"string"==typeof i.data?i.data:JSON.stringify(i.data),A({method:"POST",contentType:"text/plain",withCredentials:!0},i.options));break;default:Object(h.logWarn)("Skipping invalid request from ".concat(l.code,". Request type ").concat(i.type," must be GET or POST")),f()}function e(e,t){c(l.code);try{e=JSON.parse(e)}catch(e){}var n;e={body:e,headers:{get:t.getResponseHeader.bind(t)}},s.push(e);try{n=l.interpretResponse(e,i)}catch(e){return Object(h.logError)("Bidder ".concat(l.code," failed to interpret the server's response. Continuing without bids"),null,e),void f()}function r(e){var t=d[e.requestId];if(t){var n=A(Object(b.a)(y.a.STATUS.GOOD,t),e);!function(e,t){u[e]=!0,j(e,t,[o])&&a(e,t)}(t.adUnitCode,n)}else Object(h.logWarn)("Bidder ".concat(l.code," made bid for unknown request ID: ").concat(e.requestId,". Ignoring."))}n&&(n.forEach?n.forEach(r):r(n)),f(n)}function t(e){c(l.code),Object(h.logError)("Server call for ".concat(l.code," failed: ").concat(e,". Continuing without bids.")),f()}})}else i()}else i()}function i(){e(),v.a.emit(y.a.EVENTS.BIDDER_DONE,o),p(s,o.gdprConsent)}}});function p(e,t){if(l.getUserSyncs){var n=i.b.getConfig("userSync.filterSettings"),r=l.getUserSyncs({iframeEnabled:!!(i.b.getConfig("userSync.iframeEnabled")||n&&(n.iframe||n.all)),pixelEnabled:!!(i.b.getConfig("userSync.pixelEnabled")||n&&(n.image||n.all))},e,t);r&&(Array.isArray(r)||(r=[r]),r.forEach(function(e){o.a.registerSync(e.type,l.code,e.url)}))}}function g(e){return!!l.isBidRequestValid(e)||(Object(h.logWarn)("Invalid bid sent to bidder ".concat(l.code,": ").concat(JSON.stringify(e))),!1)}}function w(e,t){if(!i.b.getConfig("adpod.brandCategoryExclusion"))return e.call(this,t);t.filter(function(e){return Object(h.deepAccess)(e,"mediaTypes.video.context")===g.a}).map(function(e){return e.bids.map(function(e){return e.bidder})}).reduce(h.flatten,[]).filter(h.uniques).forEach(function(n){var e=a.default.getBidAdapter(n);if(e.getSpec().getMappingFileInfo){var t=e.getSpec().getMappingFileInfo(),r=t.refreshInDays?t.refreshInDays:O,i=t.localStorageKey?t.localStorageKey:e.getSpec().code,o=Object(h.getDataFromLocalStorage)(i);(!o||Object(h.timestamp)()<o.lastUpdated+24*r*60*60*1e3)&&Object(p.a)(t.url,{success:function(e){try{e=JSON.parse(e);var t={lastUpdated:Object(h.timestamp)(),mapping:e.mapping};Object(h.setDataInLocalStorage)(i,JSON.stringify(t))}catch(e){Object(h.logError)("Failed to parse ".concat(n," bidder translation mapping file"))}},error:function(){Object(h.logError)("Failed to load ".concat(n," bidder translation file"))}})}}),e.call(this,t)}function j(e,t,n){function r(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(i=Object.keys(t),T.every(function(e){return l()(i,e)&&!l()([void 0,null],t[e])})?"native"!==t.mediaType||Object(c.f)(t,n)?"video"!==t.mediaType||Object(u.d)(t,n)?!("banner"===t.mediaType&&!function(e,t,n){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 r=Object(h.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=Object(h.parseSizesInput)(i);if(1!==o.length)return!1;var a=S(o[0].split("x"),2),c=a[0],u=a[1];return t.width=parseInt(c,10),t.height=parseInt(u,10),!0}(e,t,n))||(Object(h.logError)(r("Banner bids require a width and height")),!1):(Object(h.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):(Object(h.logError)(r("Native bid missing some required properties.")),!1):(Object(h.logError)(r("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);var i}Object(m.a)("checkAdUnitSetup").before(w)},10:function(e,t,n){"use strict";function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return e?e.replace(/^\?/,"").split("&").reduce(function(e,t){var n=o(t.split("="),2),r=n[0],i=n[1];return/\[\]$/.test(r)?(e[r=r.replace("[]","")]=e[r]||[],e[r].push(i)):e[r]=i||"",e},{}):{}}function r(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("&")}t.d=i,t.b=r,t.c=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var r=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:r?n.search:i(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.a=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(r(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}},11:function(e,t,n){"use strict";t.a=i,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var u=n(50),s=n(0),r=n(12),d=n.n(r);function i(e){var t=this,n=e.url,r=e.config,i=e.id,o=e.callback,a=e.loaded,c=e.adUnitCode;this.url=n,this.config=r,this.handlers={},this.id=i,this.loaded=a,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):s.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=o||function(){t.loaded=!0,t.process()},!function(t){var e=pbjs.adUnits,n=d()(e,function(e){return e.code===t});return!!(n&&n.renderer&&n.renderer.url&&n.renderer.render)}(c)?Object(u.b)(n,this.callback,!0):s.logWarn("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(c))}i.install=function(e){return new i({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},i.prototype.getConfig=function(){return this.config},i.prototype.setRender=function(e){this.render=e},i.prototype.setEventHandlers=function(e){this.handlers=e},i.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),s.logMessage("Prebid Renderer event for id ".concat(t," type ").concat(n))},i.prototype.process=function(){for(;0<this.cmd.length;)try{this.cmd.shift().call()}catch(e){s.logError("Error processing Renderer command: ",e)}}},12:function(e,t,n){n(80),e.exports=n(16).Array.find},13:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),t.d=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:15;0===e.getHooks({hook:t}).length&&e.before(t,n)},t.c=function(e,t){o("async",function(e){e.forEach(function(e){return t.apply(void 0,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e))})},e)([])},t.e=function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a(e).before(function(e,t){t.push(n),e(t)})};var r=n(91),i=n.n(r);var o=i()({ready:i.a.SYNC|i.a.ASYNC|i.a.QUEUE}),a=o.get},130:function(e,t,n){"use strict";var r=n(15),i=n(44)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(37)(o)},133:function(e,t,n){"use strict";t.a=function(){addEventListener("message",p,!1)};var r=n(8),o=n.n(r),a=n(25),i=n(4),d=(n.n(i),n(0)),c=n(28),u=n(12),f=n.n(u),l=n(11),s=i.EVENTS.BID_WON;function p(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId){var r=f()(c.a.getBidsReceived(),function(e){return e.adId===n.adId});if(r&&"Prebid Request"===n.message&&(function(e,t,n){var r=e.adId,i=e.ad,o=e.adUrl,a=e.width,c=e.height,u=e.renderer,s=e.cpm;Object(l.c)(u)?Object(l.b)(u,e):r&&(function(e){var r=e.adUnitCode,i=e.width,o=e.height;function a(e){var t=function(e){return window.googletag?function(e){return f()(window.googletag.pubads().getSlots().filter(Object(d.isSlotMatchingAdUnitCode)(e)),function(e){return e}).getSlotElementId()}(e):window.apntag?function(e){var t=window.apntag.getTag(e);return t&&t.targetId}(e):e}(r),n=document.getElementById(t);return n&&n.querySelector(e)}["div:last-child","div:last-child iframe"].forEach(function(e){var t=a(e);if(t){var n=t.style;n.width=i+"px",n.height=o+"px"}else Object(d.logWarn)("Unable to locate matching page element for adUnitCode ".concat(r,".  Can't resize it to ad's dimensions.  Please review setup."))})}(e),n.postMessage(JSON.stringify({message:"Prebid Response",ad:Object(d.replaceAuctionPrice)(i,s),adUrl:Object(d.replaceAuctionPrice)(o,s),adId:r,width:a,height:c}),t))}(r,n.adServerDomain,e.source),c.a.addWinningBid(r),o.a.emit(s,r)),r&&"Prebid Native"===n.message){if("assetRequest"===n.action){var i=Object(a.c)(n,r);return void e.source.postMessage(JSON.stringify(i),e.origin)}if("click"===Object(a.b)(n,r))return;c.a.addWinningBid(r),o.a.emit(s,r)}}}},134:function(e,t,n){"use strict";t.a=function(e){var t;try{e=e||window.sessionStorage,t=JSON.parse(e.getItem(u))}catch(e){}t&&f(t,!0)};var r=n(3),o=n(0),i=n(39);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c,u="pbjs:debugging";function s(e){Object(o.logMessage)("DEBUG: "+e)}function d(){i.c.getHooks({hook:c}).remove()}function f(e,t){var n=1<arguments.length&&void 0!==t&&t;r.b.setConfig({debug:!0}),s("bidder overrides enabled".concat(n?" from session":"")),d(),c=function(e,r,i){if(Array.isArray(this.bidders)&&-1===this.bidders.indexOf(i.bidderCode))return void function(e){Object(o.logWarn)("DEBUG: "+e)}("bidder '".concat(i.bidderCode,"' excluded from auction by bidder overrides"));Array.isArray(this.bids)&&this.bids.forEach(function(n){n.bidder&&n.bidder!==i.bidderCode||n.adUnitCode&&n.adUnitCode!==r||(i=a({},i),Object.keys(n).filter(function(e){return-1===["bidder","adUnitCode"].indexOf(e)}).forEach(function(e){var t=n[e];s("bidder overrides changed '".concat(r,"/").concat(i.bidderCode,"' bid.").concat(e," from '").concat(i[e],"' to '").concat(t,"'")),i[e]=t}))});e(r,i)}.bind(e),i.c.before(c,5)}function l(e){if(e.enabled){try{window.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){}f(e)}else{d(),s("bidder overrides disabled");try{window.sessionStorage.removeItem(u)}catch(e){}}}r.b.getConfig("debugging",function(e){return l(e.debugging)})},135:function(e,t,n){n(136),n(65),n(145),n(147),n(151),n(154),n(156),e.exports=n(16).Set},136:function(e,t){},137:function(e,t,n){var u=n(46),s=n(35);e.exports=function(c){return function(e,t){var n,r,i=String(s(e)),o=u(t),a=i.length;return o<0||a<=o?c?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?c?i.charAt(o):n:c?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}},138:function(e,t,n){e.exports=n(21)},139:function(e,t,n){"use strict";var r=n(66),i=n(43),o=n(53),a={};n(21)(a,n(14)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},14:function(e,t,n){var r=n(57)("wks"),i=n(47),o=n(19).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},140:function(e,t,n){var a=n(20),c=n(29),u=n(141);e.exports=n(22)?Object.defineProperties:function(e,t){c(e);for(var n,r=u(t),i=r.length,o=0;o<i;)a.f(e,n=r[o++],t[n]);return e}},141:function(e,t,n){var r=n(142),i=n(67);e.exports=Object.keys||function(e){return r(e,i)}},142:function(e,t,n){var a=n(30),c=n(48),u=n(59)(!1),s=n(52)("IE_PROTO");e.exports=function(e,t){var n,r=c(e),i=0,o=[];for(n in r)n!=s&&a(r,n)&&o.push(n);for(;t.length>i;)a(r,n=t[i++])&&(~u(o,n)||o.push(n));return o}},143:function(e,t,n){var r=n(19).document;e.exports=r&&r.documentElement},144:function(e,t,n){var r=n(30),i=n(45),o=n(52)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},145:function(e,t,n){n(146);for(var r=n(19),i=n(21),o=n(32),a=n(14)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<c.length;u++){var s=c[u],d=r[s],f=d&&d.prototype;f&&!f[a]&&i(f,a,s),o[s]=o.Array}},146:function(e,t,n){"use strict";var r=n(37),i=n(68),o=n(32),a=n(48);e.exports=n(51)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},147:function(e,t,n){"use strict";var r=n(148),i=n(76);e.exports=n(150)("Set",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},148:function(e,t,n){"use strict";function a(e,t){var n,r=g(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n}var c=n(20).f,u=n(66),s=n(69),d=n(24),f=n(70),l=n(40),r=n(51),i=n(68),o=n(149),p=n(22),g=n(75).fastKey,b=n(76),y=p?"_s":"size";e.exports={getConstructor:function(e,o,n,r){var i=e(function(e,t){f(e,i,o,"_i"),e._t=o,e._i=u(null),e._f=void 0,e._l=void 0,e[y]=0,null!=t&&l(t,n,e[r],e)});return s(i.prototype,{clear:function(){for(var e=b(this,o),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[y]=0},delete:function(e){var t=b(this,o),n=a(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[y]--}return!!n},forEach:function(e,t){b(this,o);for(var n,r=d(e,1<arguments.length?t:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!a(b(this,o),e)}}),p&&c(i.prototype,"size",{get:function(){return b(this,o)[y]}}),i},def:function(e,t,n){var r,i,o=a(e,t);return o?o.v=n:(e._l=o={i:i=g(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[y]++,"F"!==i&&(e._i[i]=o)),e},getEntry:a,setStrong:function(e,n,t){r(e,n,function(e,t){this._t=b(e,n),this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?i(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,i(1))},t?"entries":"values",!t,!0),o(n)}}},149:function(e,t,n){"use strict";var r=n(19),i=n(16),o=n(20),a=n(22),c=n(14)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[c]&&o.f(t,c,{configurable:!0,get:function(){return this}})}},15:function(e,t,n){var b=n(19),y=n(16),v=n(24),h=n(21),m=n(30),S="prototype",E=function(e,t,n){var r,i,o,a=e&E.F,c=e&E.G,u=e&E.S,s=e&E.P,d=e&E.B,f=e&E.W,l=c?y:y[t]||(y[t]={}),p=l[S],g=c?b:u?b[t]:(b[t]||{})[S];for(r in c&&(n=t),n)(i=!a&&g&&void 0!==g[r])&&m(l,r)||(o=i?g[r]:n[r],l[r]=c&&"function"!=typeof g[r]?n[r]:d&&i?v(o,b):f&&g[r]==o?function(r){function e(e,t,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return r.apply(this,arguments)}return e[S]=r[S],e}(o):s&&"function"==typeof o?v(Function.call,o):o,s&&((l.virtual||(l.virtual={}))[r]=o,e&E.R&&p&&!p[r]&&h(p,r,o)))};E.F=1,E.G=2,E.S=4,E.P=8,E.B=16,E.W=32,E.U=64,E.R=128,e.exports=E},150:function(e,t,n){"use strict";var f=n(19),l=n(15),p=n(75),g=n(33),b=n(21),y=n(69),v=n(40),h=n(70),m=n(18),S=n(53),E=n(20).f,A=n(44)(0),T=n(22);e.exports=function(n,e,t,r,i,o){var a=f[n],c=a,u=i?"set":"add",s=c&&c.prototype,d={};return T&&"function"==typeof c&&(o||s.forEach&&!g(function(){(new c).entries().next()}))?(c=e(function(e,t){h(e,c,n,"_c"),e._c=new a,null!=t&&v(t,i,e[u],e)}),A("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(r){var i="add"==r||"set"==r;r in s&&(!o||"clear"!=r)&&b(c.prototype,r,function(e,t){if(h(this,c,r),!i&&o&&!m(e))return"get"==r&&void 0;var n=this._c[r](0===e?0:e,t);return i?this:n})}),o||E(c.prototype,"size",{get:function(){return this._c.size}})):(c=r.getConstructor(e,n,i,u),y(c.prototype,t),p.NEED=!0),S(c,n),d[n]=c,l(l.G+l.W+l.F,d),o||r.setStrong(c,n,i),c}},151:function(e,t,n){var r=n(15);r(r.P+r.R,"Set",{toJSON:n(152)("Set")})},152:function(e,t,n){var r=n(74),i=n(153);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},153:function(e,t,n){var r=n(40);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},154:function(e,t,n){n(155)("Set")},155:function(e,t,n){"use strict";var r=n(15);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},156:function(e,t,n){n(157)("Set")},157:function(e,t,n){"use strict";var r=n(15),u=n(54),s=n(24),d=n(40);e.exports=function(e){r(r.S,e,{from:function(e,t,n){var r,i,o,a,c=t;return u(this),(r=void 0!==c)&&u(c),null==e?new this:(i=[],r?(o=0,a=s(c,n,2),d(e,!1,function(e){i.push(a(e,o++))})):d(e,!1,i.push,i),new this(i))}})}},158:function(e,t,n){n(65),n(159),e.exports=n(16).Array.from},159:function(e,t,n){"use strict";var g=n(24),r=n(15),b=n(45),y=n(71),v=n(72),h=n(36),m=n(160),S=n(73);r(r.S+r.F*!n(161)(function(e){Array.from(e)}),"Array",{from:function(e,t,n){var r,i,o,a,c=b(e),u="function"==typeof this?this:Array,s=arguments.length,d=1<s?t:void 0,f=void 0!==d,l=0,p=S(c);if(f&&(d=g(d,2<s?n:void 0,2)),null==p||u==Array&&v(p))for(i=new u(r=h(c.length));l<r;l++)m(i,l,f?d(c[l],l):c[l]);else for(a=p.call(c),i=new u;!(o=a.next()).done;l++)m(i,l,f?y(a,d,[o.value,l],!0):o.value);return i.length=l,i}})},16:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},160:function(e,t,n){"use strict";var r=n(20),i=n(43);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},161:function(e,t,n){var o=n(14)("iterator"),a=!1;try{var r=[7][o]();r.return=function(){a=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r=[7],i=r[o]();i.next=function(){return{done:n=!0}},r[o]=function(){return i},e(r)}catch(e){}return n}},18:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},19:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},2:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r="native",i="video",o="banner",a="adpod"},20:function(e,t,n){var r=n(29),i=n(81),o=n(82),a=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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}},21:function(e,t,n){var r=n(20),i=n(43);e.exports=n(22)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},22:function(e,t,n){e.exports=!n(33)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},23:function(e,t,n){"use strict";t.a=function(e,t){return new r(e,t)};var i=n(0);function r(e,t){var n=t&&t.src||"client",r=e||0;this.bidderCode=t&&t.bidder||"",this.width=0,this.height=0,this.statusMessage=function(){switch(r){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.adId=i.getUniqueIdentifierStr(),this.requestId=t&&t.bidId,this.mediaType="banner",this.source=n,this.getStatusCode=function(){return r},this.getSize=function(){return this.width+"x"+this.height}}},24:function(e,t,n){var o=n(54);e.exports=function(r,i,e){if(o(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},248:function(e,t,n){n(249),e.exports=n(16).String.includes},249:function(e,t,n){"use strict";var r=n(15),i=n(250),o="includes";r(r.P+r.F*n(252)(o),"String",{includes:function(e,t){return!!~i(this,e,o).indexOf(e,1<arguments.length?t:void 0)}})},25:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"a",function(){return s}),t.g=function(e){if(e&&e.type&&function(e){return!(!e||!c()(Object.keys(d),e))||(Object(a.logError)("".concat(e," nativeParam is not supported")),!1)}(e.type))return d[e.type];return e},t.f=function(t,e){var n=Object(a.getBidRequest)(t.requestId,e);if(!n)return!1;if(!Object(a.deepAccess)(t,"native.clickUrl"))return!1;if(Object(a.deepAccess)(t,"native.image")&&(!Object(a.deepAccess)(t,"native.image.height")||!Object(a.deepAccess)(t,"native.image.width")))return!1;if(Object(a.deepAccess)(t,"native.icon")&&(!Object(a.deepAccess)(t,"native.icon.height")||!Object(a.deepAccess)(t,"native.icon.width")))return!1;var r=n.nativeParams;if(!r)return!0;var i=Object.keys(r).filter(function(e){return r[e].required}),o=Object.keys(t.native).filter(function(e){return t.native[e]});return i.every(function(e){return c()(o,e)})},t.b=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(a.insertHtmlIntoIframe)(t.native.javascriptTrackers));return(n||[]).forEach(a.triggerPixel),e.action},t.d=function(r,i){var o={};return Object.keys(r.native).forEach(function(e){var t=u.NATIVE_KEYS[e],n=f(r.native[e]);Object(a.deepAccess)(i,"mediaTypes.native.".concat(e,".sendId"))&&(n="".concat(t,":").concat(r.adId));t&&n&&(o[t]=n)}),o},t.c=function(e,r){var i={message:"assetResponse",adId:e.adId,assets:[]};return e.assets.forEach(function(e){var t=Object(a.getKeyByValue)(u.NATIVE_KEYS,e),n=f(r.native[t]);i.assets.push({key:t,value:n})}),i};var a=n(0),r=n(9),c=n.n(r);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 u=n(4),o=[],s=Object.keys(u.NATIVE_KEYS).map(function(e){return u.NATIVE_KEYS[e]}),d={image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}};function f(e){return"object"===i(e)&&e.url?e.url:e}},250:function(e,t,n){var r=n(251),i=n(35);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},251:function(e,t,n){var r=n(18),i=n(34),o=n(14)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},252:function(e,t,n){var r=n(14)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(e){}}return!0}},26:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var a=n(0),r=n(3),i=n(9),o=n.n(i);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}r.b.setDefaults({userSync:{syncEnabled:!0,pixelEnabled:!0,syncsPerBidder:5,syncDelay:3e3}});var s,d,f,l,p,g,b,y=!a.isSafariBrowser()&&a.cookiesAreEnabled(),v=(s={config:r.b.getConfig("userSync"),browserSupportsCookies:y},d={},f={image:[],iframe:[]},l=new Set,g={image:!(p={}),iframe:!1},b=s.config,r.b.getConfig("userSync",function(e){b=u(b,e.userSync)}),d.registerSync=function(e,t,n){return l.has(t)?a.logMessage('already fired syncs for "'.concat(t,'", ignoring registerSync call')):b.syncEnabled&&a.isArray(f[e])?t?0!==b.syncsPerBidder&&Number(p[t])>=b.syncsPerBidder?a.logWarn('Number of user syncs exceeded for "'.concat(t,'"')):d.canBidderRegisterSync(e,t)?(f[e].push([t,n]),void(p=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(p,t))):a.logWarn('Bidder "'.concat(t,'" not permitted to register their "').concat(e,'" userSync pixels.')):a.logWarn("Bidder is required for registering sync"):a.logWarn('User sync type "'.concat(e,'" not supported'))},d.syncUsers=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(h,Number(e));h()},d.triggerUserSyncs=function(){b.enableOverride&&d.syncUsers()},d.canBidderRegisterSync=function(e,t){if(b.filterSettings){if(S(e,t))return!1}else{if(b.enabledBidders&&b.enabledBidders.length&&b.enabledBidders.indexOf(t)<0)return!1;if("iframe"===e&&!b.iframeEnabled&&!g.iframe)return!1;if("image"===e&&!b.pixelEnabled&&!g.image)return!1}return!0},d);function h(){if(b.syncEnabled&&s.browserSupportsCookies){try{!function(){if(!b.pixelEnabled&&!g.image)return;m(f.image,function(e){var t=c(e,2),n=t[0],r=t[1];a.logMessage("Invoking image pixel user sync for bidder: ".concat(n)),a.triggerPixel(r)})}(),function(){if(!b.iframeEnabled&&!g.iframe)return;m(f.iframe,function(e){var t=c(e,2),n=t[0],r=t[1];a.logMessage("Invoking iframe user sync for bidder: ".concat(n)),a.insertUserSyncIframe(r)})}()}catch(e){return a.logError("Error firing user syncs",e)}f={image:[],iframe:[]}}}function m(e,t){a.shuffle(e).forEach(function(e){t(e),l.add(e[0])})}function S(e,t){var n=b.filterSettings;if(function(e,t){if(e.all&&e[t])return a.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 i=n.filter,o=n.bidders;if(i&&"include"!==i&&"exclude"!==i)return a.logWarn('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;return!!("*"===o||Array.isArray(o)&&0<o.length&&o.every(function(e){return a.isStr(e)&&"*"!==e}))||(a.logWarn('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1)}(n,e)){g[e]=!0;var r=n.all?n.all:n[e],i="*"===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"](i,t)}return!1}},27:function(e,t,n){"use strict";t.a=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},28:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),u=n(39),i=n(12),o=n.n(i),a=n(4);var s,c,d=(s=[],(c={}).addWinningBid=function(t){var e=o()(s,function(e){return e.getAuctionId()===t.auctionId});e?e.addWinningBid(t):utils.logWarn("Auction not found when adding winning bid")},c.getAllWinningBids=function(){return s.map(function(e){return e.getWinningBids()}).reduce(r.flatten,[])},c.getBidsRequested=function(){return s.map(function(e){return e.getBidRequests()}).reduce(r.flatten,[])},c.getNoBids=function(){return s.map(function(e){return e.getNoBids()}).reduce(r.flatten,[])},c.getBidsReceived=function(){return s.map(function(e){if(e.getAuctionStatus()===u.a)return e.getBidsReceived()}).reduce(r.flatten,[]).filter(function(e){return e})},c.getAdUnits=function(){return s.map(function(e){return e.getAdUnits()}).reduce(r.flatten,[])},c.getAdUnitCodes=function(){return s.map(function(e){return e.getAdUnitCodes()}).reduce(r.flatten,[]).filter(r.uniques)},c.createAuction=function(e){var t=e.adUnits,n=e.adUnitCodes,r=e.callback,i=e.cbTimeout,o=e.labels,a=e.auctionId,c=Object(u.j)({adUnits:t,adUnitCodes:n,callback:r,cbTimeout:i,labels:o,auctionId:a});return function(e){s.push(e)}(c),c},c.findBidByAdId=function(t){return o()(s.map(function(e){return e.getBidsReceived()}).reduce(r.flatten,[]),function(e){return e.adId===t})},c.getStandardBidderAdServerTargeting=function(){return Object(u.i)()[a.JSON_MAPPING.ADSERVER_TARGETING]},c.setStatusForBids=function(e,t){var n=c.findBidByAdId(e);if(n&&(n.status=t),n&&t===a.BID_STATUS.BID_TARGETING_SET){var r=o()(s,function(e){return e.getAuctionId()===n.auctionId});r&&r.setBidTargeting(n)}},c.getLastAuctionId=function(){return s.length&&s[s.length-1].getAuctionId()},c)},29:function(e,t,n){var r=n(18);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},3:function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return A});var r=n(42),i=n(12),a=n.n(i),o=n(9),c=n.n(o),u=n(10);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f=n(0),l=n(4),p="TRUE"===(Object(u.d)(window.location.search)[l.DEBUG_MODE]||"").toUpperCase(),g=window.location.origin,b="random",y={};y[b]=!0,y.fixed=!0;var v=b,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};var m,S,E,A=(E=[],T(),{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?f.deepAccess(S,e):S}return function(e,t){var n=t;return"string"!=typeof e&&(n=e,e="*"),"function"==typeof n?(E.push({topic:e,callback:n}),function(){E.splice(E.indexOf(t),1)}):void f.logError("listener must be a function")}.apply(void 0,arguments)},setConfig:function(n){if("object"===d(n)){var e=Object.keys(n),r={};e.forEach(function(e){var t=n[e];"object"===d(m[e])&&"object"===d(t)&&(t=s({},m[e],t)),r[e]=S[e]=t}),O(r)}else f.logError("setConfig options must be an object")},setDefaults:function(e){"object"===d(m)?(s(m,e),s(S,e)):f.logError("defaults must be an object")},resetConfig:T});function T(){var n={_debug:p,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:g,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_priceGranularity:h.MEDIUM,set priceGranularity(e){o(e)&&("string"==typeof e?this._priceGranularity=i(e)?e:h.MEDIUM:"object"===d(e)&&(this._customPriceBucket=e,this._priceGranularity=h.CUSTOM,f.logMessage("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_mediaTypePriceGranularity:{},get mediaTypePriceGranularity(){return this._mediaTypePriceGranularity},set mediaTypePriceGranularity(n){var r=this;this._mediaTypePriceGranularity=Object.keys(n).reduce(function(e,t){return o(n[t])?"string"==typeof n?e[t]=i(n[t])?n[t]:r._priceGranularity:"object"===d(n)&&(e[t]=n[t],f.logMessage("Using custom price granularity for ".concat(t))):f.logWarn("Invalid price granularity for media type: ".concat(t)),e},{})},_sendAllBids:!0,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_useBidCache:!(m={}),get useBidCache(){return this._useBidCache},set useBidCache(e){this._useBidCache=e},_bidderSequence:v,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){y[e]?this._bidderSequence=e:f.logWarn("Invalid order: ".concat(e,". Bidder Sequence was not set."))},_timeoutBuffer:400,get timeoutBuffer(){return this._timeoutBuffer},set timeoutBuffer(e){this._timeoutBuffer=e},_disableAjaxTimeout:!1,get disableAjaxTimeout(){return this._disableAjaxTimeout},set disableAjaxTimeout(e){this._disableAjaxTimeout=e}};function i(t){return a()(Object.keys(h),function(e){return t===h[e]})}function o(e){if(!e)return f.logError("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)i(e)||f.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if("object"===d(e)&&!Object(r.b)(e))return f.logError("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}S&&O(Object.keys(S).reduce(function(e,t){return S[t]!==n[t]&&(e[t]=n[t]||{}),e},{})),S=n}function O(t){var n=Object.keys(t);E.filter(function(e){return c()(n,e.topic)}).forEach(function(e){e.callback(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.topic,t[e.topic]))}),E.filter(function(e){return"*"===e.topic}).forEach(function(e){return e.callback(t)})}},30:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},31:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u}),t.d=function(e,t){var n=Object(o.getBidRequest)(e.requestId,t),r=n&&Object(o.deepAccess)(n,"mediaTypes.video"),i=r&&Object(o.deepAccess)(r,"context");return s(e,n,r,i)},n.d(t,"c",function(){return s});n(7);var o=n(0),i=n(3),r=n(9),a=(n.n(r),n(13)),c="outstream",u="instream";var s=Object(a.b)("sync",function(e,t,n,r){return!t||n&&r!==c?i.b.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Object(o.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 pbjs.setConfig({ cache: {url: "..."} });\n      '),!1):r!==c||!(!e.renderer&&!t.renderer)},"checkVideoBidSetup")},32:function(e,t){e.exports={}},33:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},34:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},35:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},36:function(e,t,n){var r=n(46),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},364:function(e,t,n){n(365),e.exports=n(16).Number.isInteger},365:function(e,t,n){var r=n(15);r(r.S,"Number",{isInteger:n(366)})},366:function(e,t,n){var r=n(18),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},37:function(e,t){e.exports=function(){}},38:function(e,t,n){n(130),e.exports=n(16).Array.findIndex},39:function(e,t,n){"use strict";n.d(t,"b",function(){return G}),n.d(t,"a",function(){return W}),t.j=function(e){var a,c,u,s,d=e.adUnits,t=e.adUnitCodes,n=e.callback,r=e.cbTimeout,i=e.labels,o=e.auctionId,f=d,l=i,p=t,g=[],b=[],y=[],v=o||D.generateUUID(),h=n,m=r,S=[],E=new Set;function A(){return{auctionId:v,timestamp:a,auctionEnd:c,auctionStatus:u,adUnits:f,adUnitCodes:p,labels:l,bidderRequests:g,noBids:y,bidsReceived:b,winningBids:S,timeout:m}}function T(e,t){if(t&&clearTimeout(s),void 0===c){var n=[];e&&(D.logMessage("Auction ".concat(v," timedOut")),(n=function(e,t){return e.map(function(e){return(e.bids||[]).filter(function(e){return!t.has(e.bidder)})}).reduce(w.flatten,[]).map(function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}})}(g,E)).length&&P.emit(M.EVENTS.BID_TIMEOUT,n)),u=W,c=Date.now(),P.emit(M.EVENTS.AUCTION_END,A());try{if(null!=h){var r=p,i=b.filter(D.bind.call(w.adUnitsFilter,this,r)).reduce(Y,{});h.apply(pbjs,[i,e]),h=null}}catch(e){D.logError("Error executing bidsBackHandler",null,e)}finally{n.length&&k.callTimedOutBidders(d,n,m);var o=_.b.getConfig("userSync")||{};o.enableOverride||x(o.syncDelay)}}}function O(){D.logInfo("Bids Received for Auction with id: ".concat(v),b),u=W,T(!1,!0)}function I(e){E.add(e)}return{addBidReceived:function(e){b=b.concat(e)},addNoBid:function(e){y=y.concat(e)},executeCallback:T,callBids:function(){var e=this;u=q,a=Date.now();var t=k.makeBidRequests(f,a,v,m,l);D.logInfo("Bids Requested for Auction with id: ".concat(v),t),t.forEach(function(e){!function(e){g=g.concat(e)}(e)});var n={};if(t.length<1)D.logWarn("No valid bid requests returned for auction"),O();else{var r={bidRequests:t,run:function(){!function(){var e=T.bind(null,!0),t=setTimeout(e,m);s=t}(),u=G,P.emit(M.EVENTS.AUCTION_INIT,A());var r=function(e,r){var i=0,t=!1,n=new Set,o={};function a(){i--,t&&0===i&&e()}return{addBidResponse:function(e,t){o[t.requestId]=!0,i++;var n=function(e){var t=e.adUnitCode,n=e.bid,r=e.bidderRequest,i=e.auctionId,o=r.start,a=N({},n,{auctionId:i,responseTimestamp:Object(w.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});a.timeToRespond=a.responseTimestamp-a.requestTimestamp,P.emit(M.EVENTS.BID_ADJUSTMENT,a);var c=r.bids&&U()(r.bids,function(e){return e.adUnitCode==t}),u=c&&c.renderer;u&&u.url&&(a.renderer=C.a.install({url:u.url}),a.renderer.setRender(u.render));var s=_.b.getConfig("mediaTypePriceGranularity.".concat(n.mediaType)),d=Object(j.a)(a.cpm,"object"===R(s)?s:_.b.getConfig("customPriceBucket"),_.b.getConfig("currency.granularityMultiplier"));return a.pbLg=d.low,a.pbMg=d.med,a.pbHg=d.high,a.pbAg=d.auto,a.pbDg=d.dense,a.pbCg=d.custom,a}({adUnitCode:e,bid:t,bidderRequest:this,auctionId:r.getAuctionId()});"video"===n.mediaType?function(e,t,n,r){var i=!0,o=Object(w.getBidRequest)(t.requestId,[n]),a=o&&Object(w.deepAccess)(o,"mediaTypes.video"),c=a&&Object(w.deepAccess)(a,"context");_.b.getConfig("cache.url")&&c!==B.b&&(t.videoCacheKey?t.vastUrl||(D.logError("videoCacheKey specified but not required vastUrl for video bid"),i=!1):(i=!1,J(e,t,r,o)));i&&(K(e,t),r())}(r,n,this,a):(K(r,n),a())},adapterDone:function(){n.add(this),t=r.getBidRequests().every(function(e){return n.has(e)}),this.bids.forEach(function(e){o[e.bidId]||(r.addNoBid(e),P.emit(M.EVENTS.NO_BID,e))}),t&&0===i&&e()}}}(O,e);k.callBids(f,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];H.apply({dispatch:r.addBidResponse,bidderRequest:this},t)},r.adapterDone,{request:function(e,t){o(z,t),o(n,e),F[e]||(F[e]={SRA:!0,origin:t}),1<n[e]&&(F[e].SRA=!1)},done:function(e){z[e]--,V[0]&&i(V[0])&&V.shift()}},m,I)}};i(r)||(D.logWarn("queueing auction due to limited endpoint capacity"),V.push(r))}function i(e){var r=!0,i=_.b.getConfig("maxRequestsPerOrigin")||L;return e.bidRequests.some(function(e){var t=1,n=void 0!==e.src&&e.src===M.S2S.SRC?"s2s":e.bidderCode;return F[n]&&(!1===F[n].SRA&&(t=Math.min(e.bids.length,i)),z[F[n].origin]+t>i&&(r=!1)),!r}),r&&e.run(),r}function o(e,t){void 0===e[t]?e[t]=1:e[t]++}},addWinningBid:function(e){S=S.concat(e),k.callBidWonBidder(e.bidder,e,d)},setBidTargeting:function(e){k.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return S},getTimeout:function(){return m},getAuctionId:function(){return v},getAuctionStatus:function(){return u},getAdUnits:function(){return f},getAdUnitCodes:function(){return p},getBidRequests:function(){return g},getBidsReceived:function(){return b},getNoBids:function(){return y}}},n.d(t,"c",function(){return H}),t.f=s,t.d=K,n.d(t,"e",function(){return J}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return f}),t.i=l;var w=n(0),u=n(10),j=n(42),a=n(25),o=n(62),C=n(11),_=n(3),r=n(26),i=n(13),c=n(12),U=n.n(c),B=n(31);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x=r.a.syncUsers,D=n(0),k=n(7).default,P=n(8),M=n(4),q="started",G="inProgress",W="completed";P.on(M.EVENTS.BID_ADJUSTMENT,function(e){!function(e){var t,n=e.bidderCode,r=e.cpm;if(pbjs.bidderSettings&&(n&&pbjs.bidderSettings[n]&&"function"==typeof pbjs.bidderSettings[n].bidCpmAdjustment?t=pbjs.bidderSettings[n].bidCpmAdjustment:pbjs.bidderSettings[M.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[M.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(t=pbjs.bidderSettings[M.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),t))try{r=t(e.cpm,N({},e))}catch(e){D.logError("Error during bid adjustment","bidmanager.js",e)}0<=r&&(e.cpm=r)}(e)});var L=4,z={},F={},V=[];var H=Object(i.b)("async",function(e,t){this.dispatch.call(this.bidderRequest,e,t)},"addBidResponse");function s(e,t){t.timeToRespond>e.getTimeout()+_.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function K(e,t){var n=e.getBidRequests(),r=U()(n,function(e){return e.bidderCode===t.bidderCode});!function(t,e){var n;if(t.bidderCode&&(0<t.cpm||t.dealId)){var r=U()(e.bids,function(e){return e.adUnitCode===t.adUnitCode});n=function(e,t,n){if(!t)return{};var r={},i=pbjs.bidderSettings;if(i){var o=l(t.mediaType,e);p(r,o,t),e&&i[e]&&i[e][M.JSON_MAPPING.ADSERVER_TARGETING]&&(p(r,i[e],t),t.sendStandardTargeting=i[e].sendStandardTargeting)}t.native&&(r=N({},r,Object(a.d)(t,n)));return r}(t.bidderCode,t,r)}t.adserverTargeting=N(t.adserverTargeting||{},n)}(t,r),P.emit(M.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),s(e,t)}var J=Object(i.b)("async",function(n,r,i,e){Object(o.b)([r],function(e,t){e?(D.logWarn("Failed to save to the video cache: ".concat(e,". Video bid must be discarded.")),s(n,r)):""===t[0].uuid?(D.logWarn("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),s(n,r)):(r.videoCacheKey=t[0].uuid,r.vastUrl||(r.vastUrl=Object(o.a)(r.videoCacheKey)),K(n,r),i())})},"callPrebidCache");var d=function(e){var t=_.b.getConfig("mediaTypePriceGranularity.".concat(e));return"string"==typeof e&&t?"string"==typeof t?t:"custom":_.b.getConfig("priceGranularity")},f=function(t){return function(e){return t===M.GRANULARITY_OPTIONS.AUTO?e.pbAg:t===M.GRANULARITY_OPTIONS.DENSE?e.pbDg:t===M.GRANULARITY_OPTIONS.LOW?e.pbLg:t===M.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:t===M.GRANULARITY_OPTIONS.HIGH?e.pbHg:t===M.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}};function l(e,t){function n(e,t){return{key:e,val:"function"==typeof t?function(e){return t(e)}:function(e){return Object(w.getValue)(e,t)}}}var r=M.TARGETING_KEYS,i=d(e),o=pbjs.bidderSettings;if(o[M.JSON_MAPPING.BD_SETTING_STANDARD]||(o[M.JSON_MAPPING.BD_SETTING_STANDARD]={}),o[M.JSON_MAPPING.BD_SETTING_STANDARD][M.JSON_MAPPING.ADSERVER_TARGETING]||(o[M.JSON_MAPPING.BD_SETTING_STANDARD][M.JSON_MAPPING.ADSERVER_TARGETING]=[n(r.BIDDER,"bidderCode"),n(r.AD_ID,"adId"),n(r.PRICE_BUCKET,f(i)),n(r.SIZE,"size"),n(r.DEAL,"dealId"),n(r.SOURCE,"source"),n(r.FORMAT,"mediaType")]),"video"===e){var a=o[M.JSON_MAPPING.BD_SETTING_STANDARD][M.JSON_MAPPING.ADSERVER_TARGETING];if([r.UUID,r.CACHE_ID].forEach(function(t){void 0===U()(a,function(e){return e.key===t})&&a.push(n(t,"videoCacheKey"))}),_.b.getConfig("cache.url")&&(!t||!1!==D.deepAccess(o,"".concat(t,".sendStandardTargeting")))){var c=Object(u.c)(_.b.getConfig("cache.url"));void 0===U()(a,function(e){return e.key===r.CACHE_HOST})&&a.push(n(r.CACHE_HOST,function(e){return D.deepAccess(e,"adserverTargeting.".concat(r.CACHE_HOST))?e.adserverTargeting[r.CACHE_HOST]:c.hostname}))}}return o[M.JSON_MAPPING.BD_SETTING_STANDARD]}function p(r,i,o){var e=i[M.JSON_MAPPING.ADSERVER_TARGETING];return o.size=o.getSize(),D._each(e,function(e){var t=e.key,n=e.val;if(r[t]&&D.logWarn("The key: "+t+" is getting ovewritten"),D.isFn(n))try{n=n(o)}catch(e){D.logError("bidmanager","ERROR",e)}(void 0===i.suppressEmptyKeys||!0!==i.suppressEmptyKeys)&&t!==M.TARGETING_KEYS.DEAL||!D.isEmptyStr(n)&&null!=n?r[t]=n:D.logInfo("suppressing empty key '"+t+"' from adserver targeting")}),r}function Y(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},4: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:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},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",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocuemnt",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"},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"},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"}}},40:function(e,t,n){var l=n(24),p=n(71),g=n(72),b=n(29),y=n(36),v=n(73),h={},m={};(t=e.exports=function(e,t,n,r,i){var o,a,c,u,s=i?function(){return e}:v(e),d=l(n,r,t?2:1),f=0;if("function"!=typeof s)throw TypeError(e+" is not iterable!");if(g(s)){for(o=y(e.length);f<o;f++)if((u=t?d(b(a=e[f])[0],a[1]):d(e[f]))===h||u===m)return u}else for(c=s.call(e);!(a=c.next()).done;)if((u=p(c,d,a.value,t))===h||u===m)return u}).BREAK=h,t.RETURN=m},41: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}}}},42:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return g});var r=n(12),a=n.n(r),i=n(0),s=2,o={buckets:[{min:0,max:5,increment:.5}]},c={buckets:[{min:0,max:20,increment:.1}]},u={buckets:[{min:0,max:20,increment:.01}]},d={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},f={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};function l(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":p(e,o,n),med:""===r?"":p(e,c,n),high:""===r?"":p(e,u,n),auto:""===r?"":p(e,f,n),dense:""===r?"":p(e,d,n),custom:""===r?"":p(e,t,n)}}function p(n,e,r){var i="";if(!g(e))return i;var o=e.buckets.reduce(function(e,t){return e.max>t.max?e:t},{max:0}),t=a()(e.buckets,function(e){if(n>o.max*r){var t=e.precision;void 0===t&&(t=s),i=(e.max*r).toFixed(t)}else if(n<=e.max*r&&n>=e.min*r)return e});return t&&(i=function(e,t,n){var r=void 0!==t.precision?t.precision:s,i=t.increment*n,o=t.min*n,a=Math.pow(10,r+2),c=(e*a-o*a)/(i*a),u=Math.floor(c)*i+o;return(u=Number(u.toFixed(10))).toFixed(r)}(n,t,r)),i}function g(e){if(i.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){void 0!==e.min&&e.max&&e.increment||(t=!1)}),t}},43:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},44:function(e,t,n){var m=n(24),S=n(56),E=n(45),A=n(36),r=n(83);e.exports=function(f,e){var l=1==f,p=2==f,g=3==f,b=4==f,y=6==f,v=5==f||y,h=e||r;return function(e,t,n){for(var r,i,o=E(e),a=S(o),c=m(t,n,3),u=A(a.length),s=0,d=l?h(e,u):p?h(e,0):void 0;s<u;s++)if((v||s in a)&&(i=c(r=a[s],s,o),f))if(l)d[s]=i;else if(i)switch(f){case 3:return!0;case 5:return r;case 6:return s;case 2:d.push(r)}else if(b)return!1;return y?-1:g||b?b:d}}},45:function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},46:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},47:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},48:function(e,t,n){var r=n(56),i=n(35);e.exports=function(e){return r(i(e))}},49:function(e,t,n){"use strict";t.a=r,n.d(t,"b",function(){return i});var c=n(0);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(i){function o(){var e=function(){var t,n=[];do{try{t=t?t.parent:i;try{var e=t==i.top,r={referrer:t.document.referrer||null,location:t.location.href||null,isTop:e};e&&(r=u(r,{canonicalUrl:a(t.document)})),n.push(r)}catch(e){n.push({referrer:null,location:null,isTop:t==i.top}),Object(c.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location")}}catch(e){return n.push({referrer:null,location:null,isTop:!1}),n}}while(t!=i.top);return n}(),t=function(){try{if(!i.location.ancestorOrigins)return;return i.location.ancestorOrigins}catch(e){}}();if(t)for(var n=0,r=t.length;n<r;n++)e[n].ancestor=t[n];return e}function a(e){try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}return function(){try{var e,t=o(),n=t.length-1,r=null!==t[n].location||0<n&&null!==t[n-1].referrer,i=function(e){var t,n=[],r=null,i=null,o=null,a=null,c=null;for(t=e.length-1;0<=t;t--){try{r=e[t].location}catch(e){}if(r)n.push(r),c=c||r;else if(0!==t){i=e[t-1];try{o=i.referrer,a=i.ancestor}catch(e){}o?(n.push(o),c=c||o):a?(n.push(a),c=c||a):n.push(null)}else n.push(null)}return{stack:n,detectedRefererUrl:c}}(t);return t[t.length-1].canonicalUrl&&(e=t[t.length-1].canonicalUrl),{referer:i.detectedRefererUrl,reachedTop:r,numIframes:n,stack:i.stack,canonicalUrl:e}}catch(e){}}}var i=r(window)},5:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),t.b=i;var l=n(10),p=n(3);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=n(0),v=4,r=i();function i(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:3e3,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=e.request,f=e.done;return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{var i,o=r.method||(n?"POST":"GET"),a=document.createElement("a");a.href=e;var c="object"===b(t)&&null!==t?t:{success:function(){y.logMessage("xhr success")},error:function(e){y.logError("xhr error",null,e)}};if("function"==typeof t&&(c.success=t),(i=new window.XMLHttpRequest).onreadystatechange=function(){if(i.readyState===v){"function"==typeof f&&f(a.origin);var e=i.status;200<=e&&e<300||304===e?c.success(i.responseText,i):c.error(i.statusText,i)}},p.b.getConfig("disableAjaxTimeout")||(i.ontimeout=function(){y.logError("  xhr timeout after ",i.timeout,"ms")}),"GET"===o&&n){var u=Object(l.c)(e,r);g(u.search,n),e=Object(l.a)(u)}i.open(o,e,!0),p.b.getConfig("disableAjaxTimeout")||(i.timeout=s),r.withCredentials&&(i.withCredentials=!0),y._each(r.customHeaders,function(e,t){i.setRequestHeader(t,e)}),r.preflight&&i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type",r.contentType||"text/plain"),"function"==typeof d&&d(a.origin),"POST"===o&&n?i.send(n):i.send()}catch(e){y.logError("xhr construction",e)}}}},50:function(e,t,n){"use strict";t.a=function(e,t){if(!t||!e)return void o.logError("cannot load external script without url and moduleCode");if(!i()(c,t))return void o.logError("".concat(t," not whitelisted for loading external JavaScript"));if(a[e])return;o.logWarn("module ".concat(t," is loading external JavaScript"));var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,o.insertElement(n),a[e]=!0},t.b=function(t,e,n){if(!t)return void o.logError("Error attempting to request empty URL","adloader.js:loadScript");n?a[t]?e&&"function"==typeof e&&(a[t].loaded?e():a[t].callbacks.push(e)):(a[t]={loaded:!1,callbacks:[]},e&&"function"==typeof e&&a[t].callbacks.push(e),u(t,function(){a[t].loaded=!0;try{for(var e=0;e<a[t].callbacks.length;e++)a[t].callbacks[e]()}catch(e){o.logError("Error executing callback","adloader.js:loadScript",e)}})):u(t,e)};var r=n(9),i=n.n(r),o=n(0),a={},c=["criteo"];function u(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,t&&"function"==typeof t&&(n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,t())}:n.onload=function(){t()}),n.src=e;var r=document.getElementsByTagName("head");(r=r.length?r:document.getElementsByTagName("body")).length&&(r=r[0]).insertBefore(n,r.firstChild)}},51:function(e,t,n){"use strict";function m(){return this}var S=n(58),E=n(15),A=n(138),T=n(21),O=n(32),I=n(139),w=n(53),j=n(144),C=n(14)("iterator"),_=!([].keys&&"next"in[].keys()),U="values";e.exports=function(e,t,n,r,i,o,a){I(n,t,r);function c(e){if(!_&&e in g)return g[e];switch(e){case"keys":case U:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var u,s,d,f=t+" Iterator",l=i==U,p=!1,g=e.prototype,b=g[C]||g["@@iterator"]||i&&g[i],y=b||c(i),v=i?l?c("entries"):y:void 0,h="Array"==t&&g.entries||b;if(h&&(d=j(h.call(new e)))!==Object.prototype&&d.next&&(w(d,f,!0),S||"function"==typeof d[C]||T(d,C,m)),l&&b&&b.name!==U&&(p=!0,y=function(){return b.call(this)}),S&&!a||!_&&!p&&g[C]||T(g,C,y),O[t]=y,O[f]=m,i)if(u={values:l?y:c(U),keys:o?y:c("keys"),entries:v},a)for(s in u)s in g||A(g,s,u[s]);else E(E.P+E.F*(_||p),t,u);return u}},52:function(e,t,n){var r=n(57)("keys"),i=n(47);e.exports=function(e){return r[e]||(r[e]=i(e))}},53:function(e,t,n){var r=n(20).f,i=n(30),o=n(14)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},54:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},55:function(e,t,n){var r=n(18),i=n(19).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},56:function(e,t,n){var r=n(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},57:function(e,t,n){var r=n(16),i=n(19),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(58)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},58:function(e,t){e.exports=!0},59:function(e,t,n){var u=n(48),s=n(36),d=n(87);e.exports=function(c){return function(e,t,n){var r,i=u(e),o=s(i.length),a=d(n,o);if(c&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((c||a in i)&&i[a]===t)return c||a||0;return!c&&-1}}},60: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=y(1<arguments.length&&void 0!==arguments[1]?arguments[1]:b);return!t.shouldFilter||!!t.sizesSupported[e]},t.b=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,n=void 0===t?[]:t,r=e.labelAll,i=void 0!==r&&r,o=e.activeLabels,a=void 0===o?[]:o,c=1<arguments.length?arguments[1]:void 0,u=2<arguments.length?arguments[2]:void 0,s=y(3<arguments.length&&void 0!==arguments[3]?arguments[3]:b);c=Object(p.isPlainObject)(c)?Object(p.deepClone)(c):u?{banner:{sizes:u}}:{};var d=Object(p.deepAccess)(c,"banner.sizes");s.shouldFilter&&d&&(c.banner.sizes=d.filter(function(e){return s.sizesSupported[e]}));var f=Object.keys(c),l={active:f.every(function(e){return"banner"!==e})||f.some(function(e){return"banner"===e})&&0<Object(p.deepAccess)(c,"banner.sizes.length")&&(0===n.length||!i&&(n.some(function(e){return s.labels[e]})||n.some(function(e){return g()(a,e)}))||i&&n.reduce(function(e,t){return e?s.labels[t]||g()(a,t):e},!0)),mediaTypes:c};d&&d.length!==c.banner.sizes.length&&(l.filterResults={before:d,after:c.banner.sizes});return l};var r=n(3),p=n(0),i=n(9),g=n.n(i);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 b=[];function y(e){return e.reduce(function(n,r){if("object"===o(r)&&"string"==typeof r.mediaQuery){var t=!1;try{t=Object(p.getWindowTop)().matchMedia(r.mediaQuery).matches}catch(e){Object(p.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),t=matchMedia(r.mediaQuery).matches}t&&(Array.isArray(r.sizesSupported)&&(n.shouldFilter=!0),["labels","sizesSupported"].forEach(function(t){return(r[t]||[]).forEach(function(e){return n[t][e]=!0})}))}else Object(p.logWarn)('sizeConfig rule missing required property "mediaQuery"');return n},{labels:{},sizesSupported:{},shouldFilter:!1})}r.b.getConfig("sizeConfig",function(e){return function(e){b=e}(e.sizeConfig)})},61:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0),i={};var o={incrementCounter:function(e){return i[e]=i[e]||{},i[e].counter=Object(r.deepAccess)(i,"".concat(e,".counter"))+1||1,i[e].counter},getCounter:function(e){return Object(r.deepAccess)(i,"".concat(e,".counter"))||0}}},62:function(e,t,n){"use strict";t.b=function(e,t){var n={puts:e.map(o)};Object(r.a)(i.b.getConfig("cache.url"),function(n){return{success:function(e){var t;try{t=JSON.parse(e).responses}catch(e){return void n(e,[])}t?n(null,t):n(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){n(new Error("Error storing video ad in the cache: ".concat(e,": ").concat(JSON.stringify(t))),[])}}}(t),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0})},t.a=function(e){return"".concat(i.b.getConfig("cache.url"),"?uuid=").concat(e)};var r=n(5),i=n(3);function o(e){var t={type:"xml",value:e.vastXml?e.vastXml:function(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>")}(e.vastUrl,e.vastImpUrl),ttlseconds:Number(e.ttl)};return"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(t.key=e.customCacheKey),t}},63:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"checkAdUnitSetup",function(){return G});var r=n(27),c=n(0),i=n(133),o=n(26),a=n(50),d=n(3),v=n(28),f=n(64),u=n(13),s=n(134),l=n(9),p=n.n(l),g=n(61),h=n(11),b=n(23);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 m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var S=Object(r.a)(),E=n(4),A=n(0),T=n(7).default,O=n(8),I=o.a.triggerUserSyncs,w=E.EVENTS,j=w.ADD_AD_UNITS,C=w.BID_WON,_=w.REQUEST_BIDS,U=w.SET_TARGETING,B=w.AD_RENDER_FAILED,R=E.AD_RENDER_FAILED_REASON,N=R.PREVENT_WRITING_ON_MAIN_DOCUMENT,x=R.NO_AD,D=R.EXCEPTION,k=R.CANNOT_FIND_AD,P=R.MISSING_DOC_OR_ADID,M={bidWon:function(e){var t=v.a.getBidsRequested().map(function(e){return e.bids.map(function(e){return e.adUnitCode})}).reduce(c.flatten).filter(c.uniques);return!!A.contains(t,e)||void A.logError('The "'+e+'" placement is not defined.')}};function q(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}Object(s.a)(),S.bidderSettings=S.bidderSettings||{},S.libLoaded=!0,S.version="v2.32.0",A.logInfo("Prebid.js v2.32.0 loaded"),S.adUnits=S.adUnits||[],S.triggerUserSyncs=I;var G=Object(u.b)("sync",function(e){return e.forEach(function(e){var t=e.mediaTypes,n=A.getAdUnitSizes(e);if(t&&t.banner){var r=t.banner;r.sizes?(r.sizes=n,e.sizes=n):(A.logError("Detected a mediaTypes.banner object did not include sizes.  This is a required field for the mediaTypes.banner object.  Removing invalid mediaTypes.banner object from request."),delete e.mediaTypes.banner)}else e.sizes&&(A.logWarn("Usage of adUnits.sizes will eventually be deprecated.  Please define size dimensions within the corresponding area of the mediaTypes.<object> (eg mediaTypes.banner.sizes)."),e.sizes=n);if(t&&t.video){var i=t.video;if(i.playerSize)if(Array.isArray(i.playerSize)&&1===i.playerSize.length&&i.playerSize.every(function(e){return Object(c.isArrayOfNums)(e,2)}))e.sizes=i.playerSize;else if(Object(c.isArrayOfNums)(i.playerSize,2)){var o=[];o.push(i.playerSize),A.logInfo("Transforming video.playerSize from [".concat(i.playerSize,"] to [[").concat(o,"]] so it's in the proper format.")),e.sizes=i.playerSize=o}else A.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 e.mediaTypes.video.playerSize}if(t&&t.native){var a=t.native;a.image&&a.image.sizes&&!Array.isArray(a.image.sizes)&&(A.logError("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete e.mediaTypes.native.image.sizes),a.image&&a.image.aspect_ratios&&!Array.isArray(a.image.aspect_ratios)&&(A.logError("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete e.mediaTypes.native.image.aspect_ratios),a.icon&&a.icon.sizes&&!Array.isArray(a.icon.sizes)&&(A.logError("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete e.mediaTypes.native.icon.sizes)}}),e},"checkAdUnitSetup");function W(e){var n=v.a[e]().filter(A.bind.call(c.adUnitsFilter,this,v.a.getAdUnitCodes())),r=v.a.getLastAuctionId();return n.map(function(e){return e.adUnitCode}).filter(c.uniques).map(function(t){return n.filter(function(e){return e.auctionId===r&&e.adUnitCode===t})}).filter(function(e){return e&&e[0]&&e[0].adUnitCode}).map(function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e[0].adUnitCode,{bids:e})}).reduce(function(e,t){return m(e,t)},{})}function L(e,t,n){var r={};r.reason=e,r.message=t,n&&(r.bid=n),A.logError(t),O.emit(B,r)}function z(e){e.forEach(function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){A.logError("Error processing command :","prebid.js",e)}})}S.getAdserverTargetingForAdUnitCodeStr=function(e){if(A.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=S.getAdserverTargetingForAdUnitCode(e);return A.transformAdServerTargetingObj(t)}A.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},S.getAdserverTargetingForAdUnitCode=function(e){return S.getAdserverTargeting(e)[e]},S.getAdserverTargeting=function(e){return A.logInfo("Invoking pbjs.getAdserverTargeting",arguments),f.b.getAllTargeting(e)},S.getNoBids=function(){return A.logInfo("Invoking pbjs.getNoBids",arguments),W("getNoBids")},S.getBidResponses=function(){return A.logInfo("Invoking pbjs.getBidResponses",arguments),W("getBidsReceived")},S.getBidResponsesForAdUnitCode=function(t){return{bids:v.a.getBidsReceived().filter(function(e){return e.adUnitCode===t})}},S.setTargetingForGPTAsync=function(e,t){if(A.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(c.isGptPubadsDefined)()){var n=f.b.getAllTargeting(e);f.b.resetPresetTargeting(e),f.b.setTargetingForGPT(n,t),Object.keys(n).forEach(function(t){Object.keys(n[t]).forEach(function(e){"hb_adid"===e&&v.a.setStatusForBids(n[t][e],E.BID_STATUS.BID_TARGETING_SET)})}),O.emit(U,n)}else A.logError("window.googletag is not defined on the page")},S.setTargetingForAst=function(e){A.logInfo("Invoking pbjs.setTargetingForAn",arguments),f.b.isApntagDefined()?(f.b.setTargetingForAst(e),O.emit(U,f.b.getAllTargeting())):A.logError("window.apntag is not defined on the page")},S.renderAd=function(e,t){if(A.logInfo("Invoking pbjs.renderAd",arguments),A.logMessage("Calling renderAd with adId :"+t),e&&t)try{var n=v.a.findBidByAdId(t);if(n){n.status=E.BID_STATUS.RENDERED,n.ad=A.replaceAuctionPrice(n.ad,n.cpm),n.adUrl=A.replaceAuctionPrice(n.adUrl,n.cpm),v.a.addWinningBid(n),O.emit(C,n);var r=n.height,i=n.width,o=n.ad,a=n.mediaType,c=n.adUrl,u=n.renderer,s=document.createComment("Creative ".concat(n.creativeId," served by ").concat(n.bidder," Prebid.js Header Bidding"));if(A.insertElement(s,e,"body"),Object(h.c)(u))Object(h.b)(u,n);else if(e===document&&!A.inIframe()||"video"===a){var d="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document.");L(N,d,n)}else if(o){if(navigator.userAgent&&-1<navigator.userAgent.toLowerCase().indexOf("firefox/")){var f=navigator.userAgent.toLowerCase().match(/firefox\/([\d\.]+)/)[1];f&&parseInt(f,10)<67&&e.open("text/html","replace")}e.write(o),e.close(),q(e,i,r),A.callBurl(n)}else if(c){var l=A.createInvisibleIframe();l.height=r,l.width=i,l.style.display="inline",l.style.overflow="hidden",l.src=c,A.insertElement(l,e,"body"),q(e,i,r),A.callBurl(n)}else{var p="Error trying to write ad. No ad for bid response id: ".concat(t);L(x,p,n)}}else{var g="Error trying to write ad. Cannot find ad by given id : ".concat(t);L(k,g)}}catch(e){var b="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);L(D,b)}else{var y="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");L(P,y)}},S.removeAdUnit=function(e){(A.logInfo("Invoking pbjs.removeAdUnit",arguments),e)?(A.isArray(e)?e:[e]).forEach(function(e){for(var t=S.adUnits.length-1;0<=t;t--)S.adUnits[t].code===e&&S.adUnits.splice(t,1)}):S.adUnits=[]},S.requestBids=Object(u.b)("async",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels,a=e.auctionId;O.emit(_);var c=n||d.b.getConfig("bidderTimeout");if(r=r||S.adUnits,A.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?r=r.filter(function(e){return p()(i,e.code)}):i=r&&r.map(function(e){return e.code}),(r=G(r)).forEach(function(i){var o=Object.keys(i.mediaTypes||{banner:"banner"}),e=i.bids.map(function(e){return e.bidder}),a=T.bidderRegistry,t=d.b.getConfig("s2sConfig"),n=t&&t.bidders,r=n?e.filter(function(e){return!p()(n,e)}):e;i.transactionId=A.generateUUID(),r.forEach(function(t){var e=a[t],n=e&&e.getSpec&&e.getSpec(),r=n&&n.supportedMediaTypes||["banner"];o.some(function(e){return p()(r,e)})||(A.logWarn(A.unsupportedBidderMessage(i,t)),i.bids=i.bids.filter(function(e){return e.bidder!==t}))}),g.a.incrementCounter(i.code)}),r&&0!==r.length){var u=v.a.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:c,labels:o,auctionId:a}),s=r.length;return 15<s&&A.logInfo("Current auction ".concat(u.getAuctionId()," contains ").concat(s," adUnits."),r),i.forEach(function(e){return f.b.setLatestAuctionForAdUnit(e,u.getAuctionId())}),u.callBids(),u}if(A.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){A.logError("Error executing bidsBackHandler",null,e)}}),S.addAdUnits=function(e){A.logInfo("Invoking pbjs.addAdUnits",arguments),A.isArray(e)?S.adUnits.push.apply(S.adUnits,e):"object"===y(e)&&S.adUnits.push(e),O.emit(j)},S.onEvent=function(e,t,n){A.logInfo("Invoking pbjs.onEvent",arguments),A.isFn(t)?!n||M[e].call(null,n)?O.on(e,t,n):A.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):A.logError('The event handler provided is not a function and was not set on event "'+e+'".')},S.offEvent=function(e,t,n){A.logInfo("Invoking pbjs.offEvent",arguments),n&&!M[e].call(null,n)||O.off(e,t,n)},S.registerBidAdapter=function(e,t){A.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{T.registerBidAdapter(e(),t)}catch(e){A.logError("Error registering bidder adapter : "+e.message)}},S.registerAnalyticsAdapter=function(e){A.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{T.registerAnalyticsAdapter(e)}catch(e){A.logError("Error registering analytics adapter : "+e.message)}},S.createBid=function(e){return A.logInfo("Invoking pbjs.createBid",arguments),Object(b.a)(e)},S.loadScript=function(e,t,n){A.logInfo("Invoking pbjs.loadScript",arguments),Object(a.b)(e,t,n)},S.enableAnalytics=function(e){e&&!A.isEmpty(e)?(A.logInfo("Invoking pbjs.enableAnalytics for: ",e),T.enableAnalytics(e)):A.logError("pbjs.enableAnalytics should be called with option {}")},S.aliasBidder=function(e,t){A.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?T.aliasBidAdapter(e,t):A.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},S.getAllWinningBids=function(){return v.a.getAllWinningBids()},S.getAllPrebidWinningBids=function(){return v.a.getBidsReceived().filter(function(e){return e.status===E.BID_STATUS.BID_TARGETING_SET})},S.getHighestCpmBids=function(e){var t=Object(f.a)(v.a.getBidsReceived(),c.getLatestHighestCpmBid);return f.b.getWinningBids(e,t)},S.markWinningBidAsUsed=function(t){var e=[];t.adUnitCode&&t.adId?e=v.a.getBidsReceived().filter(function(e){return e.adId===t.adId&&e.adUnitCode===t.adUnitCode}):t.adUnitCode?e=f.b.getWinningBids(t.adUnitCode):t.adId?e=v.a.getBidsReceived().filter(function(e){return e.adId===t.adId}):A.logWarn("Inproper usage of markWinningBidAsUsed. It'll need an adUnitCode and/or adId to function."),0<e.length&&(e[0].status=E.BID_STATUS.RENDERED)},S.getConfig=d.b.getConfig,S.setConfig=d.b.setConfig,S.que.push(function(){return Object(i.a)()}),S.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){A.logError("Error processing command :",e.message,e.stack)}else A.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},S.que.push=S.cmd.push,S.processQueue=function(){u.b.ready(),z(S.que),z(S.cmd)},t.default=S},64:function(e,t,n){"use strict";t.a=S,n.d(t,"b",function(){return I});var s=n(0),o=n(3),a=n(25),r=n(28),i=n(60),c=n(2),u=n(9),d=n.n(u);function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=n(0),b=n(4),y=[],v=Object.keys(b.TARGETING_KEYS).map(function(e){return b.TARGETING_KEYS[e]}),h=function(e){return e.responseTimestamp+1e3*e.ttl+1e3>Object(s.timestamp)()},m=function(e){return e&&(e.status&&!d()([b.BID_STATUS.BID_TARGETING_SET,b.BID_STATUS.RENDERED],e.status)||!e.status)};function S(e,n){var r=[],i=Object(s.groupBy)(e,"adUnitCode");return Object.keys(i).forEach(function(e){var t=Object(s.groupBy)(i[e],"bidderCode");Object.keys(t).forEach(function(e){return r.push(t[e].reduce(n))})}),r}function E(e,t){return void 0!==e.adUnitTargeting.hb_deal&&void 0===t.adUnitTargeting.hb_deal?-1:void 0===e.adUnitTargeting.hb_deal&&void 0!==t.adUnitTargeting.hb_deal?1:t.adUnitTargeting.hb_pb-e.adUnitTargeting.hb_pb}var A,T,O,I=(A=r.a,O={},(T={}).setLatestAuctionForAdUnit=function(e,t){O[e]=t},T.resetPresetTargeting=function(e){if(Object(s.isGptPubadsDefined)()){var t=j(e),r=A.getAdUnits().filter(function(e){return d()(t,e.code)});window.googletag.pubads().getSlots().forEach(function(n){y.forEach(function(t){r.forEach(function(e){e.code!==n.getAdUnitPath()&&e.code!==n.getSlotElementId()||n.setTargeting(t,null)})})})}},T.resetPresetTargetingAST=function(e){j(e).forEach(function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),r={};n.forEach(function(e){d()(y,e.toLowerCase())||(r[e]=t.keywords[e])}),window.apntag.modifyTag(e,{keywords:r})}})},T.getAllTargeting=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:C(),n=j(e),r=function(e,t){var n=T.getWinningBids(e,t),r=_();return n=n.map(function(o){return p({},o.adUnitCode,Object.keys(o.adserverTargeting).filter(function(e){return void 0===o.sendStandardTargeting||o.sendStandardTargeting||-1===r.indexOf(e)}).reduce(function(e,t){var n=[o.adserverTargeting[t]],r=p({},t.substring(0,20),n);if(t!==b.TARGETING_KEYS.DEAL)return[].concat(f(e),[r]);var i=p({},"".concat(t,"_").concat(o.bidderCode).substring(0,20),n);return[].concat(f(e),[r,i])},[]))})}(n,t).concat(function(t,e){return e.filter(function(e){return d()(t,e.adUnitCode)}).map(function(e){return l({},e)}).reduce(U,[]).map(R).filter(function(e){return e})}(n,t)).concat(o.b.getConfig("enableSendAllBids")?function(e,t){var n=v.concat(a.a);return S(t,s.getHighestCpm).map(function(t){if(w(t,e))return p({},t.adUnitCode,N(t,n.filter(function(e){return void 0!==t.adserverTargeting[e]})))}).filter(function(e){return e})}(n,t):function(e,t){if(!0!==o.b.getConfig("targetingControls.alwaysIncludeDeals"))return[];var n=v.concat(a.a);return S(t,s.getHighestCpm).map(function(t){if(t.dealId&&w(t,e))return p({},t.adUnitCode,N(t,n.filter(function(e){return void 0!==t.adserverTargeting[e]})))}).filter(function(e){return e})}(n,t));r.map(function(t){Object.keys(t).map(function(e){t[e].map(function(e){-1===y.indexOf(Object.keys(e)[0])&&(y=Object.keys(e).concat(y))})})}),r=function(e){return e.map(function(e){return p({},Object.keys(e)[0],e[Object.keys(e)[0]].map(function(e){return p({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))}).reduce(function(e,t){return l(t,e)},{}))}).reduce(function(e,t){var n=Object.keys(t)[0];return e[n]=l({},e[n],t[n]),e},{})}(r);var i=o.b.getConfig("targetingControls.auctionKeyMaxChars");return i&&(Object(s.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(i," characters.  Running checks on auction keys...")),r=function(e,c){var u=Object(s.deepClone)(e);return Object.keys(u).map(function(e){return{adUnitCode:e,adUnitTargeting:u[e]}}).sort(E).reduce(function(e,t,n,r){var i=function(n){return Object.keys(n).reduce(function(e,t){return e+"".concat(t,"%3d").concat(encodeURIComponent(n[t]),"%26")},"")}(t.adUnitTargeting);n+1===r.length&&(i=i.slice(0,-3));var o=t.adUnitCode,a=i.length;return a<=c?(c-=a,Object(s.logInfo)("AdUnit '".concat(o,"' auction keys comprised of ").concat(a," characters.  Deducted from running threshold; new limit is ").concat(c),u[o]),e[o]=u[o]):Object(s.logWarn)("The following keys for adUnitCode '".concat(o,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(a,", the current allotted amount was ").concat(c,".\n"),u[o]),n+1===r.length&&0===Object.keys(e).length&&Object(s.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),e},{})}(r,i)),n.forEach(function(e){r[e]||(r[e]={})}),r},T.setTargetingForGPT=function(i,e){window.googletag.pubads().getSlots().forEach(function(r){Object.keys(i).filter(e?e(r):Object(s.isAdUnitCodeMatchingSlot)(r)).forEach(function(n){return Object.keys(i[n]).forEach(function(t){var e=i[n][t].split(",");(e=1<e.length?[e]:e).map(function(e){return g.logMessage("Attempting to set key value for slot: ".concat(r.getSlotElementId()," key: ").concat(t," value: ").concat(e)),e}).forEach(function(e){r.setTargeting(t,e)})})})})},T.getWinningBids=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:C(),t=j(e);return n.filter(function(e){return d()(t,e.adUnitCode)}).filter(function(e){return 0<e.cpm}).map(function(e){return e.adUnitCode}).filter(s.uniques).map(function(t){return n.filter(function(e){return e.adUnitCode===t?e:null}).reduce(s.getHighestCpm)})},T.setTargetingForAst=function(e){var r=T.getAllTargeting(e);try{T.resetPresetTargetingAST(e)}catch(e){g.logError("unable to reset targeting for AST"+e)}Object.keys(r).forEach(function(n){return Object.keys(r[n]).forEach(function(e){if(g.logMessage("Attempting to set targeting for targetId: ".concat(n," key: ").concat(e," value: ").concat(r[n][e])),g.isStr(r[n][e])||g.isArray(r[n][e])){var t={};e.search(/pt[0-9]/)<0?t[e.toUpperCase()]=r[n][e]:t[e]=r[n][e],window.apntag.setKeywords(n,t,{overrideKeyValue:!0})}})})},T.isApntagDefined=function(){if(window.apntag&&g.isFn(window.apntag.setKeywords))return!0},T);function w(e,t){return e.adserverTargeting&&t&&(g.isArray(t)&&d()(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function j(e){return"string"==typeof e?[e]:g.isArray(e)?e:A.getAdUnitCodes()||[]}function C(){var e=A.getBidsReceived();return o.b.getConfig("useBidCache")||(e=e.filter(function(e){return O[e.adUnitCode]===e.auctionId})),S(e=e.filter(function(e){return Object(s.deepAccess)(e,"video.context")!==c.a}).filter(function(e){return"banner"!==e.mediaType||Object(i.c)([e.width,e.height])}).filter(m).filter(h),s.getOldestHighestCpmBid)}function _(){return A.getStandardBidderAdServerTargeting().map(function(e){return e.key}).concat(v).filter(s.uniques)}function U(t,n,e,r){return Object.keys(n.adserverTargeting).filter(B()).forEach(function(e){t.length&&t.filter(function(t){return function(e){return e.adUnitCode===n.adUnitCode&&e.adserverTargeting[t]}}(e)).forEach(function(t){return function(e){g.isArray(e.adserverTargeting[t])||(e.adserverTargeting[t]=[e.adserverTargeting[t]]),e.adserverTargeting[t]=e.adserverTargeting[t].concat(n.adserverTargeting[t]).filter(s.uniques),delete n.adserverTargeting[t]}}(e))}),t.push(n),t}function B(){var t=_().concat(a.a);return function(e){return-1===t.indexOf(e)}}function R(t){return p({},t.adUnitCode,Object.keys(t.adserverTargeting).filter(B()).map(function(e){return p({},e.substring(0,20),[t.adserverTargeting[e]])}))}function N(t,e){return e.map(function(e){return p({},"".concat(e,"_").concat(t.bidderCode).substring(0,20),[t.adserverTargeting[e]])})}},65:function(e,t,n){"use strict";var r=n(137)(!0);n(51)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},66:function(e,t,r){function i(){}var o=r(29),a=r(140),c=r(67),u=r(52)("IE_PROTO"),s="prototype",d=function(){var e,t=r(55)("iframe"),n=c.length;for(t.style.display="none",r(143).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d[s][c[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[s]=o(e),n=new i,i[s]=null,n[u]=e):n=d(),void 0===t?n:a(n,t)}},660:function(e,t,n){e.exports=n(63)},67:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},68:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},69:function(e,t,n){var i=n(21);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:i(e,r,t[r]);return e}},7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"gdprDataHandler",function(){return B}),t.setS2STestingModule=function(e){O=e};var h=n(0),p=n(60),g=n(25),u=n(1),m=n(5),y=n(3),r=n(9),S=n.n(r),i=n(12),v=n.n(i),b=n(61),E=n(49);function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O,I=n(0),w=n(4),j=n(8),s={},C=s.bidderRegistry={},d=s.aliasRegistry={},_={};y.b.getConfig("s2sConfig",function(e){_=e.s2sConfig});var o={};function U(e){var i=e.bidderCode,s=e.auctionId,d=e.bidderRequestId,t=e.adUnits,f=e.labels,l=e.src;return t.reduce(function(e,c){var t=Object(p.b)(Object(p.a)(c,f),c.mediaTypes,c.sizes),n=t.active,u=t.mediaTypes,r=t.filterResults;return n?r&&I.logInfo('Size mapping filtered adUnit "'.concat(c.code,'" banner sizes from '),r.before,"to ",r.after):I.logInfo('Size mapping disabled adUnit "'.concat(c.code,'"')),n&&e.push(c.bids.filter(function(e){return e.bidder===i}).reduce(function(e,t){var n=c.nativeParams||I.deepAccess(c,"mediaTypes.native");n&&(t=T({},t,{nativeParams:Object(g.g)(n)})),t=T({},t,Object(h.getDefinedParams)(c,["mediaType","renderer"]));var r=Object(p.b)(Object(p.a)(t,f),u),i=r.active,o=r.mediaTypes,a=r.filterResults;return i?a&&I.logInfo('Size mapping filtered adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'" banner sizes from '),a.before,"to ",a.after):I.logInfo('Size mapping deactivated adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'"')),I.isValidMediaTypes(o)?t=T({},t,{mediaTypes:o}):I.logError("mediaTypes is not correctly configured for adunit ".concat(c.code)),i&&e.push(T({},t,{adUnitCode:c.code,transactionId:c.transactionId,sizes:I.deepAccess(o,"banner.sizes")||I.deepAccess(o,"video.playerSize")||[],bidId:t.bid_id||I.getUniqueIdentifierStr(),bidderRequestId:d,auctionId:s,src:l,bidRequestsCount:b.a.getCounter(c.code)})),e},[])),e},[]).reduce(h.flatten,[]).filter(function(e){return""!==e})}var B={consentData:null,setConsentData:function(e){B.consentData=e},getConsentData:function(){return B.consentData}};function R(){return _&&_.enabled&&_.testing&&O}function a(t,n,e){try{var r=C[t].getSpec();r&&r[n]&&"function"==typeof r[n]&&(I.logInfo("Invoking ".concat(t,".").concat(n)),r[n](e))}catch(e){I.logWarn("Error calling ".concat(n," of ").concat(t))}}s.makeBidRequests=function(e,i,o,a,c){var u=[],t=Object(h.getBidderCodes)(e);y.b.getConfig("bidderSequence")===y.a&&(t=Object(h.shuffle)(t));var n,s=Object(E.b)(),r=t,d=[];if(_.enabled){if(R()){var f=O.getSourceBidderMap(e);d=f[O.CLIENT]}var l=_.bidders;r=t.filter(function(e){return!S()(l,e)||S()(d,e)});Boolean(R()&&_.testServerOnly)&&(n=e,Boolean(v()(n,function(e){return v()(e.bids,function(e){return(e.bidSource||_.bidderControl&&_.bidderControl[e.bidder])&&e.finalSource===O.SERVER})})))&&(r.length=0);var p=function(e){var t=_.bidders,n=I.deepClone(e);return n.forEach(function(e){e.bids=e.bids.filter(function(e){return S()(t,e.bidder)&&(!R()||e.finalSource!==O.CLIENT)}).map(function(e){return e.bid_id=I.getUniqueIdentifierStr(),e})}),n=n.filter(function(e){return 0!==e.bids.length})}(e),g=I.generateUUID();l.forEach(function(e){var t=I.getUniqueIdentifierStr(),n={bidderCode:e,auctionId:o,bidderRequestId:t,tid:g,bids:U({bidderCode:e,auctionId:o,bidderRequestId:t,adUnits:I.deepClone(p),labels:c,src:w.S2S.SRC}),auctionStart:i,timeout:_.timeout,src:w.S2S.SRC,refererInfo:s};0!==n.bids.length&&u.push(n)}),p.forEach(function(e){var t=e.bids.filter(function(t){return v()(u,function(e){return v()(e.bids,function(e){return e.bidId===t.bid_id})})});e.bids=t}),u.forEach(function(e){e.adUnitsS2SCopy=p.filter(function(e){return 0<e.bids.length})})}var b=function(e){var t=I.deepClone(e);return t.forEach(function(e){e.bids=e.bids.filter(function(e){return!R()||e.finalSource!==O.SERVER})}),t=t.filter(function(e){return 0!==e.bids.length})}(e);return r.forEach(function(e){var t=I.getUniqueIdentifierStr(),n={bidderCode:e,auctionId:o,bidderRequestId:t,bids:U({bidderCode:e,auctionId:o,bidderRequestId:t,adUnits:I.deepClone(b),labels:c,src:"client"}),auctionStart:i,timeout:a,refererInfo:s},r=C[e];r||I.logError("Trying to make a request for bidder that does not exist: ".concat(e)),r&&n.bids&&0!==n.bids.length&&u.push(n)}),B.getConsentData()&&u.forEach(function(e){e.gdprConsent=B.getConsentData()}),u},s.callBids=function(e,t,r,i,o,a,c){if(t.length){var n=A(t.reduce(function(e,t){return e[Number(void 0!==t.src&&t.src===w.S2S.SRC)].push(t),e},[[],[]]),2),u=n[0],s=n[1];if(s.length){var d=Object(m.b)(a,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),f=_.bidders,l=C[_.adapter],p=s[0].tid,g=s[0].adUnitsS2SCopy;if(l){var b={tid:p,ad_units:g};if(b.ad_units.length){var y=s.map(function(e){return e.start=Object(h.timestamp)(),i.bind(e)}),v=b.ad_units.reduce(function(e,t){return e.concat((t.bids||[]).reduce(function(e,t){return e.concat(t.bidder)},[]))},[]);I.logMessage("CALLING S2S HEADER BIDDERS ==== ".concat(f.filter(function(e){return S()(v,e)}).join(","))),s.forEach(function(e){j.emit(w.EVENTS.BID_REQUESTED,e)}),l.callBids(b,s,function(e,t){var n=Object(h.getBidderRequest)(s,t.bidderCode,e);n&&r.call(n,e,t)},function(){return y.forEach(function(e){return e()})},d)}}}u.forEach(function(e){e.start=Object(h.timestamp)();var t=C[e.bidderCode];I.logMessage("CALLING BIDDER ======= ".concat(e.bidderCode)),j.emit(w.EVENTS.BID_REQUESTED,e);var n=Object(m.b)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);t.callBids(e,r.bind(e),i.bind(e),n,c)})}else I.logWarn("callBids executed with no bidRequests.  Were they filtered by labels or sizing?")},s.videoAdapters=[],s.registerBidAdapter=function(e,t){var n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,r=void 0===n?[]:n;e&&t?"function"==typeof e.callBids?(C[t]=e,S()(r,"video")&&s.videoAdapters.push(t),S()(r,"native")&&g.e.push(t)):I.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):I.logError("bidAdaptor or bidderCode not specified")},s.aliasBidAdapter=function(t,e){if(void 0===C[e]){var n=C[t];if(void 0===n){var r=y.b.getConfig("s2sConfig"),i=r&&r.bidders;i&&S()(i,e)?d[e]=t:I.logError('bidderCode "'+t+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}else try{var o,a=function(e){var t=[];return S()(s.videoAdapters,e)&&t.push("video"),S()(g.e,e)&&t.push("native"),t}(t);if(n.constructor.prototype!=Object.prototype)(o=new n.constructor).setBidderCode(e);else{var c=n.getSpec();o=Object(u.newBidder)(T({},c,{code:e})),d[e]=t}s.registerBidAdapter(o,e,{supportedMediaTypes:a})}catch(e){I.logError(t+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else I.logMessage('alias name "'+e+'" has been already specified.')},s.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,o[n]=t):I.logError('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"\n        analytics adapter must implement an enableAnalytics() function')):I.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},s.enableAnalytics=function(e){I.isArray(e)||(e=[e]),I._each(e,function(e){var t=o[e.provider];t?t.enableAnalytics(e):I.logError("Prebid Error: no analytics adapter found in registry for\n        ".concat(e.provider,"."))})},s.getBidAdapter=function(e){return C[e]},s.callTimedOutBidders=function(t,n,r){n=n.map(function(e){return e.params=I.getUserConfiguredParams(t,e.adUnitCode,e.bidder),e.timeout=r,e}),n=I.groupBy(n,"bidder"),Object.keys(n).forEach(function(e){a(e,"onTimeout",n[e])})},s.callBidWonBidder=function(e,t,n){t.params=I.getUserConfiguredParams(n,t.adUnitCode,t.bidder),a(e,"onBidWon",t)},s.callSetTargetingBidder=function(e,t){a(e,"onSetTargeting",t)},t.default=s},70:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},71:function(e,t,n){var o=n(29);e.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},72:function(e,t,n){var r=n(32),i=n(14)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},73:function(e,t,n){var r=n(74),i=n(14)("iterator"),o=n(32);e.exports=n(16).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},74:function(e,t,n){var i=n(34),o=n(14)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},75:function(e,t,n){function r(e){c(e,i,{value:{i:"O"+ ++u,w:{}}})}var i=n(47)("meta"),o=n(18),a=n(30),c=n(20).f,u=0,s=Object.isExtensible||function(){return!0},d=!n(33)(function(){return s(Object.preventExtensions({}))}),f=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!s(e))return"F";if(!t)return"E";r(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!s(e))return!0;if(!t)return!1;r(e)}return e[i].w},onFreeze:function(e){return d&&f.NEED&&s(e)&&!a(e,i)&&r(e),e}}},76:function(e,t,n){var r=n(18);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},77:function(e,t,n){"use strict";t.a=function(t,n){o.adServers=o.adServers||{},o.adServers[t]=o.adServers[t]||{},Object.keys(n).forEach(function(e){o.adServers[t][e]?Object(i.logWarn)("Attempting to add an already registered function property ".concat(e," for AdServer ").concat(t,".")):o.adServers[t][e]=n[e]})};var r=n(27),i=n(0),o=Object(r.a)()},8:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c,i,u=n(0),o=n(4),a=Array.prototype.slice,s=Array.prototype.push,d=u._map(o.EVENTS,function(e){return e}),f=o.EVENT_ID_PATHS,l=[];e.exports=(c={},(i={}).on=function(e,t,n){if(function(e){return u.contains(d,e)}(e)){var r=c[e]||{que:[]};n?(r[n]=r[n]||{que:[]},r[n].que.push(t)):r.que.push(t),c[e]=r}else u.logError("Wrong event name : "+e+" Valid event names :"+d)},i.emit=function(e){!function(e,t){u.logMessage("Emitting event for: "+e);var n=t[0]||{},r=n[f[e]],i=c[e]||{que:[]},o=u._map(i,function(e,t){return t}),a=[];l.push({eventType:e,args:n,id:r}),r&&u.contains(o,r)&&s.apply(a,i[r].que),s.apply(a,i.que),u._each(a,function(e){if(e)try{e.apply(null,t)}catch(e){u.logError("Error executing handler:","events.js",e)}})}(e,a.call(arguments,1))},i.off=function(e,n,r){var i=c[e];u.isEmpty(i)||u.isEmpty(i.que)&&u.isEmpty(i[r])||r&&(u.isEmpty(i[r])||u.isEmpty(i[r].que))||(r?u._each(i[r].que,function(e){var t=i[r].que;e===n&&t.splice(u.indexOf.call(t,e),1)}):u._each(i.que,function(e){var t=i.que;e===n&&t.splice(u.indexOf.call(t,e),1)}),c[e]=i)},i.get=function(){return c},i.getEvents=function(){var n=[];return u._each(l,function(e){var t=r({},e);n.push(t)}),n},i)},80:function(e,t,n){"use strict";var r=n(15),i=n(44)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(37)(o)},81:function(e,t,n){e.exports=!n(22)&&!n(33)(function(){return 7!=Object.defineProperty(n(55)("div"),"a",{get:function(){return 7}}).a})},82:function(e,t,n){var i=n(18);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")}},83:function(e,t,n){var r=n(84);e.exports=function(e,t){return new(r(e))(t)}},84:function(e,t,n){var r=n(18),i=n(85),o=n(14)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},85:function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},86:function(e,t,n){"use strict";var r=n(15),i=n(59)(!0);r(r.P,"Array",{includes:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(37)("includes")},87:function(e,t,n){var r=n(46),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},88:function(e,t){e.exports=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t){var i=t[r];n[r]=i&&"object"==typeof i?e(i):i}return n}},89:function(e,t,n){"use strict";t.a=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}},9:function(e,t,n){n(86),e.exports=n(16).Array.includes},90:function(e,t,n){"use strict";t.a=function(e,t,n){t.split&&(t=t.split("."));for(var r,i=0,o=t.length,a=e;i<o;++i)r=a[t[i]],a=a[t[i]]=i===o-1?n:null!=r?r:!~t[i+1].indexOf(".")&&-1<+t[i+1]?[]:{}}},91:function(e,t){h.SYNC=1,h.ASYNC=2,h.QUEUE=4;var g="fun-hooks";var n=Object.freeze({useProxy:!0,ready:0}),b=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,r=Object(this),i=r.length>>>0,o=0;if(t)n=t;else{for(;o<i&&!(o in r);)o++;n=r[o++]}for(;o<i;)o in r&&(n=e(n,r[o],o,r)),o++;return n};function y(e,t){return Array.prototype.slice.call(e,t)}var v=Object.assign||function(e){return r.call(y(arguments,1),function(t,n){return n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),t},e)};function h(u){var s,e={},d=[];function t(e,t){return"function"==typeof e?f.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?f.apply(null,arguments):"object"==typeof e?function(o,e,a){var t=!0;void 0===e&&(e=Object.getOwnPropertyNames(o),t=!1);var c={},n=["constructor"];for(;(e=e.filter(function(e){return!("function"!=typeof o[e]||-1!==n.indexOf(e)||e.match(/^_/))})).forEach(function(e){var t=e.split(":"),n=t[0],r=t[1]||"sync";if(!c[n]){var i=o[n];c[n]=o[n]=f(r,i,a?[a,n]:void 0)}}),o=Object.getPrototypeOf(o),t&&o;);return c}.apply(null,arguments):void 0}function l(o){var a=Array.isArray(o)?o:o.split(".");return r.call(a,function(t,n,e){var r=t[n],i=!1;return r||(e===a.length-1?(s||d.push(function(){i||console.warn(g+": referenced '"+o+"' but it was never created")}),t[n]=p(function(e){t[n]=e,i=!0})):t[n]={})},e)}function p(r){var o=[],a=[],c=function(){},e={before:function(e,t){return n.call(this,o,"before",e,t)},after:function(e,t){return n.call(this,a,"after",e,t)},getHooks:function(n){var e=o.concat(a);return"object"==typeof n&&(e=e.filter(function(t){return Object.keys(n).every(function(e){return t[e]===n[e]})})),v(e,{remove:function(){return e.forEach(function(e){e.remove()}),this}})},removeAll:function(){return this.getHooks().remove()}},t={install:function(e,t,n){this.type=e,(c=n)(o,a),r&&r(t)}};return b.set(e.after,t),e;function n(t,e,n,r){var i={hook:n,type:e,priority:r||10,remove:function(){var e=t.indexOf(i);-1!==e&&(t.splice(e,1),c(o,a))}};return t.push(i),t.sort(function(e,t){return t.priority-e.priority}),c(o,a),this}}function f(f,e,t){var n=e.after&&b.get(e.after);if(n){if(n.type!==f)throw g+": recreated hookable with different type";return e}var r,i,o=t?l(t):p(),a={get:function(e,t){return o[t]||Reflect.get.apply(Reflect,arguments)}};return s||d.push(c),u.useProxy&&"function"==typeof Proxy&&Proxy.revocable?i=new Proxy(e,a):v(i=function(){return a.apply?a.apply(e,this,y(arguments)):e.apply(this,arguments)},o),b.get(i.after).install(f,i,function(e,t){var s,d=[];r=e.length||t.length?(e.forEach(n),s=d.push(void 0)-1,t.forEach(n),function(n,r,e){var i,o=0,a="async"===f&&"function"==typeof e[e.length-1]&&e.pop();function c(e){"sync"===f?i=e:a&&a.apply(null,arguments)}function u(e){if(d[o]){var t=y(arguments);return u.bail=c,t.unshift(u),d[o++].apply(r,t)}"sync"===f?i=e:a&&a.apply(null,arguments)}return d[s]=function(){var e=y(arguments,1);"async"===f&&a&&(delete u.bail,e.push(u));var t=n.apply(r,e);"sync"===f&&u(t)},u.apply(null,e),i}):void 0;function n(e){d.push(e.hook)}c()}),i;function c(){!s&&("sync"!==f||u.ready&h.SYNC)&&("async"!==f||u.ready&h.ASYNC)?"sync"!==f&&u.ready&h.QUEUE?a.apply=function(){var e=arguments;d.push(function(){i.apply(e[1],e[2])})}:a.apply=function(){throw g+": hooked function not ready"}:a.apply=r}}return(u=v({},n,u)).ready?t.ready=function(){s=!0,function(e){for(var t;t=e.shift();)t()}(d)}:s=!0,t.get=l,t}e.exports=h}});pbjsChunk([231],{196:function(e,r,a){e.exports=a(197)},197:function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),a.d(r,"spec",function(){return m});var l=a(11),h=a(0),_=a(3),f=a(1),v=a(2),o=a(28),t=a(12),k=a.n(t),n=a(9),I=a.n(n),g=a(31);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)}function y(){return(y=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}function x(e){return function(e){if(Array.isArray(e)){for(var r=0,a=new Array(e.length);r<e.length;r++)a[r]=e[r];return a}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var A="appnexus",w="//ib.adnxs.com/ut/v3/prebid",d=["id","mimes","minduration","maxduration","startdelay","skippable","playback_method","frameworks"],S=["age","externalUid","segments","gender","dnt","language"],C=["geo","device_id"],T=["enabled","dongle","member_id","debug_timeout"],c={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},s="<script",u=/http:\/\/cdn\.adnxs\.com\/v/,p="trk.js",m={code:A,aliases:["appnexusAst","brealtime","emxdigital","pagescience","defymedia","gourmetads","matomy","featureforward","oftmedia","districtm"],supportedMediaTypes:[v.b,v.d,v.c],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.member&&e.params.invCode)},buildRequests:function(e,r){var a,t=e.map(O),n=k()(e,P);n&&(a={},Object.keys(n.params.user).filter(function(e){return I()(S,e)}).forEach(function(e){return a[e]=n.params.user[e]}));var i,s=k()(e,U);s&&s.params&&s.params.app&&(i={},Object.keys(s.params.app).filter(function(e){return I()(C,e)}).forEach(function(e){return i[e]=s.params.app[e]}));var o,d=k()(e,q);d&&d.params&&s.params.app&&s.params.app.id&&(o={appid:d.params.app.id});var c={},u={},p=h.getCookie("apn_prebid_debug")||null;if(p)try{c=JSON.parse(p)}catch(e){h.logError("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{var m=k()(e,z);m&&m.debug&&(c=m.debug)}c&&c.enabled&&Object.keys(c).filter(function(e){return I()(T,e)}).forEach(function(e){u[e]=c[e]});var l=k()(e,N),f=l?parseInt(l.params.member,10):0,v={tags:x(t),user:a,sdk:{source:"pbjs",version:"2.32.0"}};if(0<f&&(v.member_id=f),s&&(v.device=i),d&&(v.app=o),_.b.getConfig("adpod.brandCategoryExclusion")&&(v.brand_category_uniqueness=!0),u.enabled&&(v.debug=u,h.logInfo("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(u,null,4))),r&&r.gdprConsent&&(v.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies}),r&&r.refererInfo){var g={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(",")};v.referrer_detection=g}k()(e,M)&&e.filter(M).forEach(function(r){var e=function(e,r){var a=r.mediaTypes.video,t=a.durationRangeSec,n=a.requireExactDuration,i=function(e){var r=e.adPodDurationSec,a=e.durationRangeSec,t=e.requireExactDuration,n=h.getMinValueFromArray(a),i=Math.floor(r/n);return t?Math.max(i,a.length):i}(r.mediaTypes.video),s=h.getMaxValueFromArray(t),o=e.filter(function(e){return e.uuid===r.bidId}),d=h.fill.apply(h,x(o).concat([i]));if(n){var c=Math.ceil(i/t.length),u=h.chunk(d,c);t.forEach(function(r,e){u[e].map(function(e){B(e,"minduration",r),B(e,"maxduration",r)})})}else d.map(function(e){return B(e,"maxduration",s)});return d}(t,r),a=v.tags.filter(function(e){return e.uuid!==r.bidId});v.tags=[].concat(x(a),x(e))});var y=h.deepAccess(e[0],"userId.criteortus.".concat(A,".userid"));if(y){var b=[];b.push({provider:"criteo",user_id:y}),v.tpuids=b}return function(e,a){var t=[];if(15<e.tags.length){var n=h.deepClone(e);h.chunk(e.tags,15).forEach(function(e){n.tags=e;var r=JSON.stringify(n);t.push({method:"POST",url:w,data:r,bidderRequest:a})})}else{var r=JSON.stringify(e);t={method:"POST",url:w,data:r,bidderRequest:a}}return t}(v,r)},interpretResponse:function(e,r){var t=this,n=r.bidderRequest;e=e.body;var i=[];if(!e||e.error){var a="in response for ".concat(n.bidderCode," adapter");return e&&e.error&&(a+=": ".concat(e.error)),h.logError(a),i}if(e.tags&&e.tags.forEach(function(e){var r=function(e){return e&&e.ads&&e.ads.length&&k()(e.ads,function(e){return e.rtb})}(e);if(r&&0!==r.cpm&&I()(t.supportedMediaTypes,r.ad_type)){var a=function(r,e,a){var t=h.getBidRequest(r.uuid,[a]),n={requestId:r.uuid,cpm:e.cpm,creativeId:e.creative_id,dealId:e.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:t.adUnitCode,appnexus:{buyerMemberId:e.buyer_member_id,dealPriority:e.deal_priority,dealCode:e.deal_code}};e.advertiser_id&&(n.meta=y({},n.meta,{advertiserId:e.advertiser_id}));if(e.rtb.video){switch(y(n,{width:e.rtb.video.player_width,height:e.rtb.video.player_height,vastImpUrl:e.notify_url,ttl:3600}),h.deepAccess(t,"mediaTypes.video.context")){case v.a:var i=Object(f.getIabSubCategory)(t.bidder,e.brand_category_id);n.meta=y({},n.meta,{iabSubCatId:i}),n.video={context:v.a,durationSeconds:Math.floor(e.rtb.video.duration_ms/1e3)},n.vastUrl=e.rtb.video.asset_url;break;case g.b:if(n.adResponse=r,n.adResponse.ad=n.adResponse.ads[0],n.adResponse.ad.video=n.adResponse.ad.rtb.video,n.vastXml=e.rtb.video.content,e.renderer_url){var s=k()(a.bids,function(e){return e.bidId===r.uuid}),o=h.deepAccess(s,"renderer.options");n.renderer=function(e,r){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=l.a.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1,adUnitCode:e});try{t.setRender(D)}catch(e){h.logWarn("Prebid Error calling setRender on renderer",e)}return t.setEventHandlers({impression:function(){return h.logMessage("AppNexus outstream video impression event")},loaded:function(){return h.logMessage("AppNexus outstream video loaded event")},ended:function(){h.logMessage("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),t}(n.adUnitCode,e,o)}break;case g.a:n.vastUrl=e.rtb.video.asset_url}}else if(e.rtb[v.c]){var d=e.rtb[v.c],c=e.viewability.config.replace("src=","data-src="),u=d.javascript_trackers;null==u?u=c:h.isStr(u)?u=[u,c]:u.push(c),n[v.c]={title:d.title,body:d.desc,body2:d.desc2,cta:d.ctatext,rating:d.rating,sponsoredBy:d.sponsored,privacyLink:d.privacy_link,address:d.address,downloads:d.downloads,likes:d.likes,phone:d.phone,price:d.price,salePrice:d.saleprice,clickUrl:d.link.url,displayUrl:d.displayurl,clickTrackers:d.link.click_trackers,impressionTrackers:d.impression_trackers,javascriptTrackers:u},d.main_img&&(n.native.image={url:d.main_img.url,height:d.main_img.height,width:d.main_img.width}),d.icon&&(n.native.icon={url:d.icon.url,height:d.icon.height,width:d.icon.width})}else{y(n,{width:e.rtb.banner.width,height:e.rtb.banner.height,ad:e.rtb.banner.content});try{var p=e.rtb.trackers[0].impression_urls[0],m=h.createTrackPixelHtml(p);n.ad+=m}catch(e){h.logError("Error appending tracking pixel",e)}}return n}(e,r,n);a.mediaType=function(e){var r=e.ad_type;return r===v.d?v.d:r===v.c?v.c:v.b}(r),i.push(a)}}),e.debug&&e.debug.debug_info){var s="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;s=s.replace(/(<td>|<th>)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^<br>/gm,"").replace(/(<br>\n|<br>)/gm,"\n").replace(/<h1>(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/<h[2-6]>(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),h.logMessage("https://console.appnexus.com/docs/understanding-the-debug-auction"),h.logMessage(s)}return i},getMappingFileInfo:function(){return{url:"//acdn.adnxs.com/prebid/appnexus-mapping/mappings.json",refreshInDays:7}},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html"}]},transformBidParams:function(a,e){return a=h.convertTypes({member:"string",invCode:"string",placementId:"number",keywords:h.transformBidderParamKeywords},a),e&&(a.use_pmt_rule="boolean"==typeof a.usePaymentRule&&a.usePaymentRule,a.usePaymentRule&&delete a.usePaymentRule,b(a.keywords)&&a.keywords.forEach(E),Object.keys(a).forEach(function(e){var r=h.convertCamelToUnderscore(e);r!==e&&(a[r]=a[e],delete a[e])})),a},onBidWon:function(e){e.native&&function(e){var r=function(e){var r;if(h.isStr(e)&&R(e))r=e;else if(h.isArray(e))for(var a=0;a<e.length;a++){var t=e[a];R(t)&&(r=t)}return r}(e.native.javascriptTrackers);if(r)for(var a="pbjs_adid="+e.adId+";pbjs_auc="+e.adUnitCode,t=function(e){var r=e.indexOf('src="')+5,a=e.indexOf('"',r);return e.substring(r,a)}(r),n=t.replace("dom_id=%native_dom_id%",a),i=document.getElementsByTagName("iframe"),s=!1,o=0;o<i.length&&!s;o++){var d=i[o];try{var c=d.contentDocument||d.contentWindow.document;if(c)for(var u=c.getElementsByTagName("script"),p=0;p<u.length&&!s;p++){var m=u[p];m.getAttribute("data-src")==t&&(m.setAttribute("src",n),m.setAttribute("data-src",""),m.removeAttribute&&m.removeAttribute("data-src"),s=!0)}}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}}(e)}};function b(e){return!!(h.isArray(e)&&0<e.length)}function E(e){b(e.value)&&""===e.value[0]&&delete e.value}function R(e){var r=e.match(u),a=null!=r&&1<=r.length,t=e.match(p),n=null!=t&&1<=t.length;return e.startsWith(s)&&n&&a}function O(r){var a={};if(a.sizes=j(r.sizes),a.primary_size=a.sizes[0],a.ad_types=[],a.uuid=r.bidId,r.params.placementId?a.id=parseInt(r.params.placementId,10):a.code=r.params.invCode,a.allow_smaller_sizes=r.params.allowSmallerSizes||!1,a.use_pmt_rule=r.params.usePaymentRule||!1,a.prebid=!0,a.disable_psa=!0,r.params.reserve&&(a.reserve=r.params.reserve),r.params.position&&(a.position={above:1,below:2}[r.params.position]||0),r.params.trafficSourceCode&&(a.traffic_source_code=r.params.trafficSourceCode),r.params.privateSizes&&(a.private_sizes=j(r.params.privateSizes)),r.params.supplyType&&(a.supply_type=r.params.supplyType),r.params.pubClick&&(a.pubclick=r.params.pubClick),r.params.extInvCode&&(a.ext_inv_code=r.params.extInvCode),r.params.externalImpId&&(a.external_imp_id=r.params.externalImpId),!h.isEmpty(r.params.keywords)){var e=h.transformBidderParamKeywords(r.params.keywords);0<e.length&&e.forEach(E),a.keywords=e}if((r.mediaType===v.c||h.deepAccess(r,"mediaTypes.".concat(v.c)))&&(a.ad_types.push(v.c),0===a.sizes.length&&(a.sizes=j([1,1])),r.nativeParams)){var t=function(n){var i={};return Object.keys(n).forEach(function(e){var r=c[e]&&c[e].serverName||c[e]||e,a=c[e]&&c[e].requiredParams;if(i[r]=y({},a,n[e]),!(r!==c.image.serverName&&r!==c.icon.serverName)&&i[r].sizes){var t=i[r].sizes;(h.isArrayOfNums(t)||h.isArray(t)&&0<t.length&&t.every(function(e){return h.isArrayOfNums(e)}))&&(i[r].sizes=j(i[r].sizes))}r===c.privacyLink&&(i.privacy_supported=!0)}),i}(r.nativeParams);a[v.c]={layouts:[t]}}var n=h.deepAccess(r,"mediaTypes.".concat(v.d)),i=h.deepAccess(r,"mediaTypes.video.context");r.mediaType!==v.d&&!n||a.ad_types.push(v.d),(r.mediaType===v.d||n&&"outstream"!==i)&&(a.require_asset_url=!0),r.params.video&&(a.video={},Object.keys(r.params.video).filter(function(e){return I()(d,e)}).forEach(function(e){return a.video[e]=r.params.video[e]})),r.renderer&&(a.video=y({},a.video,{custom_renderer_present:!0}));var s=k()(o.a.getAdUnits(),function(e){return r.transactionId===e.transactionId});return s&&s.mediaTypes&&s.mediaTypes.banner&&a.ad_types.push(v.b),0===a.ad_types.length&&delete a.ad_types,a}function j(e){var r=[],a={};if(h.isArray(e)&&2===e.length&&!h.isArray(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===i(e))for(var t=0;t<e.length;t++){var n=e[t];(a={}).width=parseInt(n[0],10),a.height=parseInt(n[1],10),r.push(a)}return r}function P(e){return!!e.params.user}function N(e){return!!parseInt(e.params.member,10)}function U(e){if(e.params)return!!e.params.app}function q(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function z(e){return!!e.debug}function M(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===v.a}function B(e,r,a){h.isEmpty(e.video)&&(e.video={}),e.video[r]=a}function D(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()},function(e,r,a){e.renderer.handleVideoEvent({id:r,eventName:a})}.bind(null,e))})}Object(f.registerBidder)(m)}},[196]);pbjsChunk([206],{246:function(n,t,e){n.exports=e(247)},247:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"userCMP",function(){return o}),e.d(t,"consentTimeout",function(){return a}),e.d(t,"allowAuction",function(){return i}),e.d(t,"staticConsentData",function(){return s}),t.requestBidsHook=D,t.resetConsentData=function(){c=void 0,d.gdprDataHandler.setConsentData(null)},t.setConsentConfig=x;var o,a,i,s,c,l=e(0),r=e(3),d=e(7),u=e(9),g=e.n(u),f=e(248),p=e.n(f),m="iab",C=1e4,v=!0,w=!1,b={iab:function(n,t,i){var e,o=function(){var t={};function e(){t.getConsentData&&t.getVendorConsents&&n(t,i)}return{consentDataCallback:function(n){t.getConsentData=n,e()},vendorConsentsCallback:function(n){t.getVendorConsents=n,e()}}}(),c={};try{e=window.__cmp||l.getWindowTop().__cmp}catch(n){}if(l.isFn(e))e("getConsentData",null,o.consentDataCallback),e("getVendorConsents",null,o.vendorConsentsCallback);else if(window.$sf&&window.$sf.ext&&"function"==typeof window.$sf.ext.cmp)r("getConsentData",o.consentDataCallback),r("getVendorConsents",o.vendorConsentsCallback);else{for(var a,s=window;!a;){try{s.frames.__cmpLocator&&(a=s)}catch(n){}if(s===window.top)break;s=s.parent}if(!a)return t("CMP not found.",i);d("getConsentData",a,o.consentDataCallback),d("getVendorConsents",a,o.vendorConsentsCallback)}function r(o,a){var n=i.adUnits,t=1,e=1;if(Array.isArray(n)&&0<n.length){var s=l.getAdUnitSizes(n[0]);t=s[0][0],e=s[0][1]}window.$sf.ext.register(t,e,function(n,t){if("cmpReturn"===n){var e="getConsentData"===o?t.vendorConsentData:t.vendorConsents;a(e)}}),window.$sf.ext.cmp(o)}function d(n,s,t){function e(n){var t="string"==typeof n.data&&p()(n.data,"cmpReturn")?JSON.parse(n.data):n.data;if(t.__cmpReturn&&t.__cmpReturn.callId){var e=t.__cmpReturn;void 0!==c[e.callId]&&(c[e.callId](e.returnValue,e.success),delete c[e.callId])}}window.__cmp=function(n,t,e){var o=Math.random()+"",a={__cmpCall:{command:n,parameter:t,callId:o}};c[o]=e,s.postMessage(a,"*")},window.addEventListener("message",e,!1),window.__cmp(n,null,function(n){window.removeEventListener("message",e,!1),t(n)})}},static:function(n,t,e){n(s,e)}};function D(n,t){var e={context:this,args:[t],nextFn:n,adUnits:t.adUnits||pbjs.adUnits,bidsBackHandler:t.bidsBackHandler,haveExited:!1,timer:null};return c?_(null,e):g()(Object.keys(b),o)?(b[o].call(this,k,y,e),void(e.haveExited||(0===a?k(void 0,e):e.timer=setTimeout(function(n){y("CMP workflow exceeded timeout threshold.",n)}.bind(null,e),a)))):(l.logWarn("CMP framework (".concat(o,") is not a supported framework.  Aborting consentManagement module and resuming auction.")),e.nextFn.apply(e.context,e.args))}function k(n,t){var e=n&&n.getConsentData&&n.getConsentData.gdprApplies;"boolean"==typeof e&&(!0!==e||l.isStr(n.getConsentData.consentData)&&l.isPlainObject(n.getVendorConsents)&&1<Object.keys(n.getVendorConsents).length)?(clearTimeout(t.timer),h(n),_(null,t)):y("CMP returned unexpected value during lookup process.",t,n)}function y(n,t,e){clearTimeout(t.timer),i&&h(void 0),_(n,t,e)}function h(n){c={consentString:n?n.getConsentData.consentData:void 0,vendorData:n?n.getVendorConsents:void 0,gdprApplies:n?n.getConsentData.gdprApplies:void 0},d.gdprDataHandler.setConsentData(c)}function _(n,t,e){if(!1===t.haveExited){t.haveExited=!0;var o=t.context,a=t.args,s=t.nextFn;n?i?(l.logWarn(n+" Resuming auction without consent data as per consentManagement config.",e),s.apply(o,a)):(l.logError(n+" Canceling auction as per consentManagement config.",e),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():l.logError("Error executing bidsBackHandler")):s.apply(o,a)}}function x(n){l.isStr(n.cmpApi)?o=n.cmpApi:(o=m,l.logInfo("consentManagement config did not specify cmp.  Using system default setting (".concat(m,")."))),l.isNumber(n.timeout)?a=n.timeout:(a=C,l.logInfo("consentManagement config did not specify timeout.  Using system default setting (".concat(C,")."))),"boolean"==typeof n.allowAuctionWithoutConsent?i=n.allowAuctionWithoutConsent:(i=v,l.logInfo("consentManagement config did not specify allowAuctionWithoutConsent.  Using system default setting (".concat(v,")."))),l.logInfo("consentManagement module has been activated..."),"static"===o&&(l.isPlainObject(n.consentData)?(s=n.consentData,a=0):l.logError("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),w||pbjs.requestBids.before(D,50),w=!0}r.b.getConfig("consentManagement",function(n){return x(n.consentManagement)})}},[246]);pbjsChunk([0],{263:function(t,e,i){t.exports=i(264)},264:function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0}),__webpack_require__.d(__webpack_exports__,"ADAPTER_VERSION",function(){return ADAPTER_VERSION}),__webpack_require__.d(__webpack_exports__,"PROFILE_ID_PUBLISHERTAG",function(){return PROFILE_ID_PUBLISHERTAG}),__webpack_require__.d(__webpack_exports__,"FAST_BID_PUBKEY",function(){return FAST_BID_PUBKEY}),__webpack_require__.d(__webpack_exports__,"spec",function(){return spec}),__webpack_exports__.tryGetCriteoFastBid=tryGetCriteoFastBid;var __WEBPACK_IMPORTED_MODULE_0__src_adloader__=__webpack_require__(50),__WEBPACK_IMPORTED_MODULE_1__src_adapters_bidderFactory__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_2__src_config__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_3__src_mediaTypes__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_4__src_url__=__webpack_require__(10),__WEBPACK_IMPORTED_MODULE_5__src_utils__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_6_core_js_library_fn_array_find__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_6_core_js_library_fn_array_find___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_core_js_library_fn_array_find__),__WEBPACK_IMPORTED_MODULE_7_jsencrypt_bin_jsencrypt__=__webpack_require__(265),__WEBPACK_IMPORTED_MODULE_7_jsencrypt_bin_jsencrypt___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_jsencrypt_bin_jsencrypt__),__WEBPACK_IMPORTED_MODULE_8_crypto_js_sha256__=__webpack_require__(266),__WEBPACK_IMPORTED_MODULE_8_crypto_js_sha256___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_crypto_js_sha256__);function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var ADAPTER_VERSION=20,BIDDER_CODE="criteo",CDB_ENDPOINT="//bidder.criteo.com/cdb",CRITEO_VENDOR_ID=91,PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,PUBLISHER_TAG_URL="//static.criteo.net/js/ld/publishertag.prebid.js",FAST_BID_PUBKEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDO1BjAITkFTtP0IMzmF7qsqhpu\ny1dGaTPHnjMU9mRZsrnfR3C0sEN5pYEzEcFRPnkJjJuhH8Rnh5+CE+LcKg0Z8ZZ7\nOmOSj0/qnYTAYCu0cR5LiyWG79KlIgUyMbp92ulGg24gAyGrVn4+v/4c53WlOEUp\n4YWvb82G0CD5NcDNpQIDAQAB\n-----END PUBLIC KEY-----",spec={code:BIDDER_CODE,supportedMediaTypes:[__WEBPACK_IMPORTED_MODULE_3__src_mediaTypes__.b,__WEBPACK_IMPORTED_MODULE_3__src_mediaTypes__.d],isBidRequestValid:function(t){return!(!t||!t.params||!t.params.zoneId&&!t.params.networkId)&&!(hasVideoMediaType(t)&&!hasValidVideoMediaType(t))},buildRequests:function(t,e){var i,r;if(_extends(e,{ceh:__WEBPACK_IMPORTED_MODULE_2__src_config__.b.getConfig("criteo.ceh")}),publisherTagAvailable()||(window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid(),setTimeout(function(){Object(__WEBPACK_IMPORTED_MODULE_0__src_adloader__.a)(PUBLISHER_TAG_URL,BIDDER_CODE)},e.timeout)),publisherTagAvailable()){var n=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,t,e,"2.32.0");i=n.buildCdbUrl(),r=n.buildCdbRequest()}else{var s=buildContext(t);i=buildCdbUrl(s),r=buildCdbRequest(s,t,e)}if(r)return{method:"POST",url:i,data:r,bidRequests:t}},interpretResponse:function(t,n){var e=t.body||t;if(publisherTagAvailable()){var i=Criteo.PubTag.Adapters.Prebid.GetAdapter(n);if(i)return i.interpretResponse(e,n)}var s=[];return e&&e.slots&&__WEBPACK_IMPORTED_MODULE_5__src_utils__.isArray(e.slots)&&e.slots.forEach(function(e){var t=__WEBPACK_IMPORTED_MODULE_6_core_js_library_fn_array_find___default()(n.bidRequests,function(t){return t.adUnitCode===e.impid&&(!t.params.zoneId||parseInt(t.params.zoneId)===e.zoneid)}),i=t.bidId,r={requestId:i,adId:e.bidId||__WEBPACK_IMPORTED_MODULE_5__src_utils__.getUniqueIdentifierStr(),cpm:e.cpm,currency:e.currency,netRevenue:!0,ttl:e.ttl||60,creativeId:i,width:e.width,height:e.height,dealId:e.dealCode};e.native?r.ad=createNativeAd(i,e.native,t.params.nativeCallback):e.video?(r.vastUrl=e.displayurl,r.mediaType=__WEBPACK_IMPORTED_MODULE_3__src_mediaTypes__.d):r.ad=e.creative,s.push(r)}),s},onTimeout:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidTimeout()},onBidWon:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidWon(t)},onSetTargeting:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleSetTargeting(t)}};function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(t){var e=__WEBPACK_IMPORTED_MODULE_5__src_utils__.getTopWindowUrl(),i=Object(__WEBPACK_IMPORTED_MODULE_4__src_url__.c)(e).search,r={url:e,debug:"1"===i.pbt_debug,noLog:"1"===i.pbt_nolog,amp:!1};return t.forEach(function(t){"amp"===t.params.integrationMode&&(r.amp=!0)}),r}function buildCdbUrl(t){var e=CDB_ENDPOINT;return e+="?profileId="+PROFILE_ID_INLINE,e+="&av="+String(ADAPTER_VERSION),e+="&wv="+encodeURIComponent("2.32.0"),e+="&cb="+String(Math.floor(99999999999*Math.random())),t.amp&&(e+="&im=1"),t.debug&&(e+="&debug=1"),t.noLog&&(e+="&nolog=1"),e}function buildCdbRequest(t,e,i){var r,n={publisher:{url:t.url},slots:e.map(function(t){r=t.params.networkId||r;var e={impid:t.adUnitCode,transactionid:t.transactionId,auctionId:t.auctionId,sizes:getBannerSizes(t)};if(t.params.zoneId&&(e.zoneid=t.params.zoneId),t.params.publisherSubId&&(e.publishersubid=t.params.publisherSubId),t.params.nativeCallback&&(e.native=!0),hasVideoMediaType(t)){var i={playersizes:getVideoSizes(t),mimes:t.mediaTypes.video.mimes,protocols:t.mediaTypes.video.protocols,maxduration:t.mediaTypes.video.maxduration,api:t.mediaTypes.video.api};i.skip=t.params.video.skip,i.placement=t.params.video.placement,i.minduration=t.params.video.minduration,i.playbackmethod=t.params.video.playbackmethod,i.startdelay=t.params.video.startdelay,e.video=i}return e})};return r&&(n.publisher.networkid=r),n.user={},i&&i.ceh&&(n.user.ceh=i.ceh),i&&i.gdprConsent&&(n.gdprConsent={},void 0!==i.gdprConsent.gdprApplies&&(n.gdprConsent.gdprApplies=!!i.gdprConsent.gdprApplies),i.gdprConsent.vendorData&&i.gdprConsent.vendorData.vendorConsents&&void 0!==i.gdprConsent.vendorData.vendorConsents[CRITEO_VENDOR_ID.toString(10)]&&(n.gdprConsent.consentGiven=!!i.gdprConsent.vendorData.vendorConsents[CRITEO_VENDOR_ID.toString(10)]),void 0!==i.gdprConsent.consentString&&(n.gdprConsent.consentData=i.gdprConsent.consentString)),n}function getVideoSizes(t){return parseSizes(__WEBPACK_IMPORTED_MODULE_5__src_utils__.deepAccess(t,"mediaTypes.video.playerSize"))}function getBannerSizes(t){return parseSizes(__WEBPACK_IMPORTED_MODULE_5__src_utils__.deepAccess(t,"mediaTypes.banner.sizes")||t.sizes)}function parseSize(t){return t[0]+"x"+t[1]}function parseSizes(t){return Array.isArray(t[0])?t.map(function(t){return parseSize(t)}):[parseSize(t)]}function hasVideoMediaType(t){return void 0!==__WEBPACK_IMPORTED_MODULE_5__src_utils__.deepAccess(t,"params.video")&&void 0!==__WEBPACK_IMPORTED_MODULE_5__src_utils__.deepAccess(t,"mediaTypes.video")}function hasValidVideoMediaType(e){var i=!0;["mimes","playerSize","maxduration","protocols","api"].forEach(function(t){void 0===__WEBPACK_IMPORTED_MODULE_5__src_utils__.deepAccess(e,"mediaTypes.video."+t)&&(i=!1,__WEBPACK_IMPORTED_MODULE_5__src_utils__.logError("Criteo Bid Adapter: mediaTypes.video."+t+" is required"))});if(["skip","placement","playbackmethod"].forEach(function(t){void 0===__WEBPACK_IMPORTED_MODULE_5__src_utils__.deepAccess(e,"params.video."+t)&&(i=!1,__WEBPACK_IMPORTED_MODULE_5__src_utils__.logError("Criteo Bid Adapter: params.video."+t+" is required"))}),i){if("instream"==e.mediaTypes.video.context&&1===e.params.video.placement)return!0;if("outstream"==e.mediaTypes.video.context&&1!==e.params.video.placement)return!0}return!1}function createNativeAd(t,e,i){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[t]={callback:i,payload:e},'<script type="text/javascript">\n    var win = window;\n    for (var i = 0; i < 10; ++i) {\n      win = win.parent;\n      if (win.criteo_prebid_native_slots) {\n        var responseSlot = win.criteo_prebid_native_slots["'.concat(t,'"];\n        responseSlot.callback(responseSlot.payload);\n        break;\n      }\n    }\n  <\/script>')}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=localStorage.getItem(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)__WEBPACK_IMPORTED_MODULE_5__src_utils__.logWarn("No hash found in FastBid"),localStorage.removeItem(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1),jsEncrypt=new __WEBPACK_IMPORTED_MODULE_7_jsencrypt_bin_jsencrypt___default.a;jsEncrypt.setPublicKey(FAST_BID_PUBKEY),jsEncrypt.verify(publisherTag,publisherTagHash,__WEBPACK_IMPORTED_MODULE_8_crypto_js_sha256___default.a)?(__WEBPACK_IMPORTED_MODULE_5__src_utils__.logInfo("Using Criteo FastBid"),eval(publisherTag)):(__WEBPACK_IMPORTED_MODULE_5__src_utils__.logWarn("Invalid Criteo FastBid found"),localStorage.removeItem(fastBidStorageKey))}}}catch(t){}}Object(__WEBPACK_IMPORTED_MODULE_1__src_adapters_bidderFactory__.registerBidder)(spec)},265:function(t,e,i){(function(t){"use strict";var e="0123456789abcdefghijklmnopqrstuvwxyz";function h(t){return e.charAt(t)}function i(t,e){return t&e}function u(t,e){return t|e}function r(t,e){return t^e}function n(t,e){return t&~e}function s(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function o(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function c(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=a.charAt(i>>6)+a.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=a.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=a.charAt(i>>2)+a.charAt((3&i)<<4));0<(3&r.length);)r+="=";return r}function f(t){var e,i="",r=0,n=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var s=a.indexOf(t.charAt(e));s<0||(r=0==r?(i+=h(s>>2),n=3&s,1):1==r?(i+=h(n<<2|s>>4),n=15&s,2):2==r?(i+=h(n),i+=h(s>>2),n=3&s,3):(i+=h(n<<2|s>>4),i+=h(15&s),0))}return 1==r&&(i+=h(n<<2)),i}var l,p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var d,g=function(t){var e;if(void 0===l){var i="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(l={},e=0;e<16;++e)l[i.charAt(e)]=e;for(i=i.toLowerCase(),e=10;e<16;++e)l[i.charAt(e)]=e;for(e=0;e<r.length;++e)l[r.charAt(e)]=-1}var n=[],s=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=l[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);s|=a,2<=++o?(n[n.length]=s,o=s=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return n},_={decode:function(t){var e;if(void 0===d){var i="= \f\n\r\t \u2028\u2029";for(d=Object.create(null),e=0;e<64;++e)d["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(e=0;e<i.length;++e)d[i.charAt(e)]=-1}var r=[],n=0,s=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=d[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);n|=o,4<=++s?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,s=n=0):n<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=_.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return _.decode(t)}},v=1e13,m=(y.prototype.mulAdd=function(t,e){var i,r,n=this.buf,s=n.length;for(i=0;i<s;++i)(r=n[i]*t+e)<v?e=0:r-=(e=0|r/v)*v,n[i]=r;0<e&&(n[i]=e)},y.prototype.sub=function(t){var e,i,r=this.buf,n=r.length;for(e=0;e<n;++e)t=(i=r[e]-t)<0?(i+=v,1):0,r[e]=i;for(;0===r[r.length-1];)r.pop()},y.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),r=e.length-2;0<=r;--r)i+=(v+e[r]).toString().substring(1);return i},y.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;0<=i;--i)e=e*v+t[i];return e},y.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},y);function y(t){this.buf=[+t||0]}var b="…",E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,T=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function S(t,e){return t.length>e&&(t=t.substring(0,e)+b),t}var D=(w.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},w.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},w.prototype.hexDump=function(t,e,i){for(var r="",n=t;n<e;++n)if(r+=this.hexByte(this.get(n)),!0!==i)switch(15&n){case 7:r+="  ";break;case 15:r+="\n";break;default:r+=" "}return r},w.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var r=this.get(i);if(r<32||176<r)return!1}return!0},w.prototype.parseStringISO=function(t,e){for(var i="",r=t;r<e;++r)i+=String.fromCharCode(this.get(r));return i},w.prototype.parseStringUTF=function(t,e){for(var i="",r=t;r<e;){var n=this.get(r++);i+=n<128?String.fromCharCode(n):191<n&&n<224?String.fromCharCode((31&n)<<6|63&this.get(r++)):String.fromCharCode((15&n)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return i},w.prototype.parseStringBMP=function(t,e){for(var i,r,n="",s=t;s<e;)i=this.get(s++),r=this.get(s++),n+=String.fromCharCode(i<<8|r);return n},w.prototype.parseTime=function(t,e,i){var r=this.parseStringISO(t,e),n=(i?E:T).exec(r);return n?(i&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),r=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(r+=":"+n[5],n[6]&&(r+=":"+n[6],n[7]&&(r+="."+n[7]))),n[8]&&(r+=" UTC","Z"!=n[8]&&(r+=n[8],n[9]&&(r+=":"+n[9]))),r):"Unrecognized time: "+r},w.prototype.parseInteger=function(t,e){for(var i,r=this.get(t),n=127<r,s=n?255:0,o="";r==s&&++t<e;)r=this.get(t);if(0==(i=e-t))return n?-1:0;if(4<i){for(o=r,i<<=3;0==(128&(+o^s));)o=+o<<1,--i;o="("+i+" bit)\n"}n&&(r-=256);for(var a=new m(r),h=t+1;h<e;++h)a.mulAdd(256,this.get(h));return o+a.toString()},w.prototype.parseBitString=function(t,e,i){for(var r=this.get(t),n="("+((e-t-1<<3)-r)+" bit)\n",s="",o=t+1;o<e;++o){for(var a=this.get(o),h=o==e-1?r:0,u=7;h<=u;--u)s+=a>>u&1?"1":"0";if(s.length>i)return n+S(s,i)}return n+s},w.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return S(this.parseStringISO(t,e),i);var r=e-t,n="("+r+" byte)\n";(i/=2)<r&&(e=t+i);for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));return i<r&&(n+=b),n},w.prototype.parseOID=function(t,e,i){for(var r="",n=new m,s=0,o=t;o<e;++o){var a=this.get(o);if(n.mulAdd(128,127&a),s+=7,!(128&a)){if(""===r)if((n=n.simplify())instanceof m)n.sub(80),r="2."+n.toString();else{var h=n<80?n<40?0:1:2;r=h+"."+(n-40*h)}else r+="."+n.toString();if(r.length>i)return S(r,i);n=new m,s=0}}return 0<s&&(r+=".incomplete"),r},w);function w(t,e){this.hexDigits="0123456789ABCDEF",t instanceof w?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}var B=(O.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},O.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return S(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return S(this.stream.parseStringISO(e,e+i),t);case 30:return S(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,23==this.tag.tagNumber)}return null},O.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},O.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(0<=this.length&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+="  ";for(var i=0,r=this.sub.length;i<r;++i)e+=this.sub[i].toPrettyString(t)}return e},O.prototype.posStart=function(){return this.stream.pos},O.prototype.posContent=function(){return this.stream.pos+this.header},O.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},O.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},O.decodeLength=function(t){var e=t.get(),i=127&e;if(i==e)return i;if(6<i)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0==i)return null;for(var r=e=0;r<i;++r)e=256*e+t.get();return e},O.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,i=2*this.length;return t.substr(e,i)},O.decode=function(t){var r;function e(){var t=[];if(null!==s){for(var e=o+s;r.pos<e;)t[t.length]=O.decode(r);if(r.pos!=e)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=O.decode(r);if(i.tag.isEOC())break;t[t.length]=i}s=o-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return t}r=t instanceof D?t:new D(t,0);var i=new D(r),n=new R(r),s=O.decodeLength(r),o=r.pos,a=o-i.pos,h=null;if(n.tagConstructed)h=e();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");h=e();for(var u=0;u<h.length;++u)if(h[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){h=null}if(null===h){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new O(i,a,s,n,h)},O);function O(t,e,i,r,n){if(!(r instanceof R))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=i,this.tag=r,this.sub=n}var A,R=(I.prototype.isUniversal=function(){return 0===this.tagClass},I.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},I);function I(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){for(var i=new m;e=t.get(),i.mulAdd(128,127&e),128&e;);this.tagNumber=i.simplify()}}var P=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],x=(1<<26)/P[P.length-1],M=(C.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,r=(1<<e)-1,n=!1,s="",o=this.t,a=this.DB-o*this.DB%e;if(0<o--)for(a<this.DB&&0<(i=this[o]>>a)&&(n=!0,s=h(i));0<=o;)a<e?(i=(this[o]&(1<<a)-1)<<e-a,i|=this[--o]>>(a+=this.DB-e)):(i=this[o]>>(a-=e)&r,a<=0&&(a+=this.DB,--o)),0<i&&(n=!0),n&&(s+=h(i));return n?s:"0"},C.prototype.negate=function(){var t=k();return C.ZERO.subTo(this,t),t},C.prototype.abs=function(){return this.s<0?this.negate():this},C.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;0<=--i;)if(0!=(e=this[i]-t[i]))return e;return 0},C.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+$(this[this.t-1]^this.s&this.DM)},C.prototype.mod=function(t){var e=k();return this.abs().divRemTo(t,null,e),this.s<0&&0<e.compareTo(C.ZERO)&&t.subTo(e,e),e},C.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new L(e):new q(e),this.exp(t,i)},C.prototype.clone=function(){var t=k();return this.copyTo(t),t},C.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},C.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},C.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},C.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},C.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,n=0;if(0<t--)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[n++]=i|this.s<<this.DB-r);0<=t;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==n&&(128&this.s)!=(128&i)&&++n,(0<n||i!=this.s)&&(e[n++]=i);return e},C.prototype.equals=function(t){return 0==this.compareTo(t)},C.prototype.min=function(t){return this.compareTo(t)<0?this:t},C.prototype.max=function(t){return 0<this.compareTo(t)?this:t},C.prototype.and=function(t){var e=k();return this.bitwiseTo(t,i,e),e},C.prototype.or=function(t){var e=k();return this.bitwiseTo(t,u,e),e},C.prototype.xor=function(t){var e=k();return this.bitwiseTo(t,r,e),e},C.prototype.andNot=function(t){var e=k();return this.bitwiseTo(t,n,e),e},C.prototype.not=function(){for(var t=k(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},C.prototype.shiftLeft=function(t){var e=k();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},C.prototype.shiftRight=function(t){var e=k();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},C.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+s(this[t]);return this.s<0?this.t*this.DB:-1},C.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,i=0;i<this.t;++i)t+=o(this[i]^e);return t},C.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},C.prototype.setBit=function(t){return this.changeBit(t,u)},C.prototype.clearBit=function(t){return this.changeBit(t,n)},C.prototype.flipBit=function(t){return this.changeBit(t,r)},C.prototype.add=function(t){var e=k();return this.addTo(t,e),e},C.prototype.subtract=function(t){var e=k();return this.subTo(t,e),e},C.prototype.multiply=function(t){var e=k();return this.multiplyTo(t,e),e},C.prototype.divide=function(t){var e=k();return this.divRemTo(t,e,null),e},C.prototype.remainder=function(t){var e=k();return this.divRemTo(t,null,e),e},C.prototype.divideAndRemainder=function(t){var e=k(),i=k();return this.divRemTo(t,e,i),[e,i]},C.prototype.modPow=function(t,e){var i,r,n=t.bitLength(),s=Y(1);if(n<=0)return s;i=n<18?1:n<48?3:n<144?4:n<768?5:6,r=n<8?new L(e):e.isEven()?new K(e):new q(e);var o=[],a=3,h=i-1,u=(1<<i)-1;if(o[1]=r.convert(this),1<i){var c=k();for(r.sqrTo(o[1],c);a<=u;)o[a]=k(),r.mulTo(c,o[a-2],o[a]),a+=2}var f,l,p=t.t-1,d=!0,g=k();for(n=$(t[p])-1;0<=p;){for(h<=n?f=t[p]>>n-h&u:(f=(t[p]&(1<<n+1)-1)<<h-n,0<p&&(f|=t[p-1]>>this.DB+n-h)),a=i;0==(1&f);)f>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),d)o[f].copyTo(s),d=!1;else{for(;1<a;)r.sqrTo(s,g),r.sqrTo(g,s),a-=2;0<a?r.sqrTo(s,g):(l=s,s=g,g=l),r.mulTo(g,o[f],s)}for(;0<=p&&0==(t[p]&1<<n);)r.sqrTo(s,g),l=s,s=g,g=l,--n<0&&(n=this.DB-1,--p)}return r.revert(s)},C.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return C.ZERO;for(var i=t.clone(),r=this.clone(),n=Y(1),s=Y(0),o=Y(0),a=Y(1);0!=i.signum();){for(;i.isEven();)i.rShiftTo(1,i),e?(n.isEven()&&s.isEven()||(n.addTo(this,n),s.subTo(t,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);0<=i.compareTo(r)?(i.subTo(r,i),e&&n.subTo(o,n),s.subTo(a,s)):(r.subTo(i,r),e&&o.subTo(n,o),a.subTo(s,a))}return 0!=r.compareTo(C.ONE)?C.ZERO:0<=a.compareTo(t)?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},C.prototype.pow=function(t){return this.exp(t,new V)},C.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var r=e;e=i,i=r}var n=e.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return e;for(n<s&&(s=n),0<s&&(e.rShiftTo(s,e),i.rShiftTo(s,i));0<e.signum();)0<(n=e.getLowestSetBit())&&e.rShiftTo(n,e),0<(n=i.getLowestSetBit())&&i.rShiftTo(n,i),0<=e.compareTo(i)?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return 0<s&&i.lShiftTo(s,i),i},C.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=P[P.length-1]){for(e=0;e<P.length;++e)if(i[0]==P[e])return!0;return!1}if(i.isEven())return!1;for(e=1;e<P.length;){for(var r=P[e],n=e+1;n<P.length&&r<x;)r*=P[n++];for(r=i.modInt(r);e<n;)if(r%P[e++]==0)return!1}return i.millerRabin(t)},C.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},C.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},C.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var r=t.length,n=!1,s=0;0<=--r;){var o=8==i?255&+t[r]:Z(t,r);o<0?"-"==t.charAt(r)&&(n=!0):(n=!1,0==s?this[this.t++]=o:s+i>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=i)>=this.DB&&(s-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,0<s&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&C.ZERO.subTo(this,this)},C.prototype.clamp=function(){for(var t=this.s&this.DM;0<this.t&&this[this.t-1]==t;)--this.t},C.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;0<=i;--i)e[i+t]=this[i];for(i=t-1;0<=i;--i)e[i]=0;e.t=this.t+t,e.s=this.s},C.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},C.prototype.lShiftTo=function(t,e){for(var i=t%this.DB,r=this.DB-i,n=(1<<r)-1,s=Math.floor(t/this.DB),o=this.s<<i&this.DM,a=this.t-1;0<=a;--a)e[a+s+1]=this[a]>>r|o,o=(this[a]&n)<<i;for(a=s-1;0<=a;--a)e[a]=0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},C.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var r=t%this.DB,n=this.DB-r,s=(1<<r)-1;e[0]=this[i]>>r;for(var o=i+1;o<this.t;++o)e[o-i-1]|=(this[o]&s)<<n,e[o-i]=this[o]>>r;0<r&&(e[this.t-i-1]|=(this.s&s)<<n),e.t=this.t-i,e.clamp()}},C.prototype.subTo=function(t,e){for(var i=0,r=0,n=Math.min(t.t,this.t);i<n;)r+=this[i]-t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;i<this.t;)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;i<t.t;)r-=t[i],e[i++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[i++]=this.DV+r:0<r&&(e[i++]=r),e.t=i,e.clamp()},C.prototype.multiplyTo=function(t,e){var i=this.abs(),r=t.abs(),n=i.t;for(e.t=n+r.t;0<=--n;)e[n]=0;for(n=0;n<r.t;++n)e[n+i.t]=i.am(0,r[n],e,n,0,i.t);e.s=0,e.clamp(),this.s!=t.s&&C.ZERO.subTo(e,e)},C.prototype.squareTo=function(t){for(var e=this.abs(),i=t.t=2*e.t;0<=--i;)t[i]=0;for(i=0;i<e.t-1;++i){var r=e.am(i,e[i],t,2*i,0,1);(t[i+e.t]+=e.am(i+1,2*e[i],t,2*i+1,r,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}0<t.t&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},C.prototype.divRemTo=function(t,e,i){var r=t.abs();if(!(r.t<=0)){var n=this.abs();if(n.t<r.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=k());var s=k(),o=this.s,a=t.s,h=this.DB-$(r[r.t-1]);0<h?(r.lShiftTo(h,s),n.lShiftTo(h,i)):(r.copyTo(s),n.copyTo(i));var u=s.t,c=s[u-1];if(0!=c){var f=c*(1<<this.F1)+(1<u?s[u-2]>>this.F2:0),l=this.FV/f,p=(1<<this.F1)/f,d=1<<this.F2,g=i.t,_=g-u,v=null==e?k():e;for(s.dlShiftTo(_,v),0<=i.compareTo(v)&&(i[i.t++]=1,i.subTo(v,i)),C.ONE.dlShiftTo(u,v),v.subTo(s,s);s.t<u;)s[s.t++]=0;for(;0<=--_;){var m=i[--g]==c?this.DM:Math.floor(i[g]*l+(i[g-1]+d)*p);if((i[g]+=s.am(0,m,i,_,0,u))<m)for(s.dlShiftTo(_,v),i.subTo(v,i);i[g]<--m;)i.subTo(v,i)}null!=e&&(i.drShiftTo(u,e),o!=a&&C.ZERO.subTo(e,e)),i.t=u,i.clamp(),0<h&&i.rShiftTo(h,i),o<0&&C.ZERO.subTo(i,i)}}},C.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},C.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},C.prototype.exp=function(t,e){if(4294967295<t||t<1)return C.ONE;var i=k(),r=k(),n=e.convert(this),s=$(t)-1;for(n.copyTo(i);0<=--s;)if(e.sqrTo(i,r),0<(t&1<<s))e.mulTo(r,n,i);else{var o=i;i=r,r=o}return e.revert(i)},C.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},C.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36<t)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),r=Y(i),n=k(),s=k(),o="";for(this.divRemTo(r,n,s);0<n.signum();)o=(i+s.intValue()).toString(t).substr(1)+o,n.divRemTo(r,n,s);return s.intValue().toString(t)+o},C.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),r=Math.pow(e,i),n=!1,s=0,o=0,a=0;a<t.length;++a){var h=Z(t,a);h<0?"-"==t.charAt(a)&&0==this.signum()&&(n=!0):(o=e*o+h,++s>=i&&(this.dMultiply(r),this.dAddOffset(o,0),o=s=0))}0<s&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(o,0)),n&&C.ZERO.subTo(this,this)},C.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(C.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(C.ONE.shiftLeft(t-1),this);else{var r=[],n=7&t;r.length=1+(t>>3),e.nextBytes(r),0<n?r[0]&=(1<<n)-1:r[0]=0,this.fromString(r,256)}},C.prototype.bitwiseTo=function(t,e,i){var r,n,s=Math.min(t.t,this.t);for(r=0;r<s;++r)i[r]=e(this[r],t[r]);if(t.t<this.t){for(n=t.s&this.DM,r=s;r<this.t;++r)i[r]=e(this[r],n);i.t=this.t}else{for(n=this.s&this.DM,r=s;r<t.t;++r)i[r]=e(n,t[r]);i.t=t.t}i.s=e(this.s,t.s),i.clamp()},C.prototype.changeBit=function(t,e){var i=C.ONE.shiftLeft(t);return this.bitwiseTo(i,e,i),i},C.prototype.addTo=function(t,e){for(var i=0,r=0,n=Math.min(t.t,this.t);i<n;)r+=this[i]+t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;i<this.t;)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;i<t.t;)r+=t[i],e[i++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,0<r?e[i++]=r:r<-1&&(e[i++]=this.DV+r),e.t=i,e.clamp()},C.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},C.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},C.prototype.multiplyLowerTo=function(t,e,i){var r=Math.min(this.t+t.t,e);for(i.s=0,i.t=r;0<r;)i[--r]=0;for(var n=i.t-this.t;r<n;++r)i[r+this.t]=this.am(0,t[r],i,r,0,this.t);for(n=Math.min(t.t,e);r<n;++r)this.am(0,t[r],i,r,0,e-r);i.clamp()},C.prototype.multiplyUpperTo=function(t,e,i){--e;var r=i.t=this.t+t.t-e;for(i.s=0;0<=--r;)i[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)i[this.t+r-e]=this.am(e-r,t[r],i,0,0,this.t+r-e);i.clamp(),i.drShiftTo(1,i)},C.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,i=this.s<0?t-1:0;if(0<this.t)if(0==e)i=this[0]%t;else for(var r=this.t-1;0<=r;--r)i=(e*i+this[r])%t;return i},C.prototype.millerRabin=function(t){var e=this.subtract(C.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var r=e.shiftRight(i);P.length<(t=t+1>>1)&&(t=P.length);for(var n=k(),s=0;s<t;++s){n.fromInt(P[Math.floor(Math.random()*P.length)]);var o=n.modPow(r,this);if(0!=o.compareTo(C.ONE)&&0!=o.compareTo(e)){for(var a=1;a++<i&&0!=o.compareTo(e);)if(0==(o=o.modPowInt(2,this)).compareTo(C.ONE))return!1;if(0!=o.compareTo(e))return!1}}return!0},C.prototype.square=function(){var t=k();return this.squareTo(t),t},C.prototype.gcda=function(t,e){var i=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(i.compareTo(r)<0){var n=i;i=r,r=n}var s=i.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(i);else{s<o&&(o=s),0<o&&(i.rShiftTo(o,i),r.rShiftTo(o,r));var a=function(){0<(s=i.getLowestSetBit())&&i.rShiftTo(s,i),0<(s=r.getLowestSetBit())&&r.rShiftTo(s,r),0<=i.compareTo(r)?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r)),0<i.signum()?setTimeout(a,0):(0<o&&r.lShiftTo(o,r),setTimeout(function(){e(r)},0))};setTimeout(a,10)}},C.prototype.fromNumberAsync=function(t,e,i,r){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(C.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);var n=this,s=function(){n.dAddOffset(2,0),n.bitLength()>t&&n.subTo(C.ONE.shiftLeft(t-1),n),n.isProbablePrime(e)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var o=[],a=7&t;o.length=1+(t>>3),e.nextBytes(o),0<a?o[0]&=(1<<a)-1:o[0]=0,this.fromString(o,256)}},C);function C(t,e,i){null!=t&&("number"==typeof t?this.fromNumber(t,e,i):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}var V=(N.prototype.convert=function(t){return t},N.prototype.revert=function(t){return t},N.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},N.prototype.sqrTo=function(t,e){t.squareTo(e)},N);function N(){}var L=(U.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},U.prototype.revert=function(t){return t},U.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},U.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},U.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},U);function U(t){this.m=t}var q=(j.prototype.convert=function(t){var e=k();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0<e.compareTo(M.ZERO)&&this.m.subTo(e,e),e},j.prototype.revert=function(t){var e=k();return t.copyTo(e),this.reduce(e),e},j.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var i=32767&t[e],r=i*this.mpl+((i*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},j.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},j.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},j);function j(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}var K=(H.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=k();return t.copyTo(e),this.reduce(e),e},H.prototype.revert=function(t){return t},H.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);0<=t.compareTo(this.m);)t.subTo(this.m,t)},H.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},H.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},H);function H(t){this.m=t,this.r2=k(),this.q3=k(),M.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}function k(){return new M(null)}function F(t,e){return new M(t,e)}A="Microsoft Internet Explorer"==navigator.appName?(M.prototype.am=function(t,e,i,r,n,s){for(var o=32767&e,a=e>>15;0<=--s;){var h=32767&this[t],u=this[t++]>>15,c=a*h+u*o;n=((h=o*h+((32767&c)<<15)+i[r]+(1073741823&n))>>>30)+(c>>>15)+a*u+(n>>>30),i[r++]=1073741823&h}return n},30):"Netscape"!=navigator.appName?(M.prototype.am=function(t,e,i,r,n,s){for(;0<=--s;){var o=e*this[t++]+i[r]+n;n=Math.floor(o/67108864),i[r++]=67108863&o}return n},26):(M.prototype.am=function(t,e,i,r,n,s){for(var o=16383&e,a=e>>14;0<=--s;){var h=16383&this[t],u=this[t++]>>14,c=a*h+u*o;n=((h=o*h+((16383&c)<<14)+i[r]+n)>>28)+(c>>14)+a*u,i[r++]=268435455&h}return n},28),M.prototype.DB=A,M.prototype.DM=(1<<A)-1,M.prototype.DV=1<<A;M.prototype.FV=Math.pow(2,52),M.prototype.F1=52-A,M.prototype.F2=2*A-52;var z,W,G=[];for(z="0".charCodeAt(0),W=0;W<=9;++W)G[z++]=W;for(z="a".charCodeAt(0),W=10;W<36;++W)G[z++]=W;for(z="A".charCodeAt(0),W=10;W<36;++W)G[z++]=W;function Z(t,e){var i=G[t.charCodeAt(e)];return null==i?-1:i}function Y(t){var e=k();return e.fromInt(t),e}function $(t){var e,i=1;return 0!=(e=t>>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}M.ZERO=Y(0),M.ONE=Y(1);var Q=(J.prototype.init=function(t){var e,i,r;for(e=0;e<256;++e)this.S[e]=e;for(e=i=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[i],this.S[i]=r;this.i=0,this.j=0},J.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},J);function J(){this.i=0,this.j=0,this.S=[]}var X,tt,et=256,it=null;if(null==it){it=[];var rt=void(tt=0);if(window.crypto&&window.crypto.getRandomValues){var nt=new Uint32Array(256);for(window.crypto.getRandomValues(nt),rt=0;rt<nt.length;++rt)it[tt++]=255&nt[rt]}var st=function(t){if(this.count=this.count||0,256<=this.count||et<=tt)window.removeEventListener?window.removeEventListener("mousemove",st,!1):window.detachEvent&&window.detachEvent("onmousemove",st);else try{var e=t.x+t.y;it[tt++]=255&e,this.count+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",st,!1):window.attachEvent&&window.attachEvent("onmousemove",st)}function ot(){if(null==X){for(X=new Q;tt<et;){var t=Math.floor(65536*Math.random());it[tt++]=255&t}for(X.init(it),tt=0;tt<it.length;++tt)it[tt]=0;tt=0}return X.next()}var at=(ht.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ot()},ht);function ht(){}var ut=(ct.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},ct.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),i=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(i)<0;)e=e.add(this.p);return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},ct.prototype.setPublic=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=F(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},ct.prototype.encrypt=function(t){var e=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var i=[],r=t.length-1;0<=r&&0<e;){var n=t.charCodeAt(r--);n<128?i[--e]=n:127<n&&n<2048?(i[--e]=63&n|128,i[--e]=n>>6|192):(i[--e]=63&n|128,i[--e]=n>>6&63|128,i[--e]=n>>12|224)}i[--e]=0;for(var s=new at,o=[];2<e;){for(o[0]=0;0==o[0];)s.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new M(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var r=i.toString(16);return 0==(1&r.length)?r:"0"+r},ct.prototype.setPrivate=function(t,e,i){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=F(t,16),this.e=parseInt(e,16),this.d=F(i,16)):console.error("Invalid RSA private key")},ct.prototype.setPrivateEx=function(t,e,i,r,n,s,o,a){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=F(t,16),this.e=parseInt(e,16),this.d=F(i,16),this.p=F(r,16),this.q=F(n,16),this.dmp1=F(s,16),this.dmq1=F(o,16),this.coeff=F(a,16)):console.error("Invalid RSA private key")},ct.prototype.generate=function(t,e){var i=new at,r=t>>1;this.e=parseInt(e,16);for(var n=new M(e,16);;){for(;this.p=new M(t-r,1,i),0!=this.p.subtract(M.ONE).gcd(n).compareTo(M.ONE)||!this.p.isProbablePrime(10););for(;this.q=new M(r,1,i),0!=this.q.subtract(M.ONE).gcd(n).compareTo(M.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var o=this.p.subtract(M.ONE),a=this.q.subtract(M.ONE),h=o.multiply(a);if(0==h.gcd(n).compareTo(M.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(h),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},ct.prototype.decrypt=function(t){var e=F(t,16),i=this.doPrivate(e);return null==i?null:function(t,e){for(var i=t.toByteArray(),r=0;r<i.length&&0==i[r];)++r;if(i.length-r!=e-1||2!=i[r])return null;for(++r;0!=i[r];)if(++r>=i.length)return null;for(var n="";++r<i.length;){var s=255&i[r];s<128?n+=String.fromCharCode(s):191<s&&s<224?(n+=String.fromCharCode((31&s)<<6|63&i[r+1]),++r):(n+=String.fromCharCode((15&s)<<12|(63&i[r+1])<<6|63&i[r+2]),r+=2)}return n}(i,this.n.bitLength()+7>>3)},ct.prototype.generateAsync=function(t,e,n){var s=new at,o=t>>1;this.e=parseInt(e,16);var a=new M(e,16),h=this,u=function(){function e(){if(h.p.compareTo(h.q)<=0){var t=h.p;h.p=h.q,h.q=t}var e=h.p.subtract(M.ONE),i=h.q.subtract(M.ONE),r=e.multiply(i);0==r.gcd(a).compareTo(M.ONE)?(h.n=h.p.multiply(h.q),h.d=a.modInverse(r),h.dmp1=h.d.mod(e),h.dmq1=h.d.mod(i),h.coeff=h.q.modInverse(h.p),setTimeout(function(){n()},0)):setTimeout(u,0)}var i=function(){h.q=k(),h.q.fromNumberAsync(o,1,s,function(){h.q.subtract(M.ONE).gcda(a,function(t){0==t.compareTo(M.ONE)&&h.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(i,0)})})},r=function(){h.p=k(),h.p.fromNumberAsync(t-o,1,s,function(){h.p.subtract(M.ONE).gcda(a,function(t){0==t.compareTo(M.ONE)&&h.p.isProbablePrime(10)?setTimeout(i,0):setTimeout(r,0)})})};setTimeout(r,0)};setTimeout(u,0)},ct.prototype.sign=function(t,e,i){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var i=e-t.length-6,r="",n=0;n<i;n+=2)r+="ff";return F("0001"+r+"00"+t,16)}(function(t){return ft[t]||""}(i)+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var n=this.doPrivate(r);if(null==n)return null;var s=n.toString(16);return 0==(1&s.length)?s:"0"+s},ct.prototype.verify=function(t,e,i){var r=F(e,16),n=this.doPublic(r);return null==n?null:function(t){for(var e in ft)if(ft.hasOwnProperty(e)){var i=ft[e],r=i.length;if(t.substr(0,r)==i)return t.substr(r)}return t}(n.toString(16).replace(/^1f+00/,""))==i(t).toString()},ct);function ct(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var lt={};lt.lang={extend:function(t,e,i){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");function r(){}if(r.prototype=e.prototype,t.prototype=new r,(t.prototype.constructor=t).superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),i){var n;for(n in i)t.prototype[n]=i[n];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(t,e){for(n=0;n<o.length;n+=1){var i=o[n],r=e[i];"function"==typeof r&&r!=Object.prototype[i]&&(t[i]=r)}})}catch(t){}s(t.prototype,i)}}};var pt={};void 0!==pt.asn1&&pt.asn1||(pt.asn1={}),pt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var r="",n=0;n<i;n++)r+="f";e=new M(r,16).xor(t).add(M.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=pt.asn1,i=e.DERBoolean,r=e.DERInteger,n=e.DERBitString,s=e.DEROctetString,o=e.DERNull,a=e.DERObjectIdentifier,h=e.DEREnumerated,u=e.DERUTF8String,c=e.DERNumericString,f=e.DERPrintableString,l=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,_=e.DERSequence,v=e.DERSet,m=e.DERTaggedObject,y=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var E=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":"))throw"undefined key: "+E;if("bool"==E)return new i(t[E]);if("int"==E)return new r(t[E]);if("bitstr"==E)return new n(t[E]);if("octstr"==E)return new s(t[E]);if("null"==E)return new o(t[E]);if("oid"==E)return new a(t[E]);if("enum"==E)return new h(t[E]);if("utf8str"==E)return new u(t[E]);if("numstr"==E)return new c(t[E]);if("prnstr"==E)return new f(t[E]);if("telstr"==E)return new l(t[E]);if("ia5str"==E)return new p(t[E]);if("utctime"==E)return new d(t[E]);if("gentime"==E)return new g(t[E]);if("seq"==E){for(var T=t[E],S=[],D=0;D<T.length;D++){var w=y(T[D]);S.push(w)}return new _({array:S})}if("set"==E){for(T=t[E],S=[],D=0;D<T.length;D++){w=y(T[D]);S.push(w)}return new v({array:S})}if("tag"==E){var B=t[E];if("[object Array]"===Object.prototype.toString.call(B)&&3==B.length){var O=y(B[2]);return new m({tag:B[0],explicit:B[1],obj:O})}var A={};if(void 0!==B.explicit&&(A.explicit=B.explicit),void 0!==B.tag&&(A.tag=B.tag),void 0===B.obj)throw"obj shall be specified for 'tag'.";return A.obj=y(B.obj),new m(A)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},pt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",i=parseInt(t.substr(0,2),16),r=(e=Math.floor(i/40)+"."+i%40,""),n=2;n<t.length;n+=2){var s=("00000000"+parseInt(t.substr(n,2),16).toString(2)).slice(-8);if(r+=s.substr(1,7),"0"==s.substr(0,1))e=e+"."+new M(r,2).toString(10),r=""}return e},pt.asn1.ASN1Util.oidIntToHex=function(t){function a(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e}function e(t){var e="",i=new M(t,10).toString(2),r=7-i.length%7;7==r&&(r=0);for(var n="",s=0;s<r;s++)n+="0";for(i=n+i,s=0;s<i.length-1;s+=7){var o=i.substr(s,7);s!=i.length-7&&(o="1"+o),e+=a(parseInt(o,2))}return e}if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),n=40*parseInt(r[0])+parseInt(r[1]);i+=a(n),r.splice(0,2);for(var s=0;s<r.length;s++)i+=e(r[s]);return i},pt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var i=e.length/2;if(15<i)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return null!=this.hTLV&&!this.isModified||(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},pt.asn1.DERAbstractString=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},lt.lang.extend(pt.asn1.DERAbstractString,pt.asn1.ASN1Object),pt.asn1.DERAbstractTime=function(t){pt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var r=this.zeroPadding,n=this.localDateToUTC(t),s=String(n.getFullYear());"utc"==e&&(s=s.substr(2,2));var o=s+r(String(n.getMonth()+1),2)+r(String(n.getDate()),2)+r(String(n.getHours()),2)+r(String(n.getMinutes()),2)+r(String(n.getSeconds()),2);if(!0===i){var a=n.getMilliseconds();if(0!=a){var h=r(String(a),3);o=o+"."+(h=h.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,i,r,n,s){var o=new Date(Date.UTC(t,e-1,i,r,n,s,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},lt.lang.extend(pt.asn1.DERAbstractTime,pt.asn1.ASN1Object),pt.asn1.DERAbstractStructured=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},lt.lang.extend(pt.asn1.DERAbstractStructured,pt.asn1.ASN1Object),pt.asn1.DERBoolean=function(){pt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},lt.lang.extend(pt.asn1.DERBoolean,pt.asn1.ASN1Object),pt.asn1.DERInteger=function(t){pt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new M(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},lt.lang.extend(pt.asn1.DERInteger,pt.asn1.ASN1Object),pt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}pt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var i=0;i<=e;i++)t+="0";var r="";for(i=0;i<t.length-1;i+=8){var n=t.substr(i,8),s=parseInt(n,2).toString(16);1==s.length&&(s="0"+s),r+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",i=0;i<t.length;i++)1==t[i]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},lt.lang.extend(pt.asn1.DERBitString,pt.asn1.ASN1Object),pt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}pt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},lt.lang.extend(pt.asn1.DEROctetString,pt.asn1.DERAbstractString),pt.asn1.DERNull=function(){pt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},lt.lang.extend(pt.asn1.DERNull,pt.asn1.ASN1Object),pt.asn1.DERObjectIdentifier=function(t){function a(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e}function s(t){var e="",i=new M(t,10).toString(2),r=7-i.length%7;7==r&&(r=0);for(var n="",s=0;s<r;s++)n+="0";for(i=n+i,s=0;s<i.length-1;s+=7){var o=i.substr(s,7);s!=i.length-7&&(o="1"+o),e+=a(parseInt(o,2))}return e}pt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var e="",i=t.split("."),r=40*parseInt(i[0])+parseInt(i[1]);e+=a(r),i.splice(0,2);for(var n=0;n<i.length;n++)e+=s(i[n]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=function(t){var e=pt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},lt.lang.extend(pt.asn1.DERObjectIdentifier,pt.asn1.ASN1Object),pt.asn1.DEREnumerated=function(t){pt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new M(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},lt.lang.extend(pt.asn1.DEREnumerated,pt.asn1.ASN1Object),pt.asn1.DERUTF8String=function(t){pt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},lt.lang.extend(pt.asn1.DERUTF8String,pt.asn1.DERAbstractString),pt.asn1.DERNumericString=function(t){pt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},lt.lang.extend(pt.asn1.DERNumericString,pt.asn1.DERAbstractString),pt.asn1.DERPrintableString=function(t){pt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},lt.lang.extend(pt.asn1.DERPrintableString,pt.asn1.DERAbstractString),pt.asn1.DERTeletexString=function(t){pt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},lt.lang.extend(pt.asn1.DERTeletexString,pt.asn1.DERAbstractString),pt.asn1.DERIA5String=function(t){pt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},lt.lang.extend(pt.asn1.DERIA5String,pt.asn1.DERAbstractString),pt.asn1.DERUTCTime=function(t){pt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},lt.lang.extend(pt.asn1.DERUTCTime,pt.asn1.DERAbstractTime),pt.asn1.DERGeneralizedTime=function(t){pt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},lt.lang.extend(pt.asn1.DERGeneralizedTime,pt.asn1.DERAbstractTime),pt.asn1.DERSequence=function(t){pt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},lt.lang.extend(pt.asn1.DERSequence,pt.asn1.DERAbstractStructured),pt.asn1.DERSet=function(t){pt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t.push(i.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},lt.lang.extend(pt.asn1.DERSet,pt.asn1.DERAbstractStructured),pt.asn1.DERTaggedObject=function(t){pt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,i){this.hT=e,this.isExplicit=t,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},lt.lang.extend(pt.asn1.DERTaggedObject,pt.asn1.ASN1Object);var dt,gt,_t,vt=(p(dt=yt,gt=_t=ut),void(dt.prototype=null===gt?Object.create(gt):(mt.prototype=gt.prototype,new mt)),yt.prototype.parseKey=function(t){try{var e=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?g(t):_.unarmor(t),n=B.decode(r);if(3===n.sub.length&&(n=n.sub[2].sub[0]),9===n.sub.length){e=n.sub[1].getHexStringValue(),this.n=F(e,16),i=n.sub[2].getHexStringValue(),this.e=parseInt(i,16);var s=n.sub[3].getHexStringValue();this.d=F(s,16);var o=n.sub[4].getHexStringValue();this.p=F(o,16);var a=n.sub[5].getHexStringValue();this.q=F(a,16);var h=n.sub[6].getHexStringValue();this.dmp1=F(h,16);var u=n.sub[7].getHexStringValue();this.dmq1=F(u,16);var c=n.sub[8].getHexStringValue();this.coeff=F(c,16)}else{if(2!==n.sub.length)return!1;var f=n.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=F(e,16),i=f.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(t){return!1}},yt.prototype.getPrivateBaseKey=function(){var t={array:[new pt.asn1.DERInteger({int:0}),new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e}),new pt.asn1.DERInteger({bigint:this.d}),new pt.asn1.DERInteger({bigint:this.p}),new pt.asn1.DERInteger({bigint:this.q}),new pt.asn1.DERInteger({bigint:this.dmp1}),new pt.asn1.DERInteger({bigint:this.dmq1}),new pt.asn1.DERInteger({bigint:this.coeff})]};return new pt.asn1.DERSequence(t).getEncodedHex()},yt.prototype.getPrivateBaseKeyB64=function(){return c(this.getPrivateBaseKey())},yt.prototype.getPublicBaseKey=function(){var t=new pt.asn1.DERSequence({array:[new pt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new pt.asn1.DERNull]}),e=new pt.asn1.DERSequence({array:[new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e})]}),i=new pt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new pt.asn1.DERSequence({array:[t,i]}).getEncodedHex()},yt.prototype.getPublicBaseKeyB64=function(){return c(this.getPublicBaseKey())},yt.wordwrap=function(t,e){if(!t)return t;var i="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(i,"g")).join("\n")},yt.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=yt.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},yt.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=yt.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},yt.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},yt.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},yt.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},yt);function mt(){this.constructor=dt}function yt(t){var e=_t.call(this)||this;return t&&("string"==typeof t?e.parseKey(t):(yt.hasPrivateKeyProperty(t)||yt.hasPublicKeyProperty(t))&&e.parsePropertiesFrom(t)),e}var bt=(Et.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new vt(t)},Et.prototype.setPrivateKey=function(t){this.setKey(t)},Et.prototype.setPublicKey=function(t){this.setKey(t)},Et.prototype.decrypt=function(t){try{return this.getKey().decrypt(f(t))}catch(t){return!1}},Et.prototype.encrypt=function(t){try{return c(this.getKey().encrypt(t))}catch(t){return!1}},Et.prototype.sign=function(t,e,i){try{return c(this.getKey().sign(t,e,i))}catch(t){return!1}},Et.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,f(e),i)}catch(t){return!1}},Et.prototype.getKey=function(t){if(!this.key){if(this.key=new vt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},Et.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},Et.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},Et.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},Et.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},Et.version="3.0.0-rc.1",Et);function Et(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}window.JSEncrypt=bt,t.JSEncrypt=bt,t.default=bt,Object.defineProperty(t,"__esModule",{value:!0})})(e)},266:function(t,e,i){var r;r=function(h){return function(n){var t=h,e=t.lib,i=e.WordArray,r=e.Hasher,s=t.algo,o=[],y=[];!function(){function t(t){for(var e=n.sqrt(t),i=2;i<=e;i++)if(!(t%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)t(i)&&(r<8&&(o[r]=e(n.pow(i,.5))),y[r]=e(n.pow(i,1/3)),r++),i++}();var b=[],a=s.SHA256=r.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,r=i[0],n=i[1],s=i[2],o=i[3],a=i[4],h=i[5],u=i[6],c=i[7],f=0;f<64;f++){if(f<16)b[f]=0|t[e+f];else{var l=b[f-15],p=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,d=b[f-2],g=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;b[f]=p+b[f-7]+g+b[f-16]}var _=r&n^r&s^n&s,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=c+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&u)+y[f]+b[f];c=u,u=h,h=a,a=o+m|0,o=s,s=n,n=r,r=m+(v+_)|0}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+s|0,i[3]=i[3]+o|0,i[4]=i[4]+a|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+c|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(64+r>>>9<<4)]=n.floor(i/4294967296),e[15+(64+r>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA256=r._createHelper(a),t.HmacSHA256=r._createHmacHelper(a)}(Math),h.SHA256},t.exports=r(i(267))},267:function(t,e,i){var r;r=function(){var c,i,t,e,r,f,n,s,o,a,h,u,l=l||(c=Math,i=Object.create||function(t){var e;return p.prototype=t,e=new p,p.prototype=null,e},e=(t={}).lib={},r=e.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},f=e.WordArray=r.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||s).stringify(this)},concat:function(t){var e=this.words,i=t.words,r=this.sigBytes,n=t.sigBytes;if(this.clamp(),r%4)for(var s=0;s<n;s++){var o=i[s>>>2]>>>24-s%4*8&255;e[r+s>>>2]|=o<<24-(r+s)%4*8}else for(s=0;s<n;s+=4)e[r+s>>>2]=i[s>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=c.ceil(e/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){function e(e){e=e;var i=987654321,r=4294967295;return function(){var t=((i=36969*(65535&i)+(i>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return t/=4294967296,(t+=.5)*(.5<c.random()?1:-1)}}for(var i,r=[],n=0;n<t;n+=4){var s=e(4294967296*(i||c.random()));i=987654071*s(),r.push(4294967296*s()|0)}return new f.init(r,t)}}),n=t.enc={},s=n.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,r=[],n=0;n<i;n++){var s=e[n>>>2]>>>24-n%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r+=2)i[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new f.init(i,e/2)}},o=n.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,r=[],n=0;n<i;n++){var s=e[n>>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r++)i[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new f.init(i,e)}},a=n.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},h=e.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=a.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,r=e.sigBytes,n=this.blockSize,s=r/(4*n),o=(s=t?c.ceil(s):c.max((0|s)-this._minBufferSize,0))*n,a=c.min(4*o,r);if(o){for(var h=0;h<o;h+=n)this._doProcessBlock(i,h);var u=i.splice(0,o);e.sigBytes-=a}return new f.init(u,a)},clone:function(){var t=r.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),e.Hasher=h.extend({cfg:r.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(i){return function(t,e){return new i.init(e).finalize(t)}},_createHmacHelper:function(i){return function(t,e){return new u.HMAC.init(i,e).finalize(t)}}}),u=t.algo={},t);function p(){}return l},t.exports=r()}},[263]);pbjsChunk([199],{270:function(e,r,n){e.exports=n(271)},271:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),n.d(r,"currencySupportEnabled",function(){return C}),n.d(r,"currencyRates",function(){return S}),r.setConfig=c,r.addBidResponseHook=D;var i=n(23),s=n(4),a=(n.n(s),n(5)),u=n(0),o=n(3),f=n(13);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l,y="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",g=4,t=[],v={},p=!1,b=!0,h="USD",C=!1,S={},m={};function c(e){var r=y;if("object"===d(e.rates)&&(S.conversions=e.rates,b=!(p=!0)),"object"===d(e.defaultRates)&&(l=e.defaultRates,S.conversions=l,p=!0),"string"==typeof e.adServerCurrency){u.logInfo("enabling currency support",arguments),h=e.adServerCurrency,e.conversionRateFile&&(u.logInfo("currency using override conversionRateFile:",e.conversionRateFile),r=e.conversionRateFile);var n=r.indexOf("$$TODAY$$");if(-1!==n){var o=new Date,c="".concat(o.getMonth()+1),t="".concat(o.getDate());c.length<2&&(c="0".concat(c)),t.length<2&&(t="0".concat(t));var i="".concat(o.getFullYear()).concat(c).concat(t);r="".concat(r.substring(0,n)).concat(i).concat(r.substring(n+9,r.length))}!function(e){v={},C=!0,u.logInfo("Installing addBidResponse decorator for currency module",arguments),Object(f.a)("addBidResponse").before(D,100),b&&(b=!1,Object(a.a)(e,{success:function(r){try{S=JSON.parse(r),u.logInfo("currencyRates set to "+JSON.stringify(S)),p=!0,I()}catch(e){R("Failed to parse currencyRates response: "+r)}},error:R}))}(r)}else u.logInfo("disabling currency support"),function(){u.logInfo("Uninstalling addBidResponse decorator for currency module",arguments),Object(f.a)("addBidResponse").getHooks({hook:D}).remove(),h="USD",v={},p=C=!1,b=!0,S={},m={}}();"object"===d(e.bidderCurrencyDefault)&&(m=e.bidderCurrencyDefault)}function R(e){l?(u.logWarn(e),u.logWarn("Currency failed loading rates, falling back to currency.defaultRates")):u.logError(e)}function D(e,r,n){if(!n)return e.call(this,r);var o=n.bidderCode||n.bidder;if(m[o]){var c=m[o];n.currency&&c!==n.currency?u.logWarn("Currency default '".concat(o,": ").concat(c,"' ignored. adapter specified '").concat(n.currency,"'")):n.currency=c}if(n.currency||(u.logWarn('Currency not specified on bid.  Defaulted to "USD"'),n.currency="USD"),n.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*w(this.currency,e)).toFixed(3)},n.originalCpm=n.cpm,n.originalCurrency=n.currency,n.currency===h)return e.call(this,r,n);t.push(function(o,c,t){return function(){var r=t[1];if(void 0!==r&&"currency"in r&&"cpm"in r){var e=r.currency;try{var n=w(e);1!==n&&(r.cpm=(parseFloat(r.cpm)*n).toFixed(4),r.currency=h)}catch(e){u.logWarn("Returning NO_BID, getCurrencyConversion threw error: ",e),t[1]=Object(i.a)(s.STATUS.NO_BID,{bidder:r.bidderCode||r.bidder,bidId:r.requestId})}}return o.apply(c,t)}}(e,this,[r,n])),C&&!p||I()}function I(){for(;0<t.length;)t.shift()()}function w(e,r){var n,o=1<arguments.length&&void 0!==r?r:h,c=null,t="".concat(e,"->").concat(o);if(t in v)c=v[t],u.logMessage("Using conversionCache value "+c+" for "+t);else if(!1===C){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");c=1}else if(e===o)c=1;else if(e in S.conversions){if(!(o in(n=S.conversions[e])))throw new Error("Specified adServerCurrency in config '"+o+"' not found in the currency rates file");c=n[o],u.logInfo("getCurrencyConversion using direct "+e+" to "+o+" conversionRate "+c)}else if(o in S.conversions){if(!(e in(n=S.conversions[o])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");c=O(1/n[e],g),u.logInfo("getCurrencyConversion using reciprocal "+e+" to "+o+" conversionRate "+c)}else{var i=Object.keys(S.conversions)[0];if(!(e in S.conversions[i]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var s=1/S.conversions[i][e];if(!(o in S.conversions[i]))throw new Error("Specified adServerCurrency in config '"+o+"' not found in the currency rates file");c=O(s*S.conversions[i][o],g),u.logInfo("getCurrencyConversion using intermediate "+e+" thru "+i+" to "+o+" conversionRate "+c)}return t in v||(u.logMessage("Adding conversionCache value "+c+" for "+t),v[t]=c),c}function O(e,r){for(var n=1,o=0;o<r;o++)n+="0";return Math.round(e*n)/n}o.b.getConfig("currency",function(e){return c(e.currency)})}},[270]);pbjsChunk([172],{330:function(e,n,o){e.exports=o(331)},331:function(e,n,o){"use strict";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)}Object.defineProperty(n,"__esModule",{value:!0});var r=o(8),s=o(0),t=o(4),a=o(7).default,u=t.EVENTS.BID_REQUESTED,d=t.EVENTS.BID_TIMEOUT,c=t.EVENTS.BID_RESPONSE,l=t.EVENTS.BID_WON,f={nonInteraction:!0},b=[],p=null,m=!0,v="Prebid.js Bids",y=0,g=!1,T=null,w=!0,E={};function S(){if(m&&"function"==typeof window[p]){for(var e=0;e<b.length;e++)b[e].call();b.push=function(e){e.call()},m=!1}s.logMessage("event count sent to GA: "+y)}function h(e){return e?Math.floor(100*e):0}function $(e){e&&e.bidderCode&&b.push(function(){y++,window[p](T,"event",v,"Requests",e.bidderCode,1,f)}),S()}function D(i){i&&i.bidderCode&&b.push(function(){var e=h(i.cpm),n=i.bidderCode;if(void 0!==i.timeToRespond&&g){y++;var o=function(e){var n;return 0<=e&&e<200?n="0-200ms":200<=e&&e<300?n="0200-300ms":300<=e&&e<400?n="0300-400ms":400<=e&&e<500?n="0400-500ms":500<=e&&e<600?n="0500-600ms":600<=e&&e<800?n="0600-800ms":800<=e&&e<1e3?n="0800-1000ms":1e3<=e&&e<1200?n="1000-1200ms":1200<=e&&e<1500?n="1200-1500ms":1500<=e&&e<2e3?n="1500-2000ms":2e3<=e&&(n="2000ms above"),n}(i.timeToRespond);window[p](T,"event","Prebid.js Load Time Distribution",o,n,1,f)}if(0<i.cpm){y+=2;var t=function(e){var n;return 0<=e&&e<.5?n="$0-0.5":.5<=e&&e<1?n="$0.5-1":1<=e&&e<1.5?n="$1-1.5":1.5<=e&&e<2?n="$1.5-2":2<=e&&e<2.5?n="$2-2.5":2.5<=e&&e<3?n="$2.5-3":3<=e&&e<4?n="$3-4":4<=e&&e<6?n="$4-6":6<=e&&e<8?n="$6-8":8<=e&&(n="$8 above"),n}(i.cpm);g&&(y++,window[p](T,"event","Prebid.js CPM Distribution",t,n,1,f)),window[p](T,"event",v,"Bids",n,e,f),window[p](T,"event",v,"Bid Load Time",n,i.timeToRespond,f)}}),S()}function M(e){b.push(function(){s._each(e,function(e){y++;var n=e.bidder;window[p](T,"event",v,"Timeouts",n,f)})}),S()}function N(e){var n=h(e.cpm);b.push(function(){y++,window[p](T,"event",v,"Wins",e.bidderCode,n,f)}),S()}E.enableAnalytics=function(e){var n=e.provider,o=e.options;p=n||"ga",T=o&&o.trackerName?o.trackerName+".send":"send",w=void 0===o||void 0===o.sampling||Math.random()<parseFloat(o.sampling),o&&void 0!==o.global&&(p=o.global),o&&void 0!==o.enableDistribution&&(g=o.enableDistribution);if(w){var t=r.getEvents();s._each(t,function(e){if("object"===i(e)){var n=e.args;if(e.eventType===u)$(n);else if(e.eventType===c)D(n);else if(e.eventType===d){M(n)}else e.eventType===l&&N(n)}}),r.on(u,function(e){$(e)}),r.on(c,function(e){D(e)}),r.on(d,function(e){M(e)}),r.on(l,function(e){N(e)})}else s.logMessage("Prebid.js google analytics disabled by sampling");this.enableAnalytics=function(){return s.logMessage("Analytics adapter already enabled, unnecessary call to `enableAnalytics`.")}},E.getTrackerSend=function(){return T},a.registerAnalyticsAdapter({adapter:E,code:"ga"}),n.default=E}},[330]);pbjsChunk([159],{358:function(e,t,n){e.exports=n(359)},359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return o}),t.resetInvibes=function(){m.optIn=void 0,m.noCookies=void 0,m.dom=void 0,m.bidResponse=void 0,m.domainOptions=void 0},t.stubDomainOptions=function(e){m.domainOptions={persistence:e}};var v=n(0),i=n(1);function l(e){return(l="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 p={BIDDER_CODE:"invibes",BID_ENDPOINT:"//bid.videostep.com/Bid/VideoAdContent",SYNC_ENDPOINT:"//k.r66net.com/GetUserSync",TIME_TO_LIVE:300,DEFAULT_CURRENCY:"EUR",PREBID_VERSION:1,METHOD:"GET",INVIBES_VENDOR_ID:436},o={code:p.BIDDER_CODE,isBidRequestValid:function(e){if(m&&"object"===l(m.bidResponse))return v.logInfo("Invibes Adapter - Bid response already received. Invibes only responds to one bid request per user visit"),!1;return"object"===l(e.params)&&null!=e.params.placementId},buildRequests:function(e,t){var n,i,o=[],r=(t=t||{}).auctionStart||Date.now();e.forEach(function(e){e.startTime=(new Date).getTime(),o.push(e.params.placementId),n=n||e.params.loginId,i=i||e.params.customEndpoint,f=f||e.params.customUserSync}),m.visitId=m.visitId||b(),h=C(),m.noCookies=m.noCookies||m.getCookie("ivNoCookie"),m.optIn=m.optIn||m.getCookie("ivOptIn")||function(e){if(e&&e.vendorData&&e.vendorData.vendorConsents)return!0==!!e.vendorData.vendorConsents[p.INVIBES_VENDOR_ID.toString(10)]?2:-2;return 0}(t.gdprConsent),D(m.domainOptions);var a=function(){var e={};try{e=JSON.parse(localStorage.ivbs)}catch(e){}var t,n=/[\\?&]([^=]+)=([^\\?&#]+)/g;for(;null!=(t=n.exec(window.location.href));)t.index===n.lastIndex&&n.lastIndex++,e[t[1].toLowerCase()]=t[2];return e}(),s={location:function(e){return e.location.href.substring(0,300).split(/[?#]/)[0]}(I),videoAdHtmlId:b(),showFallback:"0"===a.advs,ivbsCampIdsLocal:m.getCookie("IvbsCampIdsLocal"),bidParamsJson:JSON.stringify({placementIds:o,loginId:n,auctionStartTime:r,bidVersion:p.PREBID_VERSION}),capCounts:function(){function e(){try{return JSON.parse(localStorage.getItem("ivvcap"))||{}}catch(e){return{}}}function n(){var t=(new Date).getTime(),n=e(),i=!1;Object.keys(n).forEach(function(e){n[e][1]<=t&&(delete n[e],i=!0)}),i&&function(e){localStorage.setItem("ivvcap",JSON.stringify(e))}(n)}return function(){n();var t=e();return Object.keys(t).filter(function(e){return t.hasOwnProperty(e)}).sort().map(function(e){return[e,t[e][0]]})}().map(function(e){return e.join("=")}).join(",")}(),vId:m.visitId,width:I.innerWidth,height:I.innerHeight,noc:!h,oi:m.optIn};m.dom.id&&(s.lId=m.dom.id);var d="videoaddebug,advs,bvci,bvid,istop,trybvid,trybvci".split(",");for(var c in a)if(a.hasOwnProperty(c)){var u=a[c];(-1<d.indexOf(c)||/^vs|^invib/i.test(c))&&(s[c]=u)}return{method:p.METHOD,url:i||p.BID_ENDPOINT,data:s,options:{withCredentials:!0},bidRequests:e}},interpretResponse:function(e,t){return function(e,t){if(null==t||0===t.length)return v.logInfo("Invibes Adapter - No bids have been requested"),[];if(!e)return v.logInfo("Invibes Adapter - Bid response is empty"),[];var n=(e=(e=e.body||e).videoAdContentResult||e).BidModel;if("object"!==l(n))return v.logInfo("Invibes Adapter - Bidding is not configured"),[];if("object"===l(m.bidResponse))return v.logInfo("Invibes Adapter - Bid response already received. Invibes only responds to one bid request per user visit"),[];var i=(m.bidResponse=e).Ads;if(!Array.isArray(i)||i.length<1)return null!=e.AdReason&&v.logInfo("Invibes Adapter - "+e.AdReason),v.logInfo("Invibes Adapter - No ads available"),[];var o=i[0];if(null==n.PlacementId)return v.logInfo("Invibes Adapter - No Placement Id in response"),[];for(var r=[],a=0;a<t.length;a++){var s=t[a];if(n.PlacementId===s.params.placementId){var d=g(s.sizes);r.push({requestId:s.bidId,cpm:o.BidPrice,width:n.Width||d[0],height:n.Height||d[1],creativeId:o.VideoExposedId,currency:n.Currency||p.DEFAULT_CURRENCY,netRevenue:!0,ttl:p.TIME_TO_LIVE,ad:(u=n,"<html>\n        <head><script type='text/javascript'>inDapIF=true;<\/script></head>\n          <body style='margin : 0; padding: 0;'>\n          creativeHtml\n          </body>\n        </html>".replace("creativeHtml",u.CreativeHtml))});var c=Date.now();y.info("Bid auction started at "+n.AuctionStartTime+" . Invibes registered the bid at "+c+" ; bid request took a total of "+(c-n.AuctionStartTime)+" ms.")}else v.logInfo("Invibes Adapter - Incorrect Placement Id: "+s.params.placementId)}var u;return r}(e,null!=t?t.bidRequests:null)},getUserSyncs:function(e){if(e.iframeEnabled)return function(){try{window.addEventListener&&window.addEventListener("message",a)}catch(e){}}(),{type:"iframe",url:function(){var e=f||p.SYNC_ENDPOINT;e+="?visitId="+m.visitId,e+="&optIn="+m.optIn;var t=m.getCookie("ivbsdid");t&&(e+="&ivbsdid="+encodeURIComponent(t));var n=m.getCookie("ivvbks");n&&(e+="&ivvbks="+encodeURIComponent(n));return e}()}}};Object(i.registerBidder)(o);var f,I=function(){var e=window;try{for(;top!==e;)e.parent.location.href.length&&(e=e.parent)}catch(e){}return e}(),m=I.invibes=I.invibes||{};function b(){return Math.round(1e12*Math.random()).toString(36).substring(0,10)}function g(e){for(var t=[0,0],n=0;n<e.length;n++)e[n][0]*e[n][1]>t[0]*t[1]&&(t=e[n]);return t}function r(){}function a(e){var t=e.data||{};1===t.ivbscd?m.setCookie(t.name,t.value,t.exdays,t.domain):2===t.ivbscd&&m.dom.graduate()}var h,y=localStorage&&localStorage.InvibesDEBUG?window.console:{info:r,error:r,log:r,warn:r,debug:r};m.Uid={generate:function(){function e(){return Math.floor(Math.random()*t).toString(36)}var t=parseInt("zzzzzz",36);return e()+e()}},m.getCookie=function(e){var t,n,i,o=document.cookie.split(";");for(t=0;t<o.length;t++)if(n=o[t].substr(0,o[t].indexOf("=")),i=o[t].substr(o[t].indexOf("=")+1),(n=n.replace(/^\s+|\s+$/g,""))===e)return unescape(i)},m.setCookie=function(e,t,n,i){var o="ivNoCookie"==e||"IvbsCampIdsLocal"==e;if(!(m.noCookies&&!o&&0<=(n||0))){365<n&&(n=365),i=i||h;var r=new Date,a=24*n*60*60*1e3;r.setTime(r.getTime()+a);var s=t+(n?"; expires="+r.toUTCString():"");s+=";domain="+i+";path=/",document.cookie=e+"="+s}};var C=function(){var e=m.Uid.generate(),t=location.hostname.split(".");if(1===t.length)return location.hostname;for(var n=t.length-1;0<=n;n--){var i="."+t.slice(n).join(".");if(m.setCookie(e,e,1,i),m.getCookie(e)===e)return m.setCookie(e,e,-1,i),i}},D=function(e){if(!m.dom){var t,n,i=(e=e||{}).persistence||{cname:"ivbsdid",load:function(){var e=m.getCookie(this.cname)||"";try{return JSON.parse(e)}catch(e){}},save:function(e){m.setCookie(this.cname,JSON.stringify(e),365)}};(t=i.load()||{id:m.Uid.generate(),cr:(new Date).getTime(),hc:1}).id.match(/\./)&&(t.id=m.Uid.generate());var o=function(){m.dom={id:!t.cr&&0<m.optIn?t.id:void 0,tempId:0<m.optIn?t.id:void 0,graduate:n}};n=function(){t.cr&&(delete t.cr,delete t.hc,i.save(t),o())},t.cr&&!e.noVisit&&(t.hc<7&&t.hc++,(7<=t.hc&&function(e){if(!e.cr)return!1;if(e.cr<151e10)return!1;return 864e5<(new Date).getTime()-e.cr}(t)||e.skipGraduation)&&n()),i.save(t),o(),y.info("Did="+m.dom.id)}}}},[358]);pbjsChunk([158],{362:function(e,r,t){e.exports=t(363)},363:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"spec",function(){return p});var w=t(0),n=t(2),I=t(3),a=t(364),i=t.n(a),o=t(1);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=[n.b],u=100,c=35,m=!0,y={JPY:1};function d(e){return Array.isArray(e)&&2===e.length&&i()(e[0])&&i()(e[1])}var p={code:"ix",supportedMediaTypes:s,isBidRequestValid:function(e){if(!d(e.params.size))return!1;if(!function(e,r){if(d(e))return e[0]===r[0]&&e[1]===r[1];for(var t=0;t<e.length;t++)if(e[t][0]===r[0]&&e[t][1]===r[1])return!0;return!1}(e.sizes,e.params.size))return!1;if(e.hasOwnProperty("mediaType")&&"banner"!==e.mediaType)return!1;if(e.hasOwnProperty("mediaTypes")&&!w.deepAccess(e,"mediaTypes.banner.sizes"))return!1;if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return!1;var r=e.params.hasOwnProperty("bidFloor"),t=e.params.hasOwnProperty("bidFloorCur");return!r&&!t||r&&t&&function(e,r){return Boolean("number"==typeof e&&"string"==typeof r&&r.match(/^[A-Z]{3}$/))}(e.params.bidFloor,e.params.bidFloorCur)},buildRequests:function(e,r){for(var t,n,a=[],i=[],o=null,s=null,d="https://as-sec.casalemedia.com/cygnus",p=0;p<e.length;p++)o=e[p],n=void 0,(n={}).id=(t=o).bidId,n.banner={},n.banner.w=t.params.size[0],n.banner.h=t.params.size[1],n.banner.topframe=w.inIframe()?0:1,n.ext={},n.ext.siteID=t.params.siteId,!t.params.hasOwnProperty("id")||"string"!=typeof t.params.id&&"number"!=typeof t.params.id?n.ext.sid="".concat(t.params.size[0],"x").concat(t.params.size[1]):n.ext.sid=String(t.params.id),t.params.hasOwnProperty("bidFloor")&&t.params.hasOwnProperty("bidFloorCur")&&(n.bidfloor=t.params.bidFloor,n.bidfloorcur=t.params.bidFloorCur),s=n,a.push(s);if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var f=window.headertag.getIdentityInfo();if(f&&"object"===P(f))for(var u in f)if(f.hasOwnProperty(u)){var c=f[u];!c.responsePending&&c.data&&"object"===P(c.data)&&Object.keys(c.data).length&&i.push(c.data)}}var m={};if(m.id=e[0].bidderRequestId,m.imp=a,m.site={},m.ext={},m.ext.source="prebid",0<i.length&&(m.user={},m.user.eids=i),document.referrer&&""!==document.referrer&&(m.site.ref=document.referrer),r){if(r.gdprConsent){var y=r.gdprConsent;y.hasOwnProperty("gdprApplies")&&(m.regs={ext:{gdpr:y.gdprApplies?1:0}}),y.hasOwnProperty("consentString")&&(m.user=m.user||{},m.user.ext={consent:y.consentString||""})}r.refererInfo&&(m.site.page=r.refererInfo.referer,r.refererInfo.referer&&0!==r.refererInfo.referer.indexOf("https")&&(d="http://as.casalemedia.com/cygnus"))}var b={},l=I.b.getConfig("ix");if(l){if("object"===P(l.firstPartyData)){var h=l.firstPartyData,g="?";for(var v in h)h.hasOwnProperty(v)&&(g+="".concat(encodeURIComponent(v),"=").concat(encodeURIComponent(h[v]),"&"));g=g.slice(0,-1),m.site.page+=g}"number"==typeof l.timeout&&(b.t=l.timeout)}return b.s=e[0].params.siteId,b.v=7.2,b.r=JSON.stringify(m),b.ac="j",b.sd=1,{method:"GET",url:d,data:b}},interpretResponse:function(e){var r=[],t=null;if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return r;for(var n,a,i,o=e.body,s=o.seatbid,d=0;d<s.length;d++)if(s[d].hasOwnProperty("bid"))for(var p=s[d].bid,f=0;f<p.length;f++)n=p[f],a=o.cur,i=void 0,i={},y.hasOwnProperty(a)?i.cpm=n.price/y[a]:i.cpm=n.price/u,i.requestId=n.impid,i.width=n.w,i.height=n.h,i.ad=n.adm,i.dealId=w.deepAccess(n,"ext.dealid"),i.ttl=c,i.netRevenue=m,i.currency=a,i.creativeId=n.hasOwnProperty("crid")?n.crid:"-",i.meta={},i.meta.networkId=w.deepAccess(n,"ext.dspid"),i.meta.brandId=w.deepAccess(n,"ext.advbrandid"),i.meta.brandName=w.deepAccess(n,"ext.advbrand"),t=i,r.push(t);return r},transformBidParams:function(e,r){return w.convertTypes({siteID:"number"},e)}};Object(o.registerBidder)(p)}},[362]);pbjsChunk([156],{369:function(e,n,t){e.exports=t(370)},370:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),t.d(n,"spec",function(){return u}),t.d(n,"pixel",function(){return p});var r=t(1),o=t(0),i=[],s=Date.now(),a={},d=[],u={code:"justpremium",time:6e4,isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zone)},buildRequests:function(e,n){var t=function(e){var c={},o={};return e.forEach(function(e){var n=e.params,t=n.zone;if(1!==c[t]){var r=n.allow||n.formats||[],i=n.exclude||[];if(0===r.length&&0===i.length)return c[n.zone]=1;c[t]=c[t]||[[],{}],c[t][0]=function(e){for(var n=e.concat(),t=0;t<n.length;++t)for(var r=t+1;r<n.length;++r)n[t]===n[r]&&n.splice(r--,1);return n}(c[t][0].concat(r)),i.forEach(function(e){c[t][1][e]?c[t][1][e]++:c[t][1][e]=1}),o[t]=o[t]||0,i.length&&o[t]++}}),Object.keys(o).forEach(function(n){if(1!==c[n]){var t=[];Object.keys(c[n][1]).forEach(function(e){c[n][1][e]===o[n]&&t.push(e)}),c[n][1]=t}}),Object.keys(c).forEach(function(t){1!==c[t]&&c[t][1].length&&(c[t][0].forEach(function(e){var n=c[t][1].indexOf(e);-1<n&&c[t][1].splice(n,1)}),c[t][0].length=0),1===c[t]||c[t][0].length||c[t][1].length||(c[t]=1)}),c}(e),r=function(){var n;try{n=window.top}catch(e){n=window}return{screenWidth:n.screen.width,screenHeight:n.screen.height,innerWidth:n.innerWidth,innerHeight:n.innerHeight}}();d=e.map(function(e){return e.adUnitCode}).filter(function(e,n,t){return t.indexOf(e)===n});var i={zone:e.map(function(e){return parseInt(e.params.zone)}).filter(function(e,n,t){return t.indexOf(e)===n}),referer:n.refererInfo.referer,sw:r.screenWidth,sh:r.screenHeight,ww:r.innerWidth,wh:r.innerHeight,c:t,id:e[0].params.zone,sizes:{}};e.forEach(function(e){var n=e.params.zone,t=i.sizes;t[n]=t[n]||[],t[n].push.apply(t[n],e.sizes)}),Object(o.deepAccess)(e[0],"userId.pubcid")?i.pubcid=Object(o.deepAccess)(e[0],"userId.pubcid"):Object(o.deepAccess)(e[0],"crumbs.pubcid")&&(i.pubcid=Object(o.deepAccess)(e[0],"crumbs.pubcid")),i.uids=e[0].userId,n&&n.gdprConsent&&(i.gdpr_consent={consent_string:n.gdprConsent.consentString,consent_required:"boolean"!=typeof n.gdprConsent.gdprApplies||n.gdprConsent.gdprApplies}),i.version={prebid:"2.32.0",jp_adapter:"1.4"};var c=JSON.stringify(i);return a=i,{method:"POST",url:"//pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date,data:c,bids:e}},interpretResponse:function(e,n){var i=e.body,c=[];return n.bids.forEach(function(e){var n=function(e,n){var t=e.zone;if(n[t])for(var r=n[t].length;r--;)if(f(e,n[t][r]))return n[t].splice(r,1).pop();return!1}(e.params,i.bid);if(n){var t=e.sizes&&e.sizes.length&&e.sizes[0]||[],r={requestId:e.bidId,creativeId:n.id,width:t[0]||n.width,height:t[1]||n.height,ad:n.adm,cpm:n.price,netRevenue:!0,currency:n.currency||"USD",ttl:n.ttl||u.time,format:n.format};c.push(r)}}),c},getUserSyncs:function(e,n,t){var r="//pre.ads.justpremium.com/v/1.0/t/sync?_c=a"+Math.random().toString(36).substring(7)+Date.now();return t&&"boolean"==typeof t.gdprApplies&&(r=r+"&consentString="+encodeURIComponent(t.consentString)),e.iframeEnabled&&i.push({type:"iframe",url:r}),i},onTimeout:function(e){e.forEach(function(e){-1!=d.indexOf(e.adUnitCode)&&function(e,n,t){var r="",i={auc:e.adUnitCode,to:e.timeout};if(window.top==window)r=window.location.href;else try{r=window.top.location.href}catch(e){r=document.referrer}var c=Date.now()-s,o="//emea-v3.tracking.justpremium.com/tracking.gif?rid=&sid=&uid=&vr=&\nru=".concat(encodeURIComponent(r),"&tt=&siw=&sh=").concat(n.sh,"&sw=").concat(n.sw,"&wh=").concat(n.wh,"&ww=").concat(n.ww,"&an=&vn=&\nsd=&_c=&et=&aid=&said=&ei=&fc=&sp=&at=bidder&cid=&ist=&mg=&dl=&dlt=&ev=&vt=&zid=").concat(n.id,"&dr=").concat(c,"&di=&pr=&\ncw=&ch=&nt=&st=&jp=").concat(encodeURIComponent(JSON.stringify(i)),"&ty=").concat(t);p.fire(o)}(e,a,"btm")})}},p={fire:function(e){var n=document.createElement("img");n.src=e,n.id="jp-pixel-track",n.style.cssText="display:none !important;",document.body.appendChild(n)}};function f(e,n){var t=n.format;return e.allow&&e.allow.length?-1<e.allow.indexOf(t):!e.exclude||!e.exclude.length||e.exclude.indexOf(t)<0}Object(r.registerBidder)(u)}},[369]);pbjsChunk([95],{522:function(e,r,t){e.exports=t(523)},523:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"FASTLANE_ENDPOINT",function(){return n}),t.d(r,"VIDEO_ENDPOINT",function(){return a}),t.d(r,"SYNC_ENDPOINT",function(){return o}),t.d(r,"spec",function(){return s}),r.hasVideoMediaType=I,r.masSizeOrdering=j,r.determineRubiconVideoSizeId=S,r.getPriceGranularity=k,r.hasValidVideoParams=T,r.resetUserSync=function(){C=!1};var c=t(0),i=t(1),u=t(3),d=t(2);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return(l=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(t.push(a.value),!r||t.length!==r);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}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)}function m(){return"https:"===location.protocol}var n="//fastlane.rubiconproject.com/a/api/fastlane.json",a="//prebid-server.rubiconproject.com/openrtb2/auction",o="https://eus.rubiconproject.com/usync.html",g={FASTLANE:{id:"dt.id",keyv:"dt.keyv",pref:"dt.pref"},PREBID_SERVER:{id:"id",keyv:"keyv"}},b={1:"468x60",2:"728x90",5:"120x90",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",229:"320x180",232:"580x400",257:"400x600",264:"970x1000",265:"1920x1080",278:"320x500",288:"640x380"};c._each(b,function(e,r){return b[e]=r});var s={code:"rubicon",supportedMediaTypes:[d.b,d.d],isBidRequestValid:function(e){if("object"!==v(e.params))return!1;for(var r=0,t=["accountId","siteId","zoneId"];r<t.length;r++)if(e.params[t[r]]=parseInt(e.params[t[r]]),isNaN(e.params[t[r]]))return c.logError("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var i=A(e,!0);return!!i&&("video"!==i||T(e))},buildRequests:function(e,o){var r=[],t=e.filter(function(e){return"video"===A(e)}).map(function(e){e.startTime=(new Date).getTime();var r={id:e.transactionId,test:u.b.getConfig("debug")?1:0,cur:["USD"],source:{tid:e.transactionId},tmax:u.b.getConfig("TTL")||1e3,imp:[{exp:300,id:e.adUnitCode,secure:m()||e.params.secure?1:0,ext:{rubicon:e.params},video:c.deepAccess(e,"mediaTypes.video")||{}}],ext:{prebid:{cache:{vastxml:{returnCreative:!1}},targeting:{includewinners:!0,includebidderkeys:!1,pricegranularity:k(u.b)}}}},t=parseFloat(c.deepAccess(e,"params.floor"));isNaN(t)||(r.imp[0].bidfloor=t),r.imp[0].ext.rubicon.video.size_id=S(e),function(r,t,e){if(!r)return;"object"===v(u.b.getConfig("app"))?r.app=u.b.getConfig("app"):r.site={page:x(t,e)};"object"===v(u.b.getConfig("device"))&&(r.device=u.b.getConfig("device"));t.params.video.language&&["site","device"].forEach(function(e){r[e]&&(r[e].content=l({language:t.params.video.language},r[e].content))})}(r,e,o),function(e,r){"object"===v(e.imp[0].video)&&void 0===e.imp[0].video.skip&&(e.imp[0].video.skip=r.params.video.skip);"object"===v(e.imp[0].video)&&void 0===e.imp[0].video.skipafter&&(e.imp[0].video.skipafter=r.params.video.skipdelay);"object"===v(e.imp[0].video)&&void 0===e.imp[0].video.pos&&(e.imp[0].video.pos="atf"===r.params.position?1:"btf"===r.params.position?3:0);var t=h(r,"video");e.imp[0].video.w=t[0],e.imp[0].video.h=t[1]}(r,e);var i,n=y(e,"PREBID_SERVER");n&&c.deepSetValue(r,"user.ext.digitrust",n),o.gdprConsent&&("boolean"==typeof o.gdprConsent.gdprApplies&&(i=o.gdprConsent.gdprApplies?1:0),r.regs?r.regs.ext?r.regs.ext.gdpr=i:r.regs.ext={gdpr:i}:r.regs={ext:{gdpr:i}},c.deepSetValue(r,"user.ext.consent",o.gdprConsent.consentString));return e.userId&&"object"===v(e.userId)&&(e.userId.tdid||e.userId.pubcid)&&(c.deepSetValue(r,"user.ext.eids",[]),e.userId.tdid&&r.user.ext.eids.push({source:"adserver.org",uids:[{id:e.userId.tdid,ext:{rtiPartner:"TDID"}}]}),e.userId.pubcid&&r.user.ext.eids.push({source:"pubcommon",uids:[{id:e.userId.pubcid}]})),!0===u.b.getConfig("coppa")&&c.deepSetValue(r,"regs.coppa",1),{method:"POST",url:a,data:r,bidRequest:e}});if(!0!==u.b.getConfig("rubicon.singleRequest"))r=t.concat(e.filter(function(e){return"banner"===A(e)}).map(function(e){var i=s.createSlotParams(e,o);return{method:"GET",url:n,data:s.getOrderedParams(i).reduce(function(e,r){var t=i[r];return c.isStr(t)&&""!==t||c.isNumber(t)?"".concat(e).concat(r,"=").concat(encodeURIComponent(t),"&"):e},"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}}));else{var i=e.filter(function(e){return"banner"===A(e)}).reduce(function(e,r){return(e[r.params.siteId]=e[r.params.siteId]||[]).push(r),e},{});r=t.concat(Object.keys(i).reduce(function(r,e){return function(t,i){return t.map(function(e,r){return r%i==0?t.slice(r,r+i):null}).filter(function(e){return e})}(i[e],10).forEach(function(e){var i=s.combineSlotUrlParams(e.map(function(e){return s.createSlotParams(e,o)}));r.push({method:"GET",url:n,data:s.getOrderedParams(i).reduce(function(e,r){var t=i[r];return c.isStr(t)&&""!==t||c.isNumber(t)?"".concat(e).concat(r,"=").concat(encodeURIComponent(t),"&"):e},"")+"slots=".concat(e.length,"&rand=").concat(Math.random()),bidRequest:e})}),r},[]))}return r},getOrderedParams:function(e){var r=/^tg_v/,t=/^tg_i/,i=["tpid_tdid","account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","rf","dt.id","dt.keyv","dt.pref","p_geo.latitude","p_geo.longitude","kw"].concat(Object.keys(e).filter(function(e){return r.test(e)})).concat(Object.keys(e).filter(function(e){return t.test(e)})).concat(["tk_flint","x_source.tid","p_screen_res","rp_floor","rp_secure","tk_user_key"]);return i.concat(Object.keys(e).filter(function(e){return-1===i.indexOf(e)}))},combineSlotUrlParams:function(n){if(1===n.length)return n[0];var i=n.reduce(function(r,t,i){return Object.keys(t).forEach(function(e){r.hasOwnProperty(e)||(r[e]=new Array(n.length)),r[e].splice(i,1,t[e])}),r},{}),o=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(i).forEach(function(e){var r=i[e].join(";"),t=r.match(o);i[e]=t?t[1]:r}),i},createSlotParams:function(e,r){e.startTime=(new Date).getTime();var t=e.params,i=h(e,"banner"),n=f(t.latLong||[],2),o=n[0],a=n[1],s=u.b.getConfig("rubicon.int_type"),c={account_id:t.accountId,site_id:t.siteId,zone_id:t.zoneId,size_id:i[0],alt_size_ids:i.slice(1).join(",")||void 0,p_pos:"atf"===t.position||"btf"===t.position?t.position:"unknown",rp_floor:.01<(t.floor=parseFloat(t.floor))?t.floor:.01,rp_secure:m()?"1":"0",tk_flint:"".concat(s||"pbjs_lite","_v2.32.0"),"x_source.tid":e.transactionId,p_screen_res:[window.screen.width,window.screen.height].join("x"),kw:Array.isArray(t.keywords)?t.keywords.join(","):"",tk_user_key:t.userId,"p_geo.latitude":isNaN(parseFloat(o))?void 0:parseFloat(o).toFixed(4),"p_geo.longitude":isNaN(parseFloat(a))?void 0:parseFloat(a).toFixed(4),"tg_fl.eid":e.code,rf:x(e,r)};(e.userId||{}).tdid&&(c.tpid_tdid=e.userId.tdid),r.gdprConsent&&("boolean"==typeof r.gdprConsent.gdprApplies&&(c.gdpr=Number(r.gdprConsent.gdprApplies)),c.gdpr_consent=r.gdprConsent.consentString),null!==t.visitor&&"object"===v(t.visitor)&&Object.keys(t.visitor).forEach(function(e){null!=t.visitor[e]&&(c["tg_v.".concat(e)]=t.visitor[e].toString())}),null!==t.inventory&&"object"===v(t.inventory)&&Object.keys(t.inventory).forEach(function(e){null!=t.inventory[e]&&(c["tg_i.".concat(e)]=t.inventory[e].toString())});var d=y(e,"FASTLANE");return l(c,d),!0===u.b.getConfig("coppa")&&(c.coppa=1),c},interpretResponse:function(a,e){var s=e.bidRequest;if(!(a=a.body)||"object"!==v(a))return[];if(a.seatbid){var r=c.deepAccess(a,"ext.errors.rubicon");Array.isArray(r)&&0<r.length&&c.logWarn("Rubicon: Error in video response");var o=[];return a.seatbid.forEach(function(n){(n.bid||[]).forEach(function(e){var r={requestId:s.bidId,currency:a.cur||"USD",creativeId:e.crid,cpm:e.price||0,bidderCode:n.seat,ttl:300,netRevenue:u.b.getConfig("rubicon.netRevenue")||!1,width:e.w||c.deepAccess(s,"mediaTypes.video.w")||c.deepAccess(s,"params.video.playerWidth"),height:e.h||c.deepAccess(s,"mediaTypes.video.h")||c.deepAccess(s,"params.video.playerHeight")};e.dealid&&(r.dealId=e.dealid);var t=c.deepAccess(a,"ext.responsetimemillis.rubicon");if(s&&t&&(s.serverResponseTimeMs=t),c.deepAccess(e,"ext.prebid.type")===d.d){r.mediaType=d.d;var i=c.deepAccess(e,"ext.prebid.targeting");i&&"object"===v(i)&&(r.adserverTargeting=i),e.ext.prebid.cache&&"object"===v(e.ext.prebid.cache.vastXml)&&e.ext.prebid.cache.vastXml.cacheId&&e.ext.prebid.cache.vastXml.url?(r.videoCacheKey=e.ext.prebid.cache.vastXml.cacheId,r.vastUrl=e.ext.prebid.cache.vastXml.url):i&&i.hb_uuid&&i.hb_cache_host&&i.hb_cache_path&&(r.videoCacheKey=i.hb_uuid,r.vastUrl="https://".concat(i.hb_cache_host).concat(i.hb_cache_path,"?uuid=").concat(i.hb_uuid)),e.adm&&(r.vastXml=e.adm),e.nurl&&(r.vastUrl=e.nurl),!r.vastUrl&&e.nurl&&(r.vastUrl=e.nurl)}else c.logWarn("Rubicon: video response received non-video media type");o.push(r)})}),o}var t=a.ads;return"object"!==v(s)||Array.isArray(s)||"video"!==A(s)||"object"!==v(t)||(t=t[s.adUnitCode]),!Array.isArray(t)||t.length<1?[]:t.reduce(function(e,r,t){if("ok"!==r.status)return e;var i=Array.isArray(s)?s[t]:s;if(i&&"object"===v(i)){var n={requestId:i.bidId,currency:"USD",creativeId:r.creative_id||"".concat(r.network||"","-").concat(r.advertiser||""),cpm:r.cpm||0,dealId:r.deal,ttl:300,netRevenue:u.b.getConfig("rubicon.netRevenue")||!1,rubicon:{advertiserId:r.advertiser,networkId:r.network},meta:{advertiserId:r.advertiser,networkId:r.network}};if(r.creative_type&&(n.mediaType=r.creative_type),r.creative_type===d.d)n.width=i.params.video.playerWidth,n.height=i.params.video.playerHeight,n.vastUrl=r.creative_depot_url,n.impression_id=r.impression_id,n.videoCacheKey=r.impression_id;else{n.ad=function(e,r){return"<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='".concat(r,"'>\n<script type='text/javascript'>").concat(e,"<\/script>\n</div>\n</body>\n</html>")}(r.script,r.impression_id);var o=f(b[r.size_id].split("x").map(function(e){return Number(e)}),2);n.width=o[0],n.height=o[1]}n.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce(function(e,r){return e[r.key]=r.values[0],e},{rpfl_elemid:i.adUnitCode}),e.push(n)}else c.logError("Rubicon: bidRequest undefined at index position:".concat(t),s,a);return e},[]).sort(function(e,r){return(r.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,r,t){if(!C&&e.iframeEnabled){var i="";return t&&"string"==typeof t.consentString&&("boolean"==typeof t.gdprApplies?i+="?gdpr=".concat(Number(t.gdprApplies),"&gdpr_consent=").concat(t.consentString):i+="?gdpr_consent=".concat(t.consentString)),C=!0,{type:"iframe",url:o+i}}},transformBidParams:function(e,r){return c.convertTypes({accountId:"number",siteId:"number",zoneId:"number"},e)}};function y(e,r){var t,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length?r:void 0;if(!n||!g[n])return null;var o=g[n];var a=function(){var e=c.deepAccess(i,"userId.digitrustid.data");if(e)return e;var r=window.DigiTrust&&(u.b.getConfig("digiTrustId")||window.DigiTrust.getUser({member:"T9QSFKPDN9"}));return r&&r.success&&r.identity||null}();if(!a||a.privacy&&a.privacy.optout)return null;var s=(p(t={},o.id,a.id),p(t,o.keyv,a.keyv),t);return o.pref&&(s[o.pref]=0),s}function x(e,r){var t=u.b.getConfig("pageUrl");return t=e.params.referrer?e.params.referrer:t||r.refererInfo.referer,e.params.secure?t.replace(/^http:/i,"https:"):t}function h(e,r){var t=e.params;if("video"===r){var i=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?i=[t.video.playerWidth,t.video.playerHeight]:Array.isArray(c.deepAccess(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?i=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&0<e.sizes.length&&Array.isArray(e.sizes[0])&&1<e.sizes[0].length&&(i=e.sizes[0]),i}var n=[];return Array.isArray(t.sizes)?n=t.sizes:void 0!==c.deepAccess(e,"mediaTypes.banner.sizes")?n=_(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&0<e.sizes.length?n=_(e.sizes):c.logWarn("Rubicon: no sizes are setup or found"),j(n)}function _(e){return c.parseSizesInput(e).reduce(function(e,r){var t=parseInt(b[r],10);return t&&e.push(t),e},[])}function I(e){return"object"===v(c.deepAccess(e,"params.video"))&&void 0!==c.deepAccess(e,"mediaTypes.".concat(d.d))}function A(e,r){var t=1<arguments.length&&void 0!==r&&r;return I(e)?-1===["outstream","instream"].indexOf(c.deepAccess(e,"mediaTypes.".concat(d.d,".context")))?void(t&&c.logError("Rubicon: mediaTypes.video.context must be outstream or instream")):h(e,"video").length<2?void(t&&c.logError("Rubicon: could not determine the playerSize of the video")):(t&&c.logMessage("Rubicon: making video request for adUnit",e.adUnitCode),"video"):0===h(e,"banner").length?void(t&&c.logError("Rubicon: could not determine the sizes for banner request")):(t&&c.logMessage("Rubicon: making banner request for adUnit",e.adUnitCode),"banner")}function j(e){var n=[15,2,9];return e.sort(function(e,r){var t=n.indexOf(e),i=n.indexOf(r);return-1<t||-1<i?-1===t?1:-1===i?-1:t-i:e-r})}function S(e){var r=parseInt(c.deepAccess(e,"params.video.size_id"));return isNaN(r)?"outstream"===c.deepAccess(e,"mediaTypes.".concat(d.d,".context"))?203:201:r}function k(e){return{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:e.getConfig("customPriceBucket")&&e.getConfig("customPriceBucket").buckets}[e.getConfig("priceGranularity")]}}function T(r){var t=!0,e=Object.prototype.toString.call([]),i=Object.prototype.toString.call(0),n={mimes:e,protocols:e,maxduration:i,linearity:i,api:e};return Object.keys(n).forEach(function(e){Object.prototype.toString.call(c.deepAccess(r,"mediaTypes.video."+e))!==n[e]&&(t=!1,c.logError("Rubicon: mediaTypes.video."+e+" is required and must be of type: "+n[e]))}),t}var C=!1;Object(i.registerBidder)(s)}},[522]);pbjsChunk([84],{550:function(r,e,a){r.exports=a(551)},551:function(r,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),a.d(e,"spec",function(){return s});var i=a(0),d=a(3),t=a(1),s={code:"smartadserver",aliases:["smart"],isBidRequestValid:function(r){return!!(r.params&&r.params.siteId&&r.params.pageId&&r.params.formatId)},buildRequests:function(r,t){return r.map(function(r){var e={siteid:r.params.siteId,pageid:r.params.pageId,formatid:r.params.formatId,currencyCode:d.b.getConfig("currency.adServerCurrency"),bidfloor:r.params.bidfloor||0,targeting:r.params.target&&""!=r.params.target?r.params.target:void 0,buid:r.params.buId&&""!=r.params.buId?r.params.buId:void 0,appname:r.params.appName&&""!=r.params.appName?r.params.appName:void 0,ckid:r.params.ckId||0,tagId:r.adUnitCode,sizes:r.sizes.map(function(r){return{w:r[0],h:r[1]}}),pageDomain:i.getTopWindowUrl(),transactionId:r.transactionId,timeout:d.b.getConfig("bidderTimeout"),bidId:r.bidId,prebidVersion:"2.32.0"};t&&t.gdprConsent&&(e.gdpr_consent=t.gdprConsent.consentString,e.gdpr=t.gdprConsent.gdprApplies);var a=JSON.stringify(e);return{method:"POST",url:(void 0!==r.params.domain?r.params.domain:"https://prg.smartadserver.com")+"/prebid/v1",data:a}})},interpretResponse:function(r,e){var a=[],t=r.body;try{if(t){var d={requestId:JSON.parse(e.data).bidId,cpm:t.cpm,width:t.width,height:t.height,creativeId:t.creativeId,dealId:t.dealId,currency:t.currency,netRevenue:t.isNetCpm,ttl:t.ttl,referrer:i.getTopWindowUrl(),adUrl:t.adUrl,ad:t.ad};a.push(d)}}catch(r){i.logError("Error while parsing smart server response",r)}return a},getUserSyncs:function(r,e){var a=[];return r.iframeEnabled&&0<e.length&&a.push({type:"iframe",url:e[0].body.cSyncUrl}),a}};Object(t.registerBidder)(s)}},[550]);pbjsChunk([70],{586:function(e,r,t){e.exports=t(587)},587:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"spec",function(){return o});var a=t(1),d=t(0),n=12,s=11,i=0,p=22,o={code:"teads",supportedMediaTypes:["video","banner"],isBidRequestValid:function(e){var r=!1;if(void 0!==e.params){var t=f(d.getValue(e.params,"placementId")),a=f(d.getValue(e.params,"pageId"));r=t&&a}return r||d.logError("Teads placementId and pageId parameters are required. Bid aborted."),r},buildRequests:function(e,r){var t=e.map(u),a={referrer:function(e){var r="";e&&e.refererInfo&&e.refererInfo.referer&&(r=e.refererInfo.referer);return r}(r),data:t,deviceWidth:screen.width,hb_version:"2.32.0"},n=r.gdprConsent;if(r&&n){var d="boolean"==typeof n.gdprApplies,s="string"==typeof n.consentString,i=d?c(n.gdprApplies,n.vendorData):p;a.gdpr_iab={consent:s?n.consentString:"",status:i}}return{method:"POST",url:"//a.teads.tv/hb/bid-request",data:JSON.stringify(a)}},interpretResponse:function(e,r){var t=[];return(e=e.body).responses&&e.responses.forEach(function(e){var r={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};t.push(r)}),t},getUserSyncs:function(e,r,t){var a={hb_provider:"prebid",hb_version:"2.32.0"};if(t){var n={status:c(t.gdprApplies,t.vendorData),consent:t.consentString};a.gdprIab=JSON.stringify(n)}if(d.deepAccess(r[0],"body.responses.0.placementId")&&(a.placementId=r[0].body.responses[0].placementId),e.iframeEnabled)return[{type:"iframe",url:"//sync.teads.tv/iframe?"+d.parseQueryStringParameters(a)}]}};function c(e,r){var t=n;return e?(r.hasGlobalScope||r.hasGlobalConsent)&&(t=s):t=i,t}function u(e){var r={},t=d.getValue(e.params,"placementId"),a=d.getValue(e.params,"pageId");return r.sizes=function(e){return d.parseSizesInput(function(e){var r=d.deepAccess(e,"mediaTypes.video.playerSize"),t=d.deepAccess(e,"mediaTypes.video.sizes"),a=d.deepAccess(e,"mediaTypes.banner.sizes");{return d.isArray(a)||d.isArray(r)||d.isArray(t)?[a,t,r].reduce(function(r,e){return d.isArray(e)&&(d.isArray(e[0])?e.forEach(function(e){r.push(e)}):r.push(e)),r},[]):e.sizes}}(e))}(e),r.bidId=d.getBidIdParameter("bidId",e),r.bidderRequestId=d.getBidIdParameter("bidderRequestId",e),r.placementId=parseInt(t,10),r.pageId=parseInt(a,10),r.adUnitCode=d.getBidIdParameter("adUnitCode",e),r.auctionId=d.getBidIdParameter("auctionId",e),r.transactionId=d.getBidIdParameter("transactionId",e),r}function f(e){return 0<parseInt(e)}Object(a.registerBidder)(o)}},[586]);pbjs.processQueue();var optidigitalSetup={version:{prebid:'prebid.2.1.0',buildDate:'2019-01-08 08:58',},timeouts:{prebidDirect:1000,prebidIndirect:2000,failsafe:34000,lazyLoadPxInterval:300,},analytics:{status:'enabled',sampling:10,optiSampling:10,property:'UA-683383-7',customDimensions:{adUnit:'dimension1',loadType:'dimension2'},},prebidConsentManagement:{cmpApi:'iab',timeout:30000,allowAuctionWithoutConsent:true,},prebidPriceGranularity:{buckets:[{precision:2,min:0,max:3,increment:0.01},{precision:2,min:3,max:8,increment:0.05},{precision:2,min:8,max:20,increment:0.50}]},defaultDiscount:0.82,adServerCurrency:'EUR',enableTimePerformance:true,adSlotsConfig:{adManagerKeyName:'adslot',widthBreakpoints:[1200,1024,900,768,0],adSlotsDefinitions:[{name:'OutOfPage',adDeclaration:0,loadType:0,sizes:{breakpoint_1200:[[1,1]],}},{name:'Billboard_1',adDeclaration:0,loadType:0,sizes:{breakpoint_1200:[[1,1],[1000,250],[1000,90],[970,250],[970,90],[728,90]],breakpoint_1024:[[1,1],[1000,250],[1000,90],[970,250],[970,90],[728,90]],breakpoint_900:[[1,1],[728,90],[700,250]],breakpoint_768:[[1,1],[728,90],[700,250]]}},{name:'HalfpageAd_1',adDeclaration:0,loadType:0,lazyLoadPx:600,sizes:{breakpoint_1200:[[1,1],['fluid'],[300,600],[300,250],[160,600],[120,600],[250,250]],breakpoint_1024:[[1,1],['fluid'],[300,600],[300,250],[160,600],[120,600],[250,250]],breakpoint_900:[[1,1],['fluid'],[300,600],[300,250],[160,600],[120,600],[250,250]]}},{name:'Content_1',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_1200:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],breakpoint_1024:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_900:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_768:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],}},{name:'Content_2',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_1200:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],breakpoint_1024:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_900:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_768:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],}},{name:'Content_3',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_1200:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],breakpoint_1024:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_900:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_768:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],}},{name:'Content_4',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_1200:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],breakpoint_1024:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_900:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_768:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],}},{name:'Content_5',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_1200:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],breakpoint_1024:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_900:[[1,1],['fluid'],[336,280],[300,250],[250,250]],breakpoint_768:[[1,1],['fluid'],[728,90],[336,280],[300,250],[250,250]],}},{name:'Mobile_Pos1',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_0:[[1,1],['fluid'],[336,280],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250]],}},{name:'Mobile_Pos2',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_0:[[1,1],['fluid'],[336,280],[300,600],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250]],}},{name:'Mobile_Pos3',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_0:[[1,1],['fluid'],[336,280],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250]],}},{name:'Mobile_Pos4',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_0:[[1,1],['fluid'],[336,280],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250]],}},{name:'Mobile_Pos5',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_0:[[1,1],['fluid'],[336,280],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250]],}},{name:'Mobile_Pos6',adDeclaration:0,loadType:1,lazyLoadPx:600,infiniteScroll:1,sizes:{breakpoint_0:[[1,1],['fluid'],[336,280],[300,250],[320,160],[320,100],[320,80],[320,50],[250,250]],}},],},aliasBidders:{appnexus:['asqClassic','asqBrand','asqMax'],rubicon:['asqRubicon']},bidders:['criteo','asqClassic','asqBrand','asqMax','asqRubicon','rubicon','invibes','smart','amazon'],prebidSafeframe:{status:'enabled',bidders:['criteo','asqClassic','asqBrand','asqMax','asqRubicon','rubicon','smart'],},biddersSetup:{criteo:{discount:0.95,adSlots:{Billboard_1:{zoneId:1378692},HalfpageAd_1:{zoneId:1378693},Content_1:{zoneId:1378694},Content_2:{zoneId:1378695},Content_3:{zoneId:1378696},Content_4:{zoneId:1378697},Content_5:{zoneId:1378698},Mobile_Pos1:{zoneId:1378701},Mobile_Pos2:{zoneId:1378707},Mobile_Pos3:{zoneId:1378703},Mobile_Pos4:{zoneId:1378704},Mobile_Pos5:{zoneId:1378705},Mobile_Pos6:{zoneId:1378706},}},asqClassic:{adSlots:{Billboard_1:{placementId:14737594},HalfpageAd_1:{placementId:14737607},Content_1:{placementId:14737603},Content_2:{placementId:14737603},Content_3:{placementId:14737603},Content_4:{placementId:14737603},Content_5:{placementId:14737603},Mobile_Pos1:{placementId:14737617},Mobile_Pos2:{placementId:14737624},Mobile_Pos3:{placementId:14737617},Mobile_Pos4:{placementId:14737617},Mobile_Pos5:{placementId:14737617},Mobile_Pos6:{placementId:14737617},}},asqBrand:{adSlots:{Billboard_1:{placementId:14737600},HalfpageAd_1:{placementId:14737612},Content_1:{placementId:14737606},Content_2:{placementId:14737606},Content_3:{placementId:14737606},Content_4:{placementId:14737606},Content_5:{placementId:14737606},Mobile_Pos1:{placementId:14737621},Mobile_Pos2:{placementId:14737629},Mobile_Pos3:{placementId:14737621},Mobile_Pos4:{placementId:14737621},Mobile_Pos5:{placementId:14737621},Mobile_Pos6:{placementId:14737621},}},asqMax:{adSlots:{Billboard_1:{placementId:14737597},HalfpageAd_1:{placementId:14737610},Content_1:{placementId:14737605},Content_2:{placementId:14737605},Content_3:{placementId:14737605},Content_4:{placementId:14737605},Content_5:{placementId:14737605},Mobile_Pos1:{placementId:14737619},Mobile_Pos2:{placementId:14737626},Mobile_Pos3:{placementId:14737619},Mobile_Pos4:{placementId:14737619},Mobile_Pos5:{placementId:14737619},Mobile_Pos6:{placementId:14737619},}},asqRubicon:{adSlots:{Billboard_1:{accountId:9585,siteId:237476,zoneId:1171096},HalfpageAd_1:{accountId:9585,siteId:237476,zoneId:1171104},Content_1:{accountId:9585,siteId:237476,zoneId:1171100},Content_2:{accountId:9585,siteId:237476,zoneId:1171100},Content_3:{accountId:9585,siteId:237476,zoneId:1171100},Content_4:{accountId:9585,siteId:237476,zoneId:1171100},Content_5:{accountId:9585,siteId:237476,zoneId:1171100},Mobile_Pos1:{accountId:9585,siteId:237476,zoneId:1171114},Mobile_Pos2:{accountId:9585,siteId:237476,zoneId:1171120},Mobile_Pos3:{accountId:9585,siteId:237476,zoneId:1171114},Mobile_Pos4:{accountId:9585,siteId:237476,zoneId:1171114},Mobile_Pos5:{accountId:9585,siteId:237476,zoneId:1171114},Mobile_Pos6:{accountId:9585,siteId:237476,zoneId:1171114},}},rubicon:{discount:0.95,adSlots:{Billboard_1:{accountId:20336,siteId:246666,zoneId:1219370},HalfpageAd_1:{accountId:20336,siteId:246666,zoneId:1219374},Content_1:{accountId:20336,siteId:246666,zoneId:1219376},Content_2:{accountId:20336,siteId:246666,zoneId:1219378},Content_3:{accountId:20336,siteId:246666,zoneId:1219382},Content_4:{accountId:20336,siteId:246666,zoneId:1219384},Content_5:{accountId:20336,siteId:246666,zoneId:1219386},Mobile_Pos1:{accountId:20336,siteId:246666,zoneId:1219390},Mobile_Pos2:{accountId:20336,siteId:246666,zoneId:1219392},Mobile_Pos3:{accountId:20336,siteId:246666,zoneId:1219396},Mobile_Pos4:{accountId:20336,siteId:246666,zoneId:1219398},Mobile_Pos5:{accountId:20336,siteId:246666,zoneId:1219402},}},invibes:{discount:0.95,adSlots:{Content_2:{placementId:'invibes_pressecitron',adContainerId:'optidigital-adslot-Content_2_1'},Mobile_Pos2:{placementId:'invibes_pressecitron',adContainerId:'optidigital-adslot-Mobile_Pos2_1'},}},smart:{discount:0.85,adSlots:{Billboard_1:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79366},HalfpageAd_1:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79375},HalfpageAd_2:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79376},Content_1:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79369},Content_2:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79370},Content_3:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79371},Content_4:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79372},Content_5:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79373},Mobile_Pos1:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79379},Mobile_Pos2:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79380},Mobile_Pos3:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79381},Mobile_Pos4:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79382},Mobile_Pos5:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79383},Mobile_Pos6:{domain:'//prg.smartadserver.com',siteId:305938,pageId:1111574,formatId:79384},}},amazon:{pubID:'ad4e5743-d0ba-4a72-a6e6-c6deb209fdf4',timeout:2e3,cmpTimeout:30000,adSlots:{Billboard_1:[[970,250],[728,90]],HalfpageAd_1:[[300,600],[300,250],[120,600]],HalfpageAd_2:[[300,600],[300,250],[120,600]],Content_1:[[300,250]],Content_2:[[300,250]],Content_3:[[300,250]],Content_4:[[300,250]],Content_5:[[300,250]],Mobile_Pos1:[[300,250]],Mobile_Pos2:[[300,250]],Mobile_Pos3:[[300,250]],Mobile_Pos4:[[300,250]],Mobile_Pos5:[[300,250]],Mobile_Pos6:[[300,250]],}},}};var optidigitalToolbox={debug:false,analytics:false,optiAnalytics:false,autoStart:true,debugCookie:"opd_debug",logPrefix:"%cOptiDigital_Toolbox:%c ",setup:{},divIdPrefix:"optidigital-adslot-",initConfig:{},browserWidth:0,widthBreakpoint:-1,gptAdSlots:[],breakPointAdSlotsConfig:[],firstLoadAdSlots:[],lazyLoadPendingAdSlots:[],lazyLoadIntervalId:-1,loadChildrenIfEmpty:[],loadChildrenIfFilled:[],infiniteScrollId:1,infiniteScrollWallpaperSlot:false,prebidSizesAdjusted:false,consentVendorConsents:'',consentPurposeId:'3',consentStatus:'notready',enableTimePerformance:false,startTime:new Date(),lastStepTime:new Date(),timeRanges:[0,100,200,300,400,500,600,700,800,900,1000,1500,2000,2500,3000,3500,4000,4500,5000],firstAuction:true,firstSlotRendered:true,debugWallpaper:false,debugBidderDiscount:1,gConsent:"none",stickyAdDivId:false,enableAmazonAPS:false,articleID:false,prebidSafeframe:false,prebidAdUnits:[],prebidSizes:[[1800,1000],[1000,250],[1000,90],[970,250],[970,90],[728,90],[300,600],[120,600],[160,600],[336,280],[300,250],[320,100],[320,50]],setCookie:function(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/";},getCookie:function(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}
if(c.indexOf(name)==0){return c.substring(name.length,c.length);}}
return "";},setDebug:function(debug){if(debug){this.setCookie(this.debugCookie,"enabled",1)}
else{this.setCookie(this.debugCookie,"disabled",1)}},loadConfig:function(s){if(typeof(window.location)=="object"&&window.location.hasOwnProperty("search")){if(window.location.search.indexOf("optidigital_debug=true")!=-1){this.debug=true;}
if(window.location.search.indexOf("optidigital_debug_wallpaper=true")!=-1){this.debugWallpaper=true;this.debugBidderDiscount=100;}}
var debug=this.getCookie(this.debugCookie);if(typeof(debug)!="undefined"&&debug=="enabled")
this.debug=true;this.log("load setup file and page configuration")
var scriptElement=document.getElementById("optidigital-ad-init");if(scriptElement!==null){this.initConfig=JSON.parse(scriptElement.getAttribute("config"));this.log("Opti Digital script config","log",this.initConfig);}
else
this.log("No configuration","error");this.setup=s;if(this.initConfig.adUnit=="/13306350/toutsurmesfinances.com/assurance"){this.setup.prebidConsentManagement.timeout=30000;this.setup.timeouts.failsafe=34000;}
var analyticsRandom=100;if(this.setup.analytics.status=="enabled"){var analyticsRandom=Math.floor(Math.random()*Math.floor(100));if(analyticsRandom<this.setup.analytics.sampling)
this.analytics=true;else if(analyticsRandom<this.setup.analytics.sampling+this.setup.analytics.optiSampling)
this.optiAnalytics=true;}
if(this.setup.hasOwnProperty("autoStart")){this.autoStart=this.setup.autoStart;}
this.log("Ads autoStart status "+this.autoStart);if(this.setup.hasOwnProperty("consentPurposeId")){this.consentPurposeId=this.setup.consentPurposeId;}
this.log("Consent Purpose Id for personalized ads "+this.consentPurposeId);if(this.setup.hasOwnProperty("enableTimePerformance")){this.enableTimePerformance=this.setup.enableTimePerformance;}
if(this.setup.hasOwnProperty("gConsent")){this.gConsent=this.setup.gConsent;}
if(this.setup.hasOwnProperty("infiniteScrollWallpaperSlot")){this.infiniteScrollWallpaperSlot=this.setup.infiniteScrollWallpaperSlot;}
this.log("Analytics status "+this.analytics+" (status="+
this.setup.analytics.status+" & sampling="+analyticsRandom+"/"+this.setup.analytics.sampling+")");if(this.setup.hasOwnProperty("enableArticleReporting")&&this.setup.enableArticleReporting==true){var articleURL=window.location.protocol+"//"+window.location.host+window.location.pathname;if(articleURL.length>0)
this.articleID=this.cyrb53(articleURL,100);this.log("Article URL: "+articleURL);this.log("Article ID: "+this.articleID);}
if(this.setup.hasOwnProperty("prebidSafeframe")&&this.setup.prebidSafeframe.hasOwnProperty("status")&&this.setup.prebidSafeframe.status=="enabled"){this.prebidSafeframe=true;}
this.log("Prebid ad serving through safeframe is "+this.prebidSafeframe);},log:function(string,type,object){if(this.debug){var textColor="#79ba23";if(typeof(type)!="undefined"){switch(type){case "warning":textColor="orange";break;case "error":textColor="red";break;default:textColor="#79ba23";}}
console.log(this.logPrefix+string,'background: #286090;border-radius:5px;color:#79ba23;font-weight:700;padding:2px 5px;','color:'+textColor);if(typeof(object)!="undefined")
console.log(object);}},loadGPT:function(){(function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript";e.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)})();},loadAPS:function(){if(this.setup.bidders.indexOf("amazon")!=-1&&this.setup.biddersSetup.hasOwnProperty("amazon")){!function(a9,a,p,s,t,A,g){if(a[a9])return;function q(c,r){a[a9]._Q.push([c,r])}a[a9]={init:function(){q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]};A=p.createElement(s);A.async=!0;A.src=t;g=p.getElementsByTagName(s)[0];g.parentNode.insertBefore(A,g)}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js");apstag.init({pubID:this.setup.biddersSetup.amazon.pubID,adServer:'googletag',gdpr:{cmpTimeout:this.setup.biddersSetup.amazon.cmpTimeout},});this.enableAmazonAPS=true;}},loadCustomRendererScripts:function(){if(this.setup.hasOwnProperty('customRenderer')){var keys=Object.keys(this.setup.customRenderer);for(var i in keys){if(typeof(keys[i])!="string")
continue;if(this.setup.customRenderer[keys[i]].hasOwnProperty('url')){(function(url){var e=document.createElement('script');e.async=!0,e.type='text/javascript';e.src=url;var r=document.getElementsByTagName('script')[0];r.parentNode.insertBefore(e,r)})(this.setup.customRenderer[keys[i]].url);}}}},loadAnalytics:function(){(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','prebidGA');prebidGA('create',this.setup.analytics.property,'auto');if(this.setup.analytics.hasOwnProperty('customDimensions')){if(this.setup.analytics.customDimensions.hasOwnProperty('adUnit')){prebidGA('set',this.setup.analytics.customDimensions.adUnit,this.initConfig.adUnit);}
if(this.setup.analytics.customDimensions.hasOwnProperty('loadType')){prebidGA('set',this.setup.analytics.customDimensions.loadType,'direct');}}},createAdStyles:function(){var css=document.createElement('style');css.type='text/css';var styles='.optidigital-ad-center { text-align: center; }';if(css.styleSheet)css.styleSheet.cssText=styles;else css.appendChild(document.createTextNode(styles));document.getElementsByTagName("head")[0].appendChild(css);},defineSlots:function(slotNames){for(var i in slotNames){if(!this.gptAdSlots.hasOwnProperty(slotNames[i])&&this.breakPointAdSlotsConfig.hasOwnProperty(slotNames[i])){if(this.breakPointAdSlotsConfig[slotNames[i]].name=="OutOfPage"){this.gptAdSlots[this.breakPointAdSlotsConfig[slotNames[i]].name]=googletag.defineOutOfPageSlot(this.initConfig.adUnit,this.breakPointAdSlotsConfig[slotNames[i]].divId).setCollapseEmptyDiv(true).setTargeting(this.setup.adSlotsConfig.adManagerKeyName,this.breakPointAdSlotsConfig[slotNames[i]].adUnit).addService(googletag.pubads());}
else{var isInfinite=false;var dfpSizes=this.breakPointAdSlotsConfig[slotNames[i]].dfpSizes;if(this.breakPointAdSlotsConfig[slotNames[i]].hasOwnProperty("infiniteScrollId")&&this.breakPointAdSlotsConfig[slotNames[i]].infiniteScrollId>1){dfpSizes=this.getInfiniteScrollDPFSizes(dfpSizes);isInfinite=true;}
this.gptAdSlots[this.breakPointAdSlotsConfig[slotNames[i]].name]=googletag.defineSlot(this.initConfig.adUnit,dfpSizes,this.breakPointAdSlotsConfig[slotNames[i]].divId).setCollapseEmptyDiv(true).setTargeting(this.setup.adSlotsConfig.adManagerKeyName,this.breakPointAdSlotsConfig[slotNames[i]].adUnit).addService(googletag.pubads());if(isInfinite==true){this.gptAdSlots[this.breakPointAdSlotsConfig[slotNames[i]].name].setTargeting("infinite-scroll","yes");}}
googletag.display(this.breakPointAdSlotsConfig[slotNames[i]].divId);}}},getGPTSlots:function(slotNames){var gptSlots=[];for(var i in slotNames){if(optidigitalToolbox.gptAdSlots.hasOwnProperty(slotNames[i]))
gptSlots.push(optidigitalToolbox.gptAdSlots[slotNames[i]]);}
return gptSlots;},getPrebidAdUnitsFromSlotNames:function(slotNames){var prebidAdunits=[];for(var i in slotNames){if(optidigitalToolbox.breakPointAdSlotsConfig.hasOwnProperty(slotNames[i])&&prebidAdunits.indexOf(optidigitalToolbox.breakPointAdSlotsConfig[slotNames[i]].adUnit)==-1)
prebidAdunits.push(optidigitalToolbox.breakPointAdSlotsConfig[slotNames[i]].divId);}
return prebidAdunits;},infiniteScrollRefresh:function(adUnit){if(typeof(adUnit)=="string")
this.initConfig.adUnit=adUnit;this.log("Call infiniteScrollRefresh with adUnit: "+this.initConfig.adUnit);if(this.infiniteScrollWallpaperSlot)
{this.adjustPrebidSizesForInfiniteScroll();this.cleanWallpaper();}
var infiniteScrollDirectAdSlots=[];var infiniteScrollLazyLoadAdSlots=[];this.infiniteScrollId++;for(var i in this.setup.adSlotsConfig.adSlotsDefinitions){if(this.setup.adSlotsConfig.adSlotsDefinitions[i].hasOwnProperty("sizes")&&this.setup.adSlotsConfig.adSlotsDefinitions[i].sizes.hasOwnProperty("breakpoint_"+this.widthBreakpoint)&&this.setup.adSlotsConfig.adSlotsDefinitions[i].hasOwnProperty("infiniteScroll")&&this.setup.adSlotsConfig.adSlotsDefinitions[i].infiniteScroll==1){var infiniteScrollElements=document.getElementsByClassName(this.setup.adSlotsConfig.adSlotsDefinitions[i].name);if(infiniteScrollElements.length>0&&infiniteScrollElements[infiniteScrollElements.length-1].id.length==0){var activeSlot=new Object();activeSlot.name=this.setup.adSlotsConfig.adSlotsDefinitions[i].name+"_"+this.infiniteScrollId;activeSlot.infiniteScrollId=this.infiniteScrollId;activeSlot.adUnit=this.setup.adSlotsConfig.adSlotsDefinitions[i].name;activeSlot.divId=this.divIdPrefix+activeSlot.name;activeSlot.adDeclaration=this.setup.adSlotsConfig.adSlotsDefinitions[i].adDeclaration;activeSlot.loadType=this.setup.adSlotsConfig.adSlotsDefinitions[i].loadType;activeSlot.lazyLoadPx=this.setup.adSlotsConfig.adSlotsDefinitions[i].lazyLoadPx;activeSlot.dfpSizes=this.setup.adSlotsConfig.adSlotsDefinitions[i].sizes["breakpoint_"+this.widthBreakpoint];this.breakPointAdSlotsConfig[activeSlot.name]=activeSlot;infiniteScrollElements[infiniteScrollElements.length-1].id=activeSlot.divId;infiniteScrollElements[infiniteScrollElements.length-1].setAttribute("style","");infiniteScrollElements[infiniteScrollElements.length-1].classList.add("optidigital-ad-center");this.log(this.setup.adSlotsConfig.adSlotsDefinitions[i].name+" INFINITE adslot detected on page => "+activeSlot.name);var loadType=0,lazyLoadPx=0;if(typeof(activeSlot.loadType)=="number")
loadType=activeSlot.loadType;if(typeof(activeSlot.lazyLoadPx)=="number")
lazyLoadPx=activeSlot.lazyLoadPx;if(loadType==0){if(infiniteScrollDirectAdSlots.indexOf(activeSlot.name)==-1)
infiniteScrollDirectAdSlots.push(activeSlot.name);}
else if(loadType==1){var eltPos=document.getElementById(activeSlot.divId).getBoundingClientRect();this.log("Position for "+activeSlot.name+" top:"+eltPos.top+" innerHeight:"+window.innerHeight);if((eltPos.top>=0&&eltPos.top-window.innerHeight<=lazyLoadPx)||(eltPos.top<0&&Math.abs(eltPos.top)<=lazyLoadPx)){if(infiniteScrollDirectAdSlots.indexOf(activeSlot.name)==-1)
infiniteScrollDirectAdSlots.push(activeSlot.name);}
else{if(this.lazyLoadPendingAdSlots.indexOf(activeSlot.name)==-1)
this.lazyLoadPendingAdSlots.push(activeSlot.name);infiniteScrollLazyLoadAdSlots.push(activeSlot.name);}}}}}
if(infiniteScrollDirectAdSlots.length>0||infiniteScrollLazyLoadAdSlots.length>0){this.log("Infinite scroll: New direct load adSlots","log",infiniteScrollDirectAdSlots);this.log("Infinite scroll: New lazy load adSlots","log",infiniteScrollLazyLoadAdSlots);this.log("Infinite scroll: Update valid adslots list:","log",this.breakPointAdSlotsConfig);this.refreshAdSlots(infiniteScrollDirectAdSlots,'infinite');}},refreshAdSlots:function(slotNames,loadType,prebidTimeout){if(typeof(loadType)=="undefined")
loadType="manual";if(typeof(prebidTimeout)=="undefined")
prebidTimeout=null;var adSlotsRequested=[];var adSlotsToRefresh=[];var timeout=this.setup.timeouts.prebidIndirect;if(typeof(slotNames)=="string")
adSlotsRequested=[slotNames];else
adSlotsRequested=slotNames;for(var i in adSlotsRequested){if(this.breakPointAdSlotsConfig.hasOwnProperty(adSlotsRequested[i])){adSlotsToRefresh.push(adSlotsRequested[i]);}}
if(adSlotsToRefresh.length==0)
return "error: no matching slot";if(prebidTimeout!==null)
timeout=prebidTimeout;googletag.cmd.push(function(){optidigitalToolbox.defineSlots(adSlotsToRefresh);});if(this.analytics&&this.setup.analytics.customDimensions.hasOwnProperty('loadType')){prebidGA('set',this.setup.analytics.customDimensions.loadType,loadType);}
if(timeout>0){optidigitalToolbox.fetchAPSBids(adSlotsToRefresh);pbjs.que.push(function(){pbjs.addAdUnits(optidigitalToolbox.getPrebidAdUnits(adSlotsToRefresh));pbjs.requestBids({timeout:timeout,adUnitCodes:optidigitalToolbox.getPrebidAdUnitsFromSlotNames(adSlotsToRefresh),bidsBackHandler:function(bids){optidigitalToolbox.setCustomRenderer(bids);optidigitalToolbox.setPrebidAdManagerTargeting(adSlotsToRefresh,pbjs.getAdserverTargeting());googletag.cmd.push(function(){googletag.pubads().refresh(optidigitalToolbox.getGPTSlots(adSlotsToRefresh));});}});});}
else{googletag.cmd.push(function(){googletag.pubads().refresh(optidigitalToolbox.getGPTSlots(slotsToRefresh));});}
return "ok";},fetchAPSBids:function(slotNames){if(this.enableAmazonAPS&&slotNames.length>0){var apsSlots=[];for(var i in slotNames){if(this.breakPointAdSlotsConfig.hasOwnProperty(slotNames[i])&&this.setup.biddersSetup.amazon.adSlots.hasOwnProperty(this.breakPointAdSlotsConfig[slotNames[i]].adUnit)){var apsSlot={};apsSlot.slotID=this.breakPointAdSlotsConfig[slotNames[i]].divId;apsSlot.slotName=this.initConfig.adUnit+'/'+this.breakPointAdSlotsConfig[slotNames[i]].name;apsSlot.sizes=this.setup.biddersSetup.amazon.adSlots[this.breakPointAdSlotsConfig[slotNames[i]].adUnit];apsSlots.push(apsSlot);}}
if(apsSlots.length>0){apstag.fetchBids({slots:apsSlots,timeout:this.setup.biddersSetup.amazon.timeout},function(bids){optidigitalToolbox.log("Amazon bids received");googletag.cmd.push(function(){apstag.setDisplayBids();});});}}},setCustomRenderer:function(bids){if(typeof(bids)=="undefined"||bids==null||!optidigitalToolbox.setup.hasOwnProperty('customRenderer'))
return;var keys=Object.keys(bids);for(var i in keys){if(typeof(keys[i])!="string")
continue;var adSlot=keys[i];for(var j in bids[adSlot].bids){if(bids[adSlot].bids[j].hasOwnProperty('bidderCode')&&bids[adSlot].bids[j].hasOwnProperty('size')){if(bids[adSlot].bids[j].size=='1800x1000'||(optidigitalToolbox.debugWallpaper&&adSlot==optidigitalToolbox.setup.customRenderer.rubiconSkin.adSlot)){if(optidigitalToolbox.debugWallpaper){optidigitalToolbox.setup.customRenderer.rubiconSkin.debug=true;optidigitalToolbox.log("Walpaper debug Capture bid "+bids[adSlot].bids[j].bidderCode+"_"+bids[adSlot].bids[j].cpm)}
bids[adSlot].bids[j].renderer={url:optidigitalToolbox.setup.customRenderer.rubiconSkin.url,render:function(prebidBid){optidigitalToolbox.log("Render ad with **rubiconSkin** custom renderer");if(typeof(optidigitalToolbox.setup.customRenderer.siteCallback)=="function")
optidigitalToolbox.setup.customRenderer.siteCallback();skinOverlay.renderAd({fullBids:prebidBid,insertionMarker:optidigitalToolbox.setup.customRenderer.rubiconSkin.insertionMarker,contentWidthMarker:optidigitalToolbox.setup.customRenderer.rubiconSkin.contentWidthMarker,insertionType:optidigitalToolbox.setup.customRenderer.rubiconSkin.insertionType,header_height:optidigitalToolbox.setup.customRenderer.rubiconSkin.header_height,creativeWidth:optidigitalToolbox.setup.customRenderer.rubiconSkin.creativeWidth,targetScroll:optidigitalToolbox.setup.customRenderer.rubiconSkin.targetScroll,custom_style_iframe:optidigitalToolbox.setup.customRenderer.rubiconSkin.custom_style_iframe,custom_style_page:optidigitalToolbox.setup.customRenderer.rubiconSkin.custom_style_page,iframe_url:optidigitalToolbox.setup.customRenderer.rubiconSkin.iframe_url,debug:optidigitalToolbox.setup.customRenderer.rubiconSkin.debug,divSlotSkin:optidigitalToolbox.setup.customRenderer.rubiconSkin.divSlotSkin,maxRatio:optidigitalToolbox.setup.customRenderer.rubiconSkin.maxRatio,});}};}}}}},cleanWallpaper:function(){this.log("Wallpaper cleanup");var elt=document.getElementById("rp-skin-container-sandbox");if(elt!=null)
elt.style.display="none";elt=document.getElementById("rubiconExpander");if(elt!=null)
elt.style.display="none";},eventSlotRendered:function(event){var divId=event.slot.getSlotElementId();if(event.isEmpty){optidigitalToolbox.log("adSlot "+divId+" rendered (time: "+optidigitalToolbox.getElapsedTime()+" ms):. It is empty");if(optidigitalToolbox.loadChildrenIfEmpty.hasOwnProperty(divId)){optidigitalToolbox.refreshAdSlots(optidigitalToolbox.loadChildrenIfEmpty[divId],'parent');}}
else{var sizeString="null";if(event.size!=null)
sizeString=event.size[0]+"x"+event.size[1];optidigitalToolbox.log("adSlot "+divId+" rendered size "+sizeString+" (time: "+optidigitalToolbox.getElapsedTime()+" ms):. It is filled");if(optidigitalToolbox.loadChildrenIfFilled.hasOwnProperty(divId)){optidigitalToolbox.refreshAdSlots(optidigitalToolbox.loadChildrenIfFilled[divId],'parent');}
if(divId==optidigitalToolbox.stickyAdDivId){document.getElementById("opd_bottomstickyad").classList.add("opd_adsticky-scroll");}}
if(optidigitalToolbox.firstSlotRendered){optidigitalToolbox.reportTimePerformance("firstSlotRendered");optidigitalToolbox.firstSlotRendered=false;}},initPageTargeting:function(){if(this.initConfig.hasOwnProperty("pageTargeting")&&typeof(this.initConfig.pageTargeting)=="object"&&this.initConfig.pageTargeting!=null){var keys=Object.keys(this.initConfig.pageTargeting);for(var i in keys){if(typeof(keys[i])!="string")
continue;var value=optidigitalToolbox.initConfig.pageTargeting[keys[i]];if(typeof(value)=="number")
value=value.toString();googletag.cmd.push(function(){googletag.pubads().setTargeting(keys[i],value);});}}
if(this.articleID!=false){this.log("SET ARTICLE ID targeting")
googletag.cmd.push(function(){googletag.pubads().setTargeting("article_id",optidigitalToolbox.articleID.toString());});}},setPageTargeting:function(key,value){this.log("CALL setPageTargeting key="+key+" value=",value);googletag.cmd.push(function(){googletag.pubads().setTargeting(key,value);});},buildFirstLoadAdSlots:function(){for(var i in this.breakPointAdSlotsConfig){if(!this.breakPointAdSlotsConfig[i].hasOwnProperty("dfpSizes"))
continue;var loadType=0,lazyLoadPx=0;if(this.breakPointAdSlotsConfig[i].hasOwnProperty("loadType"))
loadType=this.breakPointAdSlotsConfig[i].loadType;if(this.breakPointAdSlotsConfig[i].hasOwnProperty("lazyLoadPx"))
lazyLoadPx=this.breakPointAdSlotsConfig[i].lazyLoadPx;if(loadType==0){if(this.firstLoadAdSlots.indexOf(this.breakPointAdSlotsConfig[i].name)==-1)
this.firstLoadAdSlots.push(this.breakPointAdSlotsConfig[i].name);}
else if(loadType==1){var eltPos=document.getElementById(this.breakPointAdSlotsConfig[i].divId).getBoundingClientRect();this.log("Position for "+this.breakPointAdSlotsConfig[i].name+" top:"+eltPos.top+" innerHeight:"+window.innerHeight);if((eltPos.top>=0&&eltPos.top-window.innerHeight<=lazyLoadPx)||(eltPos.top<0&&Math.abs(eltPos.top)<=lazyLoadPx)){if(this.firstLoadAdSlots.indexOf(this.breakPointAdSlotsConfig[i].name)==-1)
this.firstLoadAdSlots.push(this.breakPointAdSlotsConfig[i].name);}
else{if(this.lazyLoadPendingAdSlots.indexOf(this.breakPointAdSlotsConfig[i].name)==-1)
this.lazyLoadPendingAdSlots.push(this.breakPointAdSlotsConfig[i].name);}}}},monitorLazyLoadAdSlots:function(){var intervalTimeout=200;if(optidigitalToolbox.setup.timeouts.hasOwnProperty("lazyLoadInterval"))
intervalTimeout=optidigitalToolbox.setup.timeouts.lazyLoadInterval;optidigitalToolbox.lazyLoadIntervalId=setInterval(function(){var lazyLoadAdSlotsToRefresh=[];var lazyLoadPendingAdSlots=[];for(var i in optidigitalToolbox.lazyLoadPendingAdSlots){if(typeof(optidigitalToolbox.lazyLoadPendingAdSlots[i])!="string")
continue;var lazyLoadPx=0;if(optidigitalToolbox.breakPointAdSlotsConfig[optidigitalToolbox.lazyLoadPendingAdSlots[i]].hasOwnProperty("lazyLoadPx"))
lazyLoadPx=optidigitalToolbox.breakPointAdSlotsConfig[optidigitalToolbox.lazyLoadPendingAdSlots[i]].lazyLoadPx;var element=null;element=document.getElementById(optidigitalToolbox.breakPointAdSlotsConfig[optidigitalToolbox.lazyLoadPendingAdSlots[i]].divId);if(element!==null){var eltPos=element.getBoundingClientRect();if((eltPos.top>=0&&eltPos.top-window.innerHeight<=lazyLoadPx)||(eltPos.top<0&&Math.abs(eltPos.top)<=lazyLoadPx)){lazyLoadAdSlotsToRefresh.push(optidigitalToolbox.lazyLoadPendingAdSlots[i]);}
else{lazyLoadPendingAdSlots.push(optidigitalToolbox.lazyLoadPendingAdSlots[i]);}}
else{lazyLoadPendingAdSlots.push(optidigitalToolbox.lazyLoadPendingAdSlots[i]);}}
optidigitalToolbox.lazyLoadPendingAdSlots=lazyLoadPendingAdSlots;if(lazyLoadAdSlotsToRefresh.length>0){optidigitalToolbox.refreshAdSlots(lazyLoadAdSlotsToRefresh,'lazy');}},intervalTimeout);},buildBreakPointAdSlotsConfig:function(){if(this.widthBreakpoint==-1){this.browserWidth=Math.max(document.documentElement.clientWidth,window.innerWidth||0);this.setup.adSlotsConfig.widthBreakpoints.sort(function(a,b){return b-a;});for(var i in this.setup.adSlotsConfig.widthBreakpoints){if(this.browserWidth>=this.setup.adSlotsConfig.widthBreakpoints[i]){this.widthBreakpoint=this.setup.adSlotsConfig.widthBreakpoints[i];break;}}
this.log("browser width: "+this.browserWidth+" active widthBreakpoint: breakpoint_"+this.widthBreakpoint);}
for(var i in this.setup.adSlotsConfig.adSlotsDefinitions){if(this.setup.adSlotsConfig.adSlotsDefinitions[i].hasOwnProperty("sizes")&&this.setup.adSlotsConfig.adSlotsDefinitions[i].sizes.hasOwnProperty("breakpoint_"+this.widthBreakpoint)){var elt=document.getElementById(this.divIdPrefix+this.setup.adSlotsConfig.adSlotsDefinitions[i].name);var activeSlot=new Object();activeSlot.name=this.setup.adSlotsConfig.adSlotsDefinitions[i].name;activeSlot.adUnit=this.setup.adSlotsConfig.adSlotsDefinitions[i].name;activeSlot.divId=this.divIdPrefix+activeSlot.name;activeSlot.adDeclaration=this.setup.adSlotsConfig.adSlotsDefinitions[i].adDeclaration;activeSlot.loadType=this.setup.adSlotsConfig.adSlotsDefinitions[i].loadType;activeSlot.lazyLoadPx=this.setup.adSlotsConfig.adSlotsDefinitions[i].lazyLoadPx;activeSlot.dfpSizes=this.setup.adSlotsConfig.adSlotsDefinitions[i].sizes["breakpoint_"+this.widthBreakpoint];if(elt!==null){activeSlot.loadParent=this.setup.adSlotsConfig.adSlotsDefinitions[i].loadParent;this.breakPointAdSlotsConfig[activeSlot.name]=activeSlot;this.log(this.setup.adSlotsConfig.adSlotsDefinitions[i].name+" STANDARD adslot detected on page");if(activeSlot.name!=="OutOfPage"&&activeSlot.name!=="OutOfPage_1"){elt.setAttribute("style","");elt.classList.add("optidigital-ad-center");if(this.setup.biddersSetup.hasOwnProperty("teads")&&this.setup.biddersSetup.teads.hasOwnProperty("adSlots")&&this.setup.biddersSetup.teads.adSlots.hasOwnProperty(activeSlot.name)){this.log("ADD TEADS RENDERING DIV => "+activeSlot.name);var divTeads=document.createElement("div");divTeads.setAttribute("id",activeSlot.name);var result=elt.parentElement.insertBefore(divTeads,elt);}}
var parentDivId=this.divIdPrefix+activeSlot.loadParent;if(activeSlot.loadType==3){if(this.loadChildrenIfEmpty.hasOwnProperty(parentDivId))
this.loadChildrenIfEmpty[parentDivId].push(activeSlot.name);else
this.loadChildrenIfEmpty[parentDivId]=[activeSlot.name];}
if(activeSlot.loadType==4){if(this.loadChildrenIfFilled.hasOwnProperty(parentDivId))
this.loadChildrenIfFilled[parentDivId].push(activeSlot.name);else
this.loadChildrenIfFilled[parentDivId]=[activeSlot.name];}}
else{if(this.setup.adSlotsConfig.adSlotsDefinitions[i].hasOwnProperty("infiniteScroll")&&this.setup.adSlotsConfig.adSlotsDefinitions[i].infiniteScroll==1){var infiniteScrollElements=document.getElementsByClassName(this.setup.adSlotsConfig.adSlotsDefinitions[i].name);if(typeof(infiniteScrollElements[0])!=="undefined"){activeSlot.name=this.setup.adSlotsConfig.adSlotsDefinitions[i].name+"_"+this.infiniteScrollId;activeSlot.divId=this.divIdPrefix+activeSlot.name;activeSlot.infiniteScrollId=this.infiniteScrollId;this.breakPointAdSlotsConfig[activeSlot.name]=activeSlot;infiniteScrollElements[0].id=activeSlot.divId;infiniteScrollElements[0].setAttribute("style","");infiniteScrollElements[0].classList.add("optidigital-ad-center");this.log(this.setup.adSlotsConfig.adSlotsDefinitions[i].name+" INFINITE adslot detected on page => "+activeSlot.name);}}
else
if(activeSlot.loadType==5){this.breakPointAdSlotsConfig[activeSlot.name]=activeSlot;this.createStickyAd(activeSlot.name);}
else
this.log(this.setup.adSlotsConfig.adSlotsDefinitions[i].name+" adslot not found on page");}}}
this.log("Valid adslots detected:","log",this.breakPointAdSlotsConfig);},setTargeting:function(slot,targeting){if(targeting.length>0)
for(var i in t)
targeting.hasOwnProperty(i)&&slot.setTargeting(targeting[i].name,targeting[i].value);},setPrebidAdManagerTargeting:function(slotNames,prebidAdServerTargeting){for(var i in slotNames){if(typeof(slotNames[i])!="string")
continue;var adUnit=optidigitalToolbox.breakPointAdSlotsConfig[slotNames[i]].divId;if(prebidAdServerTargeting.hasOwnProperty(adUnit)&&prebidAdServerTargeting[adUnit].hasOwnProperty("hb_pb")&&prebidAdServerTargeting[adUnit].hasOwnProperty("hb_bidder")){optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_pb",prebidAdServerTargeting[adUnit].hb_pb);optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_bidder",prebidAdServerTargeting[adUnit].hb_bidder);optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_adid",prebidAdServerTargeting[adUnit].hb_adid);optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_size",prebidAdServerTargeting[adUnit].hb_size);optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_source","client");if(prebidAdServerTargeting[adUnit].hb_size=="1800x1000")
optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_format","wallpaper");else
optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_format",prebidAdServerTargeting[adUnit].hb_format);if(optidigitalToolbox.prebidSafeframe==true&&optidigitalToolbox.setup.prebidSafeframe.bidders.indexOf(prebidAdServerTargeting[adUnit].hb_bidder)!=-1&&prebidAdServerTargeting[adUnit].hb_size!="1800x1000"){optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_safeframe","1");}
else{optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting("hb_safeframe","0");}
var keys=Object.keys(prebidAdServerTargeting[adUnit]);for(var j in keys){if(typeof(keys[j])=="string"&&keys[j].indexOf("hb_deal_")!=-1){optidigitalToolbox.gptAdSlots[slotNames[i]].setTargeting(keys[j],prebidAdServerTargeting[adUnit][keys[j]]);}}}}},buildBidAjustment:function(discount){var bidCpmAdjustment;bidCpmAdjustment=function(bidCpm){return bidCpm*discount;}
var containerObject=new Object();containerObject["bidCpmAdjustment"]=bidCpmAdjustment;return containerObject;},getPrebidBidddersSettings:function(){var settings={};settings["standard"]=this.buildBidAjustment(optidigitalToolbox.setup.defaultDiscount*optidigitalToolbox.debugBidderDiscount);var keys=Object.keys(this.setup.biddersSetup);for(var i in keys){if(typeof(keys[i])=="string"&&this.setup.biddersSetup[keys[i]].hasOwnProperty("discount")){settings[keys[i]]=this.buildBidAjustment(optidigitalToolbox.setup.biddersSetup[keys[i]].discount*optidigitalToolbox.debugBidderDiscount);}}
return settings;},createPrebidBidderAlias:function()
{if(this.setup.hasOwnProperty("aliasBidders")){var keys=Object.keys(this.setup.aliasBidders);for(var i in keys){if(typeof(keys[i])!="string")
continue;for(var j in this.setup.aliasBidders[keys[i]]){if(typeof(this.setup.aliasBidders[keys[i]][j])=="string"){pbjs.aliasBidder(keys[i],this.setup.aliasBidders[keys[i]][j]);this.log("Bidder alias created : "+keys[i]+" => "+this.setup.aliasBidders[keys[i]][j]);}}}}},getPrebidConfig:function(){var config={priceGranularity:optidigitalToolbox.setup.prebidPriceGranularity,enableSendAllBids:false,currency:{adServerCurrency:optidigitalToolbox.setup.adServerCurrency,defaultRates:{"USD":{"EUR":0.87}},conversionRateFile:"https://currency.prebid.org/latest.json"},rubicon:{singleRequest:true}};if(this.setup.hasOwnProperty("prebidConsentManagement"))
config.consentManagement=this.setup.prebidConsentManagement;return config;},getPrebidAdUnitsSizes:function(dfpSizes){return dfpSizes.filter(function(e){var ret=false;if(typeof(e)!="undefined"&&e.length==2){for(var i in optidigitalToolbox.prebidSizes){if(optidigitalToolbox.prebidSizes[i][0]==e[0]&&optidigitalToolbox.prebidSizes[i][1]==e[1])
ret=true;}}
return ret;});},getInfiniteScrollDPFSizes:function(dfpSizes){return dfpSizes.filter(function(e){var ret=false;if(typeof(e)!="undefined"&&e[0]!=1800)
ret=true;return ret;});},adjustPrebidSizesForInfiniteScroll:function(){if(this.prebidSizesAdjusted==true)
return true;this.prebidSizesAdjusted=true;this.log("Adjust sizes for Prebid infiniteScroll (remove 1800x1000)")
for(var i in pbjs.adUnits){if(pbjs.adUnits[i].hasOwnProperty("mediaTypes")&&pbjs.adUnits[i].mediaTypes.hasOwnProperty("banner")&&pbjs.adUnits[i].mediaTypes.banner.hasOwnProperty("sizes")){for(var j in pbjs.adUnits[i].mediaTypes.banner.sizes){if(pbjs.adUnits[i].mediaTypes.banner.sizes[j][0]==1800&&pbjs.adUnits[i].mediaTypes.banner.sizes[j][1]==1000){pbjs.adUnits[i].mediaTypes.banner.sizes[j][0]=1;pbjs.adUnits[i].mediaTypes.banner.sizes[j][1]=1;}}}
if(pbjs.adUnits[i].hasOwnProperty("sizes")){for(var j in pbjs.adUnits[i].sizes){if(pbjs.adUnits[i].sizes[j][0]==1800&&pbjs.adUnits[i].sizes[j][1]==1000){pbjs.adUnits[i].sizes[j][0]=1;pbjs.adUnits[i].sizes[j][1]=1;}}}}
return true;},getPrebidAdUnits:function(slotNames){var adUnits=[];for(var i in slotNames){if(typeof(slotNames[i])!="string")
continue;if(this.prebidAdUnits.indexOf(slotNames[i])!=-1)
continue;this.prebidAdUnits.push(slotNames[i]);if(this.breakPointAdSlotsConfig.hasOwnProperty(slotNames[i])!=-1&&this.breakPointAdSlotsConfig[slotNames[i]].hasOwnProperty("divId")&&this.breakPointAdSlotsConfig[slotNames[i]].hasOwnProperty("dfpSizes")){var adUnit={code:this.breakPointAdSlotsConfig[slotNames[i]].divId,mediaTypes:{banner:{sizes:this.getPrebidAdUnitsSizes(this.breakPointAdSlotsConfig[slotNames[i]].dfpSizes),}}}
var bids=[];for(var j in this.setup.bidders){if(typeof(this.setup.bidders[j])!="string"||this.setup.bidders[j]=="amazon")
continue;var bidderAdUnit=-1;if(this.setup.biddersSetup.hasOwnProperty(this.setup.bidders[j]))
{if(this.setup.biddersSetup[this.setup.bidders[j]].hasOwnProperty("adSlotsByAdUnits")&&this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits.length>0){for(var k in this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits){if(typeof(this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits)!="object")
continue;if(this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits[k].hasOwnProperty("adSlot")&&this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits[k].hasOwnProperty("adUnits")&&this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits[k].hasOwnProperty("params")&&this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits[k].adSlot==this.breakPointAdSlotsConfig[slotNames[i]].adUnit&&this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits[k].adUnits.indexOf(this.initConfig.adUnit)!=-1){bidderAdUnit={bidder:this.setup.bidders[j]};bidderAdUnit.params=this.setup.biddersSetup[this.setup.bidders[j]].adSlotsByAdUnits[k].params;break;}}}
if(bidderAdUnit==-1&&this.setup.biddersSetup[this.setup.bidders[j]].hasOwnProperty("adSlots")&&this.setup.biddersSetup[this.setup.bidders[j]].adSlots.hasOwnProperty(this.breakPointAdSlotsConfig[slotNames[i]].adUnit))
{bidderAdUnit={bidder:this.setup.bidders[j]};bidderAdUnit.params=this.setup.biddersSetup[this.setup.bidders[j]].adSlots[this.breakPointAdSlotsConfig[slotNames[i]].adUnit];}
if(bidderAdUnit!=-1){if(this.setup.bidders[j]=="asqIx"||this.setup.bidders[j]=="ix"){var indexAdUnit=-1;if(bidderAdUnit.params.hasOwnProperty("sizes")&&bidderAdUnit.params.hasOwnProperty("siteId")&&bidderAdUnit.params.sizes.length>0){for(var l in bidderAdUnit.params.sizes){indexAdUnit={bidder:bidderAdUnit.bidder};indexAdUnit.params={siteId:bidderAdUnit.params.siteId};indexAdUnit.params.size=bidderAdUnit.params.sizes[l];bids.push(indexAdUnit);}}}
else{bids.push(bidderAdUnit);}}}}
if(bids.length>0){adUnit.bids=bids;adUnits.push(adUnit);}}}
return adUnits;},start:function(){this.reportTimePerformance("start");optidigitalToolbox.log('Start loading ads (time: '+optidigitalToolbox.getElapsedTime()+' ms): document status '+document.readyState);optidigitalToolbox.getCMPConsent();optidigitalToolbox.createAdStyles();optidigitalToolbox.buildBreakPointAdSlotsConfig();optidigitalToolbox.loadCustomRendererScripts();optidigitalToolbox.buildFirstLoadAdSlots();optidigitalToolbox.monitorLazyLoadAdSlots();optidigitalToolbox.createPrebidBidderAlias();pbjs.bidderSettings=optidigitalToolbox.getPrebidBidddersSettings();googletag.cmd.push(function(){optidigitalToolbox.initPageTargeting();optidigitalToolbox.defineSlots(optidigitalToolbox.firstLoadAdSlots);googletag.pubads().enableSingleRequest();googletag.pubads().addEventListener('slotRenderEnded',optidigitalToolbox.eventSlotRendered);googletag.enableServices();});pbjs.que.push(function(){pbjs.setConfig(optidigitalToolbox.getPrebidConfig());pbjs.addAdUnits(optidigitalToolbox.getPrebidAdUnits(optidigitalToolbox.firstLoadAdSlots));if(optidigitalToolbox.analytics){pbjs.enableAnalytics([{provider:'ga',options:{global:'prebidGA',enableDistribution:false}}]);}
if(optidigitalToolbox.firstLoadAdSlots.length>0){pbjs.requestBids({timeout:optidigitalToolbox.setup.timeouts.prebidDirect,adUnitCodes:optidigitalToolbox.getPrebidAdUnitsFromSlotNames(optidigitalToolbox.firstLoadAdSlots),bidsBackHandler:function(bids){initAdserver(bids,"pbjs")}});}});optidigitalToolbox.fetchAPSBids(optidigitalToolbox.firstLoadAdSlots);if(optidigitalToolbox.firstLoadAdSlots.length>0){setTimeout(function(){initAdserver(null,"failsafe");},optidigitalToolbox.setup.timeouts.failsafe);}
optidigitalToolbox.processCommandQueue();},processCommandQueue:function(){if(typeof(optidigitalQueue)=="object"&&typeof(optidigitalQueue.cmd)=="object"){optidigitalQueue.cmd.push=function(e){if("function"==typeof e){try{e.call();}
catch(e){optidigitalToolbox.log("Error processing command : "+e.message);}}};while(optidigitalQueue.cmd.length>0){try{optidigitalQueue.cmd.shift().call();}
catch(e){optidigitalToolbox.log("Error processing command : "+e.message)}}}},setGooglePersonalizedAds:function(){if(this.gConsent=="purpose"){if(this.consentStatus=="no"){googletag.cmd.push(function(){googletag.pubads().setRequestNonPersonalizedAds(1);});this.log("DISABLE Google personalized Ads");}
else{googletag.cmd.push(function(){googletag.pubads().setRequestNonPersonalizedAds(0);});this.log("ENABLE Google personalized Ads");}}},getCMPConsent:function(){if(typeof(window.__cmp)=="function"){window.__cmp('getVendorConsents',null,function(result){optidigitalToolbox.consentStatus="ready";optidigitalToolbox.consentVendorConsents=result;});}else{optidigitalToolbox.consentStatus="nocmp";}},getElapsedTime:function(){var currentTime=new Date();return currentTime.getTime()-this.startTime.getTime();},reportTimePerformance:function(stepName){if(this.optiAnalytics&&this.enableTimePerformance){var timeLevel="higher";var currentTime=new Date();var timeDiff=currentTime.getTime()-this.lastStepTime.getTime();if(stepName=="firstSlotRendered")
timeDiff=currentTime.getTime()-this.startTime.getTime();this.lastStepTime=currentTime;for(var i in this.timeRanges){if(timeDiff<=this.timeRanges[i]){timeLevel=this.timeRanges[i].toString();break;}}
prebidGA('send','event','timePerformance',stepName,timeLevel,0,{'nonInteraction':1});this.log("reportTimePerformance "+stepName+" => time:"+timeDiff+" level:"+timeLevel);}},createStickyAd:function(adSlotName){if(this.stickyAdDivId==false){if(this.setup.hasOwnProperty("stickyAdConfiguration")&&(this.setup.stickyAdConfiguration.hasOwnProperty("adUnitsExcluded")==false||this.setup.stickyAdConfiguration.adUnitsExcluded.indexOf(this.initConfig.adUnit)==-1)){this.log("createStickyAd "+adSlotName);this.stickyAdDivId=this.divIdPrefix+adSlotName;var zIndex="10";var adCloseTop="-24";if(this.setup.stickyAdConfiguration.hasOwnProperty("zIndex"))
zIndex=this.setup.stickyAdConfiguration.zIndex;if(this.setup.stickyAdConfiguration.hasOwnProperty("adCloseTop"))
adCloseTop=this.setup.stickyAdConfiguration.adCloseTop;var sheet=document.createElement("style");sheet.innerHTML=".opd_adsticky{display:none;position:fixed;margin-bottom:0;bottom:0;left:0;width:100%;height:auto;padding:5px 0 4px;text-align:center;background-color:#fff;border-top:1px solid #999;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);}.opd_adsticky-scroll:not(.opd_adsticky-close){display:block}.opd_adclosebox{position:absolute;top:-25px;right:0;width:24px;height:24px;padding:0px 0 0 0px;background-color:#fff;border-left:1px solid #999;border-top:1px solid #999;border-radius:12px 0 0 0;font-size:1.4em;color:#444;box-shadow:0 -1px 1px 0 rgba(0,0,0,0.2);}.opd_adclose{position:absolute;left:4px;top:4px;width:16px;height:16px;opacity:1;}.opd_adclose:before, .opd_adclose:after{position:absolute;content:' ';height:16px;width:2px;background-color:#333;}.opd_adclose:before{transform:rotate(45deg);}.opd_adclose:after{transform:rotate(-45deg);}";document.body.appendChild(sheet);var divStickyAd=document.createElement("div");divStickyAd.setAttribute("id","opd_bottomstickyad");divStickyAd.setAttribute("class","opd_adsticky");divStickyAd.setAttribute("style","z-index:"+zIndex+";");var spanClose=document.createElement("span");spanClose.setAttribute("class","opd_adclose");var adClose=document.createElement("a");adClose.setAttribute("href","#");adClose.setAttribute("class","opd_adclosebox");adClose.setAttribute("style","top:"+adCloseTop+"px;");adClose.onclick=function(e){e.preventDefault();document.getElementById("opd_bottomstickyad").classList.add("opd_adsticky-close");};var adSlot=document.createElement("div");adSlot.setAttribute("id",this.stickyAdDivId);adSlot.setAttribute("style","display: none;");adSlot.setAttribute("class",adSlotName);adSlot.classList.add("optidigital-ad-center");adClose.appendChild(spanClose);divStickyAd.appendChild(adClose);divStickyAd.appendChild(adSlot);document.getElementsByTagName("body")[0].appendChild(divStickyAd);document.addEventListener("scroll",opdStickyScroll);function opdStickyScroll(){if(document.body.scrollTop>50||document.documentElement.scrollTop>50){optidigitalToolbox.refreshAdSlots(adSlotName);if(document.removeEventListener){document.removeEventListener("scroll",opdStickyScroll);}else if(document.detachEvent){document.detachEvent("scroll",opdStickyScroll);}}}}}},cyrb53:function(str,seed){if(!Math.imul)Math.imul=function(a,b){var aHi=(a>>>16)&0xffff;var aLo=a&0xffff;var bHi=(b>>>16)&0xffff;var bLo=b&0xffff;return((aLo*bLo)+(((aHi*bLo+aLo*bHi)<<16)>>>0)|0);};var h1=0xdeadbeef^seed;var h2=0x41c6ce57^seed;var i;for(i=0,ch;i<str.length;i++){var ch=str.charCodeAt(i);h1=Math.imul(h1^ch,2654435761);h2=Math.imul(h2^ch,1597334677);}
h1=Math.imul(h1^h1>>>16,2246822507)^Math.imul(h2^h2>>>13,3266489909);h2=Math.imul(h2^h2>>>16,2246822507)^Math.imul(h1^h1>>>13,3266489909);return 4294967296*(2097151&h2)+(h1>>>0);}};optidigitalToolbox.loadConfig(optidigitalSetup);optidigitalToolbox.loadGPT();optidigitalToolbox.loadAPS();if(optidigitalToolbox.analytics||optidigitalToolbox.optiAnalytics){optidigitalToolbox.loadAnalytics();}
var pbjs=pbjs||{};pbjs.que=pbjs.que||[];var googletag=googletag||{};googletag.cmd=googletag.cmd||[];googletag.cmd.push(function(){googletag.pubads().disableInitialLoad();});pbjs.onEvent("auctionInit",function(){if(typeof(optidigitalToolbox.consentVendorConsents)=="object"){if(optidigitalToolbox.consentVendorConsents.hasOwnProperty("gdprApplies")&&optidigitalToolbox.consentVendorConsents.hasOwnProperty("metadata")&&optidigitalToolbox.consentVendorConsents.metadata.length>0){if(optidigitalToolbox.consentVendorConsents.gdprApplies==true){if(optidigitalToolbox.consentVendorConsents.hasOwnProperty("purposeConsents")&&optidigitalToolbox.consentVendorConsents.purposeConsents.hasOwnProperty(optidigitalToolbox.consentPurposeId)){if(optidigitalToolbox.consentVendorConsents.purposeConsents[optidigitalToolbox.consentPurposeId]==true)
optidigitalToolbox.consentStatus="yes";else
optidigitalToolbox.consentStatus="no";}else{optidigitalToolbox.consentStatus="invalid";}}else{optidigitalToolbox.consentStatus="oos";}}else{if(optidigitalToolbox.consentVendorConsents.hasOwnProperty("metadata")&&optidigitalToolbox.consentVendorConsents.metadata.length==0){optidigitalToolbox.consentStatus="invalid_metadata_empty";}
else{optidigitalToolbox.consentStatus="invalid";}}}
if(optidigitalToolbox.firstAuction){optidigitalToolbox.reportTimePerformance("auctionInit");optidigitalToolbox.firstAuction=false;}
optidigitalToolbox.log("Prebid auctionInit (time: "+optidigitalToolbox.getElapsedTime()+" ms): consentStatus => "+optidigitalToolbox.consentStatus);optidigitalToolbox.setGooglePersonalizedAds();});pbjs.onEvent("bidWon",function(data){optidigitalToolbox.log('Prebid '+data.bidderCode+' won the ad server auction for ad unit '+data.adUnitCode+' at '+data.cpm+' CPM');});if(optidigitalToolbox.autoStart==true){if(document.readyState!=="loading"){optidigitalToolbox.start();}else{document.addEventListener("DOMContentLoaded",function(event){optidigitalToolbox.start();});}}
else{optidigitalToolbox.processCommandQueue();}
function initAdserver(bids,source){if(pbjs.initAdserverSet)return;pbjs.initAdserverSet=true;optidigitalToolbox.reportTimePerformance("initAdserver");optidigitalToolbox.log("initAdserver (time: "+optidigitalToolbox.getElapsedTime()+" ms):from "+source+" CMP consent status: "+optidigitalToolbox.consentStatus);if(optidigitalToolbox.optiAnalytics){prebidGA('send','event','initAdserver',source,optidigitalToolbox.consentStatus,0,{'nonInteraction':1});}
optidigitalToolbox.setCustomRenderer(bids);googletag.cmd.push(function(){pbjs.que.push(function(){optidigitalToolbox.setPrebidAdManagerTargeting(optidigitalToolbox.firstLoadAdSlots,pbjs.getAdserverTargeting());if(googletag.pubadsReady===undefined){setTimeout(function(){googletag.cmd.push(function(){if(optidigitalToolbox.firstLoadAdSlots.length>0)
googletag.pubads().refresh(optidigitalToolbox.getGPTSlots(optidigitalToolbox.firstLoadAdSlots));})},10);}
else{if(optidigitalToolbox.firstLoadAdSlots.length>0)
googletag.pubads().refresh(optidigitalToolbox.getGPTSlots(optidigitalToolbox.firstLoadAdSlots));}});});}
optidigitalToolbox.log('Script end: document status '+document.readyState);