Pour Moi


<![CDATA[ !function(n,e,i){if(!n){n=n||{},window.permutive=n,n.q=[],n.config=i||{},n.config.apiKey=e,n.config.environment=n.config.environment||"production";for(var o=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],r=0;r { window.prebidData.slotMap[slotKey].push({ ‘bidder’: ‘optimera’, ‘params’: { ‘clientID’: clientID, ‘device’: (window.innerWidth || document.documentElement.clientWidth) >= 768 ? ‘de’ : ‘mo’, } }); }); ]]> Pour Moi | FOX31 Denver 2&&void 0!==arguments[2]&&arguments[2];i(this,e),this.apstagSlots=[],this.prebidSlots=[],this.prebidData={analytics:[],priceGranularity:{},sizeConfig:[],slotMap:{},userSync:{}},this.googletag=t,this.isApsEnabled=o,this.isPrebidJSEnabled=a,this.setUpSlot=this.setUpSlot.bind(this),this.refreshSlots=this.refreshSlots.bind(this),this.isPrebidJSEnabled&&(window.pbjs=window.pbjs||{},window.pbjs.que=pbjs.que||[],window.prebidData&&(this.prebidData=window.prebidData,window.NXSTdata&&window.NXSTdata.content&&window.NXSTdata.content.pageDcode&&this.prebidData.slotMap&&Object.keys(this.prebidData.slotMap).forEach((function(e){n.prebidData.slotMap[e].filter((function(e){return”rubicon”===e.bidder})).forEach((function(e){e.params.inventory={d_code:window.NXSTdata.content.pageDcode}}))}))),window.pbjs.que.push((function(){window.pbjs.setConfig({sizeConfig:n.prebidData.sizeConfig,priceGranularity:n.prebidData.priceGranularity,userSync:n.prebidData.userSync,targetingControls:{allowTargetingKeys:[“BIDDER”,”AD_ID”,”PRICE_BUCKET”,”DEAL”]},yahoossp:{mode:”all”}}),n.prebidData.analytics.length&&window.pbjs.enableAnalytics(n.prebidData.analytics)})))}var t,n,a;return t=e,a=[{key:”apstag”,value:function(){return window.apstag||null}}],(n=[{key:”setUpSlot”,value:function(e,t,n,i,o){var a=this;this.pushCmd((function(){var n=null;if((n=t.is_oop?a.googletag.defineOutOfPageSlot(i,e):a.googletag.defineSlot(i,t.size,e))&&(o&&Object.keys(o).forEach((function(e){n.setTargeting(e,o[e])})),t.sizes.length&&n.defineSizeMapping(t.sizes),t.is_companion&&n.addService(a.googletag.companionAds()),n.addService(a.googletag.pubads())),n){var s=[];if(n.getSizes?s=n.getSizes(window.innerWidth,window.innerHeight).map((function(e){return[e.getWidth(),e.getHeight()]})):t.sizes.length&&(s=Object.values(t.sizes.reduce((function(e,t){var n=e;return t[1].forEach((function(e){n[e.join(“,”)]=e})),n}),{}))),s.length&&(s=s.filter((function(e){return!(88===e[0]&&31===e[1])}))),s.length){var r=o&&o.pos,d=[n.getAdUnitPath().split(“/”).slice(0,3).join(“/”),r].join(“/”);if(a.apstagSlots.push({sizes:s,slotID:n.getSlotElementId(),slotName:d}),a.isPrebidJSEnabled){var l=a.getPrebidBidsForSlot(r);r&&l.length&&a.prebidSlots.push({code:n.getSlotElementId(),mediaTypes:{banner:{sizes:s}},bids:l})}}}}))}},{key:”getPrebidBidsForSlot”,value:function(e){return e&&this.prebidData.slotMap&&this.prebidData.slotMap[e]?this.prebidData.slotMap[e]:[]}},{key:”initVisibleSlots”,value:function(){var e=this;this.pushCmd((function(){e.googletag.pubads().getSlots().forEach((function(t){e.pushCmd((function(){e.googletag.display(t.getSlotElementId())}))}))})),this.refreshSlots()}},{key:”refreshSlots”,value:function(){var e=this;this.pushCmd((function(){e.initPrebidRequest((function(){e.googletag.pubads().refresh()}))}))}},{key:”initPrebidRequest”,value:function(e){this.isPrebidJSEnabled?this.isApsEnabled?this.fetchHeaderBids(this.apstagSlots,this.prebidSlots,2e3,e):this.fetchHeaderBids([],this.prebidSlots,2e3,e):this.isApsEnabled?this.fetchHeaderBids(this.apstagSlots,[],2e3,e):this.pushCmd(e)}},{key:”fetchHeaderBids”,value:function(e,t,n,i){var o=this,a=this.constructor.apstag(),s=[],r=this.isApsEnabled&&e.length;r&&s.push(“a9”),t.length&&s.push(“prebid”);var d={adserverRequestSent:!1};s.forEach((function(e){d[e]=!1}));var l=function(){!0!==d.adserverRequestSent&&(d.adserverRequestSent=!0,d.sendAdserverRequest=!0,o.googletag.cmd.push((function(){r&&a.setDisplayBids(),o.isPrebidJSEnabled&&”function”==typeof window.pbjs.setTargetingForGPTAsync&&window.pbjs.setTargetingForGPTAsync(),i()})))},c=function(e){!0!==d.adserverRequestSent&&(“a9″===e?d.a9=!0:”prebid”===e&&(d.prebid=!0),s.map((function(e){return d[e]})).filter(Boolean).length===s.length&&l())};r&&a.fetchBids({slots:e,timeout:n},(function(){c(“a9”)})),o.isPrebidJSEnabled&&window.pbjs.que.push((function(){var e=t.map((function(e){return e.code}));window.pbjs.addAdUnits(t),window.pbjs.requestBids({timeout:n,adUnitCodes:e,bidsBackHandler:function(){c(“prebid”)}})})),window.setTimeout((function(){l()}),n+1e3)}},{key:”pushCmd”,value:function(e){this.googletag.cmd.push(e)}}])&&o(t.prototype,n),a&&o(t,a),e}(),s=n(25);function r(e){if(window&&window.sessionStorage)return window.sessionStorage.getItem(e)}function d(e,t){if(window&&window.sessionStorage)try{window.sessionStorage.setItem(e,t)}catch(e){}}var l=n(5),c=n(17),u=window.amScripts,g=u.page_attributes,p=u.gpt;Object(s.a)(),googletag.cmd.push((function(){googletag.pubads().enableSingleRequest(),googletag.pubads().enableAsyncRendering(),googletag.pubads().collapseEmptyDivs(),googletag.companionAds().setRefreshUnfilledSlots(!0),googletag.pubads().disableInitialLoad(),googletag.pubads().enableVideoAds(),c.a&&googletag.pubads().setPublisherProvidedId(c.a),googletag.enableServices()})),googletag.cmd.push((function(){var e=googletag.pubads(),t=p.ab_test,n=window.NXSTdata.ads.zeusEnabled?”applied”:”notapplied”;e.setTargeting(“zeus”,n),g.article_id&&e.setTargeting(“pid”,String(g.article_id)),g.page_type&&e.setTargeting(“pagetype”,g.page_type);var i,o,a,s=(i=t.min,o=t.max,a=Math.ceil(i),Math.floor(Math.random()*(Math.floor(o)-a))+a);e.setTargeting(“pagetest”,String(s));var c=encodeURIComponent(window.location.search).substring(3).replace(“%26″,”&”).replace(“%3D”,”=”),u=new URLSearchParams(c);u.has(“page_key”)&&e.setTargeting(“page_key”,u.get(“page_key”));var f=r(t.storage_key);if(f||(f=s,d(t.storage_key,f)),e.setTargeting(“sessiontest”,String(f)),window&&window.NXSTdata.content.persistentId&&e.setTargeting(“pers_cid”,window.NXSTdata.content.persistentId),window&&window.NXSTdata.content.pageDcode&&e.setTargeting(“d_code”,window.NXSTdata.content.pageDcode),window&&window.NXSTdata.content.nlpCategories){var w=Object.entries(window.NXSTdata.content.nlpCategories).sort((function(e,t){return e[1]!==t[1]?t[1]-e[1]:e[0].length!==t[0].length?t[0].length-e[0].length:e[0].localeCompare(t[0])})),h=[];w.forEach((function(e){e[0].split(“/”).forEach((function(e,t){if(e){var n=e.replace(/[^A-Z0-9]+/gi,”_”);n=0===n.indexOf(“_”)?n.substring(1):n,h[t]=h[t]||[],h[t].push(n.slice(0,24).toLowerCase())}}))})),h.forEach((function(t,n){0n&&e.setTargeting(“nlpcat”.concat(n),t)}))}if(window&&window.NXSTdata.content.nlpSentiment){var b=window.NXSTdata.content.nlpSentiment.score,S=”0″;0!==b&&(S=0<![CDATA[!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/wp-content/themes/nexstar/client/build/",n(n.s=129)}({129:function(e,t,n){e.exports=n(265)},17:function(e,t,n){"use strict";var i,r,o,a;t.a=String(null!==(i=null===(r=window)||void 0===r||null===(o=r.NXSTdata)||void 0===o||null===(a=o.identity)||void 0===a?void 0:a.blueconicId)&&void 0!==i?i:"")},265:function(e,t,n){"use strict";n.r(t);var i=function(){return(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!window.MSStream};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t){if(!Object.keys(e).length)return new URL(t.toString());var n,i,r,s=(n=new URLSearchParams(Object.entries(o({},Object.fromEntries(new URLSearchParams(t.searchParams.get("cust_params")).entries()),{},e)).reduce((function(e,t){return t[1]?o({},e,a({},t[0],t[1])):e}),{})).toString(),i={"=":"%3D","&":"%26",",":"%2C"},r=new RegExp(Object.keys(i).join("|"),"gi"),n.replace(r,(function(e){return i[e]}))),c=new URL(t);return c.searchParams.delete("cust_params"),"".concat(decodeURIComponent(c.toString()),"&cust_params=").concat(s)},c=n(17);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json={},this.queuePosition="01",this.setJSON(t),this.updateAdTagUrl=this.updateAdTagUrl.bind(this),this.load=this.load.bind(this),this.setComscoreCcpa=this.setComscoreCcpa.bind(this),this.addGoogleAnalyticsPlugin(),this.addNielsenPlugin()}var t,n,r;return t=e,(n=[{key:"load",value:function(){var e,t,n,i,r,o,a;this.setComscoreCcpa();var s=String(null===(e=window)||void 0===e||null===(t=e.NXSTdata)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.persistentId);this.updateAdTagUrl(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.getPlayerSizing(),{upid:String(null!==(i=null===(r=window)||void 0===r||null===(o=r.NXSTdata)||void 0===o||null===(a=o.page)||void 0===a?void 0:a.uniqueId)&&void 0!==i?i:"")},s&&{pers_cid:s})),this.updateAdTagPpid(),AnvatoPlayer(this.pInstance()).init(this.json)}},{key:"setJSON",value:function(e){if(this.json=e,!this.json.pInstance)throw new Error("pInstance is required");"0"===new URLSearchParams(window.location.search).get("anvplayer-autoplay")&&i()&&(this.json.autoplay=!1),this.json.styleNativeCaptions=!0,this.json.plugins=this.json.plugins||{}}},{key:"pInstance",value:function(){return this.json.pInstance}},{key:"setPinstance",value:function(e){this.json.pInstance=e}},{key:"setAutoplay",value:function(e){this.json.autoplay=e}},{key:"addGoogleAnalyticsPlugin",value:function(){var e=this.json.plugins.googleAnalytics||{};e.trackingId||(e.trackingId=window.NXSTdata.site.gaId),e.events||(e.events={AD_STARTED:{alias:"Video-Ad",category:"Video",label:"[[TITLE]]"},VIDEO_STARTED:{alias:"Video-Play",category:"Video",label:"[[TITLE]]"},VIDEO_FIRST_QUARTILE:{alias:"Video-25%",category:"Video",label:"[[TITLE]]"},VIDEO_MID_POINT:{alias:"Video-50%",category:"Video",label:"[[TITLE]]"},VIDEO_THIRD_QUARTILE:{alias:"Video-75%",category:"Video",label:"[[TITLE]]"},VIDEO_COMPLETED:{alias:"Video-100%",category:"Video",label:"[[TITLE]]"},USER_PAUSE:{alias:"Pause",category:"Video",label:"[[TITLE]]"},USER_RESUME:{alias:"Resume",category:"Video",label:"[[TITLE]]"}}),this.json.plugins.googleAnalytics=e}},{key:"addNielsenPlugin",value:function(){var e=this.json.plugins.nielsen||{};e.optOut=!1,this.json.plugins.nielsen=e}},{key:"updateAdTagPpid",value:function(){if(c.a){var e;try{e=new URL(this.json.plugins.dfp.adTagUrl)}catch(e){return}e.searchParams.set("ppid",c.a),this.json.plugins.dfp.adTagUrl=e}}},{key:"updateAdTagUrl",value:function(e){var t;try{t=new URL(this.json.plugins.dfp.adTagUrl)}catch(e){return void console.warn("Anvato: Missing vast url for ".concat(this.json.video),"Error: ".concat(e))}Object.keys(e).length?this.json.plugins.dfp.adTagUrl=String(s(e,t)):console.warn("Anvato: No params to add to VAST for ".concat(this.json.video))}},{key:"getPlayerSizing",value:function(){var e=document.getElementById(this.json.pInstance),t=window.getComputedStyle(e).width,n=parseFloat(t.replace("px",""));return{playerwidth:n,playerheight:Math.round(9*n/16)}}},{key:"hasAdPreroll",value:function(){var e=this.json.expectPreroll;return e||console.warn("Anvato: ".concat(this.json.video," expectPreroll disabled")),Boolean(e)}},{key:"setComscoreCcpa",value:function(){var e,t=null!==(e=this.json.plugins.comscore.mapping)&&void 0!==e?e:{},n=t.ad,i=void 0===n?null:n,r=t.video,o=void 0===r?null:r;i&&o&&(window.__uspapi||"function"==typeof __uspapi)&&__uspapi("getUSPData",1,(function(e,t){if(t)switch(e.uspString){case"1YNN":i.cs_ucfr=1,o.cs_ucfr=1;break;case"1YYN":i.cs_ucfr=0,o.cs_ucfr=0;break;case"1NNN":default:i.cs_ucfr="",o.cs_ucfr=""}}))}}])&&u(t.prototype,n),r&&u(t,r),e}();function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=function(){return"object"===("undefined"==typeof apstag?"undefined":f(apstag))?window.apstag:{}};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(){return new Promise((function(e,t){var n=b();if(window.isApsEnabled&&"function"==typeof n.fetchBids){var i={amznbid:"",amzniid:"",amznp:""};n.fetchBids({slots:[{slotID:"instreamVideo",mediaType:"video"}],timeout:2e3},(function(t){if(!t.length)return console.warn("Anvato: No A9 bids"),void e(i);var n=t.find((function(e){return"video"===e.mediaType}));e(Object.keys(i).reduce((function(e,t){return n[t]?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,v({},t,n[t])):e}),i))}))}else t()}))};function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pInstance="",this.bids={},this.pInstance=t,this.beforeVideoLoad=this.beforeVideoLoad.bind(this),this.refreshBids=this.refreshBids.bind(this),AnvatoPlayer(this.pInstance).on("beforeVideoLoad",this.beforeVideoLoad),AnvatoPlayer(this.pInstance).on("VAST_REQUESTED",this.refreshBids),this.refreshBids()}var t,n,i;return t=e,(n=[{key:"beforeVideoLoad",value:function(e,t){var n=t.pInstance,i=t.plugins,r=(i=void 0===i?{}:i).dfp,o=(r=void 0===r?{}:r).clientSide,a=(o=void 0===o?{}:o).adTagUrl;if(n!==this.pInstance)return t;var c=t;return a&&(c.plugins.dfp.clientSide.adTagUrl=String(s(this.bids,new URL(a)))),c}},{key:"refreshBids",value:function(){var e=this;y().then((function(t){e.bids=t}))}}])&&g(t.prototype,n),i&&g(t,i),e}(),j=function(e){if(!["preroll","postroll"].includes(e))return{};var t=768<=(window.innerWidth||document.documentElement.clientWidth)?"desktop":"mobile",n="".concat(e,"_").concat(t);return{code:e,mediaTypes:{video:{context:"instream",playerSize:"desktop"===t?[[640,480]]:[[400,300]],mimes:["video/mp4","video/webm"],protocols:[2,3,5,6],api:[2],maxduration:30,linearity:1}},bids:(window.prebidData.slotMap[e]||{}).filter((function(e){return e.labelAny&&e.labelAny[0]===n}))}},m=!1,O=function(){return new Promise((function(e,t){window.isPrebidEnabled&&window.isPrebidVideoEnabled&&void 0!==window.pbjs?window.pbjs.cmd.push((function(){!function(){if(!m){m=!0;var e=j("preroll"),t=j("postroll");e.bids&&0<e.bids.length&&window.pbjs.addAdUnits(e),t.bids&&0<t.bids.length&&window.pbjs.addAdUnits(t),window.pbjs.setConfig({cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}})}}();var t=["preroll","postroll"];window.pbjs.requestBids({timeout:2e3,adUnitCodes:t,bidsBackHandler:function(){var n={};t.forEach((function(e){var t=window.pbjs.getHighestCpmBids(e);if(t.length){window.pbjs.markWinningBidAsUsed({adId:t[0].adId});var i=t[0].adserverTargeting;Object.keys(i).forEach((function(t){var r=function(e,t,n){var i=e.hb_bidder;"triplelift"===i&&(i="3lift");var r="preroll"===n?"pre":"pst";return"".concat(t,"_").concat(i,"_").concat(r)}(i,t,e);n[r]=i[t]}))}})),e(n)}})})):t()}))};function P(e,t){for(var n=0;n Skip to content

div[id^=acm]”);if(l){var f=r[0],g=void 0===f?null:f,p=r[1],m=void 0===p?null:p;g&&m&&(l.setAttribute(“width”,g),l.setAttribute(“height”,m))}s.classList.add(“ad-unit–is-rendered”)}}}}))}))},25:function(e,t,n){“use strict”;t.a=function(){window.googletag=window.googletag||{},window.googletag.cmd=googletag.cmd||[]}},99:function(e,t,n){e.exports=n(100)}}); //# sourceMappingURL=ad-handler.bundle.min.js.map]]>

Source

Leave a Comment

Your email address will not be published.