/*! This file is auto-generated */ !function(n,r){var t,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,t=n._,(e=n._=r()).noConflict=function(){return n._=t,e})}(this,function(){var n="1.13.3",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,F=Object.prototype,V="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,a=e.slice,s=F.toString,q=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=t&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,i){return i=null==i?u.length-1:+i,function(){for(var n=Math.max(arguments.length-i,0),r=Array(n),t=0;t":">",'"':""","'":"'","`":"`"},qn=Pn(t),t=Pn(An(t)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,r,t,e,u){if(!(e instanceof r))return n.apply(t,u);e=En(n.prototype),r=n.apply(e,u);return i(r)?r:e}var M=l(function(u,i){function o(){for(var n=0,r=i.length,t=Array(r),e=0;e0&&elementMiddlePosition>=0&&elementMiddlePosition<=window.innerHeight},"pmc-middle-child":function(element,index,match){var $items=$(element).parent().find(element.localName);if(3<=$items.length){return element===$items[Math.round($items.length/2)]}return false}})})(jQuery); ; !function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof exports?module.exports=factory(require("jquery")):factory(jQuery)}(function($){var inviewObjects=[],viewportSize,viewportOffset,d=document,w=window,documentElement=d.documentElement,timer;function getViewportSize(){var mode,domObject,size={height:w.innerHeight,width:w.innerWidth};return size.height||!(mode=d.compatMode)&&$.support.boxModel||(size={height:(domObject="CSS1Compat"===mode?documentElement:d.body).clientHeight,width:domObject.clientWidth}),size}function getViewportOffset(){return{top:w.pageYOffset||documentElement.scrollTop||d.body.scrollTop,left:w.pageXOffset||documentElement.scrollLeft||d.body.scrollLeft}}function checkInView(){if(inviewObjects.length){var i=0,$elements=$.map(inviewObjects,function(inviewObject){var selector=inviewObject.data.selector,$element=inviewObject.$element;return selector?$element.find(selector):$element});for(viewportSize=viewportSize||getViewportSize(),viewportOffset=viewportOffset||getViewportOffset();iviewportOffset.top&&elementOffset.topviewportOffset.left&&elementOffset.left=$player_obj.length){return false}this.player_instance=pmc_jwplayer($player_obj.attr("id"));this.player_instance.on("ready",function(data){if("object"!==typeof pmcFloatingVideoOptions){return}var floatingCssClasses=["jw-floating-top-full-width","jw-floating-bottom-right","jw-floating-bottom-stripe","jw-floating-top-left","jw-floating-top-right"];var currentFloatingPostion=parseInt(pmcFloatingVideoOptions.jwplayer_floating_placement,10);var player_container=pmc_floating_player.player_instance.getContainer();if(null!==currentFloatingPostion&&floatingCssClasses[currentFloatingPostion]&&null!==player_container){$(player_container).addClass(floatingCssClasses[currentFloatingPostion])}});this.player_instance.on("resize",function(data){var ad_div=document.querySelector(".mobile-bottom-sticky-ad");if("object"===typeof pmc_meta&&("desktop"===pmc_meta.env&&230>data.height||"mobile"===pmc_meta.env&&90===data.height)&&"undefined"===typeof pmc_floating_player.floating_check){var player_close_btn=document.querySelector(".jw-controls .jw-svg-icon-close");player_close_btn.style.display="none";if(null!==ad_div){ad_div.remove()}if(null!==ad_div&&"object"===typeof pmc_adm_gpt&&pmc_adm_gpt.auto_ad_refresh_timers&&ad_div.id in pmc_adm_gpt.auto_ad_refresh_timers){pmc_adm_gpt.auto_ad_refresh_timers[ad_div.id]={}}if("object"===typeof blogherads&&"object"===typeof blogherads.getSlotById("skm-ad-bottom")){blogherads.destroySlots(["skm-ad-bottom"])}pmc_floating_player.floating_check=true;setTimeout(function(){player_close_btn.style.display="block"},5e3)}});if("undefined"!==typeof pmc&&"undefined"!==typeof pmc.hooks&&"undefined"!==typeof pmc.hooks.add_action){pmc.hooks.add_action("pmc_adm_dfp_direct_sold",this.dismiss_floating_player)}},dismiss_floating_player:function(){var floating_container=document.querySelector(".jw-flag-touch .jw-wrapper");if(null!==floating_container){floating_container.classList.add("pmc-jw-disable-floating");pmc_floating_player.player_instance.pause()}}};pmc_floating_player.init()})(jQuery);; var pmc_contextual_player={player_main_div:".pmc-contextual-player",message_pattern:"pmcadm:dfp:isdirect=true",init:function(){this.bind_events()},bind_events:function(){var self=this;self.pause_triggered=false;jQuery(window).on("message",function(wrappedEvent){var event=wrappedEvent.originalEvent;if("string"===typeof event.data){if(event.data.substring(0,self.message_pattern.length)===self.message_pattern){if("object"!==typeof pmc_adm_config||"string"!==typeof pmc_adm_config.contextual_on_direct_sold||"show"!==pmc_adm_config.contextual_on_direct_sold){self.remove_contextual_player()}}else if(event.data==="pmc_show_interrupt_ads"){if(window.contextual_player){try{if(window.contextual_player.getState()!=="playing"){var jwconfig=window.contextual_player.getConfig();if(jwconfig.autostart==="viewable"&&jwconfig.viewable){self.pause_triggered=true}}else{self.pause_triggered=true}if(self.pause_triggered){window.contextual_player.pause()}}catch(e){}}}else if(event.data==="pmc_hide_interrupt_ads"){if(self.pause_triggered){window.contextual_player.play();self.pause_triggered=false}}}});if("object"===typeof contextual_player){contextual_player.on("play",self.current_playing);contextual_player.on("adPlay",self.current_playing);contextual_player.on("relatedReady",function(){var relatedPlugin=contextual_player.getPlugin("related");if("object"===typeof relatedPlugin){relatedPlugin.on("feedShown",function(){self.create_playlist_nav();jQuery(".pmc-contextual-player .jw-related-control").on("click",self.current_playing)})}});contextual_player.on("ready",function(){var relatedPlugin=contextual_player.getPlugin("related");if("object"===typeof relatedPlugin){relatedPlugin.on("feedShown",function(){self.create_playlist_nav();jQuery(".pmc-contextual-player .jw-related-control").on("click",self.current_playing)})}})}},remove_contextual_player:function(){var player=jQuery(this.player_main_div);if(0VIEWING');if("object"===typeof current_item&&1===current_item.length){current_item.addClass("is-active")}if(0===jQuery(".jw-related-shelf-item[data-jw-index="+playlist_index+"] .contextual-self-now-playing").length){current_item.find(".jw-related-shelf-item-image").append(now_playing)}},create_playlist_nav:function(){if(0===jQuery(".pmc-contextual-player .l-adm-contextual-video__shadow").length){var shadow_left=jQuery('
'),shadow_right=jQuery('
');jQuery(".pmc-contextual-player .jw-related-control-left").prepend(shadow_left);jQuery(".pmc-contextual-player .jw-related-control-right").prepend(shadow_right)}}};pmc_contextual_player.init();; !function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";function n(){const e=document.querySelector("#pmc-adm-ad-interrupts div.pmc-adm-boomerang-pub-div div");let t="";return e&&(t=e.id),t}i.r(t);var r=function(){this.init=function(){this.bind_events()},this.bind_events=function(){if("undefined"!=typeof pmc&&void 0!==pmc.hooks&&void 0!==pmc.hooks.add_action&&(pmc.hooks.add_action("pmc_gallery_rotate_ads",this.rotate_ads_for_gallery),pmc.hooks.add_action("pmc_rotate_ads",this.rotate_ads.bind(this))),"loading"!==document.readyState)this.display();else{let e=this;document.addEventListener("DOMContentLoaded",()=>{e.display()})}window.addEventListener("message",this.direct_sold_ad_event_listener.bind(this),!1)},this.rotate_ads=function(e){if(!e||"undefined"==typeof blogherads||"function"!=typeof blogherads.reloadAds||this.is_direct_sold)return;const t=[];jQuery("div.slot-rotate-"+e).each((function(){let e="";e=1===parseInt(jQuery(this).data("is-adhesion-ad"))?"skm-ad-bottom":jQuery(this).attr("id");const i=blogherads.getSlotById(e);i&&t.push(i)})),t&&t.length&&blogherads.reloadAds(t)},this.rotate_ads_for_gallery=function(){"undefined"!=typeof blogherads&&"function"==typeof blogherads.reloadAds&&("object"==typeof pmc_meta&&"string"==typeof pmc_meta.env&&"mobile"===pmc_meta.env?blogherads.reloadAds(blogherads.getSlots()):blogherads.reloadAds())},this.display=function(){if(""!==n())pmc_admanager.show_interrupt_ads();else{blogherads.getSlots().forEach((function(e){e.removeBlock("gallery"),e.display()}))}},this.has_ads=function(e){const t=blogherads.getSlots();let i=!1;return t.forEach((function(t){(function(e,t){return"object"==typeof e&&"string"==typeof e.subAdUnitPath&&e.subAdUnitPath.includes(t)})(t,e)&&(i=!0)})),i},this.direct_sold_ad_event_listener=function(e){if("undefined"!=typeof pmc&&void 0!==pmc.hooks&&"string"==typeof e.data){"pmcadm:dfp:isdirect=true"===e.data.substring(0,"pmcadm:dfp:isdirect=true".length)&&(this.is_direct_sold=!0,window.document.documentElement.classList.add("pmcadm-direct-sold"),blogherads.getSlots().forEach(e=>e.setAutoRefreshTime(0)),pmc.hooks.do_action("pmc_adm_dfp_direct_sold",e))}}};var o=function(){this.settings={interrupts_hide_container:"#container",redirect_interval:0,interrupt_counter:window.pmc_intertitial_ad_timer||0},this.show_interrupt_ads=function(){if(void 0!==navigator.userAgent){if(/googlebot|googlebot-news/i.test(navigator.userAgent))return}let e=document.referrer,t="",i=null,r=this;if(void 0!==e&&""!==e&&(t=e.match(/:\/\/(.[^/]+)/)[1],"flipboard.com"===t))return;if(window.pmc_is_adblocked)return;if(!r.apply_filters("pmc-adm-show-interrupt-ads",!0))return;this.settings.redirect_interval&&clearInterval(this.settings.redirect_interval);const o=blogherads.getSlotById(n());if(i=pmc.cookie.get(pmc.pmc_adm_interstitial_ck),null!=i&&""!==i||"object"!=typeof o)this.hide_interrupt_ads();else{pmc.cookie.set(pmc.pmc_adm_interstitial_ck,1,pmc.pmc_adm_interstitial_interval,"/"),r.settings.redirect_interval=setInterval((function(){r.interrupt_timer()}),1e3),document.body.classList.add("interrupt-ads"),document.getElementById("pmc-adm-interrupts-container").style.display="block";try{window.postMessage("pmc_show_interrupt_ads","*"),pmc.hooks&&pmc.hooks.do_action("show_interrupt_ads")}catch(e){}o.display(),r.interrupt_timer()}},this.hide_interrupt_ads=function(){clearInterval(this.settings.redirect_interval),this.settings.redirect_interval=0,document.body.classList.remove("interrupt-ads"),window.dispatchEvent(new Event("resize")),document.getElementById("pmc-adm-interrupts-container").style.display="none";const e=n();let t=new CustomEvent("pmc-hide-interrupt-ads",{detail:"Fires when the interrupt ads are done."});document.dispatchEvent(t),blogherads.getSlots().forEach((function(t){e!==t.domId?t.display():blogherads.destroySlots([t.domId])}));try{window.postMessage("pmc_hide_interrupt_ads","*"),pmc.hooks&&pmc.hooks.do_action("hide_interrupt_ads")}catch(e){}},this.hide_interrupt=function(){this.hide_interrupt_ads()},this.interrupt_timer=function(){0===this.settings.interrupt_counter?this.hide_interrupt_ads():(this.settings.redirect_interval&&this.settings.interrupt_counter--,document.getElementById("pmc_ads_interrupts_timer")&&(document.getElementById("pmc_ads_interrupts_timer").innerHTML=this.settings.interrupt_counter))},this.apply_filters=function(e,t,i){return"undefined"==typeof pmc||void 0===pmc.hooks||void 0===pmc.hooks.apply_filters?t:pmc.hooks.apply_filters(e,t,i)}};var a=function(){this.properties={dfpCreativeMarkup:void 0,dfpCreativeParameters:void 0,viewUrlTracked:!1},this.init=function(){this.init_DOM(),this.bind_GUI_events()},this.init_DOM=function(){this.dom={adSection:jQuery("#skin-ad-section"),leftRailContainer:jQuery("#skin-ad-left-rail-container"),rightRailContainer:jQuery("#skin-ad-right-rail-container")}},this.bind_GUI_events=function(){var e=this;jQuery(window).on("message",(function(t){var i=t.originalEvent;if("string"==typeof i.data){if("pmcadm:dfp:skinad:markup"===i.data.substring(0,"pmcadm:dfp:skinad:markup".length))e.properties.dfpCreativeMarkup=i.data.substring("pmcadm:dfp:skinad:markup".length)||"\x3c!-- NOOP --\x3e",e.run();else if("pmcadm:dfp:skinad:parameters"===i.data.substring(0,"pmcadm:dfp:skinad:parameters".length)){var n=i.data.substring("pmcadm:dfp:skinad:parameters".length);e.properties.dfpCreativeParameters=jQuery.parseJSON(n),e.run()}}})),jQuery(window).on("resize",(function(){e.refresh_skin_rails()})),jQuery(document).ready((function(){e.refresh_skin_rails()})),jQuery("body").on("prestitial-ad:stopped",(function(){e.refresh_skin_rails()})),e.dom.leftRailContainer.on("click",(function(){e.skin_clicked_EventHandler()})),e.dom.rightRailContainer.on("click",(function(){e.skin_clicked_EventHandler()}))},this.skin_clicked_EventHandler=function(){window.open(this.properties.dfpCreativeParameters.clickThroughURL,"_blank")},this.refresh_skin_rails=function(){var e=this;if(e.properties.dfpCreativeParameters){var t=jQuery(window).width(),i=1900,n=1350,r=0;r=t=n?n:i;var o=e.properties.dfpCreativeParameters.creative.image[r],a=e.properties.viewUrlTracked?o.left:e.properties.dfpCreativeParameters.viewURLPrefix+o.left,s=e.properties.dfpCreativeParameters.bodyBackgroundColor&&jQuery.trim(e.properties.dfpCreativeParameters.bodyBackgroundColor)||null;jQuery("body").css("background-color",s),e.properties.viewUrlTracked=!0,e.dom.leftRailContainer.css("background-image",'url("'+a+'")'),e.dom.rightRailContainer.css("background-image",'url("'+o.right+'")');var d=o.right;jQuery('').on("load",(function(){var t=this.width,i=e.get_content_DOM();e.dom.leftRailContainer.width(t).offset({left:i.offset().left-t}),e.dom.rightRailContainer.width(t).offset({left:i.offset().left+i.outerWidth()})}))}},this.get_content_DOM=function(){var e=["main-wrapper"],t=document.querySelector("#skin-ad-section");void 0!==t&&void 0!==t.dataset.contentContainer&&(e=t.dataset.contentContainer.split(",")),e=this.apply_filters("pmc-adm-dfp-skin-main-content",e);for(var i=0;ijQuery(window).width()&&(l=190,d=300,jQuery(".floating-preroll-ad-container").css("width","314px"),jQuery(".floating-preroll-ad-container").css("height","204px")),0==e.length-s.length&&"function"==typeof window.pmc_jwplayer){var c={playlist:i,autostart:!0,mute:!0,floating:!0,height:l,width:d};window.pmc_jwplayer("jwplayer_floating_preroll_ad",r).setup(c).whenReady((function(e){t.player_instance=e,t.player_instance.on("beforePlay",(function(){if("object"==typeof pmcFloatingVideoOptions&&1===parseInt(pmcFloatingVideoOptions.jwplayer_style_v2)){let e=t.player_instance.getPlaylistItem().title;"string"==typeof e&&jQuery(".floating-preroll-ad-title").text(e)}})),t.player_instance.on("firstFrame",(function(){t.show_floating_player()})),t.player_instance.on("adImpression",(function(){pmc.cookie.set(t.cookie,1,t.time_gap,"/"),t.is_floating_ad_showed=!0,t.show_floating_player()})),t.player_instance.on("adError",(function(){!0!==t.is_floating_ad_showed&&("object"==typeof pmcFloatingVideoOptions&&1===parseInt(pmcFloatingVideoOptions.preroll_not_required)?t.show_floating_player():t.remove_floating_player())}))})),jQuery(document).on("click",".floating-preroll-ad-close",(function(){t.remove_floating_player()}))}else jQuery(this.pmc_floating_ad_main_div).remove()}},this.show_floating_player=function(){setTimeout((function(){jQuery(".floating-preroll-ad-close").show()}),5e3),jQuery(this.pmc_floating_ad_main_div).show()},this.remove_floating_player=function(){"function"==typeof this.player_instance.remove&&this.player_instance.remove(),jQuery(this.pmc_floating_ad_main_div).remove()}};blogherads.adq=blogherads.adq||[],window.pmc=window.pmc||{},pmc.sbjs=new s,pmc.displayAds=new r,window.pmc_admanager=new o,pmc.prerollPlayer=new d,blogherads.adq.push((function(){pmc.sbjs.init(),pmc.displayAds.init(),pmc.skinAds=new a,pmc.skinAds.init(),pmc.prerollPlayer.init()}))}]);;