Type keyword(s) to search

There’s No Joy in Our World When My Daughter’s Cat Visits - Slate

Posted on 03 February, 2019 by Stephen R. Greenwood
81 out of 100 based on 711 user ratings

':""},t.getDefinedParams=function(e,t){return t.filter(function(t){return e[t]}).reduce(function(t,n){return l(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e[n]))},{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];return!!Object.keys(e).every(function(e){return(0,b.default)(t,e)})&&(!e.video||!e.video.context||(0,b.default)(["instream","outstream"],e.video.context))},t.getBidderRequest=function(e,t,n){return(0,v.default)(e,function(e){return e.bids.filter(function(e){return e.bidder===t&&e.adUnitCode===n}).length>0})||{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(s,[]).filter(function(e){return e.bidder===n}).map(function(e){return e.params||{}})},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},t.getDNT=function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return B(e,t)}},t.isSlotMatchingAdUnitCode=function(e){return function(t){return B(t,e)}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n "+e.code+" is a "+n+" ad unit\n containing bidders that don't support "+n+": "+t+".\n This bidder won't fetch demand.\n "},t.deletePropertyFromObject=function(e,t){var n=l({},e);return delete n[t],n},t.removeRequestId=function(e){return t.deletePropertyFromObject(e,"requestId")},t.isInteger=function(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")},t.transformBidderParamKeywords=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",r=[];return t._each(e,function(e,i){if(t.isArray(e)){var o=[];t._each(e,function(e){(e=t.getValueString(n+"."+i,e))&&o.push(e)}),e=o}else{if(e=t.getValueString(n+"."+i,e),!t.isStr(e))return;e=[e]}r.push({key:i,value:e})}),r},t.convertTypes=function(e,n){return Object.keys(e).forEach(function(r){var i,o;n[r]&&(t.isFn(e[r])?n[r]=e[r](n[r]):n[r]=(i=e[r],o=n[r],"string"===i?o&&o.toString():"number"===i?Number(o):o), isNaN(n[r])&&delete n.key)}),n};var g=n(3),h=r(n(63)),v=r(n(10)),b=r(n(5)),y=n(11),m=n(4),_=!1,A=Object.prototype.toString,E=Boolean(window.console),w=Boolean(E&&window.console.log),S=Boolean(E&&window.console.info),I=Boolean(E&&window.console.warn),T=Boolean(E&&window.console.error);t.replaceTokenInString=function(e,n,r){return t._each(n,function(t,n){t=void 0===t?"":t;var i=r+n.toUpperCase()+r,o=new RegExp(i,"g");e=e.replace(o,t)}),e};var x,j=(x=0,function(){return++x});t.getUniqueIdentifierStr=i,t.generateUUID=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){return t&&t[e]?t[e]:""},t.tryAppendQueryString=function(e,t,n){return n?e+(t+"=")+encodeURIComponent(n)+"&":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(e){return e&&Object.getOwnPropertyNames(e).length>0?c(e).map(function(t){return t+"="+encodeURIComponent(d(e,t))}).join("&"):""},t.getTopWindowLocation=function(){if(t.inIframe()){var e=void 0;try{e=t.getAncestorOrigins()||t.getTopFrameReferrer()}catch(e){logInfo("could not obtain top window location",e)}if(e)return(0,y.parse)(e,{decodeSearchAsString:!0})}return t.getWindowLocation()},t.getTopFrameReferrer=function(){try{window.top.location.toString();for(var e="",t=void 0;(t=t?t.parent:window).document&&t.document.referrer&&(e=t.document.referrer),t!==window.top;);return e}catch(e){return window.document.referrer}},t.getAncestorOrigins=function(){if(window.document.location&&window.document.location.ancestorOrigins&&window.document.location.ancestorOrigins.length>=1)return window.document.location.ancestorOrigins[window.document.location.ancestorOrigins.length-1]},t.getWindowTop=function(){return window.top},t.getWindowSelf=function(){return window.self},t.getWindowLocation=function(){return window.location},t.getTopWindowUrl=function(){var e=void 0;try{e=t.getTopWindowLocation().href}catch(t){e=""}return e},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logMessage=function(){C()&&w&&console.log.apply(console,a(arguments,"MESSAGE:"))},t.logInfo=function(){C()&&S&&console.info.apply(console,a(arguments,"INFO:"))},t.logWarn=function(){C()&&I&&console.warn.apply(console,a(arguments,"WARNING:"))},t.logError=function(){C()&&T&&console.error.apply(console,a(arguments,"ERROR:"))},t.hasConsoleLogger=function(){return w};var C=function(){if(!1===g.config.getConfig("debug")&&!1===_){var e="TRUE"===O(m.DEBUG_MODE).toUpperCase();g.config.setConfig({debug:e}),_=!0}return!!g.config.getConfig("debug")};t.debugTurnedOn=C,t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=i(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e};var O=function(e){var t=new RegExp("[\?&]"+e+"=([^]*)").exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))};t.getParameterByName=O,t.hasValidBidRequest=function(e,n,r){function i(e,t){t===n[a]&&(o=!0)}for(var o=!1,a=0;a0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},t.isEmptyStr=function(e){return t.isStr(e)&&(!e||0===e.length)},t._each=function(e,n){if(!t.isEmpty(e)){if(t.isFn(e.forEach))return e.forEach(n,this);var r=0,i=e.length;if(i>0)for(;r'},t.createTrackPixelIframeHtml=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),r&&(r='sandbox="'+r+'"'),"'):""},t.getIframeDocument=function(e){if(e){var n=void 0;try{n=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){t.logError("Cannot get iframe document",e)}return n}},t.getValueString=function(e,n,r){return null==n?r:t.isStr(n)?n:t.isNumber(n)?n.toString():void t.logWarn("Unsuported type for param: "+e+" required type: String")},t.getHighestCpm=f("timeToRespond",function(e,t){return e>t}),t.getOldestHighestCpmBid=f("responseTimestamp",function(e,t){return e>t}),t.getLatestHighestCpmBid=f("responseTimestamp",function(e,t){return e1?arguments[1]:void 0)}}),n(27)(o)},11:function(e,t,n){"use strict";function r(e){return e?e.replace(/^\?/,"").split("&").reduce(function(e,t){var n=t.split("="),r=o(n,2),i=r[0],a=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(a)):e[i]=a||"",e},{}):{}}function i(e){return Object.keys(e).map(function(t){return Array.isArray(e[t])?e[t].map(function(e){return t+"[]="+e}).join("&"):t+"="+e[t]}).join("&")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.parseQS=r,t.formatQS=i,t.parse=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var i=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:i?n.search:r(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.format=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":"+e.port:""))+(e.pathname||"")+(e.search?"?"+i(e.search||""):"")+(e.hash?"#"+e.hash:"")}},12:function(e,t,n){"use strict";function r(e){var t=this,n=e.url,r=e.config,a=e.id,u=e.callback,s=e.loaded;this.url=n,this.config=r,this.handlers={},this.id=a,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):o.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){t.loaded=!0,t.process()},(0,i.loadScript)(n,this.callback,!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=r;var i=n(22),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));r.install=function(e){return new r({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded})},r.prototype.getConfig=function(){return this.config},r.prototype.setRender=function(e){this.render=e},r.prototype.setEventHandlers=function(e){this.handlers=e},r.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),o.logMessage("Prebid Renderer event for id "+t+" type "+n)},r.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){o.logError("Error processing Renderer command: ",e)}}},13:function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},14:function(e,t,n){var r=n(19),i=n(13),o=n(32),a=n(47),u="prototype",s=function e(t,n,s){var c,d,f,l=t&e.F,p=t&e.G,g=t&e.S,h=t&e.P,v=t&e.B,b=t&e.W,y=p?i:i[n]||(i[n]={}),m=y[u],_=p?r:g?r[n]:(r[n]||{})[u];for(c in p&&(s=n),s)(d=!l&&_&&void 0!==_[c])&&c in y||(f=d?_[c]:s[c],y[c]=p&&"function"!=typeof _[c]?s[c]:v&&d?o(f,r):b&&_[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((y.virtual||(y.virtual={}))[c]=f,t&e.R&&m&&!m[c]&&a(m,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},15:function(e,t){e.exports=function(e){return"object"==(void 0===e?"undefined":_typeof(e))?null!==e:"function"==typeof e}},16:function(e,t,n){"use strict";var r=n(0);t.createBid=function(e,t){return new function(e,t){var n=t&&t.bidId||r.getUniqueIdentifierStr(),i=t&&t.src||"client",o=e||0;this.bidderCode=t&&t.bidder||"",this.width=0,this.height=0,this.statusMessage=function(){switch(o){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=n,this.mediaType="banner",this.source=i,this.getStatusCode=function(){return o},this.getSize=function(){return this.width+"x"+this.height}}(e,t)}},17:function(e,t,n){"use strict";function r(e){function t(){if(l.syncEnabled&&e.browserSupportsCookies&&!a){try{!function(){(l.pixelEnabled||f.image)&&u.shuffle(r.image).forEach(function(e){var t=i(e,2),n=t[0],r=t[1];u.logMessage("Invoking image pixel user sync for bidder: "+n),u.triggerPixel(r)})}(),function(){(l.iframeEnabled||f.iframe)&&u.shuffle(r.iframe).forEach(function(e){var t=i(e,2),n=t[0],r=t[1];u.logMessage("Invoking iframe user sync for bidder: "+n),u.insertUserSyncIframe(r)})}()}catch(e){return u.logError("Error firing user syncs",e)}r={image:[],iframe:[]},a=!0}}var n={},r={image:[],iframe:[]},a=!1,c={},f={image:!1,iframe:!1},l=e.config;return s.config.getConfig("userSync",function(e){l=o(l,e.userSync)}),n.registerSync=function(e,t,n){if(!l.syncEnabled||!u.isArray(r[e]))return u.logWarn('User sync type "'+e+'" not supported');if(!t)return u.logWarn("Bidder is required for registering sync");if(Number(c[t])>=l.syncsPerBidder)return u.logWarn('Number of user syncs exceeded for "'+t+'"');if(l.filterSettings){if(function(e,t){var n=l.filterSettings;if(function(e,t){if(e.all&&e[t])return u.logWarn('Detected presence of the "filterSettings.all" and "filterSettings.'+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;return i&&"include"!==i&&"exclude"!==i?(u.logWarn('UserSync "filterSettings.'+r+".filter\" setting '"+i+"' is not a valid option; use either 'include' or 'exclude'."),!1):!!("*"===o||Array.isArray(o)&&o.length>0&&o.every(function(e){return u.isStr(e)&&"*"!==e}))||(u.logWarn('Detected an invalid setup in userSync "filterSettings.'+r+".bidders\"; use either '*' (to represent all bidders) or an array of bidders."),!1)}(n,e)){f[e]=!0;var r=n.all?n.all:n[e],i="*"===r.bidders?[t]:r.bidders,o=r.filter||"include";return{include:function(e,t){return!(0,d.default)(e,t)},exclude:function(e,t){return(0,d.default)(e,t)}}[o](i,t)}return!1}(e,t))return u.logWarn("Bidder '"+t+"' is not permitted to register their userSync "+e+" pixels as per filterSettings config.")}else if(l.enabledBidders&&l.enabledBidders.length&&l.enabledBidders.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(t,Number(e));t()},n.triggerUserSyncs=function(){l.enableOverride&&n.syncUsers()},n}Object.defineProperty(t,"__esModule",{value:!0}),t.userSync=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:10;"function"==typeof e&&(a.push({fn:e,priority:t}),a.sort(function(e,t){return t.priority-e.priority}))},removeHook:function(e){a=a.filter(function(n){return n.fn===t||n.fn!==e})},hasHook:function(e){return a.some(function(t){return t.fn===e})}};return"string"==typeof n&&(o[n]=s),r(function(){for(var n=arguments.length,r=Array(n),i=0;i\n \n \n prebid.org wrapper\n \n "+(n?"":"")+"\n \n\n\n ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.store=function(e,t){var n={puts:e.map(r)};(0,i.ajax)(o.config.getConfig("cache.url"),(a=t,{success:function(e){var t=void 0;try{t=JSON.parse(e).responses}catch(e){return void a(e,[])}t?a(null,t):a(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){a(new Error("Error storing video ad in the cache: "+e+": "+JSON.stringify(t)),[])}}),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0});var a},t.getCacheUrl=function(e){return o.config.getConfig("cache.url")+"?uuid="+e};var i=n(7),o=n(3)},21:function(e,t,n){n(102),e.exports=n(13).Array.findIndex},22:function(e,t,n){"use strict";function r(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)}var i,o=n(5),a=(i=o)&&i.__esModule?i:{default:i},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),s={},c=["criteo"];t.loadExternalScript=function(e,t){if(t&&e)if((0,a.default)(c,t)){if(!s[e]){u.logWarn("module "+t+" is loading external JavaScript");var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,u.insertElement(n),s[e]=!0}}else u.logError(t+" not whitelisted for loading external JavaScript");else u.logError("cannot load external script without url and moduleCode")},t.loadScript=function(e,t,n){e?n?s[e]?t&&"function"==typeof t&&(s[e].loaded?t():s[e].callbacks.push(t)):(s[e]={loaded:!1,callbacks:[]},t&&"function"==typeof t&&s[e].callbacks.push(t),r(e,function(){s[e].loaded=!0;try{for(var t=0;tt.max?e:t},{max:0}),b=(0,u.default)(t.buckets,function(t){if(e>v.max*n){var i=t.precision;void 0===i&&(i=c),r=(t.max*n).toFixed(i)}else if(e=t.min*n)return t});return b&&(o=e,s=n,d=void 0!==(a=b).precision?a.precision:c,f=a.increment*s,l=a.min*s,p=Math.pow(10,d+2),g=(o*p-l*p)/(f*p),h=Math.floor(g)*f+l,r=(h=Number(h.toFixed(10))).toFixed(d)),r}function i(e){if(s.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}Object.defineProperty(t,"__esModule",{value:!0}),t.isValidPriceConfig=t.getPriceBucketString=void 0;var o,a=n(10),u=(o=a)&&o.__esModule?o:{default:o},s=n(0),c=2,d={buckets:[{min:0,max:5,increment:.5}]},f={buckets:[{min:0,max:20,increment:.1}]},l={buckets:[{min:0,max:20,increment:.01}]},p={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},g={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};t.getPriceBucketString=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":r(e,d,n),med:""===i?"":r(e,f,n),high:""===i?"":r(e,l,n),auto:""===i?"":r(e,g,n),dense:""===i?"":r(e,p,n),custom:""===i?"":r(e,t,n)}},t.isValidPriceConfig=i},32:function(e,t,n){var r=n(46);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},33:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},34:function(e,t,n){var r=n(32),i=n(35),o=n(54),a=n(36),u=n(55);e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,d=4==e,f=6==e,l=5==e||f,p=t||u;return function(t,u,g){for(var h,v,b=o(t),y=i(b),m=r(u,g,3),_=a(y.length),A=0,E=n?p(t,_):s?p(t,0):void 0;_>A;A++)if((l||A in y)&&(v=m(h=y[A],A,b),e))if(n)E[A]=v;else if(v)switch(e){case 3:return!0;case 5:return h;case 6:return A;case 2:E.push(h)}else if(d)return!1;return f?-1:c||d?d:E}}},35:function(e,t,n){var r=n(24);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},36:function(e,t,n){var r=n(37),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},37:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},38:function(e,t,n){var r=n(24);e.exports=Array.isArray||function(e){return"Array"==r(e)}},39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adunitCounter=void 0;var r=n(0),i={},o={incrementCounter:function(e){return i[e]=i[e]||{},i[e].counter=(0,r.deepAccess)(i,e+".counter")+1||1,i[e].counter},getCounter:function(e){return(0,r.deepAccess)(i,e+".counter")||0}};t.adunitCounter=o},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"},REPO_AND_VERSION:"prebid_prebid_1.22.0",DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",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:["hb_bidder","hb_adid","hb_pb","hb_size","hb_deal","hb_source","hb_format"],S2S:{SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"}}},40:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},41:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=[],r=(0,c.groupBy)(e,"adUnitCode");return Object.keys(r).forEach(function(e){var i=(0,c.groupBy)(r[e],"bidderCode");Object.keys(i).forEach(function(e){return n.push(i[e].reduce(t,o()))})}),n}function o(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}function a(e){function n(t){return"string"==typeof t?[t]:h.isArray(t)?t:e.getAdUnitCodes()||[]}function a(){return i(e.getBidsReceived().filter(A).filter(t.isBidNotExpired),c.getOldestHighestCpmBid)}function s(){return e.getStandardBidderAdServerTargeting().map(function(e){return e.key}).concat(v.TARGETING_KEYS).filter(c.uniques)}function l(e,t,n,r){return Object.keys(t.adserverTargeting).filter(p()).forEach(function(n){var r,i;e.length&&e.filter((i=n,function(e){return e.adUnitCode===t.adUnitCode&&e.adserverTargeting[i]})).forEach((r=n,function(e){h.isArray(e.adserverTargeting[r])||(e.adserverTargeting[r]=[e.adserverTargeting[r]]),e.adserverTargeting[r]=e.adserverTargeting[r].concat(t.adserverTargeting[r]).filter(c.uniques),delete t.adserverTargeting[r]}))}),e.push(t),e}function p(){var e=s();return function(t){return-1===e.indexOf(t)}}function y(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(p()).map(function(t){return r({},t.substring(0,_),[e.adserverTargeting[t]])}))}var m={};return m.resetPresetTargeting=function(t){if((0,c.isGptPubadsDefined)()){var r=n(t),i=e.getAdUnits().filter(function(e){return(0,g.default)(r,e.code)});window.googletag.pubads().getSlots().forEach(function(e){b.forEach(function(t){i.forEach(function(n){n.code!==e.getAdUnitPath()&&n.code!==e.getSlotElementId()||e.setTargeting(t,null)})})})}},m.getAllTargeting=function(e){var t,o,p,A,E,w,S,I,T,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a(),j=n(e),C=(w=j,S=x,I=m.getWinningBids(w,S),T=s(),I=I.map(function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===T.indexOf(t)}).map(function(t){return r({},"hb_deal"===t?(t+"_"+e.bidderCode).substring(0,_):t.substring(0,_),[e.adserverTargeting[t]])}))})).concat((A=j,E=x,E.filter(function(e){return(0,g.default)(A,e.adUnitCode)}).map(function(e){return u({},e)}).reduce(l,[]).map(y).filter(function(e){return e}))).concat(d.config.getConfig("enableSendAllBids")?(t=j,o=x,p=v.TARGETING_KEYS.concat(f.NATIVE_TARGETING_KEYS),i(o,c.getHighestCpm).map(function(e){if(e.adserverTargeting&&t&&(h.isArray(t)&&(0,g.default)(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t))return r({},e.adUnitCode,(n=e,p.filter(function(t){return void 0!==e.adserverTargeting[t]}).map(function(e){return r({},(e+"_"+n.bidderCode).substring(0,_),[n.adserverTargeting[e]])})));var n}).filter(function(e){return e})):[]);return C.map(function(e){Object.keys(e).map(function(t){e[t].map(function(e){-1===b.indexOf(Object.keys(e)[0])&&(b=Object.keys(e).concat(b))})})}),C=C.map(function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].map(function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))}).reduce(function(e,t){return u(t,e)},{}))}).reduce(function(e,t){var n=Object.keys(t)[0];return e[n]=u({},e[n],t[n]),e},{}),j.forEach(function(e){C[e]||(C[e]={})}),C},m.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach(function(n){Object.keys(e).filter(t?t(n):(0,c.isAdUnitCodeMatchingSlot)(n)).forEach(function(t){return Object.keys(e[t]).forEach(function(r){var i=e[t][r].split(",");(i=i.length>1?[i]:i).map(function(e){return h.logMessage("Attempting to set key value for slot: "+n.getSlotElementId()+" key: "+r+" value: "+e),e}).forEach(function(e){n.setTargeting(r,e)})})})})},m.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a(),r=n(e);return t.filter(function(e){return(0,g.default)(r,e.adUnitCode)}).filter(function(e){return e.cpm>0}).map(function(e){return e.adUnitCode}).filter(c.uniques).map(function(e){return t.filter(function(t){return t.adUnitCode===e?t:null}).reduce(c.getHighestCpm,o(e))})},m.setTargetingForAst=function(){var e=m.getAllTargeting();Object.keys(e).forEach(function(t){return Object.keys(e[t]).forEach(function(n){if(h.logMessage("Attempting to set targeting for targetId: "+t+" key: "+n+" value: "+e[t][n]),h.isStr(e[t][n])||h.isArray(e[t][n])){var r={};n.search(/pt[0-9]/)(0,c.timestamp)()},function(e){return e&&(e.status&&!(0,g.default)([y,m],e.status)||!e.status)});t.targeting=a(l.auctionManager)},42:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){t.timeToRespond>e.getTimeout()+y.config.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function o(e,t){T.emit(x.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),i(e,t)}function a(e){var t=y.config.getConfig("mediaTypePriceGranularity."+e),n="string"==typeof e&&t?"string"==typeof t?t:"custom":y.config.getConfig("priceGranularity"),r=pbjs.bidderSettings;return r[x.JSON_MAPPING.BD_SETTING_STANDARD]||(r[x.JSON_MAPPING.BD_SETTING_STANDARD]={}),r[x.JSON_MAPPING.BD_SETTING_STANDARD][x.JSON_MAPPING.ADSERVER_TARGETING]||(r[x.JSON_MAPPING.BD_SETTING_STANDARD][x.JSON_MAPPING.ADSERVER_TARGETING]=[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return n===x.GRANULARITY_OPTIONS.AUTO?e.pbAg:n===x.GRANULARITY_OPTIONS.DENSE?e.pbDg:n===x.GRANULARITY_OPTIONS.LOW?e.pbLg:n===x.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:n===x.GRANULARITY_OPTIONS.HIGH?e.pbHg:n===x.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_deal",val:function(e){return e.dealId}},{key:"hb_source",val:function(e){return e.source}},{key:"hb_format",val:function(e){return e.mediaType}}]),r[x.JSON_MAPPING.BD_SETTING_STANDARD]}function u(e,t){if(!t)return{};var n={},r=pbjs.bidderSettings;return r&&(s(n,a(t.mediaType),t),e&&r[e]&&r[e][x.JSON_MAPPING.ADSERVER_TARGETING]&&(s(n,r[e],t),t.sendStandardTargeting=r[e].sendStandardTargeting)),t.native&&(n=l({},n,(0,h.getNativeTargeting)(t))),n}function s(e,t,n){var r=t[x.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),S._each(r,function(r){var i=r.key,o=r.val;if(e[i]&&S.logWarn("The key: "+i+" is getting ovewritten"),S.isFn(o))try{o=o(n)}catch(e){S.logError("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&"hb_deal"!==i||!S.isEmptyStr(o)&&null!=o?e[i]=o:S.logInfo("suppressing empty key '"+i+"' from adserver targeting")}),e}function c(e){var t=e.bidderCode,n=e.cpm,r=void 0;if(pbjs.bidderSettings&&(t&&pbjs.bidderSettings[t]&&"function"==typeof pbjs.bidderSettings[t].bidCpmAdjustment?r=pbjs.bidderSettings[t].bidCpmAdjustment:pbjs.bidderSettings[x.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[x.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(r=pbjs.bidderSettings[x.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{n=r(e.cpm,l({},e))}catch(e){S.logError("Error during bid adjustment","bidmanager.js",e)}n>=0&&(e.cpm=n)}function d(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}Object.defineProperty(t,"__esModule",{value:!0}),t.addBidResponse=t.AUCTION_COMPLETED=t.AUCTION_IN_PROGRESS=t.AUCTION_STARTED=void 0;var f="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)},l=Object.assign||function(e){for(var t=1;t=1})&&(S.logInfo("Bids Received for Auction with id: "+v,g),b=O,t(!1,!0))}var r=e.adUnits,i=e.adUnitCodes,o=e.callback,a=e.cbTimeout,u=e.labels,s=r,c=u,f=i,l=[],g=[],h=void 0,v=S.generateUUID(),b=void 0,m=o,_=void 0,P=a,U=[];return{addBidReceived:function(e){g=g.concat(e)},executeCallback:t,callBids:function(){function e(e){var t=!0,n=y.config.getConfig("maxRequestsPerOrigin")||R;return e.bidRequests.some(function(e){var r=1,i=void 0!==e.src&&e.src===x.S2S.SRC?"s2s":e.bidderCode;return k[i]&&(!1===k[i].SRA&&(r=Math.min(e.bids.length,n)),B[k[i].origin]+r>n&&(t=!1)),!t}),t&&e.run(),t}function r(e,t){void 0===e[t]?e[t]=1:e[t]++}var i=this;b=j,h=Date.now();var o=I.makeBidRequests(s,h,v,P,c);S.logInfo("Bids Requested for Auction with id: "+v,o),o.forEach(function(e){var t;t=e,l=l.concat(t)});var a={},u={bidRequests:o,run:function(){var u,c;u=t.bind(null,!0),c=setTimeout(u,P),_=c,b=C;var d={timestamp:h,auctionId:v,timeout:P};T.emit(x.EVENTS.AUCTION_INIT,d),I.callBids(s,o,D.bind(i),function(e){var t=e;return(0,p.delayExecution)(function(){(0,A.default)(l,function(e){return t===e.bidderRequestId}).doneCbCallCount+=1,n()},1)}.bind(i),{request:function(e,t){r(B,t),r(a,e),k[e]||(k[e]={SRA:!0,origin:t}),a[e]>1&&(k[e].SRA=!1)},done:function(t){B[t]--,N[0]&&e(N[0])&&N.shift()}},P)}};e(u)||(S.logWarn("queueing auction due to limited endpoint capacity"),N.push(u))},bidsBackAll:n,addWinningBid:function(e){U=U.concat(e),I.callBidWonBidder(e.bidder,e)},getWinningBids:function(){return U},getTimeout:function(){return P},getAuctionId:function(){return v},getAuctionStatus:function(){return b},getAdUnits:function(){return s},getAdUnitCodes:function(){return f},getBidRequests:function(){return l},getBidsReceived:function(){return g}}},t.getStandardBidderSettings=a,t.getKeyValueTargetingPairs=u,t.adjustBids=c;var p=n(0),g=n(31),h=n(18),v=n(203),b=n(12),y=n(3),m=n(17),_=n(20),A=r(n(10)),E=r(n(5)),w=m.userSync.syncUsers,S=n(0),I=n(8),T=n(9),x=n(4),j=t.AUCTION_STARTED="started",C=t.AUCTION_IN_PROGRESS="inProgress",O=t.AUCTION_COMPLETED="completed";T.on(x.EVENTS.BID_ADJUSTMENT,function(e){c(e)});var R=4,B={},k={},N=[],D=t.addBidResponse=(0,_.createHook)("asyncSeries",function(e,t){var n,r,a,s,c=this.getBidRequests(),d=this.getAuctionId(),h=(0,p.getBidderRequest)(c,t.bidderCode,e),m=function(e){var t=e.adUnitCode,n=e.bid,r=e.bidRequest,i=e.auctionId,o=r.start,a=l({},n,{auctionId:i,responseTimestamp:(0,p.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});a.timeToRespond=a.responseTimestamp-a.requestTimestamp,T.emit(x.EVENTS.BID_ADJUSTMENT,a);var s=r.bids&&(0,A.default)(r.bids,function(e){return e.adUnitCode==t}),c=s&&s.renderer;c&&c.url&&(a.renderer=b.Renderer.install({url:c.url}),a.renderer.setRender(c.render));var d,h=y.config.getConfig("mediaTypePriceGranularity."+n.mediaType),v=(0,g.getPriceBucketString)(a.cpm,"object"===(void 0===h?"undefined":f(h))?h:y.config.getConfig("customPriceBucket"),y.config.getConfig("currency.granularityMultiplier"));return a.pbLg=v.low,a.pbMg=v.med,a.pbHg=v.high,a.pbAg=v.auto,a.pbDg=v.dense,a.pbCg=v.custom,a.bidderCode&&(a.cpm>0||a.dealId)&&(d=u(a.bidderCode,a)),a.adserverTargeting=l(a.adserverTargeting||{},d),a}({adUnitCode:e,bid:t,bidRequest:h,auctionId:d});"video"===m.mediaType?(n=this,r=m,a=h,s=!0,y.config.getConfig("cache.url")&&(r.videoCacheKey?r.vastUrl||(S.logError("videoCacheKey specified but not required vastUrl for video bid"),s=!1):(s=!1,(0,v.store)([r],function(e,t){e?(S.logWarn("Failed to save to the video cache: "+e+". Video bid must be discarded."),i(n,r)):(r.videoCacheKey=t[0].uuid,r.vastUrl||(r.vastUrl=(0,v.getCacheUrl)(r.videoCacheKey)),a.doneCbCallCount+=1,o(n,r),n.bidsBackAll())}))),s&&o(n,r)):o(this,m)},"addBidResponse")},45:function(e,t,n){"use strict";var r=n(14),i=n(34)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(27)(o)},46:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},47:function(e,t,n){var r=n(48),i=n(53);e.exports=n(23)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},48:function(e,t,n){var r=n(49),i=n(50),o=n(52),a=Object.defineProperty;t.f=n(23)?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}},49:function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},5:function(e,t,n){n(59),e.exports=n(13).Array.includes},50:function(e,t,n){e.exports=!n(23)&&!n(33)(function(){return 7!=Object.defineProperty(n(51)("div"),"a",{get:function(){return 7}}).a})},51:function(e,t,n){var r=n(15),i=n(19).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},52:function(e,t,n){var r=n(15);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},53:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},54:function(e,t,n){var r=n(25);e.exports=function(e){return Object(r(e))}},55:function(e,t,n){var r=n(56);e.exports=function(e,t){return new(r(e))(t)}},555:function(e,t,n){e.exports=n(556)},556:function(e,t,n){"use strict";function r(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function i(e,t,n){var r={};r.reason=e,r.message=t,n&&(r.bid=n),S.logError(t),x.emit(N,r)}function o(e){e.forEach(function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){S.logError("Error processing command :","prebid.js",e)}})}var a,u="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)},s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels;x.emit(B);var a=n||g.config.getConfig("bidderTimeout");if(r=r||E.adUnits,S.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?r=r.filter(function(e){return(0,_.default)(i,e.code)}):i=r&&r.map(function(e){return e.code}),r.forEach(function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map(function(e){return e.bidder}),r=I.bidderRegistry,i=g.config.getConfig("s2sConfig"),o=i&&i.bidders,a=o?n.filter(function(e){return!(0,_.default)(o,e)}):n;e.transactionId||(e.transactionId=S.generateUUID()),a.forEach(function(n){var i=r[n],o=i&&i.getSpec&&i.getSpec(),a=o&&o.supportedMediaTypes||["banner"];t.some(function(e){return(0,_.default)(a,e)})||(S.logWarn(S.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter(function(e){return e.bidder!==n}))}),A.adunitCounter.incrementCounter(e.code)}),r&&0!==r.length){var u=h.auctionManager.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:a,labels:o});return u.callBids(),u}if(S.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){S.logError("Error executing bidsBackHandler",null,e)}}),E.addAdUnits=function(e){S.logInfo("Invoking pbjs.addAdUnits",arguments),S.isArray(e)?E.adUnits.push.apply(E.adUnits,e):"object"===(void 0===e?"undefined":u(e))&&E.adUnits.push(e),x.emit(O)},E.onEvent=function(e,t,n){S.logInfo("Invoking pbjs.onEvent",arguments),S.isFn(t)?!n||W[e].call(null,n)?x.on(e,t,n):S.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):S.logError('The event handler provided is not a function and was not set on event "'+e+'".')},E.offEvent=function(e,t,n){S.logInfo("Invoking pbjs.offEvent",arguments),n&&!W[e].call(null,n)||x.off(e,t,n)},E.registerBidAdapter=function(e,t){S.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{I.registerBidAdapter(e(),t)}catch(e){S.logError("Error registering bidder adapter : "+e.message)}},E.registerAnalyticsAdapter=function(e){S.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{I.registerAnalyticsAdapter(e)}catch(e){S.logError("Error registering analytics adapter : "+e.message)}},E.createBid=function(e){return S.logInfo("Invoking pbjs.createBid",arguments),T.createBid(e)},E.loadScript=function(e,t,n){S.logInfo("Invoking pbjs.loadScript",arguments),(0,p.loadScript)(e,t,n)},E.enableAnalytics=function(e){e&&!S.isEmpty(e)?(S.logInfo("Invoking pbjs.enableAnalytics for: ",e),I.enableAnalytics(e)):S.logError("pbjs.enableAnalytics should be called with option {}")},E.aliasBidder=function(e,t){S.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?I.aliasBidAdapter(e,t):S.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},E.getAllWinningBids=function(){return h.auctionManager.getAllWinningBids().map(d.removeRequestId)},E.getAllPrebidWinningBids=function(){return h.auctionManager.getBidsReceived().filter(function(e){return e.status===v.BID_TARGETING_SET}).map(d.removeRequestId)},E.getHighestCpmBids=function(e){return v.targeting.getWinningBids(e).map(d.removeRequestId)},E.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=h.auctionManager.getBidsReceived().filter(function(t){return t.adId===e.adId&&t.adUnitCode===e.adUnitCode}):e.adUnitCode?t=v.targeting.getWinningBids(e.adUnitCode):e.adId?t=h.auctionManager.getBidsReceived().filter(function(t){return t.adId===e.adId}):S.logWarn("Inproper usage of markWinningBidAsUsed. It'll need an adUnitCode and/or adId to function."),t.length>0&&(t[0].status=v.RENDERED)},E.getConfig=g.config.getConfig,E.setConfig=g.config.setConfig,E.que.push(function(){return(0,f.listenMessagesFromCreative)()}),E.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){S.logError("Error processing command :",e.message,e.stack)}else S.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},E.que.push=E.cmd.push,E.processQueue=function(){o(E.que),o(E.cmd)}},557:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t,n,r,i,u,l,p,g,h,v,b,y,m=e.message?"message":"data",_={};try{_=JSON.parse(e[m])}catch(e){return}if(_&&_.adId){var A=(0,d.default)(c.auctionManager.getBidsReceived(),function(e){return e.adId===_.adId});"Prebid Request"===_.message&&(u=A,l=_.adServerDomain,p=e.source,g=u.adId,h=u.ad,v=u.adUrl,b=u.width,y=u.height,g&&(n=(t=u).adUnitCode,r=t.width,i=t.height,["div","iframe"].forEach(function(e){var t,o=(t=e,document.getElementById((0, d.default)(window.googletag.pubads().getSlots().filter((0,s.isSlotMatchingAdUnitCode)(n)),function(e){return e}).getSlotElementId()).querySelector(t)).style;o.width=r,o.height=i}),p.postMessage(JSON.stringify({message:"Prebid Response",ad:h,adUrl:v,adId:g,width:b,height:y}),l)),c.auctionManager.addWinningBid(A),o.default.emit(f,A)),"Prebid Native"===_.message&&((0,a.fireNativeTrackers)(_,A),c.auctionManager.addWinningBid(A),o.default.emit(f,A))}}Object.defineProperty(t,"__esModule",{value:!0}),t.listenMessagesFromCreative=function(){addEventListener("message",i,!1)};var o=r(n(9)),a=n(18),u=n(4),s=n(0),c=n(29),d=r(n(10)),f=u.EVENTS.BID_WON},558:function(e,t,n){"use strict";function r(e){(0,d.logMessage)("DEBUG: "+e)}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c.config.setConfig({debug:!0}),r("bidder overrides enabled"+(n?" from session":"")),p&&f.addBidResponse.removeHook(p),t.boundHook=p=a.bind(null,e),f.addBidResponse.addHook(p,5)}function o(){p&&(f.addBidResponse.removeHook(p),r("bidder overrides disabled"))}function a(e,t,n,i){if(Array.isArray(e.bidders)&&-1===e.bidders.indexOf(n.bidderCode))return o="bidder '"+n.bidderCode+"' excluded from auction by bidder overrides",void(0,d.logWarn)("DEBUG: "+o);var o;Array.isArray(e.bids)&&e.bids.forEach(function(e){e.bidder&&e.bidder!==n.bidderCode||e.adUnitCode&&e.adUnitCode!==t||(n=s({},n),Object.keys(e).filter(function(e){return-1===["bidder","adUnitCode"].indexOf(e)}).forEach(function(i){var o=e[i];r("bidder overrides changed '"+t+"/"+n.bidderCode+"' bid."+i+" from '"+n[i]+"' to '"+o+"'"),n[i]=o}))}),i(t,n)}function u(e){if(e.enabled){try{window.sessionStorage.setItem(l,JSON.stringify(e))}catch(e){}i(e)}else{o();try{window.sessionStorage.removeItem(l)}catch(e){}}}Object.defineProperty(t,"__esModule",{value:!0}),t.boundHook=void 0;var s=Object.assign||function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(27)("includes")},60:function(e,t,n){var r=n(61),i=n(36),o=n(62);e.exports=function(e){return function(t,n,a){var u,s=r(t),c=i(s.length),d=o(a,c);if(e&&n!=n){for(;c>d;)if((u=s[d++])!=u)return!0}else for(;c>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}}},61:function(e,t,n){var r=n(35),i=n(25);e.exports=function(e){return r(i(e))}},62:function(e,t,n){var r=n(37),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))0&&void 0!==arguments[0]?arguments[0]:{},n=t.labels,r=void 0===n?[]:n,o=t.labelAll,a=void 0!==o&&o,s=t.activeLabels,f=void 0===s?[]:s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],p=(e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,e.reduce(function(e,t){return"object"===(void 0===t?"undefined":i(t))&&"string"==typeof t.mediaQuery?matchMedia(t.mediaQuery).matches&&(Array.isArray(t.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach(function(n){return(t[n]||[]).forEach(function(t){return e[n][t]=!0})})):(0,u.logWarn)('sizeConfig rule missing required property "mediaQuery"'),e},{labels:{},sizesSupported:{},shouldFilter:!1})),g=void 0;return g=p.shouldFilter?l.filter(function(e){return p.sizesSupported[e]}):l,{active:g.length>0&&(0===r.length||!a&&(r.some(function(e){return p.labels[e]})||r.some(function(e){return(0,c.default)(f,e)}))||a&&r.reduce(function(e,t){return e?p.labels[t]||(0,c.default)(f,t):e},!0)),sizes:g}};var o,a=n(3),u=n(0),s=n(5),c=(o=s)&&o.__esModule?o:{default:o},d=[];a.config.getConfig("sizeConfig",function(e){return r(e.sizeConfig)})},65:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasNonVideoBidder=t.videoBidder=t.videoAdUnit=void 0,t.isValidVideoBid=function(e,t){var n=(0,o.getBidRequest)(e.adId,t),r=n&&(0,o.deepAccess)(n,"mediaTypes.video"),i=r&&(0,o.deepAccess)(r,"context");return!n||r&&i!==c?a.config.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,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):i!==c||!(!e.renderer&&!n.renderer)};var r,i=n(8),o=n(0),a=n(3),u=n(5),s=(r=u)&&r.__esModule?r:{default:r},c="outstream",d=(t.videoAdUnit=function(e){var t="video"===e.mediaType,n=(0,o.deepAccess)(e,"mediaTypes.video");return t||n},t.videoBidder=function(e){return(0,s.default)(i.videoAdapters,e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter(function(e){return!d(e)}).length}},7:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.request,r=t.done;return function(t,d,f){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var p=void 0,g=l.method||(f?"POST":"GET"),h=document.createElement("a");h.href=t;var v="object"===(void 0===d?"undefined":o(d))&&null!==d?d:{success:function(){s.logMessage("xhr success")},error:function(e){s.logError("xhr error",null,e)}};if("function"==typeof d&&(v.success=d),(p=new window.XMLHttpRequest).onreadystatechange=function(){if(p.readyState===c){"function"==typeof r&&r(h.origin);var e=p.status;e>=200&&e0})})}var x,j,C=(x=e,(j=m.deepClone(x)).forEach(function(e){e.bids=e.bids.filter(function(e){return!a()||e.finalSource!==E.SERVER})}),j=j.filter(function(e){return 0!==e.bids.length}));return g.forEach(function(e){var t=m.getUniqueIdentifierStr(),a={bidderCode:e,auctionId:r,bidderRequestId:t,bids:o({bidderCode:e,auctionId:r,bidderRequestId:t,adUnits:C,labels:u}),auctionStart:n,timeout:i},c=w[e];c||m.logError("Trying to make a request for bidder that does not exist: "+e),c&&a.bids&&0!==a.bids.length&&s.push(a)}),t.gdprDataHandler.getConsentData()&&s.forEach(function(e){e.gdprConsent=t.gdprDataHandler.getConsentData()}),s},t.checkBidRequestSizes=function(e){function t(e){return Array.isArray(e)&&2===e.length&&m.isInteger(e[0])&&m.isInteger(e[1])}return e.forEach(function(e){var n=e.mediaTypes,r=m.getAdUnitSizes(e);if(n&&n.banner){var i=n.banner;i.sizes?(i.sizes=r,e.sizes=r):(m.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&&(m.logWarn("Usage of adUnits.sizes will eventually be deprecated. Please define size dimensions within the corresponding area of the mediaTypes.

Related Pictures of There’s No Joy in Our World When My Daughter’s Cat Visits - Slate

Video of There’s No Joy in Our World When My Daughter’s Cat Visits - Slate

Share!

More Wallpaper from There’s No Joy in Our World When My Daughter’s Cat Visits - Slate

You May Like Also Bungalows To Rent In Leeds

Share!